:root{--canvas:#f4f5f1;--surface:#fff;--ink:#20382d;--secondary:#526259;--muted:#657369;--line:#dce2da;--brand:#285b3c;--wash:#edf2e8;--control:#f7f8f5;--radius:12px;--control-radius:7px;--space:4px}body{background:var(--canvas);padding-bottom:0;-webkit-font-smoothing:antialiased}button,input,select,.buttonlink{min-height:44px;border-radius:var(--control-radius);font-size:13px}button:active,.buttonlink:active{transform:translateY(1px)}button:disabled{transform:none}h1,h2,h3{letter-spacing:-.025em}p{color:var(--secondary)}.site-header{position:sticky;top:0;z-index:100;padding:0 32px;min-height:68px;display:flex;gap:24px;background:#fafbf8;border-bottom:1px solid var(--line)}.site-header .brand{font-size:25px;flex:none}.primary-nav{display:flex;align-items:center;gap:8px;margin-left:auto}.primary-nav>a,.nav-group>summary{display:flex;align-items:center;justify-content:center;gap:6px;padding:12px 14px;min-height:44px;font-size:13px;font-weight:650;color:var(--ink);text-decoration:none;cursor:pointer;border-radius:var(--control-radius);list-style:none}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.7;fill:none}.nav-group{position:relative}.nav-group[open]>summary,.primary-nav>a:hover,.nav-group>summary:hover{background:var(--wash)}.nav-dropdown{position:absolute;top:calc(100% + 8px);left:0;min-width:184px;padding:6px;background:var(--surface);border-radius:10px;box-shadow:0 8px 28px #1f38251f,0 1px 3px #1f38251a}.nav-dropdown a{display:flex;align-items:center;min-height:44px;padding:10px 12px;white-space:nowrap;border-radius:6px;font-size:13px;text-decoration:none}.nav-dropdown a:hover{background:var(--wash)}.header-share{padding:8px 16px;background:transparent}.site-footer{max-width:1600px;margin:40px auto 0;padding:24px 32px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-top:1px solid var(--line);font-size:12px}.footer-brand{color:var(--ink);font-weight:750;text-decoration:none}.site-footer .footerlinks{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0;padding:0;border:0}.site-footer .footerlinks a,.support-email{display:inline-flex;align-items:center;min-height:36px;font-size:12px;text-decoration:none}.support-email{margin-left:auto}.catalogue-page{width:100%;max-width:1600px;padding:24px 32px 0;margin:auto}.catalogue-page>article{max-width:none}.catalogue-page h1{font-size:30px;margin:0 0 4px;line-height:1.3}.catalogue-page>article>p{font-size:13px;margin:0 0 20px}.librarycontrols{display:grid;grid-template-columns:minmax(200px,2fr) 1fr 1fr 1fr auto;gap:12px;margin:0;align-items:end}.librarycontrols label{font-size:12px;font-weight:650;gap:4px;color:var(--secondary)}.librarycontrols input,.librarycontrols select{background:var(--surface);border-color:var(--line);padding:10px 12px;width:100%}.librarycontrols .reset-filters{margin:0;background:transparent;border-color:var(--line)}#libraryStatus{margin:12px 0;font-size:12px;font-weight:650;color:var(--secondary)}#libraryCards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}.catalogue-card{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:16px;display:flex;flex-direction:column;gap:0;transition:border-color .16s ease-out}.catalogue-card:hover{border-color:#9bac9d}.card-art{height:112px;display:flex;align-items:center;justify-content:center;position:relative;margin:0 0 12px}.card-art>a{display:flex;width:100%;height:100%;align-items:center;justify-content:center;text-decoration:none}.card-art img{width:176px;max-width:75%;height:110px;object-fit:contain}.favourite{display:inline-flex;align-items:center;justify-content:center;padding:0;width:44px;height:44px;min-height:44px;border:0;background:transparent;color:var(--secondary);border-radius:50%;flex:none}.favourite svg{display:block;stroke:currentColor;stroke-width:1.7;fill:none}.favourite[aria-pressed=true]{color:var(--brand);background:var(--wash)}.favourite[aria-pressed=true] svg{fill:currentColor}.favourite:hover{background:var(--wash)}.card-art .favourite{position:absolute;right:-6px;top:-8px}.card-topline{display:flex;gap:4px;justify-content:space-between;align-items:center;font-size:10px;color:var(--secondary);line-height:1.5;min-height:20px}.check-dot{white-space:nowrap;font-size:10px}.check-dot:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--brand);margin-right:4px;vertical-align:middle}.check-dot.partial{color:#825417}.check-dot.partial:before{background:#ac761f}.catalogue-card h2{font-size:15px;line-height:1.35;margin:8px 0 12px;min-height:61px;font-weight:750}.catalogue-card h2 a{color:var(--ink);text-decoration:none}.catalogue-card h2 a:hover{text-decoration:underline}.card-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}.card-facts div{min-width:0}.card-facts dt,.card-spend>span{font-size:10px;color:var(--secondary);margin:0 0 2px;display:block}.card-facts dd{font-size:13px;font-weight:750;font-variant-numeric:tabular-nums;margin:0;line-height:1.6;color:var(--ink)}.card-spend{padding-top:12px;border-top:1px solid var(--line);min-height:76px}.card-spend p{font-size:11px;line-height:1.5;margin:0;color:var(--ink);overflow-wrap:anywhere}.card-conditions{margin:8px 0 12px}.card-conditions summary{font-size:11px;color:var(--secondary);cursor:pointer;min-height:28px;padding:4px 0}.card-conditions p,.card-conditions a{font-size:11px;line-height:1.55}.card-compare{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:var(--wash);color:var(--brand);text-decoration:none;border:0;font-size:12px;font-weight:750;margin-top:auto}.card-compare:hover{background:#e1ebd9}.library-empty{grid-column:1/-1;padding:48px 0;text-align:center}.library-empty h2{min-height:0;font-size:22px}.art-unavailable{color:var(--secondary);font-size:16px;font-weight:750;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:92px}.art-unavailable small{font-size:10px;font-weight:400}.intro{padding:24px 0}.intro h1{font-size:clamp(28px,3vw,40px);margin:0 0 8px}.intro>div>p{font-size:13px}.workbench{gap:24px;grid-template-columns:280px minmax(0,1fr)}.input-step{padding:16px}.input-guide h2{font-size:17px}.strategybar{margin:0 0 16px;gap:12px}.chipbar{gap:6px;margin:12px 0}.chipbar button{padding:8px 12px}.leaders{margin:16px 0}.leader{padding:16px}.reading{padding-top:28px;padding-bottom:0}.reading h1{font-size:32px;margin-top:0}.reading h2{margin-top:24px}.reading footer{display:none}.rowbtn.favourite{vertical-align:middle}.enrichsettings{margin:16px 0;gap:12px}.enrichcard{padding:16px 0}.site-header a[aria-current=page]{color:var(--brand);text-decoration:underline;text-underline-offset:6px}
@media(min-width:1500px){#libraryCards{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(min-width:1000px) and (max-width:1199px){#libraryCards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:999px){#libraryCards{grid-template-columns:repeat(2,minmax(0,1fr))}.librarycontrols{grid-template-columns:2fr 1fr 1fr}.librarycontrols label:first-child{grid-column:1/-1}.site-header{padding:0 20px}.workbench{grid-template-columns:245px minmax(0,1fr)}.support-email{margin-left:0}}@media(max-width:760px){.site-header{min-height:0;position:sticky;flex-wrap:wrap;padding:10px 16px 6px;gap:4px 12px}.site-header .brand{font-size:23px;order:0}.header-share{order:1;margin-left:auto}.primary-nav{order:2;width:100%;margin:0;justify-content:space-between;gap:0}.primary-nav>a,.nav-group>summary{padding:10px 8px;font-size:12px;min-height:40px}.nav-dropdown{top:100%;min-width:168px}.catalogue-page{padding:20px 16px 0}.catalogue-page h1{font-size:25px}.catalogue-page>article>p{font-size:12px;margin-bottom:16px}.librarycontrols{grid-template-columns:1fr 1fr;gap:8px}.librarycontrols label:first-child{grid-column:1/-1}.librarycontrols label:nth-child(4){grid-column:1}.librarycontrols .reset-filters{grid-column:2}.catalogue-card{padding:12px}.card-art{height:88px;margin-bottom:8px}.card-art img{height:84px;width:134px;max-width:85%}.catalogue-card h2{font-size:13px;min-height:70px;margin:6px 0 10px}.card-topline{font-size:9px;align-items:start;min-height:28px}.check-dot{font-size:9px}.card-facts{grid-template-columns:1fr;gap:8px}.card-facts dd{font-size:12px}.card-spend{min-height:100px}.card-spend p{font-size:11px}.card-conditions summary{font-size:10px;min-height:36px}.card-compare{font-size:11px}.site-footer{margin-top:28px;padding:20px 16px;gap:8px 20px}.site-footer .footerlinks{gap:0 16px}.site-footer .footerlinks a{min-height:40px}.workbench{display:block}.intro{padding:20px 0}.intro h1{font-size:30px}.intro>div>p{font-size:12px}.input-step{padding:16px}.guideactions{margin-top:12px;margin-bottom:24px}#libraryCards{gap:10px}.reading{padding-top:24px}.reading h1{font-size:28px}.primary-nav details:nth-child(2) .nav-dropdown{left:0}.favourite{width:40px;height:40px;min-height:40px}.card-art .favourite{top:-10px;right:-8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}button:active,.buttonlink:active{transform:none}}
/* Keep a full row readable without reserving three blank title lines. */
#libraryCards{align-items:stretch}.card-art{height:100px}.card-art img{height:98px}.catalogue-card h2{min-height:40px}.card-spend{min-height:60px}.catalogue-card .card-facts{margin-bottom:10px}.card-conditions{margin:4px 0 8px}.card-conditions summary{min-height:32px}@media(max-width:760px){.card-art{height:84px}.card-art img{height:80px}.catalogue-card h2{min-height:54px}.card-spend{min-height:92px}.card-conditions summary{min-height:36px}}

/* Web interface guidelines: skip link, zoom-safe inputs, touch, wrapping, anchors */
:root{color-scheme:light}
@media(pointer:fine){html{overscroll-behavior:none}}
.skip-link{position:absolute;left:16px;top:-100px;z-index:200;padding:10px 14px;border-radius:var(--control-radius);background:var(--brand);color:#fff;font-weight:700;text-decoration:none}
.skip-link:focus-visible{top:12px;outline:2px solid var(--ink);outline-offset:2px}
main:focus{outline:none}
a,button,summary,label,select,input,[role=button]{touch-action:manipulation;-webkit-tap-highlight-color:rgba(40,91,60,.15)}
h1,h2,h3{text-wrap:balance}
p,li,dd{text-wrap:pretty}
:target{scroll-margin-top:96px}
@media(max-width:760px){input,select,textarea{font-size:16px!important}}

/* Card library sort buttons */
.librarycontrols{grid-template-columns:minmax(200px,2fr) 1fr 1fr auto}
.sortbar{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.sortlabel{font-size:12px;font-weight:650;color:var(--secondary);margin-right:4px}
.sortbar button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--secondary);font-size:13px;font-weight:650;transition:background-color .15s,border-color .15s,color .15s}
.sortbar button:hover{border-color:#9bac9d;color:var(--ink)}
.sortbar button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
.sortarrow{display:inline-flex;opacity:.45}.sortarrow svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sortbar button[aria-pressed=true] .sortarrow{opacity:1}
@media(max-width:999px){.librarycontrols{grid-template-columns:2fr 1fr 1fr}}
@media(max-width:760px){.librarycontrols{grid-template-columns:1fr 1fr}.librarycontrols .reset-filters{grid-column:1/-1}.sortbar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sortlabel{display:none}.sortbar button{justify-content:center;min-height:44px;font-size:12px;padding:6px 10px}}

/* Calculator: salary and spending are the first row */
.spendpanel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin:0 0 28px}
.spendpanel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-bottom:16px}
.spendpanel-head h2{font-size:18px;margin:0}
.spendpanel .total{margin:0;padding:8px 14px;gap:14px;font-size:12px}
.spendpanel .total strong{font-size:18px;font-variant-numeric:tabular-nums}
.spendgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px 14px}
.spendgrid-items{display:contents}
.spendgrid .slider{margin:0;min-width:0}
.spendgrid .sliderline{height:100%;flex-direction:column;align-items:stretch;justify-content:space-between;gap:6px}
.spendgrid .sliderline label{font-size:12px;line-height:1.35;color:var(--secondary);padding-right:0}
.spendgrid .numeric-control{display:flex;gap:6px;padding:0 10px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface)}
.spendgrid .numeric-control:focus-within{border-color:var(--brand);outline:2px solid var(--brand);outline-offset:1px}
.spendgrid .numeric-control input.amount{flex:1;width:100%!important;min-width:0;min-height:42px;border:0!important;background:transparent;box-shadow:none;padding:0!important;text-align:right;font-size:15px!important;font-weight:700;font-variant-numeric:tabular-nums}
.spendgrid .numeric-control input.amount:focus-visible{outline:none}
.salarytile .numeric-control{background:var(--wash)}
.morecats{margin-top:16px;padding-top:6px;border-top:1px solid var(--line)}
.morecats summary{padding:10px 0;font-size:13px;font-weight:650;cursor:pointer}
.morecats .hint{margin:0 0 12px}
#extrasCount{color:var(--muted);font-weight:500}
@media(max-width:760px){.spendpanel{padding:16px;margin-bottom:20px}.spendgrid{grid-template-columns:1fr 1fr;gap:10px}.spendpanel-head h2{font-size:16px}.spendpanel .total strong{font-size:16px}}

/* Card artwork wherever a card is named */
.cardart{display:inline-flex;flex:none;align-items:center;justify-content:center;width:64px;height:40px;border-radius:5px;overflow:hidden;background:var(--wash);vertical-align:middle}
.cardart img{width:100%;height:100%;object-fit:contain}
.cardart-ph{padding:2px 4px;font-size:8px;font-weight:700;line-height:1.15;text-align:center;color:var(--secondary)}
.withart{display:flex;align-items:center;gap:10px}
td>.cardart,th>.cardart{display:flex;margin-bottom:8px}
.pairnames{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.guidetoggle{display:none}
@media(max-width:760px){.guidetoggle{display:inline-flex}.guidehead{gap:8px}.guidehead h2{margin-right:auto}.input-guide[data-collapsed]>:not(.guidehead){display:none}.input-guide[data-collapsed]{margin-bottom:8px}}
