/* Guide pages: box breathing timer, box breathing guide, micro-breaks */
.guide-page{min-height:100vh;background:var(--paper);color:var(--ink)}
.guide-main{max-width:900px;padding-top:72px;padding-bottom:120px}
.guide-hero{max-width:820px}
.guide-hero h1{margin:6px 0 24px;font:400 clamp(44px,7vw,88px)/.95 SilenceSerif,Georgia,serif;letter-spacing:-.05em}
.guide-lede{margin:0;max-width:680px;color:var(--muted);font-size:19px;line-height:1.65}
.guide-meta{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 0;color:var(--muted);font-size:13px}
.guide-timer .guide-hero{margin-inline:auto;text-align:center}
.guide-timer .guide-lede{margin-inline:auto}

/* Timer */
.timer-card{margin:56px auto 0;max-width:760px;padding:52px 32px 28px;border:1px solid var(--line);border-radius:34px;background:rgba(247,244,237,.62);box-shadow:0 30px 80px rgba(39,34,24,.07);text-align:center}
.timer-stage-wrap{display:grid;place-items:center;padding:30px 0 6px}
.timer-stage{position:relative;width:min(300px,62vw);aspect-ratio:1}
.timer-square{position:absolute;inset:0;transform:scale(.9);will-change:transform}
.timer-svg,.cta-svg{display:block;width:100%;height:100%;overflow:visible}
.timer-svg .sq-track{fill:none;stroke:rgba(22,22,19,.13);stroke-width:1.6}
.timer-svg .sq-progress{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.timer-svg .sq-dot{fill:var(--ink)}
.timer-count{position:absolute;inset:0;display:grid;place-items:center;font:400 clamp(48px,9vw,66px)/1 SilenceSerif,Georgia,serif;font-variant-numeric:tabular-nums;pointer-events:none}
.timer-side{position:absolute;z-index:1;font-size:11px;font-weight:650;letter-spacing:.16em;line-height:1;text-transform:uppercase;white-space:nowrap;color:var(--muted);opacity:.42;transition:color .3s ease,opacity .3s ease}
.timer-side.on{color:var(--ink);opacity:1}
.timer-side.side-top{top:-24px;left:50%;transform:translateX(-50%)}
.timer-side.side-bottom{bottom:-24px;left:50%;transform:translateX(-50%)}
.timer-side.side-right{right:-24px;top:50%;transform:translate(50%,-50%) rotate(90deg)}
.timer-side.side-left{left:-24px;top:50%;transform:translate(-50%,-50%) rotate(-90deg)}
[dir="rtl"] .timer-side{letter-spacing:.04em}
.timer-status{min-height:1.6em;margin:34px 0 4px;font:400 22px/1.3 SilenceSerif,Georgia,serif;letter-spacing:-.01em}
.timer-meta{display:flex;justify-content:center;gap:16px;min-height:1.5em;margin:0;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.timer-actions{display:flex;justify-content:center;gap:10px;margin-top:22px}
.timer-main{min-width:160px}
.timer-options{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:18px 28px;margin-top:34px;padding-top:26px;border-top:1px solid var(--line)}
.timer-option{display:grid;gap:8px;justify-items:center}
.timer-option-label{color:var(--muted);font-size:11px;font-weight:650;letter-spacing:.12em;text-transform:uppercase}
.timer-chips{position:relative;display:inline-flex;padding:4px;border:1px solid var(--line);border-radius:999px;background:rgba(232,228,218,.55)}
.timer-chips label{position:relative;z-index:1;cursor:pointer}
.timer-chips input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.timer-chips span{display:block;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap;color:var(--muted);transition:color 220ms ease 40ms}
.timer-chips input:checked+span{color:var(--paper)}
.timer-chips input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.timer-pill{position:absolute;top:4px;bottom:4px;left:0;border-radius:999px;background:var(--ink);transition:transform 440ms var(--ease),width 440ms var(--ease)}
.timer-sound{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--muted);font-size:13px;cursor:pointer}
.timer-sound input{position:absolute;opacity:0;width:1px;height:1px}
.timer-switch{position:relative;width:38px;height:22px;border-radius:999px;background:rgba(22,22,19,.16);transition:background .25s var(--ease)}
.timer-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--white);box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform .3s var(--ease)}
.timer-sound input:checked+.timer-switch{background:var(--ink)}
.timer-sound input:checked+.timer-switch::after{transform:translateX(16px)}
.timer-sound input:focus-visible+.timer-switch{outline:2px solid var(--ink);outline-offset:3px}
.timer-card[data-state="done"] .timer-status{font-size:24px}

