:root {
  --bg: #f5f0e5;
  --bg-elevated: rgba(255, 252, 246, 0.84);
  --panel: #fffaf1;
  --panel-strong: #f1e5cf;
  --field-bg: rgba(132, 130, 128, 0.2);
  --field-placeholder: rgba(44, 39, 34, 0.6);
  --text: #2c2722;
  --muted: #655b50;
  --border: #c7b9a3;
  --surface-edge: #a3927e;
  --surface-edge-width: 2px;
  --control-edge-width: 3px;
  --surface-inset-shadow: inset 0 0 0.55rem rgba(53, 37, 20, 0.14);
  --control-inset-shadow: inset 0.14rem 0.14rem 0 rgba(24, 61, 51, 0.22);
  --button-secondary-bg: rgba(132, 130, 128, 0.16);
  --button-secondary-bg-hover: rgba(132, 130, 128, 0.26);
  --button-edge: #183d33;
  --link: #245b4a;
  --link-hover: #183d33;
  --accent: #9f542b;
  --accent-soft: rgba(159, 84, 43, 0.1);
  --shadow: 0 16px 40px rgba(53, 37, 20, 0.08);
  --maxw: 58rem;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  color-scheme: light;
}

html.theme-light {
  color-scheme: light;
}

html.theme-dark {
  --bg: #120f0e;
  --bg-elevated: rgba(29, 24, 21, 0.9);
  --panel: #211c18;
  --panel-strong: #31261f;
  --field-bg: rgba(255, 255, 255, 0.1);
  --field-placeholder: rgba(230, 221, 210, 0.58);
  --text: #e6ddd2;
  --muted: #ccbea9;
  --border: #5f5145;
  --surface-edge: #453831;
  --surface-inset-shadow: inset 0 0 0.65rem rgba(0, 0, 0, 0.28);
  --control-inset-shadow: inset 0.14rem 0.14rem 0 rgba(0, 0, 0, 0.28);
  --button-secondary-bg: rgba(255, 255, 255, 0.08);
  --button-secondary-bg-hover: rgba(255, 255, 255, 0.14);
  --button-edge: #264439;
  --link: #88c5af;
  --link-hover: #a4dac6;
  --accent: #d58b5f;
  --accent-soft: rgba(213, 139, 95, 0.18);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

html.theme-system {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html.theme-system {
    --bg: #120f0e;
    --bg-elevated: rgba(29, 24, 21, 0.9);
    --panel: #211c18;
    --panel-strong: #31261f;
    --field-bg: rgba(255, 255, 255, 0.1);
    --field-placeholder: rgba(230, 221, 210, 0.58);
    --text: #e6ddd2;
    --muted: #ccbea9;
    --border: #5f5145;
    --surface-edge: #453831;
    --surface-inset-shadow: inset 0 0 0.65rem rgba(0, 0, 0, 0.28);
    --control-inset-shadow: inset 0.14rem 0.14rem 0 rgba(0, 0, 0, 0.28);
    --button-secondary-bg: rgba(255, 255, 255, 0.08);
    --button-secondary-bg-hover: rgba(255, 255, 255, 0.14);
    --button-edge: #264439;
    --link: #88c5af;
    --link-hover: #a4dac6;
    --accent: #d58b5f;
    --accent-soft: rgba(213, 139, 95, 0.18);
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 3.5rem;
}

.hero {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 15rem;
  object-fit: cover;
  object-position: center 60%;
  margin: 0;
  border-radius: 0.9rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2em, 6vw, 3.8em);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.55em, 3.5vw, 2em);
  margin: 2.4rem 0 0.9rem;
}

h3 {
  font-size: 1.16em;
  margin: 0 0 0.55rem;
}

p { margin: 0 0 0.95rem; }

.box h2 {
  margin: 0 0 0.75rem;
}

ul {
  margin: 0 0 1rem 1.15rem;
  padding: 0;
}

li { margin: 0.45rem 0; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.2rem 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

.muted { color: var(--muted); }

.hero,
.box,
.home-page .hero-panel,
.language-panel,
.language-card,
.summary-panel,
.summary-card,
.issue-card,
.faq-item,
.cta-panel {
  border-style: solid;
  border-color: var(--surface-edge);
  border-top-width: var(--surface-edge-width);
  border-left-width: var(--surface-edge-width);
  border-right-width: 0;
  border-bottom-width: 0;
}

.hero,
.language-card,
.summary-card,
.issue-card,
.faq-item {
  box-shadow: var(--surface-inset-shadow);
}

.box {
  background: var(--bg-elevated);
  backdrop-filter: blur(0.35rem);
  border-radius: 1rem;
  box-shadow: var(--surface-inset-shadow), var(--shadow);
  padding: 1rem 1.05rem;
  margin: 1rem 0;
}

.cta {
  margin-top: 1rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.1rem;
  background: var(--link);
  color: #fff;
  border: 1px solid var(--button-edge);
  border-top-width: 0;
  border-left-width: 0;
  border-right-width: var(--control-edge-width);
  border-bottom-width: var(--control-edge-width);
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button:hover {
  color: #fff;
  background: var(--link-hover);
}

.button-secondary {
  background: var(--button-secondary-bg);
  border-color: var(--surface-edge);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--button-secondary-bg-hover);
  color: var(--text);
}

.button-wrap {
  text-align: center;
}

.form-actions {
  text-align: right;
}

input, textarea, button { font: inherit; }

input, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--field-bg);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--field-placeholder);
}

