/* ══════════════════════════════════════════════════════════════════
   TRAVEL THEME  —  Wanderlust  v1.0
   Concept: Warm editorial · coral + ocean blue · travel magazine
   Fonts: Playfair Display (headings) + Plus Jakarta Sans (body)
══════════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ───────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #FFFBF7;
  --bg-2:       #FFF5EC;
  --surface:    #FFFFFF;
  --surface-2:  #FFF8F3;

  /* Borders */
  --border:     #EAE0D8;
  --border-hi:  #C8B8AC;

  /* Text */
  --text:       #1C1209;
  --text-2:     #6B5B4E;
  --muted:      #A89080;

  /* Primary — coral / warm orange */
  --p:          #FF6B35;
  --p-hi:       #E55A26;
  --p-dim:      #FFF0EB;
  --p-glow:     rgba(255, 107, 53, 0.20);

  /* Ocean blue accent */
  --ocean:      #0093D1;
  --ocean-dim:  #E6F6FF;

  /* Tropical green */
  --green:      #00A86B;
  --green-dim:  #E6F9F2;

  /* Gold / sunshine */
  --gold:       #F4A11D;
  --gold-dim:   #FEF7E7;

  /* Radii */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  /* Warm shadows */
  --sh-sm: 0 1px 3px rgba(100,50,10,0.07), 0 1px 5px rgba(100,50,10,0.05);
  --sh-md: 0 4px 16px rgba(100,50,10,0.09), 0 2px 6px rgba(100,50,10,0.05);
  --sh-lg: 0 8px 28px rgba(100,50,10,0.12), 0 4px 10px rgba(100,50,10,0.07);

  /* Layout */
  --container: 1180px;
  --t: 200ms cubic-bezier(.4, 0, .2, 1);
}

/* ── 2. Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── 3. Layout ──────────────────────────────────────────────────── */
.tr-wrap { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.tr-main { padding: 2.5rem 0 5rem; }

/* ── 4. Reading Progress ────────────────────────────────────────── */
.tr-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--p), var(--gold), var(--ocean));
  z-index: 300;
  transition: width 80ms linear;
  border-radius: 0 2px 2px 0;
}

/* ── 5. Header ──────────────────────────────────────────────────── */
.tr-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 251, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Warm gradient underline */
.tr-header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--p) 0%, var(--gold) 40%, var(--ocean) 100%);
  opacity: 0.5;
}

.tr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.tr-brand {
  display: inline-flex;
  align-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--t);
}

.tr-brand-logo {
  max-height: 46px;
  width: auto;
}

.tr-brand:hover { color: var(--p); }

.tr-nav { padding-bottom: 0.5rem; }

.tr-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.tr-nav a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--t), background var(--t);
}

.tr-nav a:hover {
  color: var(--p);
  background: var(--p-dim);
}

.tr-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--t);
}

.tr-menu-toggle:hover {
  border-color: var(--p);
  color: var(--p);
}

.tr-menu-toggle svg { width: 16px; height: 16px; }

/* ── 6. Label Chip ──────────────────────────────────────────────── */
.tr-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--p-dim);
  color: var(--p-hi);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tr-label.ocean { background: var(--ocean-dim); color: var(--ocean); }
.tr-label.green { background: var(--green-dim); color: var(--green); }
.tr-label.gold  { background: var(--gold-dim);  color: var(--gold);  }

.meta { color: var(--muted); font-size: 0.84rem; }

/* ── 7. Stat Row ────────────────────────────────────────────────── */
.tr-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.tr-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── 8. Hero ────────────────────────────────────────────────────── */
.tr-hero {
  background: linear-gradient(135deg, #FFF5EC 0%, #FFF0E8 45%, #EAF6FF 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3rem 3rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Decorative orbs */
.tr-hero::before {
  content: '';
  position: absolute;
  top: -5rem; right: -4rem;
  width: 20rem; height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.13) 0%, transparent 70%);
  pointer-events: none;
}

.tr-hero::after {
  content: '';
  position: absolute;
  bottom: -4rem; left: 15%;
  width: 15rem; height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,147,209,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.tr-hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 310px);
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tr-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.9rem;
}

.tr-hero-copy > p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0;
}

/* Featured card inside hero */
.tr-hero-feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  box-shadow: var(--sh-md);
}

.tr-hero-feat h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.45rem 0 0.65rem;
}

.tr-hero-feat h3 a:hover { color: var(--p); }

.tr-hero-feat > p {
  color: var(--text-2);
  font-size: 0.875rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 9. Cards ───────────────────────────────────────────────────── */
.tr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.tr-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
  border-color: var(--border-hi);
}

.tr-card-body { padding: 1.25rem; }
.tr-card-body .meta { display: block; margin-bottom: 0.35rem; }

