/* ════════════════════════════════════════════════════════════
   Chargah — site stylesheet (static build).
   Tokens come from the Chargah design system (deploy/site/tokens
   in the original export); this file is the single stylesheet for
   every page, so nothing is requested through @import chains.
   ════════════════════════════════════════════════════════════ */

/* ── Fonts (subset WOFF2, see site-src/tools/fonts.py) ── */
@font-face { font-family: 'IRANSansX'; src: url('../fonts/IRANSansX-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('../fonts/IRANSansX-Bold.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'B Titr'; src: url('../fonts/BTitrBd.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'A Rooznameh'; src: url('../fonts/ARooznameh.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IranNastaliq'; src: url('../fonts/IranNastaliq-wordmark.woff2') format('woff2'); font-weight: 400; font-display: block; }

/* ── Tokens ── */
:root {
  --gold: #C99A3A; --gold-bright: #E8B84B; --gold-deep: #A87C28;
  --teal: #2FA7A1; --teal-soft: #6FBDB8; --teal-deep: #1E7A75;
  --green: #4D7C59; --green-soft: #6FA87A; --lapis: #1E4E8C; --danger: #E24B4A;
  --navy: #0C1829; --navy-2: #111F35; --navy-3: #0F1E30; --navy-4: #16263F; --cream: #F5F0E5;

  --font-sans: 'IRANSansX', ui-sans-serif, system-ui, 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'B Titr', 'IRANSansX', ui-sans-serif, system-ui, sans-serif;
  --font-titr: 'B Titr', 'IRANSansX', sans-serif;
  --font-rooznameh: 'A Rooznameh', 'IRANSansX', sans-serif;
  --font-nastaliq: 'IranNastaliq', 'A Rooznameh', serif;
  --fs-eyebrow: 11px; --ls-eyebrow: 0.16em;

  --inner-max: 1100px; --content-max: 860px; --prose-max: 720px;
  --radius-xs: 2px; --radius-sm: 3px; --radius-md: 4px; --radius-lg: 6px; --radius-pill: 20px;
  --shadow-gold: 0 4px 24px rgba(201,154,58,.26); --shadow-gold-hover: 0 8px 32px rgba(201,154,58,.40);
  --shadow-teal: 0 4px 24px rgba(47,167,161,.22); --shadow-card: 0 2px 18px rgba(0,0,0,.35);
  --glow-teal: 0 0 7px rgba(47,167,161,.55); --glow-gold: 0 0 7px rgba(201,154,58,.55);
  --ease-out: cubic-bezier(.16,1,.3,1); --dur-fast: .2s; --dur-base: .25s; --dur-slow: .4s;
  --focus-ring: 0 0 0 3px rgba(201,154,58,.45);
  --header-h: 62px;
  /* touch target tokens */
  --tap: 44px;
}
:root, .theme-dark {
  --surface-page: #0C1829; --surface-section: #111F35; --surface-alt: #0F1E30;
  --surface-card: #111F35; --surface-card-hover: #16263F; --surface-inset: #16263F;
  --text-strong: rgba(245,240,229,1); --text-body: rgba(245,240,229,.78); --text-muted: rgba(245,240,229,.58); --text-faint: rgba(245,240,229,.36);
  --text-on-accent: #0C1829;
  --border: rgba(255,255,255,.10); --border-soft: rgba(255,255,255,.06); --grid-line: rgba(255,255,255,.10);
  --gold-tint: rgba(201,154,58,.07); --gold-line: rgba(201,154,58,.28);
  --teal-tint: rgba(47,167,161,.06); --teal-line: rgba(47,167,161,.22);
  --green-tint: rgba(77,124,89,.06); --green-line: rgba(77,124,89,.20);
  --gold-text: var(--gold); --teal-text: var(--teal);
}
.theme-light {
  --surface-page: #F5F0E5; --surface-section: #EFE8D8; --surface-alt: #FBF8F1;
  --surface-card: #FCFAF4; --surface-card-hover: #FFFFFF; --surface-inset: #EBE4D4;
  --text-strong: rgba(12,24,41,1); --text-body: rgba(12,24,41,.78); --text-muted: rgba(12,24,41,.6); --text-faint: rgba(12,24,41,.42);
  --text-on-accent: #0C1829;
  --border: rgba(12,24,41,.12); --border-soft: rgba(12,24,41,.07); --grid-line: rgba(12,24,41,.10);
  --gold-tint: rgba(201,154,58,.12); --gold-line: rgba(201,154,58,.42);
  --teal-tint: rgba(47,167,161,.10); --teal-line: rgba(47,167,161,.34);
  --green-tint: rgba(77,124,89,.10); --green-line: rgba(77,124,89,.32);
  --gold-text: var(--gold-deep); --teal-text: var(--teal-deep);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--surface-page); color: var(--text-strong); font-family: var(--font-sans); overflow-x: hidden; text-rendering: optimizeLegibility; }
.theme-light, .theme-dark { color: var(--text-strong); }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
::selection { background: rgba(201,154,58,.35); }
.ltr-isolate { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
@keyframes chargah-blink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .15; transform: scale(2); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); font-family: var(--font-sans); line-height: 1; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; transition: background var(--dur-base), border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base), color var(--dur-base), filter var(--dur-base); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: none; }
.btn svg { width: 13px; height: 13px; flex: none; }
.btn-primary { padding: 14px 30px; font-size: 15px; font-weight: 700; background: var(--gold); color: var(--text-on-accent); box-shadow: var(--shadow-gold); }
.btn-primary:hover { box-shadow: var(--shadow-gold-hover); }
.btn-teal { padding: 14px 30px; font-size: 15px; font-weight: 700; background: var(--teal); color: var(--navy); box-shadow: var(--shadow-teal); }
.btn-ghost { padding: 14px 26px; font-size: 15px; font-weight: 500; background: transparent; color: var(--text-strong); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold-line); background: var(--gold-tint); }
.btn-sm { padding: 11px 20px; font-size: 13px; min-height: 40px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; transform: none; }

