:root {
    --bg: #f4f7fa;
    --surface: #ffffff;
    --surface-2: #eef3f7;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #10233f;
    --primary-2: #1c3457;
    --accent: #0ea5e9;
    --accent-2: #0284c7;
    --border: #dbe4ee;
    --max-width: 1180px;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--accent-2);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.container {
    width: min(var(--max-width), calc(100% - 2.2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
}

.brand:hover { text-decoration: none; }

.brand-logo {
    height: 56px;
    width: auto;
    border-radius: 0;
}

.brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 0.8rem;
}

.brand-text {
    font-weight: 700;
    font-size: 1.02rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.93rem;
}

.main-nav .nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}

.main-nav .nav-cta:hover {
    text-decoration: none;
    background: var(--accent-2);
}

.social-nav {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.social-link {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hero {
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.lead {
    font-size: 1.02rem;
    color: var(--muted);
    max-width: 46rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.88rem 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.button {
    background: var(--primary);
    color: #fff;
}

.button:hover {
    background: var(--primary-2);
    text-decoration: none;
}

.button-secondary {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.button-secondary:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.page-section,
.content-wrap {
    padding: 4rem 0;
}

.section-surface {
    background: var(--surface-2);
}

.section-heading {
    margin-bottom: 1.75rem;
}

.section-heading-centered {
    text-align: center;
}

.section-heading h1,
.section-heading h2 {
    margin: 0 0 0.6rem;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 50rem;
}

.section-heading-centered p {
    margin-inline: auto;
}

.page-card,
.card-grid article,
.list-card,
.form-shell,
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-card {
    padding: 1.55rem;
}

.hero-side-card {
    max-width: 420px;
    justify-self: end;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.card-grid article {
    padding: 1.5rem;
}

.card-grid h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}

.card-grid p {
    margin: 0;
    color: var(--muted);
}

.homepage-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 0;
}

.feature-card-body {
    padding: 1.05rem 1.15rem 1.2rem;
}

.feature-card-body h3 {
    margin: 0 0 0.55rem;
    font-size: 1.18rem;
    color: var(--text);
}

.feature-card-body p {
    margin: 0;
    color: var(--muted);
}

.list-stack {
    display: grid;
    gap: 1rem;
}

.list-card {
    padding: 1.15rem 1.2rem;
}

.list-card h2,
.list-card h3 {
    margin: 0 0 0.45rem;
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.richtext,
.richtext p,
.richtext ul,
.richtext ol {
    max-width: 78ch;
}

.richtext h2,
.richtext h3,
.richtext h4 {
    letter-spacing: -0.02em;
    margin-top: 1.8rem;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    background: #f0f9ff;
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
}

figure {
    margin: 1.75rem 0;
}

figcaption {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.6rem;
}

details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.95rem 1rem;
    margin-bottom: 0.75rem;
}

summary {
    cursor: pointer;
    font-weight: 600;
}

.form-shell {
    max-width: 44rem;
    padding: 1.5rem;
}

.form-shell label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-shell input,
.form-shell textarea,
.form-shell select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font: inherit;
    background: #fff;
    margin-bottom: 1rem;
}

.form-shell button {
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.site-footer {
    margin-top: 3rem;
    padding: 1.6rem 0 1.35rem;
    background: var(--primary);
    color: #dbe4ee;
    font-size: 0.96rem;
}

.site-footer h4 {
    color: #f8fbff;
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-grid-four {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.15fr;
    gap: 1.75rem;
    align-items: start;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li {
    margin-top: 0.32rem;
}

.footer-links-compact {
    margin-bottom: 0.8rem;
}

.footer-contact-compact p {
    margin: 0 0 0.32rem;
    line-height: 1.38;
    color: #d7e1ec;
}

.site-footer a {
    color: #dfe8f2;
    font-size: 0.94rem;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .footer-grid-four {
        grid-template-columns: 1fr 1fr;
        gap: 1.3rem 1.8rem;
    }
}

@media (max-width: 700px) {
    .site-footer {
        padding: 1.4rem 0 1.2rem;
    }

    .footer-grid-four {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.portal-hero {
    background: linear-gradient(180deg, #ffffff, #f4f7fa);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

@media (max-width: 1100px) {
    .hero-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-side-card {
        justify-self: start;
        max-width: none;
    }
}



@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .site-header {
        background: rgba(17, 24, 39, 0.92);
    }

    :root:not([data-theme="light"]) .social-link,
    :root:not([data-theme="light"]) .button-secondary,
    :root:not([data-theme="light"]) .theme-toggle {
        background: var(--surface);
    }

    :root:not([data-theme="light"]) a {
        color: #93c5fd;
    }

    :root:not([data-theme="light"]) a:hover,
    :root:not([data-theme="light"]) a:focus-visible {
        color: #bfdbfe;
    }

    :root:not([data-theme="light"]) .page-card,
    :root:not([data-theme="light"]) .feature-card,
    :root:not([data-theme="light"]) .list-card,
    :root:not([data-theme="light"]) .tool-card,
    :root:not([data-theme="light"]) .contact-card,
    :root:not([data-theme="light"]) .form-shell {
        color: var(--text);
    }

    :root:not([data-theme="light"]) input,
    :root:not([data-theme="light"]) textarea,
    :root:not([data-theme="light"]) select {
        background: var(--surface);
        color: var(--text);
        border-color: var(--border);
    }

    :root:not([data-theme="light"]) input::placeholder,
    :root:not([data-theme="light"]) textarea::placeholder {
        color: var(--muted);
    }

    :root:not([data-theme="light"]) .dropdown-menu,
    :root:not([data-theme="light"]) .dropdown-menu-level-2 {
        background: var(--surface);
        border-color: var(--border);
    }

    :root:not([data-theme="light"]) .brand,
    :root:not([data-theme="light"]) .main-nav a,
    :root:not([data-theme="light"]) .social-link {
        color: var(--text);
    }

    :root:not([data-theme="light"]) .site-footer {
        background: #0f172a;
        border-top: 1px solid var(--border);
    }

    :root:not([data-theme="light"]) .site-footer h2,
    :root:not([data-theme="light"]) .site-footer h3,
    :root:not([data-theme="light"]) .site-footer h4,
    :root:not([data-theme="light"]) .site-footer strong,
    :root:not([data-theme="light"]) .footer-heading {
        color: #f8fafc;
    }

    :root:not([data-theme="light"]) .site-footer p,
    :root:not([data-theme="light"]) .site-footer li,
    :root:not([data-theme="light"]) .site-footer span,
    :root:not([data-theme="light"]) .site-footer address,
    :root:not([data-theme="light"]) .site-footer .muted,
    :root:not([data-theme="light"]) .site-footer .footer-copy {
        color: #cbd5e1;
    }

    :root:not([data-theme="light"]) .site-footer a,
    :root:not([data-theme="light"]) .footer-links a,
    :root:not([data-theme="light"]) .footer-contact a {
        color: #e2e8f0;
    }

    :root:not([data-theme="light"]) .site-footer a:hover,
    :root:not([data-theme="light"]) .site-footer a:focus-visible,
    :root:not([data-theme="light"]) .footer-links a:hover,
    :root:not([data-theme="light"]) .footer-contact a:hover {
        color: #7dd3fc;
    }

    :root:not([data-theme="light"]) .section-heading p,
    :root:not([data-theme="light"]) .lead,
    :root:not([data-theme="light"]) .tool-summary,
    :root:not([data-theme="light"]) .feature-card-body p,
    :root:not([data-theme="light"]) .list-card p,
    :root:not([data-theme="light"]) .page-card p {
        color: var(--muted);
    }
}

@media (max-width: 960px) {
    .homepage-feature-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        align-items: flex-start;
        padding: 1rem 0;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        gap: 0.8rem;
    }
}

.container-narrow {
    width: min(900px, calc(100% - 2rem));
    margin-inline: auto;
}

.page-card-readable {
    padding: 2.25rem;
}

.nav-item {
    position: relative;
}

.nav-dropdown > a::after {
    content: "▾";
    font-size: 0.72rem;
    margin-left: 0.35rem;
    vertical-align: middle;
    color: var(--muted);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    min-width: 240px;
    background: #142033;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
    padding: 0.45rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.18s ease;
    z-index: 50;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-entry {
    position: relative;
}

.dropdown-entry > a {
    display: block;
    padding: 0.8rem 1rem;
    color: #e5edf7;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-entry > a:hover {
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.dropdown-entry.has-submenu > a::after {
    content: "›";
    float: right;
    color: #93a4bb;
}

.dropdown-menu-level-2 {
    position: absolute;
    top: 0;
    left: calc(100% + 0.35rem);
    min-width: 240px;
    background: #142033;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
    padding: 0.45rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.18s ease;
    z-index: 60;
}

.dropdown-menu-level-2 a {
    display: block;
    padding: 0.8rem 1rem;
    color: #e5edf7;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu-level-2 a:hover {
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.dropdown-entry.has-submenu:hover > .dropdown-menu-level-2,
.dropdown-entry.has-submenu:focus-within > .dropdown-menu-level-2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.feature-subnav {
    margin: 1rem 0 0;
    padding-left: 1rem;
}

.feature-subnav li + li {
    margin-top: 0.35rem;
}

.feature-subnav a {
    color: var(--accent-2);
    font-size: 0.95rem;
}

.feature-card-body p {
    margin-bottom: 0.8rem;
}

.page-hero-image {
    padding: 2rem 0 0;
}

.page-hero-image-wrap {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.page-hero-image-img {
    width: 100%;
    height: auto;
    display: block;
}
.post-excerpt {
    color: var(--muted);
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.contact-body-block {
    margin-bottom: 2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.35fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info-card {
    padding: 1.5rem;
}

.contact-info-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-info-card p {
    margin-bottom: 1rem;
}

.contact-note {
    color: var(--muted);
}

.contact-form-card {
    max-width: none;
}

@media (max-width: 960px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.homepage-feature-grid {
    margin-top: 0.5rem;
}

.hero-side-card p:last-child {
    margin-bottom: 0;
}

.form-privacy-note {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0.5rem 0 1rem;
}

.service-sections {
    display: grid;
    gap: 2rem;
}

.service-overview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.service-overview-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem;
}

.service-overview-copy h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.service-overview-intro {
    color: var(--muted);
    margin-bottom: 1rem;
}

.service-overview-links {
    margin: 0 0 1.2rem;
    padding-left: 1rem;
}

.service-overview-links li + li {
    margin-top: 0.4rem;
}

.service-overview-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.service-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .service-overview-grid {
        grid-template-columns: 1fr;
    }
}

.service-top-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.service-top-grid {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
}

.service-top-copy h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-top-copy .lead {
    margin-bottom: 1.25rem;
}

.service-top-actions {
    margin: 0;
}

.service-top-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

@media (max-width: 900px) {
    .service-top-grid {
        grid-template-columns: 1fr;
    }
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tool-card-body {
    padding: 1.4rem;
}

.tool-card-body h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.35rem;
}

.tool-summary {
    color: var(--muted);
    margin-bottom: 1rem;
}

.tool-actions {
    margin: 0;
}

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}


/* Theme switcher */
.theme-switcher {
    display: inline-flex;
    align-items: center;
}

.theme-toggle {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    flex: 0 0 36px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent);
    outline: none;
    text-decoration: none;
}

.theme-icon {
    display: none;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
}

.theme-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle[data-theme-mode="auto"] .theme-icon-auto,
.theme-toggle[data-theme-mode="light"] .theme-icon-light,
.theme-toggle[data-theme-mode="dark"] .theme-icon-dark {
    display: inline-flex;
}
[data-theme="dark"] {
    --bg: #0b1220;
    --surface: #111827;
    --surface-2: #1e293b;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #dbeafe;
    --primary-2: #bfdbfe;
    --accent: #38bdf8;
    --accent-2: #7dd3fc;
    --border: #334155;
    --shadow: 0 18px 42px rgba(2, 6, 23, 0.45);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1220;
        --surface: #111827;
        --surface-2: #1e293b;
        --text: #e5e7eb;
        --muted: #94a3b8;
        --primary: #dbeafe;
        --primary-2: #bfdbfe;
        --accent: #38bdf8;
        --accent-2: #7dd3fc;
        --border: #334155;
        --shadow: 0 18px 42px rgba(2, 6, 23, 0.45);
    }
}

[data-theme="dark"] .site-header {
    background: rgba(17, 24, 39, 0.92);
}

[data-theme="dark"] .social-link,
[data-theme="dark"] .button-secondary,
[data-theme="dark"] .theme-toggle {
    background: var(--surface);
}

[data-theme="dark"] a {
    color: #93c5fd;
}

[data-theme="dark"] a:hover,
[data-theme="dark"] a:focus-visible {
    color: #bfdbfe;
}

[data-theme="dark"] .page-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .list-card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .form-shell {
    color: var(--text);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--muted);
}

[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .dropdown-menu-level-2 {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .brand,
[data-theme="dark"] .main-nav a,
[data-theme="dark"] .social-link {
    color: var(--text);
}

[data-theme="dark"] .site-footer {
    background: #0f172a;
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .site-footer h2,
[data-theme="dark"] .site-footer h3,
[data-theme="dark"] .site-footer h4,
[data-theme="dark"] .site-footer strong,
[data-theme="dark"] .footer-heading {
    color: #f8fafc;
}

[data-theme="dark"] .site-footer p,
[data-theme="dark"] .site-footer li,
[data-theme="dark"] .site-footer span,
[data-theme="dark"] .site-footer address,
[data-theme="dark"] .site-footer .muted,
[data-theme="dark"] .site-footer .footer-copy {
    color: #cbd5e1;
}

[data-theme="dark"] .site-footer a,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-contact a {
    color: #e2e8f0;
}

[data-theme="dark"] .site-footer a:hover,
[data-theme="dark"] .site-footer a:focus-visible,
[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-contact a:hover {
    color: #7dd3fc;
}

[data-theme="dark"] .section-heading p,
[data-theme="dark"] .lead,
[data-theme="dark"] .tool-summary,
[data-theme="dark"] .feature-card-body p,
[data-theme="dark"] .list-card p,
[data-theme="dark"] .page-card p {
    color: var(--muted);
}

@media (max-width: 960px) {
    .header-inner {
        min-height: 0;
        padding: 0.9rem 0;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
        gap: 0.8rem;
    }

    .main-nav {
        gap: 0.7rem;
    }

    .theme-switcher {
        margin-top: 0.15rem;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
        line-height: 1.55;
    }

    .container {
        width: min(var(--max-width), calc(100% - 1.25rem));
    }

    .brand-logo {
        height: 46px;
    }

    .brand-mark {
        width: 2rem;
        height: 2rem;
    }

    .brand-text {
        font-size: 0.96rem;
    }

    .main-nav {
        width: 100%;
        gap: 0.45rem 0.75rem;
    }

    .main-nav a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 0 1.6rem;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 7vw, 2.45rem);
        line-height: 1.1;
    }

    .lead {
        font-size: 0.98rem;
    }

    .page-card,
    .card-grid article,
    .feature-card-body,
    .list-card,
    .form-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .homepage-feature-grid,
    .card-grid,
    .hero-inner,
    .footer-grid,
    .footer-grid-four {
        grid-template-columns: 1fr;
    }

    .feature-card-image img {
        height: 180px;
    }

    .theme-switcher {
        width: auto;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }
}

.speaking-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.speaking-list-item {
    padding: 0.55rem 0;
    border-top: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaking-date,
.speaking-event,
.speaking-title,
.speaking-location,
.speaking-online,
.speaking-sep {
    display: inline;
}

.speaking-title {
    font-weight: 600;
}

@media (max-width: 768px) {
    .speaking-list-item {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.5;
    }
}