.tr-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.55rem;
  color: var(--text);
}

.tr-card h3 a:hover { color: var(--p); }

.tr-card p {
  color: var(--text-2);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 10. Card Grid ──────────────────────────────────────────────── */
.tr-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
  gap: 1.1rem;
}

/* ── 11. Main 2-col layout ──────────────────────────────────────── */
.tr-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(250px, 0.82fr);
  gap: 2rem;
  align-items: start;
}

/* ── 12. Sidebar ────────────────────────────────────────────────── */
.tr-sidebar {
  display: grid;
  gap: 1.5rem;
  position: sticky;
  top: 5.5rem;
}

/* ── 13. Panel ──────────────────────────────────────────────────── */
.tr-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--sh-sm);
}

.tr-panel-head {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ── 14. Section Heading ────────────────────────────────────────── */
.tr-section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tr-section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.tr-section-head .count {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ── 15. Link List ──────────────────────────────────────────────── */
.tr-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.2rem;
}

.tr-link-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.65rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color var(--t), background var(--t), padding-left var(--t);
}

.tr-link-list a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--p);
  opacity: 0;
  transition: opacity var(--t);
  flex-shrink: 0;
}

.tr-link-list a:hover {
  color: var(--p);
  background: var(--p-dim);
  padding-left: 0.9rem;
}

.tr-link-list a:hover::before { opacity: 1; }

/* ── 16. Destination Chips (subcategory) ────────────────────────── */
.tr-dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 0.6rem;
}

.tr-dest-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.62rem 0.9rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t);
}

.tr-dest-chip:hover {
  border-color: var(--p);
  color: var(--p-hi);
  background: var(--p-dim);
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}

.tr-dest-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.tr-dest-chip:hover .tr-dest-count {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.22);
  color: var(--p-hi);
}

/* ── 17. Article Shell ──────────────────────────────────────────── */
.tr-article-shell {
  display: grid;
  grid-template-columns: minmax(218px, 268px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.tr-article-shell .tr-sidebar { top: 5rem; }
.tr-article-single { max-width: 760px; margin-inline: auto; }

/* ── 18. Article Header ─────────────────────────────────────────── */
.tr-article-header {
  background: linear-gradient(135deg, var(--surface-2) 0%, #FFF5EC 55%, #EEF9FF 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.tr-article-header::before {
  content: '';
  position: absolute;
  top: -3rem; right: -3rem;
  width: 12rem; height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.tr-article-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 1rem;
  position: relative;
}

.tr-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.9rem;
}

.tr-meta-row span { display: inline-flex; align-items: center; gap: 0.3rem; }

.tr-article-header > p:last-child {
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.72;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.4rem;
  position: relative;
}

/* ── 19. Prose ──────────────────────────────────────────────────── */
.tr-prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.2rem 2.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--sh-sm);
  font-size: 1rem;
  line-height: 1.88;
}

.tr-prose > *:first-child { margin-top: 0; }
.tr-prose > *:last-child  { margin-bottom: 0; }

.tr-prose p { color: var(--text-2); }

.tr-prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--p);
}

.tr-prose h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.6rem;
}

.tr-prose a {
  color: var(--p);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 107, 53, 0.28);
  transition: text-decoration-color var(--t);
}

.tr-prose a:hover { text-decoration-color: var(--p); }

.tr-prose code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.875em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 0.1em 0.38em;
  border-radius: 5px;
  color: var(--p-hi);
}

.tr-prose pre {
  background: #1e1e2e;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.tr-prose pre code {
  background: none; border: none; padding: 0;
  color: #cdd6f4; font-size: inherit;
}

.tr-prose blockquote {
  border-left: 3px solid var(--p);
  padding: 0.85rem 1.4rem;
  margin: 1.5rem 0;
  background: var(--p-dim);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-2);
  font-style: italic;
}

.tr-prose ul, .tr-prose ol { padding-left: 1.5rem; }
.tr-prose li { margin-bottom: 0.3rem; }

.tr-prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  margin: 2rem 0;
}

.tr-prose img {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin-block: 1.5rem;
  box-shadow: var(--sh-sm);
}

.tr-prose table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem; margin: 1.5rem 0;
}
.tr-prose th, .tr-prose td {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border); text-align: left;
}
.tr-prose th { background: var(--surface-2); font-weight: 600; color: var(--text); }

.tr-prose-page { max-width: 720px; margin-inline: auto; }

/* ── 20. Author ─────────────────────────────────────────────────── */
.author-card { display: flex; gap: 1.2rem; align-items: flex-start; }

.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
}

.author-label {
  color: var(--muted); font-size: 0.70rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.25rem;
}

