/* Hoppet tools: reuse the marketing site's self-hosted font and colour roles. */
.tools-site { --tool-radius:26px; --tool-small-radius:15px; --tool-space:24px; --tool-wide-space:40px; }
.tools-site button,.tools-site input,.tools-site select { font:inherit; }
.tools-site button,.tools-site select { cursor:pointer; }
.tools-site button,.tools-site input,.tools-site select,.tools-site a { -webkit-tap-highlight-color:transparent; }
.tools-site :is(button,input,select,a):focus-visible { outline:3px solid var(--sky); outline-offset:4px; }
.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; }
.tool-hero { padding-block:64px 40px; }
.tool-hero h1 { max-width:900px;font-size:clamp(2.4rem,5vw,4.2rem);line-height:1.09;margin-block:16px 20px; }
.tool-lede { max-width:670px;font-size:1.15rem;line-height:1.65;color:var(--muted);margin:0; }
.tools-overview { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--tool-space);padding-bottom:64px; }
.tool-tile { display:flex;flex-direction:column;align-items:flex-start;background:var(--panel);padding:32px;border-radius:var(--tool-radius);text-decoration:none;transition:transform .18s ease; }
.tool-tile:hover { transform:translateY(-4px); }
.tool-type { font-size:.875rem;font-weight:600;color:var(--muted); }
.tool-tile h2 { font-size:1.5rem;line-height:1.25;margin:24px 0 12px;letter-spacing:-.03em; }
.tool-tile p { margin:0 0 24px;color:var(--muted);font-size:1rem; }
.tile-action { margin-top:auto;color:var(--blue);font-weight:600;font-size:1rem;padding-block:8px; }
.tile-visual { height:100px;width:100%;display:flex;align-items:flex-end;gap:10px;margin-top:24px; }
.tile-visual i { display:block;border-radius:8px;background:var(--blue-soft); }
.protein-visual i { width:25%;height:45%;background:color-mix(in srgb,var(--protein) 30%,var(--panel)); }
.protein-visual i:nth-child(2) { height:75%; }.protein-visual i:nth-child(3) { height:100%;background:var(--protein); }
.barbell-visual { align-items:center;justify-content:center;position:relative; }
.barbell-visual:before { content:'';position:absolute;inset-inline:8%;height:8px;background:var(--blue);border-radius:8px; }
.barbell-visual i { z-index:1;width:25px;height:65px;background:var(--blue); }
.barbell-visual i:first-child { margin-right:auto;margin-left:14%; }.barbell-visual i:nth-child(2) { margin-right:14%; }.barbell-visual i:last-child { display:none; }
.food-visual { justify-content:center;align-items:center;border-radius:50%;max-width:150px;background:var(--blue-soft); }
.food-visual i { width:30px;height:30px;border-radius:50%;background:var(--green); }.food-visual i:nth-child(2) { width:40px;height:40px;background:var(--protein); }.food-visual i:nth-child(3) { background:var(--blue); }
.tools-intro { display:grid;grid-template-columns:1fr 1fr;gap:64px;padding-block:16px 88px; }
.tools-intro h2 { font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.2;letter-spacing:-.035em;margin:0; }
.tools-intro p { margin-top:0;color:var(--muted); }
.calculator-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--tool-space);align-items:start; }
.tool-panel,.tool-result { border-radius:var(--tool-radius);padding:32px;background:var(--panel);min-width:0; }
.tool-panel h2 { margin:0 0 28px;font-size:1.35rem;letter-spacing:-.025em; }
.tool-panel form { display:flex;flex-direction:column; }
.field-heading,.food-filter-heading { display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px; }
.field-heading>label,.field-label { font-weight:600;display:block;font-size:1rem; }
.field-label { margin-block:20px 12px; }
.unit-switch { display:flex;gap:4px;align-items:center;border:0;padding:4px;margin:0;background:var(--panel-soft);border-radius:var(--tool-small-radius);flex-shrink:0; }
.unit-switch label { position:relative;display:block; }
.unit-switch input { position:absolute;opacity:0;width:100%;height:100%;margin:0; }
.unit-switch span { display:flex;justify-content:center;align-items:center;min-height:44px;min-width:52px;border-radius:12px;padding:8px 12px;font-size:.9rem;color:var(--muted); }
.unit-switch input:checked+span { background:var(--panel);color:var(--ink);font-weight:600; }
.unit-switch input:focus-visible+span { outline:3px solid var(--sky);outline-offset:2px; }
.number-field { display:flex;align-items:center;gap:12px;background:var(--bg);border-radius:var(--tool-small-radius);padding:12px 18px; }
.number-field input { width:100%;min-width:0;background:none;border:0;outline-offset:8px;padding:0;color:var(--ink);font-size:1.75rem;font-weight:600;font-variant-numeric:tabular-nums;min-height:44px; }
.number-field>span { color:var(--muted);font-size:1rem; }
.field-help { color:var(--muted);font-size:.9rem;line-height:1.6;margin:10px 0 0; }
.plain-input,.tools-site select { display:block;width:100%;border:1px solid var(--line);border-radius:var(--tool-small-radius);color:var(--ink);background:var(--panel);padding:14px 16px;min-height:52px; }
.tools-site select { padding-right:36px; }
.tool-button { display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:54px;padding:14px 24px;background:var(--button-fill);color:var(--button-ink);border:0;border-radius:var(--tool-small-radius);font-weight:600;text-decoration:none;line-height:1.4; }
.tool-panel .tool-button { margin-top:28px;width:100%; }
.tool-button:hover { filter:brightness(1.08); }.tool-button:active { transform:scale(.99); }
.local-note { color:var(--muted);font-size:.875rem;margin:20px 0 0; }
.form-error { margin:16px 0 0;color:var(--ink);font-size:.9rem;font-weight:600; }
.form-error:before { content:'!';display:inline-block;margin-right:8px;font-weight:700;color:var(--protein); }
.tool-result { background:var(--blue-soft); }
.protein-result { background:color-mix(in srgb,var(--protein) 11%,var(--panel)); }
.protein-result>.eyebrow { color:var(--protein); }
.tool-result>h2 { font-size:clamp(3rem,5vw,4.2rem);line-height:1.1;letter-spacing:-.045em;margin:20px 0;font-variant-numeric:tabular-nums; }
.tool-result>h2 small { display:block;font-size:1.05rem;line-height:1.5;letter-spacing:0;font-weight:400;margin-top:10px;color:var(--muted); }
.result-dash { margin-inline:6px; }
.tool-result>p { margin:0 0 24px;color:var(--muted);font-size:1rem; }
.meal-result { display:flex;flex-direction:column;gap:4px;margin-block:28px;padding:24px;background:var(--panel);border-radius:var(--tool-small-radius);font-size:.95rem;color:var(--muted); }
.meal-result strong { font-size:2rem;letter-spacing:-.04em;line-height:1.3;color:var(--ink); }
.tool-result .result-note { font-size:.9rem;line-height:1.7;margin:24px 0; }
.load-reference { padding:24px;background:var(--panel);border-radius:var(--tool-small-radius); }
.load-reference h3 { font-size:1rem;margin:0 0 16px; }.load-reference table { width:100%;border-collapse:collapse;font-size:1rem; }
.load-reference th,.load-reference td { padding:10px 0;text-align:left;font-weight:400; }.load-reference thead th { font-size:.875rem;color:var(--muted); }.load-reference td { text-align:right;font-weight:600;font-variant-numeric:tabular-nums; }
.tool-reading { display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:72px;padding-block:64px; }
.tool-reading h2 { font-size:1.6rem;line-height:1.3;margin:0 0 20px;letter-spacing:-.025em; }.tool-reading p { color:var(--muted);font-size:1rem;line-height:1.8; }
.tool-reading .source-note { font-size:.875rem; }.source-note a { color:var(--blue); }
.tool-faq details { margin-bottom:12px;background:var(--panel);padding:18px 20px;border-radius:var(--tool-small-radius); }
.tool-faq summary { cursor:pointer;font-size:1rem;font-weight:600;min-height:26px; }.tool-faq details p { margin:14px 0 0; }
.tool-app-cta { display:grid;grid-template-columns:1fr auto;gap:16px 32px;align-items:center;padding:36px;background:var(--brand-highlight);color:var(--on-brand-highlight);border-radius:var(--tool-radius);margin-bottom:64px; }
.tool-app-cta h2 { font-size:1.65rem;letter-spacing:-.025em;line-height:1.25;margin:12px 0; }.tool-app-cta p { margin:0;max-width:620px;font-size:1rem; }.tool-app-cta small { font-size:.875rem;grid-column:1/-1; }.tool-app-cta .eyebrow { color:#1859a5; }
.food-workspace { display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:var(--tool-space);align-items:start; }
.food-browser { min-width:0; }.food-browser-controls { padding:24px;background:var(--panel);border-radius:var(--tool-radius); }.food-filter-heading .field-label { margin:0; }.food-filter-bottom { display:flex;align-items:center;gap:12px;margin-top:20px; }.food-filter-bottom select { flex:1;width:auto;min-width:0;font-size:.95rem; }.food-filter-bottom>span { white-space:nowrap;color:var(--muted);font-size:.875rem; }
.food-quick { display:flex;flex-wrap:wrap;gap:8px;margin-top:12px; }.food-quick button,.portion-presets button { background:var(--panel-soft);color:var(--ink);border:0;border-radius:12px;min-height:44px;padding:8px 12px;font-size:.875rem; }.food-quick button:hover,.portion-presets button:hover { background:var(--blue-soft); }
.food-list-label { display:flex;justify-content:space-between;gap:16px;font-size:.8rem;color:var(--muted);margin:24px 12px 12px; }
.food-list { list-style:none;padding:0;margin:0;max-height:660px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent; }
.food-list li { margin-bottom:8px; }.food-row { display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;text-align:left;border:0;border-radius:var(--tool-small-radius);padding:16px;background:var(--panel);color:var(--ink);min-height:80px; }.food-row[aria-pressed=true] { background:var(--blue-soft); }.food-row>span:first-child { min-width:0; }.food-row strong { display:block;font-size:1rem;font-weight:600;line-height:1.4; }.food-row small { display:block;color:var(--muted);font-size:.8rem;line-height:1.55;margin-top:5px; }.food-row-values { text-align:right;flex-shrink:0; }.food-row-values b { font-size:1rem;font-weight:600;color:var(--protein);white-space:nowrap; }.food-row-values small { white-space:nowrap; }
.food-empty { padding:24px;color:var(--muted);font-size:1rem; }
.food-detail { position:sticky;top:92px;scroll-margin-top:88px; }.food-detail>h2 { font-size:2rem;line-height:1.2;margin-block:14px; }.food-detail>p { font-size:.9rem; }.food-detail form { margin-top:24px; }.food-detail .number-field { background:var(--panel); }.food-detail .field-label { margin-top:0; }.portion-presets { display:flex;gap:8px;flex-wrap:wrap;margin-top:12px; }.portion-presets button { background:var(--panel); }.portion-result { margin-top:28px; }.result-label { font-size:.875rem;color:var(--muted); }.food-primary-values { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-block:16px 24px; }.food-primary-values>div { display:flex;flex-direction:column;gap:6px; }.food-primary-values strong { font-size:2.8rem;line-height:1.1;letter-spacing:-.04em;font-variant-numeric:tabular-nums; }.food-primary-values>div:first-child strong { color:var(--protein); }.food-primary-values span { color:var(--muted);font-size:.9rem; }.food-other-values { display:flex;justify-content:space-between;gap:16px;margin:0; }.food-other-values dt { font-size:.875rem;color:var(--muted); }.food-other-values dd { margin:6px 0 0;font-size:1.05rem;font-weight:600;font-variant-numeric:tabular-nums; }.food-source { margin:24px 0;font-size:.875rem; }.food-source summary { cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600; }.food-source p { color:var(--muted);line-height:1.7; }.food-source a { color:var(--blue); }
@media(max-width:1000px) { .tools-overview { gap:16px; }.tool-tile { padding:24px; }.tool-tile h2 { font-size:1.35rem; }.food-workspace { grid-template-columns:1.1fr 1fr; }.food-browser-controls,.food-detail { padding:24px; } }
@media(max-width:760px) { .tool-hero { padding-block:40px 28px; }.tool-hero h1 { font-size:2.6rem; }.tool-lede { font-size:1.05rem; }.tools-overview,.tools-intro,.calculator-layout,.tool-reading,.food-workspace { grid-template-columns:1fr; }.tools-overview { gap:16px;padding-bottom:40px; }.tool-tile { display:grid;grid-template-columns:1fr 80px;gap:0 16px; }.tool-tile .tile-visual { grid-column:2;grid-row:1/5;margin:0;height:80px;align-self:center; }.tool-tile h2,.tool-tile p,.tool-tile .tile-action,.tool-tile .tool-type { grid-column:1; }.tool-tile h2 { margin-top:16px; }.tool-tile p { margin-bottom:12px; }.barbell-visual i { width:15px;height:48px; }.food-visual i { width:16px;height:16px; }.food-visual i:nth-child(2) { width:24px;height:24px; }.food-visual { gap:5px; }.tools-intro { gap:24px;padding-block:0 48px; }.tool-panel,.tool-result { padding:24px; }.tool-result>h2 { font-size:3.5rem; }.tool-reading { gap:32px;padding-block:40px; }.tool-app-cta { grid-template-columns:1fr;padding:24px;margin-bottom:40px; }.tool-app-cta .tool-button { width:100%; }.tool-app-cta small { grid-column:1; }.food-detail { position:static; }.food-list { max-height:420px; }.food-filter-heading { gap:8px; }.region-switch span { min-width:56px;padding-inline:10px; }.food-row small { max-width:28ch; }.food-detail>h2 { font-size:1.8rem; }.tools-site .nav-app-link { display:none; }.tools-site .links { gap:8px 16px; }.tools-site .brand img,.tools-site .brand picture { width:112px; } }
@media(max-width:370px) { .tool-tile { grid-template-columns:1fr; }.tool-tile .tile-visual { display:none; }.food-row { gap:8px;padding:12px; }.food-row strong { font-size:.95rem; }.food-filter-heading { align-items:flex-start;flex-direction:column; } }
@media(prefers-reduced-motion:reduce) { .tools-site * { scroll-behavior:auto;transition:none; }.tool-tile:hover,.tool-button:active { transform:none; } }
