/* ===== TOKENS ===== */
/*
 * Color palette:
 *   cream-*  — warm neutrals for backgrounds, borders
 *   earth-*  — warm grays/browns for text
 *   accent-* — burnt orange for site branding (links, highlights)
 *
 * Semantic colors:
 *   --color-success  — green (published, available, confirm)
 *   --color-danger   — red (delete, error, taken)
 *   --color-warning  — amber (permanent actions, caution)
 *   --color-info     — blue (save, location tags)
 *   --color-hidden   — orange (hidden status)
 *
 * Tag category colors:
 *   --tag-location-*  — blue
 *   --tag-people-*    — pink
 *   --tag-topic-*     — uses cream/earth (neutral)
 */
:root {
  /* Palette: warm neutrals */
  --cream-50:  #f4f3f1;
  --cream-100: #eceae6;
  --cream-200: #dedad3;
  --cream-300: #cecac0;
  --cream-400: #b8b3a7;
  --earth-200:  #b2ada6;
  --earth-300:  #8e887f;
  --earth-400:  #69635a;
  --earth-500:  #4e4840;
  --earth-600:  #383330;
  --earth-700:  #282420;
  --earth-800:  #1a1714;
  --earth-900:  #110f0d;

  /* Palette: brand accent (burnt orange) */
  --accent-300: #f49070;
  --accent-400: #e86848;
  --accent-500: #c44e2c;
  --accent-600: #a63c22;

  /* Semantic: status colors */
  --color-success:     #2e7d32;
  --color-success-bg:  #e8f5e9;
  --color-danger:      #b71c1c;
  --color-danger-bg:   #fdecea;
  --color-danger-border: #f5c6cb;
  --color-danger-btn:  #c0392b;
  --color-warning:     #6d4c00;
  --color-warning-bg:  #fff8e1;
  --color-warning-border: #ffe082;
  --color-info:        #1565c0;
  --color-info-bg:     #e3f2fd;
  --color-info-border: #90caf9;
  --color-info-hover:  #0d47a1;
  --color-info-hover-bg: #bbdefb;
  --color-info-hover-border: #42a5f5;
  --color-hidden:      #e65100;
  --color-hidden-bg:   #fff3e0;

  /* Tag categories */
  --tag-location:        var(--color-info);
  --tag-location-bg:     var(--color-info-bg);
  --tag-location-border: var(--color-info-border);
  --tag-people:          #ad1457;
  --tag-people-bg:       #fce4ec;
  --tag-people-border:   #f48fb1;
  --tag-people-hover:    #880e4f;
  --tag-people-hover-bg: #f8bbd0;
  --tag-people-hover-border: #ec407a;
  --tag-topic:          #2e7d32;
  --tag-topic-bg:       #e8f5e9;
  --tag-topic-border:   #a5d6a7;
  --tag-topic-hover:    #1b5e20;
  --tag-topic-hover-bg: #c8e6c9;
  --tag-topic-hover-border: #66bb6a;

  /* Base */
  --white: #fff;
  --font-source-serif: "Source Serif 4";
  --font-instrument-sans: "Instrument Sans";
  --font-heading: var(--font-source-serif), Georgia, serif;
  --font-body: var(--font-instrument-sans), system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 16px;
  --speed: .3s;
}

/* ===== RESET ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
h1:focus, h2:focus, h3:focus, [tabindex]:focus { outline: none; }
body { font-family: var(--font-body); background: var(--cream-100); color: var(--earth-700); line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-600); text-decoration: none; transition: color var(--speed); }
a:hover { color: var(--accent-500); }

/* ===== LOADING BAR ===== */
.loading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: linear-gradient(90deg, transparent, var(--accent-500) 40%, var(--accent-600) 60%, transparent); background-size: 200% 100%; animation: loading-slide 1.2s ease-in-out infinite; }
@keyframes loading-slide { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ===== LAYOUT ===== */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.site-main { flex: 1; }
.body--locked { overflow: hidden; }
.inline-form { display: inline; }
.is-hidden { display: none !important; }
.messages-strip { padding-top: 1rem; }
.btn-block { justify-content: center; width: 100%; }
.text-nowrap { white-space: nowrap; }
.stack-space-md { margin-bottom: 1.25rem; }
.stack-space-lg { margin-bottom: 1.5rem; }
.form-group--compact { margin-bottom: 0; }
.section-heading-sm { font-family: var(--font-heading); font-size: 1rem; margin: 0 0 1rem; }
.form-help { font-size: .8rem; color: var(--earth-400); }
.form-help--editor { margin-top: .5rem; }
.visually-hidden-form { display: none; }
.not-found-actions { margin-top: 1rem; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(232,223,210,.7); background: rgba(253,252,250,.9); box-shadow: 0 1px 3px rgba(27,39,64,.05); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; gap: 2rem; padding: 1rem 0; transition: padding .4s cubic-bezier(.22,1,.36,1), gap .4s cubic-bezier(.22,1,.36,1); }
.header-inner.compact { padding: .35rem 0; gap: 1rem; }
.site-logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex-shrink: 0; transition: gap .4s cubic-bezier(.22,1,.36,1); }
.header-inner.compact .site-logo { gap: .6rem; }
.logo-icon { width: 5.5rem; height: 5.5rem; transition: width .4s cubic-bezier(.22,1,.36,1), height .4s cubic-bezier(.22,1,.36,1); }
.header-inner.compact .logo-icon { width: 2rem; height: 2rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--earth-900); letter-spacing: -.02em; transition: font-size .4s cubic-bezier(.22,1,.36,1); }
.header-inner.compact .logo-main { font-size: 1.1rem; }
.logo-org { font-size: .7rem; letter-spacing: .06em; color: var(--earth-400); white-space: nowrap; margin-top: .1rem; max-height: 1.5rem; opacity: 1; overflow: hidden; transition: max-height .4s cubic-bezier(.22,1,.36,1), opacity .3s cubic-bezier(.22,1,.36,1), margin .4s cubic-bezier(.22,1,.36,1); }
.header-inner.compact .logo-org { max-height: 0; opacity: 0; margin-top: 0; }
.site-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.site-nav a { padding: .375rem .75rem; font-size: .875rem; font-weight: 500; color: var(--earth-600); border-radius: var(--radius-sm); transition: background var(--speed), color var(--speed); }
.site-nav a:hover { background: rgba(27,39,64,.06); color: var(--earth-900); }