/* ── Eyebrow ── */
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); padding: 5px 14px; border: 1px solid var(--gold-line); border-radius: var(--radius-xs); color: var(--gold-text); line-height: 1.4; }
.eyebrow-teal { border-color: var(--teal-line); color: var(--teal-text); }
.eyebrow .pip { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; animation: chargah-blink 2.4s infinite; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 56px; min-height: var(--header-h); background: rgba(12,24,41,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); color: var(--text-strong); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text-strong); }
.brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.brand .wordmark { font-family: var(--font-nastaliq); font-size: 26px; line-height: 1; padding-bottom: 3px; }
.site-nav { display: flex; gap: 26px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--text-body); padding: 8px 0; transition: color var(--dur-fast); }
.site-nav a:hover { color: var(--text-strong); }
.site-nav a[aria-current="page"], .site-nav a.is-section { color: var(--gold-text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: var(--tap); height: var(--tap); align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-strong); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
.reading-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--gold)); transform-origin: right; transform: scaleX(0); }

@media (max-width: 900px) {
  .site-header { padding: 10px 16px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
  .js .site-nav.open { display: flex; flex-direction: column; gap: 0; padding: 6px 0 4px; border-top: 1px solid var(--border); }
  .js .site-nav.open a { padding: 12px 4px; min-height: var(--tap); border-bottom: 1px solid var(--border-soft); }
  .header-cta { display: none; }
  .brand .wordmark { font-size: 23px; }
}

/* ── Footer ── */
.site-footer { background: var(--surface-page); color: var(--text-strong); padding: 56px 56px 32px; border-top: 1px solid var(--border); }
.footer-grid { max-width: var(--inner-max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 36px; }
.footer-grid h2 { font-size: 11px; letter-spacing: .14em; color: var(--text-faint); font-weight: 400; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid li a { display: inline-block; padding: 5px 0; font-size: 14px; color: var(--text-muted); text-decoration: none; line-height: 1.6; }
.footer-grid li a:hover { color: var(--gold-text); }
.footer-tagline { font-size: 15px; color: var(--gold-text); line-height: 1.9; margin: 12px 0 0; }
.footer-about { font-size: 13.5px; color: var(--text-muted); line-height: 1.9; margin: 10px 0 0; }
.footer-contact { font-size: 13.5px; color: var(--text-muted); line-height: 2.1; }
.footer-contact a { text-decoration: none; }
.footer-bottom { max-width: var(--inner-max); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .site-footer { padding: 44px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ── Migrated marketing pages (inline-styled sections) ── */
.legacy section[style*="padding"] { scroll-margin-top: 80px; }
@media (max-width: 768px) {
  .legacy section { padding-left: 20px !important; padding-right: 20px !important; padding-top: 56px !important; padding-bottom: 56px !important; }
  .legacy [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .legacy .chai-orn { display: none !important; }
  .legacy [style*="position: sticky"][style*="top: 63px"] { top: 0 !important; position: relative !important; }
  .legacy [style*="position: sticky"][style*="top: 63px"] > div > div { overflow-x: auto; }
  .legacy [style*="position: sticky"][style*="top: 63px"] a[data-go] { min-width: 110px; }
}

/* Landing-page ornaments (from the original landing) */
.chai-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .16em; color: var(--gold-text); border: 1px solid var(--gold-line); padding: 5px 14px; border-radius: 2px; }
.chai-eyebrow .pip { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: chargah-blink 2.4s infinite; }
.chai-sec { padding: 88px 56px; border-top: 1px solid var(--border); }
.chai-inner { max-width: 1100px; margin: 0 auto; }
.chai-h2 { font-family: var(--font-titr); font-size: clamp(1.7rem,3.2vw,2.6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.16; margin: 16px 0 12px; color: var(--text-strong); }
.chai-orn { position: absolute; pointer-events: none; }
.chai-orn > i { position: absolute; inset: 0; display: block; border: 1px solid var(--gold-line); }
.chai-orn > i:last-child { transform: rotate(45deg); }
.chai-orn > i::after { content: ""; position: absolute; inset: 22%; border: 1px solid var(--gold-line); opacity: .6; }
.chai-orn.big { width: 210px; height: 210px; opacity: .6; }
.chai-orn.sm { width: 118px; height: 118px; opacity: .52; }
.chai-node { width: 12px; height: 12px; background: var(--surface-card); border: 1px solid var(--gold-text); transform: rotate(45deg); position: relative; }
.chai-node::after { content: ""; position: absolute; inset: 3px; background: var(--gold-text); }
.chai-svc { display: flex; flex-direction: column; background: var(--surface-card); transition: background .25s ease; }
.chai-svc:hover { background: var(--surface-section); }
.chai-svc .bar { height: 3px; background: currentColor; opacity: .9; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.chai-svc:hover .bar { transform: scaleX(1); }
.chai-svc .body { padding: 24px 22px; display: flex; flex-direction: column; gap: 9px; }
.chai-mark { position: relative; width: 36px; height: 36px; flex: none; }
.chai-mark > i { position: absolute; inset: 0; border: 1.5px solid currentColor; }
.chai-mark > i:last-child { transform: rotate(45deg); }
.chai-mark > b { position: absolute; inset: 37%; background: currentColor; transform: rotate(45deg); }
.chai-tex { position: absolute; inset: 0; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cg fill='none' stroke='%23C99A3A' stroke-width='1'%3E%3Crect x='6' y='6' width='30' height='30'/%3E%3Crect x='6' y='6' width='30' height='30' transform='rotate(45 21 21)'/%3E%3Crect x='48' y='48' width='30' height='30'/%3E%3Crect x='48' y='48' width='30' height='30' transform='rotate(45 63 63)'/%3E%3C/g%3E%3C/svg%3E"); background-size: 84px 84px; }
.chai-tex.light { opacity: .06; }
.chai-divider { display: flex; align-items: center; justify-content: center; gap: 14px; }
.chai-divider .ln { height: 1px; width: 120px; background: linear-gradient(90deg, transparent, var(--gold-line)); }
.chai-divider .ln.r { background: linear-gradient(270deg, transparent, var(--gold-line)); }
.chai-divider .dm { width: 9px; height: 9px; border: 1px solid var(--gold-text); transform: rotate(45deg); position: relative; flex: none; }
.chai-divider .dm::after { content: ""; position: absolute; inset: 2.5px; background: var(--gold-text); opacity: .5; }
.js .chai-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .chai-reveal.in { opacity: 1; transform: none; }
.chai-feature { background: linear-gradient(155deg, var(--surface-card), var(--surface-card-hover)); position: relative; }
.chai-feature::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--gold), transparent); }
@media (max-width: 768px) { .chai-sec { padding: 56px 20px !important; } }

/* Section shell used by new sections on marketing pages */
.band { padding: 80px 56px; border-top: 1px solid var(--border); background: var(--surface-page); color: var(--text-strong); position: relative; overflow: hidden; }
.band-inner { max-width: var(--inner-max); margin: 0 auto; position: relative; }
.band-h2 { font-family: var(--font-titr); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 12px; }
.band-lead { font-size: 1.02rem; color: var(--text-muted); max-width: 620px; line-height: 1.9; margin: 0 0 36px; }
@media (max-width: 768px) { .band { padding: 56px 20px; } }

/* ── CHAI demo (static + site.js) ── */
.chai-demo { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.chai-demo .qs { display: flex; flex-direction: column; gap: 10px; }
.chai-demo .q { text-align: start; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: var(--text-strong); line-height: 1.5; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; min-height: var(--tap); transition: background .2s, border-color .2s; }
.chai-demo .q:hover { border-color: var(--gold-line); }
.chai-demo .q[aria-pressed="true"] { background: var(--gold-tint); border-color: var(--gold-line); }
.chai-demo .hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; line-height: 1.7; }
.chai-panel { border: 1px solid var(--teal-line); border-radius: var(--radius-lg); background: var(--surface-card); overflow: hidden; min-height: 260px; }
.chai-panel-head { padding: 12px 18px; border-bottom: 1px solid var(--teal-line); display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; color: var(--teal-text); background: var(--teal-tint); }
.chai-panel-head .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: chargah-blink 2.4s infinite; }
.chai-panel-body { padding: 22px; }
.chai-idle { font-size: 14px; color: var(--text-muted); line-height: 1.9; padding-top: 20px; text-align: center; }
.chai-ask { display: inline-block; background: var(--gold-tint); border: 1px solid var(--gold-line); border-radius: 3px 18px 18px 18px; padding: 12px 16px; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.chai-steps { list-style: none; margin: 0 0 18px; padding: 0; }
.chai-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--text-faint); }
.chai-steps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex: none; }
.chai-steps li.active { color: var(--text-strong); }
.chai-steps li.active::before { background: var(--gold); box-shadow: var(--glow-gold); }
.chai-steps li.done { color: var(--text-body); }
.chai-steps li.done::before { background: var(--teal); }
.chai-answer { background: var(--teal-tint); border: 1px solid var(--teal-line); border-radius: 18px 3px 18px 18px; padding: 18px 20px; font-size: 14.5px; line-height: 1.95; }
.chai-answer .tag { font-size: 11px; letter-spacing: .08em; color: var(--teal-text); display: block; margin-bottom: 8px; }
@media (max-width: 768px) { .chai-demo { grid-template-columns: 1fr; } }

/* ── Contact ── */
.contact-grid { max-width: var(--inner-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 1px; background: var(--grid-line); border: 1px solid var(--border); }
.contact-channels a { background: var(--surface-card); padding: 18px 22px; display: flex; align-items: center; gap: 14px; text-decoration: none; transition: background var(--dur-fast); }
.contact-channels a:hover { background: var(--surface-card-hover); }
.contact-channels .ci { font-size: 1.4rem; }
.contact-channels .cl { font-size: 12px; color: var(--text-faint); display: block; margin-bottom: 3px; }
.contact-channels .cv { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.contact-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 30px; }
.contact-form label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.contact-form .req { color: var(--danger); }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 15px; color: var(--text-strong); background: var(--surface-card-hover); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; min-height: var(--tap); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.contact-form input[dir="ltr"] { text-align: right; }
.contact-form textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.contact-form [aria-invalid="true"] { border-color: var(--danger); }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
.form-note { font-size: 12.5px; color: var(--text-faint); line-height: 1.8; margin: 14px 0 0; }
.form-status:empty { display: none; }
.form-status { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.85; border-radius: var(--radius-md); padding: 12px 14px; margin: 0 0 16px; border: 1px solid var(--border); background: var(--surface-inset); }
.form-status[data-kind="error"] { border-color: rgba(226,75,74,.45); background: rgba(226,75,74,.08); }
.form-status[data-kind="sending"] { border-color: var(--teal-line); background: var(--teal-tint); }
.form-status .ico { flex: none; font-weight: 700; }
.form-status a { color: var(--teal-text); font-weight: 700; }
.contact-done { text-align: center; padding: 40px 10px; }
.contact-done .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-tint); border: 1px solid var(--teal-line); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 24px; color: var(--teal-text); }
.contact-done h2 { font-family: var(--font-titr); font-size: 1.4rem; margin: 0 0 10px; }
.contact-done p { font-size: 14px; color: var(--text-muted); line-height: 1.85; max-width: 360px; margin: 0 auto; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } .contact-form .row2 { grid-template-columns: 1fr; gap: 0; } .contact-card { padding: 24px 18px; } }

