/* ==========================================================================
   Red Volcano blog theme
   Matches the redvolcano.io marketing site (Next.js / Tailwind build).
   Tokens below are lifted from that build so the two stay in step.
   ========================================================================== */

:root {
    --page:      #ffffff;
    --tint:      #f6f6f9;
    --edge:      #e5e7ee;
    --ink:       #101114;
    --ink-soft:  #4d5462;
    --ink-dim:   #868e9d;
    --flame:     #d92d2d;
    --flame-dark:#b8232b;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --shell:     1180px;
    --radius:    10px;
    --radius-lg: 14px;
    --shadow:    0 1px 2px rgba(16, 17, 20, 0.04), 0 8px 24px -12px rgba(16, 17, 20, 0.12);
    --shadow-lift: 0 2px 4px rgba(16, 17, 20, 0.05), 0 16px 36px -16px rgba(16, 17, 20, 0.18);

    /* main.js injects a mobile-menu rule that references this. */
    --black: var(--page);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    background-color: var(--page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--flame);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--flame-dark); }

:focus-visible {
    outline: 2px solid var(--flame);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--edge);
}

.header-top { background: none; border: 0; }

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

.logo { flex-shrink: 0; line-height: 0; }
.logo a { display: block; }
.logo-image { height: 28px; width: auto; display: block; }
.logo-text {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.header-actions { flex-shrink: 0; }

/* The desktop CTA lives in .header-actions; this one only appears in the
   mobile drawer, which main.js opens by toggling .nav-list. */
.nav-cta { display: none; }

.nav-caret {
    width: 0.875rem;
    height: 0.875rem;
    margin-left: 0.3rem;
    vertical-align: -0.15em;
}

.nav-list .dropdown > a { display: inline-flex; align-items: center; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > li { position: relative; }

.nav-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-soft);
    white-space: nowrap;
}

.nav-list a:hover {
    background-color: var(--tint);
    color: var(--ink);
}

.nav-list a.active,
.nav-list a.current-page { color: var(--ink); }

/* Dropdowns */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 0.375rem;
    background-color: var(--page);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 60;
}

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

.dropdown-menu a {
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    color: var(--ink-soft);
    white-space: normal;
}

.dropdown-menu a:hover {
    background-color: var(--tint);
    color: var(--ink);
}

/* Buttons */
.cta-button,
.nav-list a.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    background-color: var(--flame);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border: 1px solid transparent;
}

.cta-button:hover,
.nav-list a.cta-button:hover {
    background-color: var(--flame-dark);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: 0;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Article layout
   -------------------------------------------------------------------------- */

.main-content { display: block; }

.article-single,
.single-article,
.blog-content { padding: 3.5rem 0 5rem; }

.article-layout,
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4rem;
    align-items: start;
}

.article-main { min-width: 0; }

/* Article header */
.article-header { margin-bottom: 2.5rem; }

.latest-article-header {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--flame);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-dim);
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background-color: rgba(217, 45, 45, 0.08);
    color: var(--flame);
    font-weight: 500;
}

.article-title {
    font-size: clamp(1.875rem, 3.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.032em;
    color: var(--ink);
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

.article-title a { color: inherit; }
.article-title a:hover { color: var(--flame); }

.article-summary,
.article-subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 60ch;
    margin-bottom: 2rem;
}

.article-featured-image,
.article-image {
    margin: 0 0 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--edge);
    box-shadow: var(--shadow);
    background-color: var(--tint);
}

.article-featured-image img,
.article-image img,
.featured-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Article body */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 68ch;
}

.article-content > * + * { margin-top: 1.35rem; }

.article-content h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--edge);
}

.article-content > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-top: 2.25rem;
}

.article-content h2 + *,
.article-content h3 + *,
.article-content h4 + * { margin-top: 1rem; }

.article-content h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 1.75rem;
}

.article-content p { margin: 0; }

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

.article-content a {
    color: var(--flame);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(217, 45, 45, 0.35);
}
.article-content a:hover { text-decoration-color: currentColor; }

.article-content ul,
.article-content ol {
    margin: 0;
    padding-left: 1.35rem;
}

