/* ============================================================
   FOND BOOKS — ORGANIC / NATURAL DESIGN SYSTEM
   ============================================================ */

/* 1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Organic Palette — earth-drawn, light, warm */
  --bg:           #EAE4D9;   /* warm parchment */
  --fg:           #2C2C24;   /* deep loam */
  --heading:      #6B5D52;   /* warm bark brown — softer than near-black for Oswald */
  --primary:      #5D7052;   /* moss green */
  --primary-fg:   #F3F4F1;   /* pale mist */
  --secondary:    #C18C5D;   /* terracotta / clay */
  --accent:       #E6DCCD;   /* sand */
  --muted:        #DDD7CC;   /* stone — slightly darker to match bg */
  --muted-fg:     #6A6A5E;   /* dried grass — a touch darker for contrast */
  --border:       #CEC8BE;   /* raw timber — step darker */
  --card:         #F5F1EB;   /* card lifts off the darker background */

  /* Shadows — moss & clay tinted, never pure black */
  --shadow-card:  0 2px 12px -2px rgba(93, 112, 82, 0.10);
  --shadow-soft:  0 4px 20px -2px rgba(93, 112, 82, 0.14);
  --shadow-float: 0 10px 40px -8px rgba(193, 140, 93, 0.18);

  /* Transitions */
  --transition:      all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Legacy aliases — inline view styles pick these up automatically */
  --forest:       #5D7052;   /* was dark green → moss green */
  --parchment:    #DDD7CC;   /* was dark → stone */
  --sand:         #DDD7CC;   /* was gold-dim → muted stone */
  --slate:        #2C2C24;   /* was champagne → deep loam */
  --clay:         #78786C;   /* was pewter → dried grass */
  --white:        #FFFFFF;
  --gold:         #C18C5D;   /* was art deco gold → terracotta */
  --gold-dim:     rgba(222, 216, 207, 0.7);
  --gold-faint:   rgba(230, 220, 205, 0.4);
  --border-light: rgba(222, 216, 207, 0.5);
}

/* 2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box }

html { scroll-behavior: smooth }

body {
  background-color: var(--bg);
  /* Subtle paper grain — SVG feTurbulence at low opacity */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--fg);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main#content { flex: 1 0 auto }

h1, h2, h3, h4 {
  font-family: 'Oswald', system-ui, sans-serif;
  color: var(--heading);
  line-height: 1.2;
  margin-top: 0;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

p { margin-top: 0 }

strong { color: var(--fg); font-weight: 700 }

/* 3. UTILITIES
   ============================================================ */
.full-width   { width: 100%; display: block }
.flex-column  { display: flex; flex-direction: column }
.flex-gap     { display: flex; flex-direction: column; gap: 12px }
.no-bg        { background: transparent !important; border: none !important; box-shadow: none !important }
.no-underline { text-decoration: none !important; color: inherit }

@media (max-width: 767px) { .mobile-hide { display: none } }

/* 4. LAYOUT
   ============================================================ */
.wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1400px;
  padding: 0 16px;
  margin: 32px auto 16px;
  align-items: start;
}

/* Grid items default to min-width auto; without this, any fixed-width child
   (e.g. a 240px cover) widens the whole track past narrow viewports. */
.wrapper > * { min-width: 0 }

@media (min-width: 1024px) {
  .wrapper {
    grid-template-columns: 264px 1fr 330px;
    margin: 48px auto 32px;
    padding: 0 24px;
  }
  .wrapper.single-col {
    grid-template-columns: 1fr;
    max-width: 900px;
    display: block;
  }
}

/* 5. HEADER — floating frosted pill
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8px 0 16px;
  height: 60px;
  background: rgba(253, 252, 248, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(222, 216, 207, 0.8);
  border-radius: 9999px;
  box-shadow: var(--shadow-soft);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-right { justify-content: flex-end }

/* Logo */
.logo-container { flex: 0 0 auto }

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.logo-link:hover .logo-icon { background: #4e5f44 }

.logo-text {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
}

.logo-sub { display: none }

.logo-link:hover .logo-text { color: var(--primary) }

/* Header nav */
.header-left .nav-link,
.header-right .nav-link {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-fg);
  padding: 6px 14px;
  border-radius: 9999px;
  transition: var(--transition);
}

.header-left .nav-link:hover,
.header-right .nav-link:hover {
  color: var(--primary);
  background: rgba(93, 112, 82, 0.09);
}

/* 6. SEARCH
   ============================================================ */
.hidden-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}

.search-container {
  display: flex;
  align-items: center;
}

