/* content.css: the shared prose system for the search-surface pages.
   The generic half of mrs.css, lifted out so a content page can load
   tokens.css + landing.css + content.css and get the whole template
   without dragging in the MRS interpreter's tool styles.
   menopause-rating-scale.html keeps its own copy; this file is for the
   pages the generator builds. */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- hero ---------- */

.page-hero { padding: clamp(96px, 15vh, 150px) 0 clamp(40px, 6vh, 60px); }
.eyebrow {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--flash-deep); margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.06; }
.page-hero .lede {
  margin-top: 22px; font-size: clamp(1.06rem, 2.1vw, 1.24rem);
  line-height: 1.55; color: var(--muted); max-width: 40em;
}

/* the verbatim attribute claims, said in visible text on every surface */
.attr-strip {
  margin-top: 20px; font-size: 0.97rem; color: var(--muted);
  line-height: 1.7; max-width: 40em;
}
.attr-strip b { color: var(--ink); font-weight: 800; }

.jump { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px;   /* touch target */
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  color: var(--muted); background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  padding: 9px 17px; transition: color var(--dur-ui) var(--ease-out),
                                 border-color var(--dur-ui) var(--ease-out);
}
.jump a:hover { color: var(--flash-deep); border-color: var(--blush-deep); }

/* ---------- prose ---------- */

.prose { padding: clamp(60px, 9vh, 104px) 0; }
.prose h2 { margin-bottom: 20px; }
.prose h3 {
  margin-top: clamp(28px, 4vh, 38px); margin-bottom: 12px;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}
.prose p { color: var(--muted); max-width: 42em; }
.prose p + p { margin-top: 18px; }
.prose a { color: var(--flash-deep); font-weight: 700; text-underline-offset: 3px; }
.prose.alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.table-scroll { overflow-x: auto; margin: clamp(24px, 3vh, 32px) 0; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.94rem;
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); min-width: 33rem;
}
.data-table th, .data-table td {
  padding: 13px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink); background: var(--paper-2);
}
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; }
.data-table td { color: var(--muted); }
.table-note { max-width: 44em; font-size: 0.88rem; color: var(--faint); }

.caution {
  background: var(--card); border-left: 4px solid var(--flash);
  border-radius: var(--radius); padding: 18px 22px; color: var(--muted);
  box-shadow: var(--shadow-sm); margin: clamp(24px, 3vh, 32px) 0; max-width: 44em;
}
.caution b { color: var(--ink); font-weight: 800; }

.point-list { list-style: none; display: grid; gap: 14px; margin: 26px 0; max-width: 44em; }
.point-list li {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 22px; font-size: 0.96rem; color: var(--muted);
  line-height: 1.55; box-shadow: var(--shadow-sm);
}
.point-list b { color: var(--ink); font-weight: 800; display: block; margin-bottom: 4px; }

.citation-block {
  margin-top: 24px; background: var(--card); border-radius: var(--radius);
  padding: 18px 22px; font-size: 0.9rem; line-height: 1.6;
  box-shadow: var(--shadow-sm); max-width: 44em;
}
.citation-block b { color: var(--ink); }
.citation-block ol { margin: 0; padding-left: 1.2em; color: var(--muted); }
.citation-block li + li { margin-top: 8px; }

/* ---------- the hand-off to the check ---------- */

.limits {
  padding: clamp(64px, 10vh, 116px) 0; text-align: center;
  background: var(--paper-2); border-block: 1px solid var(--line);
}
.limits p { color: var(--muted); margin: 18px auto 0; max-width: 40em; }
.limits .voice {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.14rem, 2.4vw, 1.4rem); color: var(--ink);
  line-height: 1.4; margin-top: 26px; max-width: 24em;
}
.limits .btn { margin-top: clamp(28px, 4vh, 38px); }
.limits .closer-fine { margin-top: 18px; font-size: 0.84rem; }

/* ---------- related pages ---------- */

.related { padding: clamp(48px, 7vh, 76px) 0; }
.related h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; }
.related-grid a {
  display: block; background: var(--card); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: border-color var(--dur-ui) var(--ease-out);
}
.related-grid a:hover { border-color: var(--blush-deep); }
.related-grid b { display: block; color: var(--ink); font-weight: 800; font-size: 0.99rem; }
.related-grid span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 5px; line-height: 1.5; }

@media (max-width: 560px) {
  .data-table { min-width: 26rem; }
}