/* ════════════════════ BLOG ════════════════════ */
.blog-hero { position: relative; overflow: hidden; background: var(--surface-section); padding: 84px 56px 64px; border-bottom: 1px solid var(--border); }
.blog-hero::after { content: ""; position: absolute; top: -40%; inset-inline-end: -10%; width: 760px; height: 760px; background: radial-gradient(circle, rgba(47,167,161,.13), transparent 62%); pointer-events: none; }
.blog-hero .band-inner { z-index: 1; }
.blog-hero h1 { font-family: var(--font-titr); font-size: clamp(2.1rem,4.4vw,3.5rem); font-weight: 900; line-height: 1.2; letter-spacing: -.02em; margin: 18px 0 14px; max-width: 760px; }
.blog-hero h1 em { font-style: normal; color: var(--gold); }
.blog-hero p { font-size: clamp(1rem,1.6vw,1.18rem); color: var(--text-body); line-height: 1.95; max-width: 640px; margin: 0; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 15px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 13.5px; color: var(--text-body); text-decoration: none; transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast); }
.cat-chip:hover { border-color: var(--gold-line); color: var(--text-strong); }
.cat-chip[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.cat-chip .n { font-size: 11.5px; opacity: .7; }

.blog-list { background: var(--surface-page); padding: 64px 56px 88px; }
.blog-list .band-inner { display: grid; gap: 48px; }
.section-label { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; color: var(--text-faint); margin: 0 0 18px; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.post-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base); }
.post-feature:hover { border-color: var(--gold-line); transform: translateY(-2px); box-shadow: 0 18px 50px rgba(12,24,41,.16); }
.post-feature .media { position: relative; aspect-ratio: 16/10; background: var(--navy); overflow: hidden; }
.post-feature .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }
.post-feature:hover .media img { transform: scale(1.03); }
.post-feature .txt { padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.post-feature h2 { font-family: var(--font-titr); font-size: clamp(1.45rem,2.4vw,2rem); line-height: 1.35; margin: 0; font-weight: 900; }
.post-feature p { margin: 0; font-size: 15px; line-height: 2; color: var(--text-muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base); }
.post-card:hover { border-color: var(--gold-line); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(12,24,41,.14); }
.post-card .media { aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }
.post-card:hover .media img { transform: scale(1.04); }
.post-card .txt { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 1.08rem; line-height: 1.7; margin: 0; font-weight: 800; }
.post-card p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--text-muted); flex: 1; }
.kicker { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--teal-text); }
.kicker::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--text-faint); }
.meta-line span { display: inline-flex; align-items: center; gap: 5px; }
.meta-line svg { width: 14px; height: 14px; opacity: .8; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .blog-hero { padding: 56px 20px 44px; }
  .blog-list { padding: 44px 20px 64px; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .txt { padding: 22px 20px 24px; }
  .post-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Topic hub strip on blog index ── */
.topic-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--grid-line); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.topic-strip a { background: var(--surface-card); padding: 22px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: background var(--dur-fast); }
.topic-strip a:hover { background: var(--surface-card-hover); }
.topic-strip b { font-size: 15px; }
.topic-strip span { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* ── Article ── */
.article-hero { position: relative; overflow: hidden; background: var(--surface-section); padding: 54px 56px 150px; }
.article-hero .chai-tex { opacity: .045; }
.article-hero::after { content: ""; position: absolute; top: -35%; inset-inline-start: -8%; width: 720px; height: 720px; background: radial-gradient(circle, rgba(201,154,58,.10), transparent 62%); pointer-events: none; }
.article-hero .band-inner { max-width: 960px; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-faint); margin: 0 0 26px; padding: 0; list-style: none; }
.crumbs a { color: var(--text-muted); text-decoration: none; padding: 4px 0; }
.crumbs a:hover { color: var(--gold-text); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--text-faint); }
.article-hero h1 { font-family: var(--font-titr); font-size: clamp(1.9rem,3.9vw,3.05rem); font-weight: 900; line-height: 1.32; letter-spacing: -.015em; margin: 16px 0 18px; }
.article-hero .dek { font-size: clamp(1.02rem,1.6vw,1.2rem); line-height: 2; color: var(--text-body); max-width: 760px; margin: 0 0 26px; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-4); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; flex: none; }
.avatar img { width: 22px; height: auto; filter: brightness(0) invert(1); }
.byline .who { font-size: 14px; font-weight: 700; }
.byline .meta-line { color: var(--text-muted); }