/* ===== FEATURED SECTION ===== */
.featured-section { padding: 3rem 0 4rem; }
.featured-grid { display: flex; gap: 3rem; align-items: center; }
.featured-grid > div:first-child { flex: 1; min-width: 0; text-align: center; }
.featured-date { display: flex; align-items: center; justify-content: center; gap: 1rem; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--accent-600); letter-spacing: .03em; margin-bottom: 1.5rem; }
.featured-date::before, .featured-date::after { content: ''; flex: 1; max-width: 6rem; height: 1px; background: linear-gradient(to var(--dir, right), transparent, var(--cream-300)); }
.featured-date::before { --dir: right; }
.featured-date::after { --dir: left; }
.featured-title { font-family: var(--font-heading); font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--earth-900); line-height: 1.2; }
.featured-excerpt { font-size: 1.05rem; line-height: 1.7; color: var(--earth-700); margin-top: 1rem; }
.featured-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.btn-accent { display: inline-flex; align-items: center; gap: .5rem; background: var(--earth-900); color: var(--cream-50); padding: .7rem 1.75rem; border-radius: 99px; font-size: .9rem; font-weight: 600; transition: background var(--speed); }
.btn-accent:hover { background: var(--earth-700); color: var(--cream-50); }
.featured-image-wrap { flex-shrink: 0; min-width: 320px; max-width: 50%; border-radius: var(--radius); background: var(--cream-200); box-shadow: 0 20px 40px rgba(17,15,13,.1), inset 0 0 0 1px rgba(178,173,166,.4); overflow: hidden; }
.featured-image-wrap img { width: 100%; height: auto; max-height: 520px; object-fit: contain; display: block; transition: transform .7s ease; }
.featured-image-wrap:hover img { transform: scale(1.03); }

/* Multi-article day tabs */
.featured-tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; flex-wrap: wrap; justify-content: center; }
.featured-tab { background: none; border: 1px solid var(--cream-300); border-radius: 99px; padding: .3rem .85rem; font: inherit; font-size: .72rem; color: var(--earth-500); cursor: pointer; transition: all var(--speed); text-decoration: none; }
.featured-tab:hover { border-color: var(--accent-500); color: var(--accent-600); }
.featured-tab--active, .featured-tab--active:hover { background: var(--accent-500); border-color: var(--accent-500); color: #fff; }
.featured-tab-year { font-weight: 600; margin-right: .25rem; }

/* ===== ARTICLES SECTION ===== */
.articles-section { padding: 3rem 0 4rem; }
.articles-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.articles-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--earth-900); margin-top: .25rem; }
.articles-rule { display: flex; align-items: center; gap: .75rem; color: rgba(184,146,47,.4); margin-top: .5rem; max-width: 5rem; }
.articles-rule::before, .articles-rule::after { content: ''; flex: 1; height: 1px; background: currentColor; }
.articles-count { font-size: .85rem; color: var(--earth-400); }

/* ===== ORNAMENTAL DIVIDER ===== */
.ornament-divider { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 0; color: var(--cream-400); }
.ornament-divider::before, .ornament-divider::after { content: ''; flex: 1; max-width: 8rem; height: 1px; background: linear-gradient(to var(--dir, right), transparent, var(--cream-300)); }
.ornament-divider::before { --dir: right; }
.ornament-divider::after { --dir: left; }
.ornament-divider svg { flex-shrink: 0; }

/* ===== UPCOMING LIST (calendar view) ===== */
.upcoming-list { display: flex; flex-direction: column; }
.upcoming-day { display: flex; gap: 1.5rem; padding: 1.5rem 0; position: relative; }
.upcoming-day:first-child { padding-top: 0; }
.upcoming-day + .upcoming-day { border-top: 1px solid var(--cream-300); }
.upcoming-day + .upcoming-day::before { content: '\2726'; position: absolute; top: -1px; left: 50%; transform: translate(-50%, -50%); background: var(--cream-100); padding: 0 .75rem; font-size: .6rem; color: var(--cream-400); }
.upcoming-day-date { flex-shrink: 0; width: 4rem; text-align: center; padding-top: .15rem; }
.upcoming-day-month { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); }
.upcoming-day-num { display: block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--earth-900); line-height: 1.1; }
.upcoming-day-articles { flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.upcoming-article { display: block; text-decoration: none; padding: .75rem 1rem; border-radius: var(--radius-sm); transition: background var(--speed); }
.upcoming-article:hover { background: var(--cream-200); }
.upcoming-article-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--earth-900); line-height: 1.35; transition: color var(--speed); }
.upcoming-article:hover .upcoming-article-title { color: var(--accent-600); }
.upcoming-article-excerpt { font-size: .82rem; line-height: 1.6; color: var(--earth-500); margin-top: .25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upcoming-article-year { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--accent-500); margin-right: .5rem; }

/* ===== ARCHIVE ===== */
.archive-header { text-align: center; padding: 3rem 0 2rem; }

/* Tags page */
.tags-header { text-align: center; padding: 3rem 0 1.5rem; }
.tags-title { font-family: var(--font-heading); font-size: 2rem; color: var(--earth-900); margin: 0 0 .25rem; }
.tags-count { color: var(--earth-500); font-size: .9rem; }
.tags-empty { text-align: center; color: var(--earth-400); padding: 2rem 0; }

/* Tag detail page header — category-colored title */
.tags-header--location .tags-title { color: var(--tag-location); }
.tags-header--people .tags-title { color: var(--tag-people); }
.tags-header--topic .tags-title { color: var(--tag-topic); }

/* Tag detail view toggle — segmented pill */
.article-view-toggle-wrap { text-align: center; margin: 0 0 2.5rem; }
.article-view-toggle {
  display: inline-flex;
  gap: .25rem;
  padding: .3rem;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: 99px;
}
.article-view-toggle-option {
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--earth-500);
  background: transparent;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.article-view-toggle-option:not(.article-view-toggle-option--active):hover { color: var(--earth-800); }
.article-view-toggle-option--active {
  background: var(--earth-800);
  color: var(--white);
}

/* Timeline view — adapted from the about page honours timeline.
   Vertical line connects year groups; each article entry has a dot
   marker that hovers to fill. Category color scopes the year font
   and entry dot border. */
