/* LicenseLens — a decision aid for Microsoft 365 licensing, written for IT managers.
   Museo Sans throughout (Adobe Fonts kit; Nunito Sans stands in until the kit is configured).
   Layout: sticky top bar → page-head band (breadcrumbs, title, one-line summary, primary action) → content.
   Warm paper, ink, one accent; structure by rules & whitespace. Domain colours appear only as small dots/icons. */
:root {
    --paper: #f4f2ec; --surface: #ffffff; --surface2: #efece4;
    --ink: #1b1a17; --ink2: #4f4c45; --muted: #7a756b; --faint: #a9a498;
    --line: #e3ded3; --line2: #ece8de;
    --accent: #0c5b52; --accent2: #0e6e62; --accent-bg: #e3efeb; --accent-ink: #0a4c44;
    --on-accent: #ffffff; --link: var(--accent);   /* text ON accent fills / accent-coloured text */
    --yes: #2f8a53; --yes-bg: #e6f2e9; --no: #c3bdb0;
    --warn: #9a5a12; --warn-bg: #f4ebd8;
    --radius: 10px; --r-sm: 7px;
    --shadow: 0 1px 2px rgba(28,26,22,.05);
    --sans: "museo-sans", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: var(--sans);
    /* Museo Sans weights: 300 text · 500 UI · 700 headings/emphasis (the kit should include these three). */
    --w-text: 300; --w-ui: 500; --w-bold: 700;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
    --paper: #151412; --surface: #1c1b18; --surface2: #221f1a;
    --ink: #ece8df; --ink2: #c4bfb2; --muted: #8f897d; --faint: #6b665c;
    --line: #2b2823; --line2: #232019;
    --accent: #4fb3a5; --accent2: #63c2b4; --accent-bg: #12312d; --accent-ink: #6ecabb;
    --yes: #4caf74; --yes-bg: #15291d; --no: #4a463d; --warn: #cf9a4a; --warn-bg: #2c2413;
    --shadow: 0 1px 2px rgba(0,0,0,.35);
}
/* --- preview palettes (?palette=cobalt|forest|plum|coral) --- */
:root[data-palette="cobalt"] {
    --paper: #f5f6f9; --surface: #ffffff; --surface2: #eef0f5;
    --ink: #14161d; --ink2: #444b59; --muted: #69707f; --faint: #a0a6b3;
    --line: #e5e8ee; --line2: #eef0f5;
    --accent: #2f54eb; --accent2: #1f43d3; --accent-bg: #eaeefc; --accent-ink: #213fbf;
}
:root[data-palette="forest"] {
    --paper: #f7f8f2; --surface: #ffffff; --surface2: #edf0e8;
    --ink: #16180f; --ink2: #494d3f; --muted: #6e7261; --faint: #a3a693;
    --line: #e6e8db; --line2: #eef1e6;
    --accent: #146c43; --accent2: #12854f; --accent-bg: #e5f2ea; --accent-ink: #0e5a38;
}
:root[data-palette="plum"] {
    --paper: #f8f3f4; --surface: #ffffff; --surface2: #f1e9ec;
    --ink: #1c1519; --ink2: #52444a; --muted: #7a6a71; --faint: #ad9ca3;
    --line: #ece1e5; --line2: #f3eaed;
    --accent: #9a2860; --accent2: #b12f70; --accent-bg: #f8e7f0; --accent-ink: #841f52;
}
:root[data-palette="coral"] {
    --paper: #f6f4ef; --surface: #ffffff; --surface2: #efeae1;
    --ink: #1b1712; --ink2: #4f473d; --muted: #7c7264; --faint: #aca192;
    --line: #e7dfd2; --line2: #efe9df;
    --accent: #c1462b; --accent2: #d5502f; --accent-bg: #f8e7e0; --accent-ink: #a63920;
}
:root[data-palette="lime"] {
    --paper: #f8f8f1; --surface: #ffffff; --surface2: #eff0e4;
    --ink: #1a1c12; --ink2: #4c4f3d; --muted: #71755f; --faint: #a6a88f;
    --line: #e6e7d7; --line2: #eff0e4;
    --accent: #adc137; --accent2: #9cae2f; --accent-bg: #f0f3d9; --accent-ink: #5f7014;
    --on-accent: #21260a; --link: #5f7014;   /* dark text on the light-lime accent + darker links */
}
:root[data-palette="graphite"] {  /* near-monochrome, black buttons, blue links */
    --paper: #f7f7f8; --surface: #ffffff; --surface2: #eeeef1;
    --ink: #101114; --ink2: #40434c; --muted: #6b6f79; --faint: #a2a6b0;
    --line: #e6e7ea; --line2: #eeeef1;
    --accent: #17181d; --accent2: #2a2c33; --accent-bg: #eef0f4; --accent-ink: #17181d;
    --on-accent: #ffffff; --link: #2f5fe6;
}
:root[data-palette="amber"] {
    --paper: #faf8f3; --surface: #ffffff; --surface2: #f2ede1;
    --ink: #1a160e; --ink2: #4e4636; --muted: #756a56; --faint: #aa9e85;
    --line: #e9e0cf; --line2: #f2ecdf;
    --accent: #b9791a; --accent2: #cd8720; --accent-bg: #f6ecd7; --accent-ink: #8a5a10;
    --on-accent: #ffffff; --link: #8a5a10;
}
:root[data-palette="midnight"] {
    --paper: #f6f7fb; --surface: #ffffff; --surface2: #edeff5;
    --ink: #10131f; --ink2: #454b5e; --muted: #6a7185; --faint: #a1a7b6;
    --line: #e5e8f0; --line2: #edeff5;
    --accent: #283a7e; --accent2: #31468f; --accent-bg: #e9ecf7; --accent-ink: #223370;
    --on-accent: #ffffff; --link: var(--accent);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: var(--w-text);
       font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
b, strong { font-weight: var(--w-bold); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .85em; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent);
          backdrop-filter: saturate(1.15) blur(9px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: var(--w-bold); font-size: 20px; letter-spacing: -.2px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--link); }
