:root {
  color-scheme: dark;
  --bg: #060816;
  --panel: rgba(255,255,255,.055);
  --panel-strong: rgba(255,255,255,.09);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --line: rgba(255,255,255,.12);
  --blue: #3b82f6;
  --teal: #5eead4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at top left, rgba(59,130,246,.22), transparent 26%), var(--bg); color: var(--text); font-family: Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, a, summary, button { overflow-wrap: anywhere; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(6,8,22,.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-size: 22px; font-weight: 900; }
nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 8px; font-weight: 800; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 16px 40px rgba(37,99,235,.28); }
.header-cta { white-space: nowrap; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.list-hero { padding: 96px 0 44px; }
.list-hero h1 { max-width: 920px; margin: 0 0 18px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: 0; }
.list-hero p { max-width: 780px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.article-list-section { padding: 20px 0 80px; }
.article-group { margin: 0 0 36px; }
.article-group h2 { margin: 0 0 14px; font-size: 24px; }
.article-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.article-link-grid a { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
.article-link-grid a:hover { background: var(--panel-strong); border-color: rgba(94,234,212,.32); }
.article-link-grid span { color: var(--teal); font-weight: 900; font-size: 13px; }
.article-layout { padding: 72px 0 88px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; align-items: start; }
.article-content { padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); }
.article-content h1 { margin: 12px 0 12px; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: 0; }
.article-content h2 { margin: 36px 0 14px; font-size: 26px; }
.article-content p, .article-content li { color: var(--muted); font-size: 17px; line-height: 1.85; }
.article-content ol, .article-content ul { padding-inline-start: 24px; }
.article-content a:not(.button) { color: var(--teal); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.article-read-next { padding-top: 16px; border-top: 1px solid var(--line); }
.article-cta { display: grid; gap: 14px; margin: 38px 0; padding: 24px; border: 1px solid rgba(94,234,212,.28); border-radius: 8px; background: rgba(94,234,212,.08); }
.article-cta strong { font-size: 22px; color: var(--text); }
.article-cta p { margin: 0; }
.article-cta div { display: flex; gap: 12px; flex-wrap: wrap; }
.article-meta { color: #778195; margin-bottom: 26px; }
.back-link { color: var(--teal); font-weight: 800; font-size: 14px; }
.related-card { position: sticky; top: 96px; display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.05); }
.related-card h2 { margin: 0 0 6px; font-size: 22px; }
.related-card a:not(.button) { color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.footer-inner strong { display: block; color: var(--text); font-size: 22px; margin-bottom: 8px; }
.footer-meta { text-align: right; }
.language-dropdown { position: relative; display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.language-dropdown summary { cursor: pointer; list-style: none; }
.language-dropdown summary::-webkit-details-marker { display: none; }
.language-dropdown div { position: absolute; right: 0; bottom: 28px; min-width: 170px; display: grid; gap: 2px; padding: 8px; border-radius: 8px; background: #0b1020; border: 1px solid var(--line); z-index: 30; box-shadow: 0 18px 36px rgba(0,0,0,.32); text-align: left; }
.language-dropdown a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--muted); }
.language-dropdown a:hover, .language-dropdown a[aria-current="true"] { color: var(--text); background: rgba(255,255,255,.06); }
body[dir="rtl"] .language-dropdown div { right: auto; left: 0; text-align: right; }
.root-select { min-height: 100vh; display: grid; align-items: center; padding: 70px 0; }
.root-select h1 { margin: 0 0 16px; font-size: clamp(44px, 8vw, 88px); letter-spacing: 0; }
.root-select p { color: var(--muted); font-size: 18px; }
.language-grid.root { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 28px; }
.language-option { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-weight: 800; }
.language-option span { color: var(--teal); font-size: 12px; font-weight: 800; }
.form-message.success { color: #5eead4; }
.form-message.error { color: #fca5a5; }
.submission-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.submission-card { width: min(520px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-align: center; }
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding: 14px 0; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; overflow-x: auto; }
  .article-link-grid, .article-grid, .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .related-card { position: static; }
}
