/* ============================================================================
   domain-home.css — shared stylesheet for the five domain landing pages
   (/dt, /gst, /company-law, /international-tax, /indirect-tax).

   Replaces five byte-identical copies of HomeXxx.razor.css. Every page wraps
   its content in `.dh.dh--<domain>`; that modifier is the ONLY thing that
   differs between domains. Accent is a custom property so a new domain needs
   one seven-line block, not a 316-line file.

   Global (not scoped) CSS: never use bare element selectors here.
   ========================================================================= */

:root {
    /* Defaults promoted to :root so editorial pieces (row cards, document viewer)
       resolve the tokens outside a `.dh` wrapper. `.dh--<domain>` still overrides
       within its subtree. */
    --dh-accent: #5b21b6;
    --dh-accent-hover: #4c1d95;
    --dh-accent-text: #6d28d9;
    --dh-tint-50: #faf5ff;
    --dh-tint-100: #ede9fe;
    --dh-tint-200: #e9d5ff;
    --dh-tint-300: #c4b5fd;
    --dh-ink: #18181b;
    --dh-ink-soft: #52525b;
    --dh-ink-mute: #71717a;
    --dh-line: #e4e4e7;
    --dh-line-soft: #f4f4f5;
    --dh-surface: #ffffff;
    --dh-surface-alt: #fafafa;
    --dh-serif: "Newsreader", Georgia, "Times New Roman", serif;
    --dh-held-pro: #047857;
    --dh-held-pro-bg: #ecfdf5;
    --dh-held-con: #b91c1c;
    --dh-held-con-bg: #fef2f2;
}

.dh {
    /* Direct Tax / violet is the default so an unmodified `.dh` still renders. */
    --dh-accent: #5b21b6; /* 800 — buttons, links, focus */
    --dh-accent-hover: #4c1d95; /* 900 — pressed / hover */
    --dh-accent-text: #6d28d9; /* 700 — text on --dh-tint-100 */
    --dh-tint-50: #faf5ff; /* hero wash, chip hover */
    --dh-tint-100: #ede9fe; /* eyebrow chip bg */
    --dh-tint-200: #e9d5ff; /* chip / secondary-button border */
    --dh-tint-300: #c4b5fd; /* card hover border */
    /* Neutrals are shared: re-tinting greys per domain muddies the type. */
    --dh-ink: #18181b;
    --dh-ink-soft: #52525b;
    --dh-ink-mute: #71717a;
    --dh-line: #e4e4e7;
    --dh-line-soft: #f4f4f5;
    --dh-surface: #ffffff;
    --dh-surface-alt: #fafafa;
}

.dh--gst {
    --dh-accent: #065f46;
    --dh-accent-hover: #064e3b;
    --dh-accent-text: #047857;
    --dh-tint-50: #ecfdf5;
    --dh-tint-100: #d1fae5;
    --dh-tint-200: #a7f3d0;
    --dh-tint-300: #6ee7b7;
}

.dh--complaw {
    --dh-accent: #92400e;
    --dh-accent-hover: #78350f;
    --dh-accent-text: #b45309;
    --dh-tint-50: #fffbeb;
    --dh-tint-100: #fef3c7;
    --dh-tint-200: #fde68a;
    --dh-tint-300: #fcd34d;
}

.dh--intl {
    --dh-accent: #1e40af;
    --dh-accent-hover: #1e3a8a;
    --dh-accent-text: #1d4ed8;
    --dh-tint-50: #eff6ff;
    --dh-tint-100: #dbeafe;
    --dh-tint-200: #bfdbfe;
    --dh-tint-300: #93c5fd;
}

.dh--st {
    --dh-accent: #0f766e;
    --dh-accent-hover: #115e59;
    --dh-accent-text: #0d9488;
    --dh-tint-50: #f0fdfa;
    --dh-tint-100: #ccfbf1;
    --dh-tint-200: #99f6e4;
    --dh-tint-300: #5eead4;
}

.dh--vat {
    --dh-accent: #4d7c0f;
    --dh-accent-hover: #3f6212;
    --dh-accent-text: #65a30d;
    --dh-tint-50: #f7fee7;
    --dh-tint-100: #ecfccb;
    --dh-tint-200: #d9f99d;
    --dh-tint-300: #bef264;
}