button[type="submit"] {
  background: var(--link);
  color: #fff;
  border: 1px solid var(--button-edge);
  border-top-width: 0;
  border-left-width: 0;
  border-right-width: var(--control-edge-width);
  border-bottom-width: var(--control-edge-width);
  padding: 0.75rem 1.05rem;
  border-radius: 0.35rem;
  cursor: pointer;
  font-weight: 700;
}

button[type="submit"]:hover {
  opacity: 0.92;
}

.site-footer {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78em;
  color: var(--muted);
  text-align: left;
}

.site-footer .copyright {
  text-align: center;
  text-transform: lowercase;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--text);
  background: transparent;
}

.page-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin: 0 0 1rem;
  font-size: 0.92em;
}

.page-nav.top {
  margin-right: 0;
  font-size: 0.82em;
}

.meta {
  color: var(--muted);
  font-size: 0.95em;
}

.small {
  font-size: 0.95em;
  color: var(--muted);
}

.addr {
  white-space: pre-line;
}

.home-page .hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  margin: 0 0 1.8rem;
  background: var(--bg-elevated);
  border-radius: 1.4rem;
  box-shadow: var(--surface-inset-shadow), var(--shadow);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede {
  max-width: 75%;
  font-size: 1.07em;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1.25rem;
}

.hero-caption {
  margin-top: 0.65rem;
  font-size: 0.85em;
  color: var(--muted);
  text-align: center;
}

.section-intro {
  max-width: 42rem;
  color: var(--muted);
}

.language-panel {
  margin: 1.2rem 0 2.2rem;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: var(--bg-elevated);
  box-shadow: var(--surface-inset-shadow), var(--shadow);
}

.language-panel h2 {
  margin-top: 0;
}

.language-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.language-card {
  min-height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--panel);
}

.language-card p:last-child {
  margin-bottom: 0;
}

.language-card .button {
  margin-top: 0.4rem;
}

.rtl-card {
  direction: rtl;
  text-align: right;
}

.visual-panel {
  margin: 1.4rem 0 2.2rem;
}

.visual-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.visual-card {
  margin: 0;
  border-style: solid;
  border-color: var(--surface-edge);
  border-top-width: var(--surface-edge-width);
  border-left-width: var(--surface-edge-width);
  border-right-width: 0;
  border-bottom-width: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--surface-inset-shadow), var(--shadow);
}

.visual-media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.visual-media-stack {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.visual-media-stack .visual-media {
  position: absolute;
  inset: 0;
  height: 100%;
  border-bottom: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.visual-media-stack .visual-media.is-active {
  opacity: 1;
}

.visual-card figcaption {
  padding: 0.95rem 1rem 1rem;
}

.visual-card h3 {
  margin: 0 0 0.45rem;
}

.visual-card p {
  margin-bottom: 0;
}

.summary-panel {
  margin: 1.2rem 0 2.2rem;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: var(--panel-strong);
  box-shadow: var(--surface-inset-shadow), var(--shadow);
}

.summary-panel h2 {
  margin-top: 0;
}

.summary-grid,
.issue-grid,
.action-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
}

.summary-grid,
.action-grid {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.faq-grid {
  grid-template-columns: 1fr;
}

.issue-grid {
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

@media (min-width: 50rem) {
  .visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 2500px) {
  :root {
    --maxw: 87rem;
  }

  .issue-grid,
  .faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.summary-card,
.issue-card,
.faq-item {
  min-height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
}

.faq-item h3 {
  font-style: italic;
}

.summary-card p,
.issue-card p,
.faq-item p {
  margin-bottom: 0;
}

.issue-card {
  padding: 0;
  overflow: hidden;
}

.issue-card h3 {
  margin: 0;
  padding: 0.95rem 1rem 0.45rem;
}

.issue-card p:not(.kicker) {
  padding: 0 1rem 1rem;
}

.kicker {
  display: block;
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 1rem 1rem 0 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.action-section ul {
  margin-bottom: 0;
}

.cta-panel {
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: var(--panel);
  box-shadow: var(--surface-inset-shadow), var(--shadow);
}

.action-grid article {
  padding: 0.2rem 0.1rem;
}

.action-grid .button {
  margin-top: 0.35rem;
}

.notice-grid {
  display: grid;
  gap: 1rem;
}

.facts-list {
  list-style: none;
  margin: 0;
}

.facts-list li {
  margin: 0;
  padding: 0.72rem 0;
  border-top: 1px solid var(--border);
}

.facts-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.facts-label {
  display: block;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.18rem;
}

@media (min-width: 50rem) {
  .notice-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.rtl-page {
  direction: rtl;
  text-align: right;
}

.rtl-page main,
.rtl-page .page-nav,
.rtl-page .hero-panel,
.rtl-page .summary-panel,
.rtl-page .box,
.rtl-page .cta-panel,
.rtl-page .summary-card,
.rtl-page .issue-card,
.rtl-page .language-card,
.rtl-page .faq-item {
  text-align: right;
}

.rtl-page .page-nav {
  justify-content: flex-start;
}

.rtl-page .accessibility-title {
  text-align: right;
}

.rtl-page .hero-actions,
.rtl-page .accessibility-controls {
  justify-content: flex-start;
}

.rtl-page .eyebrow {
  letter-spacing: 0;
}

.rtl-page ul {
  margin: 0 1.15rem 1rem 0;
}

@media (max-width: 42rem) {
  main {
    padding-inline: 0.85rem;
  }

  .home-page .hero-panel,
  .summary-panel,
  .cta-panel,
  .box {
    padding: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .lede {
    max-width: 100%;
  }
}
