/* Spinland Casino — site.css */
:root {
	--round-circle: 50%;
    --primary-x: #0f1e24;
    --highlight: #eb1742;
    --accent-pressed: #cb122c;
    --bg: #f9f9f9;
    --surface-raised: #ffffff;
    --ink: #1f2937;
    --text-muted: #374151;
    --grad-light: #f58e9e;
    --banner-bg: #dc2626;

    --font-title: 'Open Sans', system-ui, -apple-system, sans-serif;
    --font-sans: 'Open Sans', system-ui, -apple-system, sans-serif;

    --size-h1: 80px; --type-h2: 48px; --size-h3: 30px; --text-h4: 22px;
    --text-h5: 16px; --type-h6: 13px; --text-base: 15px; --size-sm: 13px; --type-micro: 11px;
    --line-tight: 1.05; --line-normal: 1.55; --line-loose: 1.7;
    --letter-tight: -0.02em; --ls-normal-x: 0; --tracking-wide: 0.08em;
    --font-normal: 400; --weight-medium: 700; --weight-bold: 800;

    --gutter-2xs: 2px; --gap-xs: 6px; --spacing-sm: 10px; --gap-md: 16px;
    --gap-lg: 48px; --gutter-xl: 80px; --gutter-2xl: 128px; --gap-3xl: 200px;

    --rounded-xs: 2px; --round-sm: 6px; --round-md: 10px; --rounded-lg: 16px; --corner-pill: 9999px;
    --elevation-1: 0 1px 3px rgba(0,0,0,0.05);
    --shade-md: 0 4px 12px rgba(0,0,0,0.09);
    --depth-lg: 0 8px 24px rgba(0,0,0,0.13);

    --transition-fast: 150ms; --speed-base: 200ms; --transition-slow: 300ms;
    --timing: cubic-bezier(0.22,0.61,0.36,1.0);

    --max-width: 1340px;
    --text-width: 720px;
    --sidebar-width-x: 220px;
    --topbar-height: 64px;
}

/* Mobile type overrides */
@media (max-width: 720px) {
    :root {
        --size-h1: 44px; --type-h2: 32px; --size-h3: 24px; --text-h4: 18px;
        --text-h5: 14px; --type-h6: 12px; --text-base: 14px; --size-sm: 12px; --type-micro: 10px;
    }
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--line-normal);
    color: var(--ink);
    background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--highlight); text-decoration: none; }
a:hover { color: var(--accent-pressed); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--gap-md); }
p { margin: 0 0 var(--gap-md); }
ul, ol { margin: 0 0 var(--gap-md); padding-left: 1.4em; }

/* a11y */
.skip-link {
    position: absolute; left: var(--gap-md); top: -200px;
    background: var(--highlight); color: #fff; padding: var(--spacing-sm) var(--gap-md);
    border-radius: var(--round-md); z-index: 200;
}
.skip-link:focus { top: var(--gap-md); }
.skip-link:not(:focus) { top: -200px !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Shared section inner — single width for all sections */
.pier-inner, .gallery-inner, .reel-inner, .grove-inner, .pergola-inner, .portal-inner,
.cartouche-inner, .buttress-inner, .threshold-inner, .plinth-inner, .cresset-inner,
.cresset-articles, .transom-inner, .mosaic-inner, .glyph-inner, .filigree-inner, .media-inner {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gap-md);
}
@media (min-width: 1000px) {
    .pier-inner, .gallery-inner, .reel-inner, .grove-inner, .pergola-inner, .portal-inner,
    .cartouche-inner, .buttress-inner, .threshold-inner, .plinth-inner, .cresset-inner,
    .cresset-articles, .transom-inner, .mosaic-inner, .glyph-inner, .filigree-inner, .media-inner {
        padding-inline: var(--gap-lg);
    }
}

