/* ============ TOKENS ============ */
:root {
  --bg: #fbfaf6;
  --bg-card: #ffffff;
  --bg-soft: #f3f1eb;
  --bg-dark: #14252e;

  --navy: #1B3D4A;
  --navy-deep: #102832;
  --navy-light: #2a566a;

  --ink: #14181a;
  --ink-2: #36404a;
  --ink-3: #5b6670;
  --ink-4: #8a939c;

  --rule: #d8d4ca;
  --rule-soft: #ebe7dd;

  --accent: #b1331a;       /* rouge oxydé du Peuple */
  --accent-deep: #8a2510;
  --gold: #c79220;
  --gold-soft: #f4e8c2;
  --teal: #2d7e84;
  --olive: #6b7a3a;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, monospace;

  --max-w: 1340px;
  --shell-w: 760px;
  --shell-w-lg: 1040px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ TOP NAV ============ */
.top-strip {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 10px 0;
}
.top-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.top-strip-inner .l { text-transform: uppercase; }
.top-strip-inner a {
  color: rgba(255,255,255,0.85);
  margin-left: 18px;
  transition: color 0.15s;
}
.top-strip-inner a:hover { color: var(--gold-soft); text-decoration: none; }
@media (max-width: 720px) {
  .top-strip-inner { font-size: 11.5px; padding: 0 16px; }
  .top-strip-inner .l { display: none; }
}

/* ============ BRAND ============ */
.brand {
  background: var(--bg);
  padding: 28px 0 22px;
  text-align: center;
  border-bottom: 1px solid var(--rule-soft);
}
.brand a.brand-link {
  display: inline-block;
  line-height: 0;
}
.brand .brand-logo {
  height: 70px;
  width: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 540px) {
  .brand { padding: 22px 0 18px; }
  .brand .brand-logo { height: 54px; }
}
.brand .tag {
  margin-top: 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============ PROGRESS ============ */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 100;
  transition: width 0.05s linear;
}

/* ============ SHELL ============ */
.shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 24px;
}
.shell-md {
  max-width: var(--shell-w-lg);
  margin: 0 auto;
  padding: 0 28px;
}
.shell-wide {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .shell, .shell-md, .shell-wide { padding-left: 18px; padding-right: 18px; }
}

/* ============ ARTICLE BODY (prose width constraints) ============ */
/* Inside the wider .shell-md, prose paragraphs and section ledes stay
   constrained to comfortable reading width, while charts, tables,
   and grids use the full width. */
.article-body > p,
.article-body > h3.subsection,
.article-body > .lede,
.article-body > .callout {
  max-width: 760px;
}
.article-body > h2.section-title {
  max-width: 900px;
}
.article-body > .pull {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.article-body > .disclosure,
.article-body > .context-box {
  max-width: 900px;
}

/* ============ ARTICLE HEAD ============ */
.article-head {
  padding: 56px 0 36px;
}
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 10px;
  border: 1px solid var(--accent);
  margin-bottom: 22px;
}
.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 1.04;
  color: var(--navy-deep);
  margin: 0 0 22px;
  letter-spacing: -0.012em;
}
.title em {
  font-style: italic;
  color: var(--accent);
}
.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 640px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.byline strong { color: var(--navy); font-weight: 600; }
.byline .dot { width: 4px; height: 4px; background: var(--ink-4); border-radius: 50%; }
.byline .badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: var(--accent-deep);
  padding: 3px 9px;
  border-radius: 2px;
}

/* ============ INTRO LEDE ============ */
.lede-block {
  padding: 36px 0;
}
.lede-block p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
}
.lede-block p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 500;
  line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--accent);
}
.lede-block mark {
  background: var(--gold-soft);
  padding: 1px 4px;
  border-radius: 1px;
  color: var(--ink);
}
.lede-block strong {
  color: var(--navy-deep);
  font-weight: 600;
}

/* ============ HERO STATS ============ */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  background: var(--bg-card);
  margin: 24px 0;
}
.hero-stats > div {
  padding: 30px 24px 28px;
  border-right: 1px solid var(--rule-soft);
  position: relative;
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats .num {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--navy-deep);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero-stats .num.acc { color: var(--accent); }
.hero-stats .lab {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
@media (max-width: 800px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div { border-bottom: 1px solid var(--rule-soft); }
  .hero-stats > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { border-right: 0; }
}

/* ============ CALLOUTS ============ */
.callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--navy);
  padding: 22px 26px;
  margin: 28px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.callout h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px;
}

