/* ==========================================================================
   oorail.com — shared static-site stylesheet
   Used by both the homepage template and the article template so that the
   two stay visually consistent as more pages are generated from these.
   ========================================================================== */

:root {
  --cream:        #f2ede1;
  --cream-dark:   #e8e0cd;
  --paper:        #faf7ef;
  --navy:         #16263c;
  --navy-2:       #1c3554;
  --navy-3:       #0f1c2e;
  --red:          #b31f24;
  --red-dark:     #8c1519;
  --ink:          #241f1a;
  --muted:        #6f6a5e;
  --muted-2:      #9a9486;
  --border:       #dcd3bd;
  --border-dark:  #30455f;

  --cat-running:    #6b4a34;
  --cat-howto:      #2e6a41;
  --cat-modelling:  #7a2333;
  --cat-repairs:   #1b3a63;
  --cat-3dprint:    #2f8fbf;
  --cat-weathering:    #c1631f;

  --rail-blue: #1d3f91;

  --font-display: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body:    'PT Serif', Georgia, serif;
  --font-ui:      'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-script:  'Caveat', cursive;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75em 1.5em;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Topbar / masthead ---------- */
.topbar {
  position: relative;
  min-height: 150px;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  border-bottom: 4px solid var(--red);
}
.topbar-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 27%;
  background-position: right center;
  background-size: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(to left, #000 92%, transparent 100%);
          mask-image: linear-gradient(to left, #000 92%, transparent 100%);
}
.topbar-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, rgba(242,237,225,0.06) 15%, rgba(242,237,225,0.01) 100%);
}
.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand img { height: 84px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  white-space: nowrap;
}
.brand-word { color: var(--ink); }
.brand-word .hl { color: var(--red); }
.brand-tagline {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
/* ---------- Nav ---------- */
.mainnav {
  background: var(--navy);
  border-bottom: 1px solid var(--border-dark);
}
.mainnav ul { display: flex; align-items: center; flex-wrap: nowrap; }
.mainnav a {
  display: block;
  padding: 13px 12px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 0.82rem;
  color: #e7e2d4;
  border-right: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.mainnav a:hover, .mainnav a:focus-visible { background: rgba(199,41,46,0.45); color: #fff; outline: none; }
.mainnav a.active { background: var(--red); color: #fff; }
.mainnav .nav-search {
  margin-left: auto;
  padding: 13px 16px;
  border-right: none;
  cursor: pointer;
  flex: 0 0 auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 14px 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 0.5em; color: var(--border); }

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 420px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 40px 48px 40px max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.hero-text .eyebrow { color: var(--red); }
.hero-text h1 {
  color: var(--navy);
  font-size: 2.5rem;
  line-height: 1.08;
  margin: 6px 0 4px;
  text-transform: uppercase;
}
.hero-text p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.hero-text .btn { align-self: flex-start; margin-top: 6px; }
.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, rgba(242,237,225,0.6) 10%, rgba(242,237,225,0) 32%);
}

/* ---------- Category buttons ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.cat-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 7px;
}
.cat-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.cat-card:hover .cat-photo img { transform: scale(1.06); }
.cat-plate {
  position: relative;
  display: block;
  padding: 18px 10px;
  border-radius: 10px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  text-align: center;
  color: #fff;
}
.cat-plate::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 6px;
  pointer-events: none;
}
.cat-running .cat-plate    { background: var(--cat-running); }
.cat-howto .cat-plate      { background: var(--cat-howto); }
.cat-modelling .cat-plate  { background: var(--cat-modelling); }
.cat-repairs .cat-plate   { background: var(--cat-repairs); }
.cat-3dprint .cat-plate    { background: var(--cat-3dprint); }
.cat-weathering .cat-plate    { background: var(--cat-weathering); }

/* ---------- Page layout: main + sidebar ---------- */
.page-body { padding: 44px 0 60px; }
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.era-join-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: start;
}
.ad-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: stretch;
  margin-bottom: 40px;
}
.ad-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 170px;
  border: 1px solid var(--border);
  background: #fff;
}
.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.ad-banner:hover img { transform: scale(1.04); }

