/*
 * PAMM Iran — shared site chrome (header, mega menu, breadcrumbs, footer,
 * sign-in screens). One stylesheet for the platform and the journal; the
 * copy in blog-app/public/assets/chrome/ must stay byte-identical
 * (tools/chrome/sync.sh). Palette: monochrome
 * brand (#141414 on #f7f8f7) with the PAMM gold accent (#b98a1d).
 */

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2-variations'), url('fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/vazirmatn-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/vazirmatn-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --pc-font-fa: 'Vazirmatn', 'Vazirmatn Variable', Tahoma, sans-serif;
    --pc-font-en: 'Inter', 'Inter Variable', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --pc-bg: #f7f8f7;
    --pc-surface: #ffffff;
    --pc-surface-2: #f0f1f0;
    --pc-text: #141414;
    --pc-muted: #5c5c5c;
    --pc-faint: #6b6b6b;
    --pc-line: #e3e4e3;
    --pc-line-strong: #cfd1cf;
    --pc-brand: #141414;
    --pc-on-brand: #ffffff;
    --pc-gold: #b98a1d;
    --pc-gold-strong: #8f6a12;
    --pc-gold-soft: #faf3df;
    --pc-foot-bg: #141414;
    --pc-foot-text: #f2f2f5;
    --pc-foot-muted: #a7a7b3;
    --pc-foot-line: #2a2a32;
    --pc-shadow: 0 18px 50px rgb(20 20 20 / 12%);
    --pc-shadow-sm: 0 1px 2px rgb(20 20 20 / 6%);
    --pc-radius: 14px;
    --pc-radius-sm: 10px;
    --pc-wrap: 76rem;
    --pc-header: 4.5rem;
}

[data-theme='dark'],
body.theme-dark {
    --pc-bg: #0e0e12;
    --pc-surface: #16161c;
    --pc-surface-2: #1d1d24;
    --pc-text: #f2f2f5;
    --pc-muted: #a7a7b3;
    --pc-faint: #9a9aa5;
    --pc-line: #2a2a32;
    --pc-line-strong: #3a3a44;
    --pc-brand: #f2f2f5;
    --pc-on-brand: #111114;
    --pc-gold: #e3b93c;
    --pc-gold-strong: #f0cd62;
    --pc-gold-soft: #2b2410;
    --pc-foot-bg: #09090c;
    --pc-foot-line: #22222a;
    --pc-shadow: 0 18px 50px rgb(0 0 0 / 50%);
    --pc-shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
}

body.theme-light {
    --pc-bg: #f7f8f7;
    --pc-surface: #ffffff;
    --pc-surface-2: #f0f1f0;
    --pc-text: #141414;
    --pc-muted: #5c5c5c;
    --pc-line: #e3e4e3;
    --pc-brand: #141414;
    --pc-on-brand: #ffffff;
    --pc-gold: #b98a1d;
    --pc-gold-soft: #faf3df;
}

body.theme-contrast {
    --pc-bg: #ffffff;
    --pc-surface: #ffffff;
    --pc-surface-2: #f2f2f2;
    --pc-text: #000000;
    --pc-muted: #1f1f1f;
    --pc-line: #000000;
    --pc-line-strong: #000000;
    --pc-brand: #000000;
    --pc-on-brand: #ffffff;
    --pc-gold: #6b4d00;
    --pc-gold-soft: #fff4d6;
}

/* ——— Base typography (low specificity: page styles win) ——— */
:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
:where(body) {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
    background: var(--pc-bg);
    color: var(--pc-text);
}
:where(html[lang='fa'] body, html[dir='rtl'] body) { font-family: var(--pc-font-fa); }
:where(html[lang='en'] body) { font-family: var(--pc-font-en); line-height: 1.7; }
:where(h1) { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem); line-height: 1.35; font-weight: 800; }
:where(h2) { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); line-height: 1.45; font-weight: 750; }
:where(h3) { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.55; font-weight: 700; }
:where(h4) { font-size: 1.0625rem; line-height: 1.6; font-weight: 700; }
:where(small) { font-size: 0.875rem; }

/* ——— Helpers ——— */
.pc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc-i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
[dir='rtl'] .pc-flip { transform: scaleX(-1); }
.pc-wrap { width: min(var(--pc-wrap), 100% - 2.5rem); margin-inline: auto; }
.pc-skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; border-radius: var(--pc-radius-sm); background: var(--pc-brand); color: var(--pc-on-brand); font-weight: 700; text-decoration: none; transition: top 0.15s; }
.pc-skip:focus { top: 0.75rem; }
.pc-header :focus-visible, .pc-footer :focus-visible, .breadcrumbs :focus-visible, .pc-auth :focus-visible { outline: 2px solid var(--pc-gold); outline-offset: 2px; }

.pc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 2.5rem; padding: 0.45rem 1.05rem; border-radius: 999px;
    border: 1px solid var(--pc-brand); font: inherit; font-size: 0.9375rem; font-weight: 700; line-height: 1.4;
    text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.pc-btn-primary { background: var(--pc-brand); color: var(--pc-on-brand); }
.pc-btn-primary:hover { background: var(--pc-gold); border-color: var(--pc-gold); color: #fff; }
.pc-btn-ghost { background: transparent; color: var(--pc-text); border-color: var(--pc-line-strong); }
.pc-btn-ghost:hover { border-color: var(--pc-brand); color: var(--pc-text); }
.pc-btn-gold { background: var(--pc-gold); border-color: var(--pc-gold); color: #fff; }
.pc-btn-gold:hover { background: var(--pc-gold-strong); border-color: var(--pc-gold-strong); color: #fff; }

.pc-icon-btn {
    display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none;
    border: 1px solid var(--pc-line); border-radius: 999px; background: var(--pc-surface); color: var(--pc-text);
    cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.pc-icon-btn:hover { border-color: var(--pc-brand); }
.pc-icon-btn .pc-i { width: 1.2rem; height: 1.2rem; }

/* ——— Header ——— */
.pc-header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--pc-surface) 90%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--pc-line);
    color: var(--pc-text);
    font-family: inherit;
}
.pc-header::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--pc-gold) 20%, var(--pc-gold) 80%, transparent); opacity: 0.9; }
.pc-bar { display: flex; align-items: center; gap: 1.25rem; min-height: var(--pc-header); }

.pc-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--pc-text); text-decoration: none; flex: none; }
.pc-brand:hover { color: var(--pc-text); }
.pc-brand-mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--pc-surface); border: 1px solid var(--pc-line); }
.pc-brand-mark img { width: 2rem; height: 2rem; display: block; }
[data-theme='dark'] .pc-brand-mark img, body.theme-dark .pc-brand-mark img { filter: invert(1); }
.pc-brand-text { display: grid; line-height: 1.25; }
.pc-brand-text strong { font-size: 1.25rem; font-weight: 850; letter-spacing: -0.01em; }
.pc-brand-text small { margin-top: 0.2rem; font-size: 0.75rem; font-weight: 600; color: var(--pc-gold-strong); letter-spacing: 0.01em; }
[data-theme='dark'] .pc-brand-text small, body.theme-dark .pc-brand-text small { color: var(--pc-gold); }
html[lang='en'] .pc-brand-text strong { letter-spacing: 0.02em; }