.author-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 0.2rem; color: var(--text); font-size: 1rem;
}

.author-expertise, .author-bio { color: var(--text-2); font-size: 0.875rem; margin: 0 0 0.2rem; }
.author-inline { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.84rem; }

/* ── 21. Page Hero ──────────────────────────────────────────────── */
.tr-page-hero {
  background: linear-gradient(135deg, #FFF5EC 0%, #FFF0E8 50%, #FFF8E6 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.2rem 2.5rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.tr-page-hero::before {
  content: '';
  position: absolute;
  top: -3rem; right: -3rem;
  width: 12rem; height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.tr-page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 0.55rem;
  position: relative;
}

.tr-page-hero > p {
  color: var(--text-2); font-size: 1rem;
  margin: 0.4rem 0 0; max-width: 68ch; position: relative;
}

/* ── 22. Series TOC ─────────────────────────────────────────────── */
.tr-toc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }

.tr-toc-list li {
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all var(--t);
}

.tr-toc-list li a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--t);
}

.tr-toc-part {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.tr-toc-list li:hover { border-color: var(--border); background: var(--surface-2); }

.tr-toc-list li.is-active {
  border-color: var(--p);
  background: var(--p-dim);
}

.tr-toc-list li.is-active a     { color: var(--p-hi); }
.tr-toc-list li.is-active .tr-toc-part { color: var(--p); }

/* ── 23. Itinerary Timeline (series page) ───────────────────────── */
.tr-itinerary {
  display: grid;
  gap: 0;
  counter-reset: stop;
}

.tr-stop {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}

/* Numbered stop circle */
.tr-stop::before {
  counter-increment: stop;
  content: counter(stop);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
  box-shadow: 0 2px 10px var(--p-glow);
}

/* Gradient connector line */
.tr-stop:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0.94rem;
  top: 2.1rem;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, var(--p) 0%, rgba(255,107,53,0.08) 100%);
}

.tr-stop-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.tr-stop-body h3 a:hover { color: var(--p); }

.tr-stop-body p {
  color: var(--text-2);
  font-size: 0.875rem;
  margin: 0.3rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 24. Media Grid ─────────────────────────────────────────────── */
.tr-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}

.tr-media-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t);
}

.tr-media-card:hover {
  border-color: var(--border-hi);
  box-shadow: var(--sh-md);
  transform: scale(1.015);
}

.tr-media-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* ── 25. Ad Slots ───────────────────────────────────────────────── */
.tr-ad {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── 26. Pagination ─────────────────────────────────────────────── */
.tr-pagination { margin-top: 2rem; }

.tr-pagination .pagination-nav { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.tr-pagination .pagination-info p { color: var(--muted); font-size: 0.82rem; margin: 0; }
.tr-pagination .pagination-links { display: flex; align-items: center; gap: 0.3rem; }

.tr-pagination .page-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.875rem; transition: all var(--t);
}

.tr-pagination .page-item:hover:not(.disabled):not(.active) {
  border-color: var(--p); color: var(--p); background: var(--p-dim);
}

.tr-pagination .page-item.active { background: var(--p); color: #fff; border-color: var(--p); font-weight: 600; }
.tr-pagination .page-item.disabled { opacity: 0.4; cursor: default; }
.tr-pagination .page-item svg { width: 0.95rem; height: 0.95rem; }

/* ── 27. Footer ─────────────────────────────────────────────────── */
.tr-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 5rem;
}

.tr-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.tr-footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.tr-footer-tagline { color: var(--muted); font-size: 0.85rem; margin: 0; }
.tr-footer-copy { color: var(--muted); font-size: 0.8rem; margin: 0.5rem 0 0; }

.tr-footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.tr-footer-links a {
  color: var(--text-2); font-size: 0.875rem; font-weight: 500;
  transition: color var(--t);
}

.tr-footer-links a:hover { color: var(--p); }

/* ── 28. Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tr-hero-inner    { grid-template-columns: 1fr; }
  .tr-layout        { grid-template-columns: 1fr; }
  .tr-article-shell { grid-template-columns: 1fr; }
  .tr-sidebar       { position: static; }
}

@media (max-width: 640px) {
  .tr-menu-toggle { display: inline-flex; }
  .tr-nav         { display: none; }
  .tr-nav.is-open { display: block; padding-bottom: 0.6rem; }
  .tr-card-grid   { grid-template-columns: 1fr; }
  .tr-hero,
  .tr-page-hero   { padding: 1.75rem; }
  .tr-hero::before,
  .tr-hero::after,
  .tr-page-hero::before { display: none; }
  .tr-article-header,
  .tr-prose       { padding: 1.5rem; }
  .tr-footer-inner { flex-direction: column; }
  .tr-dest-grid   { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