/* Article */
.guide-content{margin-top:72px}
.guide-content section{padding:36px 0;border-top:1px solid var(--line)}
.guide-content h2{margin:0 0 16px;font:400 clamp(28px,3.4vw,36px)/1.08 SilenceSerif,Georgia,serif;letter-spacing:-.025em}
.guide-content p,.guide-content li{color:var(--muted);font-size:16px;line-height:1.75}
.guide-content p{margin:0 0 14px}
.guide-content p:last-child{margin-bottom:0}
.guide-content strong{color:var(--ink);font-weight:600}
.guide-content ol,.guide-content ul{margin:0 0 14px;padding-inline-start:22px}
.guide-content li{margin-bottom:10px;padding-inline-start:4px}
.guide-content li::marker{color:var(--ink)}
.guide-content a{color:var(--ink);text-decoration-line:underline;text-decoration-color:rgba(22,22,19,.28);text-decoration-thickness:1px;text-underline-offset:.22em;transition:text-decoration-color .2s}
.guide-content a:hover{text-decoration-color:var(--ink)}
.guide-content a:focus-visible,.related-card:focus-visible,.footer-languages a:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:3px}
.guide-content .guide-safety{margin-top:12px;padding:26px 28px;border:0;border-radius:22px;background:var(--soft)}
.guide-safety h2{font-size:22px;margin-bottom:10px}
.guide-safety p{font-size:14px}
.guide-content .guide-sources{border-top:0;padding-top:28px}
.guide-sources h2{font:650 11px/1 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.17em;text-transform:uppercase;color:var(--muted)}
.guide-sources li,.guide-sources a{font-size:13px;line-height:1.6}
.guide-sources a{color:var(--muted)}

/* Extension call to action */
.guide-cta{display:grid;grid-template-columns:minmax(0,1fr) 150px;grid-template-areas:"copy mark" "actions actions";gap:26px 40px;margin-top:80px;padding:52px 48px;border-radius:34px;background:var(--dark);color:var(--white)}
.guide-cta-copy{grid-area:copy}
.guide-cta .eyebrow{color:rgba(247,244,237,.6);margin-bottom:16px}
.guide-cta h2{margin:0 0 14px;font:400 clamp(30px,4vw,44px)/1.04 SilenceSerif,Georgia,serif;letter-spacing:-.035em}
.guide-cta-copy>p:not(.eyebrow){margin:0;max-width:540px;color:rgba(247,244,237,.68);font-size:16px;line-height:1.7}
.guide-cta-mark{grid-area:mark;align-self:center;width:150px;height:150px;padding:24px;border-radius:34px;background:rgba(247,244,237,.05)}
.cta-svg .sq-track{fill:none;stroke:rgba(247,244,237,.2);stroke-width:9}
.cta-svg .sq-progress{fill:none;stroke:var(--white);stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.cta-svg .sq-dot{fill:var(--white);r:13px}
.guide-cta-actions{grid-area:actions;display:flex;flex-wrap:wrap;gap:10px}
.guide-cta-secondary{border-color:rgba(247,244,237,.22);color:var(--white)}
.guide-cta-secondary:hover{background:rgba(247,244,237,.08)}

/* Related pages */
.guide-related{margin-top:72px}
.guide-related h2{margin:0 0 18px;font:650 11px/1 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.17em;text-transform:uppercase;color:var(--muted)}
.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.related-card{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:88px;padding:22px 24px;border:1px solid var(--line);border-radius:22px;color:var(--ink);text-decoration:none;font:400 22px/1.2 SilenceSerif,Georgia,serif;letter-spacing:-.015em;transition:background .2s var(--ease),transform .2s var(--ease)}
.related-card:hover{background:rgba(22,22,19,.04);transform:translateY(-2px)}
.related-arrow{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:18px;color:var(--muted)}

/* Footer: guide links and language links */
.footer-languages{order:6;flex:1 1 100%;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:11px}
.footer-languages a{color:var(--muted);text-decoration:none}
.footer-languages a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.footer-languages a[aria-current="page"]{color:var(--ink);font-weight:600}

@media(max-width:900px){
  .footer-languages{order:5;width:100%;margin-top:6px}
}
@media(max-width:700px){
  .guide-main{padding-top:48px;padding-bottom:80px}
  .guide-lede{font-size:17px}
  .timer-card{margin-top:40px;padding:40px 16px 22px;border-radius:26px}
  .timer-options{gap:16px}
  .timer-chips span{padding:8px 12px}
  .guide-cta{grid-template-columns:1fr;grid-template-areas:"mark" "copy" "actions";padding:36px 24px;border-radius:26px}
  .guide-cta-mark{width:96px;height:96px;padding:16px;border-radius:24px}
  .guide-cta-actions{flex-direction:column}
  .related-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .timer-pill,.timer-side,.related-card{transition:none}
}