.article-content li { margin-bottom: 0.65rem; }
.article-content li:last-child { margin-bottom: 0; }
.article-content li::marker { color: var(--ink-dim); }

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--flame);
    border-radius: 0 var(--radius) var(--radius) 0;
    background-color: var(--tint);
    color: var(--ink);
    font-size: 1.0625rem;
}

.article-content blockquote p:last-child { margin-bottom: 0; }

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 0.15em 0.4em;
    border-radius: 5px;
    background-color: var(--tint);
    border: 1px solid var(--edge);
    color: var(--ink);
}

.article-content pre {
    margin: 2rem 0;
    padding: 1.25rem;
    overflow-x: auto;
    background-color: var(--tint);
    border: 1px solid var(--edge);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--ink);
}

.article-content pre code {
    padding: 0;
    border: 0;
    background: none;
    font-size: inherit;
}

.article-content img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--edge);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--edge);
    text-align: left;
}

.article-content th {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-dim);
    font-weight: 500;
}

.article-content hr {
    height: 0;
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid var(--edge);
}

/* Tags and sharing */
.article-tags h4,
.article-footer h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-dim);
    margin-bottom: 0.75rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tags-list a,
.categories-list a {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--edge);
    background-color: var(--page);
    color: var(--ink-soft);
    font-size: 0.8125rem;
}

.tags-list a:hover,
.categories-list a:hover {
    border-color: var(--ink-dim);
    background-color: var(--tint);
    color: var(--ink);
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--edge);
    color: var(--ink-soft);
}

.social-share a:hover,
.share-twitter:hover,
.share-linkedin:hover {
    border-color: var(--ink-dim);
    background-color: var(--tint);
    color: var(--ink);
}

/* Prev / next */
.article-footer {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--edge);
}

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

.article-navigation a,
.nav-prev,
.nav-next {
    display: block;
    padding: 1.125rem 1.25rem;
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    background-color: var(--page);
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.nav-next { text-align: right; }

.article-navigation a:hover,
.nav-prev:hover,
.nav-next:hover {
    border-color: var(--ink-dim);
    box-shadow: var(--shadow-lift);
    transform: translateY(-1px);
    color: var(--ink);
}

.nav-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-dim);
    margin-bottom: 0.4rem;
}

.nav-title { display: block; color: var(--ink); }
.nav-next:hover .nav-label { color: var(--flame); }
.nav-next:hover .nav-title { color: var(--ink); }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.article-sidebar,
.blog-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.sidebar-section {
    padding: 1.375rem;
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    background-color: var(--page);
    box-shadow: var(--shadow);
}

.sidebar-section h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-dim);
    margin-bottom: 1rem;
    padding: 0;
    border: 0;
}

.sidebar-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 1.125rem;
}

.recent-articles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-articles li {
    padding-bottom: 0.875rem;
    margin-bottom: 0.875rem;
    border-bottom: 1px solid var(--edge);
}

.recent-articles li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.recent-articles a {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.recent-articles a:hover { color: var(--flame); }

.recent-articles time {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-dim);
}

/* Demo card gets a little weight so it reads as the sidebar's one action. */
.sidebar-section .cta-button {
    display: flex;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Blog index / listings
   -------------------------------------------------------------------------- */

.blog-hero {
    padding: 4rem 0 2.5rem;
    border-bottom: 1px solid var(--edge);
    background-color: var(--page);
}

.blog-title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 60ch;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    background-color: var(--page);
    box-shadow: var(--shadow);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.article-card:hover {
    border-color: var(--ink-dim);
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.article-card .article-image { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.article-card .article-title { font-size: 1.25rem; max-width: none; margin-bottom: 0.75rem; }
.article-card .article-meta { margin-bottom: 0.75rem; }

.article-excerpt {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 1.125rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--flame);
}

.read-more:hover { color: var(--flame-dark); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--edge);
}

.pagination-info {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-dim);
}

.pagination-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    background-color: var(--page);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.pagination-next:hover {
    border-color: var(--ink-dim);
    background-color: var(--tint);
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Category, default and error templates
   -------------------------------------------------------------------------- */

.blog-main { min-width: 0; }

.category-article {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--edge);
}