.dh--accounting {
    --dh-accent: #0e7490;
    --dh-accent-hover: #155e75;
    --dh-accent-text: #0891b2;
    --dh-tint-50: #ecfeff;
    --dh-tint-100: #cffafe;
    --dh-tint-200: #a5f3fc;
    --dh-tint-300: #67e8f9;
}

.dh--customs {
    --dh-accent: #9f1239;
    --dh-accent-hover: #881337;
    --dh-accent-text: #be123c;
    --dh-tint-50: #fff1f2;
    --dh-tint-100: #ffe4e6;
    --dh-tint-200: #fecdd3;
    --dh-tint-300: #fda4af;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.dh-hero {
    padding: 4rem 1.5rem 2.5rem;
    background: linear-gradient(180deg, var(--dh-tint-50) 0%, var(--dh-surface) 100%);
    border-bottom: 1px solid var(--dh-line-soft);
}

.dh-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.dh-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dh-accent-text);
    background: var(--dh-tint-100);
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.dh-eyebrow-link {
    color: inherit;
    text-decoration: none;
}

.dh-eyebrow-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dh-hero h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--dh-ink);
    margin: 0 0 1rem;
}

.dh-sub {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--dh-ink-soft);
    max-width: 680px;
    margin: 0 0 1.75rem;
}

/* ── Search bar — the centrepiece ──────────────────────────────────────── */

.dh-searchbar {
    display: flex;
    gap: 0.625rem;
    max-width: 720px;
    margin: 0 0 1rem;
}

.dh-searchbar input {
    flex: 1;
    min-width: 0;
    font-size: 1.0625rem;
    padding: 0.875rem 1.125rem;
    border: 1.5px solid var(--dh-line);
    border-radius: 0.625rem;
    background: var(--dh-surface);
    color: var(--dh-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dh-searchbar input::placeholder {
    color: #a1a1aa;
}

.dh-searchbar input:focus {
    outline: none;
    border-color: var(--dh-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dh-accent) 12%, transparent);
}

.dh-searchbar button {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.625rem;
    background: var(--dh-accent);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dh-searchbar button:hover {
    background: var(--dh-accent-hover);
}

/* ── Advanced search options (restored from the legacy ASPX) ───────────── */

.dh-searchbar-form {
    margin: 0 0 1rem;
    max-width: 720px;
}

.dh-searchbar-form .dh-searchbar {
    margin: 0;
}

/* ── Hero CTA row — for browse-first domains with no search index ──────── */

.dh-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.dh-cta {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dh-cta--primary {
    background: var(--dh-accent);
    color: #ffffff;
    border: 1.5px solid var(--dh-accent);
}

.dh-cta--primary:hover {
    background: var(--dh-accent-hover);
    border-color: var(--dh-accent-hover);
    color: #ffffff;
}

.dh-cta--secondary {
    background: var(--dh-surface);
    color: var(--dh-accent);
    border: 1.5px solid var(--dh-tint-200);
}

.dh-cta--secondary:hover {
    background: var(--dh-tint-50);
    border-color: var(--dh-tint-300);
    color: var(--dh-accent-hover);
}

/* ── Popular searches ──────────────────────────────────────────────────── */

.dh-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.dh-popular-label {
    font-size: 0.875rem;
    color: var(--dh-ink-mute);
    font-weight: 600;
}

.dh-popular a {
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dh-accent);
    background: var(--dh-surface);
    border: 1px solid var(--dh-tint-200);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dh-popular a:hover {
    background: var(--dh-tint-50);
    border-color: var(--dh-tint-300);
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.dh-section {
    padding: 3rem 1.5rem;
}

.dh-section-alt {
    background: var(--dh-surface-alt);
    border-top: 1px solid var(--dh-line-soft);
    border-bottom: 1px solid var(--dh-line-soft);
}

.dh-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dh-ink);
    margin: 0;
}

.dh-section-sub {
    font-size: 0.9375rem;
    color: var(--dh-ink-soft);
    margin: 0.25rem 0 1.5rem;
}

.dh-see-all {
    text-decoration: none;
    color: var(--dh-accent);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.dh-see-all:hover {
    color: var(--dh-accent-hover);
}

/* ── Browse-by-category nav cards ──────────────────────────────────────── */

.dh-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.dh-nav-card {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.25rem 1.375rem;
    background: var(--dh-surface);
    border: 1px solid var(--dh-line);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dh-nav-card:hover {
    border-color: var(--dh-tint-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--dh-accent) 8%, transparent);
}

.dh-nav-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dh-ink);
}

.dh-nav-card-meta {
    font-size: 0.8125rem;
    color: var(--dh-ink-soft);
    line-height: 1.45;
}

/* ── Directory — the dense, one-click index of every destination ───────── */

.dh-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem 2rem;
    align-items: start;
}