.search-icon {
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-fg);
  padding: 6px 14px;
  border-radius: 9999px;
  transition: var(--transition);
  user-select: none;
}

.search-icon:hover {
  color: var(--primary);
  background: rgba(93, 112, 82, 0.09);
}

.search-form {
  width: 0;
  overflow: hidden;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#search-toggle:checked ~ .search-form {
  width: 250px;
}

.search-input {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 7px 16px;
  width: 170px;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder { color: var(--muted-fg) }

.search-input:focus {
  border-color: rgba(93, 112, 82, 0.45);
  box-shadow: 0 0 0 3px rgba(93, 112, 82, 0.10);
}

.search-submit {
  background: var(--primary);
  border: none;
  color: var(--primary-fg);
  padding: 7px 16px;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.search-submit:hover {
  background: #4e5f44;
  transform: scale(1.04);
}

/* 7. CARDS
   ============================================================ */
.main-card {
  background: var(--card);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(222, 216, 207, 0.65);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) { .main-card { padding: 40px } }

.sidebar-card {
  background: var(--card);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(222, 216, 207, 0.65);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: var(--transition-slow);
}

.sidebar-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

aside { align-self: start }

/* 8. BUTTONS — pill shaped
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 28px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 9999px;
  border: 2px solid transparent;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: #4e5f44;
  border-color: #4e5f44;
  transform: scale(1.04);
  box-shadow: 0 6px 24px -4px rgba(93, 112, 82, 0.3);
}

/* btn-gold → terracotta in organic theme */
.btn-gold {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: var(--shadow-float);
}

.btn-gold:hover {
  background: #a77347;
  border-color: #a77347;
  transform: scale(1.04);
  box-shadow: 0 8px 28px -6px rgba(193, 140, 93, 0.38);
}

.btn-small {
  font-size: 0.8rem;
  padding: 8px 20px;
}

.card-hover { transition: var(--transition-slow) }

.card-hover:hover {
  border-color: rgba(93, 112, 82, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

/* 9. TYPOGRAPHY COMPONENTS
   ============================================================ */
.section-divider {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  border-bottom: 2px solid var(--muted);
  padding-bottom: 10px;
  margin-bottom: 16px;
  margin-top: 0;
}

.sidebar-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
  margin-top: 0;
}

.affiliate-disclosure {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--muted-fg);
  margin: 12px 0 0;
}

.breadcrumb-nav,
.breadcrumbs {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: var(--muted-fg);
  margin-bottom: 16px;
}

.breadcrumb-nav a,
.breadcrumbs a {
  color: var(--muted-fg);
  transition: var(--transition);
}

.breadcrumb-nav a:hover,
.breadcrumbs a:hover { color: var(--primary) }

.breadcrumb-nav .sep,
.breadcrumbs .sep { margin: 0 6px; color: var(--border) }

.breadcrumb-nav .current { color: var(--fg); font-weight: 700 }

/* Badges */
.featured-label {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(93, 112, 82, 0.1);
  border-radius: 9999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.featured-label.badge {
  display: inline-block;
  background: rgba(93, 112, 82, 0.1);
  color: var(--primary);
  border-radius: 9999px;
  padding: 4px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  border: none;
  box-shadow: none;
}

.label-container { margin-bottom: 20px }

/* Page headings */
.hero-title,
.page-title {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
  margin-top: 0;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero-title, .page-title { font-size: 2.8rem }
}

.hero-author {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted-fg);
  margin-bottom: 28px;
}

.year-range-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin: 4px 0 0;
}

.prize-intro {
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  color: var(--fg);
  line-height: 1.8;
  margin: 1rem 0 1.5rem;
  max-width: 680px;
  border-left: 3px solid var(--secondary);
  padding-left: 18px;
  opacity: 0.88;
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--muted);
}

/* 10. TABLE
   ============================================================ */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.modern-table th {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 2px solid var(--muted);
  color: var(--muted-fg);
  text-transform: uppercase;
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.modern-table td {
  padding: 18px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--muted);
  color: var(--fg);
}

.modern-table tr:hover td {
  background: rgba(93, 112, 82, 0.04);
}

td.year-col {
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 600;
  color: var(--secondary);
  width: 80px;
}

.title-col {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.05rem;
}

.book-link {
  color: var(--heading);
  font-weight: 600;
  transition: var(--transition);
}

.book-link:hover { color: var(--secondary) }

.book-link-wrapper {
  display: block;
  color: inherit;
}

.author-name {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-fg);
  margin-top: 4px;
}

