/* Calculator pages: styled with the main site's own design tokens (see /assets/index-*.css) */
.cc{max-width:72rem;margin:0 auto;padding:40px 16px 8px;color:hsl(var(--foreground))}
.cc *{box-sizing:border-box}
.cc a{color:inherit}
.cc p{margin:0 0 12px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.875rem;color:hsl(var(--muted-foreground))}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:hsl(var(--garden-green))}
.cc h1{margin:16px 0 0;font-family:var(--font-heading);font-size:clamp(1.9rem,5vw,2.5rem);font-weight:600;letter-spacing:-.02em;line-height:1.15;color:hsl(var(--garden-green))}
.cc .sub{margin:12px 0 0;max-width:42rem;font-size:1.0625rem;line-height:1.6;color:hsl(var(--muted-foreground))}
.layout{display:grid;gap:24px;margin-top:32px;grid-template-columns:minmax(0,1fr)}
@media(min-width:1024px){.layout{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);align-items:start}.rescard{position:sticky;top:88px}}
.col{display:flex;flex-direction:column;gap:24px}
.card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:.75rem;padding:24px}
.card h2.ct{margin:0 0 16px;font-family:var(--font-heading);font-size:1.125rem;font-weight:600;color:hsl(var(--garden-green))}
.rescard{padding:0;overflow:hidden}
.rhead{padding:14px 24px;border-bottom:1px solid hsl(var(--border));font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:hsl(var(--muted-foreground))}
.result{padding:24px}
.result .big{font-family:var(--font-heading);font-size:clamp(2.2rem,6vw,3.25rem);font-weight:700;line-height:1;letter-spacing:-.02em;color:hsl(var(--garden-green))}
.result .big small{font-size:1.125rem;font-weight:500;letter-spacing:0;color:hsl(var(--muted-foreground))}
.verdict{margin:10px 0 0;font-size:.9rem;line-height:1.5;color:hsl(var(--foreground)/.75)}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin-top:20px;padding-top:18px;border-top:1px solid hsl(var(--border))}
.stat{display:flex;flex-direction:column-reverse;gap:2px}
.stat b{font-size:.875rem;font-weight:600;color:hsl(var(--foreground))}
.stat span{font-size:.75rem;color:hsl(var(--muted-foreground))}
.picturewrap{margin-top:18px;padding:12px 14px;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:.75rem;font-size:.875rem}
.picture{margin:6px 0 0;padding-left:18px;list-style:disc}
.picture li{margin:3px 0;list-style:disc}
.note{margin:14px 0 0;font-size:.8125rem;line-height:1.5;color:hsl(var(--muted-foreground))}
.warn{margin-top:16px;padding:10px 12px;border-radius:.625rem;background:#fff6e0;color:#8a5200;font-size:.875rem;line-height:1.45}
.actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 24px}
.cc .hidden{display:none}
.seg{display:flex;width:100%;max-width:320px;margin-bottom:20px;padding:4px;gap:4px;background:hsl(var(--muted));border-radius:.625rem}
.seg button{flex:1;padding:7px 14px;border:0;border-radius:.5rem;background:transparent;font:inherit;font-size:.875rem;font-weight:500;color:hsl(var(--muted-foreground));cursor:pointer}
.seg button[aria-pressed=true]{background:#fff;color:hsl(var(--foreground));box-shadow:0 1px 2px rgba(0,0,0,.08)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
.cc label{display:block;margin-bottom:6px;font-size:.875rem;font-weight:500;color:hsl(var(--foreground)/.8)}
.cc input[type=number],.cc select{display:block;width:100%;height:40px;padding:0 12px;border:1px solid hsl(var(--input));border-radius:.5rem;background:#fff;font:inherit;font-size:.875rem;color:hsl(var(--foreground))}
.cc select{appearance:auto}
.cc input:focus,.cc select:focus,.cc button:focus-visible{outline:2px solid hsl(var(--ring)/.45);outline-offset:1px}
.row{display:flex;gap:12px;align-items:flex-end;margin-bottom:14px}
.row>div{flex:1;min-width:0}
.row .rm{flex:0 0 auto;height:40px;width:40px;border:1px solid hsl(var(--input));background:#fff;border-radius:.5rem;font-size:1.1rem;color:hsl(var(--muted-foreground));cursor:pointer}
.btn{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 14px;border:1px solid hsl(var(--garden-green)/.2);border-radius:.5rem;background:#fff;font:inherit;font-size:.875rem;font-weight:500;color:hsl(var(--garden-green));cursor:pointer;transition:background .15s}
.btn:hover{background:hsl(var(--cream))}
.checks{margin:16px 0 0;font-size:.875rem}
.cc .checks label{display:flex;align-items:center;gap:8px;margin:0;font-weight:500}
.cc input[type=checkbox]{width:16px;height:16px;accent-color:hsl(var(--garden-green))}
.cc h2{margin:40px 0 12px;font-family:var(--font-heading);font-size:1.5rem;font-weight:600;color:hsl(var(--garden-green))}
.how{max-width:48rem;font-size:.9375rem;line-height:1.65;color:hsl(var(--foreground)/.8)}
.how .formula{display:block;margin:10px 0;padding:10px 14px;border:1px solid hsl(var(--border));border-radius:.625rem;background:hsl(var(--cream)/.6);font-family:var(--font-mono);font-size:.85rem;color:hsl(var(--garden-green))}
.how a{color:hsl(var(--garden-green));text-decoration:underline}
.how b{color:hsl(var(--foreground))}
table.t{border-collapse:collapse;width:100%;max-width:28rem;font-size:.875rem;margin-top:8px}
table.t td,table.t th{padding:7px 10px;border-bottom:1px solid hsl(var(--border));text-align:left}
.faq{max-width:48rem}
.faq details{margin-bottom:8px;border:1px solid hsl(var(--border));border-radius:.75rem;background:hsl(var(--card));padding:12px 16px}
.faq summary{cursor:pointer;font-weight:600;font-size:.95rem;color:hsl(var(--foreground))}
.faq details p{margin:10px 0 0;font-size:.9rem;line-height:1.6;color:hsl(var(--foreground)/.75)}
.related{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.related a{display:block;padding:14px 16px;border:1px solid hsl(var(--border));border-radius:.75rem;background:hsl(var(--card));text-decoration:none;font-weight:600;color:hsl(var(--garden-green));transition:background .15s}
.related a:hover{background:hsl(var(--cream))}
.related small{display:block;margin-top:2px;font-weight:400;font-size:.8125rem;color:hsl(var(--muted-foreground))}
@media(max-width:520px){.row{flex-wrap:wrap}.card{padding:18px}.result{padding:18px}.actions{padding:0 18px 18px}}
@media print{header,footer,.actions,.related,.seg,.checks,.faq,.crumbs{display:none!important}}
