:root {
  --navy: #071d2e;
  --ink: #0a2033;
  --ink-2: #18384e;
  --teal: #0b716c;
  --teal-light: #dff3ef;
  --gold: #bd9150;
  --gold-light: #f3e7d1;
  --ivory: #f7f4ed;
  --paper: #fffdf8;
  --line: #d9e1df;
  --muted: #5a6b73;
  --white: #ffffff;
  --danger: #a53d34;
  --shadow: 0 20px 60px rgba(7, 31, 49, .12);
  --shadow-sm: 0 10px 28px rgba(7, 31, 49, .08);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #52b9b2; outline-offset: 3px; }
.skip-link { position: fixed; left: 14px; top: -80px; z-index: 9999; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 92px 0; }
.section-sm { padding: 62px 0; }
.section-tint { background: var(--ivory); }
.section-dark { color: white; background: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { width: 26px; height: 2px; content: ""; background: var(--gold); }
.section-dark .eyebrow { color: #91ded7; }
h1, h2, h3, h4 { margin: 0 0 .65em; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); }
p { margin: 0 0 1.15em; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.section-dark .lead { color: #c1d1d9; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head > div:first-child { max-width: 790px; }
.kicker { color: var(--gold); font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 800; }
.text-link:hover { gap: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; background: var(--teal); color: white; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); background: #075d59; box-shadow: var(--shadow-sm); }
.btn-outline { border-color: rgba(10,32,51,.2); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: white; }
.section-dark .btn-outline, .hero .btn-outline { border-color: rgba(255,255,255,.35); color: white; }
.section-dark .btn-outline:hover, .hero .btn-outline:hover { background: white; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 15px; font-size: .9rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink-2); font-size: .83rem; font-weight: 750; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #35a26d; box-shadow: 0 0 0 5px rgba(53,162,109,.13); }

/* Header */
.topbar { background: #061827; color: #c7d6dd; font-size: .78rem; }
.topbar-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a:hover { color: white; }
.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(8,33,51,.08); background: rgba(255,253,248,.92); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-direction: row; gap: 10px; min-width: 310px; flex: 0 0 auto; }
.brand .ca-logo { display: block; width: 62px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.brand .brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.03rem; letter-spacing: .025em; white-space: nowrap; }
.brand .brand-copy > span { color: var(--teal); font-size: .67rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }

.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial-card blockquote { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.65; }
.testimonial-card cite { color: var(--muted); font-style: normal; font-size: .9rem; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 3px; }
.nav > a, .nav-drop > button { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 10px 11px; border: 0; border-radius: 10px; background: transparent; color: #263f50; font-size: .86rem; font-weight: 750; cursor: pointer; }
.nav > a:hover, .nav > a.active, .nav-drop > button:hover { background: #e7f1ee; color: var(--teal); }
.nav > a, .nav-drop > button { white-space: nowrap; }
@media (min-width: 1201px) {
  .nav { gap: 6px; }
  .nav > a, .nav-drop > button { position: relative; padding: 10px 12px; border-radius: 0; background: transparent; }
  .nav > a:hover, .nav-drop > button:hover { background: transparent; color: var(--teal); }
  .nav > a.active { background: transparent; color: var(--teal); }
  .nav > a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px; background: var(--teal); }
  .nav-drop > button span { display: inline-block; width: 6px; height: 6px; font-size: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
}
@media (min-width: 1201px) and (max-width: 1700px) {
  .nav-wrap { gap: 12px; }
  .nav { gap: 2px; }
  .nav > a.active::after { left: 8px; right: 8px; }
  .nav > a, .nav-drop > button { padding: 10px 7px; font-size: .82rem; gap: 3px; }
  .nav > a.active::after { left: 7px; right: 7px; }
  .brand { min-width: 0; }
  .brand strong { font-size: .93rem; }
  .nav-cta { display: none; }
}
@media (min-width: 1051px) and (max-width: 1200px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; inset: 113px 18px auto; max-height: calc(100vh - 135px); display: none; align-items: stretch; flex-direction: column; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav > a, .nav-drop > button { width: 100%; justify-content: space-between; padding: 12px; }
  .nav-menu { position: static; width: 100%; display: none; padding-left: 16px; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; }
  .nav-drop.open .nav-menu { display: block; }
  .nav-cta { display: none; }
}
.nav-drop { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-5px); transition: .18s ease; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-menu a { display: block; padding: 10px 11px; border-radius: 9px; color: var(--ink-2); font-size: .86rem; font-weight: 700; }
.nav-menu a:hover { background: var(--ivory); color: var(--teal); }
.menu-toggle { display: none; width: 45px; height: 45px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { width: 20px; height: 2px; content: ""; background: var(--ink); transition: .2s ease; }
.menu-toggle span { display: block; }

/* Hero */
.hero { position: relative; min-height: 710px; display: grid; align-items: center; overflow: hidden; color: white; background: #071d2e; }
.hero::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 74% 34%, rgba(20,151,142,.29), transparent 32%), radial-gradient(circle at 10% 70%, rgba(189,145,80,.18), transparent 27%), linear-gradient(120deg, #061725 0%, #0a2639 58%, #0b4145 100%); }
.hero::after { position: absolute; inset: -20%; content: ""; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 58px 58px; transform: perspective(800px) rotateX(62deg) translateY(18%); transform-origin: center; animation: gridMove 18s linear infinite; }
@keyframes gridMove { to { background-position: 58px 58px; } }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; padding: 105px 0 92px; }
.hero h1 { max-width: 760px; }
.hero h1 em { color: #8dd8d1; font-style: normal; }
.hero .lead { color: #c6d7de; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta .pill { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.075); color: white; }
.hero-visual { position: relative; min-height: 490px; }
.portrait-frame { position: absolute; z-index: 2; right: 7%; bottom: 0; width: min(78%, 345px); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 42% 42% 18px 18px; background: linear-gradient(180deg,#dbe9e6,#9dc5bf); box-shadow: 0 40px 80px rgba(0,0,0,.28); }
.portrait-frame img { width: 100%; aspect-ratio: .78; object-fit: cover; object-position: center top; mix-blend-mode: multiply; }
.orbit { position: absolute; border: 1px solid rgba(139,219,211,.25); border-radius: 50%; animation: orbit 13s linear infinite; }
.orbit.one { inset: 1% 0 7% 1%; }
.orbit.two { inset: 11% -8% 15% 11%; animation-duration: 18s; animation-direction: reverse; }
.orbit::after { position: absolute; top: 4%; left: 28%; width: 12px; height: 12px; content: ""; border-radius: 50%; background: var(--gold); box-shadow: 0 0 24px var(--gold); }
@keyframes orbit { to { transform: rotate(360deg); } }
.float-card { position: absolute; z-index: 3; max-width: 225px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(8,33,49,.82); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.float-card b { display: block; color: #92ded7; font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; }
.float-card span { font-family: Georgia, serif; font-size: 1.1rem; }
.float-card.card-a { left: 0; top: 15%; animation: float 6s ease-in-out infinite; }
.float-card.card-b { right: -2%; bottom: 0; animation: float 7.2s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-12px); } }
.trust-strip { position: relative; z-index: 3; border-top: 1px solid rgba(255,255,255,.1); background: rgba(4,18,29,.5); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 92px; padding: 22px 25px; border-right: 1px solid rgba(255,255,255,.09); }
.trust-item:last-child { border: 0; }
.trust-item b { display: block; color: #8dd8d1; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.trust-item span { font-family: Georgia, serif; font-size: 1.05rem; }

/* Common cards and layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.card-pad { padding: 30px; }
.feature-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card::before { position: absolute; left: 0; top: 0; width: 4px; height: 0; content: ""; background: var(--teal); transition: height .25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card:hover::before { height: 100%; }
.icon-box { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; background: var(--teal-light); color: var(--teal); font-size: 1.15rem; font-weight: 900; }
.feature-card p { color: var(--muted); font-size: .94rem; }
.clean-list { margin: 18px 0 0; padding: 0; list-style: none; }
.clean-list li { position: relative; margin: 9px 0; padding-left: 24px; }
.clean-list li::before { position: absolute; left: 0; top: .68em; width: 8px; height: 8px; content: ""; border-radius: 50%; background: var(--gold); }
.split { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 70px; }
.image-panel { position: relative; min-height: 550px; overflow: hidden; border-radius: 32px; background: linear-gradient(145deg, var(--ink), var(--teal)); }
.image-panel img { width: 100%; height: 100%; min-height: 550px; object-fit: cover; object-position: top center; opacity: .93; }
.image-panel::after { position: absolute; inset: auto 0 0; height: 40%; content: ""; background: linear-gradient(transparent, rgba(6,24,39,.8)); }
.quote-card { position: absolute; z-index: 2; right: -25px; bottom: 35px; width: 250px; padding: 23px; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.quote-card b { display: block; color: var(--teal); }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 28px; }
.fact { padding: 17px; border-left: 3px solid var(--gold); background: var(--ivory); }
.fact b { display: block; font-family: Georgia, serif; font-size: 1.18rem; }
.fact span { color: var(--muted); font-size: .84rem; }

/* Page heroes */
.page-hero { position: relative; overflow: hidden; padding: 95px 0 70px; color: white; background: linear-gradient(120deg,#061a2a,#0b494b); }
.page-hero::after { position: absolute; right: -8%; top: -60%; width: 480px; height: 480px; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 880px; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.page-hero .lead { color: #c8dadd; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; margin-top: 25px; color: #a9c1c9; font-size: .82rem; }
.breadcrumbs a { color: #91ddd6; }

/* Updates, due dates, knowledge */
.update-card { display: flex; flex-direction: column; min-height: 100%; padding: 26px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.update-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.update-source { color: var(--teal); }
.update-card p { color: var(--muted); font-size: .92rem; }
.update-card .text-link { margin-top: auto; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-btn { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink-2); font-size: .84rem; font-weight: 800; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { border-color: var(--teal); background: var(--teal); color: white; }
.deadline-list { display: grid; gap: 12px; }
.deadline { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.deadline-date { display: grid; place-items: center; padding: 9px; border-radius: 12px; background: var(--ivory); text-align: center; }
.deadline-date b { font-family: Georgia, serif; font-size: 1.7rem; line-height: 1; }
.deadline-date span { color: var(--teal); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.deadline p { margin: 0; color: var(--muted); font-size: .88rem; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--teal-light); color: var(--teal); font-size: .72rem; font-weight: 850; }
.notice { padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 12px; background: #fff7df; color: #6a501b; }
.notice strong { color: #4e3a11; }
.resource-card { min-height: 100%; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.resource-card small { color: var(--teal); font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.resource-card p { color: var(--muted); }

/* Tools */
.tool-hero-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.tools-shell { display: grid; grid-template-columns: 255px 1fr; align-items: start; gap: 28px; }
.tools-sidebar { position: sticky; top: 102px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.tool-search { width: 100%; height: 48px; margin-bottom: 14px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; color: var(--ink); }
.tool-cats { display: grid; gap: 5px; }
.tool-cat { padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: .86rem; font-weight: 800; cursor: pointer; }
.tool-cat:hover, .tool-cat.active { background: var(--teal-light); color: var(--teal); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { display: flex; min-height: 250px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 19px; background: white; transition: transform .2s ease, box-shadow .2s ease; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.tool-card .tool-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: var(--ivory); color: var(--teal); font-weight: 900; }
.tool-card h3 { font-size: 1.23rem; }
.tool-card p { color: var(--muted); font-size: .87rem; }
.tool-card .btn { align-self: flex-start; margin-top: auto; }
.tool-empty { padding: 35px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }
.tool-modal { position: fixed; z-index: 3000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2,15,25,.72); backdrop-filter: blur(7px); }
.tool-modal.open { display: flex; }
.modal-panel { width: min(1040px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 24px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.modal-head h2 { margin: 0; font-size: clamp(1.35rem,3vw,2.05rem); }
.modal-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.35rem; cursor: pointer; }
.modal-body { display: grid; grid-template-columns: .95fr 1.05fr; gap: 0; }
.expert-modal .modal-panel { width: min(1240px, 100%); }
.expert-modal .modal-body { display: block; }
.expert-modal .tool-form { padding: 0; border: 0; }
.expert-modal .result-pane { display: none; }
.tdsx { padding: 26px; color: var(--ink); background: #f6faf9; }
.tdsx-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: #fff; background-color: #071d2e; background-image: linear-gradient(135deg,#071d2e 0%,#0a5960 100%); }
.tdsx-intro p { margin: 0; font-weight: 750; }
.tdsx-intro span { flex: 0 0 auto; font-size: .8rem; font-weight: 800; }
.tdsx-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 18px 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.tdsx-tabs button { padding: 12px 8px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.tdsx-tabs button.active { color: white; background: var(--teal); }
.tdsx-panel { display: none; }
.tdsx-panel.active { display: block; }
.tdsx-card, .tdsx-result { margin: 0 0 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }
.tdsx-card h3 { margin-top: 0; }
.tdsx-card textarea { width: 100%; min-height: 110px; resize: vertical; }
.tdsx-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.tdsx-grid label { display: grid; gap: 7px; color: var(--navy); font-size: .82rem; font-weight: 800; }
.tdsx-grid input, .tdsx-grid select, .tdsx-card textarea, .tdsx-ref-head input { width: 100%; padding: 12px 13px; border: 1px solid #cbd9d7; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.tdsx-grid input:focus, .tdsx-grid select:focus, .tdsx-card textarea:focus, .tdsx-ref-head input:focus { outline: 3px solid rgba(12,129,129,.14); border-color: var(--teal); }
.tdsx-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.tdsx-chips button { padding: 7px 10px; border: 1px solid #b9d7d3; border-radius: 999px; color: #075b5b; background: #effaf8; cursor: pointer; }
.tdsx-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.tdsx-detail, .tdsx-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.tdsx-detail { grid-template-columns: repeat(5,minmax(0,1fr)); }
.tdsx-detail > div, .tdsx-summary > div { padding: 13px; border-radius: 12px; background: #eef7f5; }
.tdsx-detail span, .tdsx-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.tdsx-detail b, .tdsx-summary b { overflow-wrap: anywhere; }
.tdsx-note, .tdsx-alert { margin: 14px 0 0; padding: 13px 15px; border-left: 4px solid var(--gold); border-radius: 8px; background: #fff7e6; }
.tdsx-verdict { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tdsx-verdict span { color: var(--muted); font-weight: 800; }
.tdsx-verdict strong { color: var(--teal); font-family: Georgia,"Times New Roman",serif; font-size: clamp(1.6rem,4vw,2.5rem); }
.tdsx-ref-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.tdsx-ref-head input { max-width: 360px; }
.tdsx-ref-head select { padding: 12px 13px; border: 1px solid #cbd9d7; border-radius: 12px; font: inherit; background: #fff; margin-right: 8px; }
.tdsx-table-wrap { margin-top: 18px; overflow: auto; }
.tdsx-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .82rem; }
.tdsx-table th, .tdsx-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tdsx-table thead th { position: sticky; top: 0; color: white; background: var(--navy); }
.tdsx-match small { font-family: inherit; font-size: .55em; color: var(--muted); }

/* Income-tax Act 2025 resource */
.act-shell { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #f4f9f8; box-shadow: var(--shadow-sm); }
.act-tabs { position: sticky; z-index: 4; top: 113px; display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; margin-bottom: 24px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.96); }
.act-tabs button { padding: 12px 8px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: .82rem; font-weight: 850; cursor: pointer; }
.act-tabs button.active { color: white; background: var(--teal); }
.act-panel { display: none; }
.act-panel.active { display: block; }
.act-search-card { padding: 22px; border-radius: 18px; color: white; background: linear-gradient(135deg,var(--navy),#0a5960); }
.act-search-card label { display: block; margin-bottom: 9px; font-weight: 850; }
.act-search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.act-search-card input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.act-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.act-quick button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: white; background: rgba(255,255,255,.08); cursor: pointer; }
.act-count { margin: 20px 0 10px; color: var(--muted); }
.act-section-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; max-height: 850px; overflow: auto; padding: 4px 6px 4px 2px; }
.act-section-card { position: relative; display: flex; flex-direction: column; min-height: 248px; padding: 20px; border: 1px solid #d8e4e2; border-radius: 18px; background: linear-gradient(155deg,#fff 65%,#f1faf8); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.act-section-card:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 12px 30px rgba(7,29,46,.1); }
.act-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.act-section-open { align-self: flex-start; margin-top: auto; padding: 10px 15px; border: 0; border-radius: 10px; background: var(--teal); color: white; font: inherit; font-size: .78rem; font-weight: 850; cursor: pointer; }
.act-section-open:hover { background: var(--navy); }
.act-section-open:focus-visible { outline: 3px solid rgba(15,126,125,.35); outline-offset: 3px; }
.act-section-card h3 { margin: 12px 0 8px; font-size: 1.08rem; line-height: 1.35; }
.act-section-card p { margin: 0 0 14px; color: var(--muted); font-size: .8rem; }
.act-sec-no { color: var(--teal); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.act-card-top .act-status { flex: 0 0 auto; margin-top: 0; }
.act-detail-modal { position: fixed; z-index: 4000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.act-detail-modal.open { display: flex; }
.act-detail-backdrop { position: absolute; inset: 0; background: rgba(2,15,25,.76); backdrop-filter: blur(6px); }
.act-detail-dialog { position: relative; width: min(760px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(26px,5vw,48px); border-radius: 22px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.act-detail-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.act-detail-kicker { margin-right: 48px; color: var(--teal); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.act-detail-dialog h2 { margin: 8px 48px 24px 0; font-size: clamp(1.45rem,4vw,2.2rem); }
.act-detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.act-detail-grid div { padding: 14px; border-radius: 12px; background: var(--soft); }
.act-detail-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.act-detail-grid strong { font-size: .9rem; }
.act-detail-copy { margin-top: 24px; }
.act-detail-copy h3 { margin: 18px 0 6px; font-size: 1rem; }
.act-detail-copy p { margin: 0; color: var(--muted); }
.act-overview { margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: #fbf8f1; }
.act-overview h3, .act-key-points h3, .act-insight h3 { margin: 0 0 10px; font-size: 1.02rem; }
.act-overview p, .act-insight p, .act-reference p { margin: 0; color: var(--muted); }
.act-key-points { margin-top: 16px; padding: 20px; border: 1px solid #bfe1d5; border-radius: 14px; background: #effbf6; }
.act-key-points h3 { color: #146b4b; }
.act-key-points ul { margin: 0; padding: 0; list-style: none; }
.act-key-points li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid rgba(20,107,75,.14); color: var(--muted); }
.act-key-points li:first-child { border-top: 0; }
.act-key-points li::before { content: '◆'; position: absolute; left: 2px; color: var(--gold); font-size: .62rem; }
.act-insight { margin-top: 16px; padding: 20px; border: 1px solid #c9ddef; border-radius: 14px; background: #f0f6ff; }
.act-insight h3 { color: #1e5687; }
.act-reference { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.act-reference > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.act-reference .act-status { margin: 0; }
.act-reference p { margin-top: 8px; font-size: .82rem; }
.act-reference-buttons { flex-wrap: wrap; }
body.modal-open { overflow: hidden; }
.act-map-line { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .76rem; }
.act-map-line span { color: var(--muted); }
.act-status { display: inline-block; margin-top: 10px; padding: 3px 7px; border: 1px solid #b9d7d3; border-radius: 999px; color: #075b5b; background: #effaf8; font-size: .66rem; font-weight: 800; }
.act-chapter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.act-chapter-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.act-chapter-card > span { color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.act-chapter-card h3 { margin: 5px 0; }
.act-chapter-card p { color: var(--muted); font-size: .86rem; }
.act-range { color: var(--teal); font-size: .76rem; font-weight: 800; }
.act-chapter-card button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.act-table-wrap { max-height: 850px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.act-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .78rem; }
.act-table th, .act-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.act-table thead th { position: sticky; z-index: 1; top: 0; color: white; background: var(--navy); }
.act-table .act-status { margin: 0; }
.act-schedule-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.act-schedule-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.act-schedule-head { padding: 18px; color: white; background: var(--navy); }
.act-schedule-head span { color: #8dd8d1; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.act-schedule-head h3 { margin: 5px 0 0; color: white; font-size: 1.1rem; }
.act-schedule-card > div:last-child { padding: 18px; }
.act-schedule-card p { margin: 0 0 7px; color: var(--muted); font-size: .84rem; }
.tool-form { padding: 28px; border-right: 1px solid var(--line); }
.result-pane { min-height: 480px; padding: 28px; background: var(--ivory); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 850; }
.field input, .field select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #cbd7d5; border-radius: 10px; background: white; color: var(--ink); }
.field .help { color: var(--muted); font-size: .72rem; }
.check-field { grid-template-columns: 20px 1fr; align-items: center; }
.check-field input { width: 18px; height: 18px; }
.check-field label { cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.result-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }
.result-label { color: var(--teal); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.result-big { margin: 9px 0 22px; font-family: Georgia,serif; font-size: clamp(2rem,4vw,3.3rem); line-height: 1; }
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.metric { padding: 14px; border-radius: 11px; background: var(--ivory); }
.metric span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.metric b { font-size: .98rem; }
.result-note { margin-top: 18px; padding: 14px; border-left: 3px solid var(--gold); border-radius: 8px; background: #fff7df; color: #634a15; font-size: .78rem; }
.result-placeholder { min-height: 420px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.schedule { width: 100%; margin-top: 17px; border-collapse: collapse; font-size: .78rem; }
.schedule th, .schedule td { padding: 9px; border-bottom: 1px solid var(--line); text-align: right; }
.schedule th:first-child, .schedule td:first-child { text-align: left; }
.guide-panel { display: grid; gap: 15px; }
.guide-topic { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.guide-topic b { display: block; margin-bottom: 4px; }
.guide-topic p { margin: 0; color: var(--muted); font-size: .84rem; }

/* Blog */
.blog-layout { display: grid; grid-template-columns: 280px 1fr; align-items: start; gap: 45px; }
.blog-toc { position: sticky; top: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.blog-toc a { display: block; padding: 8px 0; border-bottom: 1px solid #edf0ef; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.blog-toc a:hover { color: var(--teal); }
.article-list { display: grid; gap: 28px; }
.article { scroll-margin-top: 110px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.article h2 { font-size: clamp(1.7rem,3vw,2.6rem); }
.article h3 { margin-top: 1.4em; font-size: 1.25rem; }
.article p, .article li { color: #354d5b; }

/* Contact, team, footer */
.profile-card { display: grid; grid-template-columns: 320px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.profile-photo { background: linear-gradient(145deg,#dbe8e5,#a8cbc6); }
.profile-photo img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; object-position: center top; mix-blend-mode: multiply; }
.profile-copy { padding: 48px; }
.profile-data { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; margin-top: 25px; }
.profile-data div { padding: 13px 14px; border-radius: 11px; background: var(--ivory); }
.profile-data span { display: block; color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; }
.contact-card { padding: 33px; }
.contact-method { display: grid; grid-template-columns: 42px 1fr; gap: 13px; margin: 20px 0; }
.contact-method .icon-box { width: 42px; height: 42px; margin: 0; }
.contact-method b { display: block; }
.contact-method span, .contact-method a { color: var(--muted); font-size: .9rem; }
.contact-method a:hover { color: var(--teal); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-size: .8rem; font-weight: 850; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 13px; border: 1px solid #cad5d3; border-radius: 11px; background: #fff; color: var(--ink); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 12px; color: var(--teal); font-size: .85rem; font-weight: 700; }
.cta-band { position: relative; overflow: hidden; padding: 54px; border-radius: 28px; color: white; background: linear-gradient(115deg,var(--ink),#0a5554); }
.cta-band::after { position: absolute; right: -80px; bottom: -130px; width: 320px; height: 320px; content: ""; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.03); }
.cta-band > * { position: relative; z-index: 2; }
.site-footer { padding: 62px 0 24px; color: #c7d4da; background: #051725; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.1fr; gap: 40px; }
.footer-brand { color: white; font-family: Georgia,serif; font-size: 1.3rem; }
.footer-title { margin-bottom: 15px; color: white; font-size: .79rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #aebfc7; font-size: .86rem; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .74rem; }
.legal-copy { max-width: 800px; color: var(--muted); }
.legal-copy h2 { margin-top: 1.3em; font-size: 1.65rem; }
.legal-copy h3 { margin-top: 1.2em; font-size: 1.15rem; }

/* Reveal and utilities */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.hide { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-30 { margin-top: 30px; }
.mt-32 { margin-top: 32px; }
.mt-55 { margin-top: 55px; }
.mb-0 { margin-bottom: 0; }
.not-found { min-height: 65vh; display: grid; align-items: center; }

@media (max-width: 1050px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; inset: 113px 18px auto; max-height: calc(100vh - 135px); display: none; align-items: stretch; flex-direction: column; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav > a, .nav-drop > button { width: 100%; justify-content: space-between; padding: 12px; }
  .nav-menu { position: static; width: 100%; display: none; padding-left: 16px; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; }
  .nav-drop.open .nav-menu { display: block; }
  .nav-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr .75fr; gap: 25px; }
  .tools-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 68px 0; }
  .topbar-inner { min-height: 31px; justify-content: center; }
  .topbar-links { display: none; }
  .brand { min-width: auto; max-width: 290px; }
  .brand .ca-logo { width: 50px; height: 37px; }
  .brand strong { font-size: .83rem; }
  .nav { inset: 110px 14px auto; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 75px 0 40px; }
  .hero-visual { min-height: 390px; }
  .portrait-frame { right: 12%; width: 250px; }
  .float-card { max-width: 180px; padding: 12px; font-size: .75rem; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.09); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .grid-2, .grid-3, .grid-4, .split, .contact-grid, .profile-card, .blog-layout { grid-template-columns: 1fr; }
  .quote-card { right: 15px; bottom: 15px; }
  .profile-photo img { min-height: 400px; }
  .profile-copy { padding: 28px; }
  .tools-shell { grid-template-columns: 1fr; }
  .tools-sidebar { position: static; }
  .tool-cats { display: flex; overflow: auto; padding-bottom: 4px; }
  .tool-cat { min-width: max-content; }
  .modal-body { grid-template-columns: 1fr; }
  .act-detail-grid { grid-template-columns: 1fr; }
  .act-detail-dialog { padding: 28px 20px; }
  .tool-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .deadline { grid-template-columns: 75px 1fr; }
  .deadline .badge { grid-column: 2; justify-self: start; }
  .blog-toc { position: static; }
  .cta-band { padding: 35px 25px; }
  .act-tabs { position: static; grid-template-columns: 1fr 1fr; }
  .act-section-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .act-chapter-grid, .act-schedule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  h1 { font-size: 2.55rem; }
  .brand .brand-copy > span { letter-spacing: .1em; }
  .tdsx { padding: 14px; }
  .tdsx-intro, .tdsx-ref-head, .tdsx-verdict { align-items: stretch; flex-direction: column; }
  .tdsx-tabs { grid-template-columns: 1fr 1fr; }
  .tdsx-grid, .tdsx-detail, .tdsx-summary { grid-template-columns: 1fr; }
  .tdsx-ref-head input { max-width: none; }
  .act-shell { padding: 12px; }
  .act-search-row, .act-section-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
  .portrait-frame { right: 8%; width: 220px; }
  .float-card.card-a { top: 5%; }
  .float-card.card-b { bottom: 0; }
  .trust-grid, .tools-grid, .field-grid, .metric-grid, .form-grid, .profile-data, .fact-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .trust-item:last-child { border: 0; }
  .field.full, .form-grid .full { grid-column: auto; }
  .page-hero { padding: 70px 0 52px; }
  .article, .card-pad, .contact-card { padding: 24px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .button-row, .filter-bar, .tools-sidebar, .modal-close, .form-actions { display: none !important; }
  body { background: white; color: black; }
  .section, .page-hero { padding: 20px 0; color: black; background: white; }
  .tool-modal { position: static; display: block; padding: 0; background: white; }
  .modal-panel { max-height: none; box-shadow: none; }
}