.article-cover { max-width: 1060px; margin: -118px auto 0; position: relative; z-index: 2; padding: 0 20px; }
.article-cover figure { margin: 0; }
.article-cover img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(12,24,41,.35); border: 1px solid rgba(255,255,255,.08); background: var(--navy); }
.article-cover figcaption { font-size: 12.5px; color: var(--text-faint); text-align: center; margin-top: 12px; line-height: 1.8; }

.reading { background: var(--surface-page); color: var(--text-strong); padding: 0 56px 40px; }
.article-wrap { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; padding-top: 48px; }
.article-aside { position: relative; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.toc { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); padding: 18px 18px 14px; }
.toc-title { font-size: 12px; letter-spacing: .12em; color: var(--text-faint); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; padding: 7px 0; font-size: 13.5px; line-height: 1.75; color: var(--text-muted); text-decoration: none; border-inline-start: 2px solid transparent; padding-inline-start: 10px; margin-inline-start: -12px; transition: color var(--dur-fast), border-color var(--dur-fast); }
.toc a::before { content: counter(toc, persian) "."; color: var(--text-faint); font-size: 12px; }
.toc a:hover { color: var(--text-strong); }
.toc a.active { color: var(--gold-text); border-inline-start-color: var(--gold); }
.toc-mobile { display: none; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-title { width: 100%; font-size: 12px; letter-spacing: .12em; color: var(--text-faint); margin: 0 0 2px; }
.share a, .share button { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-card); color: var(--text-body); cursor: pointer; text-decoration: none; transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast); }
.share a:hover, .share button:hover { border-color: var(--gold-line); color: var(--gold-text); transform: translateY(-1px); }
.share svg { width: 18px; height: 18px; }
.share .copied { border-color: var(--teal); color: var(--teal-text); }
.share-native { display: none !important; }
.can-share .share-native { display: inline-flex !important; }

