/* Counters section: hub, unit and civ pages. Site tokens from site.css (Command Navy: night, slate, gold). */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.cu-page{padding-top:28px;padding-bottom:40px}
.cu-page h2{font-size:clamp(26px,3vw,34px);margin:36px 0 14px}
.cu-page h3{font-size:20px;margin:0}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:18px}
.crumbs a{color:var(--muted)} .crumbs a:hover{color:var(--gold)}
.cu-head{display:flex;gap:20px;align-items:center;margin-bottom:14px}
.cu-head h1{font-size:clamp(34px,4.4vw,54px)}
.cu-head .cu-ico{width:72px;height:72px;border:1.5px solid var(--gold-dim);border-radius:8px;background:var(--slate)}
.cu-sub{margin:6px 0 0;color:var(--muted);font-size:16px}
.cu-stamp{margin:6px 0 0;font-size:14px;color:var(--muted)}
.cu-ico{border-radius:6px;background:var(--slate-2);flex:none;object-fit:contain}
.cu-noico{display:inline-block}
.cu-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.cu-two h2{margin-top:22px}
.cu-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cu-card{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;background:var(--slate);border:1px solid var(--edge);border-radius:8px}
.cu-card h3 a{color:#F6F1E3;text-decoration:none} .cu-card h3 a:hover{color:var(--gold)}
.cu-card p{margin:6px 0 0;font-size:15.5px;color:var(--muted)}
.cu-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cu-chip,.cu-ag,.cu-ratio,.cu-age{display:inline-block;padding:1px 9px;border-radius:999px;font-size:13px;font-weight:600;line-height:1.6}
.cu-chip.h{background:#3a2a10;color:var(--gold)} .cu-chip.s{background:#26324a;color:#B9C6DC}
.cu-ratio{background:#14324a;color:#9FD3FF;font-variant-numeric:tabular-nums} .cu-ratio.cu-na{background:#232b38;color:var(--muted);font-weight:500}
.cu-age{background:transparent;color:var(--muted);padding:0}
.cu-ag{background:#232b38;color:var(--parch);cursor:help}
.ag-confirmed,.ag-confirmed_at_pop_cap{background:#173a24;color:#8FE0A8}
.ag-close,.ag-partly{background:#3b3216;color:#F0CF7A}
.ag-disputed{background:#41201d;color:#FFA59B}
.ag-research_only{background:#1d2e45;color:#9FC4F0}
.ag-paper_only{background:#2a2540;color:#C7B8F5}
.cu-src{font-size:14px} .cu-src a,.cu-srcs a{color:var(--muted)}
.cu-sec ul{padding-left:20px} .cu-sec li{margin:4px 0}
.cu-plan{padding:22px 26px} .cu-plan h2{margin-top:0}
.cu-tw{overflow-x:auto;border:1px solid var(--edge);border-radius:8px}
.cu-table{border-collapse:collapse;width:100%;font-size:15px;min-width:760px}
.cu-table th,.cu-table td{padding:9px 12px;border-bottom:1px solid #222d3e;text-align:left;vertical-align:top}
.cu-table thead th{background:var(--slate);color:var(--gold);font-weight:600;white-space:nowrap}
.cu-table tbody th{color:#F6F1E3}
.cu-notes{margin:36px 0 0;padding:16px 20px;background:var(--slate);border:1px solid var(--edge);border-radius:8px}
.cu-notes summary{cursor:pointer;font-weight:600;color:var(--gold)}
.cu-notes p{color:var(--muted);font-size:15.5px}
.cu-legend{list-style:none;padding:0;display:grid;gap:6px;font-size:15px;color:var(--muted)}
.cu-rel ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cu-rel a,.cu-idx a{display:inline-flex;gap:8px;align-items:center;padding:5px 12px 5px 5px;border:1px solid var(--edge);border-radius:999px;background:var(--slate);color:var(--parch);text-decoration:none;font-size:15px}
.cu-rel a:hover,.cu-idx a:hover{border-color:var(--gold-dim);color:var(--gold)}
.cu-rel .cu-ico,.cu-idx .cu-ico{border-radius:50%}
.cu-cta{display:flex;gap:20px;align-items:flex-start;margin:40px 0 10px;padding:24px 26px}
.cu-cta h2{margin:0 0 6px;font-size:28px} .cu-cta p{color:var(--muted);margin:0 0 14px}
.cu-cta img{border-radius:50%;flex:none}
.cu-cta .actions{display:flex;flex-wrap:wrap;gap:12px}
.cu-back{margin-top:22px;color:var(--muted)}
.cu-idxgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px}
.cu-idx h3{font-size:22px;margin:18px 0 10px;color:var(--gold)}
.cu-idx ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px}
.cu-idx small{color:var(--muted);font-size:12.5px}
.cu-civs{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cu-civs a{display:block;padding:10px 14px;background:var(--slate);border:1px solid var(--edge);border-radius:8px;color:var(--parch);text-decoration:none}
.cu-civs a:hover{border-color:var(--gold-dim);color:var(--gold)}
.cu-toolwrap{margin-top:8px}
.ctool{font-size:15px;line-height:1.45;color:var(--parch)}
.ctool-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.ctool-main{padding:0 !important;max-width:none !important;min-height:900px}
@media (max-width:700px){.ctool-main{min-height:1400px}}
/* image guard (19 Nov 2026): icons never get squeezed by a long text column next to them. Flex items shrink by default, which squashed the Archer header icon to 26x64. contain = pad, never stretch. */
.ctool img{flex:none;object-fit:contain}
.ctool .uhead img{flex:0 0 64px;min-width:64px}

.ctool-full{margin:14px 0 0;font-weight:600}
@media (max-width:900px){.cu-two,.cu-idxgrid{grid-template-columns:minmax(0,1fr)} .cu-civs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.cu-head{align-items:flex-start} .cu-head .cu-ico{width:56px;height:56px} .cu-cta{flex-direction:column;padding:20px}
  .cu-cta .btn{width:100%} .cu-card{padding:12px}}
.ctool .split>*,.ctool .panel{min-width:0}
.ctool .row select{min-width:0;max-width:100%}
.ctool .tw{max-width:100%;overflow-x:auto}
@media (max-width:600px){.ctool-nav{overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:4px} .ctool-nav a{white-space:nowrap}}
.ctool table.stats{display:block;overflow-x:auto;max-width:100%}
.ctool #udetail,.ctool #udetail *{min-width:0;max-width:100%;overflow-wrap:anywhere}
.ctool .chip{display:inline-block;width:auto;height:auto;min-width:0;min-height:0;padding:1px 9px;border-radius:999px;font-size:12.5px;line-height:1.6;box-shadow:none;border:1px solid transparent;gap:0;font-weight:600}
/* gold unit icons (14 Nov 2026): the navy tile + gold edge is baked into the picture, so no frame/background here */
.cu-ico[src],body .ctool img[src*="/counters/icons/"]{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}

/* answer-first unit pages (17 Nov 2026) */
.cu-answer{margin:14px 0 18px;padding:14px 18px;background:var(--slate);border:1.5px solid var(--gold-dim);border-radius:8px}
.cu-answer p{margin:0;font-size:17px;color:var(--parch)} .cu-answer strong{color:var(--gold)}
.cu-acc{margin:30px 0 0;color:var(--muted);font-size:15px}
.cu-more{margin:26px 0 0} .cu-more h2{font-size:24px;margin:0 0 8px} .cu-more p{margin:0;line-height:1.9}
.cu-cta1{margin:26px 0 8px;color:var(--muted)}