.context-col {
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

.no-award {
  color: var(--muted-fg);
  font-style: italic;
}

/* 11. DECADE NAVIGATION
   ============================================================ */
.decade-nav {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 28px;
  padding: 10px 16px;
  background: rgba(253, 252, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(222, 216, 207, 0.8);
  border-radius: 16px;
  position: sticky;
  top: 88px;
  z-index: 10;
  box-shadow: var(--shadow-card);
}

.decade-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  white-space: nowrap;
  padding-top: 6px;
}

.decade-links {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.decade-link {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-fg);
  padding: 4px 12px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  transition: var(--transition);
}

.decade-link:hover {
  background: rgba(93, 112, 82, 0.1);
  color: var(--primary);
}

tr:target { background-color: rgba(93, 112, 82, 0.06) }

/* 12. BOOK COVERS
   ============================================================ */
.book-cover-gen {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 14% 10% calc(14% + 24px);
  color: #fff;
  border-radius: 8px 12px 12px 8px;
  text-align: center;
  overflow: hidden;
  font-size: 0.95rem;
  box-shadow:
    inset 18px 0 20px -10px rgba(0,0,0,.55),
    inset -2px 0 6px -2px rgba(0,0,0,.18),
    5px 10px 30px rgba(44, 44, 36, 0.32);
  transition: var(--transition);
}

.book-cover-gen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.08) 0%, transparent 45%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}

.book-cover-gen::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.07);
  border-radius: 4px;
  pointer-events: none;
}

.book-cover-gen > * { position: relative; z-index: 2 }

.book-cover-gen.cover-poetry {
  box-shadow:
    inset 10px 0 14px -8px rgba(0,0,0,.1),
    3px 5px 18px rgba(44, 44, 36, 0.18);
  border: 1px solid rgba(0,0,0,.07);
}

.book-cover-gen.cover-poetry::after {
  border-color: rgba(0,0,0,.12);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.04);
}

.cover-band {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: var(--cover-band-bg, rgba(0,0,0,0.4));
  color: var(--cover-band-fg, rgba(255,255,255,0.9));
  font-family: 'Nunito', sans-serif;
  font-size: 0.6em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-top-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.cover-title {
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1em;
  color: #f1d38e;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.book-cover-gen.cover-poetry .cover-title {
  font-style: italic;
  color: var(--forest);
}

.cover-decoration {
  flex: 0 0 auto;
  height: 1px;
  width: 38%;
  background: rgba(255,255,255,.32);
}

.book-cover-gen.cover-poetry .cover-decoration { background: rgba(44,44,36,.22) }

.cover-author {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .85;
}

.book-large { width: 240px }
.book-medium { width: 140px; margin: 0 auto }
.book-sidebar { width: 100%; max-width: 220px; margin: 0 auto }

.featured-book-output .book-cover-gen,
.book-large .book-cover-gen { font-size: 1.05rem }
.book-sidebar .book-cover-gen { font-size: 0.85rem }
.book-medium .book-cover-gen { font-size: 0.68rem }

/* 13. FEATURED / HOME
   ============================================================ */
.featured-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
}

.featured-book-output {
  flex: 0 0 auto;
  width: 100%;
  max-width: 240px;
  perspective: 1000px;
}

@media (min-width: 768px) {
  .featured-container {
    flex-direction: row;
    align-items: center;
  }
  .featured-book-output {
    flex: 0 0 240px;
    width: 240px;
    max-width: none;
  }
}

/* 14. CONTEXT BOX
   ============================================================ */
.context-box {
  margin-top: 36px;
  padding: 28px;
  background: var(--muted);
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.quote-mark {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 7rem;
  color: rgba(93, 112, 82, 0.1);
  font-family: 'Oswald', system-ui, sans-serif;
  line-height: 1;
}

.context-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 10px;
  margin-top: 0;
}

/* 15. SIDEBAR NAVIGATION
   ============================================================ */
aside .nav-link,
.sidebar-nav-item {
  display: block;
  padding: 6px 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg) !important;
  border-radius: 8px;
  transition: var(--transition);
}

aside .nav-link:hover,
.sidebar-nav-item:hover {
  color: var(--primary) !important;
  background: rgba(93, 112, 82, 0.08);
  padding-left: 14px;
}

