/* HERA, the interactive cycle graph (cycle.html) and the cycle guide (cycle-guide.html).
   Series colors: estrogen #0F3A52, progesterone #3E93C2, LH #15232B dotted, FSH #5C6C75 dashed.
   Checked with the palette validator: all pairs separate under color-blind simulation; identity is never color alone
   (legend, direct labels and dash patterns). Text stays in ink, never in a series color. */
.cyc{--c-e:#0F3A52;--c-p:#3E93C2;--c-lh:#15232B;--c-fsh:#5C6C75;padding:0;display:grid;grid-template-columns:minmax(0,1fr) 340px;overflow:hidden}
.cyc-main{padding:28px 28px 24px;min-width:0;display:flex;flex-direction:column;gap:14px}
.cyc-top{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.cyc-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;font-weight:500;color:var(--ink)}
.cyc-legend span{display:inline-flex;align-items:center;gap:8px}
.cyc-k{width:18px;height:0;border-top:2px solid var(--c-e);border-radius:2px}
.cyc-k--p{border-color:var(--c-p)}
.cyc-k--lh{border-top:2px dotted var(--c-lh)}
.cyc-k--fsh{border-top:2px dashed var(--c-fsh)}
.cyc-legend-more{display:none!important}
.cyc.is-more .cyc-legend-more{display:inline-flex!important}
.cyc-tools{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}
.cyc-play{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px 0 12px;border-radius:999px;border:1px solid var(--line);background:var(--white);font-size:13px;font-weight:500;color:var(--ink);transition:background-color .3s var(--ease),border-color .3s var(--ease)}
.cyc-play:hover{background:var(--tint)}
.cyc-play svg{width:12px;height:12px;fill:currentColor;flex:none}
.cyc-play .cyc-i-pause{display:none}
.cyc-play.on .cyc-i-play{display:none}
.cyc-play.on .cyc-i-pause{display:block}
.cyc-play.on{background:var(--tint);border-color:transparent}
.cyc-switch{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--ink);cursor:pointer;min-height:38px}
.cyc-switch input{position:absolute;opacity:0;width:1px;height:1px}
.cyc-switch i{width:34px;height:20px;border-radius:999px;background:rgba(21,35,43,.18);position:relative;transition:background-color .3s var(--ease);flex:none}
.cyc-switch i::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:var(--white);transition:transform .3s var(--ease)}
.cyc-switch input:checked+i{background:var(--ink)}
.cyc-switch input:checked+i::after{transform:translateX(14px)}
.cyc-switch input:focus-visible+i{outline:2px solid var(--ink-hover);outline-offset:3px}

