/* Opitekene TaxComp — 2026-11 redesign layer.
   Loaded after styles.css. styles.css keeps every calculator / workspace
   component style; this file sets the navy + white + teal identity, the page
   frame (header, views, footer) and the new Home / Tools / Knowledge /
   Workspace / About layouts. No component logic depends on it. */

:root {
  --navy-950: #071830;
  --navy-900: #0a1f3c;
  --navy-800: #12305a;
  --navy-600: #2b4a75;
  --teal-700: #0a6f6c;
  --teal-600: #0a7c78;
  --teal-400: #2cc5b5;
  --teal-50: #e8f5f4;
  --slate-700: #334155;
  --slate-500: #5a6a7e;
  --slate-300: #cbd5e1;
  --slate-100: #eef2f7;
  --slate-50: #f6f8fb;

  /* styles.css tokens, remapped to the new palette */
  --ink: #0f1f38;
  --muted: #5a6a7e;
  --green: #0a7c78;
  --green-dark: #0a6f6c;
  --green-light: #e8f5f4;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #e2e8f0;
  --serif: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --page: min(1160px, calc(100% - 48px));
  --radius: 12px;
  --shadow-lg: 0 12px 32px rgba(10, 31, 60, 0.12);
  --header-h: 64px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

main { min-height: calc(100vh - var(--header-h) - 220px); }
main [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- views: only the active group of sections is on screen ---------- */
html[data-view="home"] main > [data-view]:not([data-view~="home"]),
html[data-view="tools"] main > [data-view]:not([data-view~="tools"]),
html[data-view="knowledge"] main > [data-view]:not([data-view~="knowledge"]),
html[data-view="assistant"] main > [data-view]:not([data-view~="assistant"]),
html[data-view="workspace"] main > [data-view]:not([data-view~="workspace"]),
html[data-view="about"] main > [data-view]:not([data-view~="about"]),
html[data-view="challenge"] main > [data-view]:not([data-view~="challenge"]),
html[data-view="position"] main > [data-view]:not([data-view~="position"]) {
  display: none !important;
}
.is-filtered-out { display: none !important; }
html[data-tool-focus="tools"] main > [data-view="tools"]:not(#tools),
html[data-tool-focus="estimator"] main > [data-view="tools"]:not(#estimator),
html[data-tool-focus="impact-assessment"] main > [data-view="tools"]:not(#impact-assessment),
html[data-tool-focus="multi-tax-analysis"] main > [data-view="tools"]:not(#multi-tax-analysis),
html[data-tool-focus="employee-lst"] main > [data-view="tools"]:not(#employee-lst),
html[data-tool-focus="net-to-gross"] main > [data-view="tools"]:not(#net-to-gross),
html[data-tool-focus="international-tax"] main > [data-view="tools"]:not(#international-tax) {
  display: none !important;
}
/* One label beside every calculated figure until the tax rules are verified
   against current law (owner instruction, 16 Nov 2026). Hidden while the
   result it belongs to is hidden or empty. */
.estimate-label { margin: 10px 0; padding: 10px 14px; border: 1px solid #b07827; border-left-width: 4px; border-radius: 6px; background: #fdf6e9; color: #4d3208; font-size: .92rem; line-height: 1.45; }
.estimate-label strong { color: #4d3208; }
[hidden] + .estimate-label, .impact-result:empty + .estimate-label, [role="status"]:empty + .estimate-label { display: none; }
.back-link {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--teal-700);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
#estimator { padding-top: 32px; }
#multi-tax-analysis,
#international-tax { padding-top: 32px; border-top: 0; }

/* One content width for every section (styles.css used several). */
main > [data-view]:not(.home-hero) {
  width: var(--page);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 15px/1.1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); }
.btn-secondary { background: #fff; border-color: var(--slate-300); color: var(--navy-900); }
.btn-secondary:hover { border-color: var(--teal-600); color: var(--teal-700); }
.btn-on-dark { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; background: #fff; border-color: var(--slate-300); color: var(--navy-900); }
.btn-small:hover { border-color: var(--teal-600); color: var(--teal-700); }
.home-hero .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.home-hero .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- header ---------- */
.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header-bar .site-header {
  width: var(--page);
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}
.brand { color: var(--navy-900); font-size: 18px; letter-spacing: -0.4px; white-space: nowrap; }
.brand-mark { border-radius: 9px; background: var(--navy-900); color: #fff; font-family: var(--sans); font-size: 16px; }
.brand-country { color: var(--teal-600); }

.site-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.site-nav > a,
.nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--slate-700);
  font: 550 14px/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-nav > a:hover,
.nav-menu-toggle:hover { background: var(--slate-100); color: var(--navy-900); }
.site-nav > a[aria-current="page"],
.nav-menu-toggle[aria-current="page"] { color: var(--teal-700); background: var(--teal-50); }
.nav-caret {
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}
.nav-menu-toggle[aria-expanded="true"] .nav-caret { transform: translateY(1px) rotate(225deg); }
.nav-menu { position: relative; }
.nav-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.nav-menu-toggle[aria-expanded="true"] + .nav-menu-panel { display: grid; }
.nav-menu-panel a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--navy-900);
  font-size: 14px;
  text-decoration: none;
}
.nav-menu-panel a:hover,
.nav-menu-panel a:focus-visible { background: var(--slate-50); color: var(--teal-700); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }
.install-app-button {
  padding: 8px 12px;
  border-color: var(--slate-300);
  border-radius: 8px;
  color: var(--navy-900);
  font-size: 13px;
}
.header-account {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-account:hover { background: var(--navy-800); }

.site-nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.site-nav-toggle-bars,
.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--navy-900);
  content: "";
  position: relative;
}
.site-nav-toggle-bars::before { position: absolute; top: -6px; }
.site-nav-toggle-bars::after { position: absolute; top: 6px; }

/* ---------- shared page pieces ---------- */
.kicker,
.eyebrow,
.section-eyebrow {
  margin: 0;
  color: var(--teal-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-block { padding-block: 56px; }
.block-head { max-width: 46em; margin-bottom: 24px; }
.block-head h2 { margin: 6px 0 8px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.015em; }
.block-head p { margin: 0; color: var(--muted); }
.page-head { max-width: 46em; margin-bottom: 20px; }
.page-head h1 { margin: 6px 0 10px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.page-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* Existing section headings: one modern sans scale instead of mixed serifs. */
.advisory-heading h2,
.other-heads h2,
.payment-heading h2,
.info-intro h2,
.multi-tax-heading h2,
.phase6-heading h2,
.section-heading h2,
.law-updates-heading h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Caveats and notices: same words, quieter presentation. */
.advisory-caveat,
.case-law-caveat,
.worked-examples-caveat,
.audit-health-caveat,
.audit-health-privacy,
.tax-chat-privacy {
  padding: 12px 14px;
  border: 0;
  border-left: 3px solid #94a3b8;
  border-radius: 8px;
  background: var(--slate-100);
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- home ---------- */
.home-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 58%, #0d4f5c 100%);
  color: #fff;
}
.home-hero-inner {
  width: var(--page);
  margin: 0 auto;
  padding-block: 80px 88px;
}
.home-hero .kicker { color: var(--teal-400); }
.home-hero h1 {
  max-width: 15em;
  margin: 14px 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.home-hero h1 span { color: #7ee3d6; }
.home-lead { max-width: 36em; margin: 0 0 30px; color: #c5d3e4; font-size: 18px; line-height: 1.55; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .trust-note {
  max-width: 44em;
  margin-top: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #a9bbd1;
  font-size: 13px;
}
.home-hero .trust-note svg { stroke: currentColor; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.service-card:hover { border-color: var(--teal-600); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-card:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.service-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-700);
}
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -0.01em; }
.service-card p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; }
.service-link { color: var(--teal-700); font-size: 14px; font-weight: 600; }
.service-link::after { content: " →"; }

.why-block { padding-top: 16px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.why-grid li { padding-top: 16px; border-top: 2px solid var(--teal-600); }
.why-grid strong { display: block; margin-bottom: 6px; font-size: 16px; }
.why-grid span { color: var(--muted); font-size: 14px; }

.home-cta {
  margin-top: 8px !important;
  margin-bottom: 72px !important;
  padding: 48px max(24px, 4vw);
  border-radius: 20px;
  background: var(--navy-900);
  color: #fff;
}
.home-cta h2 { max-width: 20em; margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.home-cta p { margin: 0 0 24px; color: #c5d3e4; }

/* ---------- home v2: split hero, feature grid, steps, plans, FAQ ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px);
  gap: 56px;
  align-items: center;
  padding-block: 72px 40px;
}
.hero-pitch h1 { margin-top: 18px; }
.hero-pill {
  display: inline-flex;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(126, 227, 214, 0.35);
  border-radius: 999px;
  background: rgba(126, 227, 214, 0.08);
  color: #7ee3d6;
  font-size: 13px;
  font-weight: 600;
}
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero-points li { display: flex; gap: 10px; color: #a9bbd1; font-size: 13px; line-height: 1.45; }
.hero-points strong { display: block; color: #fff; font-size: 13px; }
.hero-point-icon { flex: none; color: #7ee3d6; }
.hero-point-icon svg,
.feature-icon svg,
.plan-list svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-trust { width: var(--page); margin: 0 auto; padding-bottom: 40px; }
.hero-trust .trust-note { margin: 0; padding: 0; border: 0; background: none; color: #8ea3bd; font-size: 12px; }
.hero-trust .trust-note svg { stroke: currentColor; }

.preview-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(4, 14, 30, 0.35);
}
.preview-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.preview-head h2 { margin: 0; font-size: 17px; }
.preview-head p { margin: 0; color: var(--muted); font-size: 13px; }
.preview-card label { font-size: 13px; font-weight: 600; color: var(--slate-700); }
.preview-card input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  font: 600 17px var(--sans);
  color: var(--ink);
}
.preview-card input:focus { outline: 3px solid rgba(44, 197, 181, 0.35); border-color: var(--teal-600); }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 0; }
.preview-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--slate-50); }
.preview-stats .preview-stat-wide { grid-column: 1 / -1; border-color: #bfe5e0; background: var(--teal-50); }
.preview-stats dt { color: var(--muted); font-size: 12px; }
.preview-stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.preview-stat-wide dd { color: var(--teal-700); font-size: 22px; }
.preview-note { margin: 0; color: var(--muted); font-size: 12px; }
.preview-link { justify-self: start; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  gap: 1px;
}
.feature-cell {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s;
}
.feature-cell:hover { background: var(--slate-50); }
.feature-cell:focus-visible { outline: 3px solid var(--teal-400); outline-offset: -3px; }
.feature-cell strong { display: block; margin-bottom: 6px; font-size: 16px; }
.feature-cell > span:last-child { color: var(--muted); font-size: 14px; }
.feature-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: #fff; }
.tone-teal { background: var(--teal-600); }
.tone-navy { background: var(--navy-800); }
.tone-amber { background: #b7791f; }
.tone-violet { background: #5b4bb7; }

.steps-block { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; display: grid; align-content: start; gap: 6px; padding-top: 4px; }
.steps li strong { margin-top: 10px; font-size: 16px; }
.steps li > span:last-child { color: var(--muted); font-size: 14px; }
.step-num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 46px;
  right: -12px;
  height: 1px;
  background: var(--line);
}

.block-head.center { margin-inline: auto; text-align: center; }
.plans-block { border-top: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.plan-card.is-featured { border: 2px solid var(--teal-600); box-shadow: var(--shadow-lg); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-top h3 { margin: 0; font-size: 16px; }
.plan-badge { padding: 3px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: 12px; font-weight: 600; }
.plan-price { margin: 4px 0 0; font-size: 30px; font-weight: 750; letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.plan-text { margin: 0; color: var(--muted); font-size: 14px; }
.plan-list { flex: 1; display: grid; gap: 8px; margin: 8px 0 12px; padding: 0; list-style: none; font-size: 14px; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--teal-600); }
.plan-cta { width: 100%; }
.plans-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.faq-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
}
.faq-intro h2 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.015em; }
.faq-intro p { margin: 0; color: var(--muted); }
.faq-intro a { color: var(--teal-700); }
.faq-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal-700); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid var(--teal-400); outline-offset: -3px; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 14px; }

/* ---------- owner's layout: corporate site (body.corp) and the TaxComp sign-in screen (#auth-gate) ---------- */
#auth-gate, body.corp {
  --pc-navy-950: #0a1021;
  --pc-navy-900: #111b33;
  --pc-navy-800: #1b2a4a;
  --pc-teal-600: #028090;
  --pc-teal-500: #00a896;
  --pc-teal-400: #2dd4bf;
  --pc-slate-50: #f8fafc;
  --pc-slate-200: #e2e8f0;
  --pc-slate-500: #64748b;
  --pc-slate-700: #334155;
  background: var(--pc-slate-50);
  color: #1e293b;
  font-family: "Plus Jakarta Sans", var(--sans);
}
#auth-gate [id] { scroll-margin-top: 88px; }
.pc-wrap { width: min(1216px, calc(100% - 32px)); margin: 0 auto; }
.pc-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-icon-sm { width: 15px; height: 15px; }

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700; font-size: 13px; line-height: 1.1;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pc-btn:focus-visible { outline: 3px solid var(--pc-teal-400); outline-offset: 2px; }
.pc-btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.pc-btn-block { width: 100%; min-height: 54px; font-size: 14px; }
.pc-btn-teal { background: var(--pc-teal-400); color: var(--pc-navy-950); box-shadow: 0 10px 24px rgba(45, 212, 191, 0.2); }
.pc-btn-teal:hover { background: #5eead4; }
.pc-btn-ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.15); color: #fff; }
.pc-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.pc-btn-navy { background: var(--pc-navy-800); color: #fff; }
.pc-btn-navy:hover { background: var(--pc-teal-600); }
.pc-btn-outline { background: #fff; border-color: var(--pc-slate-200); color: var(--pc-navy-900); }
.pc-btn-outline:hover { border-color: var(--pc-teal-500); color: var(--pc-teal-600); }
.pc-btn-whatsapp { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.pc-btn-whatsapp:hover { background: #d1fae5; }
.pc-btn-green { width: 100%; background: #10b981; color: var(--pc-navy-950); }
.pc-btn-green:hover { background: #34d399; }

/* header */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(12px);
}
.pc-header-inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.pc-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.pc-brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pc-teal-500), var(--pc-navy-800));
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(17, 27, 51, 0.15);
}
.pc-brand-mark-sm { width: 36px; height: 36px; border-radius: 12px; background: var(--pc-teal-500); color: var(--pc-navy-950); font-size: 15px; box-shadow: none; }
.pc-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.pc-brand-text strong { color: var(--pc-navy-900); font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.pc-brand-text span { color: var(--pc-teal-600); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pc-brand-text em { color: var(--pc-slate-500); font-size: 9px; font-weight: 500; }
.pc-nav { display: flex; gap: 28px; margin: 0 auto; }
.pc-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--pc-slate-700); font-size: 14px; font-weight: 600; text-decoration: none; }
.pc-nav a:hover { color: var(--pc-teal-600); }
.pc-nav .pc-icon { color: var(--pc-teal-500); width: 16px; height: 16px; }
.pc-header-actions { display: flex; align-items: center; gap: 10px; }
.pc-menu-toggle { display: none; margin-left: auto; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--pc-slate-700); cursor: pointer; }
.pc-menu-toggle .pc-icon { width: 24px; height: 24px; }
.pc-mobile-menu { display: grid; gap: 4px; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--pc-slate-200); }
.pc-mobile-menu a,
.pc-mobile-menu button {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--pc-slate-700);
  font-weight: 500; font-size: 16px;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pc-mobile-menu a:hover,
.pc-mobile-menu button:hover { background: var(--pc-slate-50); }
.pc-mobile-menu .pc-mobile-whatsapp { margin-top: 6px; background: #d1fae5; color: #065f46; font-weight: 700; text-align: center; }

/* hero */
.pc-hero {
  padding-block: 72px 80px;
  color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(0, 168, 150, 0.15) 0%, transparent 50%),
              linear-gradient(135deg, var(--pc-navy-900) 0%, var(--pc-navy-800) 100%);
}
.pc-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.pc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--pc-teal-400);
  font-size: 12px;
  font-weight: 600;
}
.pc-hero h1 { margin: 22px 0 18px; font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.pc-hero h1 span { color: var(--pc-teal-400); }
.pc-lead { max-width: 42em; margin: 0 0 22px; color: #cbd5e1; font-size: 18px; line-height: 1.6; }
.pc-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 168, 150, 0.3);
  border-radius: 16px;
  background: rgba(0, 168, 150, 0.1);
  color: #5eead4;
  font-weight: 700;
}
.pc-tagline .pc-icon { color: var(--pc-teal-400); width: 20px; height: 20px; }
.pc-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.pc-coverage {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}
.pc-coverage-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pc-teal-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pc-coverage-item { display: grid; gap: 2px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(10, 16, 33, 0.6); }
.pc-coverage-item span { color: #94a3b8; font-size: 12px; font-weight: 600; }
.pc-coverage-item strong { color: #fff; font-size: 18px; font-weight: 800; }
.pc-coverage-item em { color: #cbd5e1; font-size: 12px; font-style: normal; }
.pc-coverage-item:first-of-type em { color: var(--pc-teal-400); }
.pc-teal-text { color: #5eead4 !important; }

/* sections */
.pc-section { padding-block: 88px; background: #fff; }
.pc-section-muted { background: var(--pc-slate-50); border-block: 1px solid var(--pc-slate-200); }
.pc-section-head { max-width: 48rem; margin: 0 auto 48px; text-align: center; }
.pc-section-head h2,
.pc-contact-info h2,
.pc-online-copy h2 { margin: 12px 0; color: var(--pc-navy-900); font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.pc-section-head p:last-child,
.pc-contact-info > p { margin: 0; color: #475569; }
.pc-badge {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid #ccfbf1;
  border-radius: 6px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pc-badge-dark { border-color: rgba(45, 212, 191, 0.3); background: rgba(45, 212, 191, 0.1); color: var(--pc-teal-400); }

/* calculator */
.pc-calc { overflow: hidden; border: 1px solid var(--pc-slate-200); border-radius: 24px; background: #fff; box-shadow: 0 10px 30px -5px rgba(27, 42, 74, 0.06); }
.pc-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px; background: var(--pc-navy-900); }
.pc-tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #cbd5e1;
  font-weight: 700; font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.pc-tab:hover { background: var(--pc-navy-800); color: #fff; }
.pc-tab[aria-selected="true"] { background: var(--pc-teal-600); color: #fff; }
.pc-tab:focus-visible { outline: 3px solid var(--pc-teal-400); outline-offset: 2px; }
.pc-calc-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding: 40px; }
.pc-panel { display: grid; gap: 18px; }
.pc-panel h3,
.pc-form-card h3 { margin: 0; color: var(--pc-navy-900); font-size: 20px; font-weight: 700; }
.pc-sub { margin: -12px 0 0; color: var(--pc-slate-500); font-size: 13px; }
.pc-field { display: grid; gap: 8px; }
.pc-field label { color: var(--pc-slate-700); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pc-field input,
.pc-field select,
.pc-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pc-slate-200);
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  font-weight: 600; font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}
.pc-field textarea { font-weight: 400; resize: vertical; }
.pc-field input:focus,
.pc-field select:focus,
.pc-field textarea:focus { outline: 2px solid rgba(0, 168, 150, 0.35); border-color: var(--pc-teal-500); }
.pc-help { margin: 0; color: var(--pc-slate-500); font-size: 12px; line-height: 1.5; }
.pc-check { display: flex; gap: 10px; align-items: center; color: var(--pc-slate-700); font-size: 14px; font-weight: 600; }
.pc-check input { width: 18px; height: 18px; accent-color: var(--pc-teal-500); }
.pc-rates { padding: 12px 14px; border: 1px solid var(--pc-slate-200); border-radius: 12px; background: var(--pc-slate-50); color: #475569; font-size: 12px; }
.pc-rates strong { display: block; margin-bottom: 4px; color: var(--pc-navy-800); }
.pc-rates ul { margin: 0; padding-left: 18px; }
.pc-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border: 1px solid #1e293b;
  border-radius: 18px;
  background: var(--pc-navy-950);
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.pc-summary-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #1e293b; }
.pc-summary-top span { color: var(--pc-teal-400); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.pc-summary-top em { padding: 4px 10px; border: 1px solid rgba(0, 168, 150, 0.3); border-radius: 999px; background: rgba(0, 168, 150, 0.2); color: #5eead4; font-size: 10px; font-style: normal; font-weight: 600; }
.pc-summary-rows { display: grid; gap: 10px; margin: 0; }
.pc-summary-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.pc-summary-rows dt { color: #94a3b8; }
.pc-summary-rows dd { margin: 0; font-weight: 700; text-align: right; }
.pc-summary-rows dd[data-tone="tax"] { color: #fb7185; }
.pc-summary-rows dd[data-tone="accent"] { color: var(--pc-teal-400); }
.pc-result { display: grid; gap: 4px; padding: 16px; border: 1px solid rgba(0, 168, 150, 0.3); border-radius: 12px; background: var(--pc-navy-900); }
.pc-result span { color: #94a3b8; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pc-result strong { color: var(--pc-teal-400); font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.pc-summary-note { margin: -6px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.5; }
.pc-summary-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid #1e293b; }
.pc-summary-actions .pc-btn { width: 100%; white-space: normal; text-align: center; }

/* services */
.pc-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pc-service {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--pc-slate-200);
  border-radius: 24px;
  background: var(--pc-slate-50);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pc-service:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(27, 42, 74, 0.1); }
.pc-service-head { display: flex; align-items: center; gap: 12px; }
.pc-service-head h3 { margin: 0; color: var(--pc-navy-900); font-size: 24px; font-weight: 700; }
.pc-service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; }
.pc-service-icon .pc-icon { width: 24px; height: 24px; }
.pc-service-icon.tone-teal { background: rgba(0, 168, 150, 0.1); color: var(--pc-teal-600); }
.pc-service-icon.tone-navy { background: rgba(27, 42, 74, 0.1); color: var(--pc-navy-800); }
.pc-service-icon.tone-blue { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.pc-service-icon.tone-indigo { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }
.pc-ticks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pc-ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--pc-slate-700); font-size: 14px; font-weight: 500; }
.pc-ticks .pc-icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--pc-teal-500); color: #fff; box-sizing: border-box; }
.pc-ticks-dark li { color: #e2e8f0; }
.pc-text-link { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(226, 232, 240, 0.6); color: var(--pc-teal-600); font-size: 13px; font-weight: 700; text-decoration: none; }
.pc-text-link:hover { color: var(--pc-navy-900); }

/* sign-in section */
.pc-section-navy { background: linear-gradient(135deg, var(--pc-navy-900) 0%, var(--pc-navy-800) 100%); color: #fff; }
.pc-online-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.pc-online-copy h2 { color: #fff; }
.pc-online-copy > p { color: #cbd5e1; }
.pc-online-copy .pc-ticks { margin-top: 18px; }
.pc-online-plans { margin-top: 22px; color: #94a3b8; font-size: 13px; }
.gate-card-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.gate-card-note,
.auth-gate-loading { margin: 0 0 14px; color: var(--pc-slate-500); font-size: 14px; line-height: 1.5; }
#pc-online .auth-gate-card { padding: 28px 26px; border-radius: 20px; background: #fff; color: var(--pc-navy-900); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); }

/* contact */
.pc-contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.pc-contact-info { display: grid; gap: 16px; }
.pc-contact-info .pc-badge { justify-self: start; }
.pc-card { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--pc-slate-200); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px -5px rgba(27, 42, 74, 0.06); font-size: 14px; }
.pc-card p { margin: 0; color: var(--pc-slate-700); }
.pc-card a { color: var(--pc-navy-900); font-weight: 700; text-decoration: none; }
.pc-card a:hover { color: var(--pc-teal-600); }
.pc-card-label { display: flex; align-items: center; gap: 6px; color: var(--pc-teal-600) !important; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pc-card-whatsapp { border-color: #064e3b; background: #022c22; }
.pc-card-whatsapp p { color: #cbd5e1; }
.pc-card-whatsapp .pc-card-label { color: #34d399 !important; }
.pc-card-whatsapp a.pc-btn { color: var(--pc-navy-950); }
.pc-form-card { padding: 40px; border: 1px solid var(--pc-slate-200); border-radius: 24px; background: #fff; box-shadow: 0 10px 30px -5px rgba(27, 42, 74, 0.06); }
.pc-form-card .pc-sub { margin: 6px 0 22px; }
.pc-form-card form { display: grid; gap: 16px; }
.pc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc-form-card .pc-field input,
.pc-form-card .pc-field select,
.pc-form-card .pc-field textarea { background: var(--pc-slate-50); font-weight: 400; }
.pc-form-alert { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.pc-form-alert[data-kind="success"] { background: #d1fae5; color: #065f46; }
.pc-form-alert[data-kind="error"] { background: #fde8e8; color: #9b1c1c; }

/* footer */
.pc-footer { padding-block: 48px; border-top: 1px solid #1e293b; background: var(--pc-navy-950); color: #94a3b8; }
.pc-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #1e293b; }
.pc-footer-brand { display: flex; align-items: center; gap: 12px; }
.pc-footer-brand strong { display: block; color: #fff; font-size: 16px; font-weight: 800; }
.pc-footer-brand em { color: var(--pc-teal-400); font-size: 12px; font-style: normal; }
.pc-footer-contact { font-size: 12px; text-align: right; }
.pc-footer-contact p,
.pc-footer-bottom p { margin: 0; }
.pc-footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; color: #94a3b8; font-size: 12px; }
.pc-footer-tagline { color: var(--pc-teal-400); font-style: italic; }

@media (max-width: 1100px) {
  .pc-nav { gap: 18px; }
  .pc-header-actions .pc-btn-whatsapp { display: none; }
}
@media (max-width: 900px) {
  .pc-nav,
  .pc-header-actions { display: none; }
  .pc-menu-toggle { display: inline-grid; }
  .pc-hero-grid,
  .pc-calc-body,
  .pc-online-grid,
  .pc-contact-grid { grid-template-columns: 1fr; }
  .pc-hero { text-align: center; }
  .pc-hero-actions { justify-content: center; }
  .pc-calc-body { padding: 24px; }
  .pc-services { grid-template-columns: 1fr; gap: 20px; }
  .pc-section { padding-block: 64px; }
  .pc-footer-top,
  .pc-footer-bottom { flex-direction: column; text-align: center; }
  .pc-footer-contact { text-align: center; }
}
@media (max-width: 560px) {
  .pc-header-inner { height: 68px; }
  .pc-brand-text em { display: none; }
  .pc-hero { padding-block: 48px 56px; }
  .pc-hero-actions .pc-btn { width: 100%; }
  .pc-form-row { grid-template-columns: 1fr; }
  .pc-form-card { padding: 24px; }
  .pc-service { padding: 24px; }
  .pc-service-head h3 { font-size: 20px; }
}

/* Print only the calculator summary from the front page. */
@media print {
  html.pc-printing #auth-gate > :not(#pc-calculator),
  html.pc-printing .pc-tabs,
  html.pc-printing .pc-summary-actions,
  html.pc-printing .pc-section-head .pc-badge { display: none !important; }
  html.pc-printing #pc-calculator { padding: 0; border: 0; background: #fff; }
  html.pc-printing .pc-summary { color: #000; background: #fff; border-color: #ccc; box-shadow: none; }
  html.pc-printing .pc-summary * { color: #000 !important; }
}

/* ---------- tax tools catalogue ---------- */
.tools-catalogue { padding-bottom: 24px; }
.catalogue-controls { display: grid; gap: 14px; margin: 8px 0 24px; }
.catalogue-search {
  width: 100%;
  max-width: 520px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 15px var(--sans);
}
.catalogue-search:focus { outline: 3px solid rgba(44, 197, 181, 0.35); border-color: var(--teal-600); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-700);
  font: 500 14px var(--sans);
  cursor: pointer;
}
.chip:hover { border-color: var(--navy-600); }
.chip[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.tool-card:hover { border-color: #b8c4d4; }
.tool-card h3 { margin: 0; font-size: 16px; }
.tool-card p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; }
.tool-card .btn-small { align-self: flex-start; margin-top: 8px; }
.catalogue-empty { color: var(--muted); }

/* ---------- knowledge ---------- */
.knowledge-head { padding-bottom: 8px; }
.knowledge-head + section { border-top: 0; }
.link-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.link-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { color: var(--teal-700); font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list span { color: var(--muted); font-size: 14px; text-align: right; }
.laws-section { padding-bottom: 24px; border-top: 1px solid var(--line); }

/* ---------- assistant ---------- */
.tax-chat-section { padding-top: 48px; }

/* ---------- workspace ---------- */
.workspace-view {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-block: 40px 72px;
}
.ws-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.ws-sidebar-title { margin: 4px 8px 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ws-nav { display: grid; gap: 2px; }
.ws-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.ws-nav a:hover { background: var(--slate-50); color: var(--navy-900); }
.ws-nav a[aria-current="page"] { background: var(--teal-50); color: var(--teal-700); }
.ws-main { min-width: 0; }
.ws-main .phase6-section,
.ws-main .account-section { width: auto; margin: 0; padding-top: 0; }
.ws-pane .block-head { margin-bottom: 16px; }
.ws-empty { max-width: 48em; margin: 0; padding: 20px; border: 1px dashed var(--slate-300); border-radius: var(--radius); background: #fff; color: var(--muted); }
.ws-empty a { color: var(--teal-700); }
.ws-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- about ---------- */
.about-intro { padding-bottom: 16px; }
.legal-section { padding-block: 32px; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.legal-section p,
.plain-list { max-width: 52em; color: var(--slate-700); font-size: 15px; }
.plain-list { margin: 0 0 12px; padding-left: 20px; }
.plain-list li + li { margin-top: 6px; }
.legal-section a { color: var(--teal-700); }

/* ---------- footer ---------- */
.site-footer-bar { margin-top: 40px; background: var(--navy-950); color: #cbd5e1; }
.site-footer-bar .site-footer {
  width: var(--page);
  height: auto;
  margin: 0 auto;
  padding-block: 40px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  border: 0;
  font-size: 14px;
}
.footer-brand { color: #fff; }
.footer-brand-block p { max-width: 26em; margin: 12px 0 0; color: #94a3b8; }
.footer-col { display: grid; gap: 10px; }
.footer-col-title { margin: 0 0 2px; color: #fff; font-size: 13px; font-weight: 700; }
.footer-col a { color: #cbd5e1; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #94a3b8; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .site-header-bar .site-header { gap: 12px; }
  .site-nav-toggle { display: inline-grid; place-items: center; order: 3; }
  .header-actions { order: 2; margin-left: auto; }
  .site-nav { display: none; }
  html.nav-open .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  html.nav-open .site-nav > a,
  html.nav-open .nav-menu-toggle { width: 100%; justify-content: space-between; padding: 12px; font-size: 15px; }
  .nav-menu-panel { position: static; min-width: 0; padding: 2px 0 6px 12px; border: 0; box-shadow: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; }
  .site-footer-bar .site-footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; padding-top: 48px; }
  .preview-card { max-width: 520px; }
  .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .faq-block { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 860px) {
  .workspace-view { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 24px; }
  .ws-sidebar { position: static; padding: 6px; min-width: 0; }
  .ws-sidebar-title { display: none; }
  .ws-nav { display: flex; overflow-x: auto; }
  .ws-nav a { flex: 0 0 auto; white-space: nowrap; }
  .site-footer-bar .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --page: calc(100% - 32px); --header-h: 60px; }
  .site-header-bar .site-header { width: var(--page); height: var(--header-h); }
  .install-app-button { display: none; }
  .home-hero-inner { padding-block: 48px 56px; }
  .home-lead { font-size: 16px; }
  .page-block { padding-block: 40px; }
  .service-grid,
  .why-grid,
  .feature-grid,
  .steps,
  .hero-points { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .feature-cell { padding: 20px; }
  .hero-split { padding-block: 36px 28px; }
  .home-actions .btn { flex: 1 1 auto; }
  .link-list li { flex-direction: column; gap: 4px; }
  .link-list span { text-align: left; }
  /* styles.css narrowed these to 560px on phones; use the full page width */
  main > [data-view]:not(.home-hero) { width: var(--page); }
}

@media (max-width: 420px) {
  .brand-text { font-size: 16px; }
  .header-account { padding: 0 10px; font-size: 13px; }
}

@media print {
  .site-header-bar,
  .site-footer-bar,
  .mobile-install-banner { display: none !important; }
}

/* ------------------------------------------------ Challenge an Assessment */
/* Uses the site's tokens; alert colours are the ones .phase6-alert already uses. */
.challenge-view { max-width: 980px; }
.challenge-view h3 { font-size: 1.15rem; margin: 0 0 10px; color: var(--navy-900); }
.challenge-view h3:focus { outline: none; }
.challenge-view h4 { font-size: 1rem; margin: 22px 0 8px; color: var(--navy-900); }
.ch-muted { color: var(--muted); }
.ch-intro p { max-width: 65ch; }
.ch-card { background: var(--paper, #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; display: grid; gap: 10px; }
.ch-card > *, .ch-research, .ch-research * { min-width: 0; overflow-wrap: anywhere; }
.ch-card > label, .ch-upload > label { font-weight: 600; margin-top: 6px; }
.ch-card input[type="file"], .ch-card textarea, .ch-card select, .ch-card input[type="text"], .ch-card input[type="date"] {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--slate-300); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; box-sizing: border-box;
}
.ch-card textarea { min-height: 72px; }
.ch-card :is(input, select, textarea, button):focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; }
.ch-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ch-link { background: none; border: 0; padding: 4px 0; color: var(--teal-700); text-decoration: underline; font: inherit; cursor: pointer; text-align: left; min-height: 32px; }
.ch-danger-text { color: #682b2b; }
.ch-message { padding: 10px 14px; border-radius: 8px; border-left: 3px solid var(--teal-600); background: var(--teal-50); color: var(--navy-900); }
.ch-message.ch-error { border-color: #9c3939; background: #fbefed; color: #682b2b; }
.ch-message.ch-success { border-color: var(--green, #1f7a4d); }
.ch-banner { border-left: 4px solid var(--teal-600); background: var(--teal-50); color: var(--navy-900); padding: 12px 16px; border-radius: 8px; margin: 10px 0; }
.ch-banner strong { display: block; font-size: 1.05rem; }
.ch-banner p { margin: 6px 0 0; }
.ch-banner.ch-warn { border-color: #b07827; background: #fdf6e9; color: #5a3d10; }
.ch-banner.ch-danger { border-color: #9c3939; background: #fbefed; color: #682b2b; }
.ch-banner.ch-ok { border-color: var(--teal-600); }
.ch-rule { font-size: .85rem; }
.ch-provisional { font-weight: 700; font-size: .9rem; }
.ch-assumptions { font-size: .85rem; margin: 6px 0 0; padding-left: 18px; }
.ch-next { margin: 4px 0 8px; }
.ch-case-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.ch-toggle, .ch-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ch-toggle button { min-height: 40px; padding: 6px 14px; border: 1px solid var(--slate-300); background: #fff; color: var(--navy-900); border-radius: 999px; font: inherit; cursor: pointer; }
.ch-toggle button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.ch-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ch-steps button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); background: var(--slate-50); color: var(--navy-900); border-radius: 8px; font: inherit; cursor: pointer; }
.ch-steps button[aria-current="step"] { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.ch-steps button:disabled { opacity: .55; cursor: not-allowed; }
.ch-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ch-field { display: grid; gap: 6px; min-width: 0; }
.ch-field > label { font-weight: 600; }
.ch-field.ch-wide { grid-column: 1 / -1; }
.ch-field.is-pending { background: var(--teal-50); border-radius: 8px; padding: 8px; }
.ch-field-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.ch-inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.ch-inline input { width: 20px; height: 20px; min-height: 0; }
.ch-conf { font-weight: 600; }
.ch-conf-low { color: #682b2b; }
.ch-conf-medium { color: #5a3d10; }
.ch-item { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 12px; display: grid; gap: 10px; }
.ch-item legend { font-weight: 700; padding: 0 6px; }
.ch-questions { margin: 0; padding-left: 18px; color: var(--navy-900); }
.ch-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-help { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ch-offer { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.ch-offer h5 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.ch-offer p { margin: 0 0 10px; }
.ch-outcomes { list-style: none; padding: 0; display: grid; gap: 10px; }
.ch-outcome { border-left: 4px solid var(--slate-300); padding: 8px 12px; background: var(--slate-50); border-radius: 6px; }
.ch-outcome p { margin: 4px 0 0; }
.ch-o-computational_error, .ch-o-arguable_legal_ground { border-color: var(--teal-600); }
.ch-o-insufficient_evidence { border-color: #b07827; }
.ch-o-procedural_issue { border-color: #9c3939; }
.ch-table-wrap { overflow-x: auto; }
.ch-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.ch-table th, .ch-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.ch-table th { background: var(--slate-50); color: var(--ink); }
.ch-table thead th { white-space: nowrap; word-break: normal; }
.ch-table td { font-variant-numeric: tabular-nums; }
.ch-table-wrap:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.ch-note { border-left: 3px solid #b07827; padding-left: 10px; }
.ch-research { border-top: 1px solid var(--line); padding-top: 8px; }
.ch-checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.ch-checklist li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 200px); gap: 10px; align-items: center; }
.ch-checklist small { display: block; color: var(--muted); }
.ch-case-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.ch-law-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.ch-law-row { display: grid; gap: 6px; }
.ch-reviewer { border-top: 2px solid var(--navy-900); padding-top: 10px; display: grid; gap: 8px; }
.feature-cell-wide { grid-column: 1 / -1; }
.kb-register-title { margin-top: 22px; }
#challenge-print { display: none; }
@media (max-width: 560px) {
  .ch-card { padding: 14px; }
  .ch-checklist li { grid-template-columns: 1fr; }
}
@media print {
  html.ch-printing body > * { display: none !important; }
  html.ch-printing body > main { display: block !important; }
  html.ch-printing main > * { display: none !important; }
  html.ch-printing main > #challenge { display: block !important; }
  html.ch-printing #challenge > * { display: none !important; }
  html.ch-printing #challenge-print { display: block !important; font: 11pt/1.45 Georgia, serif; color: #000; }
  html.ch-printing #challenge-print .ch-print-doc { break-before: page; }
  html.ch-printing #challenge-print .ch-print-doc:first-of-type { break-before: auto; }
  html.ch-printing #challenge-print table { border-collapse: collapse; width: 100%; }
  html.ch-printing #challenge-print th, html.ch-printing #challenge-print td { border: 1px solid #555; padding: 4px; }
  html.ch-printing #challenge-print .ch-cite { font-size: 9pt; font-style: italic; }
}

/* ------------------------------------------------------- My Tax Position */
/* Builds on the Challenge an Assessment components (.ch-*) and site tokens. */
.tp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.tp-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--paper, #fff); display: grid; gap: 4px; min-width: 0; }
.tp-tile-label { font-size: .85rem; color: var(--muted); }
.tp-tile strong { font-size: 1.3rem; color: var(--navy-900); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tp-tile small { color: var(--muted); }
.tp-tile.tp-warn { border-color: #b07827; background: #fdf6e9; }
.tp-txns, .tp-taxes, .tp-risks { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.tp-txn, .tp-tax { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.tp-txn.is-pending { border-color: #b07827; background: #fdf6e9; }
.tp-txn-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.tp-txn-head strong { overflow-wrap: anywhere; color: var(--ink); }
.tp-txn-meta { margin: 0; font-size: .85rem; }
.tp-amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.tp-amt.tp-in { color: #1f6b46; }
.tp-amt.tp-out { color: var(--navy-900); }
.tp-question { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.tp-question legend { font-weight: 600; padding: 0; margin-bottom: 4px; color: var(--navy-900); }
.tp-question .ch-inline input { flex: none; }
.tp-tax.tp-s-needs_information, .tp-tax.tp-s-not_assessed { background: var(--slate-50); }
.tp-sticky { position: sticky; bottom: 0; background: var(--paper, #fff); padding: 10px 0; border-top: 1px solid var(--line); z-index: 2; }
.position-view progress { width: 100%; height: 14px; }
.tp-risks .ch-banner { margin: 0; }
#position-print { display: none; }
@media (max-width: 560px) {
  .tp-txn-head { grid-template-columns: minmax(0, 1fr) auto; }
  .tp-txn-head > span:first-child { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
}
@media print {
  html.tp-printing body > * { display: none !important; }
  html.tp-printing body > main { display: block !important; }
  html.tp-printing main > * { display: none !important; }
  html.tp-printing main > #position { display: block !important; }
  html.tp-printing #position > * { display: none !important; }
  html.tp-printing #position-print { display: block !important; font: 11pt/1.45 Georgia, serif; color: #000; }
  html.tp-printing #position-print table { border-collapse: collapse; }
  html.tp-printing #position-print th, html.tp-printing #position-print td { border: 1px solid #555; padding: 4px 8px; text-align: left; }
}

/* Keep anything scrolled into view or focused clear of the sticky header and,
   on phones, the fixed "Install TaxComp" banner (WCAG 2.4.11 Focus Not Obscured). */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (max-width: 760px) {
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* Narrow phones: the header must fit even with wider system fonts (Android, Linux). */
@media (max-width: 420px) {
  .site-header-bar .site-header { gap: 8px; }
  .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 6px; flex: 0 0 auto; }
  .header-account { padding: 0 8px; }
  .site-nav-toggle { flex: 0 0 auto; }
}

/* Knowledge Centre search (kb-search.js) */
.kb-search-form { margin: 16px 0 4px; max-width: 640px; }
.kb-search-results { max-width: 760px; margin: 8px 0 0; }
.kb-search-status { margin: 0 0 8px; color: var(--navy-600); font-size: .9rem; }
.kb-search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kb-search-hit { display: grid; gap: 4px; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; font: inherit; min-height: 44px; }
.kb-search-hit:hover, .kb-search-hit:focus-visible { border-color: var(--teal-600); outline: 2px solid var(--teal-600); outline-offset: 1px; }
.kb-search-meta { font-size: .8rem; font-weight: 600; color: var(--navy-600); }
.kb-search-snippet mark { background: #fff1b8; color: inherit; padding: 0 1px; }
.kb-hit { outline: 3px solid var(--teal-600); outline-offset: 4px; border-radius: 4px; transition: outline-color .6s; }
.tax-chat-history-note { margin: 4px 0 8px; font-size: .85rem; color: var(--navy-600); text-align: center; }

/* Legislative watch (Law and cases admin) */
.ch-watch { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; }
.ch-watch-new { border-left: 4px solid var(--teal-600); padding-left: 10px; }
.ch-watch-stage { margin: 4px 0; font-weight: 600; color: var(--ink); }
.ch-watch-enacted { color: #7a4b00; }

/* Guided international tax question (intl-tax-reasoning.js) */
.intl-guide { display: grid; gap: 14px; margin: 0 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.intl-guide h3 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 600; }
.intl-guide p { margin: 0; color: var(--muted); line-height: 1.6; }
#intl-guide-form { display: grid; gap: 12px; max-width: 760px; }
#intl-guide-form textarea { width: 100%; min-height: 84px; padding: 10px 12px; border: 1px solid var(--slate-300); border-radius: 8px; font: inherit; resize: vertical; }
#intl-guide-form select, #intl-guide-form input { width: 100%; min-height: 44px; }
#intl-guide-form > button { justify-self: start; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
#intl-guide-form > button:hover { background: var(--green-dark); }
#intl-guide-form > button:disabled { opacity: .6; cursor: wait; }
.intl-guide-questions { display: grid; gap: 12px; }
.intl-guide-questions:empty { display: none; }
.intl-guide-answer { display: grid; gap: 14px; max-width: 820px; padding-top: 6px; border-top: 1px solid var(--line); }
.intl-answer-part h4 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.intl-answer-part ul, .intl-answer-part ol, .intl-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.55; }
.intl-answer-lead { color: var(--ink) !important; font-weight: 600; }
.intl-answer-warning { color: #8a1c1c !important; font-weight: 600; }
.intl-layer, .intl-source-kind { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--slate-100); color: var(--navy-600); }
.intl-layer.is-domestic, .intl-source-kind.is-legislation, .intl-source-kind.is-verified { background: var(--teal-50); color: var(--teal-700); }
.intl-muted { color: var(--muted); font-size: .85rem; }
.intl-steps summary, .intl-framework summary { cursor: pointer; font-weight: 600; color: var(--navy-600); min-height: 44px; display: flex; align-items: center; }
.intl-framework-list { display: grid; gap: 6px; padding-left: 20px; }
.intl-working { display: grid; gap: 6px; margin: 12px 0; padding: 12px 14px; border-radius: 8px; background: var(--slate-50); border: 1px solid var(--line); }
.intl-working h5 { margin: 6px 0 0; font-size: .85rem; color: var(--navy-600); text-transform: uppercase; letter-spacing: .04em; }
.intl-working dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 12px; margin: 0; }
.intl-working dd { margin: 0; overflow-wrap: anywhere; }
.intl-working ol, .intl-working ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.intl-formula { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; overflow-wrap: anywhere; }

/* Knowledge base (Law and cases admin) */
.ch-kb { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; }
.ch-kb-draft { border-left: 4px solid #b38331; padding-left: 10px; }
.ch-kb-outdated, .ch-kb-rejected { opacity: .75; }
.ch-kb-body { margin: 6px 0; white-space: pre-wrap; }
/* Contrast (WCAG AA) on the International tax page */
.advisory-heading p:last-child { color: var(--muted); }
.international-tax-topics article > span { color: #7a5518; }

/* Structure of the tax Acts (law-index.js) */
.law-index { display: grid; gap: 8px; margin: 8px 0 20px; }
.law-index-act { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; background: #fff; }
.law-index-act > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--ink); }
.law-index-meta { margin: 0 0 8px; color: var(--muted); font-size: .85rem; }
.law-index-part { margin: 12px 0 4px; font-size: .95rem; color: var(--navy-600); }
.law-index-division { margin: 8px 0 2px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.law-index-sections { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.law-index-sections li { line-height: 1.5; overflow-wrap: anywhere; }
.law-index-number { display: inline-block; min-width: 3.2em; font-variant-numeric: tabular-nums; color: var(--muted); }
/* Legislative database: status badges, Act search, chat citations */
.law-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #fdf3e1; color: #7a5518; vertical-align: middle; }
.law-status.is-verified { background: var(--teal-50); color: var(--teal-700); }
.law-status.is-superseded, .law-status.is-requires_amendment_review { background: #fdecec; color: #8a1c1c; }
.law-status.is-under_review { background: var(--slate-100); color: var(--navy-600); }
.law-search-form { display: grid; gap: 6px; max-width: 640px; margin: 4px 0; }
.law-search-form input { min-height: 44px; padding: 0 12px; border: 1px solid var(--slate-300); border-radius: 8px; font: inherit; }
.law-index-warn { color: #7a5518; }
.law-index-flag { color: #7a5518; font-size: .85rem; }
.law-index-gaps summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--navy-600); }
.law-amendments { margin: 8px 0 12px; padding: 4px 12px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--slate-50); }
.law-amendments > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--navy-600); }
.law-amendments-act h4 { margin: 14px 0 2px; font-size: 1rem; }
.law-amendments-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 8px; }
.law-amendments-list > li { padding: 8px 10px; border-left: 3px solid var(--slate-300); background: #fff; border-radius: 4px; }
.law-amendments-list > li.is-conflict { border-left-color: #b7791f; }
.law-amendments-list p { margin: 2px 0; }
.law-amendments-figures { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 4px 0; font-size: .9rem; }
.law-amendments-figures dt { font-weight: 600; color: var(--navy-600); }
.law-amendments-figures dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.law-change-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.law-change-card { display: grid; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal-700, #0f766e); border-radius: 8px; min-width: 0; }
.law-change-card.is-conflict { border-top-color: #b7791f; }
.law-change-title { margin: 0; font-weight: 700; color: var(--navy-600); font-size: .95rem; }
.law-change-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.law-change-pair span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-600, #475569); }
.law-change-pair strong { display: block; overflow-wrap: anywhere; font-size: .95rem; }
.law-change-pair p { margin: 0 0 4px; }
.law-change-before strong { color: var(--slate-600, #475569); text-decoration: line-through; text-decoration-thickness: 1px; }
.law-change-arrow { font-size: 1.2rem; color: var(--teal-700, #0f766e); }
.tax-chat-legislation { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--slate-50); }
.tax-chat-legislation summary { cursor: pointer; font-weight: 600; }
.tax-chat-legislation ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 4px; }
.tax-chat-legislation-status, .tax-chat-legislation-note { color: var(--muted); font-size: .85rem; }
/* Phase 12: personalised dashboard (dashboard.js) */
.dash { display: grid; gap: 16px; }
#dashboard-root { display: grid; gap: 16px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.dash-head h2 { margin: 0; }
.dash-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-mode { display: flex; gap: 6px; align-items: center; }
.dash-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; display: grid; gap: 8px; min-width: 0; }
.dash-card h3 { margin: 0; font-size: 1.05rem; }
.dash-card p { margin: 0; line-height: 1.55; }
.dash-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.dash-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.dash-link { font-weight: 600; color: var(--teal-700); min-height: 44px; display: inline-flex; align-items: center; }
.dash-muted { color: var(--muted); font-size: .9rem; }
.dash-warn { color: #7a5518; font-weight: 600; }
.dash-recs ul, .dash-notes, .dash-provisions { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.dash-rec-text { font-weight: 600; color: var(--ink); }
.dash-changes { border-left: 4px solid var(--teal-600); }
.dash-changes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dash-changes li { padding: 10px 12px; background: var(--slate-50); border-radius: 8px; border-left: 3px solid var(--slate-300); display: grid; gap: 4px; }
.dash-changes li.is-conflict { border-left-color: #b7791f; }
.dash-changes li p { margin: 0; overflow-wrap: anywhere; }
.dash-companion.is-prominent { border-color: var(--teal-600); box-shadow: var(--shadow-lg); }
.dash-companion-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.dash-companion-form label { grid-column: 1 / -1; font-weight: 600; }
.dash-companion-form input, .dash-onboarding select, .dash-discover-form select { min-height: 44px; padding: 0 10px; border: 1px solid var(--slate-300); border-radius: 8px; font: inherit; width: 100%; }
.dash-onboarding, .dash-discover-form { display: grid; gap: 12px; max-width: 680px; }
.dash-interests { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px; }
.dash-check { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-obligations { display: grid; gap: 10px; }
.dash-obligation { border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.dash-obligation.is-needs_verification { border-left-color: #b38331; }
.dash-obligation h4 { margin: 0; font-size: 1rem; }
.dash-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--teal-50); color: var(--teal-700); vertical-align: middle; }
.dash-badge.is-needs_verification { background: #fdf3e1; color: #7a5518; }
@media (max-width: 520px) { .dash-companion-form { grid-template-columns: 1fr; } }
/* Tax Impact Assessment (impact-assessment.js) */
.impact-section { display: grid; gap: 16px; }
.impact-intro { max-width: 72ch; color: var(--slate-600, #475569); }
.impact-form { display: grid; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; max-width: 860px; }
.impact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.impact-field { display: grid; gap: 6px; min-width: 0; }
.impact-field label { font-weight: 600; color: var(--navy-600); }
.impact-field label span { font-weight: 400; color: var(--slate-600, #475569); }
.impact-field textarea, .impact-field select, .impact-field input[type="text"], .impact-save input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--slate-300); border-radius: 8px; font: inherit; background: #fff; }
.impact-help { margin: 0; color: var(--slate-600, #475569); font-size: .9rem; }
.impact-examples { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.impact-examples .chip { text-align: left; white-space: normal; min-height: 44px; }
.impact-result { display: grid; gap: 14px; max-width: 980px; }
.impact-result:empty { display: none; }
.impact-understanding { margin: 0; font-weight: 600; color: var(--navy-600); }
.impact-questions { display: grid; gap: 12px; padding: 16px; background: var(--slate-50); border: 1px solid var(--line); border-radius: 12px; }
.impact-questions h3 { margin: 0; }
.impact-mode { display: flex; gap: 8px; flex-wrap: wrap; }
.impact-conclusion { margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: 8px; font-size: 1.02rem; line-height: 1.6; }
.impact-conflict { margin: 0; padding: 10px 14px; background: #fdf3e1; color: #6b4a12; border-left: 4px solid #b7791f; border-radius: 6px; }
.impact-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.impact-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.impact-table caption { text-align: left; padding: 10px 12px; font-weight: 700; color: var(--navy-600); }
.impact-table th, .impact-table td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.impact-table thead th { background: var(--slate-50); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-700, #334155); }
.impact-table tr.is-conflict th[scope="row"] { box-shadow: inset 3px 0 0 #b7791f; }
.impact-whatif { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; background: var(--slate-50); border-radius: 10px; }
.impact-whatif label { font-weight: 600; }
.impact-whatif input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--teal-600); }
.impact-whatif output { font-weight: 700; font-size: 1.05rem; }
.impact-actions { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.impact-actions h4 { margin: 0 0 8px; }
.impact-actions ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.impact-actions p { margin: 0; }
.impact-details { padding: 4px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.impact-details > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--navy-600); }
.impact-steps, .impact-sources { display: grid; gap: 8px; padding-left: 20px; }
.impact-sources { list-style: none; padding-left: 0; }
.impact-sources li { padding: 10px 0; border-top: 1px solid var(--line); }
.impact-sources dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 6px 0; font-size: .92rem; }
.impact-sources dt { font-weight: 600; color: var(--navy-600); }
.impact-sources dd { margin: 0; overflow-wrap: anywhere; }
.impact-subhead { margin: 8px 0 4px; font-weight: 700; }
.impact-limits { margin: 0; padding-left: 18px; color: var(--slate-600, #475569); font-size: .88rem; }
.impact-save { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.impact-save label { grid-column: 1 / -1; font-weight: 600; }
.impact-save .impact-help { grid-column: 1 / -1; }
.law-amended-mark { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #fdf3e1; color: #6b4a12; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.dash-saved li, .dash-progress { display: grid; gap: 4px; }
.dash-progress select { min-height: 44px; padding: 0 10px; border: 1px solid var(--slate-300); border-radius: 8px; font: inherit; max-width: 260px; }
/* ---------------------------------------------------------------
   Corporate site (index.html) and the TaxComp sign-in screen
   (taxcomp/index.html #auth-gate). Builds on the pc-* design system.
   --------------------------------------------------------------- */
body.corp { margin: 0; background: #fff; }
.corp .skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--pc-navy-900); color: #fff; border-radius: 8px; }
.corp .skip-link:focus { left: 16px; }
.corp section[id] { scroll-margin-top: 84px; }
.corp-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.corp-left { text-align: left; margin: 0; }
.corp-left p { margin-left: 0; }
.corp-why { padding: 28px; background: var(--pc-slate-50); border: 1px solid var(--pc-slate-200); border-radius: 16px; }
.corp-why h3, .corp-programmes h3 { margin: 0 0 16px; color: var(--pc-navy-900); font-size: 1.15rem; }
.corp-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.corp-service { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--pc-slate-200); border-radius: 14px; min-width: 0; }
.corp-service h3 { margin: 0; color: var(--pc-navy-900); font-size: 1.05rem; }
.corp-service p { margin: 0; color: var(--pc-slate-700); line-height: 1.6; flex: 1; }
.corp-programmes { padding: 28px; border: 1px solid var(--pc-slate-200); border-radius: 16px; }
.corp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.corp-chips li { padding: 8px 14px; border-radius: 999px; background: var(--pc-slate-50); border: 1px solid var(--pc-slate-200); color: var(--pc-navy-900); font-weight: 600; }
.corp-insight { max-width: 860px; margin: 0 auto; padding: 28px; background: #fff; border: 1px solid var(--pc-slate-200); border-radius: 16px; }
.corp-insight h3 { margin: 4px 0 12px; color: var(--pc-navy-900); font-size: 1.3rem; }
.corp-insight p { color: var(--pc-slate-700); line-height: 1.7; }
.corp-insight-meta { margin: 0; color: var(--pc-teal-600); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.corp-quick { background: #fff; color: var(--pc-navy-900); border-radius: 16px; padding: 18px; }
.corp-quick-title { margin: 0 0 12px; font-size: 1.1rem; }
.corp-quick .pc-calc-body { grid-template-columns: minmax(0, 1fr); }
.corp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.corp-footer-links a { color: #fff; text-decoration: none; opacity: .9; }
.corp-footer-links a:hover, .corp-footer-links a:focus-visible { text-decoration: underline; opacity: 1; }
.corp-legal h2 { margin: 0 0 12px; color: var(--pc-navy-900); }
.corp-legal { padding-block: 48px; border-top: 1px solid var(--pc-slate-200); }
.corp-legal .plain-list { max-width: 860px; line-height: 1.7; color: var(--pc-slate-700); }
@media (max-width: 860px) { .corp-two { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.tc-gate-header { border-bottom: 1px solid var(--pc-slate-200); background: #fff; }
.tc-gate-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.tc-gate-back { color: var(--pc-navy-900); font-weight: 600; text-decoration: none; }
.tc-gate-back:hover, .tc-gate-back:focus-visible { text-decoration: underline; }
.tc-gate { padding-block: 56px 72px; background: var(--pc-slate-50); }
.tc-gate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: start; }
.tc-gate-copy h1 { margin: 12px 0 14px; color: var(--pc-navy-900); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; text-wrap: balance; }
.tc-gate-copy .pc-lead { color: var(--pc-slate-700); }
.tc-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.tc-gate-footer { padding-block: 20px; background: #fff; border-top: 1px solid var(--pc-slate-200); color: var(--pc-slate-700); font-size: .9rem; }
@media (max-width: 900px) { .tc-gate-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }.tc-gate .auth-gate-card { padding: 28px 26px; border: 1px solid var(--pc-slate-200); border-radius: 20px; background: #fff; color: var(--pc-navy-900); box-shadow: 0 10px 30px -5px rgba(27, 42, 74, 0.08); }
.tc-gate .pc-online-plans { color: var(--pc-slate-700); }
.tc-gate-header .brand { text-decoration: none; }

/* Calculator result: hand the work to Opitekene */
.result-lead-prompt { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: rgba(13, 148, 136, 0.08); border: 1px solid rgba(13, 148, 136, 0.25); }
.result-lead-heading { margin: 0 0 0.5rem; font-weight: 700; }
.result-lead-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.5rem; }
.result-lead-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem; border-radius: 10px; text-decoration: none; font-weight: 600; }
.result-lead-reminders { margin: 0; font-size: 0.9rem; }
