/* Turtle guides and hubs (/menopause/, /cycle/, /strength/ and their guides). Built by docs/guides/build.py.
   Sits on top of styles.css + help-centre.css (nav, breadcrumb, footer, app-action card). No other libraries. */
.g { padding: 56px 0 80px; }
.g-col { max-width: 760px; min-width: 0; }
.g-col h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); letter-spacing: 0; margin-bottom: 22px; overflow-wrap: anywhere; }
.g-lede { font-size: 1.2rem; line-height: 1.65; color: var(--ink); max-width: 690px; }
.g-meta { color: var(--ink-soft); font-size: .92rem; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.g-col h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); letter-spacing: 0; margin: 54px 0 16px; }
.g-col h3 { margin: 30px 0 10px; }
.g-col p, .g-col li { max-width: 68ch; }
.g-col a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.g-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.g-list li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.g-list li::before { content: "\221E"; position: absolute; left: 0; top: 0; color: var(--apricot); font-weight: 700; }
.g-note { font-size: .9rem; color: var(--ink-soft); }
.g-quote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; }
.g-callout { margin: 22px 0; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--apricot-soft); border: 1px solid #F2D3C2; }

/* Key facts: the short, quotable answer */
.g-facts { margin: 30px 0 0; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--lilac); border: 1px solid var(--lilac-deep); }
.g-col .g-facts h2 { margin: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-deep); font-family: var(--body); font-weight: 700; }
.g-facts p { margin: 0; font-size: 1.06rem; line-height: 1.6; }

/* held for review */
.g-hold { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radius-sm); background: #FFF4E0; border: 2px solid var(--caution); }

/* tables */
.g-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 8px; max-width: 100%; }
.g-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .97rem; }
.g-table caption { text-align: left; font-weight: 600; padding-bottom: 10px; color: var(--ink); }
.g-table th, .g-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.g-table thead th { background: var(--ink); color: #fff; font-size: .88rem; font-weight: 600; }
.g-table th[scope="row"] { font-weight: 600; }
.g-table tbody tr:last-child th, .g-table tbody tr:last-child td { border-bottom: 0; }

/* checklists, steps, self-check */
.g-check, .g-steps, .g-self { margin: 26px 0 10px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.g-check__t { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0 0 12px; }
.g-check ul, .g-self ul { list-style: none; margin: 0; padding: 0; }
.g-check li { position: relative; padding: 8px 0 8px 34px; border-top: 1px solid var(--line); }
.g-check li:first-child { border-top: 0; }
.g-check li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 6px; background: var(--leaf); }
.g-check li::after { content: ""; position: absolute; left: 7px; top: 13px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.g-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.g-steps li { counter-increment: s; position: relative; padding: 10px 0 10px 46px; border-top: 1px solid var(--line); }
.g-steps li:first-child { border-top: 0; }
.g-steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.g-steps li b { display: block; }
.g-steps li span { color: var(--ink-soft); }
.g-self li { border-top: 1px solid var(--line); }
.g-self li:first-child { border-top: 0; }
.g-self label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.g-self input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.g-self input:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.g-self__count { margin: 12px 0 0; font-weight: 600; }
.g-self__band { margin: 10px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--lilac); }
html:not(.js) .g-js { display: none; }

/* charts (plain HTML bars) */
.g-chart { margin: 28px 0 10px; padding: 22px 22px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.g-chart figcaption, .g-phases figcaption, .g-week figcaption { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.g-sub { color: var(--ink-soft); font-size: .9rem; margin: 0 0 12px; }
.g-src { font-size: .85rem; color: var(--ink-soft); margin: 10px 0 0; }
.g-bars { list-style: none; margin: 0; padding: 0; }
.g-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.g-bars li:first-child { border-top: 0; }
.g-bars b { font-family: var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-bars i { grid-column: 1 / -1; display: block; height: 10px; border-radius: 5px; background: var(--lilac); overflow: hidden; }
.g-bars i span { display: block; height: 100%; border-radius: 5px; background: var(--brand); }
.g-bars li.hi i span { background: var(--apricot); }

/* cycle strip */
.g-phases { margin: 28px 0 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.g-phases__bar { display: flex; gap: 3px; margin: 14px 0 16px; }
.g-ph { min-width: 0; padding: 10px 8px; border-radius: 10px; color: var(--ink); overflow: hidden; }
.g-ph b { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ph small { display: block; font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
.g-ph--period { background: #F6C9BB; }
.g-ph--follicular { background: var(--lilac-deep); }
.g-ph--ovulation { background: #C9C7F3; }
.g-ph--luteal { background: #FBE3C9; }
.g-ph--late { background: #F4D2A6; }
.g-phases__list { list-style: none; margin: 0; padding: 0; }
.g-phases__list li { padding: 10px 0 10px 16px; border-top: 1px solid var(--line); border-left: 6px solid transparent; background: none !important; }
.g-phases__list li.g-ph--period { border-left-color: #E9967E; }
.g-phases__list li.g-ph--follicular { border-left-color: #B5B3EC; }
.g-phases__list li.g-ph--ovulation { border-left-color: var(--brand); }
.g-phases__list li.g-ph--luteal { border-left-color: #EBB97F; }
.g-phases__list li.g-ph--late { border-left-color: var(--apricot); }
.g-phases__list b { display: block; }
.g-phases__list span { color: var(--ink-soft); }

/* week grid */
.g-week { margin: 28px 0 10px; }
.g-week ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.g-week li { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.g-week li b { display: block; font-family: var(--display); margin-bottom: 4px; }
.g-week li span { color: var(--ink-soft); font-size: .95rem; }

/* myth vs evidence */
.g-myth { margin: 24px 0 10px; display: grid; gap: 12px; }
.g-myth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-myth__row p { margin: 0; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); }
.g-myth__m { background: #fff; }
.g-myth__f { background: var(--lilac); border-color: var(--lilac-deep) !important; }
.g-myth span { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 4px; }
.g-myth__f span { color: var(--brand-deep); }

/* hub cards */
.g-cards { list-style: none; margin: 22px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.g-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.g-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.g-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* CTA */
.g-cta { margin: 48px 0 8px; }
.g-cta__proof { font-size: .9rem; color: var(--ink-soft); }
.g-cta__quiz { margin: 16px 0 0; }

/* research */
.g-research ol { margin: 0; padding-left: 1.3em; }
.g-research li { margin-bottom: 16px; }
.g-research li p { margin: 0 0 4px; }
.g-ref { font-size: .88rem; color: var(--ink-soft); overflow-wrap: anywhere; }

/* FAQ */
.g-faq details { border-top: 1px solid var(--line); }
.g-faq details:last-child { border-bottom: 1px solid var(--line); }
.g-faq summary { cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.12rem; list-style: none; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--brand); }
.g-faq details[open] summary::after { content: "\2212"; }
.g-faq summary:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.g-faq details p { color: var(--ink-soft); }

/* related + small print */
.g-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.g-related a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--lilac-deep); text-decoration: none !important; font-weight: 600; }
.g-related a:hover { border-color: var(--brand); }
.g-small { font-size: .88rem; color: var(--ink-soft); margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 620px) {
  .g { padding: 34px 0 60px; }
  .g-facts, .g-check, .g-steps, .g-self, .g-chart, .g-phases { padding: 18px; }
  .g-myth__row { grid-template-columns: 1fr; }
  .g-table { font-size: .9rem; }
  .g-table th, .g-table td { padding: 10px 8px; }
  .g-ph small { display: none; }
  .g-ph b { font-size: .72rem; }
  .help-app-action { padding: 24px; }
}