/* ============ SECTION HEAD ============ */
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  color: var(--navy-deep);
  margin: 80px 0 16px;
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 16px;
  border-top: 2px solid var(--navy);
}
.section-title .roman {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}
h3.subsection {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 24px;
  color: var(--navy);
  margin: 44px 0 14px;
  line-height: 1.25;
}

/* ============ BODY TEXT ============ */
.shell p, .lede-content p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink);
  margin: 0 0 18px;
}
.shell p strong, .lede-content p strong { color: var(--navy-deep); font-weight: 600; }
.shell p mark { background: var(--gold-soft); padding: 0 3px; color: var(--ink); }
.shell p em { font-style: italic; color: var(--ink-2); }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px !important;
  line-height: 1.5 !important;
  color: var(--ink-2) !important;
  margin: 0 0 28px !important;
  max-width: 640px;
}

/* ============ PULL QUOTE ============ */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--navy-deep);
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  padding: 32px 0 28px;
  margin: 40px 0;
  position: relative;
}
.pull::before {
  content: "“";
  font-family: var(--serif);
  font-size: 90px;
  line-height: 0.6;
  color: var(--accent);
  position: absolute;
  top: 14px;
  left: -8px;
  font-style: normal;
}
.pull cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 20px;
  font-weight: 500;
}

/* ============ CHART FRAME ============ */
.chart-frame {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 26px 24px 22px;
  margin: 32px 0;
  position: relative;
}
.chart-frame .ch-overline {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.chart-frame .ch-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy-deep);
  margin: 0 0 6px;
}
.chart-frame .ch-subtitle {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 640px;
}
.chart-frame .ch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.chart-frame .ch-legend span { display: flex; align-items: center; gap: 7px; }
.chart-frame .ch-legend i {
  width: 18px;
  height: 3px;
  background: currentColor;
  display: inline-block;
}
.chart-frame .canvas-wrap { position: relative; width: 100%; }
.chart-frame .ch-source {
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 14px;
  font-style: italic;
  border-top: 1px dotted var(--rule);
  padding-top: 10px;
}

/* ============ BIG NUMBER GRID ============ */
.bignum-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  margin: 40px 0;
  border: 1px solid var(--rule);
}
.bignum-grid > div {
  background: var(--bg-card);
  padding: 28px 22px;
}
.bignum-grid .bn-v {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  color: var(--navy-deep);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.bignum-grid .bn-v.acc { color: var(--accent); }
.bignum-grid .bn-l {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.bignum-grid .bn-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 800px) { .bignum-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bignum-grid { grid-template-columns: 1fr; } }

/* ============ TABLE ============ */
.tab {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
  background: var(--bg-card);
}
.tab thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  padding: 12px 12px;
  border-bottom: 2px solid var(--navy);
  background: var(--bg-soft);
}
.tab thead th.r { text-align: right; }
.tab tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
}
.tab tbody td.r { text-align: right; font-family: var(--mono); font-weight: 500; }
.tab tbody td.lab { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.tab tbody tr:hover { background: var(--bg-soft); }
.tab .pos { color: var(--accent); }
.tab .neg { color: var(--teal); }
.tab .neutral { color: var(--ink-3); }

/* ============ CITY CARDS ============ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}
.city-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  padding: 26px 24px;
  min-width: 0; /* allow grid items to shrink */
}
.city-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0;
  letter-spacing: -0.01em;
}
.city-card .city-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.city-card .city-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 13.5px;
}
.city-card .city-row:last-child { border-bottom: 0; }
.city-card .city-row .lab { color: var(--ink-3); }
.city-card .city-row .val { font-family: var(--mono); font-weight: 600; color: var(--navy-deep); }
@media (max-width: 1024px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .city-grid { grid-template-columns: 1fr; } }

/* ============ STATIC KEY-FIGURES BAR ============ */
.kf-bar {
  background: var(--navy-deep);
  color: #f4f1e8;
  padding: 18px 24px;
  margin: 28px 0;
  border-top: 1px solid var(--navy-light);
  border-bottom: 1px solid var(--navy-light);
}
.kf-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 13px;
}
.kf-bar-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.4;
}
.kf-bar-item .kf-dot {
  width: 5px; height: 5px; flex-shrink: 0;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-2px);
}
.kf-bar-item .kf-lab { color: rgba(244,241,232,0.78); }
.kf-bar-item .kf-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
@media (max-width: 980px) { .kf-bar-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kf-bar-inner { grid-template-columns: 1fr; gap: 14px; } }

