/* ============================================================
   はたログ — Flag Trivia Blog
   国旗の質感を意識したカラーパレット
   ============================================================ */

:root {
  --bg-cream: #fbf6ec;
  --bg-paper: #ffffff;
  --bg-tint: #f4ecdc;
  --ink: #1f2d3d;
  --ink-soft: #4a5568;
  --ink-muted: #8893a7;
  --line: #e8e0cd;
  --line-soft: #f2ebda;
  --navy: #1d3557;
  --navy-deep: #14233e;
  --red: #d93644;
  --red-deep: #b02736;
  --gold: #e0a83a;
  --gold-soft: #f4d484;
  --shadow-sm: 0 2px 8px rgba(31, 45, 61, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 45, 61, 0.08);
  --shadow-lg: 0 24px 48px rgba(31, 45, 61, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font-jp: "Noto Sans JP", "Yu Gothic UI", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-cream);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

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

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    radial-gradient(ellipse at 12% 50%, rgba(217, 54, 68, 0.28), transparent 55%),
    radial-gradient(ellipse at 88% 50%, rgba(224, 168, 58, 0.22), transparent 55%),
    linear-gradient(90deg, #14233e 0%, #1d3557 50%, #14233e 100%);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(20, 35, 62, 0.25);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #d93644 0%, #d93644 20%,
    #ffffff 20%, #ffffff 40%,
    #1d63b8 40%, #1d63b8 60%,
    #229e50 60%, #229e50 80%,
    #e0a83a 80%, #e0a83a 100%
  );
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.site-logo:hover { color: var(--gold-soft); }

.site-logo__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-block;
}
.site-logo__pole {
  position: absolute;
  left: 6px;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: #f4d484;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(244, 212, 132, 0.5);
}
.site-logo__flag {
  position: absolute;
  left: 9px;
  top: 4px;
  width: 22px;
  height: 16px;
  background: #ef4444;
  border-radius: 1px;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.28),
    inset 0 0 6px rgba(255, 255, 255, 0.18);
  transform-origin: left center;
  animation: flag-wave 3.2s ease-in-out infinite;
}
@keyframes flag-wave {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  50%      { transform: skewY(-4deg) scaleX(0.96); }
}

.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.site-logo__tagline {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: #f4d484;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: #f4d484; border-bottom-color: #f4d484; }

@media (max-width: 640px) {
  .site-header__inner { padding: 12px 16px; }
  .site-logo__tagline { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.84rem; }
}

/* ============================================================
   App container
   ============================================================ */

.app { min-height: 60vh; }

.loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Hero (home only)
   ============================================================ */

@keyframes heroFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -20px) scale(1.08); }
}
@keyframes heroFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 25px) scale(1.1); }
}
@keyframes heroFloatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, 30px) scale(1.06); }
}
@keyframes heroShimmer {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

.hero {
  position: relative;
  padding: 72px 24px 40px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(217, 54, 68, 0.32), transparent 40%),     /* 赤：日本・カナダ・トルコ系 */
    radial-gradient(ellipse at 88% 22%, rgba(29, 99, 184, 0.30), transparent 42%),     /* 青：フランス・アルゼンチン系 */
    radial-gradient(ellipse at 18% 80%, rgba(34, 158, 80, 0.30), transparent 40%),     /* 緑：イタリア・ブラジル系 */
    radial-gradient(ellipse at 82% 78%, rgba(245, 158, 11, 0.32), transparent 40%),    /* 橙：スペイン・インド系 */
    radial-gradient(ellipse at 50% 50%, rgba(252, 211, 77, 0.18), transparent 55%),    /* 黄：ベルギー系 */
    radial-gradient(ellipse at 30% 45%, rgba(139, 92, 246, 0.18), transparent 40%),    /* 紫：ドミニカ系 */
    radial-gradient(ellipse at 72% 38%, rgba(14, 165, 233, 0.20), transparent 42%),    /* シアン：アルゼンチン系 */
    linear-gradient(180deg, #fefef9 0%, #f9f5e7 100%);
  animation: heroShimmer 12s ease-in-out infinite;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.55;
}
.hero::before {
  width: 420px;
  height: 420px;
  top: -100px;
  left: -110px;
  background: radial-gradient(circle, rgba(217, 54, 68, 0.7), transparent 70%);
  animation: heroFloatA 16s ease-in-out infinite;
}
.hero::after {
  width: 460px;
  height: 460px;
  bottom: -140px;
  right: -130px;
  background: radial-gradient(circle, rgba(29, 99, 184, 0.65), transparent 70%);
  animation: heroFloatB 20s ease-in-out infinite;
}
.hero__inner { z-index: 2; }
.hero__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero__bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.55;
  animation: heroFloatC 18s ease-in-out infinite;
}
.hero__bubble--g { width: 260px; height: 260px; top: 60%;  left: 8%;  background: radial-gradient(circle, rgba(34,158,80,0.7), transparent 70%); animation-delay: -3s; }
.hero__bubble--y { width: 220px; height: 220px; top: 18%;  left: 48%; background: radial-gradient(circle, rgba(245,158,11,0.75), transparent 70%); animation-delay: -7s; }
.hero__bubble--p { width: 200px; height: 200px; top: 55%;  left: 72%; background: radial-gradient(circle, rgba(139,92,246,0.6), transparent 70%); animation-delay: -11s; }
.hero__bubble--c { width: 180px; height: 180px; top: 8%;   left: 22%; background: radial-gradient(circle, rgba(14,165,233,0.65), transparent 70%); animation-delay: -5s; }

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero::before,
  .hero::after,
  .hero__bubble { animation: none; }
}

