/* =====================================================================
   TRIWAYS — /capabilities/guides-experts/
   Loaded by that page only, after triways-article.css and
   triways-visual.css. Prefix: tv-ge-   (body.tv-ge)
   Colours and type come from the site tokens in triways-core.css
   (--hb-ink, --hb-ivory, --hb-white, --hb-gold, --hb-champagne) and
   --tv-brass-text from triways-visual.css. Nothing here styles the
   header, the navigation or the footer.
   ===================================================================== */

.tv-ge {
  --tv-ge-header: 3.8rem;                       /* the solid bar: 61px desktop, 54px mobile */
  --tv-ge-rule: rgba(166, 138, 91, 0.42);       /* --hb-gold as a hairline on ivory */
  --tv-ge-rule-dark: rgba(244, 240, 232, 0.16); /* ivory as a hairline on ink */
  --tv-ge-offset: 0.9rem;                       /* how far the brass frame sits off the photograph */
}

/* Brass small type on the light grounds (4.9:1 on ivory) */
.tv-ge .hb-section--ivory .hb-eyebrow,
.tv-ge .hb-section--white .hb-eyebrow { color: var(--tv-brass-text); }

/* ---------------------------------------------------------------------
   1 · HERO — the guide and the group behind the title; the direct answer
   is a brass-ruled panel at the right.
   ------------------------------------------------------------------- */
.tv-ge-hero { position: relative; isolation: isolate; overflow: hidden; padding: 0; }
.tv-ge-hero__media { position: absolute; inset: var(--tv-ge-header) 0 0; z-index: -1; overflow: hidden; background: var(--hb-ink); }
.tv-ge-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.tv-ge-hero__media::after {
  content: ""; position: absolute; inset: -1px;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.95) 0%, rgba(21, 21, 21, 0.88) 22%, rgba(21, 21, 21, 0.5) 42%, rgba(21, 21, 21, 0.14) 56%, rgba(21, 21, 21, 0.3) 100%),
    linear-gradient(180deg, rgba(21, 21, 21, 0.45) 0%, rgba(21, 21, 21, 0) 26%, rgba(21, 21, 21, 0) 62%, rgba(21, 21, 21, 0.72) 100%);
}
.tv-ge-hero__inner {
  display: flex; flex-direction: column;
  min-height: clamp(34rem, 26rem + 16vw, 43rem);
  padding-top: calc(var(--tv-ge-header) + clamp(2rem, 1.4rem + 2vw, 3.25rem));
  padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.25rem);
}
.tv-ge-hero .hub-crumbs { margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.tv-ge-hero__grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23.5rem);
  gap: clamp(2rem, 5vw, 6rem); align-items: start;
}
.tv-ge-hero .hb-eyebrow { color: var(--hb-champagne); }
.tv-ge-hero .hb-kicker::after { background: var(--hb-gold); opacity: 1; }
.tv-ge-hero .hub-hero__title { font-size: clamp(3.1rem, 2rem + 4.4vw, 5.6rem); line-height: 1; }
.tv-ge-hero .art-title-sub { margin-top: 1.1rem; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); }
.tv-ge-hero__card { padding: 1.6rem 1.75rem 1.7rem; border: 1px solid var(--hb-gold); background: rgba(21, 21, 21, 0.8); }
.tv-ge-hero__card .art-hero__label { color: var(--hb-champagne); }
.tv-ge-hero__card p { font-size: 0.95rem; line-height: 1.75; color: rgba(244, 240, 232, 0.9); max-width: none; }
.tv-ge-hero__card .art-named { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(200, 183, 156, 0.3); font-size: 0.68rem; letter-spacing: 0.18em; }

@media (max-width: 1023.98px) {
  /* the photograph stays behind the words, under a heavier wash */
  .tv-ge { --tv-ge-header: 3.375rem; }
  .tv-ge-hero__media img { object-position: 54% 50%; }
  .tv-ge-hero__media::after {
    background: linear-gradient(180deg, rgba(21, 21, 21, 0.72) 0%, rgba(21, 21, 21, 0.66) 34%, rgba(21, 21, 21, 0.86) 62%, rgba(21, 21, 21, 0.95) 100%);
  }
  .tv-ge-hero__inner { min-height: 0; }
  .tv-ge-hero__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2.25rem, 6vw, 3rem); }
  .tv-ge-hero__card { max-width: 34rem; }
}
@media (max-width: 479.98px) {
  .tv-ge-hero__card { padding: 1.35rem 1.25rem 1.4rem; }
}

