/* ---------------------------------------------------------------
   Editorial design system ("ap-" prefixed) used by the redesigned
   About / Leadership / Employment / FAQs pages. Scoped under
   .ap-page and namespaced classes so nothing collides with the
   main site stylesheet. Colors are pulled from the site's own
   design tokens (--brand-navy / --brand-red / --brand-gold) so the
   editorial layout still matches the rest of tripgation.com.
   --------------------------------------------------------------- */
.ap-page{
  --ap-ink: var(--ink-900);
  --ap-ink-2: var(--ink-700);
  --ap-muted: var(--ink-500);
  --ap-paper: var(--paper);
  --ap-paper-2: var(--paper-alt);
  --ap-line: var(--ink-300);
  --ap-navy: var(--brand-navy);
  --ap-red: var(--brand-red);
  --ap-gold: var(--brand-gold);
  --ap-line-dark: rgba(255,255,255,.16);
  --ap-muted-dark: rgba(255,255,255,.64);

  --ap-display: "Big Shoulders Display", system-ui, sans-serif;
  --ap-body: "Source Serif 4", Georgia, serif;
  --ap-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ap-pad: clamp(20px, 5vw, 80px);

  background: var(--ap-paper);
  color: var(--ap-ink);
  font-family: var(--ap-body);
  font-size: 17px;
  line-height: 1.65;
}
.ap-page *{ box-sizing: border-box; }
.ap-page p{ margin: 0 0 1.05em; text-align: justify; }
.ap-page a{ color: inherit; }

.ap-eyebrow{
  font-family: var(--ap-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ap-muted); font-weight: 500; display: block;
}
.ap-eyebrow.on-dark{ color: var(--ap-muted-dark); }
.ap-sec-title{
  font-family: var(--ap-display); font-weight: 700; font-size: clamp(34px,5.4vw,64px);
  line-height: .95; text-transform: uppercase; margin: 10px 0 0; text-align: left;
}
.ap-lede{ font-size: clamp(18px,2.1vw,22px); line-height: 1.55; color: var(--ap-ink-2); text-align: justify; }
.ap-dim{ color: var(--ap-muted); text-align: justify; }