.brand .mark { stroke: var(--link); fill: none; stroke-width: 1.7; stroke-linecap: round; }
.bar-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.bar-nav a { display: flex; align-items: center; padding: 0 12px; color: var(--ink2); font-weight: var(--w-ui); font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.bar-nav a:hover { color: var(--ink); text-decoration: none; background: var(--surface2); }
.bar-nav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bar-search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 12px; width: 260px; }
.bar-search:focus-within { border-color: var(--accent); background: var(--surface); }
.bar-search svg { stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bar-search input { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; width: 100%; outline: none; }
.ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 15px; padding: 0; }
.ic:hover { color: var(--link); border-color: var(--accent); }

/* ---- page head band ---- */
.ph { background: var(--surface); border-bottom: 1px solid var(--line); }
.ph-in { padding-top: 26px; padding-bottom: 28px; }
.ph h1 { margin: 0; }
.ph-lead { font-size: 18px; color: var(--ink2); max-width: 72ch; margin: 8px 0 0; }
.ph-lead strong { color: var(--ink); }
.ph-title { display: flex; gap: 16px; align-items: flex-start; }
.ph-title .head-icon { margin-top: 4px; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.ph-form { display: flex; gap: 10px; margin-top: 18px; max-width: 640px; }
.ph-form input { flex: 1 1 auto; min-width: 0; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); }
.ph-form input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.crumbs .sep { color: var(--faint); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.quick .lbl { color: var(--muted); font-size: 14px; margin-right: 2px; }
.quick a { font-size: 14px; font-weight: var(--w-ui); color: var(--ink2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.quick a:hover { border-color: var(--accent); color: var(--link); text-decoration: none; }
.quick a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.page { min-height: 60vh; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 36px 32px 16px; }
.ph .wrap { padding-top: 26px; padding-bottom: 28px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); margin-top: 64px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 28px 40px; padding: 44px 32px 32px; }
.foot-brand .brand { font-size: 18px; margin-bottom: 10px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 42ch; margin: 0; }
.foot-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: var(--w-bold); margin: 0 0 12px; }
.foot-col a { display: block; color: var(--ink2); font-size: 14.5px; padding: 5px 0; }
.foot-col a:hover { color: var(--link); text-decoration: none; }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 32px; }
.foot-bottom span { color: var(--muted); font-size: 13px; }

