/* Troy Faces & Places — page content styles for templates/troy/public.html and public-2026.html.
   Every rule is scoped to #troy-faces so the ID outranks template rules such as
   ".content .cms-content p", Bootstrap 4's ".card"/".close" and the 2026 heading styles. */

#troy-faces {
  --maroon: #990000;
  --maroon-dark: #6e0000;
  --gold: #F9CC32;
  --ink: #1f1f1f;
  --muted: #5a5a5a;
  --paper: #ffffff;
  --tint: #f6f4f1;
  --line: #e4e0da;
  --radius: 10px;
  background: var(--tint); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55; font-size: 16px;
}
#principal {
    padding: unset;
}
#troy-faces *, #troy-faces *::before, #troy-faces *::after { box-sizing: border-box; }
#troy-faces h2, #troy-faces h3, #troy-faces h4 { font-family: inherit; font-weight: 700; color: var(--ink); }
#troy-faces img { max-width: 100%; height: auto; display: block; }
#troy-faces a { color: var(--maroon); }

#troy-faces .tf-hero { background: var(--maroon); color: #fff; position: relative; overflow: hidden; }
#troy-faces .tf-hero::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 360px; height: 160px;
  background: var(--gold); transform: rotate(-12deg); }
#troy-faces .tf-hero-inner { max-width: 1120px; margin: 0 auto; padding: 48px 20px 56px; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 24px; justify-content: space-between; }
#troy-faces .tf-eyebrow { margin: 0 0 6px; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 700; color: var(--gold); }
#troy-faces .tf-hero .tf-title { margin: 0; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; color: #fff; }
#troy-faces .tf-hero .tf-sub { margin: 10px 0 0; font-size: 1.15rem; opacity: .95; }
#troy-faces .tf-logo { width: 120px; flex: none; position: relative; z-index: 2; }

#troy-faces .tf-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 1px; }
#troy-faces .tf-index { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  margin: -4px auto 32px; padding: 18px 20px; position: relative; z-index: 3; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
#troy-faces .tf-index h2 { font-size: 1rem; margin: 0 0 10px; scroll-margin-top: 16px; }
#troy-faces .tf-index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
#troy-faces .tf-index a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--tint);
  text-decoration: none; color: var(--ink); font-size: .9rem; border: 1px solid var(--line); }
#troy-faces .tf-index a:hover, #troy-faces .tf-index a:focus-visible { background: var(--gold); border-color: var(--gold); }

#troy-faces .tf-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; padding: 28px;
  margin-bottom: 24px; scroll-margin-top: 16px; }
#troy-faces .tf-card h3 { margin: 0; font-size: 1.7rem; line-height: 1.15; }
#troy-faces .tf-role { margin: 4px 0 16px; font-weight: 600; color: var(--maroon); }
#troy-faces .tf-years { margin: 0 0 14px; padding: 8px 12px; background: #fff7d6; border-radius: 8px; font-size: .95rem; }
#troy-faces .tf-label, #troy-faces .tf-sec h4 { font-weight: 700; color: var(--maroon-dark); }
#troy-faces .tf-label { margin-right: 4px; }
#troy-faces .tf-label::after { content: ":"; }
#troy-faces .tf-sec h4 { margin: 14px 0 4px; font-size: 1rem; }
#troy-faces .tf-sec p { margin: 0 0 8px; }
#troy-faces .tf-sec ul { margin: 0 0 8px; padding-left: 20px; }

#troy-faces .tf-gallery { columns: 2 180px; column-gap: 10px; align-self: start; }
#troy-faces .tf-gallery.tf-one { columns: 1; }
#troy-faces figure { margin: 0 0 10px; break-inside: avoid; }
#troy-faces .tf-ph { all: unset; display: block; cursor: zoom-in; border-radius: 8px; overflow: hidden; background: var(--tint); }
#troy-faces .tf-ph:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
#troy-faces .tf-ph img { width: 100%; transition: transform .25s ease; }
#troy-faces .tf-ph:hover img { transform: scale(1.03); }
#troy-faces figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }

#troy-faces .tf-top { display: inline-block; margin: 0 0 24px; }

#troy-faces dialog { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
#troy-faces dialog::backdrop { background: rgba(0,0,0,.82); }
#troy-faces dialog img { max-width: 92vw; max-height: 82vh; width: auto; border-radius: 8px; }
#troy-faces dialog p { color: #fff; margin: 8px 0 0; text-align: center; }
#troy-faces dialog .tf-close { position: fixed; top: 14px; right: 18px; font-size: 2rem; line-height: 1; background: none;
  border: 0; color: #fff; cursor: pointer; opacity: 1; text-shadow: none; }

/* The 2026 template's nav and section title stick to the top, so jump targets need clearance below them */
.inside-template #troy-faces .tf-card,
.inside-template #troy-faces .tf-index h2 { scroll-margin-top: 180px; }

@media (max-width: 760px) {
  #troy-faces .tf-card { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  #troy-faces .tf-hero-inner { padding: 36px 16px 48px; }
  #troy-faces .tf-logo { width: 84px; }
  #troy-faces .tf-hero::after { width: 220px; height: 110px; right: -70px; bottom: -78px; }
  #troy-faces .tf-wrap { padding: 0 16px 1px; }
}
@media (prefers-reduced-motion: reduce) { #troy-faces .tf-ph img { transition: none; } }