/* hero */
.ap-hero{
  background: var(--grad-navy);
  color: #fff; padding: clamp(48px,7vw,90px) var(--ap-pad) clamp(56px,8vw,100px);
  position: relative; overflow: hidden;
}
.ap-hero::after{
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 88% 8%, rgba(255,32,69,.22), transparent 62%),
    radial-gradient(700px 340px at 8% 96%, rgba(245,166,35,.16), transparent 66%);
  pointer-events: none;
}
.ap-hero-grid{
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr);
  gap: clamp(32px,5vw,60px); align-items: end;
}
.ap-hero-grid.ap-hero-solo{ grid-template-columns: minmax(0,1fr); align-items: start; }
.ap-hero h1{
  font-family: var(--ap-display); font-weight: 800; font-size: clamp(42px,8vw,92px);
  line-height: .92; letter-spacing: -.01em; text-transform: uppercase; margin: 16px 0 0;
}
.ap-hero h1 em{ font-style: normal; color: var(--ap-red); }
.ap-hero .ap-lede{ color: rgba(255,255,255,.86); max-width: 58ch; margin-top: 22px; font-size: clamp(17px,1.7vw,20px); }
.ap-breadcrumb{ font-family: var(--ap-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ap-breadcrumb a{ color: #fff; }

.ap-pass{ background: var(--ap-paper); color: var(--ap-ink); border-radius: 8px; font-family: var(--ap-mono); box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.ap-pass-top{ padding: 20px 22px 16px; }
.ap-pass-row{ display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ap-pass-label{ font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ap-muted); }
.ap-pass-code{ font-family: var(--ap-display); font-weight: 800; font-size: 42px; line-height: 1; letter-spacing: .02em; }
.ap-pass-arc{ flex: 1; padding: 0 6px; align-self: center; color: var(--ap-red); }
.ap-pass-arc svg{ width: 100%; height: 30px; display: block; }
.ap-pass-meta{ display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; border-top: 1px dashed var(--ap-line); padding-top: 14px; }
.ap-pass-meta div span{ display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); }
.ap-pass-meta div b{ font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
.ap-pass-tear{ border-top: 2px dashed var(--ap-line); background: var(--ap-paper-2); padding: 12px 22px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); }
.ap-barcode{ display: flex; gap: 2px; align-items: flex-end; height: 24px; }
.ap-barcode i{ display: block; width: 2px; background: var(--ap-ink); height: 100%; }

/* generic section */
.ap-wrap{ max-width: 1200px; margin: 0 auto; }
.ap-sec{ padding: clamp(52px,8vw,100px) var(--ap-pad); }
.ap-sec--dark{ background: var(--ap-navy); color: #fff; }
.ap-sec--dark .ap-sec-title, .ap-sec--dark p{ color: #fff; }
.ap-sec--dark .ap-dim{ color: var(--ap-muted-dark); }
.ap-sec-head{ max-width: 70ch; margin-bottom: clamp(30px,4vw,52px); }

/* etymology / two-col */
.ap-etym{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,5vw,68px); align-items: center; }
.ap-etym-word{ font-family: var(--ap-display); font-weight: 800; text-transform: uppercase; font-size: clamp(42px,7.5vw,96px); line-height: .9; letter-spacing: -.01em; }
.ap-etym-word .a{ color: var(--ap-ink); }
.ap-etym-word .b{ color: var(--ap-red); }
.ap-sec--dark .ap-etym-word .a{ color: #fff; }
.ap-etym-key{ font-family: var(--ap-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); margin-top: 16px; display: flex; gap: 20px; flex-wrap: wrap; }
.ap-etym-key i{ font-style: normal; color: var(--ap-ink); font-weight: 500; }

/* services grid */
.ap-svc{ display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); border-top: 1px solid var(--ap-line-dark); }
.ap-svc-item{ padding: 24px 24px 28px; border-bottom: 1px solid var(--ap-line-dark); border-right: 1px solid var(--ap-line-dark); transition: background .25s ease; }
.ap-svc-item:hover{ background: rgba(255,255,255,.045); }
.ap-svc-code{ font-family: var(--ap-mono); font-size: 11px; letter-spacing: .16em; color: var(--ap-gold); display: block; margin-bottom: 12px; }
.ap-svc-item h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 27px; line-height: 1; margin: 0 0 8px; }
.ap-svc-item p{ font-size: 15.5px; line-height: 1.6; color: var(--ap-muted-dark); margin: 0; text-align: left; }

/* route / timeline */
.ap-route{ margin-top: clamp(18px,3vw,32px); }
.ap-leg{ display: grid; grid-template-columns: 110px 40px minmax(0,1fr); gap: 0 clamp(12px,2.2vw,30px); }
.ap-leg-year{ font-family: var(--ap-display); font-weight: 800; font-size: clamp(34px,4.6vw,56px); line-height: .85; text-align: right; padding-top: 2px; color: var(--ap-ink); }
.ap-leg-year small{ display: block; font-family: var(--ap-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; color: var(--ap-muted); margin-top: 6px; text-transform: uppercase; }
.ap-leg-rail{ position: relative; display: flex; justify-content: center; }
.ap-leg-rail::before{ content: ""; position: absolute; top: 14px; bottom: -14px; width: 0; border-left: 2px dashed var(--ap-line); }
.ap-leg:last-child .ap-leg-rail::before{ display: none; }
.ap-leg-node{ position: relative; z-index: 2; width: 14px; height: 14px; margin-top: 9px; border-radius: 50%; background: var(--ap-paper); border: 2.5px solid var(--ap-red); }
.ap-leg--key .ap-leg-node{ background: var(--ap-red); box-shadow: 0 0 0 5px rgba(255,32,69,.14); }
.ap-leg-body{ padding: 0 0 clamp(28px,4vw,40px); }
.ap-leg-body h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: clamp(21px,2.4vw,29px); line-height: 1; margin: 0 0 8px; text-align: left; }
.ap-leg-body p{ font-size: 16px; max-width: 60ch; margin: 0; color: var(--ap-ink-2); }
.ap-leg-tag{ display: inline-block; margin-top: 10px; font-family: var(--ap-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: #9a6d00; border: 1px solid var(--ap-gold); border-radius: 3px; padding: 3px 9px; }

/* stub cards */
.ap-stubs{ display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: clamp(16px,2.4vw,26px); }
.ap-stub{ background: var(--ap-paper); border: 1px solid var(--ap-line); border-radius: 8px; padding: 26px 24px 22px; position: relative; overflow: hidden; }
.ap-stub::before{ content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ap-red); }
.ap-stub:nth-child(2)::before{ background: var(--ap-gold); }
.ap-stub:nth-child(3)::before{ background: var(--ap-navy); }
.ap-stub h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 27px; line-height: 1; margin: 10px 0 10px; text-align: left; }
.ap-stub p{ font-size: 16px; margin: 0; color: var(--ap-ink-2); }
.ap-stub ul, .ap-stub ol{ margin: 12px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.ap-stub li{ padding: 7px 0 7px 20px; border-top: 1px dashed var(--ap-line); position: relative; color: var(--ap-ink-2); text-align: left; }
.ap-stub li::before{ content: "\2192"; position: absolute; left: 0; color: var(--ap-red); font-family: var(--ap-mono); font-size: 13px; }

/* facts strip */
.ap-facts{ display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1px; background: var(--ap-line-dark); border: 1px solid var(--ap-line-dark); }
.ap-fact{ background: var(--ap-navy); padding: 24px 22px; }
.ap-fact b{ display: block; font-family: var(--ap-display); font-weight: 800; font-size: clamp(40px,5.4vw,62px); line-height: .85; color: #fff; }
.ap-fact span{ display: block; margin-top: 10px; font-family: var(--ap-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted-dark); }

/* brand cards */
.ap-brands{ display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: clamp(14px,2vw,22px); }
.ap-brand{ border: 1px solid var(--ap-line); border-radius: 8px; background: var(--ap-paper); padding: 22px 20px; }
.ap-brand b{ font-family: var(--ap-display); font-weight: 800; text-transform: uppercase; font-size: 25px; display: block; line-height: 1; }
.ap-brand span{ font-family: var(--ap-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-red); display: block; margin: 10px 0 10px; }
.ap-brand p{ font-size: 15px; margin: 0; color: var(--ap-muted); text-align: left; }

/* registry / key-value grid */
.ap-registry{ font-family: var(--ap-mono); font-size: 12.5px; line-height: 1.9; display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 20px 36px; border-top: 1px solid var(--ap-line-dark); padding-top: 24px; }
.ap-registry div span{ display: block; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ap-muted-dark); }
.ap-registry div b{ font-weight: 500; color: #fff; letter-spacing: .02em; }

/* cta band */
.ap-cta{ background: var(--grad-brand); color: #fff; padding: clamp(44px,7vw,80px) var(--ap-pad); }
.ap-cta-in{ max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.ap-cta h2{ font-family: var(--ap-display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px,6.4vw,72px); line-height: .9; margin: 8px 0 0; max-width: 18ch; }
.ap-cta-actions .btn{ margin-right: 10px; }
.ap-cta-actions .btn-light{ color: var(--brand-red); }

/* leadership cards */
.ap-leaders{ display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: clamp(18px,2.6vw,30px); }
.ap-leader{ background: var(--ap-paper); border: 1px solid var(--ap-line); border-radius: 8px; overflow: hidden; }
.ap-leader-photo{ width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--ap-paper-2); }
.ap-leader-body{ padding: 20px 22px 22px; }
.ap-leader-body h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 0 0 6px; }
.ap-leader-title{ font-family: var(--ap-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-red); margin: 0; }

/* qualification / checklist */
.ap-checklist{ list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--ap-line); border: 1px solid var(--ap-line); border-radius: 8px; overflow: hidden; }
.ap-checklist li{ background: var(--ap-paper); padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--ap-ink-2); text-align: left; }
.ap-checklist li b{ font-family: var(--ap-mono); font-size: 11px; color: var(--ap-red); flex-shrink: 0; padding-top: 3px; }

/* benefits pills */
.ap-pills{ display: flex; flex-wrap: wrap; gap: 10px; }
.ap-pill{ font-family: var(--ap-mono); font-size: 12px; letter-spacing: .04em; border: 1px solid var(--ap-line-dark); color: #fff; border-radius: 999px; padding: 9px 16px; background: rgba(255,255,255,.06); }

/* FAQ accordion */
.ap-faq-group + .ap-faq-group{ margin-top: clamp(28px,4vw,44px); }
.ap-faq-group h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; margin: 0 0 14px; color: var(--ap-navy); border-bottom: 2px solid var(--ap-line); padding-bottom: 10px; }
.ap-faq-item{ border-bottom: 1px dashed var(--ap-line); padding: 4px 0; }
.ap-faq-item summary{ font-family: var(--ap-display); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 17px; line-height: 1.35; padding: 14px 30px 14px 0; cursor: pointer; list-style: none; position: relative; color: var(--ap-ink); }
.ap-faq-item summary::-webkit-details-marker{ display: none; }
.ap-faq-item summary::after{ content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--ap-mono); font-size: 20px; color: var(--ap-red); transition: transform .2s ease; }
.ap-faq-item[open] summary::after{ content: "\2212"; }
.ap-faq-item .ap-faq-answer{ padding: 0 30px 18px 0; font-size: 15.5px; color: var(--ap-ink-2); text-align: justify; }

/* FAQ search + filter toolbar */
.ap-tools{ max-width: 1100px; margin: 0 auto; padding: 0 var(--ap-pad); position: relative; z-index: 3; transform: translateY(-50%); }
.ap-search{ position: relative; }
.ap-search input{ width: 100%; font-family: var(--ap-body); font-size: 17px; color: var(--ap-ink); background: var(--ap-paper); border: 1px solid var(--ap-line); border-radius: 6px; padding: 20px 20px 20px 52px; box-shadow: 0 14px 34px rgba(10,22,51,.18); }
.ap-search input:focus{ outline: none; border-color: var(--ap-red); box-shadow: 0 0 0 3px rgba(255,32,69,.16), 0 14px 34px rgba(10,22,51,.18); }
.ap-search::before{ content: "?"; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-family: var(--ap-display); font-weight: 800; font-size: 24px; color: var(--ap-red); }
.ap-fchips{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ap-fchip{ font-family: var(--ap-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-muted); background: var(--ap-paper); border: 1px solid var(--ap-line); border-radius: 3px; padding: 8px 13px; cursor: pointer; transition: all .18s ease; }
.ap-fchip:hover{ border-color: var(--ap-navy); color: var(--ap-navy); }
.ap-fchip[aria-pressed="true"]{ background: var(--ap-navy); border-color: var(--ap-navy); color: #fff; }
.ap-fchip b{ font-weight: 500; opacity: .6; margin-left: 5px; }

/* category header + count (search page variant) */
.ap-faq-group .ap-count{ font-family: var(--ap-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); display: block; margin: -8px 0 12px; }

/* data table inside an answer */
.ap-tbl{ width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15.5px; }
.ap-tbl th{ font-family: var(--ap-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); font-weight: 500; text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--ap-line); }
.ap-tbl td{ padding: 11px 12px 11px 0; border-bottom: 1px solid var(--ap-line); color: var(--ap-ink-2); vertical-align: top; text-align: left; }
.ap-tbl td:first-child{ font-family: var(--ap-mono); font-size: 13px; color: var(--ap-red); white-space: nowrap; }
.ap-fnotes{ list-style: none; margin: 4px 0 0; padding: 0; }
.ap-fnotes li{ position: relative; padding: 7px 0 7px 20px; font-size: 15px; color: var(--ap-muted); text-align: left; }
.ap-fnotes li::before{ content: "\2192"; position: absolute; left: 0; color: var(--ap-navy); font-family: var(--ap-mono); font-size: 12px; }

.ap-fempty{ display: none; padding: 40px 0; font-size: 18px; color: var(--ap-muted); }
.ap-fempty b{ display: block; font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 32px; color: var(--ap-ink); margin-bottom: 8px; }

@media (max-width: 700px){
  .ap-tools{ transform: translateY(-28px); }
  .ap-tbl{ font-size: 14px; }
}

/* vacancy board */
.ap-jobs{ border-top: 1px solid var(--ap-line); }
.ap-job{ display: grid; grid-template-columns: 96px minmax(0,1.15fr) minmax(0,1.35fr) auto; gap: clamp(14px,2.2vw,30px); align-items: start; padding: 24px 0; border-bottom: 1px solid var(--ap-line); }
.ap-job-code{ font-family: var(--ap-mono); font-size: 11px; letter-spacing: .14em; color: var(--ap-red); padding-top: 6px; }
.ap-job h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px,2.8vw,31px); line-height: 1; margin: 0 0 10px; text-align: left; }
.ap-jfacts{ display: flex; flex-wrap: wrap; gap: 6px; }
.ap-jchip{ font-family: var(--ap-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-muted); border: 1px solid var(--ap-line); border-radius: 2px; padding: 3px 8px; background: var(--ap-paper); }
.ap-jchip--exp{ color: var(--ap-navy); border-color: var(--ap-navy); }
.ap-job p{ font-size: 16px; color: var(--ap-ink-2); margin: 0 0 12px; text-align: left; }
.ap-job ul{ list-style: none; margin: 0; padding: 0; }
.ap-job li{ position: relative; padding: 5px 0 5px 20px; font-size: 15px; color: var(--ap-muted); text-align: left; }
.ap-job li::before{ content: "\2192"; position: absolute; left: 0; color: var(--ap-red); font-family: var(--ap-mono); font-size: 12px; }

/* require / don't-require comparison panels */
.ap-two{ display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: clamp(16px,2.4vw,26px); }
.ap-panel{ background: var(--ap-paper); border: 1px solid var(--ap-line); padding: 24px; border-left: 6px solid var(--ap-red); }
.ap-panel:nth-child(2){ border-left-color: var(--ap-navy); }
.ap-panel h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 0 0 14px; text-align: left; }
.ap-panel ul{ list-style: none; margin: 0; padding: 0; }
.ap-panel li{ position: relative; padding: 10px 0 10px 22px; font-size: 15.5px; color: var(--ap-ink-2); border-top: 1px dashed var(--ap-line); text-align: left; }
.ap-panel li:first-child{ border-top: 0; }
.ap-panel li::before{ content: "\2192"; position: absolute; left: 0; color: var(--ap-red); font-family: var(--ap-mono); font-size: 13px; }
.ap-panel:nth-child(2) li::before{ content: "\00d7"; color: var(--ap-navy); }