/* Prose */
.prose { font-size: 17.5px; line-height: 2.1; color: var(--text-body); max-width: var(--prose-max); }
.prose > * + * { margin-top: 1.25em; }
.prose p { margin: 0; }
.prose > p + p { margin-top: 1.05em; }
.prose a { color: var(--teal-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--teal-line); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text-strong); font-weight: 700; }
.prose h2 { font-family: var(--font-titr); color: var(--text-strong); font-size: clamp(1.45rem,2.6vw,1.85rem); line-height: 1.45; font-weight: 900; margin: 2.1em 0 .2em; letter-spacing: -.01em; position: relative; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2::before { content: ""; display: inline-block; width: 10px; height: 10px; transform: rotate(45deg) translateY(-4px); border: 1.5px solid var(--gold); margin-inline-end: 12px; background: var(--gold-tint); }
.prose h3 { color: var(--text-strong); font-size: 1.16rem; line-height: 1.7; font-weight: 800; margin: 1.8em 0 .1em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold-text); font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 6px 22px; border-inline-start: 3px solid var(--gold); font-family: var(--font-rooznameh); font-size: 1.18em; line-height: 2; color: var(--text-strong); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }
.prose code { font-size: .88em; background: var(--surface-inset); padding: 2px 6px; border-radius: var(--radius-sm); direction: ltr; unicode-bidi: isolate; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.85; margin: 1.6em 0; display: block; overflow-x: auto; }
.prose thead th { background: var(--surface-inset); color: var(--text-strong); font-weight: 700; text-align: start; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; vertical-align: top; min-width: 120px; }
.prose tbody tr:nth-child(even) td { background: var(--surface-alt); }