.category-article:first-child { padding-top: 0; }
.category-article:last-child { border-bottom: 0; }

.category-article h2 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.category-article h2 a { color: var(--ink); }
.category-article h2 a:hover { color: var(--flame); }

.category-article .article-summary {
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.category-article .article-meta { margin-bottom: 0; }

.article-date {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-dim);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--edge);
    background-color: var(--page);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: none;
}

a.tag:hover {
    border-color: var(--ink-dim);
    background-color: var(--tint);
    color: var(--ink);
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.read-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background-color: var(--flame);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.read-more-button:hover { background-color: var(--flame-dark); color: #fff; }

.pagination-prev {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    background-color: var(--page);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.pagination-prev:hover {
    border-color: var(--ink-dim);
    background-color: var(--tint);
    color: var(--ink);
}

/* The error template renders outside .container. */
.lead {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.lead h1 {
    font-size: clamp(1.875rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--page);
    border-top: 1px solid var(--edge);
    padding: 4rem 0 0;
    color: var(--ink-soft);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
}

/* The four link columns join the parent grid rather than nesting inside it. */
.nav-links { display: contents; }

.footer-tagline {
    max-width: 20rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.footer-social-link {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-dim);
}

.footer-social-link:hover { color: var(--ink); }

.footer-logo { margin-bottom: 1.25rem; line-height: 0; }
.footer-logo-image { height: 28px; width: auto; }

.company-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.company-address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 22rem;
}

.footer-nav-column h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-dim);
    margin-bottom: 1rem;
}

.footer-nav-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-column li { margin-bottom: 0.625rem; }

.footer-nav-column a {
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.footer-nav-column a:hover { color: var(--ink); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding: 1.75rem 0 2.5rem;
    border-top: 1px solid var(--edge);
}

.social-links {
    display: flex;
    gap: 0.5rem;
    order: 2;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--edge);
    color: var(--ink-dim);
}

.social-links a:hover {
    border-color: var(--ink-dim);
    background-color: var(--tint);
    color: var(--ink);
}

.footer-legal { order: 1; }

.footer-legal p {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    color: var(--ink-dim);
}

.footer-legal p:last-child { margin-bottom: 0; }

.footer-legal a { color: var(--ink-dim); }
.footer-legal a:hover { color: var(--ink); }

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.legal-links a { color: var(--ink-dim); }
.legal-links a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .article-layout,
    .blog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .article-sidebar,
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .article-content { max-width: none; }
}

@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr 1fr; }
    .company-info { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .mobile-menu-toggle { display: flex; }
    .header-actions { display: none; }
    .main-nav { flex: 0 0 auto; }
    .nav-cta { display: block; }

    /* main.js appends its own <style> after this file, so these need the
       extra specificity to win. */
    .site-header .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.125rem;
        padding: 0.5rem 1.5rem 1rem;
        background-color: var(--page);
        border-bottom: 1px solid var(--edge);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 1000;
    }

    .site-header .nav-list.nav-open { display: flex; }

    /* main.js sizes the burger's X for the old 3px bars; these are 1.5px
       with a 5px gap, so the offsets have to be restated here. */
    .site-header .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .site-header .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }

    .site-header .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .site-header .nav-list a { padding: 0.625rem 0.75rem; }

    .site-header .nav-list a.cta-button {
        justify-content: center;
        margin-top: 0.375rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        margin: 0.125rem 0 0.25rem 0.75rem;
        padding: 0;
        border: 0;
        border-left: 1px solid var(--edge);
        border-radius: 0;
        box-shadow: none;
    }

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

@media (max-width: 720px) {
    .article-single,
    .single-article,
    .blog-content { padding: 2.5rem 0 3.5rem; }

    .article-title { max-width: none; }
    .article-navigation { grid-template-columns: minmax(0, 1fr); }
    .nav-next { text-align: left; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .social-links { order: 1; }
    .footer-legal { order: 2; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.125rem; }
    .footer-content { grid-template-columns: minmax(0, 1fr); }
    .sidebar-section { padding: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header, .site-footer, .article-sidebar, .article-navigation { display: none; }
    .article-content { max-width: none; }
}
