/*
Theme Name:  EduBestari V2
Theme URI:   https://edubestari.com/
Author:      EduBestari.Com
Author URI:  https://edubestari.com/
Description: Tema Dari Minda
Version:     2.0.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edubestari
Tags:        edubestari
*/

/* ══════════════════════════════════════════════════
   EDUBESTARI DESIGN SYSTEM
   Semua token, utilities, dan animations.
   Tailwind custom classes ditakrifkan di sini.
══════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────── */
:root {
    --lime:  #ccff00;
    --pink:  #ff007a;
    --blue:  #00f0ff;
    --black: #000000;
    --white: #ffffff;
    --gray:  #f8f8f8;

    /* Premium Swiss shadow scale */
    --s-brut:      4px 4px 0px 0px #000000;
    --s-brut-sm:   2px 2px 0px 0px #000000;
    --s-brut-lg:   8px 8px 0px 0px #000000;
    --s-brut-pink: 4px 4px 0px 0px #ff007a;
    --s-brut-blue: 4px 4px 0px 0px #00f0ff;
    --s-brut-lime: 4px 4px 0px 0px #ccff00;

    /* Marquee speed — dikawal melalui Customizer */
    --marquee-speed: 20s;
}

/* ── Base Reset ────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--white);
    color: var(--black);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    border-left: 8px solid var(--black);
    border-right: 8px solid var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

.admin-bar #site-nav {
    top: 32px;
}

.custom-logo {
    max-height: 48px;
    width: auto;
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--black);
}

@media (max-width: 782px) {
    .admin-bar #site-nav {
        top: 46px;
    }
}

@media (max-width: 480px) {
    body {
        border-left-width: 4px;
        border-right-width: 4px;
    }
}

/* ── Typography ────────────────────────────────── */
.font-huge {
    font-family: 'Archivo Black', 'Arial Black', sans-serif;
}

/* ── Custom Cursor ─────────────────────────────── */
#cursor {
    width: 30px;
    height: 30px;
    background: var(--pink);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    transition: transform 0.12s ease, background 0.12s ease;
    will-change: transform;
}

@media (pointer: coarse) {
    #cursor {
        display: none;
    }
}

/* ── Grid Dot Patterns ─────────────────────────── */
.bg-dot-lg {
    background-size: 40px 40px;
    background-image: radial-gradient(circle, #000 1.5px, transparent 1.5px);
}

.bg-dot-sm {
    background-size: 25px 25px;
    background-image: radial-gradient(circle, #000 0.5px, transparent 0.5px);
}

/* ── Brutalist Shadows ─────────────────────────── */
.shadow-brut      { box-shadow: var(--s-brut); }
.shadow-brut-sm   { box-shadow: var(--s-brut-sm); }
.shadow-brut-lg   { box-shadow: var(--s-brut-lg); }
.shadow-brut-pink { box-shadow: var(--s-brut-pink); }
.shadow-brut-blue { box-shadow: var(--s-brut-blue); }
.shadow-brut-lime { box-shadow: var(--s-brut-lime); }

/* ── Marquee ───────────────────────────────────── */
.marquee-inner {
    display: inline-block;
    white-space: nowrap;
    /* Guna CSS variable supaya Customizer boleh override via inline style */
    animation: marquee var(--marquee-speed, 50s) linear infinite;
}

/* Hover pada wrapper → pause animasi supaya teks boleh dibaca */
.marquee-wrapper:hover .marquee-inner,
.marquee-inner:hover {
    animation-play-state: paused;
    cursor: default;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll var(--marquee-speed, 20s) linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* ── Floating Sticker ──────────────────────────── */
.float {
    animation: float 3s ease-in-out infinite;
}

.float-delay {
    animation: float 3s ease-in-out 1s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0)     rotate(-3deg); }
    50%       { transform: translateY(-10px) rotate(3deg); }
}

/* ── Glitch (wordmark hover) ───────────────────── */
.glitch:hover {
    animation: glitch 0.3s cubic-bezier(.25,.46,.45,.94) both infinite;
}

@keyframes glitch {
    0%   { transform: translate(0);           text-shadow: -2px 2px var(--blue), 2px -2px var(--pink); }
    25%  { transform: translate(-2px,  2px);  }
    50%  { transform: translate( 2px, -2px);  text-shadow: 2px -2px var(--blue), -2px 2px var(--pink); }
    75%  { transform: translate(-2px, -2px);  }
    100% { transform: translate(0); }
}

/* ── Hover: Lift ───────────────────────────────── */
.lift {
    transition: transform .15s ease, box-shadow .15s ease;
}

.lift:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--s-brut-lg);
}