.dh-dir-title {
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dh-line);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dh-ink-mute);
}

.dh-dir-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.dh-dir-link {
    display: block;
    padding: 0.3125rem 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--dh-ink);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: color 0.15s ease;
}

.dh-dir-link:hover {
    color: var(--dh-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Latest-updates columns ────────────────────────────────────────────── */

.dh-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.dh-recent-col {
    background: var(--dh-surface);
    border: 1px solid var(--dh-line);
    border-radius: 0.75rem;
    padding: 1.25rem 1.375rem;
}

.dh-recent-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--dh-line-soft);
}

.dh-recent-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dh-ink);
}

/* ── Flush row list (Variant="Flush" on the DirectTax* list components) ──
   The column IS the card. Rows are hairline-separated, no nested surfaces,
   no per-row buttons — the whole title is the target. */

.dh-list {
    display: flex;
    flex-direction: column;
}

.dh-item {
    padding: 0.875rem 0;
    border-top: 1px solid var(--dh-line-soft);
}

.dh-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.dh-item:last-child {
    padding-bottom: 0;
}

.dh-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--dh-ink-mute);
}

.dh-item-sep {
    color: #d4d4d8;
}

.dh-item-tag {
    font-weight: 600;
    color: var(--dh-accent-text);
}

.dh-item-title {
    display: block;
    margin: 0.25rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dh-ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.dh-item-title:hover {
    color: var(--dh-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dh-item-cit {
    margin: 0 0 0.25rem;
    font-family: var(--dh-serif, Georgia, serif);
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--dh-ink-mute);
}

.dh-item-note {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--dh-ink-soft);
}

.dh-empty {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: var(--dh-ink-mute);
}

/* ============================================================================
   Editorial layer — the "daily edition" treatment for domain front pages.
   Opt-in per page via `.dh--news` on the wrapper (alongside `.dh--<domain>`),
   so homes that haven't adopted the newspaper layout are unaffected.

   Voice: Newsreader (news serif) carries story headlines; Metropolis stays on
   every control, label and dateline. The signature element is the lead
   headnote — the latest landmark judgment set like a law-report entry.
   ========================================================================= */

@font-face {
    font-family: "Newsreader";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/newsreader-var-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Newsreader";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/newsreader-var-italic-latin.woff2") format("woff2");
}

.dh {
    --dh-serif: "Newsreader", Georgia, "Times New Roman", serif;
    /* Verdict signals — shared across domains, deliberately NOT the accent:
       green = held for assessee/taxpayer, red = held for revenue. */
    --dh-held-pro: #047857;
    --dh-held-pro-bg: #ecfdf5;
    --dh-held-con: #b91c1c;
    --dh-held-con-bg: #fef2f2;
}

/* ── Masthead dateline (inside the hero, above the eyebrow) ────────────── */

.dh-mast {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    padding-bottom: 0.625rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--dh-line);
}

.dh-mast-brand {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dh-ink);
}

.dh-mast-brand em {
    font-style: normal;
    color: var(--dh-accent-text);
}

.dh-mast-link {
    color: inherit;
    text-decoration: none;
}

.dh-mast-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dh-mast-date {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dh-ink-mute);
    font-variant-numeric: tabular-nums;
}

/* ── Lead headnote — the signature ─────────────────────────────────────── */

.dh-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 860px) {
    .dh-lead-grid {
        grid-template-columns: 1fr;
    }
}

.dh-lead {
    border-top: 3px solid var(--dh-accent);
    padding-top: 1.25rem;
    animation: dh-lead-in 0.5s ease-out both;
}

