/* ==========================================================================
   SISGAIN PR / Newsroom Single Post Stylesheet (External)
   File: /css/pr-single.css
   ========================================================================== */

:root {
    --ink: #0E1A2B;
    --ink-soft: #33415A;
    --muted: #5A667A;
    --paper: #F4F6F9;
    --white: #FFFFFF;
    --line: #DCE2EA;
    --signal: #1848D8;
    --signal-strong: #123AAE;
    --signal-soft: #E8EEFD;
    --success: #0F7B5F;
    --success-soft: #E3F4EE;
    --warning: #8A5A00;
    --warning-soft: #FFF3D6;
    --error: #B42318;
    --error-soft: #FDECEA;

    --ff-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ff-read: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --s1: .5rem;
    --s2: 1rem;
    --s3: 1.5rem;
    --s4: 2rem;
    --s5: 3rem;
    --s6: 4rem;
    --s7: 6rem;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --shadow-1: 0 1px 2px rgba(14, 26, 43, .06), 0 4px 14px rgba(14, 26, 43, .05);
    --shadow-2: 0 10px 40px rgba(14, 26, 43, .16);
    --wrap: 1180px;
    --read: 46rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body.pr-post-body {
    font-family: var(--ff-ui);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

main.pr-main img {
    width: 100%;
    height: auto;
    display: block;
}

main.pr-main a {
    color: var(--signal);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

main.pr-main a:hover {
    color: var(--signal);
}

main.pr-main :focus-visible,
.pr-modal-card :focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 2px;
    border-radius: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

main.pr-main .wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--s3);
}

/* Universal SVG Icon Sizing & Sizing */
.icon,
.share-dock .icon,
main.pr-main .icon,
.pr-modal-card .icon {
    width: 1.15em;
    height: 1.15em;
    display: block;
    flex: none;
    pointer-events: none;
}

/* Reading Progress Bar */
.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease-out;
}

/* Buttons */
main.pr-main .btn,
.pr-modal-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: 600 .9375rem/1 var(--ff-ui);
    padding: .9rem 1.25rem;
    min-height: 44px;
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

main.pr-main .btn-primary,
.pr-modal-card .btn-primary {
    background: var(--signal);
    color: #fff;
}

main.pr-main .btn-primary:hover,
.pr-modal-card .btn-primary:hover {
    background: var(--signal-strong);
    color: #fff;
}

main.pr-main .btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

main.pr-main .btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

main.pr-main .btn-light {
    background: #fff;
    color: var(--ink);
}

main.pr-main .btn-light:hover {
    background: var(--signal-soft);
    color: var(--ink);
}

main.pr-main .btn:active,
.pr-modal-card .btn:active {
    transform: translateY(1px);
}

/* Article Header */
.article-head {
    padding-block: 8rem 2rem;
    max-width: 100%;
}

.article-head h1,
.article-head .deck,
.article-head .tagline {
    max-width: 56rem;
}

.tagline {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-bottom: var(--s2);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
}

.chip-cat {
    background: var(--signal-soft);
    color: var(--signal-strong);
}

.chip-cat:hover {
    background: #D9E4FC;
    color: var(--signal-strong);
}

.chip-src {
    background: var(--paper);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.article-head h1 {
    font-family: var(--ff-read);
    font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 var(--s2);
    text-wrap: balance;
    color: var(--ink);
}

.deck {
    font-family: var(--ff-read);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0 0 var(--s3);
    max-width: 48rem;
}

/* Meta Bar & Byline */
.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2) var(--s3);
    padding: var(--s2) var(--s3);
    margin: 0 0 var(--s3);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    justify-content: space-between;
}