.lift:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* ── Hover: Press ──────────────────────────────── */
.press {
    transition: transform .15s ease, box-shadow .15s ease;
}

.press:hover  { transform: translate(2px, 2px);  box-shadow: none !important; }
.press:active { transform: translate(4px, 4px); }

/* ── Image Grayscale → Colour ──────────────────── */
.img-gray {
    filter: grayscale(100%);
    transition: filter .6s ease, transform .7s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group:hover .img-gray {
    filter: grayscale(0%);
    transform: scale(1.07);
}

/* ── Bento Cell ────────────────────────────────── */
.bento {
    transition: background-color .2s ease, color .2s ease;
}

/* ── Badge / Sticker ───────────────────────────── */
.badge {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid #000;
    padding: 0.25em 0.65em;
    line-height: 1.4;
}

/* ── Meta Label ────────────────────────────────── */
.meta {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ── Vertical Sidebar Label ────────────────────── */
.vert {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

.vert-text {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

/* ── Most Wanted Number ────────────────────────── */
.wanted-n {
    transition: transform .2s ease;
    display: flex;
}

.wanted-row:hover .wanted-n {
    transform: rotate(12deg);
}

/* ── Outline Text ──────────────────────────────── */
.text-outline {
    -webkit-text-stroke: 2px #000;
    color: transparent;
}

/* ── Scroll Reveal ─────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s cubic-bezier(.2,0,0,1),
                transform .55s cubic-bezier(.2,0,0,1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ══════════════════════════════════════════════════
   SINGLE POST — Article Body Styles
   Digunakan dalam single.php
══════════════════════════════════════════════════ */

.article-container {
    max-width: 68ch;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.125rem;
}

/* Dropcap */
.article-container > p:first-of-type::first-letter {
    font-family: 'Archivo Black', sans-serif;
    font-size: 4.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.75rem;
    background: var(--lime);
    padding: 4px;
    border: 2px solid black;
}

/* Headings dalam artikel */
.article-container h2 {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 2.5rem 0 1rem;
}

.article-container h3 {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin: 2rem 0 0.75rem;
}

.article-container p {
    margin-bottom: 1.5rem;
}

.article-container blockquote {
    position: relative;
    border: 2px solid var(--black);
    padding: 2.5rem 3rem;
    margin: 2.5rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    font-style: italic;
    transition: box-shadow .2s ease;
}

.article-container blockquote:hover {
    box-shadow: var(--s-brut-pink);
}

.article-container blockquote::before {
    content: "\201C";
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-family: 'Archivo Black', sans-serif;
    font-size: 10rem;
    color: var(--lime);
    -webkit-text-stroke: 2px black;
    line-height: 1;
    pointer-events: none;
    opacity: 0.4;
}

.article-container img {
    max-width: 100%;
    border: 2px solid var(--black);
    box-shadow: var(--s-brut-sm);
}

/* ── Lists ───────────────────────────────────────────
   Brutalist square bullets untuk ul, nombor tebal untuk ol.
   Kedua-dua guna padding-left supaya teks tidak rapat tepi.
─────────────────────────────────────────────────── */

/* Reset browser default, kita guna custom pseudo-element */
.article-container ul,
.article-container ol {
    list-style: none;
    padding-left: 0;
    margin: 0 0 2rem 0;
}

/* Spacing antara item */
.article-container li {
    font-weight: 500;
    line-height: 1.7;
    padding: 0.45rem 0 0.45rem 2.2rem;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.article-container li:last-child {
    border-bottom: none;
}

/* UL — square bullet neon pink / hitam (Brutalist touch) */
.article-container ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 10px;
    height: 10px;
    background: var(--pink);
    border: 1.5px solid var(--black);
    flex-shrink: 0;
}

/* UL nested — square lebih kecil, warna lime */
.article-container ul ul > li::before {
    width: 7px;
    height: 7px;
    background: var(--lime);
    top: 0.9em;
}

/* OL — nombor tebal, font Archivo Black */
.article-container ol {
    counter-reset: ol-counter;
}

.article-container ol > li {
    counter-increment: ol-counter;
}

.article-container ol > li::before {
    content: counter(ol-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.42em;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--black);
    line-height: 1;
    min-width: 1.8rem;
}

/* OL nested — huruf kecil a, b, c */
.article-container ol ol {
    counter-reset: ol-inner;
}

.article-container ol ol > li {
    counter-increment: ol-inner;
}

.article-container ol ol > li::before {
    content: counter(ol-inner, lower-alpha) ".";
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    color: rgba(0,0,0,0.5);
}

/* Reading progress bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--pink);
    z-index: 10000;
    transition: width .1s linear;
}

/* Command Center (single post) */
.command-center {
    position: fixed;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(38rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    white-space: nowrap;
    overflow: hidden;
}

.command-center a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.5rem;
    line-height: 1;
}

.command-center a:last-child {
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .command-center {
        bottom: max(.875rem, env(safe-area-inset-bottom));
        box-shadow: 4px 4px 0 0 #000 !important;
    }
}

.is-single main {
    padding-bottom: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ══════════════════════════════════════════════════
   WORDPRESS GUTENBERG — BLOK OVERRIDES LENGKAP
   Semua blok native dikemaskini mengikut design system
   Edubestari: Neo-Brutalism × Swiss Minimalism
══════════════════════════════════════════════════ */

/* ── Links dalam artikel ───────────────────────── */
.article-container a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--pink);
    text-underline-offset: 3px;
    text-decoration-thickness: 3px;
    font-weight: 700;
    transition: background .15s ease, color .15s ease;
}

.article-container a:hover {
    background-color: var(--lime);
    color: var(--black);
    text-decoration-color: var(--black);
}

/* ── Images ────────────────────────────────────── */
.article-container img,
.wp-block-image img,
.wp-block-image figure img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--black);
    box-shadow: var(--s-brut-sm);
    display: block;
}

/* ── Figure & Figcaption ───────────────────────── */
.article-container figure,
.wp-block-image {
    margin: 2rem 0;
}

.article-container figcaption,
.wp-block-image figcaption,
.wp-element-caption {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.45);
    margin-top: 0.65rem;
    padding-left: 0.25rem;
    border-left: 3px solid var(--lime);
    padding-left: 0.6rem;
    line-height: 1.5;
}