/* ============ HEADER — HEAD-07 sidebar / STICKY-03 ============ */
.trefoil {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid rgba(15,30,36,0.08);
    transition: background var(--speed-base) var(--timing), backdrop-filter var(--speed-base) var(--timing);
}
.trefoil.is-blurred {
    background: rgba(249,249,249,0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.trefoil-inner {
    display: flex; align-items: center; gap: var(--gap-md);
    max-width: 1440px; margin-inline: auto;
    padding: var(--spacing-sm) var(--gap-md);
    min-height: var(--topbar-height);
}
.trefoil-logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.trefoil-logo-img { height: 88px; width: auto; max-width: none; }
.trefoil-nav { margin-left: auto; }
.trefoil-nav-list {
    display: flex; flex-wrap: nowrap; align-items: center; gap: var(--gap-xs);
    list-style: none; margin: 0; padding: 0;
}
.trefoil-link {
    display: inline-flex; align-items: center; gap: var(--gutter-2xs);
    padding: var(--gap-xs) var(--spacing-sm);
    font-family: var(--font-sans); font-size: var(--size-sm); font-weight: var(--weight-medium);
    color: var(--ink); border-radius: var(--corner-pill);
    background: transparent; border: 0; cursor: pointer; white-space: nowrap;
    transition: background var(--transition-fast) var(--timing), color var(--transition-fast) var(--timing);
}
.trefoil-link:hover { background: rgba(15,30,36,0.06); color: var(--highlight); }
.trefoil-link[aria-current="page"] { background: var(--highlight); color: #fff; }
.trefoil-nav-item { display: flex; }
.trefoil-nav-item--more { position: relative; }
.trefoil-more-chevron { transition: transform var(--transition-fast) var(--timing); font-size: 0.8em; }
.trefoil-more-toggle[aria-expanded="true"] .trefoil-more-chevron { transform: rotate(180deg); }
.trefoil-more-menu {
    position: absolute; top: 100%; right: 0; margin: var(--gap-xs) 0 0; padding: var(--gap-xs) 0;
    list-style: none; background: var(--surface-raised);
    border: 1px solid rgba(15,30,36,0.1); border-radius: var(--round-md);
    box-shadow: var(--shade-md); min-width: 210px; z-index: 110;
}
.trefoil-more-menu[hidden] { display: none; }
.trefoil-more-menu.is-open { display: block; }
.trefoil-more-link {
    display: block; padding: var(--gap-xs) var(--gap-md);
    color: var(--ink); font-size: var(--size-sm); white-space: nowrap;
}
.trefoil-more-link:hover, .trefoil-more-link:focus { background: rgba(15,30,36,0.06); color: var(--highlight); }
.trefoil-more-link[aria-current="page"] { color: var(--highlight); font-weight: var(--weight-medium); }

/* burger */
.trefoil-toggle {
    display: none; margin-left: auto; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(15,30,36,0.15); border-radius: var(--round-md);
    cursor: pointer;
}
.trefoil-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }
.trefoil-drawer { display: none; border-top: 1px solid rgba(15,30,36,0.08); background: var(--bg); }
.trefoil-drawer[hidden] { display: none; }
.trefoil-drawer-list { list-style: none; margin: 0; padding: var(--spacing-sm) 0; }
.trefoil-drawer-link {
    display: block; padding: var(--spacing-sm) var(--gap-lg);
    color: var(--ink); font-weight: var(--weight-medium); font-size: var(--text-base);
    border-bottom: 1px solid rgba(15,30,36,0.05);
}
.trefoil-drawer-link:hover { background: rgba(15,30,36,0.04); color: var(--highlight); }
.trefoil-drawer-link[aria-current="page"] { color: var(--highlight); }

/* Desktop sidebar >1280 */
@media (min-width: 1281px) {
    .trefoil {
        position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-width-x);
        border-bottom: 0; border-right: 1px solid rgba(15,30,36,0.08);
        overflow-y: auto;
    }
    .trefoil-inner {
        flex-direction: column; align-items: stretch; gap: var(--gap-md);
        min-height: 100%; padding: var(--gap-lg) var(--gap-md);
    }
    .trefoil-logo { justify-content: center; margin-bottom: var(--spacing-sm); }
    .trefoil-nav { margin-left: 0; }
    .trefoil-nav-list { flex-direction: column; align-items: stretch; gap: var(--gutter-2xs); }
    .trefoil-link { justify-content: flex-start; width: 100%; font-size: var(--size-sm); word-break: keep-all; }
    .trefoil-nav-item--more { position: static; }
    .trefoil-more-menu {
        position: static; box-shadow: none; border: 0; min-width: 0;
        background: rgba(15,30,36,0.03); border-radius: var(--round-md); margin: var(--gutter-2xs) 0 0;
    }
    body { padding-left: var(--sidebar-width-x); }
}
@media (max-width: 1280px) {
    .trefoil-nav { display: none; }
    .trefoil-toggle { display: flex; }
    .trefoil.is-open .trefoil-drawer { display: block; }
}

/* ============ HERO — HERO-12 ============ */
.pier { padding-block: var(--gutter-2xl); }
.pier-text { max-width: 760px; margin-inline: auto; text-align: center; }
.pier-kicker { font-size: var(--size-sm); font-style: italic; color: var(--highlight); letter-spacing: var(--tracking-wide); text-transform: uppercase; margin-bottom: var(--spacing-sm); }
.pier h1 {
    font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--size-h1);
    line-height: var(--line-tight); letter-spacing: var(--letter-tight); text-transform: uppercase;
}
.pier-lead { font-size: var(--text-h5); font-style: italic; color: var(--text-muted); max-width: 600px; margin: var(--gap-md) auto 0; }
.pier-meta { font-size: var(--type-micro); letter-spacing: var(--tracking-wide); color: var(--text-muted); text-transform: uppercase; margin-top: var(--gap-md); }
.pier-figure { margin: var(--gutter-2xl) auto 0; max-width: var(--max-width); }
.pier-figure img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--rounded-lg); }
.pier-figure figcaption { font-size: var(--type-micro); font-style: italic; color: var(--text-muted); padding-top: var(--gap-xs); text-align: center; }