.home-columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 48px;
}
.topics-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.poster-timetable-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.poster-timetable-row .ytcta { min-height: 0; }
.mini-tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mini-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.mini-tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,4,0.85) 0%, rgba(10,8,4,0.1) 60%);
}
.mini-tile-label {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}
.mini-tile:hover .mini-tile-label { color: #f4d35e; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 3px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.section-heading h2 .rule { display: inline-block; width: 28px; height: 3px; background: var(--red); margin-right: 12px; vertical-align: middle; }
.section-heading .view-all {
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.section-heading .view-all:hover { text-decoration: underline; }

/* ---------- Article list (home + sidebar) ---------- */
.article-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.article-row:first-child { padding-top: 0; }
.article-row .thumb {
  flex: 0 0 150px;
  width: 150px; height: 100px;
  overflow: hidden;
  background: var(--cream-dark);
}
.article-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-row .meta {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.article-row h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 6px; }
.article-row h3 a:hover { color: var(--red); }
.article-row p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.article-row .arrow { margin-left: auto; align-self: center; color: var(--border); font-size: 1.4rem; }
.article-row-wide { padding: 22px 0; gap: 26px; }
.article-row-wide .thumb { flex: 0 0 220px; width: 220px; height: 147px; }
.article-row-wide h3 { font-size: 1.3rem; }
.article-row-wide p { font-size: 1rem; max-width: 68ch; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 36px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.page-numbers { display: flex; gap: 6px; }
.page-num, .page-arrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  color: var(--navy);
  border: 1px solid var(--border);
  background: var(--paper);
}
a.page-num:hover { border-color: var(--red); color: var(--red); }
.page-num.current { background: var(--red); border-color: var(--red); color: #fff; }
.page-arrow { color: var(--red); text-transform: uppercase; }
.page-arrow:hover { text-decoration: underline; }

.side-article {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.side-article .thumb { flex: 0 0 84px; width: 84px; height: 60px; overflow: hidden; background: var(--cream-dark); }
.side-article .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-article h4 { font-size: 0.94rem; line-height: 1.3; font-family: var(--font-body); font-weight: 700; color: var(--navy); }
.side-article h4 a:hover { color: var(--red); }
.side-article .date { font-family: var(--font-ui); font-size: 0.72rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; margin-top: 4px; display: block; }

.sidebar-block { margin-bottom: 36px; }
.sidebar-title {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.topic-list a {
  display: flex;
  justify-content: space-between;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.topic-list a:hover { color: var(--red); }
.topic-list a .arw { color: var(--red); font-weight: 700; }

/* ---------- Topic network map ---------- */
.topicmap-head { margin-bottom: 14px; }
.topicmap-head h2 { font-size: 1.4rem; text-transform: uppercase; }
.topicmap-head h2 .rule { display: inline-block; width: 28px; height: 3px; background: var(--red); margin-right: 12px; vertical-align: middle; }
.topicmap-head p {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.topicmap-paper {
  position: relative;
  background: linear-gradient(160deg, #f4eeda 0%, #ece0bf 100%);
  border: 1px solid #c8b688;
  padding: 56px 24px 26px;
  overflow: hidden;
}
.topicmap-paper::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(110, 90, 50, 0.28);
  pointer-events: none;
}
.topicmap-badge {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 1;
  height: 42px; width: auto;
  border: 1px solid #c8b688;
  background: #fff;
  padding: 5px 10px;
}
.topicmap-svg { display: block; width: 100%; height: auto; position: relative; }
.topicmap-svg a text { font-family: var(--font-ui); }
.topicmap-svg a:hover text.station-label { fill: var(--red); font-weight: 700; }
.topicmap-svg a:hover circle.station-dot { fill: var(--red); }
.topicmap-caption {
  position: relative;
  text-align: right;
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #7a6a48;
  padding-top: 10px;
}

/* ---------- Departures board (timetable) ---------- */
.timetable {
  background: var(--navy-3);
  border: 1px solid var(--border-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.timetable-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timetable-head span:first-child { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #fff; }
.timetable-head span:last-child { font-family: var(--font-ui); font-size: 0.68rem; color: #aab8cc; }
.timetable-cols {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7f8ca0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.timetable-row {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 8px;
  align-items: start;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Barlow Condensed', var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.timetable-row:last-child { border-bottom: none; }
.timetable-row:hover { background: rgba(255,255,255,0.06); }
.timetable-row:hover .tt-title { color: #fff; }
.tt-time, .tt-runtime { font-weight: 700; color: #f4d35e; font-size: 0.98rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.tt-title {
  color: #e7e2d4;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ---------- YouTube CTA poster ---------- */
.ytcta {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 10px solid #efe6d2;
  background: #efe6d2;
}
.ytcta-photo {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 280px;
  background-size: cover;
  background-position: center top;
}
.ytcta-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,8,4,0.85) 0%, rgba(10,8,4,0.4) 26%, rgba(10,8,4,0) 48%);
}
.ytcta-photo h3 {
  position: relative;
  z-index: 2;
  padding: 18px 18px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.ytcta-footer {
  padding: 16px 18px;
  text-align: center;
}
.ytcta-footer .btn { width: 100%; justify-content: center; }

/* ---------- Explore by era ---------- */
.era-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.era-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.era-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.era-card:hover img { transform: scale(1.05); filter: grayscale(0); }
.era-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,28,46,0.88), rgba(15,28,46,0.05) 60%);
}
.era-card .era-label {
  position: relative;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.era-card .era-label .arrow { font-family: var(--font-ui); color: var(--red); font-size: 1.3rem; }

/* ---------- Join the journey (HST band) ---------- */
.joinband {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-size: 122%;
  background-position: center 62%;
  overflow: hidden;
}
.joinband::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, var(--cream) 34%, rgba(242,237,225,0.75) 50%, rgba(242,237,225,0.15) 72%);
}
.joinband-inner {
  position: relative;
  padding: 16px 0 18px;
  max-width: 420px;
}
.joinband h2 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 8px; }
.joinband h2 .rule { display: inline-block; width: 24px; height: 3px; background: var(--red); margin-right: 10px; vertical-align: middle; }
.joinband p { color: var(--ink); margin-bottom: 14px; font-size: 0.9rem; }
.subscribe-form { display: flex; gap: 0; max-width: 420px; }
.subscribe-form input {
  flex: 1;
  padding: 0.85em 1em;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
}
.subscribe-form button { border: none; }

/* ---------- Footer ---------- */
.sitefooter { background: var(--navy-3); color: #cdd6e2; padding: 26px 0; margin-top: 40px; }
.sitefooter .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sitefooter .brand img { height: 40px; }
.sitefooter .brand-word { font-size: 1.1rem; color: #fff; }
.sitefooter .foot-links { display: flex; gap: 18px; font-family: var(--font-ui); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; flex-wrap: wrap; }
.sitefooter .foot-links a:hover { color: var(--red); }
.sitefooter .socials { display: flex; gap: 10px; }
.sitefooter .socials a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sitefooter .socials a:hover { background: var(--red); border-color: var(--red); }
.sitefooter .socials svg { width: 16px; height: 16px; fill: #fff; }
.sitefooter .tagline { font-family: var(--font-ui); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; color: #7f8ca0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 18px; padding-top: 14px; }
.foot-bottom a.tagline:hover { color: var(--red); }

/* ==========================================================================
   Article page
   ========================================================================== */
.article-head { padding: 8px 0 28px; max-width: 780px; }
.article-tags { display: flex; gap: 8px; margin-bottom: 14px; }
.article-tags a, .article-tags span {
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 4px 10px;
}
.article-head h1 {
  font-size: 2.4rem;
  line-height: 1.12;
  margin-bottom: 14px;
}
.article-dek { font-size: 1.15rem; color: var(--muted); font-family: var(--font-body); margin-bottom: 18px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-meta .sep { color: var(--border); }
.article-hero-img { margin: 0 0 28px; }
.article-hero-img img { width: 100%; height: auto; max-height: 460px; object-fit: cover; }

.article-body { max-width: 780px; font-size: 1.08rem; }
.article-body h2, .article-body h3 {
  color: var(--navy);
  margin: 1.6em 0 0.6em;
  line-height: 1.25;
}
.article-body h2 { font-size: 1.55rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.35em; }
.article-body a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-body figure { margin: 1.8em 0; }
.article-body figure img { width: 100%; height: auto; border: 1px solid var(--border); }
.article-body figcaption { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 8px; letter-spacing: 0.02em; }
.article-body .kg-embed-card { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.8em 0; background: #000; }
.article-body .kg-embed-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-body blockquote { border-left: 4px solid var(--red); margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em; font-style: italic; color: var(--navy); }
.article-body .kg-bookmark-card { margin: 1.8em 0; }
.article-body .kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  min-height: 110px;
}
.article-body .kg-bookmark-container:hover { border-color: var(--red); }
.article-body .kg-bookmark-content { padding: 14px 16px; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.article-body .kg-bookmark-title { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.02rem; margin-bottom: 4px; }
.article-body .kg-bookmark-description { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.article-body .kg-bookmark-metadata { font-family: var(--font-ui); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted-2); }
.article-body .kg-bookmark-thumbnail { flex: 0 0 160px; overflow: hidden; }
.article-body .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border: none; margin: 0; }
.article-footer-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--font-ui); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout-2col { grid-template-columns: 1fr; }
  .era-join-row { grid-template-columns: 1fr; }
  .home-columns-2 { grid-template-columns: 1fr; }
  .ad-row { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .era-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 32px 24px 24px; }
  .hero-photo { min-height: 280px; order: -1; }
  .hero-photo::before { background: linear-gradient(to bottom, var(--cream) 0%, rgba(242,237,225,0) 22%); }
  .hero-text h1 { font-size: 2.1rem; }
  .mainnav { overflow-x: auto; }
  .mainnav ul { flex-wrap: nowrap; }
}
@media (max-width: 900px) {
  .brand-word { font-size: 1.9rem; white-space: normal; }
  .brand img { height: 70px; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-word { font-size: 1.7rem; }
  .brand img { height: 60px; }
}