/* ---- typography ---- */
h1 { font-weight: var(--w-bold); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.5px; margin: 4px 0 14px; }
h2 { font-weight: var(--w-bold); font-size: 22px; line-height: 1.25; letter-spacing: -.2px; margin: 40px 0 12px; }
h2:first-child { margin-top: 0; }
h2 .count { color: var(--muted); font-weight: var(--w-text); font-size: 15px; letter-spacing: 0; }
h3 { font-weight: var(--w-bold); font-size: 16px; margin: 18px 0 8px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 68ch; }
.lead strong { color: var(--ink); }
p { margin: 10px 0; }
.hint { color: var(--muted); font-size: 14.5px; max-width: 86ch; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--link); font-weight: var(--w-bold); margin: 0 0 12px; }
.legend { color: var(--muted); font-size: 13.5px; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lp-link { color: var(--link); font-weight: var(--w-ui); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
       border-radius: var(--r-sm); padding: 9px 18px; font: inherit; font-size: 15px; font-weight: var(--w-ui); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent2); border-color: var(--accent2); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-sec { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-sec:hover { border-color: var(--accent); color: var(--link); background: var(--surface); }
.btn-lg { padding: 12px 22px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 14px; }

/* ---- sections ---- */
section { margin: 0; }
.block { margin-top: 56px; }
.block.first { margin-top: 0; margin-bottom: 48px; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.block-head h2 { margin: 0; }
.block-lead { color: var(--muted); margin: 6px 0 0; max-width: 72ch; }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }

/* ---- home: hero ---- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 20px 0 8px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 18px; max-width: 16ch; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 54ch; margin: 0 0 26px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 7px 7px 7px 16px;
               box-shadow: 0 10px 30px -20px rgba(28,26,22,.35); max-width: 620px; }
.hero-search:focus-within { border-color: var(--accent); }
.hero-search svg { stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.hero-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; padding: 6px 0; }
.hero-trust { margin-top: 16px; color: var(--muted); font-size: 13.5px; }

.tasks { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.tasks-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: var(--w-bold); padding: 10px 14px 6px; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-sm); color: var(--ink); }
.task + .task { border-top: 1px solid var(--line2); }
.task:hover { background: var(--surface2); text-decoration: none; }
.task .ficon { width: 40px; height: 40px; border-radius: 10px; }
.task-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.task-t { font-weight: var(--w-bold); font-size: 16.5px; }
.task-d { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.task-go { color: var(--link); font-size: 20px; transition: transform .12s; }
.task:hover .task-go { transform: translateX(3px); }

/* ---- lineup matrix ---- */
.lx-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lx { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 880px; }
.lx th, .lx td { border-bottom: 1px solid var(--line2); padding: 9px 12px; font-size: 14.5px; }
.lx td { text-align: center; }
.lx .t0 { border-left: 1px solid var(--line); }
.lx-corner { background: var(--surface); position: sticky; left: 0; z-index: 2; }
.lx-tier { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: var(--w-bold); color: var(--ink);
           background: var(--surface2); border-left: 1px solid var(--line); padding: 10px 12px 8px; }
.lx-tier span { text-transform: none; letter-spacing: 0; font-weight: var(--w-text); color: var(--muted); margin-left: 6px; }
.lx thead th { position: static; }
.lx-tier, .lx-plan { white-space: nowrap; }
.lx-plan { background: var(--surface2); font-size: 15px !important; text-transform: none !important; letter-spacing: 0 !important; text-align: center !important; padding-top: 4px !important; }
.lx-plan a { font-weight: var(--w-bold); color: var(--ink); }
.lx-plan a:hover { color: var(--link); }
.lx-group th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--link); font-weight: var(--w-bold);
               padding: 18px 12px 6px; background: var(--surface); }
