/* ==========================================================================
   Prime Hotel Picks
   Visual language: Indian Railways station signage + timetable print.
   Utilitarian, high-contrast, information-dense. Built for scanning, not
   for atmosphere. Signal yellow is a WAYFINDING colour only, never a wash.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Surfaces. Warm newsprint grey canvas, white paper for content. */
  --canvas:        #f1efe9;
  --paper:         #ffffff;
  --paper-sunk:    #f7f5f0;

  /* Ink. Never pure black on white for body copy. */
  --ink:           #16150f;
  --ink-strong:    #000000;
  --ink-muted:     #55524a;
  --ink-subtle:    #6d6960;

  /* Rules and borders. Print-weight hairlines. */
  --rule:          #d9d5ca;
  --rule-strong:   #b3ae9f;

  /* Signal yellow. ROLE: wayfinding and identity only.
     Logo board, section markers, active nav, platform board.
     Never a button fill with light text, never a page background. */
  --signal:        #f2b705;
  --signal-deep:   #c99700;

  /* Accent red. ROLE: interactive and brand only. Links, CTAs, active state. */
  --accent:        #b3271e;
  --accent-hover:  #8e1e17;

  /* Semantic, mapped to railway signal meaning: green go, amber caution. */
  --go:            #1b7a3e;
  --go-tint:       #edf6f0;
  --caution:       #8a5d00;
  --caution-tint:  #fdf4e3;

  /* Type */
  --font-ui:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-read:  'Source Serif 4', Georgia, 'Times New Roman', serif;

  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   1.375rem;
  --t-xl:   1.75rem;
  --t-2xl:  2.25rem;
  --t-3xl:  3rem;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --radius:     2px;
  --max-width:  1180px;
  --measure:    68ch;

  --transition: 140ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  z-index: 200;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* --------------------------------------------------------------------------
   3. Header. The logo is a station name board: black text on signal yellow.
   -------------------------------------------------------------------------- */
.header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--s-3) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4ch;
  background: var(--signal);
  color: var(--ink-strong);
  border: 2px solid var(--ink);
  padding: 6px var(--s-3);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--t-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
}
.logo:hover { color: var(--ink-strong); background: var(--signal-deep); }
.logo span { font-weight: 400; }

.nav { display: flex; gap: var(--s-2); align-items: center; }

.nav a {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: var(--s-2) var(--s-3);
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}
.nav a:hover { border-bottom-color: var(--rule-strong); color: var(--ink); }
.nav a.active { border-bottom-color: var(--signal); }

.menu-toggle {
  display: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   4. Hero. Flat, typographic, no gradient.
   -------------------------------------------------------------------------- */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-8) 0 var(--s-7);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, var(--t-3xl));
  max-width: 20ch;
  margin-bottom: var(--s-4);
}

.hero p {
  font-family: var(--font-read);
  font-size: var(--t-md);
  color: var(--ink-muted);
  max-width: 58ch;
  margin: 0;
  text-wrap: pretty;
}

/* Signage marker: a short yellow bar. */
.marker::before {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  background: var(--signal);
  margin-bottom: var(--s-4);
}

/* --------------------------------------------------------------------------
   5. Section headings
   -------------------------------------------------------------------------- */
.section-title {
  max-width: var(--max-width);
  margin: var(--s-8) auto var(--s-5);
  padding: 0 var(--s-5) var(--s-2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
}
.section-title .count {
  font-weight: 400;
  color: var(--ink-subtle);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   6. Index rows. The timetable. Replaces the card grid.
   -------------------------------------------------------------------------- */
.index-list {
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
  transition: background var(--transition);
}
.index-row:last-child { border-bottom: none; }
.index-row:hover,
.index-row:focus-within { background: var(--paper-sunk); }

.index-row__thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper-sunk);
}

.index-row__title {
  font-size: var(--t-md);
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.25;
}
.index-row__title a { color: var(--ink); text-decoration: none; }
.index-row__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
/* full-row hit area, keeping the accessible name on the real link */
.index-row__title a::after { content: ""; position: absolute; inset: 0; }