.byline {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: .95rem;
    flex: none;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.byline-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.byline-top {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.byline a {
    color: var(--signal-strong);
    font-weight: 600;
    text-decoration: none;
    font-size: .9375rem;
}

.byline a:hover {
    text-decoration: underline;
}

.read-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--signal-soft);
    color: var(--signal-strong);
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.read-badge .icon {
    width: 0.9rem;
    height: 0.9rem;
}

.byline .updated {
    font-size: .8125rem;
    color: var(--muted);
}

.meta-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .8125rem;
    color: var(--muted);
    /* margin-left: auto; */
}

.meta-crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.meta-crumbs a:hover {
    color: var(--signal);
}

.meta-crumbs span[aria-current] {
    color: var(--signal-strong);
    font-weight: 600;
}

.meta-crumbs .sep {
    color: var(--line);
    user-select: none;
}

.meta .tools {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: none;
}

.meta .share-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--muted);
    margin-right: .25rem;
    text-transform: uppercase;
}

/* Round Icon Buttons (Shared for Header & Dock) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.icon-btn:hover {
    border-color: var(--signal);
    color: #fff !important;
    background: var(--signal);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 72, 216, 0.25);
}

/* Featured Hero Image Frame */
.hero-figure {
    margin: 0 0 var(--s5);
}

.hero-figure .frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink);
    /* aspect-ratio: 16 / 9; */
    position: relative;
    box-shadow: var(--shadow-1);
}

.hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pr-dynamic-content img,
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    margin: 1.5em 0;
    display: block;
}

.hero-figure figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem var(--s3);
    margin-top: .75rem;
    font-size: .8125rem;
    color: var(--muted);
}

/* Layout Grid (Main Article + Sticky Rail) */
.layout {
    display: grid;
    grid-template-columns: minmax(0, var(--read)) 20rem;
    gap: var(--s6);
    justify-content: space-between;
    align-items: start;
}

.rail {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

/* Prose Typography & Content Styling */
.prose {
    font-family: var(--ff-read);
    font-size: 1.15rem;
    line-height: 1.78;
    color: #1B2638;
}

.prose p {
    margin: 0 0 1.3em;
}

.prose .dateline {
    font-weight: 700;
    color: var(--ink);
}

.prose h2 {
    font-family: var(--ff-ui);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 2.2em 0 .6em;
    color: var(--ink);
    scroll-margin-top: 100px;
}

.prose h3 {
    font-family: var(--ff-ui);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.6em 0 .4em;
    color: var(--ink);
    scroll-margin-top: 100px;
}

.prose ul,
.prose ol {
    padding-left: 1.35rem;
    margin: 0 0 1.3em;
}

.prose li {
    margin-bottom: .5em;
    padding-left: .25rem;
}

.prose li::marker {
    color: var(--signal);
}

.prose a {
    font-weight: 500;
}

/* Key Facts Signature Card */
.facts {
    margin: var(--s4) 0 var(--s5);
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--signal);
    border-radius: var(--r-md);
    padding: var(--s3);
}

.facts h2 {
    font-family: var(--ff-ui);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 var(--s2);
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink);
}

.facts dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s2) var(--s4);
    font-family: var(--ff-ui);
}

.facts dt {
    font-size: .8125rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.facts dd {
    margin: .15rem 0 0;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
}

.facts .wide {
    grid-column: 1 / -1;
}

/* FAQs Accordions */
.pr-faqs details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: all .2s ease;
}

.pr-faqs details:hover {
    border-color: #B8C4D6;
}