/* ---------------------------------------------------------------------
   2 · A CAPABILITY, NOT A GIVEN — text left, the photograph right with a
   brass frame line set off its top-left corner.
   ------------------------------------------------------------------- */
.tv-ge-cap .art-duo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.tv-ge-cap .hb-kicker { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.tv-ge-cap .hb-kicker::after { order: -1; flex-basis: auto; width: 46px; opacity: 1; }
.tv-ge-cap .hb-heading--h2 { max-width: 15ch; }
.tv-ge-cap .art-prose__lead { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.05rem) !important; line-height: 1.28 !important; max-width: 24ch !important; }
.tv-ge-cap .art-prose p:not(.art-prose__lead) { font-size: 1rem; line-height: 1.8; color: var(--hb-text); max-width: 52ch; }

.tv-ge .hb-section--ivory .tv-ge-plate { max-width: none; margin: var(--tv-ge-offset) 0 0 var(--tv-ge-offset); }
.tv-ge-plate__frame { position: relative; isolation: isolate; }
.tv-ge-plate__frame::before {
  content: ""; position: absolute; z-index: -1;
  inset: calc(-1 * var(--tv-ge-offset)) var(--tv-ge-offset) var(--tv-ge-offset) calc(-1 * var(--tv-ge-offset));
  border: 1px solid var(--hb-gold);
}
.tv-ge-plate img { border-radius: 0; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 50%; }
.tv-ge .hb-section--ivory .tv-ge-plate figcaption { padding-top: 0; border-top: 0; margin-top: 1rem; font-size: 0.68rem; letter-spacing: 0.2em; color: var(--hb-text-dim); }