.article-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: relative;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.article-timeline::before {
  content: '';
  position: absolute;
  left: 5.5rem;
  top: .5rem;
  bottom: .5rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--cream-400) 3%, var(--cream-400) 97%, transparent);
  pointer-events: none;
}

.article-timeline-year-group {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: start;
}
.article-timeline-year {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent-500);
  line-height: .95;
  text-align: right;
  padding-top: .2rem;
  padding-right: 1.5rem;
  font-feature-settings: 'lnum' 1;
  letter-spacing: -.01em;
}
.article-timeline--location .article-timeline-year { color: var(--tag-location); }
.article-timeline--people .article-timeline-year { color: var(--tag-people); }
.article-timeline--topic .article-timeline-year { color: var(--tag-topic); }
.article-timeline-year--undated {
  font-size: 1rem;
  color: var(--earth-400) !important;
  padding-top: .6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.article-timeline-entries {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.article-timeline-entry {
  position: relative;
  padding-left: 1.75rem;
}
.article-timeline-entry::before {
  content: '';
  position: absolute;
  left: -.425rem;
  top: .55rem;
  width: .85rem;
  height: .85rem;
  background: var(--cream-100);
  border: 2px solid var(--accent-500);
  border-radius: 50%;
  box-sizing: border-box;
  transition: background .15s, transform .15s;
}
.article-timeline--location .article-timeline-entry::before { border-color: var(--tag-location); }
.article-timeline--people .article-timeline-entry::before { border-color: var(--tag-people); }
.article-timeline--topic .article-timeline-entry::before { border-color: var(--tag-topic); }
.article-timeline-entry:hover::before { transform: scale(1.15); }
.article-timeline--location .article-timeline-entry:hover::before { background: var(--tag-location); }
.article-timeline--people .article-timeline-entry:hover::before { background: var(--tag-people); }
.article-timeline--topic .article-timeline-entry:hover::before { background: var(--tag-topic); }

.article-timeline-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-timeline-link:hover .article-timeline-title { color: var(--accent-600); }

.article-timeline-date {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--earth-400);
  margin-bottom: .2rem;
  font-feature-settings: 'lnum' 1;
}

.article-timeline-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--earth-900);
  line-height: 1.35;
  margin: 0 0 .3rem;
  transition: color .15s;
}

.article-timeline-excerpt {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--earth-500);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .article-timeline::before { left: 3.5rem; }
  .article-timeline-year-group { grid-template-columns: 3.5rem 1fr; }
  .article-timeline-year { font-size: 1.25rem; padding-right: 1rem; }
}

/* Tags browser (client component) */
.tags-browser { max-width: 960px; margin: 0 auto 4rem; }

.tags-search { position: relative; margin-bottom: 1.25rem; }
.tags-search-input {
  width: 100%;
  padding: .75rem 2.5rem .75rem 1rem;
  font-size: 1rem;
  color: var(--earth-800);
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: 99px;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.tags-search-input::placeholder { color: var(--earth-400); }
.tags-search-input:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(196,78,44,.1);
}
.tags-search-clear {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: var(--cream-100);
  color: var(--earth-600);
  border-radius: 99px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tags-search-clear:hover { background: var(--cream-200); color: var(--earth-800); }

.tags-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.tags-category-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .95rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--earth-600);
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.tags-category-tab:hover { border-color: var(--earth-400); color: var(--earth-800); }
.tags-category-tab--topic.tags-category-tab--active {
  background: var(--tag-topic); border-color: var(--tag-topic); color: var(--white);
}
.tags-category-tab--people.tags-category-tab--active {
  background: var(--tag-people); border-color: var(--tag-people); color: var(--white);
}
.tags-category-tab--location.tags-category-tab--active {
  background: var(--tag-location); border-color: var(--tag-location); color: var(--white);
}
.tags-category-tab--active {
  background: var(--earth-800);
  border-color: var(--earth-800);
  color: var(--white);
}
.tags-category-count {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .1rem .45rem;
  background: var(--cream-100);
  color: var(--earth-500);
  border-radius: 99px;
  min-width: 1.4rem;
  text-align: center;
}
.tags-category-tab--active .tags-category-count {
  background: rgba(255,255,255,.2);
  color: var(--white);
}

.tags-section { margin-bottom: 3rem; }
.tags-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: .65rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--cream-200);
}
.tags-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--earth-900);
  margin: 0;
}
.tags-section--location .tags-section-title { color: var(--tag-location); }
.tags-section--people .tags-section-title { color: var(--tag-people); }
.tags-section--topic .tags-section-title { color: var(--tag-topic); }
.tags-section-count { font-size: .8rem; color: var(--earth-400); }

/* "Most covered" cross-category featured grid. Cards wrap their tag name
   onto as many lines as needed — no ellipsis, no truncation. Cards are
   assigned a tier based on count (see TagsBrowser) that scales font size,
   padding, and grid column span so the hierarchy in the data becomes
   visible at a glance. grid-auto-flow: dense lets smaller tiles backfill
   gaps under the larger ones. */
