/* Subject-specific lead visuals. All destinations and essential copy are static HTML. */
.consulting .intro.feature-hero::before {
  background: radial-gradient(ellipse at 83% 42%, #283e48, #111e26 45%, #0c151c 80%);
}
.feature-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 7%; }
.feature-layout > * { min-width: 0; }
.feature-layout h2, .brief-panel h2, .audit-sample h2 { font: 400 clamp(1.35rem, 2.3vw, 2.1rem)/1.2 var(--serif); }
.feature-layout summary, .feature-header summary { cursor: pointer; padding: .85rem 0; font: 600 .98rem/1.5 var(--sans); }
.feature-layout summary::marker, .feature-header summary::marker { color: #d8ac78; }
.brief-panel, .venue-panel, .page-finder, .audit-sample { margin: 0; padding: clamp(1.25rem, 3vw, 2.4rem); border: 1px solid #8a9c9f66; background-color: #14242c; }
.brief-panel h2, .audit-sample h2 { margin: 0 0 1rem; color: var(--gold); }
.brief-panel details, .correspondence details { border-top: 1px solid #88999b55; }
.brief-panel details > div, .correspondence details > div { padding-bottom: 1rem; font: 400 .95rem/1.65 var(--sans); color: #d5dfe0; }
.case-file { margin: 0; border: 0; padding: 0; }
.case-file legend, .office-clocks figcaption, .venue-panel figcaption {
  font: 400 clamp(1.45rem, 2.5vw, 2.25rem)/1.12 var(--serif); color: var(--gold); margin-bottom: 1.4rem;
}
.case-file input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.case-file label {
  display: inline-block; padding: .65rem 1rem; cursor: pointer;
  font: 600 .85rem/1.4 var(--sans); color: #e8d8c4;
  border: 1px solid #bdab9166; border-bottom: 0;
}
.case-file input:checked + label { color: #24323a; background: #e9d5b6; }
.case-file input:focus-visible + label { position: relative; z-index: 1; outline: 3px solid #ecb162; outline-offset: 2px; }
@media (forced-colors: active) {
  .case-file input:checked + label { border-top: 3px solid Highlight; }
}
.case-leaf {
  display: none; position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.65rem); min-height: 12rem;
  color: #17252d; background: #f5eddf; border-top: 3px solid #d0af7c;
  box-shadow: 1px 2px #c5b59c, 2px 4px #797365, 0 6px 12px #0003;
}
/* The lower right of the advisory photograph is a blank sheet of textured paper. */
.case-leaf::before {
  content: ""; position: absolute; right: 0; bottom: 0; z-index: -1;
  width: 250%; height: 320%; pointer-events: none;
  background: url("../images/advisory-drawing.webp") right bottom / cover no-repeat;
  filter: saturate(.55); opacity: .62;
}
.consulting .case-leaf p { margin: 0 0 1.15rem; color: inherit; font: 400 clamp(1.45rem, 2.5vw, 2.3rem)/1.2 var(--serif); }
.consulting .intro .case-leaf a { color: #593b22; font-size: .95rem; }
#case-settlement:checked ~ .settlement-leaf, #case-recovery:checked ~ .recovery-leaf { display: block; }
.venue-map { display: grid; grid-template-columns: minmax(5.4rem,.85fr) minmax(0,1.6fr); align-items: center; padding-block: .75rem; }
.venue-source { display: flex; align-items: center; gap: .45rem; padding: .5rem 0; font-size: .9rem; font-weight: 600; }
.venue-source::after { content: ""; flex: 1; border-top: 1px solid #718789; }
.venue-branches { padding-left: 1.3rem; }
.venue-line { position: relative; padding: .6rem 0 .6rem 1.45rem; border-left: 1px solid #718789; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.venue-line::before { content: ""; position: absolute; left: 0; top: 50%; width: 1rem; border-top: 1px solid #718789; }
.venue-line:nth-child(2)::before { left: -1.3rem; width: 2.3rem; }
.venue-line strong { color: #b2c1c4; font: 500 .8rem/1.3 var(--sans); }
.venue-down, .venue-panel:has(:checked) .venue-up { display: none; }
.venue-panel:has(:checked) .venue-down { display: inline; }
.venue-panel:not(:has(:checked)) .route-a, .venue-panel:has(:checked) .route-b { background: linear-gradient(90deg,#d1ac7628,transparent); }
.venue-panel:not(:has(:checked)) .route-a strong, .venue-panel:has(:checked) .route-b strong { color: var(--gold); font-weight: 650; }
.venue-panel:not(:has(:checked)) .route-a::before, .venue-panel:has(:checked) .route-b::before { border-color: var(--gold); border-width: 2px; }
.office-clocks { margin: 0; }
.office-clocks ul { display: grid; grid-template-columns: repeat(4,1fr); padding: 1.3rem 0; margin: 0; list-style: none; gap: .7rem; border-block: 1px solid #acc2c14a; }
.office-clocks li { display: grid; justify-items: center; gap: .4rem; font: 500 .85rem/1.5 var(--sans); }
.office-clocks time { color: var(--gold); font-variant-numeric: tabular-nums; }
.dial { position: relative; width: min(100%,5rem); aspect-ratio: 1; border-radius: 50%; border: 1px solid #bca27a; margin-bottom: .4rem;
  background: radial-gradient(circle,#1b2c34 59%,transparent 60%),repeating-conic-gradient(#cebb9e 0 1deg,transparent 1deg 30deg),#1b2c34; }
.dial::before, .dial::after { content: ""; position: absolute; bottom: 50%; left: calc(50% - 1px); width: 2px; height: 28%; background: var(--gold); transform-origin: bottom; transform: rotate(var(--hour)); }
.dial::after { height: 39%; width: 1px; background: #e6edef; transform: rotate(var(--minute)); }
.dial b { display: none; }
.correspondence { border: 1px solid #c5b08d75; padding: clamp(1.3rem,3vw,2.7rem); box-shadow: inset 0 4px #ac946f; background: linear-gradient(145deg,#2e393b,#16242b); }
.correspondence details:first-child { border: 0; }
.correspondence a { display: block; width: fit-content; line-height: 2; }
.page-finder label { display: block; font-size: .85rem; margin-top: 1rem; }
.page-finder input, .audit-sample input { display: block; box-sizing: border-box; width: 100%; margin: .25rem 0 .75rem; padding: .55rem; background: #faf6ed; color: #172127; border: 1px solid #b3b4ac; font: inherit; }
.page-finder [hidden], .audit-sample [hidden] { display: none; }
.page-finder ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.page-finder output { font-size: .9rem; }
.consulting .editorial-photo::before { background: linear-gradient(90deg,#0c151bf2 5%,#101921cf 39%,#11192314 76%), var(--photo) center 50% / cover; }
.editorial-photo.staff-photo { --photo: url("../images/team-review.webp"); }
.editorial-photo.desk-photo { --photo: url("../images/support-desk.webp"); }
.consulting .editorial-photo h1 { max-width: 15ch; }
.consulting .editorial-photo p { max-width: 49ch; }
#mainsite #about-section .section-header.feature-header {
  background: radial-gradient(ellipse at 85% 30%,#2c4349,#101c23 75%); color: #f8f3e9;
}
#mainsite #about-section .feature-header .section-title strong { color: #e4c299; }
.feature-header.split-header { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; gap: 6%; }
#mainsite #about-section .split-header .section-title { font-size: clamp(2.1rem,4vw,4.15rem); overflow-wrap: break-word; }
#mainsite #about-section .split-header > :last-child { width: 100%; margin: 0; }
#mainsite .feature-header .brief-panel, #mainsite .audit-sample, .ledger-trace, .policy-index {
  box-sizing: border-box; max-width: 36rem; margin: 1.5rem 0 0; text-align: left; color: #f1f1e9;
}
#mainsite .feature-header .brief-panel h2, #mainsite .audit-sample h2 { font: 400 1.6rem/1.2 var(--serif); color: var(--gold); text-transform: none; }
.audit-inputs { display: flex; gap: 1rem; margin: .8rem 0; }
.audit-inputs label { flex: 1; min-width: 0; font: 500 .9rem/1.5 var(--sans); }
.audit-sample output { font: 500 .95rem/1.6 var(--sans); color: #eee4d6; }
.policy-index { border-block: 1px solid #b6ab9877; }
.ledger-trace { margin: 0; padding: .4rem clamp(1.2rem, 3vw, 2.4rem); border: 1px solid #718285; background: #14242c; }
.ledger-trace summary { color: var(--gold); font: 400 clamp(1.35rem, 2vw, 1.9rem)/1.25 var(--serif); }
.ledger-trace ol { list-style: none; margin: .35rem 0 1.4rem .35rem; padding: 0; }
.ledger-trace li { position: relative; padding: 0 0 1.2rem 1.35rem; font: 400 .96rem/1.45 var(--sans); }
.ledger-trace li:not(:last-child) { border-left: 1px solid #958269; }
.ledger-trace li:last-child { padding-bottom: 0; }
.ledger-trace li::before { content: ""; position: absolute; top: 0; left: -.25rem; width: .5rem; height: .5rem; background: var(--gold); border-radius: 50%; }
.ledger-trace strong { display: block; }
.framework-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 2rem 6%; }
.framework-layout figure { margin: 0; padding: clamp(.8rem, 2vw, 1.6rem); border: 1px solid var(--rule); background: #fbfaf6; }
.framework-layout figure a, .framework-layout img { display: block; }
.framework-layout img { width: 100%; height: auto; }
.framework-layout p { margin-top: .65rem; color: var(--muted); }
.framework-layout p + h3 { margin-top: 1.5rem; }
.contract-excerpt { container-type: inline-size; padding: clamp(1.3rem,2.8vw,2.5rem); color: #1d3039; background: #f2f1ea; border-left: .32rem solid #9daea9; box-shadow: 0 1.2rem 2.5rem #07101844; }
.contract-excerpt header { color: #425751; font: 600 .75rem/1.5 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.consulting .contract-excerpt h2 { margin: 1rem 0; font-size: clamp(1.85rem,3vw,2.9rem); }
.clause-review { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.6rem; align-items: start; padding-top: 1rem; border-top: 1px solid #a5b2ad; }
.contract-excerpt blockquote { margin: 0; font: 400 1.16rem/1.5 var(--serif); }
.contract-excerpt mark { color: inherit; background: transparent; border-bottom: 2px solid #957341; }
.clause-review details { position: relative; padding-left: .8rem; border-left: 1px solid #967449; }
.clause-review details::before { content: ""; position: absolute; right: 100%; top: .8rem; width: 1.25rem; border-top: 1px solid #967449; }
.clause-review summary { padding: 0; font-size: .9rem; }
.consulting .clause-review p { color: #33443e; margin-top: .65rem; font: 400 .95rem/1.5 var(--sans); }
.contract-excerpt:has(details[open]) mark { background: #e9d6ab; }
@container (max-width: 25rem) {
  .clause-review { grid-template-columns: 1fr; gap: 1rem; }
  .clause-review details::before { width: 0; }
}
.entitlement-sheet { border-top: 3px solid #bb986b; background: linear-gradient(135deg,#22343c,#111f27); box-shadow: 0 1.3rem 3rem #07101850; }
.entitlement-sheet .audit-inputs { margin: 1.35rem 0 .5rem; }
.entitlement-sheet input { padding: .4rem .65rem; font: 400 clamp(1.8rem,3vw,2.7rem)/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.entitlement-sheet output { display: block; padding-top: 1rem; border-top: 1px solid #82939666; }
.specialist-band { background: #eee9de; }
.consulting .specialist-band .rows { padding: 0; }
.audit-checklist { margin: 0; padding-left: 1.8rem; max-width: 70ch; }
.audit-checklist li { padding: .85rem .4rem; border-bottom: 1px solid var(--rule); }
.audit-checklist li::marker { color: var(--bronze); font-weight: 600; }
@media (min-width: 53rem) {
  .specialist .cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3%; }
}
.policy-index nav { display: grid; gap: .5rem; padding-bottom: 1rem; }
.policy-index nav a { font: 500 .95rem/1.6 var(--sans); }
@media (max-width: 52rem) {
  .feature-header.split-header { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature-layout, .framework-layout { grid-template-columns: 1fr; gap: 2rem; }
  .case-file, .venue-panel, .office-clocks, .brief-panel, .correspondence, .page-finder { width: min(100%,36rem); }
  .consulting .editorial-photo::before { background: linear-gradient(90deg,#081118e8,#10192199), var(--photo) 65% center / cover; }
}
@media (max-width: 26rem) {
  .office-clocks ul { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .dial b { display: block; position: absolute; left: 50%; bottom: 50%; height: 42%; width: 1px; background: #bc8863; transform-origin: bottom; transform: rotate(var(--second)); }
  .editorial-photo::before { animation: editorial-focus 1.6s ease-out; }
  @keyframes editorial-focus { from { scale: 1.035; filter: blur(2px); } }
  .brief-panel details[open] > div, .case-leaf, .correspondence details[open] > div, .policy-index[open] nav { animation: resolve-detail .35s ease-out; }
  @keyframes resolve-detail { from { opacity: .4; } }
  .ledger-trace[open] li { animation: trace-stage .65s ease; }
  .ledger-trace[open] li:nth-child(2) { animation-delay: .25s; }
  .ledger-trace[open] li:last-child { animation-delay: .5s; }
  @keyframes trace-stage { 50% { background: #796442; } }
  .venue-panel:has(:checked) .route-b::before { transform-origin: left; animation: trace-venue .5s ease-out; }
  @keyframes trace-venue { from { transform: scaleX(0); } }
}