.pc-nav { flex: 1 1 auto; min-width: 0; }
.pc-nav-head, .pc-nav-foot { display: none; }
.pc-menu { display: flex; align-items: center; justify-content: center; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.pc-item { position: static; }
.pc-top-row { display: flex; align-items: center; border-radius: 999px; transition: background 0.15s; }
.pc-top {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.2rem 0.5rem 0.75rem;
    color: var(--pc-muted); font-size: 0.9375rem; font-weight: 650; text-decoration: none; white-space: nowrap;
}
[dir='rtl'] .pc-top { padding: 0.5rem 0.75rem 0.5rem 0.2rem; }
.pc-top-ico { display: none; }
.pc-expand {
    display: inline-grid; place-items: center; width: 1.75rem; height: 2.25rem; padding: 0; margin-inline-end: 0.2rem;
    border: 0; background: none; color: var(--pc-faint); cursor: pointer;
}
.pc-expand .pc-i { width: 1rem; height: 1rem; transition: transform 0.2s; }
.pc-item:hover .pc-top-row, .pc-item.is-open .pc-top-row, .pc-item:focus-within .pc-top-row { background: var(--pc-surface-2); }
.pc-item:hover .pc-top, .pc-item.is-open .pc-top, .pc-item.is-active .pc-top { color: var(--pc-text); }
.pc-item.is-active .pc-top-row { box-shadow: inset 0 -2px 0 var(--pc-gold); border-radius: 999px 999px 0 0; }
.pc-item.is-open .pc-expand .pc-i { transform: rotate(180deg); }

.pc-mega {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--pc-surface); border-top: 1px solid var(--pc-line); border-bottom: 1px solid var(--pc-line);
    box-shadow: var(--pc-shadow);
    /* Never spill past the bottom of the screen: cap the panel height and
       scroll inside it when a short viewport cannot fit every column. */
    max-height: calc(100dvh - 4.75rem); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.pc-mega-inner { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.25rem 1.5rem; }
.pc-mega-inner.has-feature { grid-template-columns: minmax(0, 1fr) 17rem; }
/* Panel width follows the content, never the wrap: a one-column panel (a
   journal branch, or the platform's offline journal fallback) and a
   two-column panel carrying the summary box (the journal's big branches and
   the platform's journal mega) become calm cards instead of a 76rem bar with
   ~27rem of dead space that pushed the header off the sides of the screen. */
.pc-mega-inner.pc-mega-fit-1 { width: min(38rem, 100% - 2.5rem); }
.pc-mega-inner.pc-mega-fit-2 { width: min(58rem, 100% - 2.5rem); }
/* Only a six-column panel needs more room than the wrap. Nothing builds one
   today; the rule stays because a journal that has not been updated yet still
   serves the old six-column menu.json during a rolling deploy. */
.pc-mega-inner.pc-mega-wide { width: min(84rem, 100% - 2.5rem); }
.pc-mega-cols { display: grid; gap: 1.25rem 1.75rem; }
.pc-cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
.pc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pc-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pc-col-title { margin: 0 0 0.4rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--pc-line); color: var(--pc-faint); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pc-col ul { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.pc-link { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.45rem 0.55rem; border-radius: var(--pc-radius-sm); color: var(--pc-text); text-decoration: none; transition: background 0.15s; }
.pc-link:hover, .pc-link[aria-current='page'] { background: var(--pc-surface-2); color: var(--pc-text); }
.pc-link-ico { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 10px; background: var(--pc-surface-2); color: var(--pc-text); border: 1px solid var(--pc-line); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.pc-link-ico .pc-i { width: 1.1rem; height: 1.1rem; }
.pc-link:hover .pc-link-ico { background: var(--pc-gold-soft); border-color: var(--pc-gold); color: var(--pc-gold-strong); }
.pc-link-text { display: grid; gap: 0.05rem; min-width: 0; line-height: 1.45; }
.pc-link-text strong {
    font-size: 0.9375rem; font-weight: 700;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Owner rule: a menu description is a hint, never a paragraph — at most two
   short lines under the title, so the panel stays compact on any screen. */
.pc-link-text small {
    font-size: 0.8125rem; color: var(--pc-muted); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-feature {
    display: flex; flex-direction: column; gap: 0.6rem; align-self: stretch; padding: 1.25rem;
    border: 1.5px dashed var(--pc-gold); border-radius: var(--pc-radius); background: var(--pc-gold-soft);
    color: var(--pc-text); text-decoration: none;
}
.pc-feature strong { font-size: 1.0625rem; line-height: 1.55; }
.pc-feature span { color: var(--pc-muted); font-size: 0.875rem; line-height: 1.65; }
.pc-feature em { margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem; font-style: normal; font-weight: 800; font-size: 0.875rem; color: var(--pc-gold-strong); }
[data-theme='dark'] .pc-feature em, body.theme-dark .pc-feature em { color: var(--pc-gold); }
.pc-feature:hover { border-style: solid; color: var(--pc-text); }

.pc-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; margin-inline-start: auto; }
.pc-actions .language-switch {
    display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.5rem; padding: 0.3rem 0.8rem;
    border: 1px solid var(--pc-line); border-radius: 999px; background: var(--pc-surface);
    color: var(--pc-text); font-size: 0.875rem; font-weight: 700; text-decoration: none;
}
.pc-actions .language-switch:hover { border-color: var(--pc-brand); color: var(--pc-text); }
.pc-actions .language-switch .pc-i { width: 1.05rem; height: 1.05rem; color: var(--pc-gold); }
.pc-lang-short { display: none; }
.pc-when-dark { display: none; }
[data-theme='dark'] .pc-when-dark { display: block; }
[data-theme='dark'] .pc-when-light { display: none; }
.pc-burger { display: none; }
.pc-scrim { position: fixed; inset: 0; z-index: 990; background: rgb(8 8 10 / 45%); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.pc-scrim[hidden] { display: none; }

@media (hover: hover) and (min-width: 1100px) {
    .pc-item:hover > .pc-mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0.08s, 0.08s, 0s; }
}
@media (min-width: 1100px) {
    .pc-item.is-open > .pc-mega, .pc-item:focus-within > .pc-mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
    .pc-item.is-closed > .pc-mega { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
}

/* Short desktop screens (many laptops): tighten the panel so whole columns
   fit without scrolling whenever that is possible at all. */
@media (min-width: 1100px) and (max-height: 820px) {
    .pc-mega-inner { gap: 1.25rem; padding-block: 1rem 1.25rem; }
    .pc-mega-cols { gap: 1rem 1.5rem; }
    .pc-link { padding-block: 0.35rem; }
    .pc-link-ico { width: 2rem; height: 2rem; }
    .pc-feature { padding: 1rem; }
}

/* Laptop: tighten */
@media (max-width: 1260px) and (min-width: 1100px) {
    .pc-top { font-size: 0.875rem; padding-inline: 0.55rem 0.1rem; }
    .pc-brand-text small { display: none; }
    .pc-actions .language-switch .pc-lang-long { display: none; }
    .pc-actions .language-switch .pc-lang-short { display: inline; }
}

/* Tablet + mobile: off-canvas drawer with accordions */
@media (max-width: 1099.98px) {
    .pc-burger { display: inline-grid; }
    /* backdrop-filter would make the header the containing block of the
       fixed drawer (clipping it to the header bar), so it is off here. */
    .pc-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--pc-surface); }
    .pc-nav {
        position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 80; height: 100vh; height: 100dvh;
        width: min(23rem, 88vw); display: flex; flex-direction: column;
        background: var(--pc-surface); box-shadow: var(--pc-shadow); overflow-y: auto; overscroll-behavior: contain;
        transform: translateX(-104%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }
    [dir='rtl'] .pc-nav { transform: translateX(104%); }
    .pc-nav.is-open { transform: none !important; visibility: visible; transition: transform 0.25s ease; }
    .pc-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--pc-line); position: sticky; top: 0; background: var(--pc-surface); z-index: 1; }
    .pc-nav-title { font-weight: 800; }
    .pc-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0.75rem; }
    .pc-item { border-bottom: 1px solid var(--pc-line); }
    .pc-top-row { border-radius: var(--pc-radius-sm); justify-content: space-between; }
    .pc-item.is-active .pc-top-row { box-shadow: none; }
    .pc-item:hover .pc-top-row, .pc-item:focus-within .pc-top-row { background: transparent; }
    .pc-top, [dir='rtl'] .pc-top { flex: 1; padding: 0.85rem 0.35rem; font-size: 1rem; color: var(--pc-text); }
    .pc-top-ico { display: inline-block; color: var(--pc-gold); }
    .pc-expand { width: 2.75rem; height: 2.75rem; margin: 0; border-radius: 999px; }
    .pc-expand:hover { background: var(--pc-surface-2); }
    .pc-mega { position: static; display: none; max-height: none; overflow-y: visible; opacity: 1; visibility: visible; transform: none; pointer-events: auto; box-shadow: none; border: 0; background: transparent; transition: none; }
    .pc-item.is-open > .pc-mega { display: block; }
    .pc-mega-inner, .pc-mega-inner.has-feature, .pc-mega-inner.pc-mega-fit-1, .pc-mega-inner.pc-mega-fit-2, .pc-mega-inner.pc-mega-wide { grid-template-columns: 1fr; gap: 1rem; padding: 0 0 1rem; width: 100%; }
    .pc-mega-cols, .pc-cols-2, .pc-cols-3, .pc-cols-4, .pc-cols-5, .pc-cols-6 { grid-template-columns: 1fr; gap: 1rem; max-width: none; }
    .pc-col-title { margin-bottom: 0.35rem; }
    .pc-link { padding: 0.45rem 0.4rem; }
    .pc-link-ico { width: 2rem; height: 2rem; }
    .pc-feature { padding: 1rem; }
    .pc-nav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 1rem 1.1rem 1.5rem; margin-top: auto; }
    .pc-nav-foot .pc-btn:only-child { grid-column: 1 / -1; }
    .pc-desk { display: none; }
}
@media (max-width: 560px) {
    .pc-bar { gap: 0.6rem; min-height: 4rem; }
    .pc-brand-mark { width: 2.4rem; height: 2.4rem; }
    .pc-brand-mark img { width: 1.75rem; height: 1.75rem; }
    .pc-brand-text strong { font-size: 1.125rem; }
    .pc-brand-text small { font-size: 0.6875rem; }
    .pc-actions { gap: 0.35rem; }
    .pc-actions .language-switch { padding-inline: 0.6rem; }
    .pc-actions .language-switch .pc-lang-long { display: none; }
    .pc-actions .language-switch .pc-lang-short { display: inline; }
}
@media (max-width: 380px) {
    .pc-brand-text small { display: none; }
}
@media (max-width: 720px) {
    /* One swipeable line instead of a tall wrapped trail */
    .breadcrumbs ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .breadcrumbs ol::-webkit-scrollbar { display: none; }
    .breadcrumbs [aria-current='page'] { max-width: 60vw; }
}
body.pc-lock { overflow: hidden; }
/* While the drawer is open the header (and its drawer) sit above every page layer. */
body.pc-lock .pc-header { z-index: 1000; }