.tags-featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  grid-auto-flow: dense;
  gap: .6rem;
  align-items: stretch;
}
.tags-featured-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .9rem;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: .5rem;
  text-decoration: none;
  color: var(--earth-800);
  font-weight: 500;
  transition: all .15s;
  min-height: 2.75rem;
}
.tags-featured-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-500);
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
}
.tags-featured-name {
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.tags-featured-count {
  display: inline-block;
  font-weight: 700;
  background: var(--cream-100);
  color: var(--earth-600);
  border-radius: 99px;
  flex-shrink: 0;
  align-self: center;
  text-align: center;
}

/* Tier 1 — dominant (count >= 50). Spans 2 columns, heading font,
   oversized count badge. One or two of these carry the eye. */
.tags-featured-card--tier-1 {
  grid-column: span 2;
  min-height: 5.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: .75rem;
}
.tags-featured-card--tier-1 .tags-featured-name {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
}
.tags-featured-card--tier-1 .tags-featured-count {
  font-size: 1.25rem;
  padding: .35rem 1rem;
  min-width: 3rem;
}

/* Tier 2 — major (count >= 25). Slightly smaller heading. */
.tags-featured-card--tier-2 {
  min-height: 4rem;
  padding: .95rem 1.1rem;
  border-radius: .6rem;
}
.tags-featured-card--tier-2 .tags-featured-name {
  font-size: 1.35rem;
  font-weight: 600;
}
.tags-featured-card--tier-2 .tags-featured-count {
  font-size: .95rem;
  padding: .25rem .75rem;
  min-width: 2.25rem;
}

/* Tier 3 — recurring (count >= 10). Standard-weight text, prominent badge. */
.tags-featured-card--tier-3 .tags-featured-name {
  font-size: 1.05rem;
}
.tags-featured-card--tier-3 .tags-featured-count {
  font-size: .8rem;
  padding: .2rem .6rem;
  min-width: 1.75rem;
}

/* Tier 4 — light recurring (count 5–9). Compact, quiet. */
.tags-featured-card--tier-4 {
  min-height: 2.25rem;
  padding: .5rem .75rem;
  border-radius: .4rem;
}
.tags-featured-card--tier-4 .tags-featured-name {
  font-size: .85rem;
}
.tags-featured-card--tier-4 .tags-featured-count {
  font-size: .7rem;
  padding: .1rem .45rem;
  min-width: 1.4rem;
}
.tags-featured-card--location {
  background: var(--tag-location-bg);
  border-color: var(--tag-location-border);
  color: var(--tag-location);
}
.tags-featured-card--location .tags-featured-count {
  background: rgba(255,255,255,.55);
  color: var(--tag-location);
}
.tags-featured-card--people {
  background: var(--tag-people-bg);
  border-color: var(--tag-people-border);
  color: var(--tag-people);
}
.tags-featured-card--people .tags-featured-count {
  background: rgba(255,255,255,.55);
  color: var(--tag-people);
}
.tags-featured-card--topic {
  background: var(--tag-topic-bg);
  border-color: var(--tag-topic-border);
  color: var(--tag-topic);
}
.tags-featured-card--topic .tags-featured-count {
  background: rgba(255,255,255,.55);
  color: var(--tag-topic);
}

/* Per-category dense chip flex. Recurring (count >= 2) rendered by default,
   singletons (count = 1) behind a toggle. Same chip visual for both, with
   the singleton group slightly faded to downweight visually. */
.tags-all-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--earth-500);
  background: transparent;
  border: 1px dashed var(--cream-300);
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  margin: 1rem 0;
}
.tags-all-toggle:hover { color: var(--earth-800); border-color: var(--earth-400); }
.tags-all-toggle-chevron { font-size: .85rem; }

.tags-all { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags-all--singletons { opacity: .75; }

.tags-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: 99px;
  text-decoration: none;
  color: var(--earth-600);
  font-size: .8rem;
  transition: border-color .15s, background .15s, color .15s;
  overflow-wrap: break-word;
}
.tags-chip:hover { border-color: var(--accent-500); background: var(--cream-50); color: var(--accent-600); }
.tags-chip-name { font-weight: 500; }
.tags-chip-count {
  font-size: .7rem;
  color: var(--earth-400);
  background: var(--cream-100);
  padding: .05rem .35rem;
  border-radius: 99px;
  min-width: 1rem;
  text-align: center;
}
.tags-chip--location {
  background: var(--tag-location-bg);
  border-color: var(--tag-location-border);
  color: var(--tag-location);
}
.tags-chip--location .tags-chip-count { background: rgba(255,255,255,.55); color: var(--tag-location); }
.tags-chip--people {
  background: var(--tag-people-bg);
  border-color: var(--tag-people-border);
  color: var(--tag-people);
}
.tags-chip--people .tags-chip-count { background: rgba(255,255,255,.55); color: var(--tag-people); }
.tags-chip--topic {
  background: var(--tag-topic-bg);
  border-color: var(--tag-topic-border);
  color: var(--tag-topic);
}
.tags-chip--topic .tags-chip-count { background: rgba(255,255,255,.55); color: var(--tag-topic); }

.archive-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--earth-900); }
.archive-count { font-size: .85rem; color: var(--earth-400); margin-top: .5rem; }
.archive-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; padding: .75rem 0; margin-bottom: 1.5rem; }
.archive-nav-pill { display: inline-block; padding: .3rem .7rem; font-size: .75rem; font-weight: 600; color: var(--earth-500); border: 1px solid var(--cream-300); border-radius: 99px; transition: all var(--speed); }
.archive-nav-pill:hover { border-color: var(--accent-500); color: var(--accent-600); background: rgba(196,78,44,.05); }
.archive-month { margin-bottom: 2.5rem; scroll-margin-top: 7rem; }
.archive-month-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--accent-600); letter-spacing: .02em; padding: 1rem 0 .75rem; margin-bottom: .5rem; border-bottom: 2px solid var(--cream-300); position: sticky; top: 3.25rem; background: var(--cream-100); z-index: 10; box-shadow: 0 -1rem 0 0 var(--cream-100); }