.index-row__desc {
  font-family: var(--font-read);
  font-size: var(--t-sm);
  color: var(--ink-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: var(--t-xs);
  color: var(--ink-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.region-tag {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 3px solid var(--signal);
  padding-bottom: 1px;
}

/* --------------------------------------------------------------------------
   7. Article header + platform board
   -------------------------------------------------------------------------- */
.article-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-7) 0 var(--s-6);
}

.article-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.article-header h1 {
  font-size: clamp(1.75rem, 4.5vw, var(--t-2xl));
  max-width: 24ch;
  margin-bottom: var(--s-4);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* The memorable move: a station name board carrying the article's key facts. */
.platform-board {
  background: var(--signal);
  border: 2px solid var(--ink);
  color: var(--ink-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-6);
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-5);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.platform-board dl {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin: 0;
}
.platform-board dt {
  text-transform: uppercase;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.72;
}
.platform-board dd { margin: 0; }

/* --------------------------------------------------------------------------
   8. Article layout
   -------------------------------------------------------------------------- */
.content-layout {
  max-width: var(--max-width);
  margin: var(--s-7) auto var(--s-8);
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s-8);
  align-items: start;
}

.article-content {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s-7);
  min-width: 0;
}

.article-content > p,
.article-content > ul,
.article-content > ol {
  font-family: var(--font-read);
  font-size: var(--t-md);
  line-height: 1.72;
  max-width: var(--measure);
  text-wrap: pretty;
}

.article-content > p { margin: 0 0 var(--s-5); }

.article-content h2 {
  font-size: var(--t-xl);
  margin: var(--s-8) 0 var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--ink);
}

.article-content h3 { font-size: var(--t-lg); margin: var(--s-6) 0 var(--s-3); }
.article-content h4 { font-size: var(--t-base); margin: var(--s-5) 0 var(--s-2); }

.article-content ul,
.article-content ol { padding-left: 1.25em; margin: 0 0 var(--s-5); }
.article-content li { margin-bottom: var(--s-2); }

blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 4px solid var(--signal);
  font-family: var(--font-read);
  font-size: var(--t-md);
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   9. Hotel entries. Numbered and ruled, not cards.
   -------------------------------------------------------------------------- */
.hotel-entry {
  border-top: 2px solid var(--ink);
  padding-top: var(--s-5);
  margin: var(--s-8) 0;
}

