:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-muted: #fdf3e3;
  --border: #ddd4c7;
  --text: #1f1f1f;
  --text-muted: #4a4a4a;
  --heading: #1f1f1f;
  --accent: #8b5e0a;
  --accent-strong: #6b4509;
  --mediation: #2d5016;
  --arbitration-bg: #fdf3e3;
  --article-width: 700px;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(31, 31, 31, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.8;
}

html[lang^="he"] body,
html[lang^="ar"] body {
  font-family: "Noto Sans Hebrew", "Noto Sans Arabic", "Segoe UI", Arial, sans-serif;
}

.site-shell,
.site-header,
.feature-card,
.story-card,
.topic-intro,
.sidebar-card,
.article-section,
.tldr-box,
.newsletter-box,
.ad-slot,
.month-tile,
.topic-pill,
.filter-pill {
  font-family: inherit;
}

a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--heading);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.site-shell > .main-column,
.page-grid {
  margin-top: 24px;
}

.language-select {
  min-height: 44px;
  min-width: 132px;
  max-width: 220px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: none;
  font-family: inherit;
}

.site-header {
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.header-language {
  margin-left: auto;
  flex: 0 0 auto;
}

[dir="rtl"] .header-language {
  margin-left: 0;
  margin-right: auto;
}

.brand-row,
.nav-row,
.page-grid,
.story-grid,
.archive-grid,
.filter-row,
.meta-row,
.story-meta,
.related-list,
.source-list,
.topic-pills {
  display: flex;
  gap: 12px;
}

.brand-row,
.nav-row,
.meta-row,
.story-meta {
  align-items: center;
  flex-wrap: wrap;
}

.brand-row {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--heading);
  text-decoration: none;
}

.brand-mark .brand-acronym {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  unicode-bidi: isolate;
}

.brand-mark .brand-journal {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  unicode-bidi: isolate;
}

.brand-kicker,
.meta-row,
.story-meta,
.source-domain,
.archive-note,
.sidebar-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-row {
  justify-content: space-between;
  padding-top: 14px;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
}

.nav-links a.is-active {
  color: var(--heading);
  border-bottom-color: var(--accent);
}

.footer-language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 10px;
}

.footer-language-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.2;
}

.footer-language-links a:hover {
  color: var(--heading);
  text-decoration: underline;
}

.ad-slot {
  display: none;
}

.page-grid {
  align-items: flex-start;
  gap: 32px;
}

.main-column {
  flex: 1 1 0;
  min-width: 0;
}

.main-column.article-column {
  max-width: var(--article-width);
}

.side-column {
  width: 320px;
  min-width: 280px;
}

.card,
.sidebar-card,
.tldr-box,
.story-card,
.archive-card,
.topic-intro,
.article-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card,
.story-card,
.archive-card,
.topic-intro,
.sidebar-card,
.article-section,
.tldr-box {
  padding: 22px;
}

.feature-card {
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
  padding: 26px;
}

.topic-intro {
  margin-bottom: 34px;
}

.story-card {
  border-left: 4px solid var(--accent);
}

[dir="rtl"] .story-card {
  border-left: 1px solid var(--border);
  border-right: 4px solid var(--accent);
}

.eyebrow,
.topic-tag,
.story-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.eyebrow,
.story-tag.arbitration,
.topic-tag.arbitration {
  background: var(--arbitration-bg);
  color: var(--accent-strong);
}

.story-tag.mediation,
.topic-tag.mediation {
  background: #eef7e8;
  color: var(--mediation);
}

.story-tag-country {
  background: #f4efe7;
  color: var(--text-muted);
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  color: var(--heading);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: 1.5rem;
}

#latest-stories,
#topic-latest {
  padding: 8px 0;
}

h3 {
  font-size: 1.15rem;
}

p,
ul {
  margin: 0 0 14px;
}

.feature-card p,
.story-card p,
.article-section p,
.sidebar-card p,
.newsletter-box p,
.newsletter-card p {
  font-size: 1.02rem;
}

ul {
  padding-left: 22px;
}

.topic-pills,
.filter-row,
.story-grid,
.related-list,
.source-list,
.archive-grid {
  flex-wrap: wrap;
}

.topic-pill,
.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

.filter-pill.is-active {
  border-color: var(--accent);
  background: var(--surface-muted);
  color: var(--accent-strong);
}

.story-grid > * {
  flex: 1 1 calc(50% - 12px);
  min-width: 280px;
}

.archive-grid > * {
  flex: 1 1 calc(33.333% - 12px);
  min-width: 180px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.country-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  background: var(--surface);
}

.country-card:hover {
  background: var(--surface-muted);
}

.country-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
}

.country-meta,
.empty-notice {
  color: var(--text-muted);
}

.country-meta {
  font-size: 0.8rem;
}

.empty-notice {
  font-size: 0.95rem;
  padding: 32px 0;
}

.kicker-list,
.source-list,
.related-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.kicker-list li,
.source-list li,
.related-list li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.kicker-list li:first-child,
.source-list li:first-child,
.related-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.article-header {
  margin-bottom: 18px;
}

.tldr-box {
  background: var(--surface-muted);
  border-left: 6px solid var(--accent);
  margin-bottom: 20px;
}

[dir="rtl"] .tldr-box {
  border-left: 1px solid var(--border);
  border-right: 6px solid var(--accent);
}

.readmore-link {
  font-weight: 700;
  text-decoration: none;
}

.article-section {
  margin-bottom: 18px;
}

.section-nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.section-nav li + li {
  margin-top: 8px;
}

.month-tile {
  display: block;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

.newsletter-box {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
}

.newsletter-card {
  background: var(--surface-muted);
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.newsletter-form button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-note {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form label {
  font-weight: 700;
}

.stack-form input,
.stack-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.stack-form textarea {
  min-height: 160px;
  resize: vertical;
}

.stack-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.inline-form label {
  grid-column: 1 / -1;
}

.form-status {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.form-status.success {
  background: #eef7e8;
  color: #2d5016;
}

.form-status.error {
  background: #fff1ee;
  color: #8a2f1e;
}

@media (max-width: 960px) {
  .page-grid {
    flex-direction: column;
  }

  .side-column {
    width: 100%;
    min-width: 0;
  }

  .main-column.article-column {
    max-width: none;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  .site-header {
    padding: 14px 0 10px;
  }

  .header-top {
    align-items: flex-start;
  }

  .site-shell {
    padding: 0 14px 40px;
  }

  .brand-row {
    gap: 8px;
  }

  .brand-kicker {
    display: block;
    width: 100%;
    font-size: 0.88rem;
  }

  .nav-links {
    gap: 10px 14px;
  }

  .nav-links a {
    padding-bottom: 8px;
    font-size: 0.96rem;
  }

  .footer-note {
    margin-top: 24px;
    padding-top: 16px;
  }

  .footer-language-links {
    gap: 6px 8px;
  }

  .footer-language-links a {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .story-grid > *,
  .archive-grid > * {
    flex-basis: 100%;
    min-width: 0;
  }

  .feature-card,
  .story-card,
  .archive-card,
  .topic-intro,
  .sidebar-card,
  .article-section,
  .tldr-box {
    padding: 18px;
  }

  .language-select {
    width: auto;
    min-width: 116px;
    max-width: 160px;
  }
}