/* ===== ARTICLE DETAIL ===== */
.article-detail-header { padding: 3rem 0 2rem; text-align: center; }
.article-back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 500; color: var(--earth-500); margin-bottom: 2rem; border-radius: var(--radius-sm); padding: .3rem .6rem; transition: background var(--speed), color var(--speed); }
.article-back-link:hover { background: var(--cream-200); color: var(--earth-800); }
.article-detail-date { display: flex; align-items: center; justify-content: center; gap: 1rem; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--accent-600); letter-spacing: .03em; margin-bottom: 1.25rem; }
.article-detail-date::before, .article-detail-date::after { content: ''; flex: 1; max-width: 6rem; height: 1px; background: linear-gradient(to var(--dir, right), transparent, var(--cream-300)); }
.article-detail-date::before { --dir: right; }
.article-detail-date::after { --dir: left; }
.article-detail-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 700; color: var(--earth-900); line-height: 1.15; max-width: 760px; margin: 0 auto 1.25rem; }
.article-header-meta { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.article-author-line { font-size: .85rem; color: var(--earth-500); }
.reading-time { font-size: .78rem; color: var(--earth-400); }
.reading-time::before { content: '\b7'; margin-right: .75rem; }

/* Article body */
.article-detail { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 2rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--cream-200); }
.article-tag { display: inline-block; padding: .25rem .7rem; background: var(--cream-100); border: 1px solid var(--cream-300); border-radius: 99px; font-size: .8rem; color: var(--earth-600); text-decoration: none; transition: background .15s, border-color .15s; }
.article-tag:hover { background: var(--cream-200); border-color: var(--accent-500); color: var(--accent-600); }
.article-tag--location { background: var(--tag-location-bg); border-color: var(--tag-location-border); color: var(--tag-location); }
.article-tag--location:hover { background: var(--color-info-hover-bg); border-color: var(--color-info-hover-border); color: var(--color-info-hover); }
.article-tag--people { background: var(--tag-people-bg); border-color: var(--tag-people-border); color: var(--tag-people); }
.article-tag--people:hover { background: var(--tag-people-hover-bg); border-color: var(--tag-people-hover-border); color: var(--tag-people-hover); }
.article-tag--topic { background: var(--tag-topic-bg); border-color: var(--tag-topic-border); color: var(--tag-topic); }
.article-tag--topic:hover { background: var(--tag-topic-hover-bg); border-color: var(--tag-topic-hover-border); color: var(--tag-topic-hover); }
.article-content { font-size: 1.05rem; line-height: 1.9; color: var(--earth-700); }
.article-content.drop-cap > p:first-of-type::first-letter { font-family: var(--font-heading); font-size: 4.2rem; font-weight: 700; float: left; line-height: .8; margin: .06em .12em 0 0; color: var(--accent-500); }
.article-content p { margin-bottom: 1.5rem; }
.article-content h2 { font-family: var(--font-heading); font-size: 1.6rem; color: var(--earth-900); margin: 2.5rem 0 .75rem; }
.article-content h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--earth-900); margin: 2rem 0 .5rem; }
.article-content figure.article-image { margin: 1rem 0 1.5rem; max-width: 55%; border-radius: var(--radius-sm); overflow: hidden; }
.article-content figure.article-image:nth-of-type(odd) { float: right; margin-left: 2rem; margin-right: 0; }
.article-content figure.article-image:nth-of-type(even) { float: left; margin-right: 2rem; margin-left: 0; }
.article-content figure.article-image img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
/* When an image has too little text after it to wrap the float's full
   height, it sticks out below with a gap. The render-time post-processor
   (addTrailingImageClasses in articles.ts) detects these cases and adds
   the --trailing modifier so we can force full-width centered display. */
.article-content figure.article-image.article-image--trailing {
  float: none !important;
  clear: both;
  max-width: 100%;
  margin: 2rem auto;
  display: block;
}
.article-content strong { color: var(--earth-900); }
.article-content::after { content: ''; display: table; clear: both; }

/* More articles */
.more-articles { padding: 1rem 0 3.5rem; }

/* ===== LIGHTBOX ===== */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 1rem; cursor: zoom-out; }
.lightbox-img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius-sm); cursor: zoom-out; }
.lightbox-caption { display: none; max-width: min(90vw, 48rem); color: rgba(255,255,255,.82); font-family: var(--font-heading); font-size: .88rem; font-style: italic; line-height: 1.5; text-align: center; letter-spacing: .01em; cursor: zoom-out; white-space: pre-line; }
.lightbox-close { position: fixed; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: #fff; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; }
.lightbox-close:hover { background: rgba(255,255,255,.18); }

/* ===== FOOTER ===== */
.site-footer { padding: 3.5rem 0 3.5rem; text-align: center; }
.footer-seal { width: 20rem; height: 20rem; margin: 0 auto 1rem; }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--earth-900); letter-spacing: -.025em; margin-bottom: .5rem; }
.footer-rule { display: flex; align-items: center; justify-content: center; gap: .75rem; color: rgba(196,78,44,.4); margin: 1.5rem auto; }
.footer-rule::before, .footer-rule::after { content: ''; width: 4rem; height: 1px; background: currentColor; }
.footer-nav { display: flex; align-items: center; justify-content: center; gap: .25rem; margin-top: 1.25rem; font-size: .875rem; }
.footer-nav a { padding: .25rem .5rem; font-weight: 500; color: var(--earth-600); transition: color var(--speed); }
.footer-nav a:hover { color: var(--accent-600); }
.footer-nav-dot { color: var(--earth-400); }
.footer-copy { font-size: .72rem; color: var(--earth-500); margin-top: 1.5rem; }

/* ===== LOGIN ===== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 2rem; }
.login-card { background: var(--white); border: 1px solid var(--cream-300); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.login-card h1 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--earth-900); margin-bottom: 1.5rem; text-align: center; }

/* ===== ADMIN ===== */
.site-nav .active { background: rgba(27,39,64,.06); color: var(--accent-600); }
.nav-separator { width: 1px; height: 1rem; background: var(--cream-300); margin: 0 .25rem; }
.admin-user-info { display: flex; align-items: center; gap: .5rem; margin-left: .25rem; }
.admin-user-name { font-size: .78rem; color: var(--earth-400); }
.btn-sign-out { background: none; border: 1px solid var(--cream-300); border-radius: 99px; padding: .25rem .7rem; font-size: .72rem; font-weight: 500; color: var(--earth-500); cursor: pointer; font-family: var(--font-body); transition: all var(--speed); }
.btn-sign-out:hover { border-color: var(--accent-500); color: var(--accent-600); }

/* Admin page layout */
.admin-page-header { padding: 3rem 0 2rem; }
.admin-page-header-row { display: flex; align-items: flex-end; justify-content: space-between; }
.admin-page-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--earth-900); line-height: 1.2; }
.admin-page-subtitle { font-size: .9rem; color: var(--earth-400); margin-top: .35rem; }

/* Admin stat cards */
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.admin-stat-card { background: var(--white); border: 1px solid var(--cream-300); border-radius: var(--radius); padding: 1.75rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.admin-stat-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--earth-400); }
.admin-stat-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--earth-900); margin-top: .35rem; }

/* Admin quick actions */
.admin-quick-actions { display: flex; align-items: center; gap: 1.5rem; justify-content: center; }
.admin-link-action { font-size: .9rem; font-weight: 500; color: var(--earth-500); transition: color var(--speed); }
.admin-link-action:hover { color: var(--accent-600); }