/* benefits tile grid */
.ap-tiles{ display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1px; background: var(--ap-line); border: 1px solid var(--ap-line); }
.ap-tile{ background: var(--ap-paper); padding: 24px; }
.ap-tile .ap-tile-code{ font-family: var(--ap-mono); font-size: 11px; letter-spacing: .16em; color: var(--ap-red); display: block; margin-bottom: 10px; }
.ap-tile h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1; margin: 0 0 8px; text-align: left; }
.ap-tile p{ font-size: 15.5px; color: var(--ap-ink-2); margin: 0; text-align: left; }

@media (max-width: 900px){
  .ap-job{ grid-template-columns: 60px minmax(0,1fr); }
  .ap-job-detail, .ap-job-act{ grid-column: 2 / -1; }
  .ap-job-act{ padding-top: 6px; }
}

/* director cards */
.ap-crew{ display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: clamp(18px,2.6vw,30px); }
.ap-dcard{ background: var(--ap-paper); border: 1px solid var(--ap-line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.ap-dcard-head{ display: flex; gap: 20px; align-items: center; padding: 24px 24px 20px; border-bottom: 2px dashed var(--ap-line); }
.ap-portrait{ flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; background: var(--ap-paper-2); border: 2px solid var(--ap-navy); display: grid; place-items: center; overflow: hidden; position: relative; }
.ap-portrait img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-portrait .ap-initials{ font-family: var(--ap-display); font-weight: 800; font-size: 30px; letter-spacing: .02em; color: var(--ap-ink-2); }
.ap-dcard-head h3{ font-family: var(--ap-display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px,3vw,32px); line-height: .95; margin: 0; text-align: left; }
.ap-drole{ font-family: var(--ap-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ap-red); margin: 8px 0 0; }
.ap-dcard-body{ padding: 22px 24px 6px; flex: 1; }
.ap-dcard-body p{ font-size: 16px; color: var(--ap-ink-2); }
.ap-remit{ margin: 0; padding: 0; list-style: none; font-size: 15px; }
.ap-remit li{ padding: 9px 0 9px 22px; border-top: 1px dashed var(--ap-line); position: relative; color: var(--ap-ink-2); text-align: left; }
.ap-remit li::before{ content: "\2192"; position: absolute; left: 0; top: 9px; color: var(--ap-red); font-family: var(--ap-mono); font-size: 13px; }
.ap-dcard-foot{ background: var(--ap-paper-2); border-top: 1px solid var(--ap-line); padding: 14px 24px; display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 12px; font-family: var(--ap-mono); }
.ap-dcard-foot span{ display: block; font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ap-muted); }
.ap-dcard-foot b{ font-weight: 600; font-size: 13px; letter-spacing: .02em; }

/* rules grid */
.ap-rules{ display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); border-top: 1px solid var(--ap-line-dark); }
.ap-rule{ padding: 26px 24px 30px; border-bottom: 1px solid var(--ap-line-dark); border-right: 1px solid var(--ap-line-dark); }
.ap-rule-code{ font-family: var(--ap-mono); font-size: 11px; letter-spacing: .16em; color: var(--ap-gold); display: block; margin-bottom: 12px; }
.ap-rule h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 0 0 8px; }
.ap-rule p{ font-size: 15.5px; line-height: 1.6; color: var(--ap-muted-dark); margin: 0; text-align: left; }