.pr-faqs details[open] {
    border-color: var(--signal);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.pr-faqs summary {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    outline: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pr-faqs summary::-webkit-details-marker {
    display: none;
}

.pr-faqs summary::after {
    content: "\f067";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    color: var(--signal);
    margin-left: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.pr-faqs details[open] summary::after {
    content: "\f068";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--signal);
}

.pr-faqs details p {
    margin: 12px 0 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* About & Media Contact */
.about {
    margin-top: var(--s5);
    padding-top: var(--s3);
    border-top: 1px solid var(--line);
}

.about h2 {
    margin-top: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700;
}

.about p {
    font-size: 1rem;
    line-height: 1.65;
}

.about .note {
    font-family: var(--ff-ui);
    font-size: .8125rem;
    color: var(--muted);
}

.contact-card {
    margin-top: var(--s3);
    padding: var(--s3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-family: var(--ff-ui);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s2) var(--s4);
    background: #fff;
}

.contact-card h3 {
    grid-column: 1 / -1;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--ink);
}

.contact-card .row {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .9375rem;
    line-height: 1.4;
}

.contact-card .row .icon {
    margin-top: .2rem;
    color: var(--muted);
}

.contact-card small {
    display: block;
    color: var(--muted);
    font-size: .8125rem;
}

.contact-card a {
    font-weight: 500;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--line);
}

.contact-card a:hover {
    color: var(--signal);
    text-decoration-color: currentColor;
}

/* Topics Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: var(--s2) 0 0;
    padding: 0;
    list-style: none;
}

.tags a {
    display: inline-block;
    padding: .4rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .875rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: all 0.18s ease;
    background: #fff;
}

.tags a:hover {
    border-color: var(--signal);
    color: var(--signal);
    background: var(--signal-soft);
}

.tags-label {
    font-size: .875rem;
    color: var(--muted);
    margin-top: var(--s4);
    margin-bottom: 0;
    font-weight: 600;
}

/* Rail Sidebar Cards */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s3);
}

.card-title {
    font-weight: 700;
    font-size: .9375rem;
    margin: 0 0 var(--s2);
    color: var(--ink);
}

/* Table of Contents */
.card.toc {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s3);
    overflow: visible;
}

.card.toc .card-title {
    font-weight: 700;
    font-size: .9375rem;
    margin: 0 0 var(--s2);
    color: var(--ink);
}