.lede { font-size: 1.12em; line-height: 2.05; color: var(--text-strong); }
.tldr { border: 1px solid var(--gold-line); background: linear-gradient(160deg, var(--gold-tint), transparent 70%); border-radius: var(--radius-lg); padding: 22px 24px 18px; margin: 0 0 2em; }
.tldr-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold-text); letter-spacing: .04em; margin: 0 0 10px; }
.tldr-title svg { width: 14px; height: 14px; flex: none; }
.tldr ul { margin: 0; padding-inline-start: 1.2em; font-size: 15.5px; line-height: 2; }
.tldr li + li { margin-top: .25em; }

.callout { border-radius: var(--radius-lg); padding: 18px 22px; border: 1px solid var(--teal-line); background: var(--teal-tint); font-size: 16px; line-height: 2; }
.callout-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-text); margin: 0 0 6px; font-size: 14.5px; }
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
.callout-warn { border-color: rgba(226,75,74,.35); background: rgba(226,75,74,.06); }
.callout-warn .callout-title { color: #C0403F; }
.callout-gold { border-color: var(--gold-line); background: var(--gold-tint); }
.callout-gold .callout-title { color: var(--gold-text); }

.prose figure { margin: 2em 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-inset); }
.prose figcaption { font-size: 13.5px; color: var(--text-muted); line-height: 1.85; margin-top: 12px; text-align: center; padding: 0 10px; }
.prose figure.wide { margin-inline: -60px; }
.frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: 0 24px 60px rgba(12,24,41,.16), 0 2px 8px rgba(12,24,41,.06); }
.frame-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; background: #EEF0F4; border-bottom: 1px solid #DDE1E8; direction: ltr; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5D9E0; display: block; }
.frame-bar i:nth-child(1) { background: #F26D5F; } .frame-bar i:nth-child(2) { background: #F4BE4F; } .frame-bar i:nth-child(3) { background: #5BC466; }
.frame-bar .url { flex: 1; margin: 0 28px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid #DDE1E8; font: 11px/20px var(--font-sans); color: #6B7385; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prose .frame img { border: 0; border-radius: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery figure { margin: 0 !important; }

.faq { margin-top: 3em; }
.faq h2 { margin-top: 0 !important; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--text-strong); font-size: 16px; line-height: 1.8; display: flex; justify-content: space-between; gap: 12px; min-height: var(--tap); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-size: 20px; line-height: 1.4; flex: none; transition: transform var(--dur-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; font-size: 16px; line-height: 2; }

.article-foot { max-width: var(--prose-max); margin-top: 3em; display: grid; gap: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 13px; padding: 6px 13px; border-radius: var(--radius-pill); background: var(--surface-inset); color: var(--text-muted); text-decoration: none; }
.tags a:hover { color: var(--text-strong); }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-row .share-title { width: auto; margin: 0; }
.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border); }
.author-box .avatar { width: 52px; height: 52px; }
.author-box .avatar img { width: 28px; }
.author-box b { display: block; font-size: 15px; margin-bottom: 4px; }
.author-box p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--text-muted); }