/* ============ PAGE HEADER — PHEAD-04 ============ */
.gallery { padding-block: var(--gutter-2xl); }
.gallery-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gutter-2xl); align-items: end; }
.gallery-lead { min-width: 0; }
.gallery-eyebrow { font-size: var(--size-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--highlight); font-weight: var(--weight-medium); margin-bottom: var(--spacing-sm); }
.gallery-title { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--size-h1); line-height: var(--line-tight); letter-spacing: var(--letter-tight); text-transform: uppercase; }
.gallery-desc p { font-size: var(--text-h5); color: var(--text-muted); }
.gallery--legal .gallery-inner { grid-template-columns: 1fr; gap: var(--gap-md); }
@media (max-width: 900px) { .gallery-inner { grid-template-columns: 1fr; gap: var(--gap-md); } }

/* ============ PROSE — PROSE-06 (centered) ============ */
.buttress { padding-block: var(--gap-lg); }
.buttress-inner { text-align: center; }
.buttress h2 { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--size-h3); margin-top: var(--gap-lg); }
.buttress h3 { font-family: var(--font-title); font-weight: var(--weight-medium); font-size: var(--text-h4); }
.buttress p { font-size: var(--text-base); line-height: var(--line-loose); color: var(--text-muted); max-width: var(--text-width); margin-inline: auto; }
.buttress ul, .buttress ol { max-width: var(--text-width); margin-inline: auto; text-align: left; color: var(--text-muted); }
.buttress li { margin-bottom: var(--gap-xs); }
.buttress a { text-decoration: underline; }

/* ============ ITEMS GRID — GRID-08 ============ */
.reel { padding-block: var(--gutter-xl); }
.reel-heading { font-family: var(--font-title); font-weight: var(--weight-medium); font-size: var(--type-h2); text-transform: uppercase; letter-spacing: var(--letter-tight); text-align: center; margin-bottom: var(--gap-lg); }
.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.reel-card {
    background: var(--surface-raised); border-top: 4px solid var(--highlight);
    border-radius: 0 0 var(--round-md) var(--round-md); box-shadow: var(--elevation-1);
    padding: var(--gap-lg); transition: box-shadow var(--speed-base) var(--timing);
}
.reel-card:hover { box-shadow: var(--shade-md); }
.reel-card-title { font-family: var(--font-title); font-weight: var(--weight-medium); font-size: var(--text-h4); }
.reel-card-text { font-size: var(--text-base); color: var(--text-muted); margin: 0; }
@media (max-width: 900px) { .reel-grid { grid-template-columns: 1fr; } }

/* ============ REVIEWS — REV-06 ============ */
.grove { padding-block: var(--gutter-xl); }
.grove-heading { font-family: var(--font-title); font-weight: var(--weight-medium); font-size: var(--type-h2); text-transform: uppercase; letter-spacing: var(--letter-tight); text-align: center; margin-bottom: var(--gap-lg); }
.grove-list { display: flex; flex-direction: column; }
.grove-item { padding-block: var(--gap-md); border-bottom: 1px solid rgba(31,41,55,0.1); }
.grove-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--spacing-sm); margin-bottom: var(--gap-xs); }
.grove-author { font-size: var(--text-base); font-weight: var(--weight-bold); }
.grove-rating { color: var(--highlight); font-weight: var(--weight-medium); font-size: var(--size-sm); }
.grove-date { font-size: var(--size-sm); color: var(--text-muted); margin-left: auto; }
.grove-text { font-size: var(--text-base); line-height: var(--line-normal); color: var(--text-muted); max-width: 720px; margin: 0; }