.toc ol {
    list-style: none;
    margin: 0;
    padding: 0 6px 0 0;
    border-left: 2px solid var(--line);
    max-height: min(300px, calc(100vh - 380px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.toc ol::-webkit-scrollbar {
    width: 4px;
}

.toc ol::-webkit-scrollbar-track {
    background: transparent;
}

.toc ol::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.toc ol::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.toc a {
    display: block;
    padding: .45rem 0 .45rem var(--s2);
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: .9rem;
    color: var(--ink-soft);
    text-decoration: none;
    line-height: 1.35;
    transition: color .18s, border-color .18s;
    word-break: break-word;
}

.toc a:hover {
    color: var(--ink);
}

.toc a.active {
    color: var(--signal-strong);
    font-weight: 600;
    border-left-color: var(--signal);
}

/* Sticky Consultation CTA in Rail */
.rail-cta {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.rail-cta .card-title {
    color: #fff;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.rail-cta p {
    margin: 0 0 var(--s2);
    font-size: .9rem;
    color: #C9D3E3;
}

.rail-cta .btn {
    width: 100%;
}

/* Author Box */
.author-box {
    display: flex;
    gap: var(--s3);
    padding: var(--s3);
    background: var(--paper);
    border-radius: var(--r-lg);
    margin-bottom: var(--s5);
    align-items: flex-start;
}

.author-box .avatar {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.author-box h2 {
    font-size: 1.125rem;
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.author-box .role {
    color: var(--muted);
    font-size: .9rem;
    margin: .1rem 0 .6rem;
}

.author-box p {
    margin: 0 0 .75rem;
    font-size: .9375rem;
    color: var(--ink-soft);
    max-width: 44rem;
}

.author-box .links {
    display: flex;
    gap: var(--s3);
    flex-wrap: wrap;
    font-size: .9rem;
    font-weight: 600;
}

/* Related Press Releases Grid */
.related {
    padding-block: var(--s6);
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s2);
    margin-bottom: var(--s3);
}

.section-head h2 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -.01em;
    color: var(--ink);
    font-weight: 700;
}

.section-head a {
    font-weight: 600;
    font-size: .9375rem;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
}

.pr-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .18s, box-shadow .18s;
}

.pr-card:hover {
    border-color: var(--ink-soft);
    box-shadow: var(--shadow-1);
}

.pr-card .thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--ink);
    overflow: hidden;
}

.pr-card .thumb img {
    width: 100%;
    height: auto;
    /* object-fit: cover; */
    transition: transform 0.4s ease;
}

.pr-card:hover .thumb img {
    transform: scale(1.05);
}

.pr-card .body {
    padding: var(--s3);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.pr-card .kicker {
    font-size: .75rem;
    color: var(--signal-strong);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pr-card h3 {
    margin: 0;
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
}

.pr-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.pr-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.pr-card h3 a:hover {
    color: var(--signal-strong);
}

.pr-card time {
    margin-top: auto;
    font-size: .8125rem;
    color: var(--muted);
    padding-top: .25rem;
}

/* Floating Share Dock (Desktop Only) */
.share-dock {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 990;
    transform: translate(110%, -50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, visibility .3s ease;
    will-change: transform, opacity;
}

.share-dock.is-visible {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.share-dock-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: .65rem .45rem;
    background: #fff;
    border: 1.5px solid var(--line);
    border-right: 0;
    border-radius: var(--r-lg) 0 0 var(--r-lg);
    box-shadow: var(--shadow-2);
}

.share-dock .share-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--muted);
    text-transform: uppercase;
    margin: 0 0 .2rem;
    line-height: 1;
}

.share-dock .icon-btn {
    width: 38px;
    height: 38px;
}

/* Consultation Modal Popup */
.pr-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 26, 43, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: prModalFadeIn 0.2s ease-out;
}

.pr-modal-card {
    background: #fff;
    border-radius: var(--r-lg);
    max-width: 520px;
    width: 100%;
    padding: var(--s4);
    box-shadow: var(--shadow-2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.pr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.pr-modal-close:hover {
    color: var(--ink);
}

.pr-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    font-family: var(--ff-ui);
    font-size: 0.95rem;
    transition: border-color 0.18s;
}

.pr-input:focus {
    outline: none;
    border-color: var(--signal);
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: var(--s3);
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: #fff;
    padding: .7rem 1.1rem;
    border-radius: var(--r-md);
    font-size: .9rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 999999;
    box-shadow: var(--shadow-2);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes prModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Responsive Breakpoints: Desktop, Tablet, Mobile
   ========================================================================== */

/* Tablet & Smaller (< 1040px) */
@media (max-width: 1040px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--s5);
    }

    .rail {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    /* Remove TOC on mobile and tablet as requested */
    .toc {
        display: none !important;
    }

    .pr-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile & Small Tablet (< 768px) */
@media (max-width: 768px) {
    .article-head {
        padding-block: 5.5rem 1.5rem;
    }

    /* Remove TOC on mobile view */
    .toc {
        display: none !important;
    }

    /* Hide floating share dock on mobile to prevent covering text */
    .share-dock {
        display: none !important;
    }

    .meta {
        border-radius: var(--r-md);
        padding: .85rem 1rem;
    }

    .meta-crumbs {
        width: 100%;
        margin-left: 0;
        margin-top: .5rem;
    }

    .meta .tools {
        width: 100%;
        justify-content: flex-start;
        margin-top: .5rem;
        padding-top: .5rem;
        border-top: 1px solid var(--line);
    }
}

/* Small Mobile (< 640px) */
@media (max-width: 640px) {
    .prose {
        font-size: 1.075rem;
        line-height: 1.7;
    }

    .facts dl,
    .contact-card,
    .stats {
        grid-template-columns: 1fr;
    }

    .rail,
    .pr-grid {
        grid-template-columns: 1fr;
    }

    /* .hero-figure .frame {
        aspect-ratio: 16 / 10;
    } */

    .author-box {
        flex-direction: column;
    }

    .toc {
        display: none !important;
    }

    .share-dock {
        display: none !important;
    }
}