/* ============================================================
   KET Digital, the search pages (2026-11-27): one page per problem and trade, written for a search people really
   type (the keyword map: War-Room-Vault, "SEO — Keyword Map"). Built on site.css (the home's ground, type, ember,
   header, footer, instruments, the light static); this file is only their layout: a hero, sections with the
   heading on the left and the answer on the right, a pair of panels, the questions, and the close.
   Each page's one conversion is the Revenue Leak Audit at /book; the button is in the sticky header on every screen.
   ============================================================ */
body.landing { --static-mask: linear-gradient(to left, #000 0, rgba(0, 0, 0, 0.45) 16%, transparent 44%); --static-o: 0.36; }
.l-wrap { max-width: 1400px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.l-hero { padding-top: clamp(32px, 8vh, 104px); padding-bottom: clamp(36px, 7vh, 88px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(360px, 4fr); gap: clamp(28px, 5vw, 80px); align-items: center; animation: rise 0.9s var(--ease) both; }
.l-hero-text { display: grid; gap: 26px; min-width: 0; }
.l-hero h1 { font-size: clamp(40px, 5.4vw, 76px); }   /* 76: the widest the column gets still holds "Missed-call text-back" on one line, so the heading stays three lines on a big monitor */
.l-hero .nb { white-space: nowrap; }
.l-hero h1, .l-sec h2, .l-close h2 { text-wrap: balance; }   /* no word left alone on the last line */
.l-hero .crumb { flex-wrap: wrap; row-gap: 4px; } .l-hero .crumb > * { white-space: nowrap; }
.l-hero .lede { max-width: 56ch; }

/* the example in the hero: the text conversation the page is about, start to finish */
.thread { margin: 0; padding: 18px 18px 16px; display: grid; gap: 14px; max-width: 26rem; justify-self: end; width: 100%; }
.thread figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--dim); }
.thread figcaption span, .thread .done span { white-space: nowrap; }
.thread ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.thread li { max-width: 88%; padding: 9px 12px 10px; border: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--ink); }
.thread li.out { justify-self: end; background: rgb(var(--i) / 0.07); border-color: rgb(var(--i) / 0.24); }
.thread li.in { justify-self: start; color: var(--dim); }
.thread .who { display: block; margin-bottom: 3px; font: 450 10px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--i) / 0.56); }
.thread li.out .who { color: var(--ember-ink); }
.thread .done { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.thread .done i { font-style: normal; color: var(--ember-ink); margin-right: 6px; }
.l-row { display: flex; flex-wrap: wrap; gap: 10px; }

.l-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 88px); padding-top: 56px; padding-bottom: 64px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.l-sec > header { display: grid; gap: 16px; align-content: start; }
.l-sec > header .tag { color: var(--dim); } .l-sec > header .tag i { font-style: normal; color: var(--ember-ink); }
.l-sec h2 { font-size: clamp(30px, 3.6vw, 58px); line-height: 0.98; letter-spacing: -0.04em; max-width: 14ch; }
.l-body { display: grid; gap: 22px; align-content: start; min-width: 0; }
.l-body > p { margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--dim); max-width: 60ch; }
.l-body a:not(.btn), .faq a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.l-body a:not(.btn):hover, .faq a:hover { color: var(--ember-ink); }

/* a list whose first column is a name, not a number */
.list.named li > span:first-child { width: 10.5em; color: var(--ink); font: 700 clamp(16px, 1.25vw, 18px)/1.45 var(--display); letter-spacing: -0.01em; text-transform: none; }

/* two panels side by side: what is known, what is not */
.l-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.l-two .panel { padding: 22px 24px 24px; display: grid; gap: 12px; align-content: start; }
.l-two h3 { font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
.l-two ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.l-two li, .l-two p { margin: 0; color: var(--dim); font-size: 16px; line-height: 1.5; }
.l-two li { padding-left: 18px; position: relative; }
.l-two li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--ember); }

/* the access list, as on the home */
.l-sheet { padding: 20px 24px 22px; display: grid; gap: 10px; max-width: 31rem; }
.l-sheet h3 { font-size: 24px; letter-spacing: -0.03em; }
.l-sheet ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.l-sheet ol li { display: flex; gap: 12px; color: var(--ink); } .l-sheet ol li::before { content: '\2713'; color: var(--ember-ink); }
.l-sheet p { margin: 0; color: var(--dim); }

/* the questions */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font: 700 clamp(17px, 1.4vw, 20px)/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 20px/1 var(--mono); color: var(--ember-ink); flex: none; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--dim); font-size: 17px; line-height: 1.55; max-width: 62ch; }

/* the close: the one thing to do next */
.l-close { border-top: 1px solid var(--line); padding-top: clamp(48px, 9vh, 110px); padding-bottom: clamp(56px, 10vh, 120px); display: grid; gap: 24px; }
.l-close h2 { font-size: clamp(38px, 5.6vw, 96px); max-width: 14ch; line-height: 0.92; letter-spacing: -0.045em; }
.l-more { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); margin: 0; }
.l-more a { text-decoration: none; } .l-more a:hover { color: var(--ink); }
.l-more a::after { content: ' \2192'; color: var(--ember-ink); }

/* a short computer window (a 13-inch laptop with the browser's bars showing): the first screen still holds the whole
   example and the button clear of the instruments, so the example is set tighter and the hero starts higher */
@media (min-width: 1001px) and (max-height: 840px) {
  .l-hero { padding-top: clamp(20px, 4vh, 40px); padding-bottom: 40px; }
  .l-hero-text { gap: 20px; }
  .thread { padding: 14px 16px 12px; gap: 10px; }
  .thread ol { gap: 6px; }
  .thread li { padding: 6px 11px 7px; font-size: 14px; }
  .thread .who { margin-bottom: 2px; }
  .thread .done { padding-top: 10px; }
}
@media (max-width: 1000px) { .l-hero { grid-template-columns: 1fr; } .thread { justify-self: start; } }
@media (max-width: 900px) {
  .l-sec { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; padding-bottom: 44px; }
  .l-two { grid-template-columns: 1fr; }
  .list.named li { flex-direction: column; gap: 4px; } .list.named li > span:first-child { width: auto; }
  .l-more { flex-direction: column; gap: 10px; }
  body.landing { --static-mask: radial-gradient(90% 30% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.3) 50%, transparent 85%); --static-o: 0.3; }
}
/* narrow phones: the header already says KET Digital, so the trail starts at the subject and stays one line */
@media (max-width: 374px) {
  .l-hero .crumb > a:first-child, .l-hero .crumb > a:first-child + span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .l-hero { animation: none; } }
