.frequency-tool-page{--lm-green:#0e9066;--lm-green-dark:#00875f;--lm-mint:#eafaf3;--lm-coral:#f0644f;--tool-ink:#173c32;color:var(--tool-ink);background:#fff}
.frequency-tool-page *{box-sizing:border-box}
.frequency-tool-page a,.frequency-tool-page button,.frequency-tool-page label{touch-action:manipulation}
.tool-skip-link{position:fixed;z-index:1000;top:.5rem;left:.5rem;padding:.65rem .9rem;background:#fff;color:var(--lm-green-dark);transform:translateY(-160%)}
.tool-skip-link:focus-visible{transform:translateY(0)}
.tool-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.frequency-tool-page .tool-wrap{width:min(100% - 2rem,70rem);margin-inline:auto}
.frequency-tool-page main{padding:1.25rem 0 1.5rem}
.frequency-tool-page .tool-intro{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,23rem),1fr));gap:clamp(1.5rem,4vw,3rem);padding:0;align-items:center;margin:0 0 3rem}
.tool-hero-copy{min-width:0;padding:.5rem 0}
.tool-kicker,.result-label{display:flex;gap:.5rem;align-items:center;margin:0 0 1rem;color:var(--lm-green-dark);font-size:.82rem;font-weight:700;line-height:1.6}
.tool-intro h1{margin:0;font-size:clamp(1.75rem,2.8vw,2.25rem);line-height:1.35;letter-spacing:-.025em;overflow-wrap:anywhere}
.tool-hero-subtitle{margin:1rem 0 0;font-size:clamp(1.05rem,2.4vw,1.35rem);line-height:1.75;font-weight:700}
.tool-lead{margin:1rem 0 1.4rem;max-width:34rem;font-size:1rem;line-height:1.9}
.tool-hero-image{min-width:0;margin:0;overflow:hidden;border-radius:1rem;background:var(--lm-mint)}
.tool-hero-image img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:right center}
.frequency-tool-page .tool-checker{max-width:54rem;margin:0 auto;padding:clamp(1rem,4vw,2.5rem);background:#f6fbf8;border:1px solid #d7e3dc;border-radius:1rem}
.tool-checker-heading{display:flex;align-items:center;gap:1rem;margin-bottom:1.75rem}
.tool-checker-heading>div{min-width:0}
.tool-checker-heading p{margin:0 0 .25rem;color:#52615a;font-size:.85rem}
.tool-checker-heading h2{margin:0;font-size:clamp(1.35rem,3vw,1.8rem);line-height:1.6}
.tool-checker-icon{display:grid;place-items:center;flex-shrink:0;width:3.25rem;height:3.25rem;border-radius:.8rem;background:var(--lm-mint);color:var(--lm-green-dark)}
.tool-checker-icon svg{width:2rem;height:2rem}
.tool-form{display:grid;gap:1.75rem;margin:0;scroll-margin-top:6rem}
.tool-form fieldset{min-width:0;margin:0;padding:0 0 1.75rem;border:0;border-bottom:1px solid #d7e3dc}
.tool-form legend{max-width:100%;padding:0;font-size:clamp(1rem,2.4vw,1.12rem);font-weight:700;line-height:1.8;overflow-wrap:anywhere}
.tool-form legend span{display:inline-block;margin-right:.5rem;color:var(--lm-green);font-family:Manrope,sans-serif}
.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:.65rem;margin-top:1rem}
.choice-grid label{min-width:0;cursor:pointer;position:relative}
.choice-grid input{position:absolute;opacity:0;width:1px;height:1px}
.choice-grid label>span{display:flex;align-items:center;gap:.6rem;min-height:58px;height:100%;padding:.75rem;border:1px solid #cfd9d4;border-radius:.65rem;background:#fff;font-size:.9rem;font-weight:500;line-height:1.6;overflow-wrap:anywhere;transition:border-color .15s,background .15s}
.choice-grid label>span:before{content:'';display:block;flex-shrink:0;width:1rem;height:1rem;border:1px solid #a7bcb1;border-radius:50%;background:#fff}
.choice-grid input:checked+span{border-color:var(--lm-green);box-shadow:inset 0 0 0 1px var(--lm-green);background:var(--lm-mint);color:var(--lm-green-dark)}
.choice-grid input:checked+span:before{border:5px solid var(--lm-green)}
.choice-grid input:focus-visible+span{outline:3px solid rgba(14,144,102,.3);outline-offset:3px}
.tool-submit{display:flex;align-items:center;justify-content:center;gap:1.5rem;min-height:54px;padding:.9rem 1.4rem;border:0;border-radius:.7rem;background:var(--lm-green);color:#fff;font-family:inherit;font-size:1rem;font-weight:700;cursor:pointer}
.tool-privacy{margin:-.75rem 0 0;color:#52615a;font-size:.8rem;text-align:center}
.tool-error{margin:0;color:#a4382b;font-weight:700}
.tool-result{margin-top:2rem;padding:clamp(1rem,4vw,2rem);border:1px solid #b9d7ca;border-radius:.8rem;background:#fff}
.tool-result[hidden],.tool-error[hidden]{display:none}
.tool-result h2{margin:0 0 1rem;font-size:clamp(1.4rem,4vw,2.1rem);line-height:1.5}
.tool-result h3{margin:1.5rem 0 1rem;font-size:1rem}
.tool-result p,.tool-result li{line-height:1.85}
.result-rhythm{max-width:34rem}
.result-rhythm>p{margin:.65rem 0 0;color:#52615a;font-size:.8rem}
.result-caution{margin-top:1.5rem;padding:.85rem;background:#f5f4ed;color:#52615a;font-size:.8rem}
.result-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:.65rem;margin-top:1.5rem}
.result-actions a,.tool-reset{display:flex;justify-content:center;align-items:center;min-height:48px;padding:.7rem 1rem;border-radius:.65rem;font-weight:700;text-align:center}
.result-actions a:first-child{border:1px solid var(--lm-green);color:var(--lm-green-dark)}
.result-actions a:last-child{background:var(--lm-green);color:#fff}
.tool-reset{width:100%;margin-top:.65rem;border:0;background:transparent;color:#52615a;text-decoration:underline;cursor:pointer}
.frequency-tool-page .tool-examples{padding:0;margin:4rem auto 0}
.tool-section-heading>p{margin:0 0 .5rem;color:var(--lm-green-dark);font-size:.82rem}
.tool-section-heading h2,.tool-reading h2{margin:0 0 1.5rem;font-size:clamp(1.3rem,3vw,1.8rem);line-height:1.7}
.frequency-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem}
.frequency-example{min-width:0;padding:1.35rem;background:var(--lm-mint);border-radius:.8rem}
.frequency-example h3{display:inline-block;margin:0 0 1rem;padding:.3rem .9rem;border-radius:2rem;background:var(--lm-green-dark);color:#fff;font-size:.95rem}
.frequency-example .frequency-example-title{margin:0 0 .5rem;color:var(--tool-ink);font-weight:700;font-size:1rem}
.frequency-example>p{margin:0 0 1.25rem;line-height:1.8;font-size:.9rem;color:#52615a}
.frequency-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));list-style:none;margin:0;padding:0;border:1px solid #d7e3dc;border-radius:.5rem;overflow:hidden;background:#fff}
.frequency-week li{min-width:0;display:flex;align-items:center;flex-direction:column;gap:.6rem;padding:.5rem 0 .65rem;font-size:.76rem;line-height:1.4}
.frequency-week li+li{border-left:1px solid #e8efeb}
.week-dot{display:block;width:.5rem;height:.5rem;border-radius:50%;background:#e5eee9}
.is-lesson .week-dot{background:var(--lm-green)}
.tool-example-note{margin:1rem 0 0;color:#52615a;font-size:.8rem;line-height:1.8}
.frequency-tool-page .tool-reading{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,23rem),1fr));align-items:center;gap:1.25rem;margin:2rem auto 0;padding:1.5rem 0 0;border-top:1px solid #d7e3dc}
.tool-reading>div,.tool-reading figure{min-width:0}
.tool-reading p{max-width:34rem;margin:.75rem 0;line-height:1.8}
.frequency-tool-page .tool-reading h2{margin:0 0 .75rem;font-size:clamp(1.25rem,2.2vw,1.5rem);line-height:1.5;overflow-wrap:anywhere}
.frequency-tool-page .tool-reading .tool-kicker{margin:0 0 .75rem}
.frequency-tool-page .reading-support{margin-top:1.5rem;padding-top:2rem}
.tool-reading a{display:inline-flex;gap:.8rem;align-items:center;min-height:44px;color:var(--lm-green-dark);font-weight:700}
.tool-reading figure{margin:0}
.tool-reading img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:right center;border-radius:.8rem}
.frequency-tool-page a:hover{text-decoration-thickness:2px}
.tool-submit:hover,.result-actions a:last-child:hover{background:var(--lm-green-dark)}
.tool-submit:focus-visible,.tool-reset:focus-visible,.result-actions a:focus-visible,.tool-reading a:focus-visible{outline:3px solid rgba(14,144,102,.28);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.frequency-tool-page *{transition:none!important;scroll-behavior:auto!important}}