.lx-row { text-align: left; font-weight: var(--w-ui); position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 230px; }
.lx-row span { display: block; font-weight: var(--w-text); color: var(--muted); font-size: 13px; line-height: 1.35; }
.lx tbody tr:hover td, .lx tbody tr:hover .lx-row { background: var(--surface2); }
.lx-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yes-bg); color: var(--yes); font-weight: var(--w-bold); font-size: 13px; }
.lx-no { color: var(--faint); }
.lx-val { display: inline-block; font-size: 12.5px; font-weight: var(--w-bold); color: var(--accent-ink); background: var(--accent-bg); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

/* ---- decisions & primer ---- */
.decisions { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.decisions.narrow { max-width: 640px; }
.decisions li { border-bottom: 1px solid var(--line); }
.decisions a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; color: var(--ink); font-weight: var(--w-ui); font-size: 16px; }
.decisions a:hover { color: var(--link); text-decoration: none; background: color-mix(in srgb, var(--surface2) 60%, transparent); }
.decisions .go { color: var(--link); }
.primer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.primer h2 { font-size: 19px; }
.primer dl { margin: 12px 0 16px; }
.primer dt { font-weight: var(--w-bold); margin-top: 14px; }
.primer dd { margin: 3px 0 0; color: var(--ink2); font-size: 15px; }

/* ---- two-column content with an aside (plan detail, finder) ---- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.glance h2 { font-size: 17px; margin: 0 0 6px; }
.glance-group { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--link); font-weight: var(--w-bold); margin: 16px 0 4px; }
.glance-list { list-style: none; margin: 0; padding: 0; }
.glance-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 14.5px; }
.glance-list li:last-child { border-bottom: 0; }
.glance-list li.off { color: var(--muted); }
.glance-links { list-style: none; margin: 8px 0 0; padding: 0; }
.glance-links a { display: block; padding: 7px 0; font-weight: var(--w-ui); font-size: 14.5px; border-bottom: 1px solid var(--line2); }
.glance-links li:last-child a { border-bottom: 0; }

/* ---- tables ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line2); font-size: 15px; vertical-align: middle; }
thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: var(--w-bold); background: var(--surface2); }
tbody tr:hover { background: var(--surface2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-name a { font-weight: var(--w-ui); }
.empty { color: var(--muted); padding: 22px 2px; }
.pager { display: flex; gap: 10px; margin: 20px 0; align-items: center; color: var(--muted); }
hr.soft { border: 0; border-top: 1px solid var(--line2); margin: 28px 0; }

/* ---- compare ---- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0 0 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 5px; font-weight: var(--w-ui); font-size: 14.5px; color: var(--ink2); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a.on { background: var(--accent); color: var(--on-accent); }
.switch { display: inline-flex; align-items: center; gap: 9px; font-weight: var(--w-ui); font-size: 14.5px; color: var(--ink2); }
.switch:hover { text-decoration: none; color: var(--ink); }
.switch .knob { width: 36px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.switch.on .knob { background: var(--accent); }
.switch.on .knob::after { left: 18px; }
.cmp { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp thead th { position: sticky; top: 0; z-index: 2; }
.cmp-label { width: 34%; min-width: 240px; }
.cmp-plan { text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; color: var(--ink) !important; text-align: center !important; min-width: 150px; vertical-align: bottom; }
.cmp-plan a:first-child { font-weight: var(--w-bold); color: var(--ink); }
.cmp-plan a:first-child:hover { color: var(--link); }
.cmp-x { display: inline-block; margin-left: 6px; color: var(--faint); font-size: 12px; }
.cmp-x:hover { color: var(--warn); text-decoration: none; }
.cmp-group th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--link); font-weight: var(--w-bold); background: var(--surface); padding-top: 18px; }
.cmp-group.key th { color: var(--ink); }
.cmp-group .ficon { width: 22px; height: 22px; border-radius: 6px; vertical-align: -6px; margin-right: 4px; }
.cmp-row { font-weight: var(--w-ui); }
.cmp-row a { color: var(--ink); }
.cmp-row a:hover { color: var(--link); }
.cmp-row span { display: block; font-weight: var(--w-text); color: var(--muted); font-size: 13px; }
.cmp td.cell { text-align: center; }
.cell.on { background: color-mix(in srgb, var(--yes-bg) 55%, transparent); }

/* ---- tags / badges / icons ---- */
.tag { display: inline-block; font-size: 12.5px; padding: 2px 9px; border-radius: 5px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; font-weight: var(--w-ui); }
.tag.fam { border-color: transparent; font-weight: var(--w-bold); }
a.tag:hover { text-decoration: none; filter: brightness(.97); border-color: var(--accent); }
.tag.retired { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.kind-add-on { color: var(--muted); }
.tag.miss { background: var(--warn-bg); color: var(--warn); border-color: transparent; margin: 1px 2px; }
.ficon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none;
         background: color-mix(in srgb, currentColor 14%, transparent); }
.ficon svg { display: block; }
.head-icon .ficon { width: 48px; height: 48px; border-radius: 12px; }

/* ---- families list ---- */
.fam-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 24px; margin: 8px 0; }
.fam-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink2); font-size: 15px; font-weight: var(--w-ui); }
.fam-list a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.fam-list .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fam-list .nm { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-list .ct { color: var(--muted); font-size: 13px; font-weight: var(--w-text); font-variant-numeric: tabular-nums; }

/* ---- plan finder ---- */
.finder .main-col h2 { margin-top: 0; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.pick-area { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 14px 14px; margin: 0; min-width: 0; }
.pick-area legend { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-weight: var(--w-bold); padding: 0 6px; }
.pick-area legend .ficon { width: 24px; height: 24px; border-radius: 6px; }
.pick { display: flex; align-items: flex-start; gap: 9px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.pick:hover { background: var(--surface2); }
.pick.on { background: var(--accent-bg); color: var(--accent-ink); font-weight: var(--w-ui); }
.pick input { margin-top: 5px; flex: none; accent-color: var(--accent); }
.sel-count { color: var(--muted); margin: 0 0 10px; }
.sel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sel-chips:empty { display: none; }
.live:empty { display: none; }
.live { margin-top: 16px; border-top: 1px solid var(--line2); padding-top: 12px; }
.live-head { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.live-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); color: var(--ink); font-weight: var(--w-ui); font-size: 14.5px; }
.live-row:last-child { border-bottom: 0; }
.live-row:hover { color: var(--link); text-decoration: none; }
.sel-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.sel-actions .btn { flex: 1 1 auto; }
.cov { font-weight: var(--w-bold); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.cov-full { color: var(--yes); }
.row-full { background: color-mix(in srgb, var(--yes-bg) 60%, transparent) !important; }

/* ---- detail pages ---- */
.cap-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px 28px; margin: 16px 0; }
.cap-area h3 { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 6px; }
.cap-area h3 .ficon { width: 28px; height: 28px; border-radius: 7px; }
.cap-list { list-style: none; padding: 0; margin: 0; }
.cap-list li { padding: 8px 0; border-bottom: 1px solid var(--line2); }
.cap-list li:last-child { border-bottom: 0; }
.cap-list a { font-weight: var(--w-ui); }
.cap-blurb { display: block; color: var(--muted); font-size: 13.5px; margin-top: 1px; line-height: 1.45; }
.idrow { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13.5px; margin: 8px 0 4px; }
.idrow .k { color: var(--faint); }
details.raw { margin: 32px 0 8px; border-top: 1px solid var(--line); padding-top: 8px; }
details.raw > summary { cursor: pointer; color: var(--link); font-weight: var(--w-ui); padding: 8px 0; user-select: none; }
details.raw > summary:hover { text-decoration: underline; }

/* ---- filters ---- */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; }
.filters label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: var(--w-ui); }
.filters input, .filters select { padding: 8px 11px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }

