/* ---------- Design tokens ---------- */
:root {
  direction: rtl;
  --serif: "Vazirmatn", Tahoma, sans-serif;
  --sans: "Vazirmatn", Tahoma, sans-serif;
  --mono: "JetBrainsMono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ink: #173126;
  --ink-soft: #526b66;
  --ink-faint: #78908b;
  --paper: #fbfaf5;
  --paper-soft: #f3f1e7;
  --line: #d9dfd4;
  --accent: #167c70;      /* muted brick red — signal */
  --accent-soft: #e6f2ed;
  --link: #173b36;

  --max: 1160px;
  --max-narrow: 700px;
  --max-wide: 900px;
  --radius: 6px;
}

@font-face {
  font-family: "JetBrainsMono";
  src: url("/static/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMono";
  src: url("/static/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMono";
  src: url("/static/fonts/JetBrainsMono-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap        { max-width: var(--max);        margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--max-narrow);  margin: 0 auto; padding: 0 24px; }
.wrap-wide   { max-width: var(--max-wide);    margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-logo { width: 34px; height: 34px; display: block; }
.brand .amp { color: var(--accent); font-style: italic; }
.brand-word, .footer-logo, .brand-label { font-family: var(--mono); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.cats {
  display: flex;
  gap: 18px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.cats a:hover { color: var(--ink); }
.cats a.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.search input {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: var(--sans);
  width: 170px;
  background: var(--paper-soft);
}
.search input:focus { outline: none; border-color: var(--ink-faint); }

.write-btn {
  border: 1px solid var(--ink);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.write-btn:hover { background: var(--ink); color: var(--paper); }
.dashboard-link { display: inline-flex; align-items: center; gap: 7px; }
.dashboard-icon { font-family: var(--mono); font-size: 15px; line-height: 1; color: #e2bd5e; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .cats, .search { display: none; width: 100%; order: 3; }
  .header-inner.nav-open { flex-wrap: wrap; height: auto; padding-bottom: 12px; }
  .header-inner.nav-open .cats,
  .header-inner.nav-open .search { display: flex; }
  .header-inner.nav-open .cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 0 2px; overflow: visible; }
  .header-inner.nav-open .cats a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.62); text-align: center; white-space: normal; line-height: 1.35; }
  .header-inner.nav-open .cats a.active { border-color: #d6b35a; background: #f8edc9; }
  .header-inner.nav-open .search { display: block; padding-top: 8px; }
  .header-inner.nav-open .search input { width: 100%; min-height: 42px; }
}

/* ---------- Featured hero ---------- */
main { min-height: 60vh; }
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.featured-text h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  margin: 12px 0 14px;
  letter-spacing: -0.01em;
}
.featured-text p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.featured-img {
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--paper-soft);
}
.featured-img img,
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.featured-img.placeholder {
  background-image: linear-gradient(135deg, #efe6e2 0%, #f6f1ee 60%, #ece7f2 100%);
}

@media (max-width: 760px) {
  .wrap, .wrap-narrow, .wrap-wide { padding-left: 16px; padding-right: 16px; }
  .featured { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
  .featured-img { aspect-ratio: 16 / 10; }
  .featured-text h1 { font-size: 30px; }
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  padding: 44px 0 60px;
}
.card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.card-img {
  aspect-ratio: 16 / 10;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--paper-soft);
  margin-bottom: 14px;
}
.card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }

.card-img.placeholder {
  background-image: linear-gradient(135deg, #efe6e2 0%, #f6f1ee 60%, #ece7f2 100%);
}
.card h2 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin: 2px 0 6px;
  font-weight: 700;
  min-height: 2.6em;
}
.card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
}

@media (max-width: 900px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid { gap: 20px; padding-top: 28px; } .card { padding: 10px; } .card-img { margin-bottom: 12px; } .card h2 { font-size: 18px; } .card p { font-size: 14px; } }

.empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 90px 0;
  font-size: 16px;
}
.empty a { color: var(--accent); font-weight: 600; }

/* ---------- Pills / meta ---------- */
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  min-width: 92px;
  text-align: center;
  border-radius: 999px;
}
.pill.small { font-size: 11px; padding: 2px 8px; min-width: 78px; }

.meta {
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-analysis {
  font-family: var(--mono);
  font-size: 11px;
  background: #eef1fb;
  color: #33409a;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ---------- Article ---------- */
.post-head { padding: 48px 0 28px; }
.post-head h1 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.18;
  font-weight: 700;
  margin: 14px 0 14px;
  letter-spacing: -0.01em;
}
.cover {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: var(--paper-soft);
  border-radius: var(--radius);
  margin-bottom: 8px;
  display: block;
}

.post-body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  color: #242424;
  padding: 20px 0 40px;
}
.post-body h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 34px 0 14px;
}
.post-body p { margin: 0 0 24px; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body img { max-width: 100%; border-radius: var(--radius); }
.post-body video, .post-body iframe { max-width: 100%; }
.post-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}
.post-body ul, .post-body ol { margin: 0 0 24px; padding-left: 28px; }
.post-body li { margin-bottom: 8px; }
.post-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0 28px;
  font-family: var(--sans);
  font-size: 15px;
}
.post-body th, .post-body td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.post-body th { background: var(--paper-soft); font-weight: 600; }
.post-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--paper-soft);
  padding: 2px 5px;
  border-radius: 4px;
}
.post-body pre {
  background: #1e1e1e;
  color: #e6e6e6;
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 8px 0 28px;
  font-size: 14px;
  line-height: 1.55;
}
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* Jupyter notebook output styling (nbconvert 'basic' template) */
.post-body.notebook {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.7;
}
.post-body.notebook .jp-Cell,
.post-body.notebook .cell { margin-bottom: 26px; }
.post-body.notebook .code_cell {
  background: rgba(255,255,255,.58);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(23,59,54,.06);
}
.post-body.notebook .input,
.post-body.notebook .output_wrapper { padding: 0; }
.post-body.notebook .input_area,
.post-body.notebook .output_area {
  direction: ltr;
  text-align: left;
}
.post-body.notebook .highlight pre,
.post-body.notebook div.input_area pre {
  background: #102f2b;
  color: #e6efe9;
  border-radius: 0;
  border: 0;
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  tab-size: 4;
  direction: ltr;
  text-align: left;
}
.post-body.notebook .output_area {
  margin: 0;
  padding: 18px 20px 20px;
  background: rgba(243,241,231,.72);
  border-top: 1px solid var(--line);
  overflow-x: auto;
}
.post-body.notebook .output {
  margin: 0;
}
.post-body.notebook .output_html,
.post-body.notebook .output_text,
.post-body.notebook .output_stream {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.post-body.notebook .output_text,
.post-body.notebook .output_stream,
.post-body.notebook .output_stderr {
  white-space: pre-wrap;
  direction: ltr;
  text-align: left;
  font-family: var(--mono);
  line-height: 1.65;
}
.post-body.notebook .output_area img,
.post-body.notebook .jp-OutputArea img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  height: auto;
  display: block;
  margin: 0 auto;
}
.post-body.notebook .dataframe {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-family: var(--sans);
  font-size: 13px;
  margin: 0;
  background: var(--paper);
}
.post-body.notebook .dataframe th,
.post-body.notebook .dataframe td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  white-space: nowrap;
}
.post-body.notebook .dataframe thead th { background: #e6f2ed; color: var(--ink); font-weight: 700; }
.post-body.notebook .dataframe tbody tr:nth-child(even) { background: rgba(243,241,231,.65); }
.post-body.notebook .dataframe tbody tr:hover { background: #f8edc9; }
.post-body.notebook .output_stderr { color: #b1361e; font-family: var(--mono); font-size: 13px; }
.post-body.notebook .prompt { display: none; } /* nbconvert In[]/Out[] labels, hidden for a clean read */
.post-body.notebook .math { overflow-x: auto; }
.post-body.notebook h1,
.post-body.notebook h2,
.post-body.notebook h3 { color: var(--ink); }

@media (max-width: 640px) {
  .post-body.notebook .highlight pre,
  .post-body.notebook .output_area { padding: 14px; }
  .post-body.notebook .code_cell { border-radius: 10px; }
  .post-body.notebook .dataframe { min-width: 480px; font-size: 12px; }
}

@media (max-width: 640px) {
  .post-head h1 { font-size: 30px; }
  .post-body { font-size: 18px; }
}

/* ---------- Admin actions ---------- */
.admin-actions {
  display: flex;
  gap: 16px;
  padding: 16px 0 60px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.admin-actions a { font-weight: 600; }
.admin-actions form button {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.more-section { padding-top: 20px; border-top: 1px solid var(--line); }
.more-section h3 { font-family: var(--serif); font-size: 20px; margin: 40px 0 4px; }

/* ---------- Editor form ---------- */
.editor { display: flex; flex-direction: column; gap: 18px; padding: 8px 0 70px; }
.editor label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.editor .hint { font-weight: 400; color: var(--ink-faint); text-transform: none; letter-spacing: 0; }
.editor input[type=text],
.editor input[type=url],
.editor textarea,
.editor select {
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--paper-soft);
  resize: vertical;
}
.editor textarea[name=text_content] { font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.editor input:focus, .editor textarea:focus, .editor select:focus {
  outline: none; border-color: var(--accent); background: var(--paper);
}
.editor .row { display: flex; gap: 18px; }
.editor .row label { flex: 1; }
.editor .checkbox { flex-direction: row; align-items: center; gap: 8px; }
.editor .checkbox input { width: auto; }
.submit-btn {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 20px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.submit-btn:hover { background: var(--accent); }

h1, h2, h3 { font-family: var(--serif); }

/* ---------- Analytical footer ---------- */
.site-footer {
  margin-top: 72px;
  font-family: var(--sans);
  color: #dce9e2;
  background: linear-gradient(135deg, #102f2b 0%, #173b36 58%, #23524a 100%);
  border-top: 4px solid #d6b35a;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(120deg, black, transparent 75%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 56px;
  padding-top: 46px;
  padding-bottom: 40px;
}
.footer-brand { max-width: 430px; }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 25px; font-weight: 800; }
.footer-logo .brand-mark { color: #e2bd5e; }
.footer-logo-image { width: 34px; height: 34px; display: block; }
.footer-brand p { color: #b8cec4; line-height: 1.9; margin: 14px 0 18px; font-size: 14px; }
.footer-signal { display: inline-flex; align-items: center; gap: 8px; color: #e2bd5e; font-family: var(--sans); font-size: 14px; line-height: 1.9; direction: rtl; letter-spacing: 0; }
.footer-signal span { width: 8px; height: 8px; border-radius: 50%; background: #55c68a; box-shadow: 0 0 0 4px rgba(85,198,138,.15); }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h3 { color: #fff; font-size: 14px; margin: 2px 0 10px; }
.footer-column a, .footer-admin-link { color: #b8cec4; font-size: 13px; transition: color .2s ease; }
.footer-column a:hover, .footer-admin-link:hover { color: #e2bd5e; }
.donate-link { color: #f0cc6a !important; font-weight: 700; }
.footer-admin-link { background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(220,233,226,.16); padding-top: 18px; padding-bottom: 20px; color: #94b0a4; font-size: 11px; }
.footer-code { color: #d6b35a; font-family: var(--sans); font-size: 13px; line-height: 1.9; direction: rtl; letter-spacing: 0; }

/* ---------- Login form ---------- */
.form-error {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 8px;
}
.login-unavailable { border: 1px solid var(--line); background: var(--paper-soft); border-radius: 10px; padding: 16px 18px; color: var(--ink-soft); line-height: 1.9; }
.settings-saved { background: #e4f5e9; color: #1c7a3c; border-radius: 10px; padding: 10px 14px; }

/* ---------- Admin dashboard ---------- */
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 0 24px;
}
.admin-head h1 { margin: 0; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 60px;
}
.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  vertical-align: middle;
}
.admin-table a { font-weight: 600; }
.status-btn {
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}
.status-btn.published { background: #e4f5e9; color: #1c7a3c; }
.status-btn.draft { background: var(--paper-soft); color: var(--ink-faint); border: 1px solid var(--line); }
.row-actions { display: flex; gap: 14px; white-space: nowrap; }
.row-actions form button {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* Persian visual language */
body { background: radial-gradient(circle at top left, #f1ead6 0, transparent 34%), var(--paper); }
.site-header { background: rgba(251,250,245,.94); border-bottom: 3px solid #d6b35a; }
.brand { font-size: 23px; letter-spacing: 0; }
.brand-mark { color: #d6a72c; margin-left: 6px; }
.cats { gap: 20px; }
.cats a.active { border-bottom-color: #d6b35a; }
.write-btn, .submit-btn { background: #173b36; color: #fff; border-color: #173b36; border-radius: 10px; }
.write-btn:hover, .submit-btn:hover { background: #b7821b; border-color: #b7821b; }
.featured { background: linear-gradient(135deg, rgba(22,124,112,.10), rgba(214,179,90,.12)); border: 1px solid #d9dfd4; border-radius: 18px; padding: 34px; margin-top: 34px; }
.featured-img, .card-img { border-radius: 14px; }
.card { background: rgba(255,255,255,.58); border: 1px solid var(--line); border-radius: 14px; padding: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23,59,54,.12); }
.pill { color: #a87914; background: #f8edc9; }
.post-head { padding-top: 58px; }
.post-body blockquote { border-left: 0; border-right: 4px solid #d6b35a; padding: 4px 20px 4px 0; }
.post-body ul, .post-body ol { padding-left: 0; padding-right: 28px; }
.post-body th, .post-body td { text-align: right; }
.editor input, .editor textarea, .editor select { background: #fffef9; border-radius: 10px; }
.admin-table th, .admin-table td { text-align: right; }
@media (max-width: 760px) { .featured { padding: 20px; margin-top: 20px; } }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } .footer-brand { grid-column: auto; } .footer-bottom { align-items: flex-start; flex-direction: column; } }


/* ---------- Dashboard tabs & diagnostics ---------- */
.admin-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.admin-tabs a { padding: 10px 2px; color: var(--ink-soft); border-bottom: 3px solid transparent; font-weight: 600; }
.admin-tabs a.active { color: var(--ink); border-bottom-color: #d6b35a; }
.diagnostics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 28px; }
.diagnostic-card { display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.diagnostic-card span { color: var(--ink-soft); font-size: 14px; }
.diagnostic-card strong { font-size: 28px; color: var(--ink); }
.diagnostic-card strong.ok { color: #1c7a3c; }
.diagnostic-card strong.bad { color: #b1361e; }
.diagnostic-card small, .diagnostics-note { color: var(--ink-faint); font-size: 12px; }
.attachments { border-top: 1px solid var(--line); padding: 22px 0 34px; }
.attachments h3 { margin: 0 0 10px; }
.attachments ul { margin: 0; padding-right: 22px; }
.attachments li { margin: 6px 0; }
.attachments a { color: var(--accent); text-decoration: underline; }
@media (max-width: 760px) { .diagnostics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .diagnostics-grid { grid-template-columns: 1fr; } }


/* Cover image picker */
.cover-picker { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
.cover-picker legend { padding: 0 8px; font-weight: 600; }
.cover-picker select, .cover-picker input[type=file] { width: 100%; }
.cover-preview { margin-top: 12px; max-width: 280px; }
.cover-preview img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* SEO/readership and author tools */
.readership-band{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 40px;padding:22px 26px;background:#173b36;color:#fff;border-radius:16px}.readership-band span{display:block;color:#cfe0d7;font-size:13px;margin-top:5px}.article-readership{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:28px auto;padding:18px 20px;background:#f3f7f3;border:1px solid var(--line);border-radius:14px}.article-readership > div:first-child span{display:block;color:var(--muted);font-size:13px;margin-top:5px}.top-countries{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center}.top-countries small{width:100%;color:var(--muted);font-size:11px}.top-countries span{font-size:12px;color:var(--muted);white-space:nowrap}.top-countries b{color:var(--ink);margin-right:2px}.donate-button{background:#e2bd5e;color:#173b36;padding:10px 16px;border-radius:999px;font-weight:700;white-space:nowrap}.donate-cta{margin:28px 0;padding:20px;background:#f8edc9;border:1px solid #e2bd5e;border-radius:14px}.about-page{padding:60px 0;min-height:45vh}.profile-photo{width:150px;height:150px;object-fit:cover;border-radius:50%;border:4px solid #e2bd5e;margin-bottom:20px}.live-editor,.live-output{width:100%;direction:ltr;text-align:left;font-family:var(--mono);border:1px solid var(--line);border-radius:10px;padding:14px}.live-output{min-height:100px;background:#102f2b;color:#e6efe9;margin-top:18px;white-space:pre-wrap}.post-body .codehilite{direction:ltr;text-align:left}.post-body .codehilite pre{background:#102f2b}.admin-tabs{flex-wrap:wrap}@media(max-width:600px){.readership-band,.article-readership{flex-direction:column;align-items:flex-start}}
.print-btn{border:1px solid var(--line);background:var(--paper-soft);color:var(--ink);border-radius:999px;padding:7px 13px;font:inherit;cursor:pointer;margin-top:14px}.print-btn:hover{background:#e2bd5e}@media print{.site-header,.site-footer,.more-section,.admin-actions,.post-tools,.donate-cta{display:none!important}.post-body{max-width:none!important;color:#000}.post-head{padding-top:0}}
/* Automatic Markdown language direction */
.post-body.content-rtl { direction: rtl; text-align: right; }
.post-body.content-ltr { direction: ltr; text-align: left; }
.post-body.content-rtl ul, .post-body.content-rtl ol { padding-right: 28px; padding-left: 0; }
.post-body.content-ltr ul, .post-body.content-ltr ol { padding-left: 28px; padding-right: 0; }
.post-body.content-ltr blockquote { border-left: 4px solid #d6b35a; border-right: 0; padding: 4px 0 4px 20px; }
.post-body.content-rtl blockquote { border-right: 4px solid #d6b35a; border-left: 0; padding: 4px 20px 4px 0; }
.post-body.content-ltr th, .post-body.content-ltr td { text-align: left; }
.post-body.content-rtl th, .post-body.content-rtl td { text-align: right; }
.post-body :where(code, pre, .codehilite, .highlight, .input_area, .output_area) { direction: ltr; text-align: left; }
.analytics-columns{display:grid;grid-template-columns:2fr 1fr;gap:28px}.analytics-columns h2{font-size:20px;margin:10px 0 8px}@media(max-width:760px){.analytics-columns{grid-template-columns:1fr}}


/* ---------- S3 storage admin ---------- */
.storage-panel { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.58); }
.storage-panel h2 { margin: 0 0 14px; font-size: 20px; }
.storage-inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.storage-inline-form input, .storage-inline-form select, .storage-bucket input { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font: inherit; background: #fffef9; }
.storage-inline-form input, .storage-inline-form select { flex: 1 1 220px; min-width: 0; }
.storage-buckets { display: grid; gap: 10px; }
.storage-bucket { display: grid; grid-template-columns: 1fr auto minmax(180px, 260px) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.storage-bucket a { font-weight: 700; color: var(--ink); }
.storage-bucket small { color: var(--ink-faint); direction: ltr; }
.storage-bucket form { display: flex; gap: 6px; }
.danger-btn { border: 1px solid #b1361e; color: #b1361e; background: transparent; border-radius: 9px; padding: 8px 12px; font: inherit; cursor: pointer; }
.storage-objects { margin-top: 16px; display: grid; gap: 6px; }
.storage-objects > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.storage-objects code { direction: ltr; overflow-wrap: anywhere; }
.storage-objects span { color: var(--ink-faint); white-space: nowrap; font-size: 12px; }
@media (max-width: 700px) { .storage-bucket { grid-template-columns: 1fr; } .storage-bucket form { flex-wrap: wrap; } .storage-bucket input { flex: 1; min-width: 0; } .storage-objects > div { align-items: flex-start; flex-direction: column; gap: 3px; } }

.share-bar{max-width:1180px;margin:14px auto 0;padding:8px 18px;display:flex;gap:8px;align-items:center;justify-content:flex-start;font-size:.88rem;color:#55706a}.share-bar button,.share-bar a{border:1px solid #c8d7d0;background:#fff;color:#23564d;border-radius:999px;padding:5px 12px;text-decoration:none;cursor:pointer;font:inherit}.share-bar button:hover,.share-bar a:hover{background:#edf5f1}

/* ---------- Public intelligence workspace ---------- */
.intel-nav-link { color: #a87914 !important; font-weight: 800; }
.intelligence-page { padding-bottom: 78px; }
.intelligence-hero { margin: 42px 0 22px; padding: 34px 38px; min-height: 218px; display:flex; align-items:center; justify-content:space-between; gap:28px; overflow:hidden; border:1px solid #cad9d0; border-radius:24px; background: radial-gradient(circle at 85% 20%, rgba(214,179,90,.24), transparent 34%), linear-gradient(135deg,#173b36,#24574d); color:#fff; position:relative; }
.intelligence-hero h1 { margin:10px 0 8px; font-size:clamp(30px,4vw,52px); letter-spacing:-.04em; }
.intelligence-hero p { color:#d2e3dc; max-width:620px; line-height:2; margin:0; }
.intelligence-hero .eyebrow { color:#e7c86e; }
.hero-orbit { width:164px; height:164px; border:1px solid rgba(231,200,110,.42); border-radius:50%; display:grid; place-items:center; flex:0 0 auto; position:relative; color:#e7c86e; text-align:center; font-family:var(--mono); letter-spacing:.08em; }
.hero-orbit:before,.hero-orbit:after,.hero-orbit span { content:""; position:absolute; border:1px solid rgba(231,200,110,.25); border-radius:50%; }
.hero-orbit:before { inset:18px; }.hero-orbit:after { inset:38px; }.hero-orbit span:first-child { width:8px;height:8px;background:#e7c86e;top:17px;right:28px;box-shadow:0 0 18px #e7c86e; }.hero-orbit span:nth-child(2) { width:5px;height:5px;background:#8de0ba;bottom:25px;left:30px; }.hero-orbit small { font-size:8px; color:#c2d7ce; }
.intel-controls { display:flex; align-items:end; gap:12px; flex-wrap:wrap; padding:17px; margin:0 0 18px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.65); box-shadow:0 10px 25px rgba(23,59,54,.04); }
.intel-controls label { display:flex; flex-direction:column; gap:6px; color:var(--ink-faint); font-size:12px; font-weight:700; flex:1 1 170px; }.intel-controls select { min-height:42px; border:1px solid #cad9d0; border-radius:9px; background:#fffef9; padding:8px 11px; color:var(--ink); font:inherit; }.intel-refresh { min-height:42px; margin-right:auto; }.intel-refresh span { font-size:19px; display:inline-block; margin-right:6px; }.intel-refresh.is-loading span { animation:spin .8s linear infinite; }@keyframes spin{to{transform:rotate(360deg)}}
.public-kpis { margin:0 0 18px; }.public-kpis .intelligence-kpi { background:rgba(255,255,255,.66); }.public-kpis .intelligence-kpi strong { font-family:var(--mono); }
.intel-dashboard-grid { display:grid; grid-template-columns:1.25fr .85fr; gap:18px; }.intel-panel { border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.64); padding:22px; min-width:0; }.intel-wide { grid-column:1 / -1; }.intel-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:16px; }.intel-panel-head h2 { margin:5px 0 0; font-size:20px; }.panel-chip { color:#8b6815; background:#fff4cc; border:1px solid #ead38a; border-radius:999px; font-size:11px; padding:5px 10px; white-space:nowrap; }.intel-chart { min-height:190px; }.intel-bars-chart { height:180px; display:flex; align-items:end; gap:clamp(7px,2vw,20px); border-bottom:1px solid #cfddd5; padding:12px 8px 0; }.intel-column { flex:1; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:end; gap:8px; min-width:20px; }.intel-column b { width:100%; max-width:42px; min-height:8px; border-radius:7px 7px 0 0; background:linear-gradient(180deg,#d6b35a,#2d806a); position:relative; transition:height .5s ease; }.intel-column b span { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); font:11px var(--mono); color:var(--ink-soft); padding-bottom:4px; }.intel-column small { color:var(--ink-faint); font-size:10px; direction:ltr; }.intel-bars { display:grid; gap:13px; }.intel-bar-row>div { display:flex; justify-content:space-between; gap:10px; font-size:13px; }.intel-bar-row b { font:12px var(--mono); color:#a87914; }.intel-bar-row>i { height:7px; display:block; margin-top:7px; background:#e4ece7; border-radius:99px; overflow:hidden; }.intel-bar-row em { height:100%; display:block; background:linear-gradient(90deg,#2d806a,#d6b35a); border-radius:inherit; transition:width .5s ease; }.intel-topic-list { display:grid; gap:7px; }.intel-topic { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:10px; border-bottom:1px solid #e4ebe5; padding:10px 0; }.intel-topic:last-child { border-bottom:0; }.intel-topic strong { display:block; font-size:13px; line-height:1.6; }.intel-topic small { display:block; color:var(--ink-faint); font-size:10px; margin-top:3px; }.intel-topic small em { color:#b1361e; font-style:normal; }.topic-index { font:12px var(--mono); color:#b39a58; }.intel-topic>b { font:13px var(--mono); color:#25745f; }.intel-briefings { margin-top:18px; }.intel-search { display:flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:999px; padding:4px 12px; background:#fffef9; color:var(--ink-faint); }.intel-search input { border:0; outline:0; background:transparent; width:190px; padding:6px; font:inherit; }.briefing-list { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }.briefing-card { padding:16px; border:1px solid #dce6df; border-radius:13px; background:rgba(255,255,255,.58); color:inherit; transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease; }.briefing-card:hover { transform:translateY(-3px); border-color:#d6b35a; box-shadow:0 10px 20px rgba(23,59,54,.07); }.briefing-meta,.briefing-foot { display:flex; justify-content:space-between; gap:8px; color:var(--ink-faint); font-size:10px; }.briefing-meta span { color:#a87914; font-weight:800; }.briefing-card h3 { font-size:15px; line-height:1.7; margin:12px 0 6px; }.briefing-card p { color:var(--ink-soft); font-size:12px; line-height:1.8; margin:0 0 12px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }.briefing-foot b { color:#25745f; font-size:10px; }.briefing-foot b.muted { color:var(--ink-faint); font-weight:500; }.intel-disclaimer { text-align:center; color:var(--ink-faint); font-size:11px; margin:20px 0 0; }
@media (max-width:800px){.intelligence-hero{padding:26px 22px;}.hero-orbit{width:120px;height:120px;}.intel-dashboard-grid{grid-template-columns:1fr;}.intel-wide{grid-column:auto;}.briefing-list{grid-template-columns:1fr 1fr;}.intel-search input{width:130px;}}
@media (max-width:520px){.intelligence-hero{margin-top:24px;}.hero-orbit{display:none;}.intel-controls{align-items:stretch;}.intel-refresh{width:100%;}.briefing-list{grid-template-columns:1fr;}.intel-panel-head{flex-direction:column;}.intel-search{width:100%;}.intel-search input{width:100%;}}

.storage-object-delete { display:inline-flex; gap:5px; align-items:center; margin-inline-start:8px; }
.storage-object-delete input { width:90px; min-height:30px; border:1px solid var(--line); border-radius:6px; padding:4px 7px; font:inherit; }

.settings-seo{border:1px solid var(--line);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:14px}.settings-seo legend{padding:0 8px;font-weight:700}.article-tags{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.article-tags span{background:#edf5f1;color:#23564d;border-radius:999px;padding:4px 9px;font-size:12px}.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.messages-list{display:grid;gap:14px}.message-card{padding:18px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.58)}.message-card.unread{border-color:#d6b35a;background:#fffdf2}.message-head{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.message-head a{color:var(--accent)}.message-head time{color:var(--ink-faint);font-size:12px}.message-card h3{margin:12px 0 4px}.message-card p{white-space:pre-wrap;line-height:1.9}

/* Contact page — coordinated with the deep-green/gold footer palette */
.contact-page {
  max-width: 820px;
  padding-top: 64px;
  padding-bottom: 76px;
}

/* Large masthead logo: approximately 3/4 of the header height. */
.site-header .brand-logo {
  width: auto;
  height: 64px;
  max-width: 240px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .site-header .brand-logo { height: 52px; max-width: 190px; }
}

/* ---------- Editorial refresh inspired by modern magazine systems ---------- */
:root {
  --ink: #101416;
  --ink-soft: #657075;
  --ink-faint: #98a2a4;
  --paper: #f6f7f5;
  --paper-soft: #edf0ed;
  --line: #d8ddda;
  --accent: #c7f36b;
  --accent-soft: #e8f6c9;
  --max: 1220px;
  --radius: 2px;
}
body { background: var(--paper); color: var(--ink); }
.site-header { background: #101416; border-bottom: 0; color: #fff; position: relative; }
.header-inner { height: 86px; gap: 30px; }
.brand { color: #fff; font-size: 23px; gap: 11px; letter-spacing: -.03em; }
.brand-logo { width: 46px; height: 34px; display: block; object-fit: contain; }
.brand-mark { display: none; }
.brand-word { font-weight: 800; }
.cats a { color: #aeb8b8; border: 0; font-size: 13px; letter-spacing: .01em; }
.cats a:hover, .cats a.active { color: #fff; border-bottom: 2px solid var(--accent); }
.search { margin-inline-start: auto; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #586266; padding: 4px 0; }
.search-icon { color: var(--accent); font-size: 21px; line-height: 1; }
.search input { width: 100px; border: 0; border-radius: 0; padding: 5px 0; color: #fff; background: transparent; }
.search input::placeholder { color: #aeb8b8; }
.search input:focus { outline: none; }
.write-btn { border-color: var(--accent); color: #101416; background: var(--accent); border-radius: 0; padding: 9px 14px; }
.write-btn:hover { color: #101416; background: #fff; }
.slogan-header { direction: rtl; background: var(--paper); color: #173126; text-align: center; padding: clamp(30px, 5vw, 64px) 0 clamp(26px, 4vw, 50px); border-bottom: 1px solid var(--line); }
.slogan-header .wrap { display: flex; flex-direction: column; align-items: center; }
.slogan-header p { max-width: 900px; margin: 18px auto 0; font-family: "Vazirmatn", Tahoma, sans-serif; font-size: clamp(1.5rem, 3vw, 3rem); font-weight: 700; line-height: 1.8; letter-spacing: -0.02em; text-wrap: balance; }
.slogan-header strong { color: #0e3d25; font-weight: 800; }
.slogan-formula { direction: ltr; display: inline-block; margin-top: .75rem; color: #0e3d25; font-family: "JetBrainsMono", monospace; font-size: .9rem; font-weight: 700; letter-spacing: 0; }
.brand-label { direction: rtl; color: #0e3d25; font-size: 1rem; font-weight: 800; }
.share-bar { max-width: var(--max); color: var(--ink-soft); margin: 0 auto; border-bottom: 1px solid var(--line); padding: 10px 24px; }
.share-bar button, .share-bar a { border-color: var(--line); background: transparent; color: var(--ink); border-radius: 0; }
.featured { position: relative; grid-template-columns: 1.12fr .88fr; gap: 0; margin-top: 42px; padding: 0; border: 0; border-radius: 0; background: #101416; color: #fff; overflow: hidden; min-height: 420px; }
.featured-img { order: 2; height: 100%; min-height: 420px; border-radius: 0; opacity: .88; }
.featured-text { order: 1; padding: 54px 58px 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.featured-text .pill { color: #101416; background: var(--accent); border-radius: 0; min-width: auto; padding: 5px 10px; margin-top: 22px; }
.featured-text h1 { color: #fff; font-size: clamp(31px, 4vw, 54px); line-height: 1.08; margin: 15px 0 16px; letter-spacing: -.045em; }
.featured-text p { color: #b8c0c0; max-width: 520px; font-size: 16px; }
.featured-text .meta { color: #8e9b9d; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(199,243,107,.12); }
.eyebrow-rule { width: 34px; height: 1px; background: currentColor; opacity: .5; }
.read-more { display: inline-flex; align-items: center; gap: 13px; margin-top: 22px; color: var(--accent); font-weight: 700; font-size: 13px; }
.read-more b { font-size: 18px; transition: transform .2s ease; }
.featured:hover .read-more b { transform: translateX(-5px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; padding: 58px 0 16px; border-bottom: 2px solid var(--ink); }
.section-heading h2 { margin: 8px 0 0; font-size: 30px; letter-spacing: -.04em; }
.section-count { color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.grid { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 0 64px; }
.card { position: relative; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; padding: 22px 20px 28px; background: transparent; transition: background .2s ease; }
.card:nth-child(3n+1) { border-left: 0; }
.card:hover { transform: none; box-shadow: none; background: #fff; }
.card-img { border-radius: 0; aspect-ratio: 16 / 10; margin: -22px -20px 18px; width: calc(100% + 40px); filter: saturate(.82); }
.card-body { position: relative; }
.card-number { position: absolute; top: -4px; left: 0; color: #c7cecb; font-family: var(--mono); font-size: 11px; direction: ltr; }
.card .pill { border-radius: 0; min-width: auto; padding: 3px 7px; margin-inline-start: 30px; }
.card h2 { font-size: 21px; letter-spacing: -.035em; margin-top: 12px; }
.card p { color: var(--ink-soft); font-size: 14px; }
.meta { font-family: var(--mono); font-size: 10px; letter-spacing: .01em; }
.empty-state { padding: 110px 0 150px; text-align: center; }
.empty-state h1 { font-size: 42px; margin: 16px 0 8px; }
.empty-state p { color: var(--ink-soft); }
.readership-band { border-radius: 0; background: #1b2325; border-top: 3px solid var(--accent); color: #fff; margin: 0 0 72px; }
.readership-band span { color: #aeb8b8; }
.donate-button { background: var(--accent); color: #101416; border-radius: 0; }
.site-footer { margin-top: 0; border-top: 0; background: #101416; }
.site-footer::before { opacity: .06; }
.footer-column a:hover { color: var(--accent); }
.footer-signal { color: var(--accent); }
.footer-bottom { color: #718083; }
.footer-code { color: var(--accent); }
@media (max-width: 760px) {
  .header-inner { height: 72px; }
  .featured { grid-template-columns: 1fr; }
  .featured-img { order: 1; min-height: 250px; }
  .featured-text { order: 2; padding: 30px 24px 34px; }
  .featured-text h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .card, .card:nth-child(3n+1) { border-left: 0; }
  .section-heading { padding-top: 40px; }
  .slogan-header p { font-size: clamp(1.35rem, 6vw, 2rem); }
}
.contact-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 34px 38px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #102f2b 0%, #173b36 58%, #23524a 100%);
  border-top: 4px solid #d6b35a;
  box-shadow: 0 18px 38px rgba(16,47,43,.16);
}
.contact-hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  left: -70px;
  bottom: -100px;
  border: 1px solid rgba(226,189,94,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(226,189,94,.08), 0 0 0 44px rgba(226,189,94,.05);
}
.contact-hero h1 { margin: 0 0 8px; font-size: 34px; color: #fff; }
.contact-hero p { position: relative; z-index: 1; margin: 0; color: #cfe0d7; line-height: 1.9; }
.contact-form-card {
  padding: 30px 34px 34px;
  border: 1px solid #d8e0d8;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 30px rgba(23,59,54,.08);
}
.contact-form-card label { color: #31564e; }
.contact-form-card input,
.contact-form-card textarea {
  border: 1px solid #cbd9d1;
  border-radius: 11px;
  background: #fbfdf9;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form-card input { min-height: 46px; }
.contact-form-card textarea { min-height: 170px; }
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: #d6b35a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(214,179,90,.16);
}
.contact-submit { margin-top: 4px; padding: 12px 28px; background: #173b36; box-shadow: 0 8px 16px rgba(23,59,54,.18); }
.contact-submit:hover { background: #b7821b; }
.contact-motto{margin:20px 0 24px;padding:20px 24px;border:1px solid rgba(183,130,27,.35);border-right:4px solid #b7821b;border-radius:14px;background:linear-gradient(135deg,rgba(255,250,235,.92),rgba(238,248,240,.9));box-shadow:0 10px 24px rgba(23,59,54,.08);text-align:right}.contact-motto span{display:block;color:#b7821b;font-size:22px;margin-bottom:5px}.contact-motto p{margin:0;color:#173b36;font-size:20px;font-weight:800;line-height:1.9}.contact-motto cite{display:block;margin-top:5px;color:#6b8379;font-size:12px;font-style:normal}
.intelligence-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.intelligence-kpi{padding:18px 20px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.68);box-shadow:0 10px 26px rgba(23,59,54,.06)}.intelligence-kpi span,.intelligence-kpi small{display:block;color:var(--muted);font-size:12px}.intelligence-kpi strong{display:block;margin:8px 0 4px;color:var(--brand-green-deep);font-family:var(--mono);font-size:28px}.intelligence-kpi .status-good{color:#178558;font-size:20px}.intelligence-kpi .status-warn{color:#b7821b;font-size:20px}.intelligence-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.intel-panel{min-width:0;padding:20px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.72);box-shadow:0 12px 28px rgba(23,59,54,.07)}.intel-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.intel-panel h2{margin:4px 0 0}.eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:.14em;color:#b7821b}.panel-chip{padding:5px 9px;border-radius:999px;background:var(--brand-green-pale);color:var(--brand-green-dark);font-size:11px}.radar-chart{min-height:350px;display:grid;place-items:center}.radar-chart svg{width:min(100%,380px);height:auto;overflow:visible}.radar-web{fill:none;stroke:#d4e2d7;stroke-width:1}.radar-axis{stroke:#cadbd0;stroke-width:1;stroke-dasharray:3 4}.radar-label{fill:#557268;font-size:10px;font-weight:700}.radar-area{fill:url(#radar-fill);stroke:#178558;stroke-width:2.5;filter:drop-shadow(0 3px 5px rgba(23,133,88,.22))}.radar-node{fill:#178558;stroke:#fff;stroke-width:2}.chart-note{margin:0;color:var(--muted);font-size:11px;text-align:center}.topic-bars{margin-top:18px}.topic-bar-row{margin:0 0 15px}.topic-bar-meta{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--ink)}.topic-bar-meta b{font-family:var(--mono);color:var(--brand-green-dark)}.topic-bar-track{height:8px;margin:7px 0 4px;border-radius:999px;background:#e4eee7;overflow:hidden}.topic-bar-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1a7258,#b7821b)}.topic-bar-row small{color:var(--muted);font-size:11px}.topic-bar-row em{color:#b04a3e;font-style:normal}.source-dot{display:inline-block;width:8px;height:8px;margin-left:6px;border-radius:50%;background:#178558}.source-dot.bad{background:#b04a3e}
@media(max-width:860px){.intelligence-kpis{grid-template-columns:repeat(2,1fr)}.intelligence-grid{grid-template-columns:1fr}}
@media(max-width:600px){.intelligence-kpis{grid-template-columns:1fr 1fr;gap:9px}.intelligence-kpi{padding:14px}.intelligence-kpi strong{font-size:22px}.contact-motto p{font-size:17px}}

/* Keep the uploaded mark visually balanced with the Persian wordmark. */
.brand-logo { width: auto; height: 34px; max-width: 150px; display: block; object-fit: contain; flex: 0 0 auto; }
.brand { gap: 9px; font-size: 23px; }
.footer-logo-image { width: auto; height: 52px; max-width: 180px; display: block; object-fit: contain; flex: 0 0 auto; }
.footer-logo { gap: 12px; font-size: 30px; line-height: 1; align-items: center; }
.google-news-cta { margin-top: 20px; margin-bottom: 24px; }
.google-news-cta a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid #b8d9c0; border-radius: 999px; color: var(--brand-green-deep); background: #eff9f1; font-weight: 700; box-shadow: var(--shadow-sm); }
.google-news-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; background: linear-gradient(135deg,#4285f4,#34a853 55%,#fbbc05 56%,#ea4335); font-family: Arial,sans-serif; font-weight: 800; }
.google-news-floating { position: fixed; right: 18px; bottom: 18px; z-index: 25; margin: 0; }
.google-news-floating a { background: var(--brand-green-deep); color: #effaf1; border-color: #93d9a8; }
@media (max-width: 600px) {
  .contact-page { padding-top: 34px; }
  .contact-hero, .contact-form-card { padding: 24px 20px; }
  .contact-hero h1 { font-size: 28px; }
  .slogan-header { margin: 16px 12px 22px; border-radius: 14px; }
  .footer-logo-image { height: 44px; max-width: 150px; }
  .footer-logo { font-size: 25px; }
  .google-news-floating { right: 12px; left: 12px; bottom: 12px; }
  .google-news-floating a { justify-content: center; width: 100%; }
}

/* Keep the header row calm: navigation, search, and admin actions live in
   the expandable hamburger panel at every screen size. */
.site-header .header-inner {
  position: relative;
  height: 86px;
  min-height: 86px;
  justify-content: center;
  padding-inline: 58px;
}
.site-header .brand { position: absolute; left: 50%; transform: translateX(-50%); max-width: min(70vw, 320px); }
.site-header .nav-toggle { display: inline-flex; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); margin: 0; z-index: 3; }
.site-header .header-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; padding: 18px 24px 22px; background: #101416; border-top: 1px solid #465052; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
.site-header .header-inner.nav-open .header-menu { display: grid; gap: 16px; }
.site-header .header-menu .cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; padding: 0; }
.site-header .header-menu .cats a { min-height: 40px; padding: 9px 8px; border: 1px solid #465052; border-radius: 4px; text-align: center; white-space: normal; }
.site-header .header-menu .search { position: static; transform: none; width: 100%; border-bottom: 1px solid #586266; }
.site-header .header-menu .search input { display: block; width: 100%; }
.site-header .header-menu .dashboard-link { position: static; transform: none; justify-self: start; }
@media (max-width: 600px) {
  .site-header .header-inner { height: 72px; min-height: 72px; padding-inline: 48px; }
  .site-header .nav-toggle { left: 12px; }
  .site-header .header-menu { padding: 14px 16px 18px; }
  .site-header .header-menu .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Site-wide framed canvas: echoes the footer's green-and-gold architecture. */
main {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  border-inline: 1px solid rgba(35,82,74,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(243,241,231,.18));
  box-shadow: inset 0 0 0 1px rgba(214,179,90,.10);
}
main::before,
main::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 3px;
  pointer-events: none;
  z-index: 1;
}
main::before { top: 0; background: linear-gradient(90deg, transparent, #d6b35a 18%, #173b36 50%, #d6b35a 82%, transparent); }
main::after { bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(35,82,74,.45), transparent); }

/* Reusable green/gold borders for the major page panels. */
.featured,
.card,
.editor,
.storage-panel,
.diagnostic-card,
.message-card,
.article-readership,
.donate-cta {
  border-color: rgba(35,82,74,.28);
  box-shadow: 0 8px 22px rgba(23,59,54,.06), inset 0 2px 0 rgba(214,179,90,.22);
}
.featured { border-top: 3px solid #d6b35a; }
.editor, .storage-panel, .diagnostic-card, .message-card { border-top: 2px solid rgba(214,179,90,.72); }
.card:hover { border-color: #d6b35a; }

@media (max-width: 760px) {
  main { border-inline: 0; }
  main::before, main::after { left: 10px; right: 10px; }
}

/* Strong full-page frame; the header intentionally remains outside this frame. */
main {
  max-width: 1240px;
  margin: 0 auto 34px;
  border: 4px solid #173b36;
  border-top-color: #d6b35a;
  border-bottom-color: #d6b35a;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(243,241,231,.26));
  box-shadow:
    inset 0 0 0 2px rgba(214,179,90,.34),
    0 12px 30px rgba(16,47,43,.10);
}
main::before {
  left: 14px;
  right: 14px;
  top: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d6b35a 14%, #173b36 50%, #d6b35a 86%, transparent);
}
main::after {
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d6b35a 14%, #173b36 50%, #d6b35a 86%, transparent);
}

@media (max-width: 760px) {
  main {
    margin-bottom: 20px;
    border-width: 3px;
  }
}


/* ---------- Responsive hardening (mobile-first) ---------- */
html { min-width: 320px; }
body { overflow-x: hidden; }
.wrap, .wrap-narrow, .wrap-wide { width: 100%; }
img, video, iframe, svg { max-width: 100%; }
button, input, select, textarea { max-width: 100%; }

@media (max-width: 860px) {
  .header-inner { gap: 12px; min-height: 72px; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .site-header .brand-logo { height: 44px; max-width: min(42vw, 170px); }
  .brand { min-width: 0; font-size: 19px; }
  .brand-word { overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-inline-start: auto; color: #fff; border: 1px solid #586266; border-radius: 4px; font-size: 22px; }
  .header-inner.nav-open .cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; order: 3; width: 100%; padding-top: 10px; }
  .header-inner.nav-open .search { display: flex; order: 4; width: 100%; margin-inline-start: 0; }
  .header-inner.nav-open .search input { width: 100%; min-height: 42px; }
  .header-inner.nav-open .cats a { min-height: 42px; padding: 9px 7px; border: 1px solid #465052; border-radius: 4px; text-align: center; white-space: normal; }
  .write-btn { padding: 9px 11px; font-size: 12px; }
  .share-bar { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .featured { margin-top: 24px; }
  .featured-text { min-width: 0; }
  .featured-text h1 { overflow-wrap: anywhere; }
  .section-heading { gap: 12px; align-items: flex-start; flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .admin-head { gap: 16px; align-items: flex-start; flex-wrap: wrap; }
  .admin-tabs { gap: 14px; overflow-x: auto; white-space: nowrap; }
  .admin-table-wrap, .analytics-columns section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 680px; }
  .diagnostics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-columns { grid-template-columns: 1fr; }
  .editor .row { flex-direction: column; gap: 18px; }
  .storage-bucket { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap, .wrap-narrow, .wrap-wide { padding-left: 16px; padding-right: 16px; }
  .site-header .brand-logo { height: 40px; max-width: 125px; }
  .brand { font-size: 17px; gap: 6px; }
  .write-btn { font-size: 0; padding: 9px 11px; }
  .write-btn .dashboard-icon { font-size: 17px; }
  .featured { margin-top: 16px; min-height: 0; }
  .featured-img { min-height: 210px; aspect-ratio: 16 / 10; }
  .featured-text { padding: 25px 18px 28px; }
  .featured-text h1 { font-size: clamp(27px, 8vw, 34px); }
  .featured-text p { font-size: 15px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .card, .card:nth-child(3n+1) { border-left: 0; padding: 18px 0 24px; }
  .card-img { margin: -18px 0 16px; width: 100%; aspect-ratio: 16 / 10; }
  .card h2 { font-size: 20px; }
  .section-heading { padding-top: 34px; }
  .section-heading h2 { font-size: 25px; }
  .readership-band, .article-readership { padding: 18px; gap: 16px; }
  .top-countries { width: 100%; }
  .post-head { padding-top: 32px; }
  .post-head h1 { font-size: clamp(28px, 8vw, 34px); overflow-wrap: anywhere; }
  .cover { max-height: none; aspect-ratio: 16 / 10; object-fit: cover; }
  .post-body { font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
  .post-body h2 { font-size: 24px; margin-top: 34px; }
  .post-body h3 { font-size: 20px; }
  .post-body table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .post-body pre { max-width: 100%; padding: 14px; font-size: 12px; }
  .post-body.notebook .dataframe { min-width: 520px; }
  .contact-page { padding-top: 30px; padding-bottom: 48px; }
  .contact-hero, .contact-form-card { padding: 22px 18px; border-radius: 12px; }
  .submit-btn, .contact-submit { width: 100%; min-height: 46px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .diagnostics-grid { grid-template-columns: 1fr; }
  .storage-panel { padding: 16px; }
  .storage-objects > div { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 380px) {
  .header-inner { padding-left: 12px; padding-right: 12px; }
  .brand-word { display: none; }
  .header-inner.nav-open .cats { grid-template-columns: 1fr; }
  .featured-text h1 { font-size: 27px; }
  .pill { min-width: 0; }
}

/* Hamburger-only navigation (must remain last so older responsive rules
   cannot expose controls in the header row). */
.site-header .header-menu { display: none !important; }
.site-header .header-inner.nav-open .header-menu { display: grid !important; }
.site-header .header-menu {
  background: #173b36;
  color: #f7fbf8;
  border-top: 2px solid #d6b35a;
}
.site-header .header-menu .cats { display: grid !important; width: 100%; padding: 0; }
.site-header .header-menu .cats a {
  color: #f7fbf8;
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.08);
}
.site-header .header-menu .cats a:hover,
.site-header .header-menu .cats a:focus-visible,
.site-header .header-menu .cats a.active {
  color: #173b36;
  background: #c7f36b;
  border-color: #c7f36b;
}
.site-header .header-menu .search { display: flex !important; position: static; width: 100%; transform: none; }
.site-header .header-menu .search { border-bottom-color: rgba(255,255,255,.65); }
.site-header .header-menu .search-icon { color: #c7f36b; }
.site-header .header-menu .search input { display: block !important; width: 100%; color: #fff; }
.site-header .header-menu .search input::placeholder { color: #d7e5df; }
.site-header .header-menu .dashboard-link { display: inline-flex !important; position: static; transform: none; }
.site-header .header-menu .dashboard-link {
  color: #173b36;
  border-color: #c7f36b;
  background: #c7f36b;
}

/* Stable media sizing prevents mobile layout shifts and keeps the same
   object-fit behavior across desktop and narrow browsers. */
.featured-img img,
.card-img img,
.cover,
.post-body img {
  display: block;
  max-width: 100%;
  image-rendering: auto;
}
.featured-img img,
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-img picture,
.card-img picture,
.wrap-wide > picture { display: block; width: 100%; height: 100%; }
.cover { width: 100%; }
.country-stats { margin: 14px auto 0; padding: 20px 24px; border: 1px solid var(--line); background: var(--paper-soft); }
.readership-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.readership-summary strong { display:block; font-size:18px; }
.readership-summary span { display:block; margin-top:5px; color:var(--ink-soft); font-size:13px; }
.readership-kicker { color:var(--accent) !important; font-family:var(--mono); font-size:11px !important; white-space:nowrap; }
.country-table-wrap { margin-top:16px; }
.country-table-wrap h2 { margin:0 0 10px; font-size:15px; color:var(--ink-soft); }
.country-stats table { width: 100%; border-collapse: collapse; font-size: 13px; }
.country-stats th, .country-stats td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
@media (max-width: 600px) { .country-stats { padding: 16px; } .readership-summary { align-items:flex-start; flex-direction:column; gap:8px; } .readership-kicker { white-space:normal; } }
.post-title-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; direction: ltr; }
.post-title-row h1 {
  grid-column: 2;
  direction: rtl;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-head.notebook-head h1 {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.3;
}
.article-calendar { grid-column: 1; direction: rtl; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--paper-soft); color: var(--ink); }
.article-calendar span { display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.article-calendar b { font-family: var(--sans); color: var(--accent); font-size: 11px; }
@media (max-width: 700px) { .post-title-row { grid-template-columns: 1fr; gap: 14px; } .post-title-row h1, .article-calendar { grid-column: 1; } .article-calendar { grid-template-columns: repeat(3, 1fr); } .article-calendar span { align-items: center; } }
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

/* Shared article/page alignment. */
.post, .about-page, .contact-page, .more-section { width: 100%; }
.post > .wrap-narrow, .post > .wrap-wide { width: 100%; }
.section-heading, .grid, .featured { margin-inline: auto; }
@media (max-width: 600px) {
  .site-header .header-menu .cats a { min-height: 44px; }
  .site-header .header-menu .search { min-height: 44px; align-items: center; }
  .site-header .header-menu .dashboard-link { min-height: 42px; justify-self: stretch; justify-content: center; }
  .featured-text, .post-head, .post-body { text-align: right; }
}

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

/* Final header layout: the menu is always on the physical left, while the
   wordmark stays centered independently of navigation and search width. */
.site-header .header-inner {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 86px;
  height: 86px;
  padding-inline: 74px;
}
.site-header .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(42vw, 300px);
  overflow: hidden;
  z-index: 2;
}
.site-header .brand-logo { height: 42px; max-width: 160px; }
.site-header .nav-toggle {
  display: inline-flex;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  color: #fff;
  border: 1px solid #586266;
  border-radius: 4px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.site-header .nav-toggle:hover,
.site-header .nav-toggle:focus-visible { border-color: var(--accent); color: var(--accent); }
.site-header .cats {
  width: 100%;
  justify-content: center;
  padding-inline: 170px;
}
.site-header .search {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 92px;
  margin: 0;
  z-index: 3;
}
.site-header .search input { width: 68px; min-width: 0; }
.site-header .dashboard-link { position: absolute; right: 126px; top: 50%; transform: translateY(-50%); z-index: 3; }

@media (max-width: 860px) {
  .site-header .header-inner { min-height: 72px; height: 72px; padding-inline: 58px; }
  .site-header .brand { max-width: min(62vw, 270px); }
  .site-header .brand-logo { height: 40px; max-width: 125px; }
  .site-header .brand-word { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header .cats { display: none; padding: 0; }
  .site-header .search { right: 14px; width: 32px; border-bottom: 0; }
  .site-header .search-icon { font-size: 20px; }
  .site-header .search input { display: none; }
  .site-header .dashboard-link { display: none; }
  .site-header .header-inner.nav-open { height: auto; min-height: 72px; padding-bottom: 12px; }
  .site-header .header-inner.nav-open .cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    order: 3;
    width: 100%;
    padding-top: 82px;
  }
  .site-header .header-inner.nav-open .search {
    display: flex;
    position: absolute;
    top: 36px;
    right: 14px;
    transform: none;
    width: 32px;
  }
}
@media (max-width: 600px) {
  .site-header .header-inner { padding-inline: 52px; }
  .site-header .nav-toggle { left: 12px; }
  .site-header .brand { max-width: 58vw; font-size: 17px; gap: 6px; }
  .site-header .brand-logo { height: 36px; max-width: 108px; }
  .site-header .search { right: 12px; }
}


/* SEO topic tags: a single professional, searchable tag panel. */
.article-tags-end {
  margin-top: 22px;
  margin-bottom: 30px;
  padding: 18px 20px 20px;
  display: block;
  direction: rtl;
  text-align: right;
  border: 1px solid #cfdad4;
  border-top: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(237,240,237,.78));
  box-shadow: 0 8px 22px rgba(16,47,43,.07), inset 0 0 0 1px rgba(214,179,90,.2);
}
.article-tags-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.article-tags-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.article-tags-kicker { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.article-tags-hint { color: var(--ink-faint); font-size: 12px; }
.article-tags-list { display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; justify-content: flex-start; }
.article-tag-link { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; direction: rtl; color: var(--ink); background: #fff; border: 1px solid #cbd8d1; border-radius: 5px; font-size: 13px; font-weight: 600; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.article-tag-link::before { content: "⌕"; margin-inline-end: 6px; color: var(--accent); font-family: var(--mono); font-size: 12px; }
.article-tag-link:hover, .article-tag-link:focus-visible { color: #101416; background: var(--accent); border-color: var(--accent); transform: translateY(-1px); outline: none; }
@media (max-width: 600px) { .article-tags-end { margin-top: 18px; margin-bottom: 22px; padding: 16px; } .article-tags-heading { display: block; } .article-tags-heading h2 { margin: 5px 0 3px; } .article-tag-link { font-size: 12px; } }


/* Feedback CTA is intentionally limited to article pages. */
.content-feedback-cta {
  max-width: var(--max-narrow);
  margin: 28px auto 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  background: var(--paper-soft);
}
.content-feedback-cta strong, .content-feedback-cta span { display: block; }
.content-feedback-cta span { margin-top: 4px; color: var(--ink-soft); font-size: 13px; }
.content-feedback-cta a {
  flex: 0 0 auto;
  padding: 9px 15px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.content-feedback-cta a:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 600px) {
  .content-feedback-cta { align-items: flex-start; flex-direction: column; margin-top: 22px; padding: 16px; }
  .content-feedback-cta a { width: 100%; text-align: center; }
}

/* Article footer cards: keep tags, readership, and feedback in one aligned
   column with matching dimensions and a calmer editorial hierarchy. */
.post > .article-tags-end,
.post > .article-readership,
.post > .content-feedback-cta {
  width: calc(100% - 48px);
  max-width: var(--max-narrow);
  margin-inline: auto;
  border-radius: 12px;
}
.post > .article-tags-end {
  margin-top: 30px;
  margin-bottom: 14px;
  padding: 22px 24px 24px;
  border: 1px solid #cbd8d1;
  border-top: 4px solid var(--accent);
  background: linear-gradient(135deg, #ffffff 0%, #f3f7f3 100%);
  box-shadow: 0 10px 26px rgba(16,47,43,.08), inset 0 0 0 1px rgba(214,179,90,.16);
}
.article-tags-heading {
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 16px;
}
.article-tags-heading h2 { font-size: 19px; color: var(--ink); }
.article-tags-kicker {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #31564e;
  font-size: 11px;
  letter-spacing: .04em;
}
.article-tags-hint { width: 100%; margin-top: 2px; }
.article-tags-list {
  direction: rtl;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
}
.article-tag-link {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  border-color: #cbd8d1;
  box-shadow: 0 2px 5px rgba(16,47,43,.04);
}
.post > .article-readership {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 20px 24px;
  border: 1px solid #294b46;
  border-top: 4px solid #d6b35a;
  background: #173b36;
  color: #fff;
  box-shadow: 0 10px 24px rgba(16,47,43,.12);
}
.post > .article-readership > div:first-child strong { display: block; font-size: 17px; }
.post > .article-readership > div:first-child span { color: #cfe0d7; }
.post > .article-readership .top-countries span { color: #cfe0d7; }
.post > .article-readership .top-countries b { color: #fff; }
.post > .content-feedback-cta {
  margin-top: 14px;
  margin-bottom: 28px;
  padding: 20px 24px;
  border: 1px solid #cbd8d1;
  border-inline-start: 4px solid var(--accent);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16,47,43,.07);
}
.content-feedback-cta strong { font-size: 17px; }
.content-feedback-cta a { border-radius: 999px; padding: 10px 18px; }
@media (max-width: 600px) {
  .post > .article-tags-end,
  .post > .article-readership,
  .post > .content-feedback-cta { width: calc(100% - 32px); }
  .post > .article-tags-end { padding: 18px; }
  .post > .article-readership { padding: 18px; }
  .post > .content-feedback-cta { padding: 18px; margin-bottom: 22px; }
  .article-tags-heading h2 { font-size: 17px; }
}


/* ---------- Analytical CSS3 page framing ---------- */
main {
  position: relative;
  border: 1px solid #294b46;
  border-top: 5px solid #d6b35a;
  border-bottom: 5px solid #d6b35a;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(23,59,54,.035) 32px),
    var(--paper);
  box-shadow: 0 18px 48px rgba(16,47,43,.14), inset 0 0 0 1px rgba(214,179,90,.42);
}
main::before, main::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 10px;
  right: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d6b35a 18%, #294b46 50%, #d6b35a 82%, transparent);
}
main::before { top: 11px; }
main::after { bottom: 11px; }
main > * { position: relative; z-index: 1; }
.post-head, .about-page, .contact-page, .editor, .storage-panel, .diagnostic-card, .message-card, .live-editor, .live-output {
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16,47,43,.06), inset 0 0 0 1px rgba(214,179,90,.16);
}
.post-head, .about-page, .contact-page { margin-top: 28px; margin-bottom: 22px; padding: 30px 28px; background: rgba(255,255,255,.58); }
.post-head::before, .about-page::before, .contact-page::before, .editor::before, .storage-panel::before, .diagnostic-card::before, .message-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214,179,90,.72), transparent);
  pointer-events: none;
}
.editor { padding: 28px; background: rgba(255,255,255,.64); }
.storage-panel, .diagnostic-card, .message-card { border-radius: 10px; }
.post-body { padding: 28px; background: rgba(255,255,255,.56); border-inline: 1px solid var(--line); }
@media (max-width: 600px) {
  main { border-radius: 8px; border-top-width: 4px; border-bottom-width: 4px; }
  .post-head, .about-page, .contact-page { margin-top: 16px; padding: 22px 18px; }
  .post-body { padding: 20px 16px; }
  .editor { padding: 22px 16px; }
}

/* Final accessibility/readability pass: larger brand mark and calendar dates. */
.site-header .header-inner { height: 110px; min-height: 110px; }
.site-header .brand-logo { height: 84px; max-width: 320px; }
.article-calendar {
  min-width: 178px;
  padding: 18px 16px;
  gap: 12px;
  border-top-width: 4px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(16,47,43,.10);
}
.article-calendar span { font-size: 14px; line-height: 1.4; gap: 4px; }
.article-calendar b { font-size: 13px; font-weight: 800; }
.message-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  margin-inline-start: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d6b35a;
  color: #173b36;
  font: 800 11px/1 var(--mono);
  vertical-align: middle;
}
.form-error {
  margin: 12px 0;
  padding: 11px 14px;
  border: 1px solid #d69a8d;
  border-radius: 10px;
  background: #fff3f0;
  color: #8b2f20;
}
.contact-captcha {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 180px);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #cbd9d1;
  border-radius: 11px;
  background: #f3f8f3;
}
.contact-captcha span { line-height: 1.8; }
.contact-captcha strong { color: #173b36; font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 860px) {
  .site-header .header-inner { height: 92px; min-height: 92px; }
  .site-header .brand-logo { height: 72px; max-width: 216px; }
}
@media (max-width: 700px) {
  .article-calendar { min-width: 0; padding: 14px 10px; }
  .article-calendar span { font-size: 13px; }
  .contact-captcha { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header .header-inner { height: 84px; min-height: 84px; }
  .site-header .brand-logo { height: 64px; max-width: 192px; }
}

/* ---------- PuMo green visual system ---------- */
:root {
  --brand-green: #1b7340;
  --brand-green-dark: #145631;
  --brand-green-deep: #0e3d25;
  --brand-green-soft: #e7f3eb;
  --brand-green-pale: #f3f9f5;
  --ink: #173126;
  --ink-soft: #557064;
  --ink-faint: #82988b;
  --paper: #f8fbf8;
  --paper-soft: #eef5f0;
  --line: #d4e2d8;
  --accent: var(--brand-green);
  --accent-soft: var(--brand-green-soft);
  --link: var(--brand-green-dark);
  --radius: 12px;
  --shadow-sm: 0 4px 14px rgba(20, 86, 49, .08);
  --shadow-md: 0 14px 34px rgba(20, 86, 49, .13);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(27,115,64,.10), transparent 28rem),
    linear-gradient(180deg, #fbfdfb 0%, var(--paper) 48%, #f0f7f2 100%);
}

a { color: var(--link); }
a:hover { color: var(--brand-green); }

.site-header {
  background: rgba(255,255,255,.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(20,86,49,.07);
}
.site-header .header-inner { height: 82px; min-height: 82px; }
.site-header .brand { color: var(--brand-green-deep); }
.site-header .brand-logo { height: 58px; max-width: 220px; filter: none; }
.brand-word { color: var(--brand-green-deep); }
.site-header .nav-toggle {
  color: var(--brand-green);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--brand-green-pale);
}
.cats a,
.site-header .header-menu .cats a { color: var(--ink-soft); }
.cats a:hover,
.cats a.active,
.site-header .header-menu .cats a:hover,
.site-header .header-menu .cats a.active {
  color: var(--brand-green-dark);
  border-bottom-color: var(--brand-green);
}
.search { border-color: var(--line); }
.search-icon { color: var(--brand-green); }
.search input { color: var(--ink); background: transparent; }
.search input::placeholder { color: var(--ink-faint); }
.write-btn,
.submit-btn {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(27,115,64,.18);
}
.write-btn:hover,
.submit-btn:hover { background: var(--brand-green-dark); border-color: var(--brand-green-dark); color: #fff; }
.dashboard-icon { color: #b9e8c9; }
.slogan-header { margin: 28px auto 34px; max-width: 1240px; border: 1px solid rgba(185,232,201,.3); border-top: 4px solid #93d9a8; border-radius: 18px; background: linear-gradient(135deg, #0d3821 0%, var(--brand-green-deep) 58%, #1b7340 100%); color: #effaf1; box-shadow: 0 18px 44px rgba(13,56,33,.18); }
.slogan-header p { color: #f3fbf4; }
.slogan-header strong, .slogan-formula, .brand-label { color: #b9e8c9; }
.site-header .header-menu {
  background: var(--brand-green-deep);
  border-top-color: var(--brand-green);
}

main {
  max-width: 1240px;
  margin: 0 auto 34px;
  border: 1px solid #c9ddd0;
  border-top: 4px solid var(--brand-green);
  border-bottom: 4px solid var(--brand-green);
  border-radius: 0 0 18px 18px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 50px rgba(20,86,49,.10);
}
main::before,
main::after {
  background: linear-gradient(90deg, transparent, rgba(27,115,64,.75), transparent);
}

.share-bar {
  color: var(--ink-soft);
  border-bottom-color: var(--line);
}
.share-bar button,
.share-bar a {
  border-color: var(--line);
  background: #fff;
  color: var(--brand-green-dark);
  border-radius: 999px;
}
.share-bar button:hover,
.share-bar a:hover { background: var(--brand-green-soft); border-color: #a9cdb5; }

.featured {
  background: linear-gradient(135deg, var(--brand-green-deep), var(--brand-green));
  border: 0;
  border-top: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.featured-img { opacity: .9; }
.featured-text .pill,
.pill {
  color: var(--brand-green-dark);
  background: #d9f0df;
  border-radius: 999px;
}
.featured-text h1 { color: #fff; }
.featured-text p { color: #d7e9dd; }
.featured-text .meta { color: #b8d4c1; }
.eyebrow,
.read-more { color: #b9ebc8; }
.eyebrow-dot { background: #b9ebc8; box-shadow: 0 0 0 4px rgba(185,235,200,.16); }
.featured-img.placeholder,
.card-img.placeholder { background-image: linear-gradient(135deg, #d9ecdf 0%, #eff8f1 60%, #d0e6d7 100%); }

.section-heading { border-bottom-color: var(--brand-green); }
.section-heading h2 { color: var(--brand-green-deep); }
.section-count { color: var(--ink-faint); }
.card {
  border-color: var(--line);
  background: rgba(255,255,255,.72);
  box-shadow: none;
}
.card:hover {
  background: #fff;
  border-color: #a8cbb3;
  box-shadow: var(--shadow-sm);
}
.card h2 { color: var(--brand-green-deep); }
.card p { color: var(--ink-soft); }
.card-number { color: #a4bbae; }
.tag-analysis {
  color: var(--brand-green-dark);
  background: #dff1e4;
  border-radius: 999px;
}
.empty a { color: var(--brand-green); }

.post-head,
.about-page,
.contact-page,
.editor,
.storage-panel,
.diagnostic-card,
.message-card,
.live-editor,
.live-output {
  border-color: var(--line);
  border-top-color: #9cc6a9;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
}
.post-head h1,
.about-page h1,
.contact-hero h1 { color: var(--brand-green-deep); }
.post-body {
  color: #263c30;
  background: rgba(255,255,255,.72);
  border-color: var(--line);
}
.post-body a,
.attachments a { color: var(--brand-green); }
.post-body blockquote,
.post-body.content-rtl blockquote { border-right-color: var(--brand-green); }
.post-body.content-ltr blockquote { border-left-color: var(--brand-green); }
.post-body th { background: var(--brand-green-soft); color: var(--brand-green-deep); }
.post-body code { background: var(--brand-green-soft); color: var(--brand-green-dark); }
.post-body pre,
.post-body.notebook .highlight pre,
.post-body.notebook div.input_area pre,
.live-output { background: #123c27; }
.post-body.notebook .code_cell { border-color: var(--line); box-shadow: var(--shadow-sm); }
.post-body.notebook .output_area { background: #f0f7f2; border-top-color: var(--line); }
.post-body.notebook .dataframe thead th { background: #dcefe2; color: var(--brand-green-deep); }
.post-body.notebook .dataframe tbody tr:hover { background: #e8f5eb; }

.article-calendar {
  border-top-color: var(--brand-green);
  box-shadow: var(--shadow-sm);
}
.article-readership,
.readership-band {
  background: var(--brand-green-deep);
  border-color: var(--brand-green);
  color: #fff;
}
.article-readership { background: var(--brand-green-pale); color: var(--ink); }
.article-readership > div:first-child span,
.top-countries small,
.top-countries span { color: var(--ink-soft); }
.top-countries b { color: var(--brand-green-deep); }
.donate-button { background: #b9e8c9; color: var(--brand-green-deep); }
.donate-cta { background: var(--brand-green-soft); border-color: #a9cdb5; }
.print-btn { border-color: #b7d1bf; background: #fff; color: var(--brand-green-dark); }
.print-btn:hover { background: var(--brand-green-soft); }

.editor label,
.contact-form-card label { color: var(--ink-soft); }
.editor input[type=text],
.editor input[type=url],
.editor input[type=email],
.editor input[type=password],
.editor textarea,
.editor select,
.storage-inline-form input,
.storage-inline-form select,
.storage-bucket input,
.contact-form-card input,
.contact-form-card textarea {
  color: var(--ink);
  border-color: #c6dbcc;
  background: #fbfefb;
  border-radius: 10px;
}
.editor input:focus,
.editor textarea:focus,
.editor select:focus,
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(27,115,64,.13);
  background: #fff;
}
.contact-hero {
  background: linear-gradient(135deg, var(--brand-green-deep), var(--brand-green));
  border-top-color: #9ed2ad;
  box-shadow: var(--shadow-md);
}
.contact-hero h1 { color: #fff; }
.contact-hero p { color: #d6ebdc; }
.contact-captcha { border-color: #c6dbcc; background: var(--brand-green-pale); }
.contact-captcha strong { color: var(--brand-green-dark); }
.form-error { background: #fff1ef; border-color: #e4b9b1; color: #8c3429; }
.settings-saved,
.status-btn.published { background: #dff2e4; color: var(--brand-green-dark); }
.status-btn.draft { background: var(--paper-soft); color: var(--ink-soft); border-color: var(--line); }
.admin-tabs { border-bottom-color: var(--line); }
.admin-tabs a.active { color: var(--brand-green-dark); border-bottom-color: var(--brand-green); }
.admin-table th,
.admin-table td { border-bottom-color: var(--line); }
.admin-table th { color: var(--ink-faint); }
.row-actions form button,
.admin-actions form button { color: var(--brand-green); }
.danger-btn { border-color: #bb5145; color: #a33f34; }
.message-card.unread { border-color: #8ec49d; background: #f0f9f2; }
.message-head a { color: var(--brand-green); }
.settings-seo,
.cover-picker { border-color: var(--line); }
.profile-photo { border-color: var(--brand-green); }
.article-tags-end { border-top-color: var(--brand-green); background: linear-gradient(135deg, #fff 0%, var(--brand-green-pale) 100%); }
.article-tags-kicker { color: var(--brand-green-dark); background: var(--brand-green-soft); }
.article-tag-link { color: var(--brand-green-dark); border-color: #bfd7c6; }
.article-tag-link:hover,
.article-tag-link:focus-visible { color: #fff; background: var(--brand-green); border-color: var(--brand-green); }
.article-tag-link::before { color: var(--brand-green); }
.article-readership .top-countries span,
.post > .article-readership .top-countries span { color: var(--ink-soft); }
.post > .article-readership { border-top-color: var(--brand-green); background: var(--brand-green-deep); }
.content-feedback-cta { border-inline-start-color: var(--brand-green); background: var(--brand-green-pale); }
.content-feedback-cta a { color: #fff; background: var(--brand-green); }
.content-feedback-cta a:hover { color: #fff; background: var(--brand-green-dark); }
.message-badge { background: #b9e8c9; color: var(--brand-green-deep); }
.site-header .header-menu .cats a.active {
  color: #fff;
  border-color: #8fc5a0;
  background: rgba(185,232,201,.16);
}

.site-footer {
  background: linear-gradient(135deg, #0d3821 0%, var(--brand-green-deep) 58%, #1b7340 100%);
  color: #e4f2e8;
}
.site-footer::before { opacity: .08; }
.footer-brand p,
.footer-column a,
.footer-admin-link { color: #b8d2c1; }
.footer-column a:hover,
.footer-admin-link:hover,
.footer-code,
.footer-signal { color: #b9e8c9; }
.footer-signal span { background: #93d9a8; box-shadow: 0 0 0 4px rgba(147,217,168,.15); }
.footer-bottom { border-top-color: rgba(220,244,227,.2); color: #94b6a0; }

button,
input,
select,
textarea { font-family: var(--sans); }
:focus-visible {
  outline: 3px solid rgba(27,115,64,.38);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .site-header .header-inner { height: 76px; min-height: 76px; }
  .site-header .brand-logo { height: 54px; max-width: 180px; }
  main { border-radius: 0 0 12px 12px; margin-bottom: 20px; }
  .featured { border-radius: 12px; }
}
@media (max-width: 600px) {
  .site-header .header-inner { height: 68px; min-height: 68px; }
  .site-header .brand-logo { height: 48px; max-width: 150px; }
  .featured-text h1 { letter-spacing: -.025em; }
  .post-head,
  .about-page,
  .contact-page { border-radius: 12px; }
}

/* Bilingual article disclaimer */
.article-disclaimer { width: min(100% - 32px, 860px); margin: 24px auto 34px; padding: clamp(18px, 3vw, 28px); border: 1px solid #b8d4c0; border-inline-start: 5px solid var(--brand-green); border-radius: 16px; background: linear-gradient(135deg, #f5fbf6, #fff); box-shadow: var(--shadow-sm); }
.article-disclaimer header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.article-disclaimer header > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--brand-green); font-weight: 800; }
.article-disclaimer h2 { margin: 0; font-size: 18px; color: var(--brand-green-deep); }
.article-disclaimer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.article-disclaimer section { min-width: 0; padding: 16px 18px; border: 1px solid rgba(184,212,192,.72); border-radius: 12px; background: rgba(225,239,228,.5); }
.article-disclaimer p { margin: 0; color: var(--ink-soft); font: 14px/2 var(--sans); overflow-wrap: anywhere; }
.verification-card { margin: 24px auto 32px; padding: 20px; border: 1px solid #b8d4c0; border-top: 4px solid var(--brand-green); border-radius: 14px; background: #f4faf5; box-shadow: var(--shadow-sm); }
.verification-heading { display: flex; align-items: center; gap: 12px; }
.verification-heading > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--brand-green); font-weight: 800; }
.verification-heading div { flex: 1; }
.verification-heading h2 { margin: 0; color: var(--brand-green-deep); font-size: 17px; }
.verification-heading p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }
.verification-heading strong { color: var(--brand-green-dark); font: 800 18px/1 var(--mono); }
.verification-sources { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #cde0d2; }
.verification-sources a { color: var(--brand-green-dark); font-size: 12px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.verification-conflicting_reports, .verification-insufficient_corroboration { border-color: #e4c7a4; border-top-color: #b8792b; background: #fff9ef; }
.verification-conflicting_reports .verification-heading > span, .verification-insufficient_corroboration .verification-heading > span { background: #b8792b; }
@media (max-width: 700px) {
  .article-disclaimer { width: min(100% - 24px, 560px); margin-block: 18px 26px; border-inline-start-width: 4px; }
  .article-disclaimer header { align-items: flex-start; }
  .article-disclaimer h2 { font-size: 16px; line-height: 1.5; }
  .article-disclaimer-grid { grid-template-columns: 1fr; gap: 10px; }
  .article-disclaimer section { padding: 14px; }
  .article-disclaimer p { font-size: 13px; line-height: 1.9; }
  .verification-card { margin: 18px 12px 26px; padding: 16px 14px; }
  .verification-heading { align-items: flex-start; flex-wrap: wrap; }
  .verification-heading strong { margin-inline-start: 46px; }
}

/* Rich Markdown components */
.markdown-body h2 { padding-bottom: .35em; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.markdown-body :is(h2,h3,h4,h5,h6) { position: relative; scroll-margin-top: 100px; }
.markdown-body .heading-anchor { margin-inline-start: .35em; color: var(--ink-faint); font: .7em var(--sans); text-decoration: none; opacity: 0; }
.markdown-body :is(h2,h3,h4,h5,h6):hover .heading-anchor,.markdown-body .heading-anchor:focus-visible { opacity: 1; }
.markdown-body .contains-task-list { padding-inline-start: 0; list-style: none; }
.markdown-body .task-list-item { position: relative; padding-inline-start: 1.6em; }
.markdown-body .task-list-item>input { position: absolute; inset-inline-start: 0; top: .5em; accent-color: var(--brand-green); }
.markdown-body blockquote.markdown-alert { padding: 14px 16px; border: 1px solid var(--line); border-inline-start: 5px solid var(--alert,#0969da); border-radius: 8px; background: #f4f8ff; color: var(--ink); font-style: normal; }
.markdown-body .markdown-alert-title { margin: 0 0 7px; color: var(--alert,#0969da); font-family: var(--sans); font-weight: 800; }
.markdown-body .markdown-alert-tip { --alert:#1a7f37; background:#effaf2 }.markdown-body .markdown-alert-important { --alert:#8250df; background:#f7f2ff }.markdown-body .markdown-alert-warning { --alert:#9a6700; background:#fff8e6 }.markdown-body .markdown-alert-caution { --alert:#cf222e; background:#fff1f2 }
.markdown-body details,.markdown-body .admonition,.markdown-body .toc { margin: 22px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--brand-green-pale); }
.markdown-body summary,.markdown-body .admonition-title { cursor: pointer; font-family: var(--sans); font-weight: 800; }
.markdown-body .footnote { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84em; color: var(--ink-soft); }
.markdown-body tbody tr:nth-child(even) { background: rgba(225,239,228,.45); }
