@font-face { font-family: "Roboto"; src: url("fonts/roboto-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Palette taken from taxaccountant.pk: green #166534/#38910d, navy #001d50, text #334155, pale-yellow band, mint tints */
:root {
  --bg: #f6f9fc; --panel: #ffffff; --ink: #1e293b; --heading: #001d50; --muted: #566579; --line: #dbe3ee;
  --bar: #166534; --bar-ink: #ffffff;
  --side: #ffffff; --side-ink: #1e293b; --side-muted: #566579; --side-active: #e6f4ea; --side-gap: #1b3764;
  --accent: #001d50; --accent-ink: #ffffff; --green: #38910d;
  --i-bg: #fbf3cd; --i-ink: #5b4300; --i-line: #e3c65a;
  --s-bg: #fde8e6; --s-ink: #8a1c14; --s-line: #e07a72;
  --warn-bg: #fdf7dd; --hit: #e3f4e6;
  --conf-ink: #92400e; --p-bg: #dcfce7; --p-ink: #14532d;
  --radius: 8px; --shadow: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
  color-scheme: light dark;
}
:root[data-theme="dark"] {
  --bg: #07132b; --panel: #0e1f42; --ink: #e4ebf7; --heading: #ffffff; --muted: #a3b3cf; --line: #1d3562;
  --bar: #0b3d20; --bar-ink: #ffffff;
  --side: #050e22; --side-ink: #e4ebf7; --side-muted: #a3b3cf; --side-active: #12294f; --side-gap: #9cc0ff;
  --accent: #6fd07d; --accent-ink: #04210d; --green: #6fd07d;
  --i-bg: #3a2f10; --i-ink: #ffd982; --i-line: #8c6d1a;
  --s-bg: #3f1b18; --s-ink: #ffb4ad; --s-line: #a04a43;
  --warn-bg: #2e2810; --hit: #14365a;
  --conf-ink: #f59e0b; --p-bg: rgba(34,197,94,.16); --p-ink: #bbf7d0;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07132b; --panel: #0e1f42; --ink: #e4ebf7; --heading: #ffffff; --muted: #a3b3cf; --line: #1d3562;
    --bar: #0b3d20; --bar-ink: #ffffff;
    --side: #050e22; --side-ink: #e4ebf7; --side-muted: #a3b3cf; --side-active: #12294f; --side-gap: #9cc0ff;
    --accent: #6fd07d; --accent-ink: #04210d; --green: #6fd07d;
    --i-bg: #3a2f10; --i-ink: #ffd982; --i-line: #8c6d1a;
    --s-bg: #3f1b18; --s-ink: #ffb4ad; --s-line: #a04a43;
    --warn-bg: #2e2810; --hit: #14365a;
    --conf-ink: #f59e0b; --p-bg: rgba(34,197,94,.16); --p-ink: #bbf7d0;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3 { font-family: inherit; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 8px 20px; background: var(--bar); color: var(--bar-ink); position: sticky; top: 0; z-index: 5; }
.topbar a { color: inherit; }
.logo { display: flex; flex: none; }
.logo img { height: 42px; width: auto; display: block; }
.toolname { font-weight: 700; font-size: 16px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); line-height: 1.2; }
.toolname small { display: block; font-weight: 400; font-size: 11px; opacity: .85; }
.sitelinks { display: flex; gap: 4px; margin-left: 8px; }
.sitelinks a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: var(--radius); }
.sitelinks a:hover { background: rgba(255,255,255,.14); }
.cta { background: #001d50; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: var(--radius); white-space: nowrap; border: 1px solid rgba(255,255,255,.25); }
.cta:hover { background: #0a2f73; }
.topbar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.yearpick { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--bar-ink); font-size: 13px; }
.yearpick select { font: inherit; font-weight: 700; color: #001d50; background: #fff; border: 1px solid #fff; border-radius: var(--radius); padding: 6px 10px; min-width: 190px; }
.navtoggle { display: none; font: inherit; padding: 6px 10px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: var(--radius); }

/* Embedded elsewhere (iframe on a third-party WordPress/custom site, or ?embed=1 for preview):
   no branded header bar and no footer — just the functional controls (year picker, theme
   toggle, mobile nav toggle) plus a small taxaccountant.pk credit badge fixed bottom-right.
   Set on <html> as early as app.js runs (see top of the file) to avoid a flash of the full header. */
.compact-embed .logo, .compact-embed .toolname, .compact-embed .sitelinks, .compact-embed .topbar > .cta,
.compact-embed .sitefoot, .compact-embed .sidecta { display: none !important; }
.compact-embed .yearpick { margin-left: 0; }
.embedlogo { display: none; position: fixed; right: 12px; bottom: 12px; z-index: 20; background: var(--bar); border-radius: 8px; padding: 6px 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); text-align: center; }
.compact-embed .embedlogo { display: block; }
.embedlogo a { display: block; line-height: 0; }
.embedlogo img { height: 22px; width: auto; display: block; margin: 0 auto; }
.embedlegal { display: block; line-height: 1.2; margin-top: 3px; font-size: 10px; }
.embedlegal a { color: var(--bar-ink); opacity: .85; text-decoration: underline; }
.embedlegal a:hover { opacity: 1; }
.disclaimer { background: var(--i-bg); color: var(--i-ink); border-bottom: 1px solid var(--i-line); padding: 8px 16px; font-size: 13px; }
.disclaimer-bottom { border-bottom: none; border-top: 1px solid var(--i-line); }
.disclaimer.ok { background: var(--p-bg); color: var(--p-ink); border-bottom-color: #22c55e; }
.privacynote { background: var(--p-bg); color: var(--p-ink); border-bottom: 1px solid #22c55e; padding: 6px 16px; font-size: 12px; }
.privacynote a { color: inherit; font-weight: 600; text-decoration: underline; }
.privacynote .short { display: none; }

.layout { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 100px); align-items: start; }
.sidebar { background: var(--side); color: var(--side-ink); padding: 12px 8px; overflow-y: auto; border-right: 1px solid var(--line); }
/* Desktop: the sidebar scrolls on its own, capped to the space below the (sticky) topbar, instead of scrolling the whole page together with the main content. --topbar-h is measured and kept live by app.js. */
@media screen and (min-width: 761px) {
  .sidebar { position: sticky; top: var(--topbar-h, 64px); max-height: calc(100vh - var(--topbar-h, 64px)); }
}
/* Embedded: the host resizes the iframe to the content height, so 100vh IS the content height. Any vh-based size here feeds back (taller frame -> taller content -> taller frame) and grows forever. */
.compact-embed .layout { min-height: 0; }
.compact-embed .sidebar { max-height: none; }
.sidebar h2, .sidebar .sidehead { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); margin: 14px 10px 6px; font-weight: 600; }
.sidebar button { display: flex; width: 100%; text-align: left; gap: 8px; align-items: baseline; background: none; border: 0; color: inherit; font: inherit; padding: 8px 10px; border-radius: var(--radius); cursor: pointer; }
.sidebar button:hover { background: var(--side-active); }
.sidebar button[aria-current="true"] { background: var(--side-active); box-shadow: inset 4px 0 0 var(--green); font-weight: 700; color: var(--heading); }
.sidebar .ref { margin-left: auto; font-size: 11px; color: var(--side-muted); white-space: nowrap; }
.sidebar button.na { color: var(--side-muted); }
.sidebar button { flex-wrap: wrap; }
.sidebar .ref.gap { color: var(--side-gap); font-size: 11px; margin-left: auto; }
.na-panel.gap { text-align: left; border-left: 5px solid var(--accent); }
.sidebar details summary { cursor: pointer; padding: 8px 10px; color: var(--side-muted); font-size: 12px; }

.main { padding: 20px; max-width: 980px; outline: none; }
.main h2 { font-size: 24px; margin: 0 0 2px; color: var(--heading); font-weight: 700; letter-spacing: -.01em; }
.main .sub { color: var(--muted); margin: 0 0 16px; font-size: 13px; }
.main .learnmore { margin: -10px 0 16px; font-size: 12.5px; }
.main .learnmore a { color: var(--accent); text-decoration: none; font-weight: 600; }
.main .learnmore a:hover { text-decoration: underline; }
.intro { padding: 18px 20px 4px; }
.intro h1 { font-size: 22px; margin: 0 0 8px; color: var(--heading); font-weight: 700; letter-spacing: -.01em; }
.intro p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.intro .intro-meta { color: var(--muted); font-size: 12px; }
.intro .intro-meta a { color: inherit; text-decoration: underline; }
.widget .intro, .compact-embed .intro { display: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

label.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.revtoggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 4px; user-select: none; }
.revtoggle input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; outline-offset: 2px; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.revtoggle input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: left .15s; }
.revtoggle input:checked { background: var(--green, #38910d); }
.revtoggle input:checked::before { left: 20px; }
.revtoggle span { font-weight: 700; font-size: 14px; color: var(--heading); }
input.money, select.money { font: inherit; font-size: 20px; padding: 8px 12px; width: 100%; max-width: 360px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
input.money:focus, select.money:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.result { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.result .big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.stats b { display: block; font-variant-numeric: tabular-nums; font-size: 16px; }

.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; border: 2px solid; white-space: nowrap; }
.badge.I { background: var(--i-bg); color: var(--i-ink); border-color: var(--i-line); }
.badge.S { background: var(--s-bg); color: var(--s-ink); border-color: var(--s-line); }
.badge.P { background: var(--p-bg); color: var(--p-ink); border-color: #22c55e; }
.badge small { font-weight: 500; }

.alert { border-left: 5px solid; border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert.S { background: var(--s-bg); color: var(--s-ink); border-color: var(--s-line); }
.alert.I { background: var(--i-bg); color: var(--i-ink); border-color: var(--i-line); }
.alert.warn { background: var(--warn-bg); border-color: var(--i-line); }

table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.hit td, tr.cur td { background: var(--hit); font-weight: 600; }
td.q { color: var(--muted); font-size: 12px; font-weight: 400; }
tr.hit td.q { font-weight: 400; }
.tablewrap { overflow-x: auto; }
.workings { font-variant-numeric: tabular-nums; background: var(--bg); border-radius: var(--radius); padding: 10px 12px; }
.muted { color: var(--muted); }
.na-panel { text-align: center; padding: 40px 16px; }

.disclaimer .short, .m-only { display: none; }
.layout > * { min-width: 0; }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .logo { flex: 1 1 auto; }
  .logo img { height: 34px; }
  .toolname, .sitelinks, .topbar > .cta { display: none; }
  .navtoggle { display: inline-block; order: 2; min-height: 40px; padding: 6px 12px; font-weight: 600; }
  .yearpick { order: 3; flex: 1 1 100%; margin-left: 0; }
  .yearpick span { flex: none; }
  .yearpick select { flex: 1; min-width: 0; min-height: 40px; font-size: 16px; }
  .disclaimer { padding: 6px 12px; font-size: 12px; }
  .disclaimer .long { display: none; }
  .disclaimer .short { display: inline; }
  .privacynote { padding: 5px 12px; font-size: 11px; }
  .privacynote .long { display: none; }
  .privacynote .short { display: inline; }
  .layout { display: block; }
  /* sidebar becomes a full-width menu panel under the top bar (top is set from JS) */
  .sidebar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; overflow-y: auto; padding: 8px; }
  .sidebar.open { display: block; }
  .sidebar button { padding: 12px 10px; min-height: 44px; }
  .sidebar details summary { padding: 12px 10px; }
  .main { padding: 12px; max-width: none; }
  .card { padding: 12px; }
  input.money, select.money { max-width: none; font-size: 18px; }
  .result .big { font-size: 26px; }
  .badge { white-space: normal; }
  .stats { grid-template-columns: 1fr 1fr; }
  /* card-line quote moves under the band label instead of a 4th column */
  .m-only { display: block; }
  th.q-col, td.q-col { display: none; }
}

select.money { max-width: 100%; min-width: 0; text-overflow: ellipsis; }

/* Section 153: two readings of one years source (contradiction) */
.readings{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.reading{min-width:0;overflow-wrap:anywhere}
.reading .big{font-size:30px;font-weight:700;font-variant-numeric:tabular-nums}
.reading .lbl{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.conflictbox .reading{padding:10px}
.conflictbox .reading .big{font-size:1.4rem}
.alert.conflict{border-width:2px}
@media(max-width:640px){.readings{grid-template-columns:1fr}}
.conflictbox{border:3px solid #b45309;border-radius:10px;padding:10px;margin:10px 0;background:rgba(180,83,9,.08)}
.conflictbox .ch{font-weight:700;color:var(--conf-ink);margin-bottom:6px}
.conflictbox .cs{margin:0 0 10px;font-size:.92rem}
.conflictbox .cl{margin:10px 0 0;font-size:.8rem;opacity:.85;overflow-wrap:anywhere}
.conflictbox .readings{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;margin:0}
.conflictbox .reading{border:1px solid #b45309;border-radius:8px}
.conflictbox .vs{font-weight:700;color:var(--conf-ink);text-transform:uppercase}
@media(max-width:640px){.conflictbox .readings{grid-template-columns:1fr}.conflictbox .vs{text-align:center}}
.pchip{display:inline-block;margin-left:4px;margin-top:2px;padding:1px 6px;border-radius:8px;background:#166534;color:#dcfce7;font-size:.62rem;font-weight:700;white-space:nowrap;vertical-align:middle}
.alert.P{background:var(--p-bg);color:var(--p-ink);border-left:4px solid #22c55e}

/* theme toggle */
.themetoggle { font: inherit; font-size: 18px; line-height: 1; padding: 6px 10px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: var(--radius); cursor: pointer; }
.themetoggle:hover { background: rgba(255,255,255,.14); }
@media (max-width: 760px) { .themetoggle { order: 2; min-height: 40px; min-width: 44px; } }

/* result actions: copy / link / print */
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 16px; }
.actions button { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: var(--radius); cursor: pointer; }
.actions button:hover { background: var(--accent); color: var(--accent-ink); }
.actions .toast { font-size: 13px; color: var(--muted); }

/* year overview */
.ovhead { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.ovgroup h3 { margin-bottom: 8px; }
.ovgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ovitem { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.ovitem:hover { border-color: var(--green); box-shadow: var(--shadow); }
.ovitem b { display: block; font-size: 14px; }
.ovitem small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ovitem.ready { border-left: 4px solid var(--green); }
.ovitem.gap { border-left: 4px solid var(--accent); }
.ovitem.na { border-left: 4px solid var(--line); opacity: .85; }

/* phones: result stays right under the input, the rest folds away */
details.more { margin: 8px 0 0; }
details.more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); padding: 8px 0; }
details.more > summary .n { color: var(--muted); font-weight: 400; }
.card.folded { padding-top: 8px; padding-bottom: 8px; }

@media print {
  .topbar, .sidebar, .actions, .navtoggle, .themetoggle, .sitefoot .cta { display: none !important; }
  .layout { display: block; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; border-color: #999; }
  .disclaimer .long { display: inline !important; } .disclaimer .short { display: none !important; }
  input.money, select.money { border: 0; padding: 0; font-size: 16px; }
  .tablewrap { overflow: visible; }
}

/* keyboard: visible focus on the always-dark sidebar, and a skip link */
.sidebar button:focus-visible, .sidebar summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sitefoot { border-top: 1px solid var(--line); background: var(--panel); padding: 16px 20px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.sitefoot a { color: var(--accent); font-weight: 500; }
.sidecta { display: none; margin: 14px 8px 6px; }
.sidecta .cta { display: block; text-align: center; }
@media (max-width: 760px) { .sidecta { display: block; } .sitefoot { padding: 14px 12px; } }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; border-radius: 0 0 var(--radius) 0; font-weight: 600; }
.skip:focus { left: 0; }
:root[data-theme="dark"] { --side-gap: #9cc0ff; }

.ovnote{margin-top:16px}

/* wide screens: the top notes sit in a right-hand column (JS puts them in .sidecol); narrower screens and print keep the normal order */
@media screen and (min-width: 1280px) {
  .main.twocol { max-width: 1320px; }
  .main.twocol > .sidecol { float: right; width: 360px; margin: 0 0 16px 24px; }
  .main.twocol > .sidecol .alert:first-child { margin-top: 0; }
  .main.twocol > .card, .main.twocol > .alert, .main.twocol > .ovnote, .main.twocol > .na-panel { display: flow-root; }
  .main.twocol::after { content: ""; display: block; clear: both; }
}

/* ---- WordPress widget skin (?widget=1, set by the plugin; see top of app.js) ----
   The whole page becomes one card that sits inside a post/page column: title + year/calculator
   dropdowns on top (no sidebar, no banners), the input, a tinted result panel, everything else
   folded, and one footnote line carrying the verification + privacy notice. */
.wgtitle, .secpick, .wgfoot { display: none; }
html.widget { background: transparent; }
.widget body { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.widget .disclaimer, .widget .privacynote, .widget .sidebar, .widget .embedlogo,
.widget .themetoggle, .widget .navtoggle, .widget .sitefoot { display: none !important; }
.widget .topbar { position: static; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 16px 18px 14px; background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--line); }
.widget .wgtitle { display: flex; align-items: center; gap: 9px; flex: 1 1 100%; font-size: 17px; font-weight: 700; color: var(--heading); letter-spacing: -.01em; }
.widget .wgtitle::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--green); flex: none; }
.widget .yearpick, .widget .secpick { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; order: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.widget .yearpick { flex: 1 1 170px; max-width: 230px; }
.widget .secpick { flex: 3 1 240px; }
/* locked: the dropdown becomes plain text naming the calculator, so visitors always see which one they're using */
.widget.lock .secpick select { appearance: none; -webkit-appearance: none; background: transparent; border-color: transparent; padding-left: 0; opacity: 1; color: var(--heading); cursor: default; }
.widget .yearpick select, .widget .secpick select { width: 100%; min-width: 0; min-height: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; }
.widget .topbar :focus-visible { outline: 2px solid var(--accent); }
.widget .layout { display: block; min-height: 0; }
.widget .main { max-width: none; padding: 16px 18px 6px; }
.widget .main > h2, .widget .main > .sub, .widget .main > .learnmore { display: none; }
.widget .main.twocol > .sidecol { float: none; width: auto; margin: 0 0 12px; }
.widget .card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0 0 14px; }
.widget input.money, .widget select.money { max-width: none; }
.widget #resultcard { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.widget #resultcard > h3:first-child { display: none; }
.widget .result .big { font-size: 28px; color: var(--heading); }
.widget .card.folded { border-top: 1px solid var(--line); padding-top: 2px; margin-bottom: 2px; }
.widget .actions { margin: -4px 0 12px; }
.widget .actions [data-a="link"], .widget .actions [data-a="print"] { display: none; }
.widget .ovnote { margin: 0 0 8px; border-top: 1px solid var(--line); }
.widget .wgfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--muted); line-height: 1.4; }
.widget .wgfoot span { flex: 1 1 280px; }
.widget .wgfoot a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.widget .wgfoot a b { color: var(--heading); }
.widget:not(.credit) .wgfoot a { display: none; }   /* credit link is opt-in (&credit=1, see app.js) */
.widget .wgfoot a:hover b { text-decoration: underline; }