.cyc-plot{position:relative;min-height:268px;width:100%}
.cyc-plot svg{display:block;width:100%;height:auto;touch-action:pan-y;cursor:ew-resize;user-select:none;-webkit-user-select:none;overflow:visible}
.cyc-plot text{font-family:var(--sans);-webkit-user-select:none;user-select:none}
.cyc-col{fill:var(--tint);opacity:0;transition:opacity .35s var(--ease)}
.cyc-col.on{opacity:1}
.cyc-grid{stroke:rgba(21,35,43,.07);stroke-width:1}
.cyc-axis{stroke:rgba(21,35,43,.22);stroke-width:1}
.cyc-tick{stroke:rgba(21,35,43,.22);stroke-width:1}
.cyc-tlbl{font-size:11px;fill:var(--muted)}
.cyc-band{opacity:0;transition:opacity 1s var(--ease) .7s}
.cyc-band--e{fill:var(--c-e)}
.cyc-band--p{fill:var(--c-p)}
.cyc.is-in .cyc-band--e{opacity:.07}
.cyc.is-in .cyc-band--p{opacity:.12}
.cyc-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cyc-line--e{stroke:var(--c-e)}
.cyc-line--p{stroke:var(--c-p)}
.cyc-line--lh{stroke:var(--c-lh);stroke-width:1.75;stroke-dasharray:.1 5}
.cyc-line--fsh{stroke:var(--c-fsh);stroke-width:1.5;stroke-dasharray:6 5;stroke-linecap:butt}
.cyc-draw{stroke-dasharray:1;stroke-dashoffset:1}
.cyc.is-in .cyc-draw{stroke-dashoffset:0;transition:stroke-dashoffset 1.7s cubic-bezier(.45,.05,.25,1)}
.cyc.is-in .cyc-line--p.cyc-draw{transition-delay:.25s}
.cyc.is-drawn .cyc-draw{stroke-dasharray:none;transition:none}
.cyc-more{opacity:0;transition:opacity .5s var(--ease);pointer-events:none}
.cyc.is-more .cyc-more{opacity:1}
.cyc-lbl{font-size:12px;font-weight:600;fill:var(--ink);stroke:var(--white);stroke-width:4px;stroke-linejoin:round;paint-order:stroke;opacity:0;transition:opacity .6s var(--ease) 1.2s}
.cyc.is-in .cyc-lbl{opacity:1}
.cyc-more .cyc-lbl{font-weight:500;fill:var(--ink-3);transition-delay:0s}
.cyc-seg{fill:rgba(21,35,43,.14);transition:fill .35s var(--ease)}
.cyc-seg.on{fill:var(--ink)}
.cyc-pname{font-size:11px;font-weight:500;fill:var(--muted);transition:fill .35s var(--ease),opacity .35s var(--ease)}
.cyc-pname.on{fill:var(--ink)}
.cyc--narrow .cyc-pname{opacity:0;font-size:12px}
.cyc--narrow .cyc-pname.on{opacity:1}
.cyc-pin{fill:var(--white);stroke:var(--ink);stroke-width:2;opacity:0;transition:opacity .3s var(--ease)}
.cyc-pin.on{opacity:1}
.cyc-mline{stroke:var(--ink);stroke-width:1.25;opacity:0;transition:opacity .5s var(--ease)}
.cyc-marker{opacity:0;transition:opacity .5s var(--ease)}
.cyc.is-marker .cyc-mline,.cyc.is-drawn .cyc-mline{opacity:.55}
.cyc.is-marker .cyc-marker,.cyc.is-drawn .cyc-marker{opacity:1}
.cyc.is-none .cyc-mline,.cyc.is-none .cyc-marker{opacity:0}
.cyc.is-none .cyc-day{font-size:30px;letter-spacing:-.01em}
.cyc.is-none .cyc-phase{font-size:20px;margin-top:4px}
.cyc-dot{stroke:var(--white);stroke-width:2}
.cyc-dot--e{fill:var(--c-e)}
.cyc-dot--p{fill:var(--c-p)}
.cyc-dot--more{fill:var(--c-lh);opacity:0;transition:opacity .4s var(--ease)}
.cyc-dot--fsh{fill:var(--c-fsh)}
.cyc.is-more .cyc-dot--more{opacity:1}
.cyc-knob{fill:var(--white);stroke:var(--ink);stroke-width:2;transition:r .2s var(--ease)}
.cyc.is-drag .cyc-knob,.cyc.is-kb .cyc-knob{r:8.5px}
.cyc.is-kb .cyc-pill rect{stroke:var(--accent-2);stroke-width:3}
.cyc-pill rect{fill:var(--ink)}
.cyc-pill text{font-size:12px;font-weight:600;fill:var(--white)}
.cyc-range{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}
.cyc-cap{margin:0;max-width:60ch}
.cyc-hint{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--muted)}

