/* Shared components keep three distinct themes on one small maintained toolkit. */
[hidden]{display:none!important}
.usefulness{border-bottom:1px solid var(--line)}
.resource-grid,.path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.resource-card,.path-card{min-width:0;border:1px solid var(--line);padding:28px;background:var(--surface);border-radius:var(--radius);display:flex;flex-direction:column;gap:14px}
.resource-card h2,.resource-card h3,.path-card h2{font-size:1.55rem;margin:0;line-height:1.2;letter-spacing:-.035em}
.resource-card h2 a,.resource-card h3 a,.path-card h2 a{text-decoration:none}
.resource-card p,.path-card p{font-size:.94rem;margin:0;line-height:1.65}
.resource-card>a:last-child,.path-card>a:last-child{margin-top:auto;font-size:.85rem;font-weight:700}
.useful-links{display:flex;flex-wrap:wrap;gap:14px 30px;margin-top:30px;font-size:.9rem;font-weight:700}
.path-number{display:grid;place-items:center;width:40px;height:40px;background:var(--accent);color:var(--accent-ink);border-radius:50%;font-size:.8rem;font-weight:800;margin-bottom:5px}
.learning-route{display:grid;grid-template-columns:1fr 1.3fr;gap:70px;align-items:start}
.learning-route h2{font-size:2.7rem}
.route-list{list-style:none;padding:0;margin:0}
.route-list li{display:flex;gap:24px;border-top:1px solid var(--line);padding:25px 0}
.route-list li>span{font-size:.85rem;color:var(--muted);padding-top:5px}
.route-list h3{font-size:1.45rem;margin:0 0 10px}
.route-list p{margin:0;font-size:.9rem}
.faq-section{max-width:900px}
.faq{border-top:1px solid var(--line);padding:22px 0}
.faq summary,.tool-help summary{cursor:pointer;font-weight:700;line-height:1.5}
.faq p{max-width:75ch;font-size:.95rem;margin-top:18px}
.tool-layout{display:grid;grid-template-columns:minmax(0,1fr)250px;gap:35px;align-items:start;margin-bottom:65px}
.tool-layout>div,.guide-layout>article{min-width:0}
.tool-sidebar{position:sticky;top:25px;min-width:0;border:1px solid var(--line);padding:25px;background:var(--surface);border-radius:var(--radius);font-size:.85rem}
.tool-sidebar h2{font-size:1.65rem;line-height:1.15;margin-bottom:18px}
.tool-sidebar h3{font-size:1.2rem}
.tool-sidebar li{margin:12px 0}
.tool-sidebar ol{padding-left:18px}
.tool-sidebar .button{font-size:.85rem;width:100%;padding:12px}
.tool-sidebar hr{border:0;border-top:1px solid var(--line);margin:26px 0}
.tool-form{padding:28px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);min-width:0}
.tool-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-bottom:24px;border-bottom:1px solid var(--line)}
.currency-field{max-width:270px}
.privacy-tag{font-size:.73rem;font-weight:700;color:var(--muted)}
.tool-intro{font-size:.92rem;line-height:1.75;margin:24px 0}
.entry-section{padding:25px 0;border-bottom:1px solid var(--line)}
.entry-section h2{font-size:1.6rem;line-height:1.2;margin:0 0 12px}
.entry-section p{font-size:.85rem;line-height:1.6;margin:0 0 20px}
.section-title{display:flex;justify-content:space-between;align-items:start;gap:20px}
.section-title>div{min-width:0}
.section-title button{flex-shrink:0;font-size:.8rem;padding:10px 13px}
.entry-row{min-width:0;border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin:20px 0 0}
.entry-row legend{font-size:.75rem;color:var(--muted);padding:0 6px;font-weight:700}
.entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:end}
.entry-bills,.entry-review{grid-template-columns:repeat(2,minmax(0,1fr))}
.entry-events,.entry-subscriptions{grid-template-columns:repeat(2,minmax(0,1fr))}
.entry-row .field{font-size:.77rem;font-weight:700;min-width:0}
.entry-row .field input,.entry-row .field select{font-size:.9rem;width:100%;max-width:100%;padding:10px;min-width:0}
.remove-row{font-size:.75rem;padding:10px;min-height:45px;justify-self:end}
.toggle-field{display:flex;align-items:center;gap:10px;min-height:48px;font-size:.82rem;cursor:pointer}
.toggle-field input{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}
.tool-actions{margin-top:30px}
.tool-actions button{font-size:.88rem}
.tool-export{border-top:1px solid var(--line);padding-top:24px;margin-top:25px}
.tool-export button{font-size:.8rem}
.tool-help{padding:22px 0;border-bottom:1px solid var(--line);font-size:.85rem}
.tool-help p{line-height:1.75;margin-top:16px}
.tool-result{border-top:3px solid var(--accent);margin-top:30px;padding-top:30px;scroll-margin-top:24px}
.tool-result:focus{outline:2px solid var(--accent);outline-offset:12px}
.tool-result h2{font-size:2rem;line-height:1.2}
.tool-result>p{font-size:.9rem}
.tool-result .callout{padding:20px}
.tool-result .callout h3{font-size:1.25rem}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}
.metric{border:1px solid var(--line);padding:20px;min-width:0;border-radius:var(--radius);background:var(--bg)}
.metric>span{display:block;font-size:.75rem;font-weight:700;line-height:1.5;margin-bottom:12px;color:var(--muted)}
.metric strong{display:block;font-size:clamp(1.3rem,2vw,1.8rem);line-height:1.2;letter-spacing:-.04em;overflow-wrap:anywhere}
.metric small{display:block;font-size:.7rem;line-height:1.6;margin-top:12px;color:var(--muted)}
.metric-warning{border-color:var(--error);border-left-width:4px}
.negative-amount{color:var(--error)}
.table-scroll{max-width:100%;overflow-x:auto;margin:25px 0;border:1px solid var(--line);border-radius:var(--radius)}
.table-scroll table{border-collapse:collapse;width:100%;min-width:490px;font-size:.81rem;line-height:1.6;background:var(--surface)}
.table-scroll caption{text-align:left;font-weight:700;padding:15px;background:var(--bg);font-size:.82rem}
.table-scroll td,.table-scroll th{padding:14px 12px;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.table-scroll th{font-size:.74rem}
.result-notice{font-size:.8rem;color:var(--muted);border-top:1px solid var(--line);padding-top:20px;margin-top:25px}
.example-notice{font-size:.84rem;background:var(--bg);border-left:4px solid var(--accent);padding:15px 18px;line-height:1.6}
.cashflow-chart{margin:25px 0;border:1px solid var(--line);background:var(--bg);padding:12px;border-radius:var(--radius)}
.cashflow-chart svg{display:block;width:100%;height:auto}
.zero-line{stroke:var(--line);stroke-width:1.5;stroke-dasharray:6 5}
.balance-line{stroke:var(--accent);stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.cashflow-chart figcaption{font-size:.73rem;color:var(--muted);padding:8px 12px;line-height:1.6}
.guide-layout{display:grid;grid-template-columns:minmax(0,740px)280px;justify-content:space-between;gap:55px;align-items:start}
.guide-layout .reading{max-width:none}
.guide-layout .callout h2{font-size:1.5rem;margin:0 0 15px}
.knowledge-check{border:2px solid var(--line);padding:25px;margin:40px 0;border-radius:var(--radius);background:var(--surface)}
.knowledge-check fieldset{border:0;padding:0;margin:0;min-width:0}
.knowledge-check legend{font-weight:700;font-size:1.15rem}
.knowledge-check label{display:flex;align-items:start;gap:12px;padding:12px 0;font-size:.9rem;cursor:pointer}
.knowledge-check input{width:20px;height:20px;margin-top:4px;accent-color:var(--accent);flex-shrink:0}
.knowledge-check button{margin-top:15px;font-size:.85rem}
.knowledge-check [data-quiz-feedback]{font-size:.9rem;margin-top:20px}
.knowledge-check[data-correct=true]{border-color:var(--accent)}
.article-next{border-block:1px solid var(--line);padding:15px 0 30px;margin:35px 0}
.article-next h2{font-size:1.65rem}
.article-next .button{font-size:.85rem}
.library-controls{display:grid;grid-template-columns:2fr 1fr auto;align-items:end;gap:20px;padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.library-controls input{width:100%}
.library-grid{margin:25px 0 70px}
.library-grid .resource-card h2{font-size:1.6rem}
[data-library-count]{font-size:.84rem;font-weight:700;color:var(--muted);margin-top:20px}
.paper-sheet{padding:35px;border:1px solid var(--line);background:var(--surface);margin-bottom:70px}
.paper-sheet h2{font-size:2rem}
.paper-sheet h3{font-size:1.2rem;margin-top:30px}
.paper-sheet p{font-size:.9rem}
.paper-sheet .blank-worksheet{min-width:680px}
.pocket .resource-card{border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink)}
.pocket .path-card:nth-child(2){background:#e4e6ff}
.weekly .resource-card,.weekly .path-card{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:28px 0}
.weekly .path-number{border-radius:0;background:transparent;color:var(--accent);font:italic 2rem Georgia,serif;justify-content:start}
.weekly .entry-row{background:var(--bg)}
.weekly .metric strong{font-family:Georgia,serif}
.weekly .balance-line{stroke:var(--ink)}
.payday .resource-card{background:#1b2b33}
.payday .metric,.payday .example-notice{background:#14242c}
.payday .path-number{font-family:monospace}
.hero h1,.weekly .hero h1,.payday .hero h1{font-size:clamp(2.9rem,5vw,4.7rem)}
.tool-hero h1{max-width:19ch}
@media(max-width:1100px){.tool-layout{grid-template-columns:minmax(0,1fr)}.tool-sidebar{position:static;max-width:none}.tool-layout>.tool-sidebar{display:none}.guide-layout{grid-template-columns:minmax(0,1fr)240px;gap:30px}}
@media(max-width:800px){.resource-grid,.path-grid{grid-template-columns:1fr}.learning-route{grid-template-columns:1fr;gap:30px}.guide-layout{grid-template-columns:1fr}.guide-layout>.tool-sidebar{margin-bottom:50px}.tool-form{padding:20px}.entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-row{padding:14px}.library-controls{grid-template-columns:1fr}.library-controls button{justify-self:start}.section-title{display:block}.section-title button{margin-bottom:15px}.paper-sheet{padding:20px}.resource-card,.path-card{padding:25px}.tool-toolbar{gap:15px}.privacy-tag{font-size:.7rem}}
@media(max-width:480px){.entry-grid{grid-template-columns:1fr}.entry-grid .remove-row{justify-self:start}.tool-form{padding:16px}.metric-grid{grid-template-columns:1fr}.metric strong{font-size:1.7rem}.tool-actions,.tool-export{flex-direction:column;align-items:stretch}.tool-actions button,.tool-export button{width:100%}.resource-card h2,.resource-card h3,.path-card h2{font-size:1.5rem}.tool-toolbar .field{width:100%;max-width:none}.knowledge-check{padding:20px}.guide-layout{gap:10px}}
@media print{@page{margin:14mm}.tool-sidebar,.tool-toolbar,.tool-help,.tool-export,.privacy-tag,.library-controls,.knowledge-check{display:none!important}.tool-layout,.guide-layout{display:block}.tool-form,.paper-sheet{border:0;padding:0;margin:0;background:white;color:black}.entry-row,.metric{break-inside:avoid;border-color:#777;background:white}.entry-row input,.entry-row select,.tool-form input{background:white!important;color:black!important;border-color:#777}.table-scroll{overflow:visible;border-color:#777}.table-scroll table,.paper-sheet .blank-worksheet{min-width:0!important;width:100%;font-size:9pt;color:black;background:white}.table-scroll td,.table-scroll th{padding:7px;border-color:#777;overflow-wrap:anywhere}.cashflow-chart{background:white}.balance-line{stroke:#222}.zero-line{stroke:#777}.metric-grid{grid-template-columns:1fr 1fr}.page-hero{padding:10px 0}.page-hero h1{font-size:28pt}.tool-result{break-before:auto}.tool-result:focus{outline:0}.example-notice{background:white;color:black}.site-footer{display:none}.paper-sheet h2{font-size:22pt}}