/* ---- guide / explainer ---- */
.explainer { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.explainer h2 { margin-top: 0; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.gitem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.gitem .t { font-weight: var(--w-bold); }
.gitem .d { color: var(--muted); font-size: 14px; margin-top: 3px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 44px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-ink); font-weight: var(--w-bold); display: grid; place-items: center; }
.steps li b { display: block; }
.steps li span { color: var(--muted); font-size: 14.5px; }
.guide { max-width: 860px; }
.guide h2 { border-top: 1px solid var(--line2); padding-top: 26px; }
.guide h2:first-of-type { border-top: 0; padding-top: 0; }
.guide h3 { font-size: 17px; margin: 18px 0 6px; }
.guide ul { padding-left: 20px; }
.guide li { margin: 5px 0; }
.editions { width: 100%; margin: 10px 0; }
.callout { background: var(--warn-bg); border-radius: var(--r-sm); padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.callout b { color: var(--warn); }

/* ---- legacy helpers still used by a few pages ---- */
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0; align-items: baseline; }
.stat b { font-size: 21px; }
.stat span { color: var(--muted); font-size: 13.5px; margin-left: 6px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile .name { font-weight: var(--w-bold); color: var(--ink); }
.tile .meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.vs-links, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vs-chip, .chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 8px 14px; font-weight: var(--w-ui); font-size: 14px; color: var(--ink2); }
.vs-chip:hover, a.chip:hover { border-color: var(--accent); color: var(--link); text-decoration: none; }
.mark { font-weight: var(--w-bold); text-align: center; }
.mark.yes { color: var(--yes); } .mark.no { color: var(--no); }
.detail-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 4px; }
.detail-head h1 { margin: 0; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
    .bar { gap: 20px; }
    .bar-search { width: 180px; }
    .with-aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
    .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .hero, .split, .with-aside { grid-template-columns: 1fr; gap: 32px; }
    .side-col { position: static; }
    .finder .side-col { order: -1; }
    .bar-search { display: none; }
}
@media (max-width: 720px) {
    .bar { padding: 0 16px; height: auto; flex-wrap: wrap; gap: 0 12px; }
    .brand { height: 56px; }
    .bar-nav { order: 3; flex: 1 1 100%; height: 44px; overflow-x: auto; margin: 0 -8px; }
    .bar-nav a { padding: 0 8px; font-size: 14.5px; white-space: nowrap; }
    .wrap, .ph .wrap { padding-left: 16px; padding-right: 16px; }
    .wrap { padding-top: 26px; }
    .ph-form { flex-direction: column; }
    .hero-search { flex-wrap: wrap; }
    .hero-search .btn { width: 100%; }
    .foot-grid { grid-template-columns: 1fr 1fr; padding: 32px 16px 24px; }
    .foot-bottom .wrap { padding: 14px 16px; }
    .block-head .btn { width: 100%; }
}