.cyc-side{border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.cyc-read{padding:28px 28px 24px;display:flex;flex-direction:column;gap:6px;min-height:268px}
.cyc-day{font-size:44px;line-height:1.05;font-weight:300;letter-spacing:-.02em;color:var(--ink);margin:8px 0 0;font-variant-numeric:tabular-nums}
.cyc-phase{font-family:var(--serif);font-style:italic;font-size:26px;line-height:1.15;color:var(--ink);margin:0}
.cyc-horm{font-size:15px;line-height:1.5;color:var(--ink-3);margin:6px 0 0}
.cyc-focus{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.cyc-focus p{font-size:15px;line-height:1.5;font-weight:500;color:var(--ink);margin:0}
.cyc-find{padding:24px 28px 28px;border-top:1px solid var(--line);background:var(--bg);display:flex;flex-direction:column;gap:14px;flex:1}
.cyc-fields{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:10px}
.cyc-find .input{background:var(--white);padding:0 12px;min-width:0}
.cyc-find .field label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cyc-find .btn{width:100%;justify-content:center}
.cyc-msg{font-size:14px;line-height:1.45;font-weight:500;color:var(--ink);margin:0}
.cyc-msg:empty{display:none}
.cyc-msg.bad{color:var(--ink-3);font-weight:400}
.cyc-irr{align-self:flex-start;font-size:14px;font-weight:500;color:var(--ink);text-align:left;padding:4px 0}
.cyc-find .small{margin:0;font-size:13px}

.cyc-mail{grid-column:1/-1;border-top:1px solid var(--line);background:var(--pale);padding:24px 28px;gap:0;opacity:0;transform:translateY(8px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.cyc-mail.on{opacity:1;transform:none}
.cyc-mail[hidden]{display:none}
.cyc-mail .form-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:8px 40px;align-items:center}
.cyc-mail-text strong{display:block;font-size:17px;font-weight:500;color:var(--ink);margin-bottom:4px}
.cyc-mail-text p{font-size:14px;line-height:1.5;color:var(--ink-3);margin:0}
.cyc-mail-row{display:flex;gap:10px}
.cyc-mail-row .input{background:var(--white);flex:1;min-width:0}
.cyc-mail-row .btn{flex:none;white-space:nowrap}
.cyc-mail-form{display:flex;flex-direction:column;gap:12px;min-width:0}
.cyc-mail .check{font-size:13px}
.cyc-mail .form-done{background:var(--white);padding:20px 24px}
.cyc-mail .form-done a{font-weight:500}

@media (max-width:1099px){
  .cyc{grid-template-columns:minmax(0,1fr)}
  .cyc-side{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}
  .cyc-read{min-height:0}
  .cyc-find{border-top:0;border-left:1px solid var(--line)}
  .cyc-mail{grid-column:auto}
}
@media (max-width:720px){
  .cyc-side{display:flex}
  .cyc-find{border-left:0;border-top:1px solid var(--line)}
  .cyc-mail .form-body{grid-template-columns:1fr;gap:12px}
}
@media (max-width:600px){
  .cyc-main{padding:18px 16px 16px;gap:10px}
  .cyc-top{gap:10px}
  .cyc-tools{width:100%;justify-content:space-between}
  .cyc-plot{margin:0 -6px;width:calc(100% + 12px)}
  .cyc-cap{font-size:13px}
  .cyc-read{padding:20px 18px 18px}
  .cyc-day{font-size:38px}
  .cyc-phase{font-size:24px}
  .cyc-focus{margin-top:10px}
  .cyc-find{padding:20px 18px 22px}
  .cyc-mail{padding:20px 18px}
  .cyc-mail-row{flex-direction:column}
  .cyc-mail-row .input{flex:none;width:100%}
  .cyc-mail-row .btn{width:100%;justify-content:center}
  #chart .head-side{display:none}
}
/* ---------- the compact graph on home ---------- */
.cyc--home .cyc-plot{min-height:236px}
.cyc--home .cyc-read{min-height:0;flex:1}
.cyc-dp{display:flex;flex-direction:column;gap:6px}
.cyc-cta{padding:22px 28px 28px;border-top:1px solid var(--line);background:var(--bg);display:flex;flex-direction:column;gap:12px}
.cyc-cta p{font-size:14px;line-height:1.5;color:var(--ink-3);margin:0}
.cyc-cta .btn{width:100%;justify-content:center}
.cyc-cta .buy-link{align-self:flex-start;margin-top:0}
@media (max-width:1099px){
  .cyc--home .cyc-cta{border-top:0;border-left:1px solid var(--line);justify-content:center}
}
@media (max-width:720px){
  .cyc--home .cyc-cta{border-left:0;border-top:1px solid var(--line)}
}
@media (max-width:600px){
  #month .head-side{display:none}
  /* legend above the plot, play and the caption under it */
  .cyc--home .cyc-top{display:contents}
  .cyc--home .cyc-legend{order:1}
  .cyc--home .cyc-plot{order:2}
  .cyc--home .cyc-tools{order:3;width:auto}
  .cyc--home .cyc-cap{order:4}
  .cyc--home .cyc-dp{flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
  .cyc--home .cyc-day{font-size:34px;margin-top:4px}
  .cyc--home .cyc-phase{font-size:22px}
  .cyc--home .cyc-horm{margin-top:2px}
  .cyc-cta{padding:18px 18px 20px}
}
@media (prefers-reduced-motion:reduce){
  .cyc-band,.cyc-lbl,.cyc-col,.cyc-seg,.cyc-marker,.cyc-mline,.cyc-mail,.cyc-more{transition:none!important}
  .cyc-draw{stroke-dasharray:none;stroke-dashoffset:0}
  .cyc-mail{transform:none}
}

/* ---------- cycle guide page ---------- */
.cg-gate{max-width:640px}
.cg-gate .card{display:flex;flex-direction:column;gap:16px}
.cg-gate h2{font-size:28px;font-weight:300;line-height:1.15;margin:0}
.cg-gate h2 em{font-family:var(--serif)}
.cg-gate .cyc-mail-row .input{background:var(--bg)}
.cg-sheet{display:flex;flex-direction:column;gap:56px}
.cg-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.cg-phases{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.cg-phases li{background:var(--white);border-radius:var(--r-card);padding:22px 20px;display:flex;flex-direction:column;gap:10px}
.cg-phases h3{font-size:19px;font-weight:500;line-height:1.2;margin:0}
.cg-phases p{font-size:14px;line-height:1.5;color:var(--ink-3);margin:0}
.cg-phases p strong{display:block;font-size:11px;letter-spacing:1.1px;text-transform:uppercase;font-weight:500;color:var(--muted);margin-bottom:3px}
.cg-block{display:flex;flex-direction:column;gap:18px}
.cg-block h2{font-size:30px;font-weight:300;line-height:1.15;margin:0}
.cg-block h2 em{font-family:var(--serif)}
.cg-block>p{max-width:66ch;margin:0}
.cg-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter)}
.cg-table{border-collapse:collapse;width:100%;min-width:860px;background:var(--white);border-radius:14px;overflow:hidden;font-size:12px}
.cg-table th,.cg-table td{border:1px solid var(--line);height:34px;padding:0 4px;text-align:center;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
.cg-table th[scope=row]{text-align:left;padding:0 12px;white-space:nowrap;font-weight:500;color:var(--ink);width:150px;font-size:13px}
.cg-table thead th{background:var(--tint);color:var(--ink);font-weight:500}
.cg-table caption{caption-side:top;text-align:left;font-size:14px;font-weight:500;color:var(--ink);padding:0 0 10px}
.cg-ev{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.cg-ev li{background:var(--white);border-radius:var(--r-card);padding:22px;display:flex;flex-direction:column;gap:10px}
.cg-ev p{font-size:15px;line-height:1.5;color:var(--ink-3);margin:0}
.cg-ev a{font-size:13px;font-weight:500;margin-top:auto}
@media (max-width:999px){
  .cg-phases{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cg-ev{grid-template-columns:1fr}
}
@media (max-width:600px){
  .cg-sheet{gap:40px}
  .cg-phases{grid-template-columns:1fr}
  .cg-block h2{font-size:26px}
}
@media print{
  @page{size:A4 landscape;margin:10mm}
  html,body{background:#fff!important;color:#000!important}
  .nav,.menu,.footer,.mbar,.wa-fab,.consent,.lb,.phero,.cg-gate,.cg-noprint,.season-bar{display:none!important}
  .section{padding:0!important;background:#fff!important}
  .cg-sheet{gap:18px}
  .cg-phases{grid-template-columns:repeat(5,1fr);gap:6px}
  .cg-phases li,.cg-ev li{border:1px solid #bbb;border-radius:8px;padding:10px;break-inside:avoid}
  .cg-phases h3{font-size:13px}.cg-phases p,.cg-ev p{font-size:10px}
  .cg-block{break-inside:avoid;gap:8px}
  .cg-block h2{font-size:16px}
  .cg-scroll{overflow:visible;margin:0;padding:0}
  .cg-table{min-width:0;font-size:9px}
  .cg-table th,.cg-table td{height:22px;border-color:#999}
  .cg-ev{grid-template-columns:repeat(3,1fr);gap:6px}
  [data-reveal]{opacity:1!important;transform:none!important;clip-path:none!important}
}