.article-cta { position: relative; overflow: hidden; background: var(--navy-2); color: rgba(245,240,229,1); border-radius: var(--radius-lg); padding: 36px 34px; margin-top: 2.6em; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 1px solid rgba(201,154,58,.28); }
.article-cta .chai-tex { opacity: .06; }
.article-cta h2 { font-family: var(--font-titr); font-size: 1.5rem; margin: 0 0 8px !important; line-height: 1.5; color: #F5F0E5; }
.article-cta h2::before { display: none !important; }
.article-cta p { margin: 0; font-size: 15px; line-height: 1.95; color: rgba(245,240,229,.75); }
.article-cta .btn { position: relative; }
@media (max-width: 640px) { .article-cta { grid-template-columns: 1fr; padding: 28px 22px; } }

.related { background: var(--surface-section); padding: 64px 56px 80px; border-top: 1px solid var(--border); }
.related h2 { font-family: var(--font-titr); font-size: 1.6rem; margin: 0 0 26px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2.4em; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; background: var(--surface-card); transition: border-color var(--dur-fast); }
.post-nav a:hover { border-color: var(--gold-line); }
.post-nav small { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 6px; }
.post-nav span { font-size: 14.5px; font-weight: 700; line-height: 1.7; color: var(--text-strong); }
.post-nav .next { text-align: end; }

@media (max-width: 1000px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-aside { display: none; }
  .toc-mobile { display: block; margin: 0 0 2em; }
  .toc-mobile summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; padding: 14px 18px; min-height: var(--tap); display: flex; justify-content: space-between; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "▾"; color: var(--gold-text); }
  .toc-mobile[open] summary::after { content: "▴"; }
  .toc-mobile .toc { border: 0; padding-top: 0; background: transparent; }
  .toc-mobile { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); }
  .prose figure.wide { margin-inline: 0; }
}
@media (max-width: 768px) {
  .article-hero { padding: 36px 20px 112px; }
  .article-cover { margin-top: -90px; padding: 0 14px; }
  .reading { padding: 0 20px 28px; }
  .article-wrap { padding-top: 32px; }
  .prose { font-size: 16.5px; line-height: 2.05; }
  .gallery { grid-template-columns: 1fr; }
  .related { padding: 48px 20px 60px; }
  .post-nav { grid-template-columns: 1fr; }
  .frame-bar .url { margin: 0 8px; }
}

