/* DiviCompass 1.0 — single stylesheet for public site and app.
   Visual rule: solid fills mean confirmed data; hatched fills mean estimates. */

:root {
  --ink: #14263b;
  --ink-2: #3c5068;
  --ink-3: #66788c;
  --paper: #eef3f4;
  --surface: #ffffff;
  --line: #d5dfe3;
  --line-2: #e6edf0;
  --gold: #e8a800;
  --gold-ink: #6b4d00;
  --gold-soft: #fff4d1;
  --sea: #0f7c78;
  --sea-ink: #0a5753;
  --sea-soft: #e1f2f0;
  --loss: #b5432f;
  --loss-soft: #fbe9e5;
  --warn-soft: #fff6dc;
  --focus: #1f6fd1;
  --hatch: repeating-linear-gradient(135deg, var(--sea) 0 2px, transparent 2px 6px);
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 6px;
  --r: 10px;
  --wrap: 1200px;
}

/* ---------- Base ---------- */
.dc-page { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.dc-page *, .dc-page *::before, .dc-page *::after { box-sizing: border-box; }
.dc-page img { max-width: 100%; height: auto; }
.dc-page a { color: var(--sea-ink); text-underline-offset: 3px; }
.dc-page a:hover { color: var(--ink); }
.dc-page :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.dc-page h1, .dc-page h2, .dc-page h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
.dc-page h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.dc-page h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.dc-page h3 { font-size: 1.2rem; }
.dc-page p { margin: 0 0 1em; }
.dc-num, .dc-page table td, .dc-stat strong { font-variant-numeric: tabular-nums; }
.dc-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.dc-narrow { max-width: 720px; }
.dc-wrap.dc-narrow { max-width: var(--wrap); }
.dc-wrap.dc-narrow > * { max-width: 720px; }
.dc-muted { color: var(--ink-3); }
.dc-small { font-size: .875rem; }
.dc-sr { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dc-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff !important; padding: 8px 14px; border-radius: var(--r-sm); }
.dc-skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { .dc-page * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Buttons & forms ---------- */
.dc-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none !important; cursor: pointer; transition: background .15s, border-color .15s; }
.dc-btn-primary { background: var(--gold); color: var(--ink) !important; }
.dc-btn-primary:hover { background: #f5b910; }
.dc-btn-dark { background: var(--ink); color: #fff !important; }
.dc-btn-dark:hover { background: #22395a; }
.dc-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink) !important; }
.dc-btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.dc-btn-danger { background: var(--loss); color: #fff !important; }
/* icons inside buttons */
.dc-btn svg { width: 20px; height: 20px; flex: none; }
.dc-btn-sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.dc-btn[disabled], .dc-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.dc-link-btn { background: none; border: 0; padding: 0; color: var(--sea-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.dc-field { display: grid; gap: 6px; margin-bottom: 14px; }
.dc-field > span, .dc-label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.dc-hint { font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.dc-page input[type=text], .dc-page input:not([type]), .dc-page input[type=email], .dc-page input[type=password], .dc-page input[type=number], .dc-page input[type=date], .dc-page input[type=search], .dc-page select, .dc-page textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: 1rem/1.3 var(--sans);
}
.dc-page input:focus, .dc-page select:focus, .dc-page textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 0; }
.dc-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.dc-check input { margin-top: 4px; width: 18px; height: 18px; }
.dc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.dc-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .dc-grid-2, .dc-grid-3 { grid-template-columns: 1fr; } }
.dc-hp { position: absolute; left: -5000px; }
.dc-steps-mini { display: flex; gap: 6px; padding: 0; margin: 0 0 16px; list-style: none; counter-reset: s; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3, #6b7c8f); }
.dc-steps-mini li { counter-increment: s; padding: 4px 10px; border-radius: 999px; background: #eef2f6; }
.dc-steps-mini li::before { content: counter(s) ". "; }
.dc-steps-mini li.on { background: var(--sea-soft, #e3f2ef); color: var(--sea-ink, #0f5c4f); font-weight: 600; }
.dc-billing-start { display: grid; gap: 10px; margin-bottom: 10px; }

.dc-notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--sea-soft); color: var(--sea-ink); margin-bottom: 16px; border-left: 4px solid var(--sea); }
.dc-notice-warn { background: var(--warn-soft); color: var(--gold-ink); border-left-color: var(--gold); }
.dc-notice-error { background: var(--loss-soft); color: #7d2a1b; border-left-color: var(--loss); }

/* ---------- Public header ---------- */
.dc-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.dc-header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; padding: 0 24px; max-width: 1440px; margin: 0 auto; }
.dc-in-app .dc-header-inner { max-width: none; }
.dc-nav-ws { display: none; }
.dc-account-menu { position: relative; }
.dc-account-menu summary { list-style: none; padding: 6px 9px; }
.dc-account-menu summary::-webkit-details-marker { display: none; }
.dc-account-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 34px rgba(10, 20, 32, .14); padding: 10px; min-width: 230px; display: grid; gap: 2px; z-index: 40; }
.dc-account-pop span { padding: 4px 10px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; overflow-wrap: anywhere; }
.dc-account-pop a { padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink) !important; font-weight: 550; font-size: .93rem; }
.dc-account-pop a:hover { background: var(--paper); }
.dc-header-actions .dc-btn[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.dc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--ink) !important; flex: none; }
.dc-brand img { width: 36px; height: 36px; }
.dc-brand b { font: 700 1.3rem/1 var(--serif); letter-spacing: -.01em; }
.dc-nav { display: flex; gap: 22px; flex: 1; }
.dc-nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.dc-nav a:hover, .dc-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.dc-header-actions { display: flex; gap: 10px; align-items: center; }
.dc-menu-btn { display: none; }
@media (max-width: 1000px) {
  .dc-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .dc-nav.is-open { display: flex; max-height: calc(100vh - 68px); overflow-y: auto; }
  .dc-nav-ws { display: flex; flex-direction: column; margin-top: 10px; }
  .dc-nav-ws.is-member { order: -1; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
  .dc-nav-ws-title + a { border-top: 0; }
  .dc-nav-ws-title { font-size: .78rem; font-weight: 650; color: var(--ink-3); padding: 10px 0 2px; }
  .dc-account-menu { display: none; }
  .dc-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .dc-menu-btn { display: inline-flex; margin-left: auto; }
  .dc-header-actions .dc-hide-sm { display: none; }
}

/* ---------- Public sections ---------- */
.dc-section { padding: 72px 0; }
.dc-section-tight { padding: 40px 0; }
.dc-section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dc-lead { font-size: 1.18rem; color: var(--ink-2); max-width: 62ch; }
.dc-kicker { font-weight: 600; color: var(--sea-ink); margin-bottom: .6em; font-size: .95rem; }

.dc-hero { padding: 64px 0 56px; }
.dc-hero.dc-hero-dark { padding: 72px 0 64px; }
.dc-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.dc-hero h1 { max-width: 15ch; overflow-wrap: anywhere; }
.dc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.dc-hero-note { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 480px) { .dc-strip { padding: 16px 14px 12px; } .dc-strip-bars, .dc-strip-months { gap: 3px; } .dc-strip-months span:nth-child(even) { visibility: hidden; } }
@media (max-width: 900px) { .dc-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Dark graphic hero (original DiviCompass look: night landscape behind navy gradient) */
.dc-hero-dark { background: linear-gradient(100deg, rgba(4, 23, 40, .94), rgba(5, 29, 48, .80) 55%, rgba(8, 34, 52, .45)), url(../img/hero-clean.webp) center / cover no-repeat; color: #dfe8ef; }
.dc-hero-dark h1, .dc-hero-dark h2, .dc-hero-dark h3 { color: #fff; }
.dc-hero-dark .dc-lead { color: #c9d7e2; }
.dc-hero-dark .dc-hero-note, .dc-hero-dark .dc-muted { color: #9fb3c4; }
.dc-hero-dark a:not(.dc-btn) { color: #f3d27a; }
.dc-hero-dark .dc-btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .4); }
.dc-hero-dark .dc-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.dc-hero-dark .dc-field > span { color: #dfe8ef; }
.dc-hero-dark .dc-hint { color: #9fb3c4; }
.dc-hero-devices { margin: 0; }
.dc-hero-devices img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.dc-hero-devices figcaption { font-size: .78rem; color: #9fb3c4; margin-top: 10px; }

/* Income strip: the signature visual. Solid = confirmed, hatched = estimated. */
.dc-strip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 16px; }
.dc-strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dc-strip-head strong { font: 700 1.05rem/1.2 var(--serif); }
.dc-strip-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; border-bottom: 1px solid var(--line); }
.dc-strip-bars span { display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; }
.dc-strip-bars i { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.dc-strip-bars i.c { background: var(--sea); }
.dc-strip-bars i.e { background: var(--hatch); box-shadow: inset 0 0 0 1.5px var(--sea); }
.dc-strip-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); overflow: hidden; gap: 6px; font-size: .72rem; color: var(--ink-3); text-align: center; margin-top: 6px; }
.dc-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin-top: 12px; }
.dc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dc-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.dc-legend i.c { background: var(--sea); }
.dc-legend i.e { background: var(--hatch); box-shadow: inset 0 0 0 1.5px var(--sea); }
.dc-legend i.r { background: var(--gold); }
.dc-strip-foot { font-size: .8rem; color: var(--ink-3); margin: 10px 0 0; }

.dc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .dc-split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.dc-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.dc-points li { padding-left: 20px; border-left: 3px solid var(--line); }
.dc-points li strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.dc-points li.is-key { border-left-color: var(--gold); }

.dc-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dc-steps li { counter-increment: step; position: relative; padding-top: 52px; }
.dc-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 700 1.05rem var(--serif); }
@media (max-width: 760px) { .dc-steps { grid-template-columns: minmax(0, 1fr); } }

.dc-cta-band { background: var(--ink); color: #dfe8ef; border-radius: var(--r); padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.dc-cta-band h2 { color: #fff; margin: 0 0 .3em; }
.dc-cta-band p { margin: 0; }

.dc-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dc-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.dc-table th, .dc-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.dc-table thead th { font-size: .8rem; font-weight: 650; color: var(--ink-3); background: #f8fafb; white-space: nowrap; position: sticky; top: 0; }
.dc-table tbody tr:last-child td { border-bottom: 0; }
.dc-table td.r, .dc-table th.r { text-align: right; white-space: nowrap; }
.dc-table td:first-child { min-width: 140px; }
.dc-table-tight th, .dc-table-tight td { padding-left: 9px; padding-right: 9px; }
.dc-table-tight th:first-child, .dc-table-tight td:first-child { padding-left: 14px; }
.dc-table-tight td:first-child { min-width: 130px; }
.dc-table tbody tr:hover { background: #fafcfc; }
.dc-table caption { text-align: left; padding: 0 0 8px; color: var(--ink-3); font-size: .85rem; }
.dc-sub { display: block; color: var(--ink-3); font-size: .8rem; }

/* Status tags: shape and text carry meaning, not colour alone. */
.dc-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: .76rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.dc-tag-confirmed { background: var(--sea-soft); color: var(--sea-ink); }
.dc-tag-estimated { background: #fff; color: var(--sea-ink); border: 1px dashed var(--sea); }
.dc-tag-received { background: var(--gold-soft); color: var(--gold-ink); }
.dc-tag-special { background: #efe8ff; color: #4b2a8a; }
.dc-tag-warn { background: var(--warn-soft); color: var(--gold-ink); }
.dc-tag-loss { background: var(--loss-soft); color: #7d2a1b; }
.dc-tag-muted { background: var(--line-2); color: var(--ink-2); }
.dc-pos { color: var(--sea-ink); }
.dc-neg { color: var(--loss); }

/* Pricing */
.dc-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.dc-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; }
.dc-plan-pro { border: 2px solid var(--ink); }
.dc-plan .dc-price { font: 700 2.4rem/1 var(--serif); margin: 14px 0 4px; }
.dc-plan .dc-price small { font: 400 1rem var(--sans); color: var(--ink-3); }
.dc-plan ul { padding: 0; list-style: none; margin: 20px 0; display: grid; gap: 9px; }
.dc-plan li { padding-left: 26px; position: relative; }
.dc-plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }
.dc-plan-actions { margin-top: auto; display: grid; gap: 10px; }
@media (max-width: 760px) { .dc-plans { grid-template-columns: minmax(0, 1fr); } }

/* FAQ / details */
.dc-faq-group { margin-bottom: 36px; }
.dc-faq details { border-bottom: 1px solid var(--line); }
.dc-faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--ink-3); }
.dc-faq details[open] summary::after { content: "–"; }
.dc-faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 72ch; }

/* Legal */
.dc-legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
.dc-legal nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 4px; font-size: .92rem; }
.dc-legal nav a { text-decoration: none; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); }
.dc-legal nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--gold); }
.dc-legal article { max-width: 72ch; }
.dc-legal article h2 { font-size: 1.3rem; margin-top: 1.8em; }
.dc-legal article ul { padding-left: 20px; margin: 0 0 1em; }
.dc-legal article li { margin-bottom: .4em; }
.dc-table-legal { font-size: .88rem; }
.dc-table-legal td:first-child { min-width: 180px; font-weight: 600; }
@media (max-width: 640px) {
  .dc-table-legal thead { display: none; }
  .dc-table-legal, .dc-table-legal tbody, .dc-table-legal tr, .dc-table-legal td { display: block; width: 100%; }
  .dc-table-legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .dc-table-legal td { border: 0; padding: 3px 14px; min-width: 0 !important; }
  .dc-table-legal td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 650; color: var(--ink-3); }
  .dc-table-legal td:first-child::before { display: none; }
}
@media (max-width: 860px) { .dc-legal { grid-template-columns: minmax(0, 1fr); } .dc-legal nav { position: static; display: flex; flex-wrap: wrap; } }

/* Risk note */
.dc-risk { border: 1px solid #ecd9a4; border-left: 4px solid #d9a21b; background: #fffaf0; border-radius: 8px; padding: 14px 16px; margin: 24px 0; font-size: .86rem; line-height: 1.55; color: var(--ink-2); }
.dc-risk p { margin: 0 0 8px; } .dc-risk p:last-child { margin-bottom: 0; }
.dc-risk strong { color: var(--ink); }
.dc-app-risk .dc-wrap { padding: 0; max-width: none; }
.dc-riskbar { background: #fff6dd; border-bottom: 1px solid #ecd9a4; color: #4a3a0c; font-size: .82rem; line-height: 1.45; }
.dc-riskbar-inner { max-width: var(--wrap, 1200px); margin: 0 auto; padding: 7px 20px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.dc-riskbar strong { color: #2d2307; }
.dc-riskbar a { color: #4a3a0c; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; margin-left: auto; white-space: nowrap; }
@media (max-width: 760px) { .dc-riskbar-more { display: none; } .dc-riskbar-inner { padding: 6px 16px; } .dc-riskbar a { margin-left: 0; } }

/* Footer */
.dc-footer { background: var(--ink); color: #b9c7d4; padding: 56px 0 28px; margin-top: 0; font-size: .92rem; }
.dc-footer a { color: #e6eef5 !important; text-decoration: none; }
.dc-footer a:hover { text-decoration: underline; }
.dc-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.dc-footer h2 { font: 650 .95rem var(--sans); color: #fff; margin: 0 0 12px; }
.dc-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dc-giving-foot { margin-top: 14px; max-width: 42ch; color: #dfe8f0; }
.dc-giving-foot span, .dc-giving-note span { color: #e0607e; }
p.dc-giving-note, .dc-page p.dc-giving-note { display: block; text-align: center; margin: 24px auto 0; padding: 16px 22px; max-width: 760px; box-sizing: border-box; background: #fdf1f4; border: 1px solid #f6d3dc; border-radius: 12px; color: var(--ink-2, #33475b); line-height: 1.5; }
.dc-giving-note span { font-size: 1.1rem; margin-right: 2px; }
.dc-giving-note a { font-weight: 600; }
.dc-giving { border-left: 4px solid #e0607e; background: #fdf1f4; padding: 14px 18px; border-radius: 8px; margin-bottom: 8px; }
.dc-giving p:last-child { margin-bottom: 0; }
.dc-footer-legal { border-top: 1px solid #2c4158; margin-top: 36px; padding-top: 20px; font-size: .8rem; line-height: 1.6; }
@media (max-width: 760px) { .dc-footer-grid { grid-template-columns: 1fr 1fr; } }

/* Auth */
.dc-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.dc-auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.dc-auth-single { max-width: 460px; margin: 0 auto; }
@media (max-width: 760px) { .dc-auth { grid-template-columns: minmax(0, 1fr); } }

/* Research */
.dc-search-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.dc-search-bar .dc-field { flex: 1 1 200px; margin: 0; }
/* Name on the left, price on the right on every page, however long the company name: the name wraps in its column. */
.dc-stock-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; margin-bottom: 24px; }
.dc-stock-head > * { min-width: 0; }
.dc-stock-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .2em; overflow-wrap: anywhere; }
.dc-stock-price { text-align: right; justify-self: end; }
@media (max-width: 760px) { .dc-stock-head { grid-template-columns: 1fr; gap: 16px; } .dc-stock-price { text-align: left; justify-self: start; } }
.dc-stock-price strong { font: 700 2rem/1 var(--serif); display: block; }
.dc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.dc-stat { padding: 16px 18px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: -1px -1px 0 0; }
.dc-stat span { display: block; font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.dc-stat strong { display: block; font: 700 1.35rem/1.25 var(--serif); margin-top: 4px; }
.dc-stat small { display: block; font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.dc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.dc-panel > h2, .dc-panel > header h2 { font-size: 1.25rem; margin-bottom: .3em; }
.dc-panel > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dc-panel > header p { margin: 0; color: var(--ink-3); font-size: .9rem; }
.dc-empty { padding: 26px; text-align: left; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); background: #fbfcfc; }
.dc-empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.dc-source { font-size: .8rem; white-space: nowrap; }
.dc-source-pending { font-size: .8rem; white-space: nowrap; color: var(--ink-3); }
.dc-chart { width: 100%; height: 260px; display: block; }
.dc-chart-wrap { position: relative; }
.dc-chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 6px 9px; border-radius: var(--r-sm); font-size: .8rem; transform: translate(-50%, -110%); white-space: nowrap; display: none; }
.dc-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.dc-seg button { border: 0; background: none; padding: 7px 12px; font: 600 .82rem var(--sans); color: var(--ink-2); cursor: pointer; min-height: 34px; }
.dc-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dc-pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: .9rem; }
.dc-gauge { display: flex; align-items: center; gap: 10px; }
.dc-gauge-bar { flex: 1; height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; min-width: 60px; }
.dc-gauge-bar i { display: block; height: 100%; background: var(--sea); }

/* ---------- App shell ---------- */
.dc-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 69px); background: linear-gradient(to right, var(--ink) 248px, transparent 248px); }
.dc-side { background: var(--ink); color: #c7d4df; position: sticky; top: 69px; height: calc(100vh - 69px); display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.dc-side nav { display: grid; gap: 2px; }
.dc-side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-sm); color: #c7d4df; text-decoration: none; font-weight: 550; font-size: .95rem; }
.dc-side nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.dc-side nav a:hover { background: #1e3550; color: #fff; }
.dc-side nav a[aria-current="page"] { background: #23405f; color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.dc-side-group { margin-top: 18px; padding: 0 12px 6px; font-size: .78rem; color: #8ea2b6; font-weight: 600; }
.dc-side-foot { margin-top: auto; padding: 14px 10px 0; font-size: .78rem; color: #8ea2b6; border-top: 1px solid #2c4158; }
.dc-side-foot a { color: #dfe8ef; }
.dc-main { min-width: 0; display: flex; flex-direction: column; }
.dc-topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 66px; }
.dc-topbar h1 { font-size: 1.35rem; margin: 0; flex: 1; }
.dc-topbar select { width: auto; min-width: 180px; }
.dc-content { padding: 26px 28px 48px; flex: 1; }
.dc-app-menu { display: none; }
.dc-plan-pill { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); }
@media (max-width: 1000px) {
  .dc-app { grid-template-columns: minmax(0, 1fr); background: none; }
  .dc-side { display: none; }
  .dc-topbar { padding: 10px 16px; flex-wrap: wrap; }
  .dc-topbar h1 { font-size: 1.15rem; }
  .dc-content { padding: 18px 16px 40px; }
}

.dc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.dc-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-height: 104px; }
.dc-kpi span { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.dc-kpi strong { display: block; font: 700 1.55rem/1.2 var(--serif); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.dc-kpi small { font-size: .8rem; color: var(--ink-3); }
.dc-kpi-lead { border-top: 3px solid var(--gold); }
@media (max-width: 1100px) { .dc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dc-kpis { grid-template-columns: minmax(0, 1fr); } .dc-panel { padding: 16px; } }
.dc-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1100px) { .dc-cols { grid-template-columns: minmax(0, 1fr); } }

.dc-skel { background: linear-gradient(90deg, var(--line-2), #f6f9fa, var(--line-2)); background-size: 200% 100%; animation: dc-skel 1.2s infinite linear; border-radius: 4px; height: 14px; }
@keyframes dc-skel { to { background-position: -200% 0; } }
.dc-view { min-height: 60vh; }

.dc-bars { display: grid; gap: 8px; }
.dc-bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: .88rem; }
.dc-bar-row .dc-gauge-bar { height: 10px; }

.dc-dialog { border: 0; border-radius: var(--r); padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(10, 20, 32, .3); }
.dc-dialog::backdrop { background: rgba(10, 20, 32, .5); }
.dc-risk-dialog h2 { margin: 0 0 12px; font-size: 1.35rem; }
.dc-risk-dialog p { font-size: .95rem; line-height: 1.55; margin: 0 0 12px; color: var(--ink-2); }
.dc-risk-dialog .dc-check { margin: 16px 0 4px; }
.dc-risk-dialog .dc-dialog-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.dc-dialog form, .dc-dialog-body { padding: 24px; }
.dc-txlist { list-style: none; margin: 0 0 4px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 300px; overflow: auto; }
.dc-txlist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dc-txlist li:last-child { border-bottom: 0; }
.dc-txlist-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dc-linkbtn { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--sea-ink); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.dc-details { border-top: 1px solid var(--line); padding: 10px 0; }
.dc-details summary { cursor: pointer; font-weight: 600; }
.dc-details[open] summary { margin-bottom: 6px; }
.dc-details .dc-results { position: static; margin-bottom: 10px; }
.dc-dialog header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dc-dialog header h2 { margin: 0; font-size: 1.3rem; }
.dc-dialog footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.dc-results { border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 240px; overflow: auto; margin: -8px 0 14px; background: #fff; }
.dc-results button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: none; padding: 9px 12px; cursor: pointer; font: inherit; }
.dc-results button:hover, .dc-results button:focus { background: var(--sea-soft); }
.dc-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); z-index: 80; font-size: .92rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); }

.dc-month { margin-bottom: 22px; }
.dc-month > header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 4px; }
.dc-month > header h3 { margin: 0; }

/* Cookie consent */
.dc-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; z-index: 90; box-shadow: 0 12px 40px rgba(10, 20, 32, .18); font-size: .92rem; }
.dc-consent p { margin: 0 0 12px; }
.dc-consent div { display: flex; gap: 10px; flex-wrap: wrap; }

/* 404 */
.dc-404 { padding: 90px 0; }
.dc-404 img { width: 72px; margin-bottom: 18px; }

@media print { .dc-header, .dc-side, .dc-topbar, .dc-footer, .dc-consent { display: none !important; } .dc-app { display: block; } }

/* Import */
.dc-import-help { border-bottom: 1px solid var(--line-2); padding: 8px 0; }
.dc-import-help summary { cursor: pointer; font-weight: 600; }
.dc-import-help p { margin: 6px 0 2px; }
.dc-import-groups select, .dc-import-groups input[type="search"] { width: 100%; max-width: 420px; display: block; }
.dc-import-groups .dc-results { margin: 4px 0 0; max-width: 420px; }
.dc-import-groups td { vertical-align: top; }
.dc-import-lines > summary { cursor: pointer; padding: 6px 0; }
.dc-table tr[hidden] { display: none; }
@media (max-width: 640px) {
  .dc-import-groups thead { display: none; }
  .dc-import-groups tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .dc-import-groups td { display: block; border: 0; padding: 2px 12px; text-align: left; }
  .dc-import-groups td.r::before { content: "Lines: "; color: var(--ink-2); }
}
.dc-map-grid { align-items: start; }
@media (max-width: 640px) { .dc-import-groups td.r { text-align: left; } }

/* Company logos and lettered badges */
.dc-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); vertical-align: middle; }
img.dc-logo { padding: 4px; box-sizing: border-box; }
.dc-stock-title > .dc-logo { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(20, 38, 59, .08); }
.dc-stock-title > img.dc-logo { padding: 8px; }
.dc-logo-badge { color: #fff; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; box-shadow: none; line-height: 1; }
.dc-cal-dates { width: 168px; white-space: nowrap; font-size: .9rem; }
.dc-cal-dates span { display: block; line-height: 1.5; }
.dc-cal-dates em { font-style: normal; color: var(--ink-3); display: inline-block; min-width: 46px; font-size: .8rem; }
@media (max-width: 640px) {
  .dc-month .dc-cal-wrap { overflow: visible; }
  .dc-cal-row { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
  .dc-cal-row:last-child { border-bottom: 0; }
  .dc-cal-row > td { padding: 0 !important; border: 0 !important; }
  .dc-cal-row > td.dc-cal-dates { grid-column: 1 / -1; width: auto; display: flex; gap: 16px; }
  .dc-cal-row > td:nth-child(2) { min-width: 0; }
  .dc-cal-row > td:nth-child(4) { grid-column: 1 / -1; justify-self: end; }
}
.dc-warn-text { color: #8a5a00; display: block; margin-top: 4px; }
.dc-sortable th { white-space: nowrap; }
.dc-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font: inherit; color: inherit; }
.dc-sort i { font-style: normal; font-size: .7em; opacity: .45; }
th[aria-sort="ascending"] .dc-sort i, th[aria-sort="descending"] .dc-sort i { opacity: 1; color: var(--accent, #0e7c70); }
.dc-sort:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.dc-sort:focus-visible { outline: 2px solid var(--focus, #1a73e8); outline-offset: 2px; border-radius: 3px; }
.dc-co { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dc-co > div { min-width: 0; }
.dc-stock-title { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.dc-stock-title > .dc-logo { grid-row: 1 / span 2; }
.dc-stock-title > :not(.dc-logo) { grid-column: 2; }
@media (max-width: 560px) { .dc-stock-title > .dc-logo { width: 60px !important; height: 60px !important; } }

/* Screener */
.dc-screener .dc-search-bar { margin: 0; }
.dc-range { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; font-size: .78rem; color: var(--ink-3); min-width: 150px; }
.dc-range i { position: relative; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--line), var(--sea-soft)); }
.dc-range b { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 2px #fff; }

.dc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 20px; }
.dc-facts > div { background: var(--surface); padding: 12px 16px; }
.dc-facts span { display: block; font-size: .78rem; color: var(--ink-3); }
.dc-facts strong { font-size: .98rem; }

/* =====================================================================
   1.5.14 refresh: one consistent type system, quieter chrome, tables that
   do not wrap figures and dates, and a calmer risk note.
   Signature kept: solid fills = confirmed, hatching = estimated.
   ===================================================================== */
@font-face { font-family: "Source Sans 3"; src: url(../fonts/SourceSans3-Regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/SourceSans3-It.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/SourceSans3-Semibold.woff) format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/SourceSans3-Bold.woff) format("woff"); font-weight: 650 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(../fonts/SourceSerif4-Semibold.woff) format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(../fonts/SourceSerif4-Bold.woff) format("woff"); font-weight: 650 800; font-style: normal; font-display: swap; }

:root {
  --ink: #13253a;
  --ink-2: #384b61;
  --ink-3: #627487;
  --paper: #f2f5f5;
  --line: #d9e1e4;
  --line-2: #e8eef0;
  --serif: "Source Serif 4", Charter, "Iowan Old Style", Cambria, Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --lift: 0 1px 2px rgba(19, 37, 58, .05);
}
.dc-page { font: 17px/1.55 var(--sans); font-feature-settings: "kern", "lnum"; }
.dc-page h1, .dc-page h2, .dc-page h3 { font-weight: 600; letter-spacing: -.012em; }
.dc-page h1 { letter-spacing: -.02em; }
.dc-page strong, .dc-page b { font-weight: 650; }
.dc-num, .dc-page table td, .dc-stat strong, .dc-kpi strong, .dc-stock-price strong { font-feature-settings: "tnum", "lnum"; }

/* Buttons and fields: same height family, calmer weights */
.dc-btn { font-weight: 600; font-size: .95rem; letter-spacing: .005em; }
.dc-btn-sm { font-size: .86rem; }
.dc-btn-primary { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
.dc-btn-ghost { background: var(--surface); }
.dc-page input[type=text], .dc-page input:not([type]), .dc-page input[type=email], .dc-page input[type=password], .dc-page input[type=number], .dc-page input[type=date], .dc-page input[type=search], .dc-page select, .dc-page textarea { font-size: 1rem; border-color: #cfd8dd; }
.dc-field > span, .dc-label { font-weight: 600; font-size: .9rem; }

/* Header */
.dc-header { box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(19, 37, 58, .35); border-bottom: 0; }
.dc-header-inner { min-height: 64px; }
.dc-nav a { font-weight: 600; font-size: .96rem; }
.dc-brand b { font-weight: 700; }
@media (max-width: 1000px) { .dc-nav { top: 64px; } .dc-nav.is-open { max-height: calc(100vh - 64px); } }

/* Surfaces: one radius, one hairline, one soft lift */
.dc-panel, .dc-kpi, .dc-table-wrap, .dc-stats, .dc-strip, .dc-plan, .dc-auth-card, .dc-facts { border-color: var(--line); box-shadow: var(--lift); }
.dc-panel { padding: 22px 24px; }
.dc-panel > h2, .dc-panel > header h2 { font-size: 1.22rem; }
.dc-panel .dc-table-wrap { box-shadow: none; }
.dc-kpi { padding: 16px 18px 15px; }
.dc-kpi span { font-size: .86rem; font-weight: 600; color: var(--ink-3); }
.dc-kpi strong { font: 600 1.75rem/1.15 var(--serif); margin: 6px 0 4px; letter-spacing: -.01em; }
.dc-kpi small { display: block; font-size: .84rem; line-height: 1.45; }
.dc-kpi-lead { border-top: 3px solid var(--gold); }
.dc-stat strong { font-weight: 600; }

/* Tables: quiet header, figures and dates never broken over lines */
.dc-table { font-size: .95rem; }
.dc-table thead th { font-size: .82rem; font-weight: 600; color: var(--ink-3); background: #f6f8f9; border-bottom-color: var(--line); }
.dc-table th, .dc-table td { padding: 11px 14px; }
.dc-table tbody tr:hover { background: #f9fbfb; }
.dc-page .dc-table:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) td:not(:first-child) { white-space: nowrap; }
.dc-page .dc-table:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) td:first-child { min-width: 190px; }
.dc-page .dc-table.dc-table-plain td:first-child { min-width: 0; }
.dc-sub { font-size: .82rem; line-height: 1.4; margin-top: 1px; }
.dc-tag { font-weight: 600; font-size: .78rem; }

/* Holdings: cash and total lines under the shares */
.dc-table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; background: #fbfcfc; }
.dc-table tfoot .dc-total-row td { border-top: 2px solid var(--ink); background: var(--surface); }
.dc-logo-cash { background: var(--sea-soft) !important; color: var(--sea-ink) !important; font: 650 1.15rem/1 var(--serif) !important; border-radius: 10px; }

/* Risk note: still on every page, but reads as a footnote, not an alarm */
.dc-risk { background: #f7f9f9; border: 1px solid var(--line); border-left: 3px solid #93a3b2; border-radius: var(--r-sm); color: var(--ink-2); font-size: .84rem; padding: 14px 16px; }
.dc-risk-compact { margin: 28px 0 0; padding: 10px 14px; }
.dc-risk-compact summary { cursor: pointer; list-style: none; }
.dc-risk-compact summary::-webkit-details-marker { display: none; }
.dc-risk-compact summary span { color: var(--sea-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.dc-risk-compact[open] summary span { display: none; }
.dc-risk-compact[open] summary { margin-bottom: 8px; }

/* App shell */
.dc-topbar { min-height: 64px; padding: 12px 28px; box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.dc-topbar h1 { font-size: 1.4rem; }
.dc-side nav a { font-weight: 600; font-size: .96rem; }
.dc-side nav a[aria-current="page"] { background: #21405f; }
.dc-side-group { font-size: .8rem; letter-spacing: .01em; }
.dc-content { padding: 26px 28px 36px; }
.dc-footer-slim { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-3); font-size: .84rem; padding: 14px 0; }
.dc-footer-slim .dc-wrap { max-width: none; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.dc-footer-slim nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.dc-footer-slim a { color: var(--ink-2) !important; text-decoration: none; }
.dc-footer-slim a:hover { text-decoration: underline; }
.dc-in-app .dc-app { min-height: calc(100vh - 64px - 49px); }
.dc-side { top: 64px; height: calc(100vh - 64px); }
@media (max-width: 1000px) { .dc-footer-slim .dc-wrap { padding: 0 16px; } .dc-footer-slim nav { margin-left: 0; } }

/* Calculator: give the results column room for its table */
.dc-cols.dc-cols-even { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .dc-cols.dc-cols-even { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.dc-footer { font-size: .93rem; }
.dc-footer h2 { font-weight: 600; }
.dc-page .dc-table td.dc-tags { white-space: normal; min-width: 170px; }
.dc-page .dc-table tfoot td[colspan] { white-space: normal; }
/* Ghost buttons on dark backgrounds stay transparent */
.dc-hero-dark .dc-btn-ghost, .dc-cta-band .dc-btn-ghost { background: transparent; }
/* Wide data tables (income): a little less room for the company, statuses can wrap */
.dc-page .dc-table td.dc-status { white-space: normal; min-width: 120px; }
.dc-page .dc-table td.dc-tags { min-width: 150px; width: 160px; }
.dc-page .dc-table-plain td:last-child { white-space: normal; }
/* Tables wider than the screen show a soft edge shadow where there is more to scroll */
.dc-table-wrap {
  background:
    linear-gradient(to right, var(--surface) 30%, rgba(255, 255, 255, 0)) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, rgba(255, 255, 255, 0)) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(19, 37, 58, .16), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(19, 37, 58, .16), transparent) right / 12px 100% no-repeat scroll,
    var(--surface);
}
/* Exceptions to the no-wrap rule, at the same specificity so they apply */
.dc-page .dc-table:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) td.dc-tags:not(:first-child),
.dc-page .dc-table:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) td.dc-status:not(:first-child),
.dc-page .dc-table:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) tfoot td:not(:first-child),
.dc-page .dc-table.dc-table-plain:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) td:last-child:not(:first-child) { white-space: normal; }
/* Compact tables keep their tighter cells */
.dc-page .dc-table.dc-table-tight th, .dc-page .dc-table.dc-table-tight td { padding-left: 9px; padding-right: 9px; }
.dc-page .dc-table.dc-table-tight th:first-child, .dc-page .dc-table.dc-table-tight td:first-child { padding-left: 14px; }
.dc-page .dc-table.dc-table-tight:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) td:first-child { min-width: 175px; }
/* Company cells (logo + name) may wrap the name wherever they sit */
.dc-page .dc-table:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) td:has(> .dc-co) { white-space: normal; min-width: 165px; }
.dc-page .dc-table:not(.dc-import-groups):not(.dc-table-legal):not(.dc-table-raw) td:first-child:has(> .dc-co) { min-width: 165px; }
/* Laptop widths (about 1280px): a narrower sidebar and slightly smaller table text so wide tables fit */
@media (max-width: 1400px) and (min-width: 1001px) {
  .dc-app { grid-template-columns: 216px minmax(0, 1fr); background: linear-gradient(to right, var(--ink) 216px, transparent 216px); }
  .dc-content { padding: 22px 20px 32px; }
  .dc-topbar { padding: 12px 20px; }
  .dc-footer-slim .dc-wrap { padding: 0 20px; }
  .dc-page .dc-table { font-size: .9rem; }
  .dc-page .dc-table th, .dc-page .dc-table td { padding-left: 11px; padding-right: 11px; }
  .dc-page .dc-table.dc-table-tight th, .dc-page .dc-table.dc-table-tight td { padding-left: 7px; padding-right: 7px; }
  .dc-page .dc-table.dc-table-tight th:first-child, .dc-page .dc-table.dc-table-tight td:first-child { padding-left: 12px; }
}
/* Phones: main app tables become labelled rows instead of scrolling sideways */
@media (max-width: 700px) {
  .dc-page table.dc-stack thead { display: none; }
  .dc-page table.dc-stack, .dc-page table.dc-stack tbody, .dc-page table.dc-stack tfoot, .dc-page table.dc-stack tr { display: block; width: 100%; }
  .dc-page table.dc-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .dc-page table.dc-stack tbody tr:last-child { border-bottom: 0; }
  .dc-page table.dc-stack tfoot tr { border-top: 1px solid var(--line); }
  .dc-page table.dc-stack td { display: block; border: 0 !important; padding: 3px 0 !important; min-width: 0 !important; width: auto !important; white-space: normal !important; text-align: right; background: none !important; }
  .dc-page table.dc-stack td::after { content: ""; display: block; clear: both; }
  .dc-page table.dc-stack td[data-label]::before { content: attr(data-label); float: left; margin-right: 12px; color: var(--ink-3); font-size: .84rem; font-weight: 600; }
  .dc-page table.dc-stack td:first-child { text-align: left; padding-bottom: 8px !important; }
  .dc-page table.dc-stack td:empty { display: none; }
  .dc-page table.dc-stack td.dc-tags, .dc-page table.dc-stack td.dc-status { text-align: right; }
  .dc-page table.dc-stack .dc-tag { margin: 2px 0 2px 4px; }
  .dc-page .dc-table-wrap:has(> table.dc-stack) { overflow-x: visible; }
}
/* Portfolio value chart */
.dc-legend i.v { background: linear-gradient(#16a394aa, #16a39411); box-shadow: inset 0 2px 0 #0f8f84; }
.dc-legend i.m { height: 0; border-top: 2px dashed #627487; border-radius: 0; width: 18px; }
.dc-value-panel .dc-seg button { min-width: 44px; }
.dc-value-panel [data-value-sum] strong { font-weight: 650; }
.dc-value-day { display: block; margin-top: 2px; }
/* Dashboard summary tiles (overview): label, bold figure, coloured change with an arrow */
.dc-kpis-overview { margin-bottom: 8px; }
.dc-kpis-overview .dc-kpi { min-height: 0; padding: 16px 18px; border-top: 1px solid var(--line); }
.dc-kpis-overview .dc-kpi span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-3); }
.dc-kpis-overview .dc-kpi strong { font: 700 1.7rem/1.15 var(--sans); letter-spacing: -.01em; margin: 6px 0 4px; color: var(--ink); }
.dc-kpis-overview .dc-kpi small { font-size: .84rem; color: var(--ink-3); }
.dc-chg { display: block; font-weight: 650; font-variant-numeric: tabular-nums; }
.dc-chg.is-up { color: #0b7a55 !important; }
.dc-chg.is-down { color: var(--loss) !important; }
.dc-chg b { font-weight: 700; }
.dc-chg span { font-weight: 400; color: var(--ink-3); }
.dc-kpi-notes { margin: 0 0 20px; }
@media (max-width: 480px) {
  .dc-kpis.dc-kpis-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dc-kpis-overview .dc-kpi { padding: 12px 14px; }
  .dc-kpis-overview .dc-kpi strong { font-size: 1.3rem; }
  .dc-kpis-overview .dc-kpi small { font-size: .78rem; }
}

/* =====================================================================
   1.5.18 header and wordmark, as in the original design mockup:
   deep navy bar, "Divi" in white and "Compass" in gold, clean sans lettering.
   Header, sidebar and footer share the same navy.
   ===================================================================== */
:root { --navy: #06192e; --navy-2: #0b2440; --navy-line: #1d3651; --gold-word: #e8bd55; }
.dc-wordmark { font: 700 1.36rem/1 var(--sans) !important; letter-spacing: -.005em !important; color: #fff; }
.dc-wordmark span { color: var(--gold-word); }
.dc-brand { color: #fff !important; }

.dc-header { background: linear-gradient(90deg, var(--navy), var(--navy-2)); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.dc-header .dc-nav a { color: #c3d1de; border-bottom-color: transparent; }
.dc-header .dc-nav a:hover, .dc-header .dc-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-word); }
.dc-header .dc-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff !important; }
.dc-header .dc-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }
.dc-header .dc-btn-dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff !important; }
.dc-header .dc-btn-dark:hover { background: rgba(255, 255, 255, .16); }
.dc-header .dc-header-actions .dc-btn[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold-word); }
.dc-header .dc-btn svg { color: #fff; }
.dc-header .dc-account-pop a { color: var(--ink) !important; }
@media (max-width: 1000px) {
  .dc-header .dc-nav { background: var(--navy); border-bottom-color: var(--navy-line); }
  .dc-header .dc-nav a { border-bottom: 1px solid var(--navy-line); }
  .dc-header .dc-nav a[aria-current="page"] { color: var(--gold-word); }
  .dc-header .dc-nav-ws-title { color: #8ea2b6; }
  .dc-header .dc-nav-ws.is-member { border-bottom-color: var(--navy-line); }
}

/* Workspace sidebar and footer in the same navy */
.dc-side { background: var(--navy); }
.dc-app { background: linear-gradient(to right, var(--navy) 248px, transparent 248px); }
.dc-side nav a:hover { background: #12304d; }
.dc-side nav a[aria-current="page"] { background: #163a5c; }
.dc-side-foot { border-top-color: var(--navy-line); }
@media (max-width: 1400px) and (min-width: 1001px) { .dc-app { background: linear-gradient(to right, var(--navy) 216px, transparent 216px); } }
@media (max-width: 1000px) { .dc-app { background: none; } }
.dc-footer { background: var(--navy); }
.dc-footer-legal { border-top-color: var(--navy-line); }
.dc-footer .dc-wordmark { font-size: 1.25rem !important; }
.dc-cta-band { background: linear-gradient(90deg, var(--navy), var(--navy-2)); }
/* Help centre */
.dc-help article h2 { scroll-margin-top: 90px; margin-top: 1.6em; }
.dc-help article h2:first-child { margin-top: 0; }
.dc-help article h3 { font-size: 1.08rem; margin-top: 1.4em; }
.dc-help-steps { padding-left: 22px; margin: 0 0 1em; }
.dc-help-steps > li { margin-bottom: .55em; padding-left: 4px; }
.dc-help-steps ul { margin: .4em 0 .2em; padding-left: 18px; }
.dc-help article > ul { padding-left: 20px; }
.dc-help article > ul > li { margin-bottom: .45em; }
.dc-help-brokers { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 8px 0 12px; box-shadow: var(--lift); }
.dc-help-broker { border-bottom: 1px solid var(--line-2); padding: 0 18px; scroll-margin-top: 90px; }
.dc-help-broker:last-child { border-bottom: 0; }
.dc-help-broker summary { cursor: pointer; font-weight: 650; padding: 14px 0; }
.dc-help-broker[open] summary { padding-bottom: 8px; }
.dc-help .dc-faq { margin-top: 8px; }
.dc-help .dc-faq h3 { font-size: 1.12rem; }
.dc-co-link { text-decoration: none; }
.dc-co-link strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dc-chart { touch-action: pan-y; } /* a finger can slide along the line to read each day */

/* Future income by month, grouped by year */
.dc-income-years .dc-year { padding: 14px 0; border-top: 1px solid var(--line); }
.dc-income-years .dc-year:first-of-type { border-top: 0; padding-top: 4px; }
.dc-year-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dc-year-head h3 { margin: 0; font: 650 1.05rem var(--sans); }
.dc-year-head strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.dc-year-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.dc-ym { position: relative; overflow: hidden; border-radius: 8px; padding: 7px 8px 9px; background: #f6f8f9; border: 1px solid transparent; min-width: 0; }
.dc-ym span { display: block; font-size: .74rem; color: var(--ink-3); }
.dc-ym b { display: block; font-size: .86rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-ym i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--sea); }
.dc-ym-dec { background: var(--sea-soft); }
.dc-ym-est, .dc-ym-mixed { background: #fff; border: 1px dashed #9fb3c4; }
.dc-ym-est i { background: repeating-linear-gradient(90deg, var(--sea) 0 4px, transparent 4px 7px); }
.dc-ym-mixed { border-style: solid; border-color: var(--sea-soft); }
.dc-ym-none b { color: var(--ink-3); font-weight: 400; }
.dc-ym-off { opacity: .35; }
button.dc-ym { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
button.dc-ym:hover, button.dc-ym:focus-visible { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea-soft); outline: none; }
.dc-month-dialog .dc-table-wrap { max-height: 60vh; overflow-y: auto; }
@media (max-width: 1100px) { .dc-year-months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dc-year-months { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dc-ym-off { display: none; } }

/* Calendar summary: received and coming up */
.dc-cal-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.dc-cal-half h2 { font: 650 .95rem var(--sans); color: var(--ink-3); margin: 0 0 4px; }
.dc-cal-half strong { display: block; font-size: 1.7rem; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.dc-cal-half p { margin: 2px 0; font-size: .92rem; }
.dc-cal-half + .dc-cal-half { border-left: 1px solid var(--line); padding-left: 28px; }
.dc-cal-split { height: 6px; border-radius: 99px; margin: 8px 0 4px; background: repeating-linear-gradient(90deg, #9fd3cd 0 5px, #e1f2f0 5px 9px); overflow: hidden; max-width: 320px; }
.dc-cal-split i { display: block; height: 100%; background: var(--sea); }
.dc-cal-note { grid-column: 1 / -1; margin: 14px 0 0; }
.dc-cal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .dc-cal-sum { grid-template-columns: 1fr; } .dc-cal-half + .dc-cal-half { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; } }
@media (max-width: 520px) {
  .dc-value-panel .dc-seg { display: flex; width: 100%; }
  .dc-value-panel .dc-seg button { flex: 1 1 0; min-width: 0; padding: 7px 2px; }
}

/* Stock page: dividend key facts (also given to search engines) */
.dc-h1-tail { font-weight: 400; color: var(--ink-3); font-size: .62em; white-space: nowrap; }
.dc-keyfacts h2 { font-size: 1.2rem; margin-bottom: 14px; }
.dc-kf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.dc-kf { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfc; min-width: 0; }
.dc-kf-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 600 .74rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.dc-kf-value { font: 650 1.45rem/1.15 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dc-kf-sub { font-size: .82rem; line-height: 1.4; color: var(--ink-3); }
.dc-kf-tag { font-style: normal; font-size: .66rem; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); }
.dc-kf-tag-estimate { background: #fff4e0; color: #9a5b00; }
@media (max-width: 520px) { .dc-kf-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .dc-kf { padding: 12px; } .dc-kf-value { font-size: 1.2rem; } }

/* Guides */
.dc-guide h1 { margin-bottom: 6px; }
.dc-guide .dc-lead { margin: 14px 0 20px; }
.dc-prose h2 { margin: 30px 0 10px; }
.dc-prose p, .dc-prose li { line-height: 1.65; }
.dc-prose ol, .dc-prose ul { padding-left: 22px; }
.dc-prose li { margin-bottom: 8px; }
.dc-prose .dc-table { margin: 6px 0 12px; }
.dc-guide-faq dt { font-weight: 650; margin-top: 14px; }
.dc-guide-faq dd { margin: 4px 0 0; color: var(--ink-2); }
.dc-guide-list { display: grid; gap: 12px; margin-top: 20px; }
.dc-guide-card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.dc-guide-card:hover { border-color: var(--sea); background: #f7fbfa; }
.dc-guide-card strong { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 3px; }
.dc-guide-card span { color: var(--ink-3); font-size: .94rem; }
.dc-guide-cal td:first-child .dc-sub { display: block; }
.dc-guide-cta { display: grid; gap: 6px; justify-items: start; margin: 34px 0 10px; padding: 18px 20px; border-radius: 12px; background: var(--sea-soft); }
.dc-guide-cta span { color: var(--ink-2); }
.dc-guide-cta .dc-btn { margin-top: 6px; }
.dc-guide-more-h { font-size: 1.1rem; margin-top: 28px; }
.dc-guide-more { padding-left: 20px; }
.dc-guide-more li { margin-bottom: 6px; }
.dc-guide .dc-month > header h2 { font-size: 1.35rem; margin: 18px 0 0; }

.dc-pf-new { white-space: nowrap; }
@media (max-width: 520px) { .dc-pf-new { padding-left: 10px; padding-right: 10px; } }

.dc-chg-when { font-weight: 400; opacity: .85; }

.dc-downgrade { line-height: 1.55; }
.dc-downgrade-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.dc-outlook-flat { margin: 6px 0 0; line-height: 1.6; }

/* Accepted payment methods (footer, pricing) */
.dc-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; }
.dc-pay ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.dc-pay li { position: static; margin: 0; font: 600 .72rem/1 var(--sans); letter-spacing: .02em; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-2); }
.dc-pay li::before, .dc-pay li::after { content: none !important; display: none !important; }
.dc-pay-secure { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); }
.dc-pay-dark { margin: 0 0 16px; }
.dc-pay-dark li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #e6eef5; }
.dc-pay-dark .dc-pay-secure { color: #b9c9d6; }

/* Dividend tracker landing page */
.dc-tk-demo { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.dc-tk-demo-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.dc-tk-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.dc-tk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.dc-tk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-tk-grid .dc-panel { margin: 0; }
.dc-tk-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.dc-tk-grid p { margin: 0; color: var(--ink-2); font-size: .94rem; }
@media (max-width: 900px) { .dc-tk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dc-tk-grid, .dc-tk-grid-3 { grid-template-columns: 1fr; } .dc-tk-months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Comparison pages */
.dc-compare th[scope="row"] { font-weight: 600; width: 30%; min-width: 150px; }
.dc-compare thead th:nth-child(2), .dc-compare td:nth-child(2) { background: #f3faf8; }
.dc-compare-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.dc-compare-pick .dc-panel { margin: 0; }
.dc-compare-pick h2 { font-size: 1.15rem; }
.dc-compare-us { border-color: var(--sea); }
@media (max-width: 640px) { .dc-compare-pick { grid-template-columns: 1fr; } }
.dc-table tr.is-on td { background: var(--sea-soft); font-weight: 650; }
.dc-pay li.dc-pay-logo { padding: 3px 6px; background: #fff; border-color: var(--line); display: flex; align-items: center; }
.dc-pay li.dc-pay-logo img { display: block; height: 22px; width: auto; max-width: 64px; object-fit: contain; }
.dc-pay-dark li.dc-pay-logo { background: #fff; border-color: #fff; }

/* Calculator: market selector beside the company search */
.dc-calc-find { margin-bottom: 14px; display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); gap: 0 12px; align-items: end; }
.dc-calc-find .dc-field { margin-bottom: 0; }
@media (max-width: 520px) { .dc-calc-find { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.dc-calc-findhint { margin: -6px 0 14px; }
/* Search suggestions under a search box (stock research) */
.dc-ac { position: relative; }
.dc-ac .dc-ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; z-index: 30; box-shadow: 0 10px 28px rgba(20, 38, 59, .16); max-height: 360px; }
.dc-results button:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; background: var(--line-2, #eef2f4); }
/* Page headings (every page except the home page): a slimmer band */
body.dc-page:not(.dc-slug-home) .dc-hero, body.dc-page:not(.dc-slug-home) .dc-hero.dc-hero-dark { padding: 30px 0 26px !important; }
body.dc-page:not(.dc-slug-home) .dc-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: none; margin-bottom: .3em; }
body.dc-page:not(.dc-slug-home) .dc-hero .dc-lead { font-size: 1.02rem; margin: 0; max-width: 75ch; }
body.dc-page:not(.dc-slug-home) .dc-hero .dc-hero-actions { margin: 16px 0 0; }
body.dc-page:not(.dc-slug-home) .dc-hero .dc-btn { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 600px) { body.dc-page:not(.dc-slug-home) .dc-hero, body.dc-page:not(.dc-slug-home) .dc-hero.dc-hero-dark { padding: 22px 0 20px !important; } }
/* Clickable table rows (home "Going ex-dividend soon", dividend calendar) */
tr.dc-row-link { cursor: pointer; }
tr.dc-row-link:hover td { background: var(--line-2, #eef2f4); }
/* Dividend calendar: visible column headings, with the same column widths on every day */
.dc-month .dc-table { table-layout: fixed; width: 100%; }
.dc-month .dc-table th:nth-child(1) { width: 34%; } .dc-month .dc-table th:nth-child(2) { width: 20%; }
.dc-month .dc-table th:nth-child(3) { width: 12%; } .dc-month .dc-table th:nth-child(4) { width: 9%; } .dc-month .dc-table th:nth-child(5) { width: 9%; } .dc-month .dc-table th:nth-child(6) { width: 16%; }
.dc-calcols th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 760px) { .dc-month .dc-table { table-layout: auto; } }

/* Markets covered panel */
.dc-markets { margin-top: 28px; }
.dc-markets h2 { margin-top: 0; }
.dc-market-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 24px; }
.dc-market-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.dc-market-list li::before { content: none; }
.dc-market-list strong { color: var(--ink); }
.dc-market-list span { font-size: .9rem; color: var(--ink-3); }

/* Company page: sign-up panel and related shares */
.dc-stock-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid var(--gold); }
.dc-stock-cta h2 { margin: 0 0 6px; }
.dc-stock-cta p { margin: 0; max-width: 680px; }
.dc-stock-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dc-related-list { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.dc-related-list li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); }
.dc-related-list li::before { content: none; }
.dc-related-list a { text-decoration: none; }
.dc-related-list a span { color: var(--ink-3); font-weight: 400; }
.dc-related-list small { color: var(--ink-3); font-size: .85rem; }

/* Currency column beside per-share amounts */
.dc-ccy { white-space: nowrap; color: var(--ink-3); font-size: .85rem; letter-spacing: .02em; }
th.dc-ccy { color: inherit; font-size: inherit; }

/* ---------- Home page (1.8.1): figures, cards and a coverage chart instead of long lists ---------- */
/* Coverage figures: a navy strip that carries on from the hero. */
.dc-stats-band { background: linear-gradient(90deg, var(--navy), var(--navy-2)); border-top: 1px solid var(--navy-line); padding: 0; }
.dc-home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.dc-home-stats > div { display: flex; flex-direction: column; padding: 26px 20px 24px; border-left: 1px solid var(--navy-line); }
.dc-home-stats > div:first-child { border-left: 0; padding-left: 0; }
.dc-home-stats dd { margin: 0; }
.dc-home-stats dd.n { order: 1; font: 700 2.15rem/1.1 var(--serif); color: var(--gold-word); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dc-home-stats dt { order: 2; font-weight: 600; color: #fff; margin-top: 4px; }
.dc-home-stats dd.s { order: 3; font-size: .84rem; color: #9fb3c4; margin-top: 2px; }
@media (max-width: 900px) {
  .dc-home-stats { grid-template-columns: 1fr 1fr; }
  .dc-home-stats > div { padding: 18px 16px; border-left: 0; border-top: 1px solid var(--navy-line); }
  .dc-home-stats > div:first-child { padding-left: 16px; }
  .dc-home-stats > div:nth-child(-n+2) { border-top: 0; }
  .dc-home-stats > div:nth-child(even) { border-left: 1px solid var(--navy-line); }
  .dc-home-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dc-home-stats dd.n { font-size: 1.7rem; }
}

/* Section headings: centred, or with a button to the right. */
.dc-head-center { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.dc-head-center .dc-lead { margin-left: auto; margin-right: auto; }
.dc-head-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dc-head-row h2 { margin-bottom: .2em; }
.dc-head-row > div { flex: 1 1 420px; }
.dc-head-row p { margin: 0; max-width: 72ch; }
.dc-center { text-align: center; margin: 30px 0 0; }

/* Icons in a soft circle. */
.dc-ico-wrap { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sea-soft); color: var(--sea-ink); flex-shrink: 0; }
.dc-ico { display: block; }

/* What makes it different: the example chart beside six icon cards. */
.dc-home-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
.dc-home-split .dc-strip { margin: 0; align-self: center; }
.dc-home-split .dc-strip-bars { height: 230px; }
.dc-feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dc-feature-grid li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fbfcfc; }
.dc-feature-grid li strong { font-size: 1.02rem; margin-top: 6px; line-height: 1.3; }
.dc-feature-grid li > span:last-child { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.dc-feature-grid li:first-child .dc-ico-wrap { background: var(--gold-soft); color: var(--gold-ink); }
@media (max-width: 980px) { .dc-home-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .dc-feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .dc-feature-grid li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px; }
  .dc-feature-grid li .dc-ico-wrap { grid-row: 1 / span 2; }
  .dc-feature-grid li strong { margin-top: 0; }
}

/* Dividends going ex soon: one card each. */
.dc-div-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dc-div-cards a { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dc-div-cards a:hover { border-color: var(--sea); box-shadow: 0 6px 18px rgba(20, 38, 59, .09); transform: translateY(-2px); }
.dc-div-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dc-div-name { display: flex; flex-direction: column; min-width: 0; }
.dc-div-name strong { font-size: .98rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-div-name > span { font-size: .8rem; color: var(--ink-3); }
.dc-div-amt { font: 700 1.7rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.dc-div-amt small { font: 400 .8rem var(--sans); color: var(--ink-3); margin-left: 6px; }
.dc-div-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: .88rem; font-weight: 600; }
.dc-div-dates em { display: block; font-style: normal; font-weight: 400; font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.dc-div-yield { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: var(--sea-soft); color: var(--sea-ink); font-size: .8rem; font-weight: 650; }
@media (max-width: 1000px) { .dc-div-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: swipe through the cards sideways instead of a long column. */
@media (max-width: 520px) {
  .dc-div-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 4px 20px 14px; scrollbar-width: thin; }
  .dc-div-cards li { flex: 0 0 78%; scroll-snap-align: center; }
}

/* Coverage: a bar for each of the biggest countries, the rest as chips. */
.dc-cover { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; }
.dc-cover-one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.dc-cover-chart { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fbfcfc; }
.dc-cover-chart figcaption, .dc-cover-more > p { font-weight: 650; margin: 0 0 14px; }
.dc-cover-chart ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dc-cover-chart li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font-size: .95rem; }
.dc-cover-chart .l { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-cover-chart .b { height: 14px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.dc-cover-chart .b i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sea), #1aa39d); }
.dc-cover-chart li:first-child .b i { background: linear-gradient(90deg, #d79b00, var(--gold)); }
.dc-cover-chart .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dc-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: .9rem; font-weight: 600; }
.dc-chips li span { font-weight: 400; color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .dc-cover { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 480px) { .dc-cover-chart { padding: 18px 16px; } .dc-cover-chart li { grid-template-columns: 84px minmax(0, 1fr) 52px; gap: 8px; } }

/* Guides: four cards. */
.dc-guide-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dc-guide-cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dc-guide-cards a:hover { border-color: var(--sea); box-shadow: 0 6px 18px rgba(20, 38, 59, .09); transform: translateY(-2px); }
.dc-guide-cards strong { font: 700 1.08rem/1.3 var(--serif); margin-top: 8px; }
.dc-guide-cards a > span:not(.dc-ico-wrap) { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.dc-guide-cards em { font-style: normal; font-weight: 650; font-size: .9rem; color: var(--sea-ink); margin-top: auto; padding-top: 8px; }
@media (max-width: 1000px) { .dc-guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dc-guide-cards { grid-template-columns: 1fr; } }

/* Steps as cards with a filled number. */
.dc-steps-cards { gap: 16px; }
.dc-steps-cards li { padding: 64px 22px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fbfcfc; }
.dc-steps-cards li::before { top: 18px; left: 22px; background: var(--ink); color: #fff; border-color: var(--ink); }
.dc-steps-cards li h3 { margin-top: 0; }
.dc-steps-cards li p { margin-bottom: 0; color: var(--ink-2); }

/* ---------- Features and Pricing pages (1.8.2) ---------- */
/* Jump strip under the hero: one tile per feature area. */
.dc-jump-band { background: linear-gradient(90deg, var(--navy), var(--navy-2)); border-top: 1px solid var(--navy-line); }
.dc-jump { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-jump li + li { border-left: 1px solid var(--navy-line); }
.dc-jump a { display: flex; align-items: center; gap: 14px; padding: 20px; color: #fff !important; text-decoration: none !important; transition: background .15s; }
.dc-jump li:first-child a { padding-left: 0; }
.dc-jump a:hover { background: rgba(255, 255, 255, .05); }
.dc-jump .dc-ico-wrap { background: rgba(255, 255, 255, .1); color: var(--gold-word); }
.dc-jump strong { display: block; line-height: 1.25; }
.dc-jump em { font-style: normal; font-size: .84rem; color: #9fb3c4; }
@media (max-width: 760px) {
  .dc-jump { grid-template-columns: 1fr; }
  .dc-jump li + li { border-left: 0; border-top: 1px solid var(--navy-line); }
  .dc-jump a, .dc-jump li:first-child a { padding: 14px 0; }
}
.dc-page section[id] { scroll-margin-top: 80px; }

/* Feature cards three (or four) across. */
.dc-feature-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dc-feature-grid-3 li { background: var(--surface); padding: 22px; }
.dc-section-white .dc-feature-grid-3 li { background: #fbfcfc; }
.dc-feature-grid-3 li:first-child .dc-ico-wrap { background: var(--sea-soft); color: var(--sea-ink); }
.dc-feature-grid li strong .dc-plan-pill { margin-left: 6px; vertical-align: 2px; }
@media (min-width: 1001px) { .dc-feature-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .dc-feature-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dc-feature-grid-3 { grid-template-columns: 1fr; } .dc-feature-grid-3 li { padding: 16px; } }

/* Pricing: plan headings with an icon, a gold edge on Pro. */
.dc-plan-head { display: flex; align-items: center; gap: 14px; }
.dc-plan-head h2 { margin: 0; }
.dc-plan-head p { margin: 0; }
.dc-plan-pro { position: relative; border-top: 6px solid var(--gold); }
.dc-plan-pro .dc-plan-head .dc-ico-wrap { background: var(--gold-soft); color: var(--gold-ink); }

/* Four reassurances in a row. */
.dc-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dc-trust li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.dc-trust strong { display: block; line-height: 1.3; margin-bottom: 2px; }
.dc-trust li div > span { color: var(--ink-2); font-size: .92rem; line-height: 1.5; display: block; }
@media (max-width: 1000px) { .dc-trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dc-trust { grid-template-columns: 1fr; } }

/* Free against Pro. */
.dc-compare-wrap { max-width: 860px; margin: 0 auto; }
.dc-compare { font-size: 1rem; }
.dc-compare th, .dc-compare td { padding: 14px 18px; vertical-align: middle; }
.dc-compare thead th { font: 700 1.1rem var(--serif); color: var(--ink); background: var(--surface); position: static; }
.dc-compare tbody th { font-weight: 600; }
.dc-compare td, .dc-compare thead th:not(:first-child) { text-align: center; width: 27%; }
.dc-compare .is-pro { background: var(--gold-soft); font-weight: 600; }
.dc-compare thead th.is-pro { color: var(--gold-ink); box-shadow: inset 0 4px 0 var(--gold); }
.dc-compare tbody tr:hover { background: transparent; }
.dc-yes, .dc-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.dc-yes { background: var(--sea-soft); color: var(--sea-ink); }
.dc-yes .dc-ico { stroke-width: 2.4; }
.dc-no { color: var(--ink-3); }
.dc-compare .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .dc-compare { font-size: .92rem; }
  .dc-compare th, .dc-compare td { padding: 12px 10px; }
  .dc-compare td:first-child, .dc-compare th:first-child { min-width: 0; }
}
.dc-compare { table-layout: fixed; }
.dc-compare th, .dc-compare td { white-space: normal !important; overflow-wrap: anywhere; }
.dc-compare thead th:first-child { width: 46%; }
@media (max-width: 560px) { .dc-compare thead th:first-child { width: 38%; } .dc-compare td, .dc-compare thead th:not(:first-child) { width: 31%; } }

/* ---------- How it works and About pages (1.8.3) ---------- */
/* Received, declared, estimated: three tiles with the chart markings. */
.dc-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dc-kinds li { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.dc-kinds strong { font: 700 1.2rem var(--serif); margin-top: 10px; }
.dc-kinds li > span:last-child { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.dc-kind-bar { display: block; height: 46px; border-radius: 8px; }
.dc-kind-received { background: var(--ink); }
.dc-kind-declared { background: var(--sea); }
.dc-kind-estimated { background: var(--hatch); box-shadow: inset 0 0 0 1.5px var(--sea); }
@media (max-width: 760px) {
  .dc-kinds { grid-template-columns: 1fr; gap: 10px; }
  .dc-kinds li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .dc-kind-bar { grid-row: 1 / span 2; height: 100%; min-height: 46px; }
  .dc-kinds strong { margin-top: 0; }
}

/* How we calculate: one card per rule, icon to the left. */
.dc-explain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dc-explain article { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fbfcfc; scroll-margin-top: 90px; }
.dc-explain article:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dc-explain h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.dc-explain p { margin: 0; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 860px) { .dc-explain { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dc-explain article { flex-direction: column; gap: 6px; padding: 16px; } }

/* About. */
.dc-about-hero { align-items: center; }
.dc-about-mark { display: flex; justify-content: center; }
.dc-about-mark img { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
@media (max-width: 860px) { .dc-about-mark img { width: 120px; height: 120px; } }
.dc-feature-grid-plain li .dc-ico-wrap, .dc-feature-grid-plain li:first-child .dc-ico-wrap { background: #eef2f6; color: var(--ink-2); }
.dc-exchanges { max-width: 1000px; margin: 28px auto 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dc-exchanges summary { cursor: pointer; padding: 16px 20px; font-weight: 650; color: var(--sea-ink); }
.dc-exchanges .dc-market-list { margin: 0; padding: 0 20px 14px; }
.dc-about-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.dc-about-foot-one { grid-template-columns: minmax(0, 720px); justify-content: center; }
.dc-giving-card, .dc-who { padding: 30px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.dc-giving-card { background: #fdf1f4; border-color: #f6d3dc; }
.dc-giving-card h2, .dc-who h2 { margin-top: 0; }
.dc-giving-heart { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #e0607e; font-size: 1.4rem; margin-bottom: 12px; }
.dc-giving-card p:last-child { margin-bottom: 0; }
.dc-who-list { margin: 0 0 20px; display: grid; gap: 0; }
.dc-who-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.dc-who-list > div:first-child { border-top: 0; padding-top: 0; }
.dc-who-list dt { color: var(--ink-3); font-size: .9rem; }
.dc-who-list dd { margin: 0; font-weight: 600; }
.dc-who p { margin: 0; }
@media (max-width: 860px) { .dc-about-foot { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .dc-who-list > div { grid-template-columns: 1fr; gap: 0; } .dc-giving-card, .dc-who { padding: 22px; } }
.dc-about-hero .dc-lead { margin-bottom: 14px; }
.dc-exchanges { max-width: none; }

/* ---------- Tracker and calculator pages (1.8.4) ---------- */
.dc-jump a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold-word); background: rgba(255, 255, 255, .06); }
.dc-jump li a { padding-left: 20px; }
.dc-jump li:first-child a { padding-left: 20px; }
.dc-hero.dc-hero-calc { padding: 48px 0 36px; }

/* Tracker: example chart beside the cards. */
.dc-tk-split .dc-tk-demo { margin: 0; padding: 22px; align-self: center; }
.dc-tk-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; height: 230px; align-items: end; border-bottom: 1px solid var(--line); }
.dc-tk-bars span { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; position: relative; text-align: center; }
.dc-tk-bars b { font-size: .82rem; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.dc-tk-bars i { display: block; border-radius: 4px 4px 0 0; min-height: 4px; max-height: calc(100% - 26px); }
.dc-tk-bars i.c { background: var(--sea); }
.dc-tk-bars i.e { background: var(--hatch); box-shadow: inset 0 0 0 1.5px var(--sea); }
.dc-tk-bars em { position: absolute; left: 0; right: 0; bottom: -24px; font-style: normal; font-size: .8rem; color: var(--ink-3); }
.dc-tk-split .dc-legend { margin-top: 36px; }
.dc-tk-features li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dc-btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.dc-guide-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .dc-guide-cards-3 { grid-template-columns: 1fr; } }
.dc-versus { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; color: var(--ink-2); }
.dc-chips li a { color: var(--ink) !important; text-decoration: none !important; }
.dc-chips li:has(a):hover { border-color: var(--sea); }

/* Calculator results as bars. */
.dc-cover-bars { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.dc-cover-bars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 84px; align-items: center; gap: 12px; font-size: .95rem; }
.dc-cover-bars li[hidden] { display: none; }
.dc-cover-bars .l { font-weight: 600; }
.dc-cover-bars .b { height: 16px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.dc-cover-bars .b i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d79b00, var(--gold)); transition: width .25s; }
.dc-cover-bars li.is-alt .b i, .dc-cover-bars-yield .b i { background: linear-gradient(90deg, var(--sea), #1aa39d); }
.dc-cover-bars .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dc-cover-bars-yield li { grid-template-columns: 40px minmax(0, 1fr) 96px; }
.dc-cover-bars-yield .v { font-weight: 400; color: var(--ink-2); }
.dc-cover-bars-yield li.is-on .b i { background: linear-gradient(90deg, #d79b00, var(--gold)); }
.dc-cover-bars-yield li.is-on .v, .dc-cover-bars-yield li.is-on .l { font-weight: 700; color: var(--ink); }
.dc-progress { height: 18px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin: 4px 0 10px; }
.dc-progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sea), #1aa39d); transition: width .25s; }
.dc-bars-panel h2 { margin-bottom: 12px; }
.dc-bars-panel p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .dc-cover-bars li { grid-template-columns: 92px minmax(0, 1fr) 64px; gap: 8px; } .dc-cover-bars-yield li { grid-template-columns: 34px minmax(0, 1fr) 84px; } }

/* ---------- Stocks and calendar pages (1.8.5) ---------- */
.dc-jump-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dc-jump a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--gold-word); background: rgba(255, 255, 255, .06); }
@media (max-width: 1000px) { .dc-jump-4 { grid-template-columns: 1fr 1fr; } .dc-jump-4 li:nth-child(odd) { border-left: 0; } .dc-jump-4 li:nth-child(n+3) { border-top: 1px solid var(--navy-line); } }
@media (max-width: 760px) { .dc-jump-4 { grid-template-columns: 1fr; } .dc-jump li a, .dc-jump li:first-child a { padding: 12px 0; } }

/* Chips on the dark heading. */
.dc-chips-dark { margin-top: 18px; }
.dc-chips-dark li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.dc-hero-dark .dc-chips-dark li a { color: #fff !important; }
.dc-chips-dark li:hover { border-color: var(--gold-word); }
.dc-chips li.is-on { background: var(--ink); border-color: var(--ink); }
.dc-chips li.is-on a { color: #fff !important; }

/* Calendar: one-tap choices above the form. */
.dc-quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.dc-seg { list-style: none; margin: 0; padding: 4px; display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; }
.dc-seg a { display: block; padding: 7px 16px; border-radius: 99px; font-weight: 600; font-size: .93rem; color: var(--ink-2) !important; text-decoration: none !important; }
.dc-seg a[aria-current="true"] { background: var(--ink); color: #fff !important; }

/* Calendar: each day starts with a date tile. */
.dc-month > header.dc-day-head { align-items: center; justify-content: flex-start; gap: 14px; border-bottom: 0; padding: 0; margin: 26px 0 10px; }
.dc-day-head h2 { flex: 1 1 auto; font-size: 1.25rem; margin: 0; }
.dc-day-badge { display: flex; flex-direction: column; width: 48px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-align: center; box-shadow: var(--lift); }
.dc-day-badge em { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--sea); padding: 2px 0; }
.dc-day-badge b { font: 700 1.25rem/1.5 var(--serif); }
.dc-day-count { padding: 3px 10px; border-radius: 99px; background: var(--sea-soft); color: var(--sea-ink); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.dc-month:has(.dc-day-head) > .dc-table-wrap { border: 1px solid var(--line) !important; border-radius: var(--r) !important; }
@media (max-width: 520px) { .dc-day-head h2 { font-size: 1.05rem; } }

/* 1.8.6: Help, FAQ and Contact */
.dc-jump-6 li:nth-child(n+4) { border-top: 1px solid var(--navy-line); }
.dc-jump-6 li:nth-child(4) { border-left: 0; }
.dc-help-sec, .dc-faq-page .dc-faq-group { scroll-margin-top: 80px; }
.dc-help-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 28px; }
.dc-help-two .dc-panel { margin-bottom: 0; }
.dc-help-two h3, .dc-help-note h3, .dc-help-note h2 { margin-top: 0; font-size: 1.12rem; }
.dc-help-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.dc-help-sub { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.12rem; }
.dc-help-sub .dc-help-num { margin-bottom: 0; }
.dc-help-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dc-help-note p { margin: 0; color: var(--ink-2); }
.dc-feature-grid li span strong { font-size: inherit; margin: 0; }
.dc-feature-grid li h2 { font: 700 1.02rem/1.3 var(--sans, inherit); margin: 6px 0 0; }
.dc-head-center .dc-plan-pill { vertical-align: middle; margin-left: 6px; }
@media (min-width: 1001px) { .dc-feature-grid-3.dc-feature-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; } }
.dc-faq-page h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; }
.dc-faq-page .dc-help-note { margin-top: 32px; }
@media (max-width: 860px) { .dc-help-two { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .dc-jump-6 li:nth-child(4) { border-top: 1px solid var(--navy-line); } .dc-help-note { padding: 18px; } }

/* 1.8.7: guides */
.dc-crumb { margin: 0 0 8px; }
.dc-guide-updated { color: #9fb3c4; margin: 0; }
.dc-prose h2 { scroll-margin-top: 80px; }
.dc-guide .dc-prose > :first-child { margin-top: 0; }
.dc-guide-cards-compact a { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.dc-guide-cards-compact strong { margin-top: 0; font-size: 1rem; }
@media (min-width: 521px) and (max-width: 1000px) { .dc-guide-cards-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 1.8.8: comparison and forecast accuracy pages */
.dc-compare-vs .dc-yes, .dc-compare-vs .dc-no { width: 22px; height: 22px; vertical-align: middle; margin-right: 4px; }
.dc-compare-vs thead th:nth-child(2) { box-shadow: inset 0 4px 0 var(--sea); }
.dc-compare-pick.dc-compare-wrap { margin: 0 auto 24px; }
.dc-compare-pick .dc-panel { padding: 26px; }
.dc-compare-pick h3 { font-size: 1.2rem; margin: 12px 0 .4em; }
.dc-compare-us .dc-ico-wrap { background: var(--gold-soft); color: var(--gold-ink); }
.dc-compare-more { justify-content: center; }
.dc-acc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.dc-acc-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fbfcfc; }
.dc-acc-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.dc-acc-top h3 { margin: 0 0 .2em; font-size: 1.2rem; }
.dc-acc-top p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.dc-acc-big { margin: 0; color: var(--ink-2); }
.dc-acc-big strong { font: 700 2.6rem/1.1 var(--serif); color: var(--ink); margin-right: 6px; }
.dc-acc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.dc-acc-facts dt { color: var(--ink-3); font-size: .82rem; }
.dc-acc-facts dd { margin: 0; font-weight: 650; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.dc-acc-empty { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: var(--r-sm); color: var(--ink-2); background: var(--surface); }
.dc-acc-measure, .dc-acc-note, .dc-acc-bars, .dc-acc-table { max-width: 980px; margin-left: auto; margin-right: auto; }
.dc-page p.dc-acc-note { margin: 18px auto 0; text-align: center; }
.dc-acc-bars { margin-bottom: 28px; }
@media (max-width: 760px) { .dc-acc-cards { grid-template-columns: 1fr; } .dc-acc-card { padding: 20px; } }

/* 1.8.11: subscription key facts and cancel button */
.dc-keyinfo { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: var(--r-sm); background: var(--surface); text-align: left; }
.dc-keyinfo strong { display: block; margin-bottom: 6px; }
.dc-keyinfo ul { margin: 0; padding-left: 18px; font-size: .93rem; color: var(--ink-2); }
.dc-keyinfo li { margin: 3px 0; }
.dc-billing-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 1.8.12: home page upcoming dividends as a list */
.dc-div-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.dc-div-list li + li { border-top: 1px solid var(--line); }
.dc-div-list a, .dc-div-list-head { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1fr .8fr .6fr; gap: 16px; align-items: center; padding: 12px 18px; }
.dc-div-list a { color: var(--ink); text-decoration: none; }
.dc-div-list a:hover { background: #f6f9f9; }
.dc-div-list-head { background: #f3f6f7; color: var(--ink-3); font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding-top: 9px; padding-bottom: 9px; }
.dc-div-list .r { text-align: right; }
.dc-div-co { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dc-div-list .dc-div-name { display: flex; flex-direction: column; min-width: 0; }
.dc-div-list .dc-div-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-div-list .dc-div-name span { color: var(--ink-3); font-size: .85rem; }
.dc-div-cell { font-variant-numeric: tabular-nums; }
.dc-div-cell em { display: none; font-style: normal; color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) {
  .dc-div-list-head { display: none; }
  .dc-div-list a { grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 14px; }
  .dc-div-co { grid-column: 1 / -1; }
  .dc-div-list .r { text-align: left; }
  .dc-div-cell em { display: block; }
}
/* 1.8.12: sector pages */
.dc-sector-facts { color: var(--ink); }
.dc-sector-facts b { font-weight: 700; }
.dc-crumb a { color: inherit; }

/* 1.9.0: tax-year report, calendar feed */
.dc-kpis-plain { margin-bottom: 14px; }
.dc-kpi .dc-progress { height: 8px; margin: 8px 0 0; }
.dc-feed input[readonly] { font-family: ui-monospace, monospace; font-size: .85rem; }
.dc-feed .dc-billing-actions { margin: 10px 0 14px; }
.dc-feed-how { margin: 0 0 10px; padding-left: 18px; }
.dc-feed-how li { margin: 3px 0; }