/* ============ FAQ — FAQ-06 ============ */
.pergola { padding-block: var(--gutter-xl); }
.pergola-heading { font-family: var(--font-title); font-weight: var(--weight-medium); font-size: var(--type-h2); text-transform: uppercase; letter-spacing: var(--letter-tight); text-align: center; margin-bottom: var(--gap-lg); }
.pergola-toc { padding: var(--gap-lg); background: rgba(15,30,36,0.05); border-radius: var(--round-md); margin-bottom: var(--gutter-2xl); }
.pergola-toc ol { margin: 0; padding-left: 1.4em; }
.pergola-toc li { margin-bottom: var(--gap-xs); }
.pergola-toc a { color: var(--text-muted); }
.pergola-toc a:hover { color: var(--ink); }
.pergola-list dt { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--text-h4); margin-top: var(--gap-lg); scroll-margin-top: 90px; }
.pergola-list dd { margin: 0 0 var(--gap-md); }
.pergola-list dd p { font-size: var(--text-base); color: var(--text-muted); line-height: var(--line-loose); margin: 0; }

/* ============ TABLE — TABLE-07 ============ */
.portal { padding-block: var(--gutter-2xl); }
.portal-scroll { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table thead { background: var(--primary-x); }
.portal-table th { color: #fff; text-align: left; padding: var(--gap-md); font-size: var(--size-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.portal-table td { padding: var(--gap-md); font-size: var(--text-base); color: var(--text-muted); border-bottom: 1px solid rgba(31,41,55,0.08); }
.portal-table td:nth-child(even) { background: rgba(15,30,36,0.03); }

/* ============ CTA — CTA-05 ============ */
.cartouche { background: var(--primary-x); padding-block: var(--gutter-xl); margin-block: var(--gap-lg); }
.cartouche-inner { text-align: center; }
.cartouche-title { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--type-h2); text-transform: uppercase; color: #fff; letter-spacing: var(--letter-tight); }
.cartouche-text { font-size: var(--text-h5); color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 auto var(--gap-lg); }
.cartouche-actions { display: flex; gap: var(--gap-md); justify-content: center; flex-wrap: wrap; }
.cartouche-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: var(--spacing-sm) var(--gutter-xl); min-height: 48px;
    font-family: var(--font-title); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide);
    border-radius: var(--corner-pill); transition: background var(--speed-base) var(--timing), color var(--speed-base) var(--timing), transform var(--speed-base) var(--timing);
}
.cartouche-button--primary-x { background: var(--highlight); color: #fff; }
.cartouche-button--primary-x:hover { background: var(--accent-pressed); color: #fff; transform: translateY(-1px); }
.cartouche-button--secondary-x { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.cartouche-button--secondary-x:hover { border-color: #fff; background: #fff; color: var(--primary-x); }

/* ============ INLINE CTA — INLINE-CTA-06 ============ */
.filigree { padding-block: var(--gap-md); }
.filigree-inner { max-width: 600px; display: flex; flex-direction: column; gap: var(--spacing-sm); align-items: center; }
.filigree-text { font-size: var(--text-base); color: var(--text-muted); text-align: center; margin: 0; }
.filigree-actions { display: flex; gap: var(--spacing-sm); justify-content: center; }
.filigree-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: var(--spacing-sm) var(--gap-lg); min-height: 44px; border-radius: var(--corner-pill);
    font-family: var(--font-title); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-size: var(--size-sm);
    transition: background var(--speed-base) var(--timing), color var(--speed-base) var(--timing);
}
.filigree-btn--primary-x { background: var(--highlight); color: var(--bg); }
.filigree-btn--primary-x:hover { background: var(--accent-pressed); color: var(--bg); }
.filigree-btn--ghost-x { background: transparent; border: 1px solid var(--text-muted); color: var(--ink); }
.filigree-btn--ghost-x:hover { border-color: var(--ink); background: rgba(15,30,36,0.04); color: var(--ink); }
@media (max-width: 600px) { .filigree-actions { flex-direction: column; width: 100%; } .filigree-btn { width: 100%; } }

/* ============ MEDIA figures ============ */
.media { padding-block: var(--gap-lg); }
.media-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap-md); }
.media-figure { margin: 0; }
.media-figure img { width: 100%; border-radius: var(--round-md); object-fit: cover; }

/* ============ AUTHOR BYLINE — BYLINE-03 ============ */
.transom { border-top: 1px solid rgba(31,41,55,0.08); border-bottom: 1px solid rgba(31,41,55,0.08); padding-block: var(--spacing-sm); margin-top: var(--gap-lg); }
.transom-inner { display: flex; align-items: center; gap: var(--spacing-sm); }
.transom-portrait { width: 28px; height: 28px; border-radius: var(--round-circle); object-fit: cover; flex-shrink: 0; }
.transom-meta { font-size: var(--size-sm); color: var(--text-muted); }
.transom-name { color: var(--highlight); }
.transom-role { color: var(--text-muted); }
.transom-name:hover { text-decoration: underline; }

/* ============ AUTHOR CARD — AUTH-06 ============ */
.cresset { padding-block: var(--gap-3xl); background: linear-gradient(135deg, var(--primary-x), #1b3540); color: #fff; }
.cresset-inner { display: grid; grid-template-columns: 280px 1fr; gap: var(--gutter-2xl); align-items: center; }
.cresset-portrait img { width: 280px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--rounded-lg); box-shadow: var(--depth-lg); }
.cresset-body { min-width: 0; }
.cresset-eyebrow { font-size: var(--size-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--grad-light); }
.cresset-name { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: clamp(40px, 6vw, 64px); line-height: var(--line-tight); text-transform: uppercase; }
.cresset-bio { font-size: var(--text-h5); line-height: var(--line-normal); color: rgba(255,255,255,0.85); max-width: 540px; }
.cresset-expertise { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.cresset-expertise li { background: rgba(255,255,255,0.1); border-radius: var(--corner-pill); padding: var(--gap-xs) var(--gap-md); font-size: var(--size-sm); }
.cresset-articles-wrap { padding-block: var(--gutter-xl); }
.cresset-articles-heading { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--size-h3); text-transform: uppercase; }
.cresset-articles-list { list-style: none; padding: 0; }
.cresset-articles-item { padding-block: var(--spacing-sm); border-bottom: 1px solid rgba(31,41,55,0.08); display: flex; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap; }
.cresset-articles-item time { color: var(--text-muted); font-size: var(--size-sm); }
@media (max-width: 900px) { .cresset-inner { grid-template-columns: 1fr; } .cresset-portrait img { width: 220px; } }

/* ============ LEGAL — LEGAL-08 ============ */
.threshold { padding-block: var(--gutter-xl); }
.threshold-inner { max-width: 860px; }
.threshold-updated { font-size: var(--size-sm); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.threshold h3 { font-family: var(--font-sans); font-weight: var(--weight-bold); font-size: var(--size-h3); color: var(--ink); margin-top: var(--gap-lg); }
.threshold p { font-size: var(--text-base); line-height: var(--line-loose); color: var(--text-muted); }
.threshold ul { color: var(--text-muted); }
.threshold-disclaimer { display: block; margin-top: var(--gap-lg); color: var(--text-muted); font-size: var(--size-sm); }

/* ============ CONTACT FORM — FORM-01 ============ */
.plinth { padding-block: var(--gutter-2xl); }
.plinth-inner { max-width: 720px; }
.plinth-intro { font-size: var(--text-base); line-height: var(--line-loose); color: var(--text-muted); margin-bottom: var(--gap-lg); }
.plinth-success { display: none; padding: var(--gap-md); background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); border-radius: var(--round-md); color: var(--ink); margin-bottom: var(--gap-md); }
.plinth-success.is-visible { display: block; }
.plinth-form { background: var(--surface-raised); padding: var(--gap-lg); border-radius: var(--round-md); box-shadow: var(--elevation-1); display: flex; flex-direction: column; gap: var(--gap-md); }
.plinth-field { display: flex; flex-direction: column; gap: var(--gap-xs); }
.plinth-label { font-weight: var(--weight-medium); font-size: var(--size-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.plinth-input { font-family: var(--font-sans); font-size: var(--text-base); color: var(--ink); background: var(--bg); border: 1px solid rgba(31,41,55,0.18); border-radius: var(--round-md); padding: var(--spacing-sm) var(--gap-md); height: 48px; }
.plinth-textarea { min-height: 120px; height: auto; resize: vertical; }
.plinth-input:focus { outline: none; border-color: var(--highlight); }
.plinth-submit { align-self: flex-start; height: 48px; padding-inline: var(--gutter-xl); background: var(--highlight); color: #fff; border: 0; border-radius: var(--corner-pill); font-family: var(--font-title); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); cursor: pointer; }
.plinth-submit:hover { background: var(--accent-pressed); }

/* ============ COOKIE — COOK-03 corner card ============ */
.finial { position: fixed; inset-block-end: var(--gap-md); inset-inline-end: var(--gap-md); width: 360px; max-width: calc(100vw - 2 * var(--gap-md)); z-index: 90; background: var(--surface-raised); border-radius: var(--rounded-lg); padding: var(--gap-lg); box-shadow: var(--depth-lg); border: 1px solid rgba(31,41,55,0.1); display: flex; flex-direction: column; gap: var(--gap-md); }
.finial[hidden] { display: none; }
.finial-title { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--text-h5); text-transform: uppercase; color: var(--highlight); margin: 0; }
.finial-message { font-size: var(--size-sm); line-height: var(--line-normal); color: var(--text-muted); margin: 0; }
.finial-actions { display: flex; gap: var(--spacing-sm); }
.finial-btn { flex: 1; height: 40px; border-radius: var(--corner-pill); border: 0; cursor: pointer; font-weight: var(--weight-medium); font-size: var(--size-sm); }
.finial-btn--accept-x { background: var(--highlight); color: #fff; }
.finial-btn--accept-x:hover { background: var(--accent-pressed); }
.finial-btn--decline-x { background: transparent; border: 1px solid rgba(31,41,55,0.25); color: var(--ink); }
.finial-btn--decline-x:hover { background: rgba(15,30,36,0.05); }
@media (max-width: 720px) {
    .finial { inset-inline-start: var(--gap-md); width: auto; padding: 14px; gap: 10px; }
}

/* ============ ERROR — ERR-07 ============ */
.glyph { padding-block: var(--gap-3xl); background-image: linear-gradient(rgba(235,23,66,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(235,23,66,0.06) 1px, transparent 1px); background-size: 40px 40px; }
.glyph-inner { text-align: center; max-width: 640px; }
.glyph-code { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: clamp(80px, 18vw, 180px); color: var(--highlight); line-height: 1; margin: 0; }
.glyph-title { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--type-h2); text-transform: uppercase; }
.glyph-text { font-size: var(--text-h5); color: var(--text-muted); }
.glyph-button { display: inline-flex; align-items: center; justify-content: center; margin-top: var(--gap-md); padding: var(--spacing-sm) var(--gutter-xl); min-height: 48px; background: var(--highlight); color: #fff; border-radius: var(--corner-pill); font-family: var(--font-title); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.glyph-button:hover { background: var(--accent-pressed); color: #fff; }

/* ============ FOOTER — FOOT-08 newspaper masthead ============ */
.mosaic { background: var(--bg); padding-block: var(--gutter-xl); border-top: 1px solid rgba(15,30,36,0.08); }
.mosaic-masthead { border-top: 4px double var(--ink); border-bottom: 4px double var(--ink); padding-block: var(--gap-md); text-align: center; margin-bottom: var(--gap-lg); }
.mosaic-logo { display: inline-flex; }
.mosaic-logo img { height: 64px; width: auto; margin-inline: auto; }
.mosaic-issue { font-family: var(--font-title); font-size: var(--size-sm); color: var(--text-muted); letter-spacing: var(--tracking-wide); text-transform: uppercase; margin: var(--spacing-sm) 0 0; }
.mosaic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.mosaic-heading { font-family: var(--font-title); font-weight: var(--weight-bold); font-size: var(--text-h5); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.mosaic-col ul { list-style: none; margin: 0; padding: 0; }
.mosaic-col li { margin-bottom: var(--gap-xs); }
.mosaic-col a { color: var(--text-muted); font-size: var(--size-sm); }
.mosaic-col a:hover { color: var(--highlight); }
.mosaic-bottom { text-align: center; margin-top: var(--gap-lg); padding-top: var(--gap-md); border-top: 1px solid rgba(15,30,36,0.08); }
.mosaic-rg { font-size: var(--type-micro); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin: 0 0 var(--gap-xs); }
.mosaic-bottom small { font-size: var(--size-sm); color: var(--text-muted); }
@media (max-width: 720px) { .mosaic-grid { grid-template-columns: 1fr; gap: var(--gap-md); } }

/* logo/mobile sizes */
@media (max-width: 1280px) { .trefoil-logo-img { height: 72px; } }
@media (max-width: 720px) { .trefoil-logo-img { height: 64px; } }
