/* Reading pages: the Q&A (/faq) and the Policies (/policies), linked by both page modules through
   `styles` (src/layout.mjs). Builds on site.css: tokens, grid, labels, the shared disclosure
   (.qa__item). Long-form text at a measure of about 66 characters (32.5em of Commissioner at 17 px),
   ruled like a specification sheet, no numbers ("Sa signature"), the title kept in view on desktop. */

.reading {
  width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto;
  padding-top: clamp(40px, 5.4vw, 96px);
}
.reading__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.reading__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 44px); }
.reading__body { grid-column: 6 / -1; }
.reading__title { margin: 0; font: 400 var(--t-xl)/1 var(--serif); letter-spacing: -.01em; }
.reading__byline { margin: 26px 0 0; font: var(--label-weight) 12px/1.45 var(--caps); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--label); }
.reading__byline a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; transition: text-decoration-color .3s var(--ease); }
.reading__byline a:hover { text-decoration-color: var(--accent); }

/* Policies: the index of her rules under the title. */
.reading__index { margin-top: clamp(32px, 3.4vw, 52px); }
.reading__index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.reading__index-list > li { border-bottom: 1px solid var(--line); }
.reading__index-link {
  display: flex; align-items: baseline;
  min-height: 44px; padding: 13px 0 11px;
  font: var(--label-weight) 12px/1.45 var(--caps); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--brown); text-decoration: none;
  transition: color .3s var(--ease);
}
.reading__index-link:hover { color: var(--ink); }
.reading__index-link:hover > span:last-child { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }

/* ---------- Q&A: her questions, her answers in place ---------- */
.reading .qa { border-top: 1px solid var(--line-strong); }
.reading .qa__item { border-bottom: 1px solid var(--line); }
.reading .qa__item > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; align-items: baseline; padding: 22px 0 21px; }
.reading .qa__item > summary::after { margin-left: 28px; }
.reading .qa__title { display: block; font: 400 clamp(21px, .55vw + 17px, 26px)/1.28 var(--serif); letter-spacing: 0; text-wrap: balance; transition: color .3s var(--ease); }
.reading .qa__item > summary:hover .qa__title { color: var(--brown); }
.reading .qa__answer { max-width: none; padding: 0 0 40px; }

/* Her answers: paragraphs, her lists (marks in her brown hung in the margin), her labelled lines. */
.answer { font-size: 17px; line-height: 1.66; color: var(--fg); }
.answer > * { max-width: 32.5em; }
.answer p, .answer__list, .answer__lines { margin: 0 0 1em; }
.answer > :last-child { margin-bottom: 0; }
.answer__strong { color: var(--fg); }
.answer__heading { margin: 1.8em 0 .9em; padding-top: 1.5em; border-top: 1px solid var(--line); font: 400 clamp(20px, .4vw + 17px, 23px)/1.3 var(--serif); letter-spacing: 0; }
.answer__list { padding: 0; list-style: none; }
.answer__list > li { position: relative; padding-left: 1.45em; }
.answer__list > li + li { margin-top: .32em; }
/* the mark is a border, so it snaps to whole pixels and keeps its colour */
.answer__list > li::before { content: ''; position: absolute; left: 0; top: .83em; width: .6em; height: 0; border-top: 1px solid var(--accent); }
.answer__list--ol { padding-left: 1.45em; list-style: decimal outside; }
.answer__list--ol > li { padding-left: .25em; }
.answer__list--ol > li::before { display: none; }
.answer__list--ol > li::marker { font-family: var(--caps); font-size: 12px; color: var(--accent); }
.answer__line { margin: 0; }
.answer__lines .answer__line + .answer__line { margin-top: .55em; }
.answer__line dt { font-weight: 500; }
.answer__line dd { margin: .12em 0 0; }
.answer__line dd > .answer__list { margin: .35em 0 0; }
/* A run of short labels ("Day 1:", "Moisturize:"...) is set as a table. */
.answer__lines--table .answer__line { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: 18px; align-items: baseline; }
.answer__lines--table .answer__line dd { margin: 0; }
.answer__lines--table .answer__line dd > .answer__list { margin-top: 0; }

/* ---------- Policies: her rules ---------- */
.clause { display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline; padding: 28px 0 34px; border-top: 1px solid var(--line); }
.clause:first-child { padding-top: 26px; border-top-color: var(--line-strong); }
.clause:target { border-top-color: var(--accent); }
.clause__title { grid-column: 1; margin: 0; font: 400 clamp(23px, .6vw + 19px, 30px)/1.2 var(--serif); letter-spacing: 0; text-wrap: balance; }
.clause__text { grid-column: 1; max-width: 32.5em; margin-top: 16px; font-size: 17px; line-height: 1.66; }
.clause__text p { margin: 0 0 .9em; }
.clause__text p:last-child { margin-bottom: 0; }