/* ---------- interactive tools ---------- */
/* The tools are progressive enhancement. Every page's static prose sits either side
   of the mount, so the page reads and crawls the same with JavaScript off. */

.tool-mount { margin: clamp(26px, 4vh, 36px) 0; }

.tk-card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(20px, 3.4vw, 30px);
  border: 1px solid var(--line);
}
.tk-step + .tk-step { margin-top: clamp(22px, 3vh, 30px); }
.tk-q {
  font-weight: 800; font-size: 1.02rem; color: var(--ink);
  margin-bottom: 4px; letter-spacing: -0.012em;
}
.tk-help { font-size: 0.87rem; color: var(--faint); margin-bottom: 12px; }

.tk-opts { display: grid; gap: 9px; }
.tk-opts.tk-row { grid-template-columns: repeat(auto-fit, minmax(7.4rem, 1fr)); }
.tk-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 46px; padding: 11px 15px; text-align: left;
  font: inherit; font-size: 0.94rem; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--line-2);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out),
              background var(--dur-ui) var(--ease-out);
}
.tk-opt:hover { border-color: var(--blush-deep); }
.tk-opt:focus-visible { outline: 3px solid var(--flash); outline-offset: 2px; }
.tk-opt[aria-checked="true"] {
  border-color: var(--flash-deep); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--flash-deep);
}
.tk-opt b { font-weight: 800; }
.tk-opt span { display: block; font-size: 0.82rem; color: var(--faint); margin-top: 2px; }

.tk-actions { margin-top: clamp(22px, 3vh, 30px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tk-note { font-size: 0.84rem; color: var(--faint); }

/* result */
.tk-result { margin-top: clamp(22px, 3vh, 30px); }
.tk-chip {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--flash); color: #fff;
  padding: 7px 15px; border-radius: var(--radius-pill);
}
.tk-chip.tk-flag { background: var(--ink); }
.tk-verdict {
  margin-top: 15px; font-size: clamp(1.04rem, 2.2vw, 1.2rem);
  line-height: 1.45; color: var(--ink); font-weight: 700;
}
.tk-detail { margin-top: 16px; display: grid; gap: 12px; }
.tk-detail > div {
  background: var(--paper-2); border-radius: var(--radius);
  padding: 14px 17px; font-size: 0.93rem; color: var(--muted); line-height: 1.55;
}
.tk-detail b { color: var(--ink); font-weight: 800; display: block; margin-bottom: 3px; }

/* the two-bar contrast readout on the mood checker */
.tk-bars { display: grid; gap: 13px; margin-top: 17px; }
.tk-bar-row { display: grid; grid-template-columns: 5.6rem 1fr 2.6rem; gap: 11px; align-items: center; }
.tk-bar-label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.tk-bar-track { height: 9px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.tk-bar-fill { height: 100%; background: var(--flash); border-radius: 99px; transition: width var(--dur-ui) var(--ease-out); }
.tk-bar-fill.tk-cool { background: var(--blush-deep); }
.tk-bar-num { font-size: 0.85rem; font-weight: 800; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* checklist */
.tk-check-group + .tk-check-group { margin-top: clamp(20px, 3vh, 28px); }
.tk-check-head {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--flash-deep); margin-bottom: 10px;
}
.tk-check { display: grid; gap: 7px; }
.tk-check-item {
  display: flex; align-items: flex-start; gap: 11px; min-height: 44px;
  padding: 10px 14px; background: var(--paper-2);
  border: 1.5px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; font-size: 0.94rem; color: var(--ink);
  transition: border-color var(--dur-ui) var(--ease-out);
}
.tk-check-item:hover { border-color: var(--blush-deep); }
.tk-check-item:focus-within { outline: 3px solid var(--flash); outline-offset: 2px; }
.tk-check-item input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--flash-deep); flex: none; }
.tk-check-item[data-on="1"] { border-color: var(--flash-deep); background: var(--card); }
.tk-count { margin-top: 18px; font-size: 0.94rem; color: var(--muted); }
.tk-count b { color: var(--ink); font-weight: 800; }

/* tracker */
.tk-week { display: grid; gap: 10px; }
.tk-hist { margin-top: clamp(22px, 3vh, 30px); }
.tk-hist table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tk-hist th, .tk-hist td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line); }
.tk-hist thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.tk-hist td { color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-empty { font-size: 0.9rem; color: var(--faint); font-style: italic; }

@media (max-width: 560px) {
  .tk-bar-row { grid-template-columns: 4.6rem 1fr 2.4rem; gap: 8px; }
}