/* ── Blockquote ────────────────────────────────── */
.wp-block-quote,
.article-container blockquote {
    position: relative;
    border: 2px solid var(--black);
    border-left: 6px solid var(--pink);
    padding: 2.2rem 2.5rem;
    margin: 2.5rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    font-style: italic;
    background: var(--gray);
    transition: box-shadow .2s ease;
}

.wp-block-quote:hover,
.article-container blockquote:hover {
    box-shadow: var(--s-brut-pink);
}

.wp-block-quote cite,
.wp-block-quote .wp-block-quote__citation {
    display: block;
    font-style: normal;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-top: 1rem;
}

/* ── Code ──────────────────────────────────────── */
.wp-block-code,
.article-container pre {
    background: var(--black);
    color: var(--lime);
    border: 2px solid var(--black);
    box-shadow: var(--s-brut-sm);
    padding: 1.5rem;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-container code {
    background: var(--black);
    color: var(--lime);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85em;
    padding: 0.15em 0.45em;
    border-radius: 0;
}

/* ── Separator / HR ────────────────────────────── */
.wp-block-separator,
.article-container hr {
    border: none;
    border-top: 4px solid var(--black);
    margin: 3rem 0;
    opacity: 1;
}

/* Separator style dots (Gutenberg default) */
.wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
    line-height: 1;
}

.wp-block-separator.is-style-dots::before {
    content: "· · ·";
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    color: var(--black);
}

/* ── Tables ────────────────────────────────────── */
.article-container table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--black);
    margin: 2rem 0;
    font-size: 0.9rem;
    box-shadow: var(--s-brut-sm);
}

.article-container table thead,
.wp-block-table thead {
    background: var(--black);
    color: var(--white);
}

.article-container table thead th,
.wp-block-table thead th {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.article-container table thead th:last-child,
.wp-block-table thead th:last-child {
    border-right: none;
}

.article-container table tbody td,
.wp-block-table tbody td {
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(0,0,0,0.12);
    font-weight: 500;
    vertical-align: top;
}

.article-container table tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
    background: var(--gray);
}

.article-container table tbody tr:hover,
.wp-block-table tbody tr:hover {
    background: rgba(204,255,0,0.15);
}