/* Reading area follows the reader's system theme. */
@media (prefers-color-scheme: dark) {
  .reading, .related, .blog-list {
    --surface-page: #0C1829; --surface-section: #0F1E30; --surface-alt: #0F1E30;
    --surface-card: #111F35; --surface-card-hover: #16263F; --surface-inset: #16263F;
    --text-strong: rgba(245,240,229,1); --text-body: rgba(245,240,229,.8); --text-muted: rgba(245,240,229,.6); --text-faint: rgba(245,240,229,.4);
    --border: rgba(255,255,255,.11); --border-soft: rgba(255,255,255,.06); --grid-line: rgba(255,255,255,.10);
    --gold-tint: rgba(201,154,58,.09); --gold-line: rgba(201,154,58,.34);
    --teal-tint: rgba(47,167,161,.08); --teal-line: rgba(47,167,161,.28);
    --gold-text: var(--gold); --teal-text: var(--teal-soft);
  }
  .reading .frame { border-color: rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
  .callout-warn .callout-title { color: #F08584; }
  .post-card:hover, .post-feature:hover { box-shadow: 0 16px 40px rgba(0,0,0,.4); }
}

/* ── 404 ── */
.notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
.notfound h1 { font-family: var(--font-titr); font-size: clamp(2rem,5vw,3.4rem); margin: 0 0 12px; }
.notfound p { color: var(--text-body); line-height: 1.9; margin: 0 0 28px; }

[data-account]{display:flex;align-items:center;gap:12px;font-size:13px}.account-link{color:inherit;white-space:nowrap}.account-menu{position:relative}.account-menu summary{cursor:pointer;color:#ead8ac}.account-menu form{position:absolute;inset-inline-end:0;top:30px;min-width:100px;background:#17283e;padding:10px;border:1px solid #50616a;border-radius:10px}.account-menu button{font:inherit;border:0;background:transparent;color:#fff;cursor:pointer;padding:8px}.account-toast{position:fixed;top:90px;left:24px;z-index:999;background:#e7f7ef;color:#15392f;padding:16px 22px;border-radius:12px;box-shadow:0 4px 25px #0002}@media(max-width:550px){.header-actions{gap:10px}[data-account]{gap:8px;font-size:12px}}

/* Account dialogs use the same Chargah palette and type scale. */
.auth-trigger{border-color:var(--gold-line);background:var(--gold-tint);min-height:var(--tap);gap:8px}.auth-trigger::before{content:"";display:block;width:15px;height:15px;border:1.5px solid var(--gold);border-radius:50%;box-shadow:inset 0 -5px 0 var(--gold-tint)}
body.auth-open{overflow:hidden}.auth-dialog{border:1px solid var(--gold-line);border-radius:var(--radius-lg);padding:0;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);background:var(--surface-card);color:var(--text-strong);box-shadow:0 24px 80px #0007;margin:auto;overflow:auto;font-family:var(--font-sans)}
.auth-dialog::backdrop{background:rgba(5,14,25,.75);backdrop-filter:blur(6px)}.auth-card{padding:34px;position:relative;border-top:3px solid var(--gold)}.auth-close{position:absolute;inset-inline-end:12px;top:10px;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--text-muted);font-size:28px;cursor:pointer}.auth-heading{padding-inline-end:20px}.auth-heading h2{font-family:var(--font-display);font-size:29px;margin:22px 0 8px}.auth-heading p{font-size:13px;color:var(--text-muted);line-height:1.9}.auth-tabs{display:flex;gap:24px;border-bottom:1px solid var(--border);margin:24px 0}.auth-tabs a{flex:1;text-align:center;padding:12px;text-decoration:none;font-size:14px;color:var(--text-muted);border-bottom:2px solid transparent}.auth-tabs a[aria-current]{color:var(--teal-text);border-color:var(--teal);font-weight:700}
.auth-form p{margin:0 0 18px}.auth-form label{display:block;font-size:13px;margin-bottom:8px}.auth-form input:not([type=hidden]){width:100%;min-height:46px;background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-strong);padding:12px;font:inherit}.auth-form input[type=password],.auth-form input[type=email]{direction:ltr;text-align:left}.auth-form .btn{width:100%}.auth-form .helptext{display:block;font-size:11px;color:var(--text-muted);line-height:1.9;margin-top:6px}.auth-form .helptext ul{padding-inline-start:18px}.auth-error,.auth-form .errorlist{color:#a3312f;font-size:13px;line-height:1.9}.auth-error:empty{display:none}.auth-form .errorlist{padding-inline-start:18px}
@media(max-width:550px){.auth-card{padding:26px 22px}.auth-heading h2{font-size:25px}.auth-trigger{padding:10px 13px;min-height:44px}.auth-trigger::before{display:none}}