/* ——— Breadcrumbs ——— */
.breadcrumbs { border-bottom: 1px solid var(--pc-line); background: var(--pc-surface); font-size: 0.8125rem; color: var(--pc-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0; margin: 0; padding: 0.6rem 0; list-style: none; line-height: 1.6; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; }
.breadcrumbs li + li::before { content: ''; width: 0.4rem; height: 0.4rem; margin-inline: 0.6rem; border-block-start: 1.5px solid var(--pc-faint); border-inline-end: 1.5px solid var(--pc-faint); transform: rotate(45deg); flex: none; }
[dir='rtl'] .breadcrumbs li + li::before { transform: rotate(-135deg); }
.breadcrumbs a { color: var(--pc-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pc-text); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current='page'] { color: var(--pc-text); font-weight: 650; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs .pc-i { width: 0.95rem; height: 0.95rem; color: var(--pc-gold); }
.breadcrumbs .pc-wrap { width: min(var(--pc-wrap), 100% - 2.5rem); }

/* ——— Footer ——— */
.pc-footer { margin-top: 4rem; background: var(--pc-foot-bg); color: var(--pc-foot-text); font-size: 0.9375rem; }
.pc-footer a { color: var(--pc-foot-muted); text-decoration: none; transition: color 0.15s; }
.pc-footer a:hover { color: #fff; }
.pc-foot-top { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: 3rem; padding-block: 3.5rem 2.5rem; }
.pc-foot-brand { display: grid; align-content: start; gap: 1rem; }
.pc-foot-brand p { margin: 0; color: var(--pc-foot-muted); font-size: 0.875rem; line-height: 2; }
.pc-brand-foot, .pc-brand-foot:hover { color: #fff; }
.pc-brand-foot .pc-brand-mark { background: #fff; border-color: transparent; }
.pc-brand-foot .pc-brand-mark img { filter: none !important; }
.pc-brand-foot .pc-brand-text small { color: #e3b93c; }
.pc-social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.pc-social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--pc-foot-line); border-radius: 12px; color: var(--pc-foot-text); background: rgb(255 255 255 / 3%); transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.pc-social a:hover { border-color: #e3b93c; color: #141414; background: #e3b93c; transform: translateY(-2px); }
.pc-social .pc-i { width: 1.2rem; height: 1.2rem; }
.pc-foot-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.pc-foot-group h2 { margin: 0 0 0.9rem; color: #fff; font-size: 0.9375rem; font-weight: 800; line-height: 1.5; }
.pc-foot-group h2::after { content: ''; display: block; width: 1.5rem; height: 2px; margin-top: 0.5rem; background: #e3b93c; border-radius: 2px; }
.pc-foot-group ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.pc-foot-group a { font-size: 0.875rem; line-height: 1.6; }
.pc-risk { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.1rem; border: 1px solid var(--pc-foot-line); border-radius: var(--pc-radius); background: rgb(255 255 255 / 3%); }
.pc-risk .pc-i { color: #e3b93c; margin-top: 0.2rem; }
.pc-risk p { margin: 0; color: var(--pc-foot-muted); font-size: 0.8125rem; line-height: 2; }
.pc-ip-notice { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 0.75rem; padding: 1rem 1.1rem; border: 1px solid var(--pc-foot-line); border-radius: var(--pc-radius); background: rgb(255 255 255 / 2%); }
.pc-ip-notice .pc-i { flex: none; margin-top: 0.2rem; color: #e3b93c; }
.pc-ip-notice p { margin: 0; color: var(--pc-foot-muted); font-size: 0.8125rem; line-height: 2; }
.pc-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.4rem 1.75rem; color: var(--pc-foot-muted); font-size: 0.8125rem; }
.pc-foot-bottom p { margin: 0; }
.pc-foot-bottom a { display: inline-flex; align-items: center; gap: 0.35rem; }
@media (max-width: 1000px) {
    .pc-foot-top { grid-template-columns: 1fr; gap: 2.25rem; }
}
@media (max-width: 720px) {
    .pc-foot-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
    .pc-foot-top { padding-block: 2.5rem 2rem; }
}

/* ——— Sign-in and sign-up screens ——— */
.pc-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--pc-bg); }
.pc-auth-side {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: clamp(2rem, 4vw, 3.5rem); overflow: hidden; background: #141414; color: #f2f2f5;
}
.pc-auth-side::before { content: ''; position: absolute; inset: auto -20% -35% auto; width: 34rem; height: 34rem; border-radius: 50%; background: radial-gradient(closest-side, rgb(227 185 60 / 22%), transparent); pointer-events: none; }
[dir='rtl'] .pc-auth-side::before { inset: auto auto -35% -20%; }
.pc-auth-side .pc-brand, .pc-auth-side .pc-brand:hover { color: #fff; }
.pc-auth-side .pc-brand-mark { background: #fff; border-color: transparent; }
.pc-auth-side .pc-brand-mark img { filter: none !important; }
.pc-auth-side .pc-brand-text small { color: #e3b93c; }
.pc-auth-pitch { position: relative; max-width: 30rem; }
.pc-auth-pitch h2 { margin: 0 0 0.75rem; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.5; }
.pc-auth-pitch p { margin: 0 0 1.5rem; color: #b9b9c3; line-height: 2; }
.pc-auth-points { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.pc-auth-points li { display: flex; gap: 0.75rem; align-items: flex-start; color: #e6e6ea; font-size: 0.9375rem; line-height: 1.8; }
.pc-auth-points .pc-i { color: #e3b93c; margin-top: 0.2rem; }
.pc-auth-side-foot { position: relative; color: #8d8d99; font-size: 0.8125rem; }
.pc-auth-main { display: flex; flex-direction: column; min-width: 0; }
.pc-auth-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem); }
.pc-auth-top .pc-auth-tools { display: flex; align-items: center; gap: 0.5rem; }
.pc-auth-mobile-brand { display: none; }
.pc-back { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.35rem 0.95rem; border: 1px solid var(--pc-line); border-radius: 999px; background: var(--pc-surface); color: var(--pc-text); font-size: 0.875rem; font-weight: 700; text-decoration: none; transition: border-color 0.15s; }
.pc-back:hover { border-color: var(--pc-brand); color: var(--pc-text); }
.pc-back .pc-i { width: 1.05rem; height: 1.05rem; transform: scaleX(-1); }
[dir='rtl'] .pc-back .pc-i { transform: none; }
.pc-auth-lang { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.5rem; padding: 0.35rem 0.85rem; border: 1px solid var(--pc-line); border-radius: 999px; background: var(--pc-surface); color: var(--pc-text); font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.pc-auth-lang .pc-i { width: 1.05rem; height: 1.05rem; color: var(--pc-gold); }
.pc-auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem clamp(1.25rem, 3vw, 2.5rem) 2.5rem; }
.pc-auth-card { width: 100%; max-width: 28rem; }
.pc-auth-card h1 { margin: 0 0 0.35rem; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); line-height: 1.45; }
.pc-auth-lead { margin: 0 0 1.5rem; color: var(--pc-muted); font-size: 0.9375rem; line-height: 1.9; }
.pc-auth-card label { display: grid; gap: 0.4rem; margin-bottom: 1rem; color: var(--pc-text); font-size: 0.875rem; font-weight: 650; }
.pc-auth-card input[type='text'], .pc-auth-card input[type='password'], .pc-auth-card input[type='email'], .pc-auth-card input[type='number'], .pc-auth-card input[type='tel'], .pc-auth-card select {
    width: 100%; min-height: 3rem; padding: 0.65rem 0.9rem; box-sizing: border-box;
    border: 1px solid var(--pc-line-strong); border-radius: 12px; background: var(--pc-surface); color: var(--pc-text);
    font: inherit; font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.pc-auth-card input:focus, .pc-auth-card select:focus { outline: none; border-color: var(--pc-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc-gold) 22%, transparent); }
.pc-auth-card .auth-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 3rem; padding: 0.6rem 1rem; border: 0; border-radius: 12px; background: var(--pc-brand); color: var(--pc-on-brand); font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.pc-auth-card .auth-button:hover { background: var(--pc-gold); color: #fff; }
.pc-auth-card .auth-button.secondary { background: var(--pc-surface-2); color: var(--pc-text); border: 1px solid var(--pc-line); }
.pc-auth-card .auth-error { margin-bottom: 1rem; padding: 0.75rem 1rem; border: 1px solid #e8b4ad; border-radius: 12px; background: #fdf0ee; color: #8a2a1e; font-size: 0.875rem; }
.pc-auth-card .auth-ok { margin-bottom: 1rem; padding: 0.75rem 1rem; border: 1px solid #a9dcc4; border-radius: 12px; background: #ebf7f1; color: #16643f; font-size: 0.875rem; }
[data-theme='dark'] .pc-auth-card .auth-error { background: #3a1814; border-color: #6d2c24; color: #f5b7ad; }
[data-theme='dark'] .pc-auth-card .auth-ok { background: #0f2a1f; border-color: #1f5a41; color: #9fe0c1; }
.pc-auth-card .field-error { color: #c0392b; font-size: 0.8125rem; font-weight: 600; }
.pc-auth-card .auth-alt { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--pc-line); color: var(--pc-muted); font-size: 0.8125rem; line-height: 1.9; }
.pc-auth-card a { color: var(--pc-gold-strong); font-weight: 650; }
[data-theme='dark'] .pc-auth-card a { color: var(--pc-gold); }
.pc-auth-card .auth-button, .pc-auth-card .auth-button:hover { color: var(--pc-on-brand); }
.pc-auth-card .auth-button:hover { color: #fff; }
.pc-auth-card .auth-divider { margin: 1rem 0; color: var(--pc-faint); font-size: 0.8125rem; text-align: center; }
.pc-auth-card .auth-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.25rem; margin-bottom: 1.5rem; padding: 0.25rem; border-radius: 999px; background: var(--pc-surface-2); border: 1px solid var(--pc-line); }
.pc-auth-card .auth-tabs a { padding: 0.5rem; border-radius: 999px; color: var(--pc-muted); text-align: center; text-decoration: none; font-size: 0.9375rem; font-weight: 700; }
.pc-auth-card .auth-tabs a.active { background: var(--pc-surface); color: var(--pc-text); box-shadow: var(--pc-shadow-sm); }
.pc-auth-card .auth-check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.pc-auth-card .auth-check input { margin-top: 0.4rem; width: 1rem; height: 1rem; accent-color: var(--pc-gold); }
.pc-auth-card .auth-hint { color: var(--pc-muted); font-size: 0.8125rem; font-weight: 400; }
.pc-auth-card .auth-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pc-auth-card .auth-row > * { flex: 1 1 8.75rem; }
.pc-auth-card .auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin: 1rem 0 0; font-size: 0.875rem; }
.pc-auth-card .auth-code { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; direction: ltr; }
.pc-auth-card .auth-box { margin: 0.75rem 0; padding: 0.85rem 1rem; border: 1.5px dashed var(--pc-gold); border-radius: 12px; background: var(--pc-gold-soft); font-size: 0.875rem; }
.pc-auth-card .auth-mono { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: embed; font-size: 1rem; }
/* Honeypots: clipped in place. Off-screen offsets (left:-9999px) widen the page in RTL/LTR. */
.grecaptcha-badge { visibility: hidden !important; }
.pc-fg-note { grid-column: 1 / -1; margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--pc-muted, #6b7280); }
.pc-fg-note a { color: inherit; text-decoration: underline; }
.pc-auth-card .auth-hp, .pc-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
    .pc-auth { grid-template-columns: 1fr; }
    .pc-auth-side { display: none; }
    .pc-auth-mobile-brand { display: inline-flex; }
    .pc-auth-body { align-items: flex-start; padding-top: 1.5rem; }
}
@media (max-width: 480px) {
    .pc-auth-mobile-brand .pc-brand-text small { display: none; }
    .pc-back span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-header *, .pc-footer *, .pc-nav, .pc-mega { transition: none !important; }
}

/* ——— Dark theme safety net for inline-styled blocks ———
   Views written with light inline colours stay readable in the dark theme. */
[data-theme='dark'] [style*="background: #f"],
[data-theme='dark'] [style*="background:#f"],
[data-theme='dark'] [style*="background-color: #f"],
[data-theme='dark'] [style*="background-color:#f"],
[data-theme='dark'] [style*="background: #e2e8f0"],
[data-theme='dark'] [style*="background:#e2e8f0"],
[data-theme='dark'] [style*="background-color: #e2e8f0"],
[data-theme='dark'] [style*="background-color:#e2e8f0"],
[data-theme='dark'] [style*="background: #ececec"],
[data-theme='dark'] [style*="background:#ececec"],
[data-theme='dark'] [style*="background-color: #ececec"],
[data-theme='dark'] [style*="background-color:#ececec"],
[data-theme='dark'] [style*="background: #eee"],
[data-theme='dark'] [style*="background:#eee"],
[data-theme='dark'] [style*="background-color: #eee"],
[data-theme='dark'] [style*="background-color:#eee"] { background-color: var(--pc-surface-2) !important; background-image: none !important; }
[data-theme='dark'] [style*="background: #fffbeb"],
[data-theme='dark'] [style*="background:#fffbeb"],
[data-theme='dark'] [style*="background-color: #fffbeb"],
[data-theme='dark'] [style*="background-color:#fffbeb"],
[data-theme='dark'] [style*="background: #fff7e6"],
[data-theme='dark'] [style*="background:#fff7e6"],
[data-theme='dark'] [style*="background-color: #fff7e6"],
[data-theme='dark'] [style*="background-color:#fff7e6"],
[data-theme='dark'] [style*="background: #fff4d6"],
[data-theme='dark'] [style*="background:#fff4d6"],
[data-theme='dark'] [style*="background-color: #fff4d6"],
[data-theme='dark'] [style*="background-color:#fff4d6"],
[data-theme='dark'] [style*="background: #fef3e2"],
[data-theme='dark'] [style*="background:#fef3e2"],
[data-theme='dark'] [style*="background-color: #fef3e2"],
[data-theme='dark'] [style*="background-color:#fef3e2"],
[data-theme='dark'] [style*="background: #fffbea"],
[data-theme='dark'] [style*="background:#fffbea"],
[data-theme='dark'] [style*="background-color: #fffbea"],
[data-theme='dark'] [style*="background-color:#fffbea"],
[data-theme='dark'] [style*="background: #fef9c3"],
[data-theme='dark'] [style*="background:#fef9c3"],
[data-theme='dark'] [style*="background-color: #fef9c3"],
[data-theme='dark'] [style*="background-color:#fef9c3"],
[data-theme='dark'] [style*="background: #fef3c7"],
[data-theme='dark'] [style*="background:#fef3c7"],
[data-theme='dark'] [style*="background-color: #fef3c7"],
[data-theme='dark'] [style*="background-color:#fef3c7"],
[data-theme='dark'] [style*="background: #fffdf5"],
[data-theme='dark'] [style*="background:#fffdf5"],
[data-theme='dark'] [style*="background-color: #fffdf5"],
[data-theme='dark'] [style*="background-color:#fffdf5"],
[data-theme='dark'] [style*="background: #faf3df"],
[data-theme='dark'] [style*="background:#faf3df"],
[data-theme='dark'] [style*="background-color: #faf3df"],
[data-theme='dark'] [style*="background-color:#faf3df"] { background-color: #33280d !important; }
[data-theme='dark'] [style*="background: #f9e9e9"],
[data-theme='dark'] [style*="background:#f9e9e9"],
[data-theme='dark'] [style*="background-color: #f9e9e9"],
[data-theme='dark'] [style*="background-color:#f9e9e9"],
[data-theme='dark'] [style*="background: #fde2e1"],
[data-theme='dark'] [style*="background:#fde2e1"],
[data-theme='dark'] [style*="background-color: #fde2e1"],
[data-theme='dark'] [style*="background-color:#fde2e1"],
[data-theme='dark'] [style*="background: #fef2f2"],
[data-theme='dark'] [style*="background:#fef2f2"],
[data-theme='dark'] [style*="background-color: #fef2f2"],
[data-theme='dark'] [style*="background-color:#fef2f2"],
[data-theme='dark'] [style*="background: #fee2e2"],
[data-theme='dark'] [style*="background:#fee2e2"],
[data-theme='dark'] [style*="background-color: #fee2e2"],
[data-theme='dark'] [style*="background-color:#fee2e2"] { background-color: #3a1814 !important; }
[data-theme='dark'] [style*="background: #e8f4ec"],
[data-theme='dark'] [style*="background:#e8f4ec"],
[data-theme='dark'] [style*="background-color: #e8f4ec"],
[data-theme='dark'] [style*="background-color:#e8f4ec"],
[data-theme='dark'] [style*="background: #e4f2ee"],
[data-theme='dark'] [style*="background:#e4f2ee"],
[data-theme='dark'] [style*="background-color: #e4f2ee"],
[data-theme='dark'] [style*="background-color:#e4f2ee"],
[data-theme='dark'] [style*="background: #edfbf3"],
[data-theme='dark'] [style*="background:#edfbf3"],
[data-theme='dark'] [style*="background-color: #edfbf3"],
[data-theme='dark'] [style*="background-color:#edfbf3"],
[data-theme='dark'] [style*="background: #f0fdf4"],
[data-theme='dark'] [style*="background:#f0fdf4"],
[data-theme='dark'] [style*="background-color: #f0fdf4"],
[data-theme='dark'] [style*="background-color:#f0fdf4"],
[data-theme='dark'] [style*="background: #dcfce7"],
[data-theme='dark'] [style*="background:#dcfce7"],
[data-theme='dark'] [style*="background-color: #dcfce7"],
[data-theme='dark'] [style*="background-color:#dcfce7"],
[data-theme='dark'] [style*="background: #ecfdf5"],
[data-theme='dark'] [style*="background:#ecfdf5"],
[data-theme='dark'] [style*="background-color: #ecfdf5"],
[data-theme='dark'] [style*="background-color:#ecfdf5"] { background-color: #0f2a1f !important; }
[data-theme='dark'] [style*="background: #e0f2fe"],
[data-theme='dark'] [style*="background:#e0f2fe"],
[data-theme='dark'] [style*="background-color: #e0f2fe"],
[data-theme='dark'] [style*="background-color:#e0f2fe"],
[data-theme='dark'] [style*="background: #eff6ff"],
[data-theme='dark'] [style*="background:#eff6ff"],
[data-theme='dark'] [style*="background-color: #eff6ff"],
[data-theme='dark'] [style*="background-color:#eff6ff"] { background-color: #0f2233 !important; }
[data-theme='dark'] [style^="color: #141414"],
[data-theme='dark'] [style*="; color: #141414"],
[data-theme='dark'] [style*=";color:#141414"],
[data-theme='dark'] [style^="color:#141414"],
[data-theme='dark'] [style^="color: #111"],
[data-theme='dark'] [style*="; color: #111"],
[data-theme='dark'] [style*=";color:#111"],
[data-theme='dark'] [style^="color:#111"],
[data-theme='dark'] [style^="color: #111827"],
[data-theme='dark'] [style*="; color: #111827"],
[data-theme='dark'] [style*=";color:#111827"],
[data-theme='dark'] [style^="color:#111827"],
[data-theme='dark'] [style^="color: #1f2937"],
[data-theme='dark'] [style*="; color: #1f2937"],
[data-theme='dark'] [style*=";color:#1f2937"],
[data-theme='dark'] [style^="color:#1f2937"],
[data-theme='dark'] [style^="color: #0f172a"],
[data-theme='dark'] [style*="; color: #0f172a"],
[data-theme='dark'] [style*=";color:#0f172a"],
[data-theme='dark'] [style^="color:#0f172a"],
[data-theme='dark'] [style^="color: #374151"],
[data-theme='dark'] [style*="; color: #374151"],
[data-theme='dark'] [style*=";color:#374151"],
[data-theme='dark'] [style^="color:#374151"],
[data-theme='dark'] [style^="color: #334155"],
[data-theme='dark'] [style*="; color: #334155"],
[data-theme='dark'] [style*=";color:#334155"],
[data-theme='dark'] [style^="color:#334155"] { color: var(--pc-text) !important; }
[data-theme='dark'] [style^="color: #5c5c5c"],
[data-theme='dark'] [style*="; color: #5c5c5c"],
[data-theme='dark'] [style*=";color:#5c5c5c"],
[data-theme='dark'] [style^="color:#5c5c5c"],
[data-theme='dark'] [style^="color: #5a6b7d"],
[data-theme='dark'] [style*="; color: #5a6b7d"],
[data-theme='dark'] [style*=";color:#5a6b7d"],
[data-theme='dark'] [style^="color:#5a6b7d"],
[data-theme='dark'] [style^="color: #8c8c8c"],
[data-theme='dark'] [style*="; color: #8c8c8c"],
[data-theme='dark'] [style*=";color:#8c8c8c"],
[data-theme='dark'] [style^="color:#8c8c8c"],
[data-theme='dark'] [style^="color: #64748b"],
[data-theme='dark'] [style*="; color: #64748b"],
[data-theme='dark'] [style*=";color:#64748b"],
[data-theme='dark'] [style^="color:#64748b"],
[data-theme='dark'] [style^="color: #475569"],
[data-theme='dark'] [style*="; color: #475569"],
[data-theme='dark'] [style*=";color:#475569"],
[data-theme='dark'] [style^="color:#475569"],
[data-theme='dark'] [style^="color: #3c4a59"],
[data-theme='dark'] [style*="; color: #3c4a59"],
[data-theme='dark'] [style*=";color:#3c4a59"],
[data-theme='dark'] [style^="color:#3c4a59"],
[data-theme='dark'] [style^="color: #666"],
[data-theme='dark'] [style*="; color: #666"],
[data-theme='dark'] [style*=";color:#666"],
[data-theme='dark'] [style^="color:#666"],
[data-theme='dark'] [style^="color: #8a8a8a"],
[data-theme='dark'] [style*="; color: #8a8a8a"],
[data-theme='dark'] [style*=";color:#8a8a8a"],
[data-theme='dark'] [style^="color:#8a8a8a"],
[data-theme='dark'] [style^="color: #5a4a2a"],
[data-theme='dark'] [style*="; color: #5a4a2a"],
[data-theme='dark'] [style*=";color:#5a4a2a"],
[data-theme='dark'] [style^="color:#5a4a2a"],
[data-theme='dark'] [style^="color: #8a7a5a"],
[data-theme='dark'] [style*="; color: #8a7a5a"],
[data-theme='dark'] [style*=";color:#8a7a5a"],
[data-theme='dark'] [style^="color:#8a7a5a"],
[data-theme='dark'] [style^="color: #4a4439"],
[data-theme='dark'] [style*="; color: #4a4439"],
[data-theme='dark'] [style*=";color:#4a4439"],
[data-theme='dark'] [style^="color:#4a4439"],
[data-theme='dark'] [style^="color: #6b7280"],
[data-theme='dark'] [style*="; color: #6b7280"],
[data-theme='dark'] [style*=";color:#6b7280"],
[data-theme='dark'] [style^="color:#6b7280"],
[data-theme='dark'] [style^="color: #4b5563"],
[data-theme='dark'] [style*="; color: #4b5563"],
[data-theme='dark'] [style*=";color:#4b5563"],
[data-theme='dark'] [style^="color:#4b5563"] { color: var(--pc-muted) !important; }
[data-theme='dark'] [style^="color: #dc2626"],
[data-theme='dark'] [style*="; color: #dc2626"],
[data-theme='dark'] [style*=";color:#dc2626"],
[data-theme='dark'] [style^="color:#dc2626"],
[data-theme='dark'] [style^="color: #b91c1c"],
[data-theme='dark'] [style*="; color: #b91c1c"],
[data-theme='dark'] [style*=";color:#b91c1c"],
[data-theme='dark'] [style^="color:#b91c1c"],
[data-theme='dark'] [style^="color: #b42318"],
[data-theme='dark'] [style*="; color: #b42318"],
[data-theme='dark'] [style*=";color:#b42318"],
[data-theme='dark'] [style^="color:#b42318"],
[data-theme='dark'] [style^="color: #991b1b"],
[data-theme='dark'] [style*="; color: #991b1b"],
[data-theme='dark'] [style*=";color:#991b1b"],
[data-theme='dark'] [style^="color:#991b1b"],
[data-theme='dark'] [style^="color: #7c2727"],
[data-theme='dark'] [style*="; color: #7c2727"],
[data-theme='dark'] [style*=";color:#7c2727"],
[data-theme='dark'] [style^="color:#7c2727"],
[data-theme='dark'] [style^="color: #b3261e"],
[data-theme='dark'] [style*="; color: #b3261e"],
[data-theme='dark'] [style*=";color:#b3261e"],
[data-theme='dark'] [style^="color:#b3261e"],
[data-theme='dark'] [style^="color: #a33"],
[data-theme='dark'] [style*="; color: #a33"],
[data-theme='dark'] [style*=";color:#a33"],
[data-theme='dark'] [style^="color:#a33"],
[data-theme='dark'] [style^="color: #c0392b"],
[data-theme='dark'] [style*="; color: #c0392b"],
[data-theme='dark'] [style*=";color:#c0392b"],
[data-theme='dark'] [style^="color:#c0392b"] { color: #f5b7ad !important; }
[data-theme='dark'] [style^="color: #15803d"],
[data-theme='dark'] [style*="; color: #15803d"],
[data-theme='dark'] [style*=";color:#15803d"],
[data-theme='dark'] [style^="color:#15803d"],
[data-theme='dark'] [style^="color: #166534"],
[data-theme='dark'] [style*="; color: #166534"],
[data-theme='dark'] [style*=";color:#166534"],
[data-theme='dark'] [style^="color:#166534"],
[data-theme='dark'] [style^="color: #205c34"],
[data-theme='dark'] [style*="; color: #205c34"],
[data-theme='dark'] [style*=";color:#205c34"],
[data-theme='dark'] [style^="color:#205c34"],
[data-theme='dark'] [style^="color: #059669"],
[data-theme='dark'] [style*="; color: #059669"],
[data-theme='dark'] [style*=";color:#059669"],
[data-theme='dark'] [style^="color:#059669"],
[data-theme='dark'] [style^="color: #047857"],
[data-theme='dark'] [style*="; color: #047857"],
[data-theme='dark'] [style*=";color:#047857"],
[data-theme='dark'] [style^="color:#047857"],
[data-theme='dark'] [style^="color: #065f46"],
[data-theme='dark'] [style*="; color: #065f46"],
[data-theme='dark'] [style*=";color:#065f46"],
[data-theme='dark'] [style^="color:#065f46"] { color: #9fe0c1 !important; }
[data-theme='dark'] [style^="color: #92400e"],
[data-theme='dark'] [style*="; color: #92400e"],
[data-theme='dark'] [style*=";color:#92400e"],
[data-theme='dark'] [style^="color:#92400e"],
[data-theme='dark'] [style^="color: #78350f"],
[data-theme='dark'] [style*="; color: #78350f"],
[data-theme='dark'] [style*=";color:#78350f"],
[data-theme='dark'] [style^="color:#78350f"],
[data-theme='dark'] [style^="color: #854d0e"],
[data-theme='dark'] [style*="; color: #854d0e"],
[data-theme='dark'] [style*=";color:#854d0e"],
[data-theme='dark'] [style^="color:#854d0e"],
[data-theme='dark'] [style^="color: #8a6d14"],
[data-theme='dark'] [style*="; color: #8a6d14"],
[data-theme='dark'] [style*=";color:#8a6d14"],
[data-theme='dark'] [style^="color:#8a6d14"],
[data-theme='dark'] [style^="color: #7c5c1d"],
[data-theme='dark'] [style*="; color: #7c5c1d"],
[data-theme='dark'] [style*=";color:#7c5c1d"],
[data-theme='dark'] [style^="color:#7c5c1d"],
[data-theme='dark'] [style^="color: #8a6d1b"],
[data-theme='dark'] [style*="; color: #8a6d1b"],
[data-theme='dark'] [style*=";color:#8a6d1b"],
[data-theme='dark'] [style^="color:#8a6d1b"],
[data-theme='dark'] [style^="color: #b45309"],
[data-theme='dark'] [style*="; color: #b45309"],
[data-theme='dark'] [style*=";color:#b45309"],
[data-theme='dark'] [style^="color:#b45309"],
[data-theme='dark'] [style^="color: #8a6d1b"],
[data-theme='dark'] [style*="; color: #8a6d1b"],
[data-theme='dark'] [style*=";color:#8a6d1b"],
[data-theme='dark'] [style^="color:#8a6d1b"] { color: #f3d27a !important; }
[data-theme='dark'] [style^="color: #0369a1"],
[data-theme='dark'] [style*="; color: #0369a1"],
[data-theme='dark'] [style*=";color:#0369a1"],
[data-theme='dark'] [style^="color:#0369a1"],
[data-theme='dark'] [style^="color: #1d4ed8"],
[data-theme='dark'] [style*="; color: #1d4ed8"],
[data-theme='dark'] [style*=";color:#1d4ed8"],
[data-theme='dark'] [style^="color:#1d4ed8"],
[data-theme='dark'] [style^="color: #27509e"],
[data-theme='dark'] [style*="; color: #27509e"],
[data-theme='dark'] [style*=";color:#27509e"],
[data-theme='dark'] [style^="color:#27509e"] { color: #8cc8f0 !important; }
[data-theme='dark'] [style*="solid #e"], [data-theme='dark'] [style*="solid #f"], [data-theme='dark'] [style*="solid #c"], [data-theme='dark'] [style*="solid #d"] { border-color: var(--pc-line) !important; }
[data-theme='dark'] table, [data-theme='dark'] th, [data-theme='dark'] td { border-color: var(--pc-line); }

@media print {
    .pc-header, .pc-footer, .breadcrumbs, .pc-scrim { display: none !important; }
}
.pc-foot-phone { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--pc-foot-text) !important; font-weight: 700; font-size: 0.9375rem; }
.pc-foot-phone .pc-i { color: #e3b93c; }
.pc-foot-phone:hover { color: #e3b93c !important; }

/* Phone bottom bar (phase 27): app-style shortcuts, hidden on wider screens. */
.pc-bottom { display: none; }
@media (max-width: 760px) {
  .pc-bottom {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 900;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--pc-surface, #fff); border-top: 1px solid var(--pc-line, rgba(0,0,0,.1));
    box-shadow: 0 -6px 18px rgba(0,0,0,.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .pc-bottom a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 58px; padding: 6px 2px; font-size: 11.5px; line-height: 1.2; font-weight: 600;
    color: var(--pc-muted, #666); text-decoration: none;
  }
  .pc-bottom a .pc-i { width: 22px; height: 22px; }
  .pc-bottom a.is-active { color: var(--pc-gold-strong, #8f6a12); }
  .pc-bottom a.is-active .pc-i { transform: translateY(-1px); }
  body:has(.pc-bottom) { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0)); }
  body.pc-lock .pc-bottom { display: none; }
}
@media print { .pc-bottom { display: none !important; } }

/* Reading progress (phase 27). */
.pc-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 1200;
  background: linear-gradient(90deg, var(--pc-gold, #d4a72c), var(--pc-gold-strong, #8f6a12));
  transform: scaleX(0); transform-origin: right center; pointer-events: none;
}
[dir="ltr"] .pc-progress { transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .pc-progress { transition: none; } }
@media print { .pc-progress { display: none; } }

/* ——— Back to top (platform, panel and journal) ——— */
.pc-to-top {
    position: fixed; inset-inline-end: 1rem; bottom: 1.1rem; z-index: 60;
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
    border: 1px solid var(--pc-line, #e3e6eb); border-radius: 999px; cursor: pointer;
    background: var(--pc-surface, #fff); color: var(--pc-text, #1c2330);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.15s;
}
.pc-to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.pc-to-top:hover { background: var(--pc-gold-soft, #faf3dc); border-color: var(--pc-gold, #c9a227); }
.pc-to-top:focus-visible { outline: 2px solid var(--pc-gold, #c9a227); outline-offset: 2px; }
@media print { .pc-to-top { display: none; } }

/* ——— English header: longer words, tighter menu ——— */
@media (min-width: 1100px) {
    html[lang^='en'] .pc-bar { gap: 0.85rem; }
    html[lang^='en'] .pc-menu { gap: 0; }
    html[lang^='en'] .pc-top { font-size: 0.875rem; padding-inline: 0.6rem 0.1rem; gap: 0.3rem; }
    html[lang^='en'] .pc-actions { gap: 0.35rem; }
}
@media (min-width: 1100px) and (max-width: 1320px) {
    html[lang^='en'] .pc-brand-text small { display: none; }
    html[lang^='en'] .pc-top { font-size: 0.8125rem; padding-inline: 0.45rem 0; }
    html[lang^='en'] .pc-lang-long { display: none; }
    html[lang^='en'] .pc-lang-short { display: inline; }
}

/* ——— Button pairs on narrow screens: stacked, centred, spaced ——— */
@media (max-width: 560px) {
    :where(p, div, form, nav, section):has(> :is(.panel-button, .pc-btn, .button, a.button-primary, a.button-secondary) + :is(.panel-button, .pc-btn, .button, a.button-primary, a.button-secondary)):not(.pc-nav-foot):not(.pc-actions):not(.pn-filters):not(.panel-table *) {
        display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem !important;
    }
    :where(p, div, form, nav, section):has(> :is(.panel-button, .pc-btn, .button) + :is(.panel-button, .pc-btn, .button)):not(.pc-nav-foot):not(.pc-actions):not(.pn-filters):not(.panel-table *) > :is(.panel-button, .pc-btn, .button, a.button-primary, a.button-secondary) {
        width: min(100%, 20rem); margin: 0 !important; text-align: center; justify-content: center;
    }
}

/* ——— Inquiry / verification fields: one aligned row ——— */
.pc-verify, form.verify-form, form[data-verify] {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; max-width: 36rem;
}
.pc-verify > input, form.verify-form > input, form[data-verify] > input,
.pc-verify > label, form.verify-form > label, form[data-verify] > label { flex: 1 1 14rem; min-width: 0; display: grid; gap: 0.35rem; margin: 0; font-weight: 600; }
.pc-verify > label > input { width: 100%; box-sizing: border-box; }
.pc-verify input, form.verify-form input, form[data-verify] input {
    height: 2.75rem; padding: 0 0.85rem; border: 1px solid var(--pc-line, #d9dde3); border-radius: 10px;
    background: var(--pc-surface, #fff); color: var(--pc-text, #1c2330); font: inherit; direction: ltr; text-align: center; letter-spacing: 0.06em; text-transform: uppercase;
}
.pc-verify input:focus, form.verify-form input:focus, form[data-verify] input:focus { outline: none; border-color: var(--pc-gold, #c9a227); box-shadow: 0 0 0 3px var(--pc-gold-soft, #faf3dc); }
.pc-verify button, form.verify-form button, form[data-verify] button { height: 2.75rem; flex: 0 0 auto; padding-inline: 1.25rem; }
@media (max-width: 560px) { .pc-verify button, form.verify-form button, form[data-verify] button { flex: 1 1 100%; } }

/* ——— Status messages: light tint, always dark text (readable in both themes) ——— */
.panel-alert { padding: 0.7rem 1rem; border-radius: 10px; border: 1px solid var(--pc-line, #e3e6eb); margin: 0 0 1rem; }
.panel-alert.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.panel-alert.danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.panel-alert.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.panel-alert.success a, .panel-alert.danger a, .panel-alert.warning a { color: inherit; text-decoration: underline; }