@media (max-width: 1023.98px) {
  .tv-ge-cap .art-duo { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .tv-ge-cap .hb-heading--h2 { max-width: 18ch; }
  .tv-ge-cap .art-prose__lead, .tv-ge-match__body .art-prose__lead { max-width: 30ch !important; }
  .tv-ge .hb-section--ivory .tv-ge-plate { max-width: 40rem; }
  .tv-ge-plate img { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------------
   3 · WHAT "EXPERT" MEANS HERE — four counted rows under hairlines:
   numeral, label and name, a line icon, the description. The numerals
   are CSS counters; the list is an <ol>.
   ------------------------------------------------------------------- */
.tv-ge-expert .hb-intro { max-width: 36rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.tv-ge-rows { counter-reset: tv-ge-row; margin-top: 0; border-top: 1px solid var(--tv-ge-rule-dark); }
.tv-ge-rows .art-register__row {
  counter-increment: tv-ge-row;
  grid-template-columns: 5.75rem minmax(0, 3.4fr) 3rem minmax(0, 6fr);
  gap: 1rem clamp(1.5rem, 3.4vw, 4rem); align-items: center;
  margin: 0 -1rem; padding: clamp(1.6rem, 2.6vw, 2.3rem) 1rem;
  border-bottom: 1px solid var(--tv-ge-rule-dark);
  transition: background-color 0.35s var(--hb-ease);
}
.tv-ge-rows .art-register__row::before {
  content: counter(tv-ge-row, decimal-leading-zero);
  font-family: var(--hb-serif); font-weight: 400; font-size: clamp(3rem, 2.3rem + 2vw, 4.25rem); line-height: 0.9;
  color: var(--hb-champagne); font-variant-numeric: lining-nums;
}
.tv-ge-rows .art-register__name { font-weight: 400; font-size: clamp(1.7rem, 1.35rem + 1.1vw, 2.3rem); transition: color 0.35s var(--hb-ease); }
.tv-ge-rows .art-register__tag { margin-bottom: 0.55rem; }
.tv-ge-rows__icon { display: block; width: 2.75rem; height: 2.75rem; color: var(--hb-champagne); fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; transition: opacity 0.35s var(--hb-ease); }
.tv-ge-rows .art-prose p { font-size: 0.97rem; line-height: 1.8; color: rgba(244, 240, 232, 0.8); max-width: 56ch; }
.tv-ge-rows .art-prose a, .tv-ge-expert .art-note a { color: var(--hb-champagne); border-bottom: 1px solid var(--hb-champagne); }
.tv-ge-rows .art-prose a:hover, .tv-ge-rows .art-prose a:focus-visible,
.tv-ge-expert .art-note a:hover, .tv-ge-expert .art-note a:focus-visible { color: #fff; border-color: #fff; }
.tv-ge-rows .art-prose a:focus-visible, .tv-ge-expert .art-note a:focus-visible { outline-color: var(--hb-champagne); }
.tv-ge-expert .art-note { margin-top: 1.75rem; max-width: 62ch; color: rgba(244, 240, 232, 0.72); }
@media (hover: hover) {
  .tv-ge-rows .art-register__row:hover { background-color: rgba(244, 240, 232, 0.035); }
  .tv-ge-rows .art-register__row:hover .art-register__name { color: var(--hb-champagne); }
  .tv-ge-rows .art-register__row:hover .tv-ge-rows__icon { opacity: 1; }
}

@media (max-width: 1023.98px) {
  .tv-ge-rows .art-register__row { grid-template-columns: 4.5rem minmax(0, 1fr) 2.5rem; align-items: start; row-gap: 1.1rem; }
  .tv-ge-rows .art-register__row::before { font-size: 3rem; }
  .tv-ge-rows__icon { width: 2.25rem; height: 2.25rem; justify-self: end; }
  .tv-ge-rows .art-prose { grid-column: 2 / -1; }
}
@media (max-width: 479.98px) {
  .tv-ge-rows .art-register__row { grid-template-columns: 3.4rem minmax(0, 1fr) 2rem; column-gap: 1rem; }
  .tv-ge-rows .art-register__row::before { font-size: 2.4rem; }
  .tv-ge-rows__icon { width: 2rem; height: 2rem; }
  .tv-ge-rows .art-prose { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------
   4 · HOW GUIDES ARE MATCHED — heading and a tall photograph left; the
   statement, the reasoning and six counted cells right.
   ------------------------------------------------------------------- */
.tv-ge-match .art-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5.5rem); }
.tv-ge-match .art-split__head { position: static; }
.tv-ge-match .art-split__head .hb-heading--h2 { max-width: 11ch; }
.tv-ge-match__photo { margin: clamp(2rem, 3.5vw, 2.75rem) 0 0; }
.tv-ge-match__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 64% 50%; background: var(--hb-ink-soft); }
.tv-ge-match__body { padding-left: clamp(1.5rem, 3vw, 3rem); border-left: 1px solid var(--tv-ge-rule); }
.tv-ge-match__body .art-prose__lead { font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.15rem) !important; line-height: 1.24 !important; max-width: 21ch !important; }
.tv-ge-match__body p:not(.art-prose__lead) { font-size: 1rem; line-height: 1.8; color: var(--hb-text); max-width: 60ch; }

.art-facts.tv-ge-cells {
  counter-reset: tv-ge-cell;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
  margin-top: clamp(2rem, 3.5vw, 2.75rem); border-top: 0;
}
.art-facts.tv-ge-cells > div {
  counter-increment: tv-ge-cell; display: block;
  padding: 1.15rem 1.2rem 1.35rem; border: 1px solid var(--tv-ge-rule);
}
.art-facts.tv-ge-cells dt { margin: 0 0 0.8rem; font-size: 0.64rem; letter-spacing: 0.18em; color: var(--tv-brass-text); }
.art-facts.tv-ge-cells dt::before { content: counter(tv-ge-cell, decimal-leading-zero) / ""; margin-right: 0.9em; font-weight: 500; letter-spacing: 0.1em; }
.art-facts.tv-ge-cells dd { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.22; text-wrap: balance; }

@media (max-width: 1199.98px) {
  .art-facts.tv-ge-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023.98px) {
  .tv-ge-match .art-split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .tv-ge-match .art-split__head .hb-heading--h2 { max-width: 16ch; }
  .tv-ge-match__photo { max-width: 40rem; }
  .tv-ge-match__photo img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
  .tv-ge-match__body { padding-left: 0; border-left: 0; }
}
@media (max-width: 599.98px) {
  .art-facts.tv-ge-cells { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------------
   5 · QUESTIONS — native <details>; the plus becomes a minus, the answer
   fades in. The whole question row is the 44px+ target.
   ------------------------------------------------------------------- */
.tv-ge-faq .hub-faq__head .hb-heading { max-width: 9ch; }
.tv-ge-faq .hb-faq { border-top-color: var(--tv-ge-rule); }
.tv-ge-faq .hb-faq__item { padding: 0; border-bottom-color: var(--tv-ge-rule); }
.tv-ge-faq .hb-faq__item > summary { min-height: 2.75rem; padding: 1.3rem 0; font-size: 1.25rem; line-height: 1.35; transition: color 0.25s var(--hb-ease); }
.tv-ge-faq .hb-faq__item > summary:hover { color: var(--tv-brass-text); }
.tv-ge-faq .hb-faq__item > summary:focus-visible { outline: 2px solid var(--hb-gold); outline-offset: 3px; }
.tv-ge-faq .hb-faq__item > summary::after { font-weight: 300; font-size: 1.5rem; color: var(--tv-brass-text); transition: none; }
.tv-ge-faq .hb-faq__item[open] > summary::after { content: "\2212"; transform: none; }
.tv-ge-faq .hb-faq__item > p { margin: 0; padding: 0 2.5rem 1.6rem 0; font-size: 1rem; line-height: 1.75; color: var(--hb-text); max-width: 64ch; }
.tv-ge-faq .hb-faq__item[open] > p { animation: tv-ge-fade 0.28s var(--hb-ease) both; }
@keyframes tv-ge-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1023.98px) {
  .tv-ge-faq .hub-faq__head .hb-heading { max-width: none; }
}
@media (max-width: 479.98px) {
  .tv-ge-faq .hb-faq__item > summary { font-size: 1.15rem; }
  .tv-ge-faq .hb-faq__item > p { padding-right: 0; }
}

/* ---------------------------------------------------------------------
   6 · BRIEF — words left, underline fields in the middle, the Nile
   coming in from the right edge and fading into the ink.
   ------------------------------------------------------------------- */
.tv-ge-brief { position: relative; isolation: isolate; overflow: hidden; }
.tv-ge-brief__media { display: none; }
.tv-ge-brief .art-enquiry__head .hb-heading--h2 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.7rem); }
.tv-ge-brief .art-form { gap: 1.9rem clamp(1.5rem, 3vw, 2.5rem); }
.tv-ge-brief .art-form input, .tv-ge-brief .art-form select, .tv-ge-brief .art-form textarea { border-bottom-color: rgba(244, 240, 232, 0.36); }
.tv-ge-brief .art-form__submit { margin-top: 0.75rem; }
.tv-ge-brief .art-form__submit .hb-cta { min-height: 3rem; transition: background-color 0.25s var(--hb-ease), color 0.25s var(--hb-ease); }
.tv-ge-brief .art-enquiry__head .hb-link, .tv-ge-brief .hub-close__direct { display: inline-flex; align-items: center; justify-content: flex-start; align-self: flex-start; min-height: 2.75rem; }
.tv-ge-brief .art-enquiry__direct { margin-top: 0.75rem; }

@media (min-width: 1200px) {
  .tv-ge-brief { --tv-ge-photo: 27vw; }
  .tv-ge-brief__media { display: block; position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: var(--tv-ge-photo); background: var(--hb-ink); }
  .tv-ge-brief__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
  .tv-ge-brief__media::after {
    content: ""; position: absolute; inset: -1px;
    background:
      linear-gradient(90deg, var(--hb-ink) 0%, rgba(21, 21, 21, 0.72) 26%, rgba(21, 21, 21, 0.18) 62%, rgba(21, 21, 21, 0.1) 100%),
      linear-gradient(180deg, rgba(21, 21, 21, 0.5) 0%, rgba(21, 21, 21, 0) 22%, rgba(21, 21, 21, 0) 74%, rgba(21, 21, 21, 0.6) 100%);
  }
  /* the text and the fields stop short of the photograph */
  .tv-ge-brief .art-enquiry {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2.5rem, 4.5vw, 5rem);
    padding-right: calc(var(--tv-ge-photo) - max(0px, (100vw - 1280px) / 2) + 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-ge-faq .hb-faq__item[open] > p { animation: none !important; }
  .tv-ge-rows .art-register__row, .tv-ge-rows .art-register__name, .tv-ge-rows__icon,
  .tv-ge-faq .hb-faq__item > summary, .tv-ge-brief .art-form__submit .hb-cta { transition: none !important; }
}