/* ============ TABS ============ */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin: 32px 0 0;
}
.tabs-nav button {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 22px 14px;
  cursor: pointer;
  color: var(--ink-3);
  transition: all 0.15s;
  margin-bottom: -1px;
}
.tabs-nav button:hover { color: var(--navy); }
.tabs-nav button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-pane { display: none; padding-top: 24px; }
.tab-pane.active { display: block; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 56px 28px 32px;
  margin-top: 80px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-cols .footer-brand-link {
  display: inline-block;
  line-height: 0;
  margin: 0 0 6px;
}
.footer-cols .footer-logo {
  height: 56px;
  width: auto;
  display: block;
  /* logo is dark navy — invert + brighten to make it visible on dark bg */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols ul li { margin-bottom: 8px; }
.footer-cols ul a { color: rgba(255,255,255,0.85); }
.footer-cols ul a:hover { color: var(--gold); }
.footer-cols .social-list a { display: inline-block; padding: 2px 0; }
.footer-bot {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
@media (max-width: 800px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ NOTES BLOCK ============ */
.notes {
  margin-top: 56px;
  padding: 32px 30px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  font-size: 13.5px;
}
.notes h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0 0 14px;
}
.notes ol { padding-left: 22px; }
.notes ol li { margin-bottom: 8px; line-height: 1.5; color: var(--ink-2); }
.notes em { font-style: italic; color: var(--accent-deep); }

/* ============ MISC ============ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 50;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.context-box {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  padding: 22px 24px;
  margin: 28px 0;
}
.context-box h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--navy-deep);
}
.context-box p { font-family: var(--sans) !important; font-size: 14.5px !important; line-height: 1.6 !important; color: var(--ink-2) !important; margin: 0 0 10px !important; }
.context-box p:last-child { margin-bottom: 0 !important; }

/* Compact data table for cantons */
.canton-rank {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.canton-rank th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 2px solid var(--navy);
}
.canton-rank th.r { text-align: right; }
.canton-rank td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule-soft);
}
.canton-rank td.r { text-align: right; font-family: var(--mono); font-weight: 500; }
.canton-rank td.bar-cell { width: 30%; }
.canton-rank .bar {
  height: 10px;
  background: var(--accent);
  position: relative;
}
.canton-rank .bar-bg {
  background: var(--rule-soft);
  height: 10px;
  position: relative;
  overflow: hidden;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.toolbar button {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.toolbar button:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--bg-card);
}

.disclosure {
  background: var(--gold-soft);
  border: 1px solid #e3d499;
  padding: 18px 22px;
  margin: 36px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.disclosure strong { color: var(--accent-deep); }


/* ============ NEWSLETTER / LOGIN GATE ============ */
.icm-gate {
  max-width: 900px;
  margin: 34px 0 56px;
}
.icm-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  padding: 30px 30px 28px;
  box-shadow: 0 18px 40px rgba(16, 40, 50, 0.08);
}
.icm-gate-kicker {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent) !important;
  margin: 0 0 10px !important;
}
.icm-gate h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0 0 12px;
}
.icm-gate p {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--ink-2) !important;
}
.icm-gate-actions {
  margin: 22px 0;
}
.icm-login-btn,
.icm-newsletter-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 18px;
  cursor: pointer;
  min-height: 46px;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.icm-login-btn:hover,
.icm-newsletter-row button:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  text-decoration: none;
}
.icm-newsletter-row button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.icm-gate-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.icm-gate-sep::before,
.icm-gate-sep::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--rule-soft);
}
.icm-newsletter-form label:not(.icm-consent) {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.icm-newsletter-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.icm-newsletter-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  min-height: 46px;
}
.icm-newsletter-row input[type="email"]:focus {
  outline: 2px solid rgba(177, 51, 26, 0.18);
  border-color: var(--accent);
}
.icm-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}
.icm-consent input {
  margin-top: 3px;
}
.icm-form-message {
  min-height: 22px;
  margin: 14px 0 0 !important;
  font-family: var(--sans) !important;
  font-size: 13.5px !important;
}
.icm-form-message.ok {
  color: var(--teal) !important;
}
.icm-form-message.error {
  color: var(--accent) !important;
}
@media (max-width: 640px) {
  .icm-gate-card { padding: 24px 20px; }
  .icm-newsletter-row { flex-direction: column; }
  .icm-login-btn,
  .icm-newsletter-row button { width: 100%; }
}