.detail-item {
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  color: var(--fg);
  border-bottom: 1px solid var(--muted);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.detail-item strong {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  margin-bottom: 2px;
}

/* 16. CURATOR / QUOTE BOX
   ============================================================ */
.curator-box .curator-title {
  font-family: 'Nunito', sans-serif;
  color: var(--muted-fg);
  margin-top: 0;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.curator-box .curator-text {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 12px;
  color: var(--fg);
}

.curator-box .curator-attribution {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--secondary);
  text-align: right;
}

.bookshop-widget-card {
  padding: 0 !important;
  overflow: hidden;
}

.bookshop-widget-card .curator-title {
  font-family: 'Nunito', sans-serif;
  color: var(--muted-fg);
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.bookshop-widget-card iframe,
.bookshop-widget-card > div,
.bookshop-widget-card > script + * {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* 17. SEARCH RESULTS
   ============================================================ */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.search-result-item {
  justify-content: space-between;
  height: 100%;
}

.result-title {
  font-family: 'Oswald', system-ui, sans-serif;
  margin: 10px 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}

.result-meta { padding: 10px 0 0 }

.author-subtext {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 10px;
}

.award-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

.winner-year {
  margin-top: auto;
  border-top: 1px solid var(--muted);
  padding-top: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 60px 0;
}

.empty-text {
  font-size: 1rem;
  color: var(--muted-fg);
  margin-bottom: 28px;
}

/* 18. CONTENT BODY
   ============================================================ */
.content-body {
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--fg);
}

.content-body h3 {
  font-family: 'Oswald', system-ui, sans-serif;
  color: var(--heading);
  margin-top: 36px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* 19. FOOTER — moss green with rounded top
   ============================================================ */
.footer-card {
  background-color: var(--primary);
  color: var(--primary-fg);
  margin-top: 48px;
  border-radius: 40px 40px 0 0;
  overflow: hidden;
  position: relative;
}

.footer-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 5% 0;
}

.footer-ornament-line {
  flex: 1;
  height: 1px;
  background: rgba(243, 244, 241, 0.2);
  display: block;
}

.footer-ornament-diamond {
  font-family: 'Nunito', sans-serif;
  color: rgba(243, 244, 241, 0.4);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  white-space: nowrap;
}

/* Override wrapper inside footer */
.footer-card .wrapper.footer-grid {
  max-width: 100%;
  padding: 36px 5% 44px;
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(5, 1fr) }
}

.footer-heading-main {
  font-family: 'Oswald', system-ui, sans-serif;
  color: var(--primary-fg);
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-category {
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(243, 244, 241, 0.55);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(243, 244, 241, 0.15);
  padding-bottom: 8px;
}

.footer-description {
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(243, 244, 241, 0.8);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  line-height: 2.4;
}

.footer-link {
  color: rgba(243, 244, 241, 0.72);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-fg);
  padding-left: 6px;
}

.footer-search {
  border-top: 1px solid rgba(243, 244, 241, 0.15);
  padding: 28px 5%;
  text-align: center;
}

.footer-search-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(243, 244, 241, 0.5);
  margin: 0 0 14px;
}

.footer-search iframe,
.footer-search > div,
.footer-search > script + * {
  max-width: 560px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 244, 241, 0.15);
  padding: 20px 5%;
  text-align: center;
}

.footer-copy {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: rgba(243, 244, 241, 0.5);
  margin: 0;
}

.footer-bottom-link {
  color: rgba(243, 244, 241, 0.75);
  margin-left: 12px;
  transition: var(--transition);
}

.footer-bottom-link:hover { color: var(--primary-fg) }

/* 20. MOBILE HEADER
   ============================================================ */
@media (max-width: 639px) {
  .site-header { padding: 8px 12px }

  .header-inner {
    padding: 0 8px 0 12px;
    height: 52px;
  }

  .logo-text { font-size: 1.05rem }
  .logo-icon { width: 30px; height: 30px }
  .logo-icon svg { width: 23px; height: 23px }

  .header-left .nav-link { font-size: 0.82rem; padding: 5px 10px }
}

/* 21. TABLET LAYOUT (768px – 1023px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* 2-column grid: narrow sidebar + fluid main area.
     The footer reuses .wrapper as .footer-grid — exclude it, or these
     page-layout rules override the footer's own 3-column tablet grid. */
  .wrapper:not(.single-col):not(.footer-grid) {
    grid-template-columns: 220px 1fr;
  }

  /* Third child (right sidebar) drops to its own full-width row */
  .wrapper:not(.single-col):not(.footer-grid) > *:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    align-items: start;
  }

  .wrapper:not(.single-col):not(.footer-grid) > *:nth-child(3) > .sidebar-card {
    margin-bottom: 0;
  }

  /* Featured container stays side-by-side on tablet */
  .featured-container {
    flex-direction: row;
    align-items: center;
  }

  /* Search results: slightly smaller cards on tablet */
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