.hotel-entry__header {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.hotel-entry__num {
  font-size: var(--t-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border-bottom: 4px solid var(--signal);
  padding-bottom: 2px;
  flex: none;
}

.hotel-entry__title { font-size: var(--t-lg); margin: 0; }
.hotel-entry__where {
  font-size: var(--t-sm);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.hotel-entry p {
  font-family: var(--font-read);
  font-size: var(--t-md);
  line-height: 1.72;
  max-width: var(--measure);
  margin: 0 0 var(--s-5);
  text-wrap: pretty;
}

/* Facts table. Real tabular data, the reason the reader is here. */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: var(--t-sm);
}
.facts caption {
  text-align: left;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: var(--s-2);
}
.facts th,
.facts td {
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.facts th {
  width: 34%;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.facts td { font-variant-numeric: tabular-nums; }
.facts tr:last-child th,
.facts tr:last-child td { border-bottom: none; }

.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   10. Pros / cautions. Signal semantics: green go, amber caution.
   -------------------------------------------------------------------------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin: var(--s-5) 0;
}

.pros-cons__section { padding: var(--s-4); border: 1px solid var(--rule); }
.pros--section { background: var(--go-tint); border-color: #c6e0d0; }
.cons--section { background: var(--caution-tint); border-color: #ecd9ac; }

.pros-cons__section h5 {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
}
.pros--section h5 { color: var(--go); }
.cons--section h5 { color: var(--caution); }

.pros-cons__list { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.pros-cons__list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: var(--s-2);
  line-height: 1.5;
}
.pros-cons__list li::before { position: absolute; left: 0; font-weight: 700; }
.pros--section .pros-cons__list li::before { content: "+"; color: var(--go); }
.cons--section .pros-cons__list li::before { content: "!"; color: var(--caution); }

/* --------------------------------------------------------------------------
   11. Figures and photo credit
   -------------------------------------------------------------------------- */
.article-image { margin: var(--s-5) 0; }
.article-image img { width: 100%; border: 1px solid var(--rule); }
.article-image figcaption {
  font-size: var(--t-xs);
  color: var(--ink-subtle);
  padding-top: var(--s-2);
  margin-top: var(--s-2);
  line-height: 1.5;
  border-top: 1px solid var(--rule);
}
.article-image figcaption a { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   12. Badges. No fake "verified stay" language anywhere.
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px var(--s-2);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  white-space: nowrap;
}
.badge--checked { color: var(--go); background: var(--go-tint); }
.badge--sourced { color: var(--ink-muted); background: var(--paper-sunk); }

/* --------------------------------------------------------------------------
   13. Author card
   -------------------------------------------------------------------------- */
.author-card {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  padding: var(--s-4);
  margin: 0 0 var(--s-6);
}

.author-card__photo {
  width: 64px;
  height: 64px;
  flex: none;
  border: 1px solid var(--rule);
  object-fit: cover;
}

.author-card__name { font-weight: 700; font-size: var(--t-base); }
.author-card__title {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-2);
}
.author-card__bio {
  font-family: var(--font-read);
  font-size: var(--t-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}
.author-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  color: var(--ink-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. Methodology box
   -------------------------------------------------------------------------- */
.methodology-box {
  border: 1px solid var(--rule);
  background: var(--paper);
  margin: 0 0 var(--s-6);
}

.methodology-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  background: var(--paper-sunk);
}
.methodology-box__header:hover { background: #efece5; }

.methodology-box__header h4 {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.methodology-box__toggle {
  font-size: 0.7rem;
  color: var(--ink-muted);
  transition: transform var(--transition);
}
.methodology-box__toggle.open { transform: rotate(180deg); }

.methodology-box__content { display: none; padding: var(--s-4); font-size: var(--t-sm); }
.methodology-box__content.open { display: block; border-top: 1px solid var(--rule); }
.methodology-box__content ul { padding-left: 1.2em; margin: 0 0 var(--s-4); }
.methodology-box__content li { margin-bottom: var(--s-2); }

.methodology-box__disclosure {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-3);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   15. Highlight / note box
   -------------------------------------------------------------------------- */
.highlight-box {
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--signal);
  padding: var(--s-4);
  margin: var(--s-5) 0;
  font-size: var(--t-sm);
}
.highlight-box h4 {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
}
.highlight-box ul { padding-left: 1.2em; margin: 0; }
.highlight-box li { margin-bottom: var(--s-2); }

/* --------------------------------------------------------------------------
   16. Sidebar
   -------------------------------------------------------------------------- */
.sidebar { position: sticky; top: 84px; }

.sidebar-widget {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s-4);
  margin-bottom: var(--s-5);
}

.sidebar-widget h3 {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--ink);
  margin: 0 0 var(--s-3);
}

.sidebar-widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widget li { border-bottom: 1px solid var(--rule); }
.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget a {
  display: flex;
  gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-3) 0;
  font-size: var(--t-sm);
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
}
.sidebar-widget a:hover { color: var(--accent); }

.popular-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--t-xs);
  color: var(--ink-subtle);
  flex: none;
}

/* --------------------------------------------------------------------------
   17. Ad slots. Labelled and honest, no dashed placeholder boxes.
   -------------------------------------------------------------------------- */
.ad-slot {
  margin: var(--s-6) 0;
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: var(--s-2);
}
.ad-slot > span { display: none; }
.ad-in-content { max-width: 336px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   18. Legal / static pages
   -------------------------------------------------------------------------- */
.legal-page {
  max-width: 820px;
  margin: var(--s-7) auto var(--s-8);
  padding: var(--s-7);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.legal-page h2 {
  font-size: var(--t-lg);
  margin: var(--s-7) 0 var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--ink);
}
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page h3 { font-size: var(--t-base); margin: var(--s-5) 0 var(--s-2); }
.legal-page p,
.legal-page li {
  font-family: var(--font-read);
  font-size: var(--t-md);
  line-height: 1.72;
  text-wrap: pretty;
}
.legal-page ul, .legal-page ol { padding-left: 1.25em; }
.legal-page li { margin-bottom: var(--s-2); }

/* Credits table */
.credits-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); margin-top: var(--s-4); }
.credits-table th, .credits-table td {
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.credits-table th {
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--ink);
}

