/* Landing-page comparison layer. Loaded after app.css so the simulator stays narrow
   while the country matrix can use the available viewport. */

.landing-hero {
  padding-bottom: 18px;
}

.latest-updates { margin: 22px 0; border-left: 3px solid var(--accent); padding: 3px 0 3px 14px; }
.latest-updates h2 { font-size: 16px; margin: 0 0 8px; }
.latest-updates ul { list-style: none; padding: 0; margin: 0; }
.latest-updates li { font-size: 13px; line-height: 1.6; margin: 4px 0; }
.latest-updates time { color: var(--muted); margin-right: 8px; font-size: 11px; }
/* Proposals share the baseline's columns; only party identity stays pinned. */
.comparison-table .country-proposal-row > * { background: #0d182b; padding: 10px 12px; }
.comparison-table .proposal-identity { white-space: normal; font-weight: 400; }
.proposal-party { display: block; color: var(--text); font-size: 12px; border-left: 2px solid #344762; padding-left: 8px; line-height: 1.4; }
.proposal-period { display: block; color: #a6b5ce; font-size: 10px; line-height: 1.4; margin-top: 3px; }
.proposal-value { color: #8ce5d3; font-size: 12px; font-variant-numeric: tabular-nums; }
.metric-note { display: block; color: #a6b5ce; font-size: 10px; font-weight: 400; line-height: 1.4; margin-top: 4px; }
.proposal-missing { color: #8192af; font-size: 10px; font-weight: 400; }
.proposal-details-button { border: 0; background: none; color: var(--accent); font: inherit; font-size: 10px; cursor: pointer; padding: 4px 0; margin-top: 1px; text-align: left; }
.proposal-details-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proposal-notes { box-sizing: border-box; width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; background: #101c30; color: var(--text); border: 1px solid #344762; border-radius: 16px; padding: 22px; text-align: left; white-space: normal; font-size: 14px; font-weight: 400; line-height: 1.6; }
.proposal-notes::backdrop { background: rgba(3, 8, 18, .8); }
.proposal-notes form { float: right; margin-left: 12px; }
.proposal-notes h2 { font-size: 20px; }
.proposal-notes .proposal-period { font-size: 12px; }
.proposal-notes dt { margin-top: 14px; font-weight: 700; }
.proposal-notes dd { margin: 4px 0 0; color: #cbd7eb; font-size: 12px; }
.proposal-notes a { color: var(--accent); overflow-wrap: anywhere; }
.proposal-gap .country-proposal-content { position: sticky; left: 20px; width: min(1190px, calc(100vw - 60px)); white-space: normal; color: var(--muted); font-size: 11px; text-align: left; }
.comparison-table tbody + tbody .country-row > * { border-top: 3px solid #263756; }
#country-screen .landing-tabs { margin: 10px 0 18px; }

/* The country comparison table now carries these headline facts, so the old UK-only
   callout strip is intentionally hidden to keep the landing page tighter. */
.landing-callouts { display: none; }

.comparison-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 10px;
}
.comparison-heading h2 { font-size: 22px; }
.comparison-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.debt-currency-control { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; }
.debt-currency-control select { width: 140px; min-height: 44px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #0d182b; color: var(--text); font: inherit; font-size: 13px; }
.debt-currency-control select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.swipe-hint {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.comparison-wrap {
  width: min(1240px, calc(100vw - 28px));
  margin-left: 50%;
  transform: translateX(-50%);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(10, 18, 34, .82);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}
.comparison-wrap:focus { outline: 2px solid rgba(101, 214, 194, .35); outline-offset: 2px; }

.comparison-table {
  width: 100%;
  min-width: 1700px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.comparison-table th,
.comparison-table td {
  padding: 13px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid rgba(38, 55, 86, .72);
  background: rgba(16, 26, 46, .91);
}
.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  background: #0d182b;
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.comparison-table thead th small {
  display: block;
  margin-top: 2px;
  color: #70809d;
  font-size: 8px;
  letter-spacing: .03em;
  text-transform: none;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:hover th,
.comparison-table tbody tr:hover td { background: #13213a; }

/* app.css uses country-card for the old tile layout. On the table, the same class
   is deliberately retained as the JS launch hook and reset to a normal table row. */
.comparison-table tr.country-card,
.comparison-table tr.country-card.live {
  display: table-row;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  box-shadow: none;
}
.comparison-table tr.country-card.live { cursor: pointer; }
.comparison-table tr.country-card.live:active { transform: none; }
.comparison-table tr.country-card.live th,
.comparison-table tr.country-card.live td {
  background: rgba(22, 45, 68, .96);
}
.comparison-table tr.country-card.live:hover th,
.comparison-table tr.country-card.live:hover td {
  background: rgba(27, 58, 82, .98);
}

.comparison-table .sticky-country {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 178px;
  max-width: 178px;
  text-align: left;
  box-shadow: 10px 0 18px rgba(3, 8, 18, .22);
}
.comparison-table thead .sticky-country { z-index: 5; }
.row-flag {
  display: inline-block;
  width: 31px;
  margin-right: 8px;
  vertical-align: middle;
  font-size: 22px;
}
.row-country {
  display: inline-block;
  vertical-align: middle;
  max-width: 125px;
}
.row-country strong { display: block; color: var(--text); font-size: 13px; }
.row-country small { display: block; margin-top: 2px; color: var(--accent); font-size: 9px; font-weight: 700; }

.comparison-table .priority-stat {
  background: rgba(18, 35, 58, .95);
}
.comparison-table tr.country-card.live .priority-stat {
  background: rgba(24, 52, 76, .99);
}
.comparison-table .priority-stat strong { color: var(--text); }
.comparison-table .tax-stat {
  min-width: 190px;
  max-width: 250px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.negative-stat { color: #ffd1d1; }
.positive-stat { color: var(--good); }

.comparison-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.comparison-note strong { color: #cbd7eb; }
.comparison-sources {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 2px 0;
}
.comparison-sources a {
  color: var(--muted);
  font-size: 9px;
  text-decoration: underline;
  text-decoration-color: rgba(154, 169, 196, .35);
  text-underline-offset: 3px;
}
.comparison-sources a:hover { color: var(--accent-2); }

.baseline-strip-four { grid-template-columns: repeat(4, 1fr); }
.baseline-strip-four strong { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .hero-copy.landing-hero { padding: 20px 2px 4px; }
  .hero-copy.landing-hero h1 { font-size: 34px; }
  .hero-copy.landing-hero > p:last-child { font-size: 14px; margin-bottom: 10px; }
  .comparison-wrap { width: calc(100vw - 18px); border-radius: 14px; }
  .comparison-table { min-width: 1670px; }
  .comparison-table th,
  .comparison-table td { padding: 12px 10px; }
  .comparison-table .sticky-country { min-width: 160px; max-width: 160px; }
  .row-flag { width: 27px; margin-right: 5px; font-size: 20px; }
  .row-country { max-width: 112px; }
  .row-country strong { font-size: 12px; }
  .baseline-strip-four { grid-template-columns: 1fr 1fr; }
}

.diesel-price { font-variant-numeric: tabular-nums; }
.diesel-price .metric-note { white-space: normal; min-width: 140px; }