.article-container table tfoot td,
.wp-block-table tfoot td {
    padding: 0.85rem 1.25rem;
    border-top: 2px solid var(--black);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ── Gutenberg Buttons ─────────────────────────── */
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
    font-family: 'Archivo Black', sans-serif !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--lime) !important;
    color: var(--black) !important;
    border: 2px solid var(--black) !important;
    border-radius: 0 !important;         /* Hapus rounded corners Gutenberg */
    padding: 0.85rem 1.75rem !important;
    box-shadow: var(--s-brut) !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    display: inline-block;
}

.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: var(--s-brut-sm) !important;
    background: var(--lime) !important;
    color: var(--black) !important;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: var(--white) !important;
    color: var(--black) !important;
    border: 2px solid var(--black) !important;
    box-shadow: var(--s-brut) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--black) !important;
    color: var(--lime) !important;
}

/* ── Responsive Embeds (YouTube, Vimeo, dll) ───── */
.wp-block-embed,
.wp-block-embed__wrapper,
.article-container .video-wrapper {
    position: relative;
    margin: 2rem 0;
}

/* 16:9 aspect ratio — iframe tidak terkeluar dari container */
.wp-block-embed.is-type-video .wp-block-embed__wrapper,
.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed-vimeo .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe,
.wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.wp-block-embed-vimeo .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--black);
    box-shadow: var(--s-brut-sm);
}

/* Wrapper tambahan untuk video HTML5 biasa */
.article-container video {
    width: 100%;
    height: auto;
    border: 2px solid var(--black);
    box-shadow: var(--s-brut-sm);
}

/* ── Pull Quote (Gutenberg) ────────────────────── */
.wp-block-pullquote {
    border-top: 4px solid var(--black);
    border-bottom: 4px solid var(--black);
    padding: 2rem 0;
    margin: 3rem 0;
    text-align: center;
}