/* Admin articles list */
.admin-article-section { margin-bottom: 2rem; }
.admin-section-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--cream-300); }
.admin-section-title { font-family: var(--font-heading); font-size: 1.1rem; margin: 0; color: var(--earth-700); }
.admin-section-empty { font-size: .85rem; color: var(--earth-400); font-style: italic; padding: .75rem 0; }
.admin-articles-list { display: flex; flex-direction: column; }
.admin-article-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1rem; border-bottom: 1px solid var(--cream-300); border-radius: var(--radius-sm); margin-bottom: 2px; }
.admin-article-row--draft { background: rgba(255, 243, 224, .4); }
.admin-article-row--hidden { background: rgba(253, 236, 234, .4); }
.admin-article-info { flex: 1; min-width: 0; }
.admin-article-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--earth-900); text-decoration: none; line-height: 1.35; transition: color var(--speed); display: block; }
.admin-article-title:hover { color: var(--accent-600); }
.admin-article-meta { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; }
.admin-article-date { font-size: .8rem; color: var(--earth-400); }
.admin-article-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }

/* Admin form layout */
.admin-form-card { background: var(--white); border: 1px solid var(--cream-300); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.admin-title-input { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; line-height: 1.4; min-height: auto; resize: vertical; }
.admin-excerpt-input { font-size: .9rem; line-height: 1.6; min-height: 100px; resize: vertical; }
.admin-date-input { max-width: 200px; }
.admin-edit-actions { display: flex; gap: .75rem; align-items: flex-end; }
.btn-disabled { opacity: .4; cursor: not-allowed; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.25rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: opacity var(--speed), background var(--speed); font-family: var(--font-body); line-height: 1.2; box-sizing: border-box; }
.btn:hover { opacity: .88; }
.btn-primary { background: var(--accent-500); color: #fff; }
.btn-secondary { background: var(--cream-200); color: var(--earth-700); border-color: var(--cream-300); }
.btn-save { background: var(--color-info); color: #fff; }
.btn-success { background: var(--color-success); color: #fff; }
.btn-danger { background: var(--color-danger-btn); color: #fff; }
.btn-sm { padding: .3rem .8rem; font-size: .8rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: .75rem; font-weight: 600; color: var(--earth-500); margin-bottom: .4rem; letter-spacing: .04em; text-transform: uppercase; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select { width: 100%; padding: .55rem .85rem; border: 1px solid var(--cream-300); border-radius: var(--radius-sm); font-size: .9rem; font-family: var(--font-body); background: var(--white); color: var(--earth-800); transition: border-color var(--speed); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(184,146,47,.12); }
textarea { min-height: 280px; resize: vertical; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 99px; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.badge-published { background: var(--color-success-bg); color: var(--color-success); }
.badge-draft { background: var(--cream-200); color: var(--earth-400); }
.badge-hidden { background: var(--color-hidden-bg); color: var(--color-hidden); }
.admin-article-slug { font-family: monospace; font-size: .75rem; color: var(--earth-400); }

/* ===== ALERTS ===== */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 1rem; }
.alert-danger { background: var(--color-danger-bg); border: 1px solid var(--color-danger-border); color: var(--color-danger); }
.form-error { font-size: .85rem; color: var(--color-danger); }

/* ===== NOT FOUND ===== */
.not-found { text-align: center; padding: 6rem 1rem; }
.not-found h1 { font-family: var(--font-heading); font-size: 6rem; color: var(--cream-300); line-height: 1; margin-bottom: 1rem; }
.not-found p { color: var(--earth-400); font-size: 1.1rem; }

/* ===== ADMIN DETAILS ROW ===== */
.admin-details-row { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.admin-details-row .form-group { flex: 1; min-width: 120px; margin-bottom: 0; }

/* Publish flow page */
.publish-page-header { padding: 2rem 0 1rem; }
.publish-page-title { font-family: var(--font-heading); font-size: 1.75rem; margin: .5rem 0 .25rem; }
.publish-page-subtitle { color: var(--earth-500); font-size: .95rem; margin: 0; }

.publish-flow-step-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.publish-flow-step-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-500); color: #fff; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.publish-flow-step-title { font-family: var(--font-heading); font-size: 1.1rem; margin: 0; }
.publish-flow-check { color: var(--color-success); font-size: 1.1rem; }
.publish-flow-confirm { margin-top: .5rem; }
.publish-flow-excerpt-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.publish-flow-excerpt-option { text-align: left; padding: 1rem; border: 1px solid var(--cream-300); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; }
.publish-flow-excerpt-option:hover { border-color: var(--accent-500); background: var(--cream-50); }
.publish-flow-excerpt-text { font-size: .9rem; line-height: 1.6; color: var(--earth-700); margin: 0 0 .5rem; }
.publish-flow-excerpt-model { font-size: .7rem; color: var(--earth-400); }
@media (max-width: 640px) { .publish-flow-excerpt-options { grid-template-columns: 1fr; } }
.publish-flow-excerpt-editor { font-size: 1.05rem; line-height: 1.9; padding: 1.25rem 1.5rem; min-height: 120px; color: var(--earth-700); border: 1px solid var(--cream-300); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; resize: none; }
.publish-flow-excerpt-editor:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(196,78,44,.15); }
.publish-flow-hint { font-size: .8rem; color: var(--earth-400); margin-top: .35rem; }

.publish-flow-loading { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; color: var(--earth-500); font-size: .9rem; }
.publish-flow-loading .publish-flow-spinner { width: 20px; height: 20px; border: 2px solid var(--cream-300); border-top-color: var(--accent-500); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }

.publish-flow-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; min-height: 2rem; }
.publish-flow-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; background: var(--cream-100); border: 1px solid var(--cream-300); border-radius: 99px; font-size: .85rem; color: var(--earth-600); }
.publish-flow-tag--location { background: var(--tag-location-bg); border-color: var(--tag-location-border); color: var(--tag-location); }
.publish-flow-tag--people { background: var(--tag-people-bg); border-color: var(--tag-people-border); color: var(--tag-people); }
.publish-flow-tag--topic { background: var(--tag-topic-bg); border-color: var(--tag-topic-border); color: var(--tag-topic); }
.publish-flow-tag-empty { font-size: .8rem; color: var(--earth-400); font-style: italic; }
.publish-flow-tag-remove { background: none; border: none; cursor: pointer; color: inherit; opacity: .6; font-size: 1.1rem; line-height: 1; padding: 0; }
.publish-flow-tag-remove:hover { opacity: 1; }
.publish-flow-tag-input { display: flex; gap: .5rem; margin-bottom: .5rem; }
.publish-flow-tag-input input { flex: 1; font-size: .9rem; padding: .5rem .7rem; border: 1px solid var(--cream-300); border-radius: var(--radius-sm); }
.publish-flow-tag-input input:focus { outline: none; }
.publish-flow-add-input--location { border-color: var(--tag-location-border) !important; }
.publish-flow-add-input--location:focus { box-shadow: 0 0 0 3px rgba(21,101,192,.12); }
.publish-flow-add-input--people { border-color: var(--tag-people-border) !important; }
.publish-flow-add-input--people:focus { box-shadow: 0 0 0 3px rgba(173,20,87,.12); }
.publish-flow-add-input--topic { border-color: var(--cream-300) !important; }
.publish-flow-add-input--topic:focus { box-shadow: 0 0 0 3px rgba(184,146,47,.12); }
.publish-flow-add-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.publish-flow-add-btn { padding: .3rem .7rem; border-radius: 99px; font-size: .8rem; font-weight: 500; cursor: pointer; border: 1px dashed; background: none; font-family: var(--font-body); transition: background .15s; }
.publish-flow-add-btn--location { color: var(--tag-location); border-color: var(--tag-location-border); }
.publish-flow-add-btn--location:hover { background: var(--tag-location-bg); }
.publish-flow-add-btn--people { color: var(--tag-people); border-color: var(--tag-people-border); }
.publish-flow-add-btn--people:hover { background: var(--tag-people-bg); }
.publish-flow-add-btn--topic { color: var(--earth-600); border-color: var(--cream-300); }
.publish-flow-add-btn--topic:hover { background: var(--cream-100); }

.publish-flow-warning { background: var(--color-warning-bg); border: 1px solid var(--color-warning-border); border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .85rem; color: var(--color-warning); margin-bottom: 1rem; }

.publish-flow-options { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.publish-flow-option { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .85rem; border: 1px solid var(--cream-300); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; text-align: left; font-family: monospace; font-size: .85rem; transition: border-color .15s, background .15s; }
.publish-flow-option:hover:not(:disabled) { border-color: var(--accent-500); background: var(--cream-50); }
.publish-flow-option--selected { border-color: var(--accent-500); background: var(--cream-100); }
.publish-flow-option--taken { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.publish-flow-option-main { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.publish-flow-option-slug { color: var(--earth-700); }
.publish-flow-option-badge { font-family: var(--font-body); font-size: .7rem; font-weight: 600; text-transform: uppercase; color: var(--color-danger); }
.publish-flow-option-model { font-family: var(--font-body); font-size: .7rem; color: var(--earth-400); }

.publish-flow-slug-input { margin-bottom: 1rem; }
.publish-flow-slug-input label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.publish-flow-slug-row { display: flex; align-items: center; gap: .5rem; }
.publish-flow-slash { font-family: monospace; font-size: 1rem; color: var(--earth-400); }
.publish-flow-slug-row input { flex: 1; font-family: monospace; font-size: .9rem; padding: .5rem .6rem; border: 1px solid var(--cream-300); border-radius: var(--radius-sm); }
.publish-flow-slug-row input:focus { outline: none; border-color: var(--accent-500); }
.publish-flow-status { font-size: .8rem; margin-top: .35rem; }
.publish-flow-available { color: var(--color-success); }
.publish-flow-taken { color: var(--color-danger); }

.publish-flow-final { text-align: center; }
.publish-flow-summary { text-align: left; background: var(--cream-50); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.5rem; }
.publish-flow-summary-row { display: flex; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--cream-200); }
.publish-flow-summary-row:last-child { border-bottom: none; }
.publish-flow-summary-label { font-weight: 600; font-size: .8rem; color: var(--earth-500); min-width: 60px; flex-shrink: 0; }
.publish-flow-summary-value { font-size: .85rem; color: var(--earth-700); }
.publish-flow-summary-slug { font-family: monospace; }

.publish-flow-inline-error { display: flex; align-items: center; gap: .75rem; padding: .6rem .85rem; background: var(--color-danger-bg); border: 1px solid var(--color-danger-border); border-radius: var(--radius-sm); font-size: .85rem; color: var(--color-danger); margin-bottom: .75rem; }
.publish-flow-error { color: var(--color-danger); font-size: .85rem; text-align: center; margin-top: 1rem; }
.tag-editor-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

.btn-lg { padding: .75rem 2rem; font-size: 1rem; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EDITOR ===== */
.editor-shell { position: relative; }
.editor-toolbar { display: flex; align-items: center; gap: 2px; padding: .4rem; background: var(--cream-50); border: 1px solid var(--cream-300); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; flex-wrap: wrap; }
.editor-toolbar button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; background: none; border-radius: 4px; cursor: pointer; color: var(--earth-600); font-size: .85rem; font-family: var(--font-body); transition: background .15s, color .15s; }
.editor-toolbar button:hover { background: var(--cream-200); color: var(--earth-900); }
.editor-toolbar button.active { background: var(--accent-500); color: #fff; }
.toolbar-sep { width: 1px; height: 1.25rem; background: var(--cream-300); margin: 0 .25rem; }
.editor-toolbar.uploading::after { content: 'Uploading...'; font-size: .72rem; color: var(--accent-500); margin-left: auto; padding-right: .5rem; }
.editor-shell textarea.admin-content-input { display: block; width: 100%; min-height: 24rem; padding: 1.25rem 1.5rem; border: 1px solid var(--cream-300); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--white); color: var(--earth-700); line-height: 1.8; font-size: 1rem; resize: vertical; }
.editor-shell textarea.admin-content-input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(196,78,44,.15); }
.editor-shell textarea.admin-content-input::placeholder { color: var(--earth-300); }
.editor-shell.editor-shell--drop-active textarea.admin-content-input { box-shadow: inset 0 0 0 2px rgba(196,78,44,.18); background: var(--cream-50); }
.editor-status { min-height: 1.25rem; margin-top: .55rem; font-size: .8rem; color: var(--earth-400); }
.editor-status--success { color: var(--color-success); }
.editor-status--error { color: var(--color-danger); }
.editor-status--info { color: var(--earth-500); }

/* ===== MOBILE NAV ===== */
.nav-toggle { display: none; background: none; border: 1px solid var(--cream-300); border-radius: var(--radius-sm); padding: .35rem; cursor: pointer; color: var(--earth-600); margin-left: auto; transition: background var(--speed), color var(--speed); }
.nav-toggle:hover { background: var(--cream-200); color: var(--earth-900); }
.mobile-nav { display: none; }
.nav-toggle-icon { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .featured-grid { flex-direction: column; gap: 2rem; }
  .featured-image-wrap { max-width: 100%; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .header-inner { gap: .75rem; padding: .6rem 0; }
  .site-logo { flex-shrink: 1; min-width: 0; gap: .6rem; }
  .logo-icon { width: 2.5rem; height: 2.5rem; }
  .logo-main { font-size: 1.15rem; }
  .logo-org { white-space: normal; font-size: .6rem; line-height: 1.3; }
  .upcoming-day { gap: 1rem; }
  .upcoming-day-date { width: 3rem; }
  .upcoming-day-num { font-size: 1.5rem; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .mobile-nav { display: block; overflow: hidden; max-height: 0; background: rgba(253,252,250,.97); border-bottom: 1px solid var(--cream-300); transition: max-height .3s ease; }
  .mobile-nav--open { max-height: 13rem; }
  .mobile-nav a { display: block; padding: .75rem 1.5rem; font-size: .95rem; font-weight: 500; color: var(--earth-600); border-top: 1px solid var(--cream-200); transition: background var(--speed), color var(--speed); }
  .mobile-nav a:hover { background: var(--cream-200); color: var(--earth-900); }
  .article-detail { padding: 2rem 1rem; }
  .article-content figure.article-image { float: none !important; max-width: 100%; margin: 1.5rem 0 !important; }
  .featured-section { padding: 2rem 0 3rem; }
  .articles-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .admin-page-header-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .admin-article-row { flex-direction: column; align-items: flex-start; }
  .tags-featured { grid-template-columns: 1fr; }
  .tags-featured-card--tier-1 { grid-column: span 1; }
  .tags-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .about-portrait { float: none !important; width: 100% !important; max-width: 22rem !important; margin: 0 auto 1.5rem !important; }
  .about-detail { padding: 1.5rem 1rem 2rem !important; }
  .about-honours { padding: 2.5rem 0 0 !important; margin-top: 2.5rem !important; }
  .about-honours-timeline::before { left: 3.5rem !important; }
  .about-honour-year-group { grid-template-columns: 3.5rem 1fr !important; }
  .about-honour-year { font-size: 1.25rem !important; padding-right: 1rem !important; }
  .editor-shell textarea.admin-content-input { min-height: 20rem; padding: 1rem 1rem 1.25rem; }
}

/* ===== ABOUT PAGE ===== */
.about-detail { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.5rem 2rem; }

.about-bio { font-size: 1.05rem; line-height: 1.85; color: var(--earth-700); font-family: var(--font-heading); }
.about-bio p { margin-bottom: 1.5rem; }
.about-bio p:first-of-type::first-letter { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; float: left; line-height: .85; margin: .05em .12em 0 0; color: var(--accent-500); }
.about-bio em { font-style: italic; color: var(--earth-800); }
.about-bio::after { content: ''; display: table; clear: both; }

.about-portrait { float: right; width: 24rem; max-width: 50%; margin: .4rem 0 1.5rem 2rem; shape-outside: margin-box; }
.about-portrait img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); box-shadow: 0 20px 50px -20px rgba(0,0,0,.35), 0 10px 20px -12px rgba(0,0,0,.15); }
.about-portrait figcaption { font-size: .75rem; color: var(--earth-400); text-align: center; margin-top: .75rem; font-style: italic; line-height: 1.45; letter-spacing: .01em; }
.about-portrait-credit { display: block; margin-top: .35rem; font-size: .68rem; font-style: normal; color: var(--earth-400); letter-spacing: .02em; }

.about-honours { padding: 4rem 0 1rem; margin-top: 4rem; position: relative; }
.about-honours::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 6rem; height: 1px; background: linear-gradient(to right, transparent, var(--cream-400), transparent); }
.about-honours-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.about-honours-ornament { display: flex; justify-content: center; color: var(--accent-500); margin-bottom: 1rem; }
.about-honours-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--earth-900); margin-bottom: 1.5rem; letter-spacing: -.01em; }
.about-honours-intro { font-size: 1rem; line-height: 1.8; color: var(--earth-600); text-align: left; font-family: var(--font-heading); }

.about-honours-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2.75rem; position: relative; }
.about-honours-timeline::before { content: ''; position: absolute; left: 7rem; top: .5rem; bottom: .5rem; width: 1px; background: linear-gradient(to bottom, transparent, var(--cream-400) 3%, var(--cream-400) 97%, transparent); pointer-events: none; }
.about-honour-year-group { display: grid; grid-template-columns: 7rem 1fr; align-items: start; }
.about-honour-year { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--accent-500); line-height: .95; text-align: right; letter-spacing: -.02em; padding-top: .15rem; padding-right: 1.5rem; font-feature-settings: 'lnum' 1; }
.about-honour-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.about-honour-entry { position: relative; padding-left: 1.75rem; }
.about-honour-entry::before { content: ''; position: absolute; left: -.425rem; top: .55rem; width: .85rem; height: .85rem; background: var(--cream-100); border: 2px solid var(--accent-500); border-radius: 50%; box-sizing: border-box; transition: background var(--speed), transform var(--speed); }
.about-honour-entry:hover::before { background: var(--accent-500); transform: scale(1.12); }
.about-honour-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--earth-900); line-height: 1.45; margin: 0; }

.about-arms-figure { margin: 4rem auto 0; max-width: 18rem; padding-top: 2.5rem; border-top: 1px solid var(--cream-200); text-align: center; }
.about-arms-figure img { width: 100%; height: auto; display: block; margin: 0 auto 1rem; filter: drop-shadow(0 10px 20px rgba(0,0,0,.1)); }
.about-arms { font-size: .85rem; color: var(--earth-500); text-align: center; margin: 0 auto; max-width: 680px; line-height: 1.7; font-style: italic; font-family: var(--font-heading); }
.about-arms-motto { display: block; margin-top: .5rem; color: var(--earth-600); font-style: normal; }
.about-arms-motto strong { color: var(--accent-600); letter-spacing: .1em; font-weight: 700; }