/* desk list */
.ap-desks{ border-top: 1px solid var(--ap-line); }
.ap-desk{ display: grid; grid-template-columns: 120px minmax(0,1fr) minmax(0,1.15fr); gap: 0 clamp(14px,2.4vw,32px); padding: 22px 0; border-bottom: 1px solid var(--ap-line); align-items: baseline; }
.ap-desk-code{ font-family: var(--ap-mono); font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ap-navy); }
.ap-desk h3{ font-family: var(--ap-display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1; margin: 0; text-align: left; }
.ap-desk p{ font-size: 15.5px; margin: 0; color: var(--ap-muted); text-align: left; }

.ap-rise{ opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.ap-rise.in{ opacity: 1; transform: none; }

@media (max-width: 900px){
  .ap-hero-grid, .ap-etym{ grid-template-columns: 1fr; }
  .ap-leg{ grid-template-columns: 72px 28px minmax(0,1fr); }
  .ap-leg-year{ font-size: 30px; }
  .ap-cta-in{ align-items: flex-start; }
}
@media (max-width: 820px){
  .ap-desk{ grid-template-columns: 1fr; gap: 6px; }
  .ap-dcard-head{ flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (prefers-reduced-motion: reduce){
  .ap-rise{ opacity: 1; transform: none; transition: none; }
}
