/* Lamplight, questions: the site's look since October 17, 2026 (the founder's pick). Every rule is scoped to
   html[data-look="lamplight"], which each page sets on its <html> tag; without it the page falls back to styles.css. */

/* Questions: 26 answers, made easy to scan. Each group is one lit panel (a page of the index) with its
   questions on fine lines, instead of 26 separate boxes, its heading beside it on wide screens. The questions are
   set in the book face (Caslon Text since November 4, 2026; the group headings Caslon Display) with a bare amber chevron, as in the home page's Questions box (October 31, 2026; until then
   Hanken in a round button, the stock FAQ look). An open question is "under the lamp": its words turn lamp amber,
   its chevron turns over in the lamp's hot centre, its row warms. Shared parts (header, page head, closing row,
   footer) are in site.css. The questions are native <details>, so all of this is looks only. */

/* Groups: on a seam of light, the heading in the book face */
/* (":not([hidden]) ~": only a group with a shown group above it, so the first one a search leaves starts like the first one does) */
html[data-look="lamplight"] .faq-group:not([hidden]) ~ .faq-group{border-top-color:transparent; background:var(--ll-seam-l) top left / 100% 1px no-repeat;}
html[data-look="lamplight"] .faq-group > h2{font-family:var(--ll-display); font-weight:400; font-size:clamp(2rem, 3vw, 2.625rem); line-height:1.08; letter-spacing:-0.006em; color:var(--ll-paper); font-synthesis:none;}   /* Caslon Display: 32px and up, never smaller */
@media (min-width:861px){
  html[data-look="lamplight"] .faq-group > h2{padding-top:10px;}   /* lines up with the first question's words */
}

/* One group's questions: one raised panel, its top edge catching the light */
html[data-look="lamplight"] .faq-list{gap:0; overflow:clip; border:1px solid transparent; border-radius:22px;
  background:linear-gradient(180deg, #2A1214 0%, #221012 55%, #1E0C0E 100%);
  box-shadow:inset 0 1px 0 rgba(255,226,186,.18), inset 0 0 0 1px rgba(244,182,110,.12), 0 2px 3px rgba(4,1,2,.5), 0 26px 56px -32px rgba(4,1,2,.92), 0 40px 100px -60px rgba(244,150,70,.16);}
/* each question a row on a fine line (inset from the panel's edges: from the words to the round button's edge) */
html[data-look="lamplight"] .qa{border:0; border-radius:0; background:transparent;}
html[data-look="lamplight"] .qa + .qa{background:linear-gradient(var(--ll-line), var(--ll-line)) left 22px top / calc(100% - 38px) 1px no-repeat;}
html[data-look="lamplight"] .qa[open]:not([data-closing]){background-color:rgba(255,206,150,.045);}   /* data-closing: closing after a tap looks shut at once (questions.html) */
html[data-look="lamplight"] .qa > summary{min-height:62px; padding:15px 16px 15px 22px; border-radius:0; color:var(--ll-paper); font-size:1.125rem; transition:background-color 150ms ease, color 150ms ease;}
html[data-look="lamplight"] .qa[open]:not([data-closing]) > summary .qa-q{color:var(--ll-amber-2);}
html[data-look="lamplight"] .qa-q{text-wrap:balance;   /* a two-line question splits evenly, not with one word on its own line */
  font-family:var(--ll-serif); font-weight:400; font-size:clamp(1.1875rem, 1.6vw, 1.375rem); line-height:1.28; letter-spacing:-0.004em;}
/* the chevron: bare, in lamp amber; open, it is turned over (the page's rule) in the lamp's hot centre */
html[data-look="lamplight"] .qa-icon{color:var(--ll-amber);}
html[data-look="lamplight"] .qa[open]:not([data-closing]) .qa-icon{color:var(--ll-amber-2);}
/* the answer: reading text, a little roomier */
html[data-look="lamplight"] .qa-a{padding:0 22px 24px; color:var(--ll-ink-2);}
html[data-look="lamplight"] .qa-a p{line-height:1.65;}
html[data-look="lamplight"] .qa-more{padding-top:2px;}
@media (hover:hover) and (pointer:fine){
  html[data-look="lamplight"] .qa > summary:hover{background-color:rgba(255,206,150,.05);}
  html[data-look="lamplight"] .qa > summary:hover .qa-q{color:var(--ll-amber-2);}
  html[data-look="lamplight"] .qa > summary:hover .qa-icon{color:var(--ll-amber-2);}
}
/* Keyboard focus: the ring inside the row, so it isn't cut by the panel's edge */
html[data-look="lamplight"] .qa > summary:focus-visible{outline-offset:-4px; border-radius:20px;}
@supports selector(:has(*)){
  html[data-look="lamplight"] .qa:has(> summary:focus-visible){outline-offset:-3px; border-radius:20px;}
}

@media (max-width:860px){
  html[data-look="lamplight"] .faq-group > h2{margin-bottom:18px;}
}
@media (max-width:720px){
  html[data-look="lamplight"] .faq-list{border-radius:18px;}
  html[data-look="lamplight"] .qa + .qa{background-position:left 18px top; background-size:calc(100% - 30px) 1px;}
  html[data-look="lamplight"] .qa > summary{min-height:60px; padding:14px 12px 14px 18px; font-size:1.0625rem;}
  html[data-look="lamplight"] .qa-a{padding:0 18px 20px;}
  html[data-look="lamplight"] .qa > summary:focus-visible, html[data-look="lamplight"] .qa:has(> summary:focus-visible){border-radius:16px;}
}

/* Windows high contrast: plain lines between the questions, no glows */
@media (forced-colors: active){
  html[data-look="lamplight"] .faq-list{border:1px solid CanvasText;}
  html[data-look="lamplight"] .qa + .qa{border-top:1px solid CanvasText;}
  html[data-look="lamplight"] .faq-group:not([hidden]) ~ .faq-group{border-top:1px solid CanvasText;}
  html[data-look="lamplight"] .qa[open]:not([data-closing]) .qa-icon{forced-color-adjust:none; color:Highlight;}
}

/* The search box (October 29, 2026): under the heading, a field as wide as a short line, its note under it. */
html[data-look="lamplight"] .faq-search{display:flex; flex-direction:column; gap:8px; max-width:520px; margin:clamp(24px, 3vw, 32px) 0 28px;}
/* With scripts on, its place is kept from the first paint (questions-search.js shows it a moment later), so the
   questions under it never drop; without scripts it stays out (it would do nothing). */
html.js .faq-search[hidden]{display:flex !important; visibility:hidden;}
/* The clear cross: still drawn 14px, but a 44px tap area (the site's rule for anything tapped on a phone) */
html[data-look="lamplight"] .faq-search input[type="search"]::-webkit-search-cancel-button{width:44px; height:44px; margin:-12px -14px -12px -4px;}
html[data-look="lamplight"] .faq-search label{font-size:0.9375rem; font-weight:500; color:var(--ll-brass);}
html[data-look="lamplight"] .faq-search input{width:100%; min-height:52px; font-size:1.0625rem;}
html[data-look="lamplight"] .faq-search-note{margin:0; min-height:1.5em; font-size:0.9375rem; color:var(--ink-3);}