/* 404 */
.notfound { text-align: center; padding: var(--s-9) var(--s-5); max-width: 640px; margin: 0 auto; }
.notfound__code {
  display: inline-block;
  background: var(--signal);
  border: 2px solid var(--ink);
  color: var(--ink-strong);
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: var(--s-2) var(--s-5);
  margin-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: #cdc9bf;
  border-top: 6px solid var(--signal);
  margin-top: var(--s-9);
  padding: var(--s-8) 0 var(--s-5);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-5) var(--s-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
}

.footer-col h4 {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 var(--s-3);
}
.footer-col p { font-size: var(--t-sm); line-height: 1.6; margin: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s-2); }
.footer-col a { color: #cdc9bf; text-decoration: none; font-size: var(--t-sm); }
.footer-col a:hover { color: var(--signal); text-decoration: underline; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--s-4) var(--s-5) 0;
  border-top: 1px solid #33312a;
  font-size: var(--t-xs);
  color: #918d83;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  justify-content: space-between;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   20. Cookie consent
   -------------------------------------------------------------------------- */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: #e6e3db;
  border-top: 4px solid var(--signal);
  padding: var(--s-4) var(--s-5);
  z-index: 150;
  display: none;
}
.cookie-consent.show { display: block; }

.cookie-consent__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.cookie-consent__text { font-size: var(--t-sm); max-width: 70ch; line-height: 1.55; }
.cookie-consent__text a { color: var(--signal); }
.cookie-consent__buttons { display: flex; gap: var(--s-2); flex: none; }

.cookie-consent__btn {
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s-2) var(--s-4);
  border: 2px solid var(--signal);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-consent__btn--accept { background: var(--signal); color: var(--ink-strong); }
.cookie-consent__btn--accept:hover { background: var(--signal-deep); }
.cookie-consent__btn--decline { background: transparent; color: var(--signal); }
.cookie-consent__btn--decline:hover { background: rgba(242, 183, 5, 0.14); }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: var(--s-2) var(--s-5) var(--s-4);
  }
  .nav.active { display: flex; }
  .nav a {
    padding: var(--s-3) 0 var(--s-3) var(--s-3);
    border-bottom: 1px solid var(--rule);
    border-left: 3px solid transparent;
  }
  .nav a.active { border-bottom-color: var(--rule); border-left-color: var(--signal); }

  .hero { padding: var(--s-7) 0 var(--s-6); }

  .index-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--s-4);
    padding: var(--s-4);
  }
  .index-row__thumb { width: 72px; height: 56px; }
  .index-row__meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: var(--s-3);
    justify-content: flex-start;
  }

  .article-content,
  .legal-page { padding: var(--s-5); }

  .content-layout { margin-top: var(--s-5); padding: 0 var(--s-4); }

  .pros-cons { grid-template-columns: 1fr; gap: var(--s-3); }

  .facts th { width: 42%; white-space: normal; }

  .platform-board { gap: var(--s-2) var(--s-4); }

  .author-card { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }

  .cookie-consent__inner { flex-direction: column; align-items: stretch; }
  .cookie-consent__buttons { justify-content: stretch; }
  .cookie-consent__btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   22. Motion and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .header, .footer, .sidebar, .ad-slot, .cookie-consent, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .article-content { border: none; padding: 0; }
  .content-layout { display: block; }
  a::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
}