@keyframes dh-lead-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.dh-lead-kicker {
    display: block;
    margin-bottom: 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dh-accent-text);
}

.dh-lead-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dh-ink-mute);
}

.dh-lead-title {
    display: block;
    margin: 0 0 0.625rem;
    font-family: var(--dh-serif);
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--dh-ink);
    text-decoration: none;
}

.dh-lead-title:hover {
    color: var(--dh-accent);
}

.dh-lead-cit {
    margin: 0 0 0.875rem;
    font-family: var(--dh-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--dh-ink-soft);
}

.dh-lead-note {
    margin: 0 0 1.125rem;
    font-family: var(--dh-serif);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--dh-ink-soft);
    max-width: 60ch;
}

.dh-lead-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dh-accent);
    text-decoration: none;
}

.dh-lead-cta:hover {
    color: var(--dh-accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Verdict tag — HELD · Assessee / Revenue */

.dh-held {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-held--pro {
    color: var(--dh-held-pro);
    background: var(--dh-held-pro-bg);
}

.dh-held--con {
    color: var(--dh-held-con);
    background: var(--dh-held-con-bg);
}

.dh-held--neutral {
    color: var(--dh-ink-mute);
    background: var(--dh-line-soft);
}

/* Top-stories rail beside the lead */

.dh-rail {
    border-top: 3px solid var(--dh-line);
    padding-top: 1.25rem;
}

.dh-rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.dh-rail-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dh-ink-mute);
}

/* ── Serif story titles on news pages ──────────────────────────────────── */

.dh--news .dh-item-title {
    font-family: var(--dh-serif);
    font-size: 1.0625rem;
    line-height: 1.35;
}

/* ── Articles band — "From the experts" ────────────────────────────────── */

.dh-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.dh-article-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.375rem 1.5rem;
    background: var(--dh-surface);
    border: 1px solid var(--dh-line);
    border-radius: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dh-article-card:hover {
    border-color: var(--dh-tint-300);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--dh-accent) 8%, transparent);
}

.dh-article-kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dh-accent-text);
}

.dh-article-title {
    display: block;
    font-family: var(--dh-serif);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dh-ink);
    text-decoration: none;
}

.dh-article-title:hover {
    color: var(--dh-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dh-article-meta {
    margin-top: auto;
    font-size: 0.8125rem;
    color: var(--dh-ink-mute);
}

.dh-article-meta strong {
    font-weight: 600;
    color: var(--dh-ink-soft);
}

/* ── Row cards — editorial treatment for the list pages' result cards ────
   Used inside the RadzenCard-based row components (DecisionCardComponent,
   StatuteCardComponent, ArticleCardComponent, DirectTaxDataCard, …). These
   resolve tokens from :root, so they work on any page without a .dh wrapper. */

.dh-rc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    color: var(--dh-ink-mute);
}

.dh-rc-tag {
    font-weight: 600;
    color: var(--dh-accent-text);
}

.dh-rc-sep {
    color: #d4d4d8;
}

.dh-rc-title {
    display: block;
    margin: 0 0 0.25rem;
    font-family: var(--dh-serif);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--dh-ink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.dh-rc-cit {
    margin: 0 0 0.5rem;
    font-family: var(--dh-serif);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--dh-ink-mute);
    word-break: break-word;
}

.dh-rc-note {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--dh-ink-soft);
}

/* ── a11y ──────────────────────────────────────────────────────────────── */

.dh-nav-card:focus-visible,
.dh-dir-link:focus-visible,
.dh-popular a:focus-visible,
.dh-see-all:focus-visible,
.dh-item-title:focus-visible,
.dh-lead-title:focus-visible,
.dh-lead-cta:focus-visible,
.dh-article-title:focus-visible,
.dh-searchbar button:focus-visible {
    outline: 2px solid var(--dh-accent);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

@media (max-width: 560px) {
    .dh-searchbar {
        flex-direction: column;
    }

    .dh-searchbar button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dh-nav-card,
    .dh-dir-link,
    .dh-item-title,
    .dh-article-card {
        transition: none;
    }

    .dh-nav-card:hover {
        transform: none;
    }

    .dh-lead {
        animation: none;
    }
}