.hero__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  color: var(--navy-deep);
  line-height: 1.35;
  margin: 0 0 8px;
}
.hero__title span { color: var(--red); }

.hero__lead {
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  max-width: 620px;
  margin: 12px auto 0;
}

.hero__strip {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero__strip img {
  width: 56px;
  height: 36px;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(31,45,61,0.18);
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-sizing: border-box;
  transition: transform 0.25s;
}
.hero__strip img:hover { transform: translateY(-4px) scale(1.06); }

@media (max-width: 640px) {
  .hero { padding: 40px 16px 24px; }
  .hero__strip img { width: 42px; height: 28px; }
}

/* ============================================================
   Controls (search + filters)
   ============================================================ */

.controls {
  max-width: 1180px;
  margin: 12px auto 32px;
  padding: 0 24px;
}

.controls__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.search {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}
.search__input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search__input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(29, 53, 87, 0.10);
}
.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--bg-paper);
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.filter-chip .filter-chip__count {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.filter-chip.is-active .filter-chip__count { color: rgba(255,255,255,0.75); }

.results-summary {
  max-width: 1180px;
  margin: 0 auto 14px;
  padding: 0 24px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ============================================================
   Article grid
   ============================================================ */

.grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: var(--ink);
  text-decoration: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.card__flag-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(180deg, var(--bg-tint) 0%, #e6dfcc 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.card__flag-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

/* ── Territory card variant ── */
.card--territory {
  border: 2px solid #c8a84b;
  box-shadow: 0 2px 8px rgba(200, 168, 75, 0.18), var(--shadow-sm);
}
.card--territory:hover {
  box-shadow: 0 6px 24px rgba(200, 168, 75, 0.28);
  border-color: #a8893a;
}
.card__territory-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(200, 168, 75, 0.92);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Regional flags page */
.region-group {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 24px;
}
.region-group .grid {
  padding: 0;
  margin: 0;
  max-width: none;
}
.region-group__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d3557;
  border-bottom: 3px solid #c8a84b;
  padding-bottom: 8px;
  margin: 0 0 20px;
}
.hero--regions .hero__title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.hero__note {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
}

.card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__country {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--navy-deep);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.card__title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__excerpt {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card__read-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card__read-more::after { content: "→"; transition: transform 0.15s; }
.card:hover .card__read-more::after { transform: translateX(3px); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
}

/* ============================================================
   Article view
   ============================================================ */

.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--red); }

.article-hero {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.article-hero__flag {
  flex: 0 0 200px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--bg-tint) 0%, #e6dfcc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.article-hero__flag img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}
.article-hero__meta { flex: 1 1 280px; }
.article-hero__region {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--red);
  background: rgba(217, 54, 68, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 600;
}
.article-hero__country {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 6px;
  line-height: 1.25;
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}
.article-hero__country-en {
  color: var(--ink-muted);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 32px;
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--ink);
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: pretty;
}
.article-body p,
.article-body li,
.article-body blockquote,
.article-body td,
.article-body th {
  word-break: auto-phrase;
  line-break: strict;
}
/* Fallback for browsers without auto-phrase support */
@supports not (word-break: auto-phrase) {
  .article-body,
  .article-body p,
  .article-body li,
  .article-body blockquote {
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
  }
}
.article-body h2,
.article-body h3,
.article-body h4 {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy-deep);
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  line-height: 1.45;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy-deep);
  margin: 36px 0 12px;
}
.article-body p { margin: 0 0 20px; }
.article-body strong { color: var(--navy-deep); font-weight: 700; }
.article-body a {
  color: var(--navy);
  border-bottom: 1px solid rgba(29,53,87,0.35);
  transition: color 0.15s, border-color 0.15s;
}
.article-body a:hover { color: var(--red); border-bottom-color: var(--red); }
.article-body a.external::after {
  content: " ↗";
  font-size: 0.8em;
  color: var(--ink-muted);
}
.article-body .dummy-link {
  color: var(--navy);
  border-bottom: 1px dashed rgba(29,53,87,0.35);
  cursor: help;
}
.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
  margin: 36px 0;
}
.article-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--bg-tint);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.article-body blockquote p { margin: 0; }
.article-body blockquote p + p { margin-top: 12px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body ul li::marker { color: var(--red); }
.article-body code {
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* tables (markdown) */
.article-body .table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: var(--bg-paper);
}
.article-body th, .article-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.article-body th {
  background: var(--bg-tint);
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 0.88rem;
}
.article-body tr:last-child td { border-bottom: none; }

/* 👉 emoji+link styling */
.article-body p.see-also {
  background: linear-gradient(135deg, #fff7ed 0%, #fffaf0 100%);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 10px 0;
}

/* ============================================================
   Article navigation (prev/next)
   ============================================================ */

/* ============================================================
   Author box
   ============================================================ */

.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 48px 0 40px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f9f5e7 0%, #f4ede0 100%);
  border-left: 4px solid var(--navy-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.author-box__icon {
  font-size: 2.8rem;
  flex: 0 0 auto;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.author-box__body {
  flex: 1;
}
.author-box__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-deep);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}
.author-box__bio {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
}
@media (max-width: 480px) {
  .author-box { gap: 14px; padding: 18px 20px; }
  .author-box__icon { font-size: 2.2rem; }
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-nav__link {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  color: var(--ink);
  min-height: 80px;
}
.article-nav__link:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.article-nav__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.article-nav__country {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1.02rem;
}
.article-nav__link--next { text-align: right; }
.article-nav__link--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 540px) {
  .article-nav { grid-template-columns: 1fr; }
}

/* ============================================================
   Static page
   ============================================================ */

.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.static-page__title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-deep);
  border-bottom: 3px solid var(--red);
  padding-bottom: 14px;
  margin: 0 0 28px;
  display: inline-block;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 48px 24px 32px;
  margin-top: 60px;
}
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.site-footer__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}
.site-footer__tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-self: end;
}
.site-footer__nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
}
.site-footer__nav a:hover { color: var(--gold-soft); }
.site-footer__copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { justify-self: start; }
}

/* ============================================================
   Animations
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