@media (max-width: 899px) {
  .reading__head, .reading__body { grid-column: 1 / -1; }
  .reading__head { position: static; margin-bottom: 40px; }
  .reading__byline { margin-top: 18px; }
}
@media (max-width: 599px) {
  .reading .qa__item > summary { padding: 18px 0 17px; }
  .reading .qa__item > summary::after { margin-left: 18px; }
  .reading .qa__answer { padding-bottom: 32px; }
  .answer, .clause__text { font-size: 16.5px; }
  .answer__lines--table .answer__line { display: block; }
  .answer__lines--table .answer__line dd { margin-top: .12em; }
  .clause { padding: 22px 0 28px; }
}

/* ---------- v3 (27 Nov): the reading pages join the rest of the site ----------
   Her byline as a section label (sentence case, the olive ring of her mapping pin, no underlined
   capitals), the Q&A as soft rounded cards that open in place, the Policies index as rounded rows and
   each of her rules on its own soft card. */
.reading__byline {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font: 500 13.5px/1.4 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--ink);
}
.reading__byline::before { content: ''; flex: none; width: 7px; height: 7px; border: 1.5px solid var(--olive); border-radius: 50%; }
.reading__byline a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 5px; }

.reading .qa { display: grid; gap: 8px; border-top: 0; }
.reading .qa__item { border: 0; border-radius: 18px; background: var(--card); transition: background-color .35s var(--ease); }
.reading .qa__item:hover, .reading .qa__item[open] { background: var(--panel); }
.reading .qa__item:target { box-shadow: inset 0 0 0 1.5px rgba(85, 98, 75, .45); }
.reading .qa__item > summary { align-items: center; padding: 20px 24px; }
.reading .qa__item > summary:hover .qa__title { color: inherit; }
.reading .qa__title { font-size: clamp(19px, .45vw + 15.5px, 23px); line-height: 1.3; }
.reading .qa__answer { padding: 0 24px 30px; }

.reading__index-list { display: grid; gap: 6px; border-top: 0; }
.reading__index-list > li { border: 0; }
.reading__index-link {
  min-height: 48px; padding: 12px 18px; border-radius: 14px; background: var(--card);
  font: 400 15px/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink);
  transition: background-color .35s var(--ease);
}
.reading__index-link:hover { background: var(--panel); color: var(--ink); }
.reading__index-link:hover > span:last-child { text-decoration: none; }

.reading--policies .reading__body { display: grid; gap: 8px; }
.clause, .clause:first-child { padding: clamp(24px, 2.4vw, 34px) clamp(22px, 2.6vw, 40px); border: 0; border-radius: 18px; background: var(--card); }
.clause:target { box-shadow: inset 0 0 0 1.5px rgba(85, 98, 75, .45); }
.clause__title { font-size: clamp(21px, .5vw + 18px, 26px); }
@media (max-width: 599px) {
  .reading .qa__item > summary { padding: 18px; }
  .reading .qa__answer { padding: 0 18px 24px; }
  .clause, .clause:first-child { padding: 22px 18px 24px; }
}

/* v3 (27 Nov), second pass: the title and her byline (or the Policies index) on a soft panel that
   stays in view on desktop; the index as pills; the plus in a white round; titles in the light
   weight of the rest of the site; a panel at the end with Text the studio and Book Now. */
.reading__title { font-weight: 300; letter-spacing: -.03em; }
.reading__head { padding: clamp(26px, 3vw, 44px); border-radius: var(--r-lg); background: var(--panel); }
.reading__index-list { display: flex; flex-wrap: wrap; gap: 6px; }
.reading__index-link { min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 14.5px; white-space: nowrap; }
.reading__index-link:hover { background: var(--card); }
.reading .qa__item > summary::after {
  width: 36px; height: 36px; margin-left: 20px; border-radius: 50%; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat, #fff;
}
.still-ask { margin: clamp(48px, 5vw, 80px) var(--inset) 0; padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 80px); border-radius: var(--r-lg); background: var(--panel); }
.page--faq main > .still-ask:last-child, .page--policies main > .still-ask:last-child { padding-bottom: clamp(40px, 5vw, 72px); }
.still-ask__inner { width: min(var(--max), 100%); margin: 0 auto; }
.still-ask__title { margin: 0; font: 300 clamp(30px, 1.8vw + 20px, 48px)/1.08 var(--serif); letter-spacing: -.03em; }
.still-ask__actions { align-items: flex-start; margin-top: clamp(22px, 2.4vw, 32px); gap: 12px; }
.still-ask__sms { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.still-ask__sms .sms-detail { padding-left: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 899px) { .reading__head { margin-bottom: 24px; } }
/* the keyboard ring on the card itself, with its rounded corners */
.reading .qa__item:has(> summary:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.reading .qa__item > summary:focus-visible { outline: none; }