.wp-block-pullquote blockquote {
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.wp-block-pullquote blockquote p {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.wp-block-pullquote blockquote cite {
    font-style: normal;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.4;
}

/* ── Gallery block ─────────────────────────────── */
.wp-block-gallery {
    margin: 2rem 0;
}

.wp-block-gallery .wp-block-image img {
    border: 2px solid var(--black);
}

/* ── Cover block ───────────────────────────────── */
.wp-block-cover {
    border: 4px solid var(--black);
    box-shadow: var(--s-brut);
    margin: 2rem 0;
}

/* ── Alignment helpers ─────────────────────────── */
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignright  { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.alignleft   { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignwide   { max-width: 100%; }
.alignfull   { max-width: 100%; margin-left: calc(-1 * var(--container-pad, 1.5rem)); margin-right: calc(-1 * var(--container-pad, 1.5rem)); }

/* Pagination */
.nav-links {
    display: flex;
    gap: 0.5rem;
    margin: 3rem 0;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-numbers {
    border: 2px solid var(--black);
    padding: 0.5rem 0.75rem;
    color: var(--black);
    text-decoration: none;
    transition: all .15s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--black);
    color: var(--lime);
}

.pagination-shell {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pagination-brut,
.pagination .nav-links {
    width: max-content;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.pagination-brut .page-numbers,
.pagination .page-numbers {
    display: inline-flex;
    min-width: 3rem;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* --- NEW: Premium Swiss Brutalism Additions --- */
.bg-dot-pattern {
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -16px -16px;
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 10s linear infinite;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: #000;
    z-index: 10;
}

/* --- Mobile Production Fixes --- */
@media (max-width: 640px) {
    #site-nav {
        max-width: calc(100vw - 8px);
    }

    #site-nav > div:first-child {
        height: 4.75rem;
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    #site-nav .font-huge {
        font-size: clamp(1.55rem, 8.4vw, 2rem) !important;
        line-height: 1;
    }

    #mob-toggle {
        width: 3rem;
        height: 3rem;
        flex: 0 0 auto;
        box-shadow: 4px 4px 0 0 #000 !important;
    }

    #mob-menu {
        top: 4.75rem !important;
        max-height: calc(100dvh - 4.75rem);
    }

    .is-homepage header:first-of-type {
        padding-top: 6.25rem;
        padding-bottom: 3rem;
    }

    .hero-kicker {
        width: min(100%, 32rem);
        max-width: calc(100vw - 4rem);
        padding: 0.75rem 1rem;
        font-size: 0.72rem;
        line-height: 1.35;
        letter-spacing: 0.16em;
        white-space: normal;
    }

    .hero-kicker [data-partial="hero-kicker"] {
        display: block;
    }

    .hero-title {
        font-size: clamp(3.35rem, 17vw, 5rem) !important;
        line-height: 0.9 !important;
        margin-bottom: 1.75rem;
    }

    .hero-inverted {
        max-width: calc(100vw - 3rem);
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        border-width: 3px !important;
        box-shadow: 5px 5px 0 0 #000 !important;
        transform: skewX(-4deg) !important;
        white-space: nowrap;
    }

    .hero-description {
        max-width: 21rem;
        font-size: clamp(1rem, 5.1vw, 1.35rem) !important;
        line-height: 1.35 !important;
        margin-bottom: 2.5rem;
    }

    [data-partial="hero-btn1"],
    [data-partial="hero-btn2"] {
        width: 100%;
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
        text-align: center;
    }

    .hero-stats {
        width: 100%;
    }

    .hero-stat-item {
        min-width: 0;
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
        overflow: hidden;
    }

    .hero-stat-value {
        font-size: clamp(1.5rem, 8.6vw, 2.35rem) !important;
        line-height: 0.95 !important;
        letter-spacing: -0.05em;
        white-space: nowrap;
    }

    .hero-stat-label {
        font-size: 0.62rem !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere;
    }

    .marquee-wrapper {
        margin-top: 3rem !important;
        transform: rotate(1deg) scale(1.02) !important;
    }

    [data-partial="feed-newsletter"] {
        overflow: hidden;
        padding: 2rem 1.5rem !important;
        box-shadow: 5px 5px 0 0 #00f0ff !important;
    }

    [data-partial="feed-newsletter"] h4 {
        max-width: 100%;
        font-size: clamp(1.65rem, 10.25vw, 2.25rem) !important;
        line-height: 0.95;
        overflow-wrap: anywhere;
    }

    [data-partial="feed-newsletter"] p {
        font-size: 0.75rem !important;
        line-height: 1.55 !important;
    }

    [data-partial="feed-newsletter"] input,
    [data-partial="feed-newsletter"] button,
    [data-partial="feed-newsletter"] a {
        max-width: 100%;
        min-width: 0;
        font-size: 0.85rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .single-share-bar a,
    .single-share-bar button {
        display: flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        white-space: nowrap;
    }

    .pagination-shell,
    .navigation.pagination {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .pagination-brut,
    .pagination .nav-links {
        justify-content: flex-start;
        gap: 0.55rem !important;
        margin: 0;
        padding: 0.15rem 0.25rem 0.65rem;
    }

    .pagination-brut .page-numbers,
    .pagination .page-numbers {
        min-width: 2.65rem;
        min-height: 2.65rem;
        padding: 0.55rem 0.75rem !important;
        font-size: 0.78rem !important;
        line-height: 1;
        box-shadow: none !important;
    }

    .pagination-brut .prev,
    .pagination-brut .next,
    .pagination .prev,
    .pagination .next {
        min-width: max-content;
    }

    .command-center {
        width: min(100%, calc(100vw - 1rem));
        max-width: calc(100vw - 1rem);
        padding: 0.35rem !important;
        gap: 0 !important;
    }

    .command-center a {
        min-height: 40px;
        padding: 0.55rem 0.45rem !important;
        font-size: 0.58rem !important;
        line-height: 1.15;
    }

    .command-center a:nth-of-type(2) {
        max-width: 24vw !important;
    }

    .command-center a:last-child span:first-child {
        max-width: 36vw;
    }

    /* Customizer-only edit shortcuts: keep mobile preview readable. */
    .customize-partial-edit-shortcut {
        transform: scale(0.72);
        transform-origin: top left;
    }

    .hero-title .customize-partial-edit-shortcut,
    [data-partial="feed-newsletter"] .customize-partial-edit-shortcut {
        opacity: 0.6;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: clamp(3rem, 16vw, 4.2rem) !important;
    }

    .hero-inverted {
        font-size: 0.92em;
        max-width: calc(100vw - 2.5rem);
    }

    .hero-stat-value {
        font-size: clamp(1.25rem, 8vw, 1.8rem) !important;
    }

    #site-nav .font-huge {
        font-size: clamp(1.35rem, 8vw, 1.75rem) !important;
    }

    .command-center a {
        font-size: 0.54rem !important;
    }
}
