/*
 * Poetry of Life — Child Theme Shared Stylesheet
 * Version: 1.0
 * Description: All shared variables, resets, typography, header, footer,
 *              and utility classes used across all page templates.
 *
 * Load order: enqueue AFTER soledad parent theme styles.
 */

/* ============================================================
   0. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Brand colours derived from logo */
  --pol-brown:        #7A5C1E;   /* Primary — warm tree bark brown */
  --pol-brown-light:  #C4902A;   /* Golden accent */
  --pol-green:        #6AAF35;   /* Leaf green from logo ring */
  --pol-green-dark:   #4D8A1F;   /* Deeper green for hover states */

  /* Backgrounds */
  --pol-parchment:    #FAF7F2;   /* Page background — aged paper */
  --pol-parchment-2:  #F3EDE3;   /* Card / section alternate bg */
  --pol-parchment-3:  #EDE4D4;   /* Darker parchment for borders */
  --pol-white:        #FFFFFF;

  /* Text */
  --pol-ink:          #2A2118;   /* Near-black with warm undertone */
  --pol-ink-2:        #5C4A2A;   /* Secondary text — warm mid-brown */
  --pol-ink-3:        #9C8060;   /* Tertiary / meta text */
  --pol-ink-light:    #BEA882;   /* Disabled / placeholder */

  /* Category colour accents */
  --pol-love:         #C0392B;
  --pol-life:         #2980B9;
  --pol-sad:          #6C5CE7;
  --pol-friendship:   #27AE60;

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Lora', Georgia, serif;
  --font-ui:          'Inter', system-ui, sans-serif;

  /* Type scale */
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-md:    1.125rem;  /* 18px */
  --text-lg:    1.25rem;   /* 20px */
  --text-xl:    1.5rem;    /* 24px */
  --text-2xl:   1.875rem;  /* 30px */
  --text-3xl:   2.25rem;   /* 36px */
  --text-4xl:   3rem;      /* 48px */
  --text-5xl:   3.75rem;   /* 60px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max:  1140px;
  --content-max:    720px;
  --sidebar-width:  300px;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      16px;
  --radius-pill:    999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(42,33,24,0.08);
  --shadow-md:  0 4px 16px rgba(42,33,24,0.10);
  --shadow-lg:  0 8px 32px rgba(42,33,24,0.14);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --duration:   200ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--pol-parchment);
  color: var(--pol-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--pol-brown);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--pol-green-dark); }
a:focus-visible {
  outline: 2px solid var(--pol-green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--pol-brown);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

p { margin-top: 0; margin-bottom: var(--space-4); }

ul, ol { padding-left: var(--space-6); }

/* ============================================================
   3. LAYOUT CONTAINERS
   ============================================================ */
.pol-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.pol-content-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-12);
  align-items: start;
}

.pol-content-wrap.pol-no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--content-max);
  margin-inline: auto;
}

@media (max-width: 960px) {
  .pol-content-wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   4. HEADER
   ============================================================ */
.pol-header {
  background: var(--pol-white);
  border-bottom: 1px solid var(--pol-parchment-3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.pol-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.pol-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.pol-logo img {
  height: 52px;
  width: auto;
}

.pol-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.pol-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--pol-brown);
  letter-spacing: 0.02em;
}

.pol-logo-tagline {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--pol-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Primary Nav */
.pol-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pol-nav a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--pol-ink-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.pol-nav a:hover,
.pol-nav a.current {
  background: var(--pol-parchment-2);
  color: var(--pol-brown);
}

/* Category nav colours */
.pol-nav a.cat-love:hover   { background: #FDECEA; color: var(--pol-love); }
.pol-nav a.cat-life:hover   { background: #EAF4FD; color: var(--pol-life); }
.pol-nav a.cat-sad:hover    { background: #F0EEFF; color: var(--pol-sad); }
.pol-nav a.cat-friend:hover { background: #E9F9EF; color: var(--pol-friendship); }

/* Header actions */
.pol-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pol-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pol-ink-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  transition: color var(--duration) var(--ease);
}
.pol-search-toggle:hover { color: var(--pol-brown); }

/* Mobile hamburger */
.pol-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--pol-ink-2);
}

@media (max-width: 768px) {
  .pol-hamburger { display: flex; }
  .pol-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--pol-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    border-bottom: 1px solid var(--pol-parchment-3);
    box-shadow: var(--shadow-md);
    gap: var(--space-2);
  }
  .pol-nav.open { display: flex; }
  .pol-nav a { padding: var(--space-3) var(--space-4); }
  .pol-logo-text { display: none; }
}

/* Search bar (collapsible) */
.pol-search-bar {
  background: var(--pol-parchment);
  border-top: 1px solid var(--pol-parchment-3);
  border-bottom: 1px solid var(--pol-parchment-3);
  padding: var(--space-4) 0;
  display: none;
}
.pol-search-bar.open { display: block; }

.pol-search-form {
  display: flex;
  gap: var(--space-3);
  max-width: 600px;
  margin-inline: auto;
}

.pol-search-input {
  flex: 1;
  border: 2px solid var(--pol-parchment-3);
  background: var(--pol-white);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--pol-ink);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}
.pol-search-input:focus { border-color: var(--pol-green); }
.pol-search-input::placeholder { color: var(--pol-ink-light); }

.pol-search-btn {
  background: var(--pol-brown);
  color: var(--pol-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--duration) var(--ease);
}
.pol-search-btn:hover { background: var(--pol-brown-light); }

/* ============================================================
   5. FOOTER
   ============================================================ */
.pol-footer {
  background: var(--pol-ink);
  color: var(--pol-ink-light);
  margin-top: var(--space-20);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.pol-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  .pol-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.pol-footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-4);
  filter: brightness(1.2);
}

.pol-footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--pol-ink-3);
  margin-bottom: var(--space-6);
}

.pol-footer-social {
  display: flex;
  gap: var(--space-3);
}

.pol-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07);
  color: var(--pol-ink-3);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.pol-footer-social a:hover {
  background: var(--pol-green);
  color: var(--pol-white);
}

.pol-footer-col h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pol-white);
  margin-bottom: var(--space-5);
}

.pol-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pol-footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--pol-ink-3);
  transition: color var(--duration) var(--ease);
}
.pol-footer-col ul li a:hover { color: var(--pol-green); }

.pol-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--pol-ink-3);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============================================================
   6. BREADCRUMB
   ============================================================ */
.pol-breadcrumb {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--pol-ink-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
  letter-spacing: 0.03em;
}

.pol-breadcrumb a { color: var(--pol-ink-3); }
.pol-breadcrumb a:hover { color: var(--pol-brown); }
.pol-breadcrumb-sep { color: var(--pol-ink-light); }
.pol-breadcrumb-current { color: var(--pol-ink-2); }

/* ============================================================
   7. POEM CARD (used on homepage, category, search)
   ============================================================ */
.pol-card {
  background: var(--pol-white);
  border: 1px solid var(--pol-parchment-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}
.pol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pol-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pol-parchment-2);
}

.pol-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.pol-card:hover .pol-card-thumb img { transform: scale(1.04); }

.pol-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pol-card-cat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.pol-card-cat.love     { background: #FDECEA; color: var(--pol-love); }
.pol-card-cat.life     { background: #EAF4FD; color: var(--pol-life); }
.pol-card-cat.sad      { background: #F0EEFF; color: var(--pol-sad); }
.pol-card-cat.friendship { background: #E9F9EF; color: var(--pol-friendship); }

.pol-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--pol-brown);
  margin-bottom: var(--space-3);
}
.pol-card-title a { color: inherit; }
.pol-card-title a:hover { color: var(--pol-green-dark); }

.pol-card-excerpt {
  font-size: var(--text-sm);
  color: var(--pol-ink-2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-5);

  /* Truncate to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pol-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--pol-ink-3);
  margin-top: auto;
}

.pol-read-link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pol-green-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  text-decoration: none;
}
.pol-read-link:hover { color: var(--pol-brown); }
.pol-read-link svg { transition: transform var(--duration) var(--ease); }
.pol-read-link:hover svg { transform: translateX(4px); }

/* ---- No-image card variant --------------------------------- */
/*
 * .pol-card--no-image  — replaces the thumbnail with a styled
 * text panel showing the first 2 poem lines.
 * Applied automatically by PHP when no featured image exists.
 */
.pol-card--no-image .pol-card-verse-preview {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-8);
  position: relative;
  overflow: hidden;
}

/* Per-category background tints */
.pol-card--no-image.cat-love   .pol-card-verse-preview { background: linear-gradient(135deg, #FFF5F5, #FDECEA); }
.pol-card--no-image.cat-life   .pol-card-verse-preview { background: linear-gradient(135deg, #EFF8FF, #EAF4FD); }
.pol-card--no-image.cat-sad    .pol-card-verse-preview { background: linear-gradient(135deg, #F8F5FF, #F0EEFF); }
.pol-card--no-image.cat-friendship .pol-card-verse-preview { background: linear-gradient(135deg, #EFFFEF, #E9F9EF); }

/* Decorative large quote mark */
.pol-card-verse-preview::before {
  content: '"';
  position: absolute;
  top: -16px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
}
.pol-card--no-image.cat-love   .pol-card-verse-preview::before { color: var(--pol-love); }
.pol-card--no-image.cat-life   .pol-card-verse-preview::before { color: var(--pol-life); }
.pol-card--no-image.cat-sad    .pol-card-verse-preview::before { color: var(--pol-sad); }
.pol-card--no-image.cat-friendship .pol-card-verse-preview::before { color: var(--pol-friendship); }

.pol-card-verse-line {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--pol-ink-2);
  position: relative;
  z-index: 1;

  /* Clamp to one line per entry */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- No-image search result thumb fallback ----------------- */
/*
 * .pol-result-thumb--no-image  — coloured square with
 * the first letter of the category instead of a photo.
 */
.pol-result-thumb--no-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--pol-white);
  opacity: 0.85;
}
.pol-result-thumb--no-image.love       { background: var(--pol-love); }
.pol-result-thumb--no-image.life       { background: var(--pol-life); }
.pol-result-thumb--no-image.sad        { background: var(--pol-sad); }
.pol-result-thumb--no-image.friendship { background: var(--pol-friendship); }

/* ---- No-image sidebar list thumb fallback ----------------- */
.pol-list-thumb--no-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--pol-white);
  opacity: 0.85;
}
.pol-list-thumb--no-image.love       { background: var(--pol-love); }
.pol-list-thumb--no-image.life       { background: var(--pol-life); }
.pol-list-thumb--no-image.sad        { background: var(--pol-sad); }
.pol-list-thumb--no-image.friendship { background: var(--pol-friendship); }

/* ============================================================
   8. POEM LIST ITEM (compact, sidebar & small list)
   ============================================================ */
.pol-list-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--pol-parchment-3);
}
.pol-list-item:last-child { border-bottom: none; }

.pol-list-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pol-parchment-2);
}
.pol-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pol-list-info { flex: 1; min-width: 0; }

.pol-list-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--pol-brown);
  line-height: 1.3;
  margin-bottom: var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pol-list-title a { color: inherit; }
.pol-list-title a:hover { color: var(--pol-green-dark); }

.pol-list-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--pol-ink-3);
}

/* ============================================================
   9. SIDEBAR
   ============================================================ */
.pol-sidebar {
  position: sticky;
  top: 88px;
}

.pol-sidebar-widget {
  background: var(--pol-white);
  border: 1px solid var(--pol-parchment-3);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.pol-widget-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--pol-brown);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--pol-parchment-3);
  position: relative;
}

.pol-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--pol-green);
}

/* Category widget pills */
.pol-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.pol-cat-pills li a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--pol-parchment-2);
  color: var(--pol-ink-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.pol-cat-pills li a:hover { background: var(--pol-green); color: var(--pol-white); }

/* ============================================================
   10. PAGINATION
   ============================================================ */
.pol-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-10) 0;
  font-family: var(--font-ui);
}

.pol-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--pol-ink-2);
  background: var(--pol-white);
  border: 1px solid var(--pol-parchment-3);
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.pol-page-btn:hover {
  background: var(--pol-parchment-2);
  color: var(--pol-brown);
  border-color: var(--pol-brown-light);
}

.pol-page-btn.current {
  background: var(--pol-brown);
  color: var(--pol-white);
  border-color: var(--pol-brown);
}

.pol-page-btn.wide {
  width: auto;
  padding-inline: var(--space-4);
}

/* ============================================================
   11. SECTION DIVIDER (signature ink stroke element)
   ============================================================ */
.pol-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-12) 0;
}

.pol-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pol-parchment-3), transparent);
}

.pol-divider-motif {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

/* ============================================================
   12. SECTION HEADINGS
   ============================================================ */
.pol-section-head {
  margin-bottom: var(--space-8);
}

.pol-section-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pol-green-dark);
  margin-bottom: var(--space-2);
  display: block;
}

.pol-section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--pol-brown);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

@media (max-width: 640px) {
  .pol-section-title { font-size: var(--text-2xl); }
}

/* ============================================================
   13. BUTTONS
   ============================================================ */
.pol-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  line-height: 1;
}

.pol-btn-primary {
  background: var(--pol-brown);
  color: var(--pol-white);
  border-color: var(--pol-brown);
}
.pol-btn-primary:hover {
  background: var(--pol-brown-light);
  color: var(--pol-white);
  border-color: var(--pol-brown-light);
}

.pol-btn-outline {
  background: transparent;
  color: var(--pol-brown);
  border-color: var(--pol-brown);
}
.pol-btn-outline:hover {
  background: var(--pol-brown);
  color: var(--pol-white);
}

.pol-btn-green {
  background: var(--pol-green);
  color: var(--pol-white);
  border-color: var(--pol-green);
}
.pol-btn-green:hover {
  background: var(--pol-green-dark);
  border-color: var(--pol-green-dark);
  color: var(--pol-white);
}

/* ============================================================
   14. GRID LAYOUTS
   ============================================================ */
.pol-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pol-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 960px) {
  .pol-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pol-grid-3, .pol-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   15. UTILITY CLASSES
   ============================================================ */
.pol-text-center { text-align: center; }
.pol-mb-4  { margin-bottom: var(--space-4); }
.pol-mb-8  { margin-bottom: var(--space-8); }
.pol-mb-12 { margin-bottom: var(--space-12); }
.pol-mt-8  { margin-top: var(--space-8); }
.pol-mt-12 { margin-top: var(--space-12); }

/* ============================================================
   16. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   17. SOLEDAD COMPATIBILITY & OVERRIDES
   Our header.php and footer.php replace Soledad's entirely.
   These rules hide any Soledad header/footer markup that
   might still render, and reset container interference.
   ============================================================ */

/* Body background */
body,
body.penci-soledad {
  background-color: var(--pol-parchment) !important;
}

/* Hide Soledad's own header and footer if they render */
#header,
.penci-header-wrap,
#penci-header,
.penci-top-bar-wrap,
#footer,
.penci-footer,
#penci-footer {
  display: none !important;
}

/* Reset Soledad's main content wrapper padding */
#main,
.site-main,
.penci-content-wrap,
#content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Our container handles its own max-width */
body .pol-container {
  max-width: var(--container-max);
  width: 100%;
  padding-inline: var(--space-6);
  margin-inline: auto;
  box-sizing: border-box;
}

/* ============================================================
   18. HERO (Homepage)
   Full-bleed dark section. We use a negative-margin trick to
   break out of whatever container Soledad puts us in.
   ============================================================ */
.pol-hero {
  background: var(--pol-ink) !important;
  position: relative;
  overflow: hidden;
  padding: var(--space-20) var(--space-6);
  min-height: 480px;
  display: flex;
  align-items: center;
  /* Break out of Soledad container */
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.pol-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(106,175,53,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(122,92,30,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.pol-hero-ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    0deg,
    var(--pol-parchment) 0px,
    var(--pol-parchment) 1px,
    transparent 1px,
    transparent 28px
  );
}

.pol-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--space-6);
}

@media (max-width: 768px) {
  .pol-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pol-hero-poem { display: none; }
}

.pol-hero-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pol-green);
  margin-bottom: var(--space-4);
  display: block;
}

.pol-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  color: var(--pol-white);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.pol-hero-title em {
  font-style: italic;
  color: var(--pol-brown-light);
}

.pol-hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

@media (max-width: 768px) {
  .pol-hero-sub { margin-inline: auto; }
}

.pol-hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .pol-hero-actions { justify-content: center; }
}

.pol-btn-hero-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--pol-white);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.pol-btn-hero-ghost:hover {
  background: rgba(255,255,255,0.15);
  color: var(--pol-white);
  border-color: rgba(255,255,255,0.4);
}

/* Poem verse panel inside hero */
.pol-hero-poem {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
  backdrop-filter: blur(8px);
  position: relative;
}

.pol-hero-poem::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: var(--space-8);
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--pol-green);
  opacity: 0.3;
  line-height: 1;
  pointer-events: none;
}

.pol-hero-verse {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pol-hero-verse .pol-poem-line {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-md);
  color: rgba(255,255,255,0.85);
  line-height: 1.85;
  display: block;
}

.pol-hero-verse-attr {
  margin-top: var(--space-5);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pol-green);
}

.pol-hero-verse-attr a {
  color: var(--pol-green);
  font-weight: 600;
}
.pol-hero-verse-attr a:hover { color: var(--pol-brown-light); }

/* ============================================================
   19. CATEGORY CARDS (Homepage)
   ============================================================ */
.pol-cats-section {
  padding: var(--space-12) 0;
}

.pol-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 768px) { .pol-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .pol-cat-grid { grid-template-columns: 1fr 1fr; } }

.pol-cat-card {
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.pol-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pol-cat-card.love       { background: linear-gradient(135deg, #FFF5F5, #FDECEA); }
.pol-cat-card.life       { background: linear-gradient(135deg, #EFF8FF, #EAF4FD); }
.pol-cat-card.sad        { background: linear-gradient(135deg, #F5F3FF, #F0EEFF); }
.pol-cat-card.friendship { background: linear-gradient(135deg, #EFFFEF, #E9F9EF); }

.pol-cat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  display: block;
  line-height: 1;
}

.pol-cat-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
  display: block;
}

.pol-cat-card.love       .pol-cat-name { color: var(--pol-love); }
.pol-cat-card.life       .pol-cat-name { color: var(--pol-life); }
.pol-cat-card.sad        .pol-cat-name { color: var(--pol-sad); }
.pol-cat-card.friendship .pol-cat-name { color: var(--pol-friendship); }

.pol-cat-count {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--pol-ink-3);
  letter-spacing: 0.06em;
}

/* ============================================================
   20. FEATURED POEM (Homepage)
   ============================================================ */
.pol-featured-section {
  padding: var(--space-12) 0;
  background: var(--pol-parchment-2);
  /* Full bleed background */
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  padding-left:  calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.pol-featured-card {
  background: var(--pol-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  box-shadow: var(--shadow-md);
  max-width: var(--container-max);
  margin-inline: auto;
}

@media (max-width: 768px) {
  .pol-featured-card { grid-template-columns: 1fr; }
}

.pol-featured-image {
  background: var(--pol-parchment-3);
  overflow: hidden;
}
.pol-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.pol-featured-body {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pol-featured-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pol-green-dark);
  background: var(--pol-parchment-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.pol-featured-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--pol-brown);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.pol-featured-title a {
  color: inherit;
  text-decoration: none;
}
.pol-featured-title a:hover { color: var(--pol-green-dark); }

.pol-featured-verse {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-md);
  line-height: 1.85;
  color: var(--pol-ink-2);
  border-left: 3px solid var(--pol-green);
  padding-left: var(--space-5);
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   21. LATEST POEMS (Homepage)
   ============================================================ */
.pol-latest-section { padding: var(--space-16) 0; }

/* ============================================================
   22. ABOUT STRIP (Homepage)
   ============================================================ */
.pol-about-strip {
  background: var(--pol-white);
  border: 1px solid var(--pol-parchment-3);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-16);
  margin-top: var(--space-4);
}

@media (max-width: 640px) {
  .pol-about-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pol-about-strip-photo { margin-inline: auto; }
}

.pol-about-strip-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--pol-green);
  flex-shrink: 0;
  background: var(--pol-parchment-2);
}
.pol-about-strip-photo img { width: 100%; height: 100%; object-fit: cover; }

.pol-about-strip-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--pol-brown);
  margin-bottom: var(--space-1);
}

.pol-about-strip-bio {
  font-size: var(--text-sm);
  color: var(--pol-ink-2);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* ============================================================
   23. CATEGORY BANNER (Category page)
   ============================================================ */
.pol-cat-banner {
  padding: var(--space-10) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--pol-parchment-3);
  margin-bottom: var(--space-8);
}

.pol-cat-banner.love       { background: linear-gradient(135deg, #FFF5F5, #FDECEA); border-bottom-color: var(--pol-love); }
.pol-cat-banner.life       { background: linear-gradient(135deg, #EFF8FF, #EAF4FD); border-bottom-color: var(--pol-life); }
.pol-cat-banner.sad        { background: linear-gradient(135deg, #F8F5FF, #F0EEFF); border-bottom-color: var(--pol-sad); }
.pol-cat-banner.friendship { background: linear-gradient(135deg, #EFFFEF, #E9F9EF); border-bottom-color: var(--pol-friendship); }

/* Full bleed */
.pol-cat-banner {
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  padding-left:  calc(50vw - 50% + var(--space-6));
  padding-right: calc(50vw - 50% + var(--space-6));
}

.pol-cat-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .pol-cat-banner-inner { grid-template-columns: 1fr; }
  .pol-cat-banner-quote { display: none; }
}

.pol-cat-icon-lg {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.pol-cat-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.pol-cat-banner.love       .pol-cat-banner-title { color: var(--pol-love); }
.pol-cat-banner.life       .pol-cat-banner-title { color: var(--pol-life); }
.pol-cat-banner.sad        .pol-cat-banner-title { color: var(--pol-sad); }
.pol-cat-banner.friendship .pol-cat-banner-title { color: var(--pol-friendship); }

.pol-cat-desc-wrap {
  margin-bottom: var(--space-5);
}

/* The paragraph itself gets clamped */
.pol-cat-banner-desc {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--pol-ink-2);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-2);
}

/* Clamped state — 3 lines visible */
.pol-cat-banner-desc.pol-cat-desc-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Fallback for browsers without -webkit-line-clamp */
  max-height: calc( 1.7 * 3 * var(--text-md) );
}

/* Expanded state — show all */
.pol-cat-banner-desc.pol-cat-desc-expanded {
  display: block;
  overflow: visible;
  max-height: none;
  -webkit-line-clamp: unset;
}

.pol-cat-desc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pol-brown);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  transition: color var(--duration) var(--ease);
}
.pol-cat-desc-toggle:hover { color: var(--pol-green-dark); }
.pol-cat-desc-toggle svg {
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}
.pol-cat-desc-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.pol-cat-count-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--pol-ink-3);
}

.pol-cat-banner-quote {
  background: var(--pol-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  max-width: 260px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  flex-shrink: 0;
}

.pol-cat-banner-quote blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--pol-ink-2);
  line-height: 1.75;
  margin: 0 0 var(--space-3);
  display: flex;
  flex-direction: column;
}

.pol-cat-banner-quote cite {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--pol-ink-3);
  font-style: normal;
}

/* ============================================================
   24. ARCHIVE LAYOUT (Category page)
   ============================================================ */
.pol-archive { padding: var(--space-4) 0 var(--space-20); }

.pol-archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 960px) {
  .pol-archive-layout { grid-template-columns: 1fr; }
  .pol-archive-sidebar { display: none; }
}

/* Sort bar */
.pol-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.pol-sort-count {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--pol-ink-3);
}

.pol-sort-options {
  display: flex;
  gap: var(--space-2);
}

.pol-sort-btn {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--pol-parchment-3);
  background: var(--pol-white);
  color: var(--pol-ink-2);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.pol-sort-btn:hover,
.pol-sort-btn.active {
  background: var(--pol-brown);
  color: var(--pol-white);
  border-color: var(--pol-brown);
}

/* Archive grid — 2 columns */
.pol-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .pol-archive-grid { grid-template-columns: 1fr; }
}

/* Archive sidebar */
.pol-archive-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.pol-other-cats-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pol-other-cat-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--pol-parchment-2);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--pol-ink-2);
  transition: all var(--duration) var(--ease);
}
.pol-other-cat-link:hover {
  background: var(--pol-parchment-3);
  color: var(--pol-brown);
}

/* ---- Pagination ---- */
/* paginate_links with type='plain' outputs:
   <a class="page-numbers">  for regular pages
   <span class="page-numbers current"> for current page
   <span class="page-numbers dots"> for ellipsis
   We style all of those here. */

.pol-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  padding: var(--space-8) 0;
  flex-wrap: wrap;
}

.pol-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--pol-ink-2);
  background: var(--pol-white);
  border: 1px solid var(--pol-parchment-3);
  text-decoration: none;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.pol-pagination a.page-numbers:hover {
  background: var(--pol-parchment-2);
  color: var(--pol-brown);
  border-color: var(--pol-brown-light);
}

.pol-pagination .page-numbers.current {
  background: var(--pol-brown);
  color: var(--pol-white);
  border-color: var(--pol-brown);
}

.pol-pagination .page-numbers.dots {
  background: none;
  border: none;
  color: var(--pol-ink-3);
  min-width: auto;
  padding: 0 var(--space-1);
}

/* ============================================================
   25. SINGLE POEM PAGE
   ============================================================ */
.pol-single-page { padding-top: var(--space-6); padding-bottom: var(--space-20); }

.pol-poem-header {
  max-width: var(--content-max);
  margin: 0 auto var(--space-8);
  text-align: center;
}

.pol-poem-cat-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.pol-poem-cat-label.life       { background: #EAF4FD; color: var(--pol-life); }
.pol-poem-cat-label.love       { background: #FDECEA; color: var(--pol-love); }
.pol-poem-cat-label.sad        { background: #F0EEFF; color: var(--pol-sad); }
.pol-poem-cat-label.friendship { background: #E9F9EF; color: var(--pol-friendship); }

.pol-poem-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--pol-brown);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.pol-poem-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--pol-ink-3);
  flex-wrap: wrap;
}

.pol-poem-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--pol-ink-2);
  font-weight: 500;
}

.pol-poem-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.pol-poem-cover {
  max-width: 800px;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pol-poem-cover img { width: 100%; height: auto; display: block; }

/* Prose intro — the poet's note before the poem.
   Sits between the cover image and the poem stage.
   Warm, italic, left-bordered — distinct from the poem. */
.pol-poem-intro {
  max-width: var(--content-max);
  margin: 0 auto var(--space-8);
}

.pol-poem-intro p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-md);
  line-height: 1.85;
  color: var(--pol-ink-2);
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  border-left: 4px solid var(--pol-parchment-3);
}

.pol-poem-intro p:last-child { margin-bottom: 0; }

/* Legacy — keep for any existing references */
.pol-poem-context {
  max-width: var(--content-max);
  margin: 0 auto var(--space-8);
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--pol-ink-2);
  font-style: italic;
  border-left: 4px solid var(--pol-parchment-3);
  padding-left: var(--space-6);
}

/* THE POEM STAGE — signature element */
.pol-poem-stage {
  max-width: 600px;
  margin: 0 auto var(--space-12);
  background: var(--pol-white);
  border: 1px solid var(--pol-parchment-3);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-10);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pol-poem-stage::before,
.pol-poem-stage::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--pol-parchment-3);
  border-style: solid;
}
.pol-poem-stage::before { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.pol-poem-stage::after  { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }

@media (max-width: 640px) {
  .pol-poem-stage { padding: var(--space-8) var(--space-6); }
}

.pol-poem-open-quote {
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--pol-green);
  opacity: 0.3;
  margin-bottom: var(--space-4);
  pointer-events: none;
  user-select: none;
}

/* Poem text — tight lines within stanza, gap between stanzas */
.pol-poem-body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1;
  color: var(--pol-ink);
}

.pol-poem-stanza {
  margin-bottom: var(--space-8);
}
.pol-poem-stanza:last-child { margin-bottom: 0; }

.pol-poem-line {
  display: block;
  line-height: 1.75;
}

/* Share bar */
.pol-share-bar {
  max-width: var(--content-max);
  margin: 0 auto var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.pol-share-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pol-ink-3);
}

.pol-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}
.pol-share-btn:hover { opacity: 0.85; color: var(--pol-white); }

.pol-share-fb  { background: #1877F2; color: white; }
.pol-share-tw  { background: #000; color: white; }
.pol-share-wa  { background: #25D366; color: white; }

.pol-copy-link {
  background: var(--pol-parchment-2);
  color: var(--pol-ink-2);
  border: 1px solid var(--pol-parchment-3);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  transition: background var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.pol-copy-link:hover { background: var(--pol-parchment-3); }

/* Narrow divider for single page */
.pol-divider--narrow {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* Prev/Next nav */
.pol-post-nav {
  max-width: var(--content-max);
  margin: 0 auto var(--space-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) { .pol-post-nav { grid-template-columns: 1fr; } }

.pol-post-nav-link {
  background: var(--pol-white);
  border: 1px solid var(--pol-parchment-3);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.pol-post-nav-link:hover {
  border-color: var(--pol-brown-light);
  box-shadow: var(--shadow-sm);
}
.pol-post-nav-link.next { text-align: right; }

.pol-post-nav-dir {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pol-ink-3);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.pol-post-nav-link.next .pol-post-nav-dir { justify-content: flex-end; }

.pol-post-nav-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--pol-brown);
  line-height: 1.3;
}

/* Related poems */
.pol-related {
  max-width: var(--content-max);
  margin: 0 auto var(--space-12);
}

.pol-related-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--pol-brown);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--pol-parchment-3);
  position: relative;
}
.pol-related-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--pol-green);
}

.pol-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 640px) { .pol-related-grid { grid-template-columns: 1fr; } }

/* Comments */
.pol-comments {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ============================================================
   26. SEARCH PAGE
   ============================================================ */
.pol-search-page { padding: var(--space-4) 0 var(--space-20); }

.pol-search-header {
  background: var(--pol-parchment-2);
  border-bottom: 1px solid var(--pol-parchment-3);
  padding: var(--space-10) 0;
  margin-bottom: var(--space-8);
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  padding-left:  calc(50vw - 50% + var(--space-6));
  padding-right: calc(50vw - 50% + var(--space-6));
}

.pol-search-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pol-ink-3);
  display: block;
  margin-bottom: var(--space-3);
}

.pol-search-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--pol-brown);
  margin-bottom: var(--space-6);
}

.pol-search-heading em { color: var(--pol-green-dark); font-style: italic; }

.pol-search-redo {
  display: flex;
  gap: var(--space-3);
  max-width: 560px;
}
@media (max-width: 480px) { .pol-search-redo { flex-direction: column; } }

.pol-search-redo input {
  flex: 1;
  border: 2px solid var(--pol-parchment-3);
  background: var(--pol-white);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--pol-ink);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}
.pol-search-redo input:focus { border-color: var(--pol-green); }

.pol-search-redo button {
  background: var(--pol-brown);
  color: var(--pol-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.pol-search-redo button:hover { background: var(--pol-brown-light); }

.pol-filter-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); flex-wrap: wrap; }

.pol-filter-tab {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--pol-parchment-3);
  background: var(--pol-white);
  color: var(--pol-ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.pol-filter-tab:hover { border-color: var(--pol-brown-light); color: var(--pol-brown); }
.pol-filter-tab.active { background: var(--pol-brown); color: var(--pol-white); border-color: var(--pol-brown); }
.pol-filter-tab-count { font-size: var(--text-xs); opacity: 0.7; }

.pol-results-meta { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--pol-ink-3); margin-bottom: var(--space-6); }
.pol-results-meta strong { color: var(--pol-ink-2); }

.pol-result-list { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }

.pol-result-item {
  background: var(--pol-white);
  border: 1px solid var(--pol-parchment-3);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-5);
  align-items: center;
  text-decoration: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.pol-result-item:hover { border-color: var(--pol-brown-light); box-shadow: var(--shadow-md); transform: translateX(4px); }

@media (max-width: 480px) { .pol-result-item { grid-template-columns: 1fr; } }

.pol-result-thumb { width: 80px; height: 80px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; background: var(--pol-parchment-2); }
.pol-result-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pol-result-cat {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  display: inline-block;
}
.pol-result-cat.love       { background: #FDECEA; color: var(--pol-love); }
.pol-result-cat.life       { background: #EAF4FD; color: var(--pol-life); }
.pol-result-cat.sad        { background: #F0EEFF; color: var(--pol-sad); }
.pol-result-cat.friendship { background: #E9F9EF; color: var(--pol-friendship); }

.pol-result-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--pol-brown); line-height: 1.3; margin-bottom: var(--space-2); }
.pol-result-title mark, .pol-result-snippet mark { background: rgba(196,144,42,0.25); color: var(--pol-brown); border-radius: 2px; padding: 0 2px; }
.pol-result-snippet { font-size: var(--text-sm); color: var(--pol-ink-3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pol-result-date { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--pol-ink-light); margin-top: var(--space-2); }

.pol-search-layout { display: grid; grid-template-columns: 1fr 260px; gap: var(--space-10); align-items: start; }
@media (max-width: 900px) { .pol-search-layout { grid-template-columns: 1fr; } .pol-search-sidebar { display: none; } }

.pol-no-results { text-align: center; padding: var(--space-20) 0; }
.pol-no-results-icon { font-size: 4rem; display: block; margin-bottom: var(--space-6); opacity: 0.4; }
.pol-no-results h2 { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--pol-brown); margin-bottom: var(--space-4); }
.pol-no-results p { font-size: var(--text-md); color: var(--pol-ink-2); max-width: 400px; margin: 0 auto var(--space-8); }

.pol-suggestions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-6); }
.pol-suggestion { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--pol-parchment-2); color: var(--pol-ink-2); text-decoration: none; border: 1px solid var(--pol-parchment-3); transition: all var(--duration) var(--ease); }
.pol-suggestion:hover { background: var(--pol-brown); color: var(--pol-white); }

/* ============================================================
   27. STATIC PAGE (About / Contact)
   ============================================================ */
.pol-static-page { padding-bottom: var(--space-20); }

.pol-page-hero {
  background: linear-gradient(135deg, var(--pol-parchment) 0%, var(--pol-parchment-2) 100%);
  border-bottom: 1px solid var(--pol-parchment-3);
  padding: var(--space-10) 0;
  margin-bottom: var(--space-10);
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  padding-left:  calc(50vw - 50% + var(--space-6));
  padding-right: calc(50vw - 50% + var(--space-6));
}

.pol-page-eyebrow { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pol-green-dark); display: block; margin-bottom: var(--space-3); }
.pol-page-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--pol-brown); line-height: 1.15; margin-bottom: var(--space-4); }
.pol-page-subtitle { font-family: var(--font-body); font-size: var(--text-lg); color: var(--pol-ink-2); max-width: 560px; line-height: 1.7; }

.pol-page-content-wrap { display: grid; grid-template-columns: 1fr 280px; gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .pol-page-content-wrap { grid-template-columns: 1fr; } .pol-page-sidebar { display: none; } }

/* Prose */
.pol-prose { font-family: var(--font-body); font-size: var(--text-md); line-height: 1.85; color: var(--pol-ink); }
.pol-prose h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--pol-brown); margin-top: var(--space-10); margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--pol-parchment-3); position: relative; }
.pol-prose h2::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: var(--pol-green); }
.pol-prose h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--pol-brown); margin-top: var(--space-8); margin-bottom: var(--space-4); }
.pol-prose p { margin-bottom: var(--space-5); }
.pol-prose a { color: var(--pol-green-dark); text-decoration: underline; text-decoration-color: rgba(106,175,53,0.4); text-underline-offset: 3px; }
.pol-prose a:hover { color: var(--pol-brown); }
.pol-prose blockquote { border-left: 4px solid var(--pol-green); margin: var(--space-8) 0; padding: var(--space-4) var(--space-6); background: var(--pol-parchment-2); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--pol-ink-2); }
.pol-prose ul, .pol-prose ol { padding-left: var(--space-6); margin-bottom: var(--space-5); }
.pol-prose li { margin-bottom: var(--space-2); }

/* Author card */
.pol-author-card { background: var(--pol-white); border: 1px solid var(--pol-parchment-3); border-radius: var(--radius-lg); padding: var(--space-8); display: grid; grid-template-columns: 120px 1fr; gap: var(--space-6); align-items: center; margin-bottom: var(--space-8); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .pol-author-card { grid-template-columns: 1fr; text-align: center; } .pol-author-card-photo { margin-inline: auto; } }
.pol-author-card-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 4px solid var(--pol-green); }
.pol-author-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.pol-author-card-name { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--pol-brown); margin-bottom: var(--space-1); }
.pol-author-card-role { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--pol-green-dark); font-weight: 600; margin-bottom: var(--space-3); }
.pol-author-card-bio { font-size: var(--text-base); color: var(--pol-ink-2); line-height: 1.7; margin-bottom: var(--space-4); }
.pol-author-card-social { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.pol-author-card-social a { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 600; padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); background: var(--pol-parchment-2); color: var(--pol-ink-2); text-decoration: none; transition: all var(--duration) var(--ease); }
.pol-author-card-social a:hover { background: var(--pol-brown); color: var(--pol-white); }

/* Stats */
.pol-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin: var(--space-8) 0; }
@media (max-width: 640px) { .pol-stats { grid-template-columns: repeat(2, 1fr); } }
.pol-stat { background: var(--pol-parchment-2); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; }
.pol-stat-number { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: var(--pol-brown); display: block; line-height: 1; margin-bottom: var(--space-2); }
.pol-stat-label { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--pol-ink-3); letter-spacing: 0.08em; text-transform: uppercase; }

/* Contact form */
.pol-contact-form { background: var(--pol-white); border: 1px solid var(--pol-parchment-3); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); margin-top: var(--space-8); }
.pol-form-group { margin-bottom: var(--space-5); }
.pol-form-label { display: block; font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 600; color: var(--pol-ink-2); margin-bottom: var(--space-2); }
.pol-form-input, .pol-form-textarea { width: 100%; border: 2px solid var(--pol-parchment-3); background: var(--pol-parchment); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-family: var(--font-body); font-size: var(--text-base); color: var(--pol-ink); outline: none; transition: border-color var(--duration) var(--ease); display: block; box-sizing: border-box; }
.pol-form-input:focus, .pol-form-textarea:focus { border-color: var(--pol-green); background: var(--pol-white); }
.pol-form-textarea { min-height: 140px; resize: vertical; }

/* Timeline */
.pol-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.pol-timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--pol-parchment-3); }
.pol-timeline-item { display: flex; gap: var(--space-4); padding-bottom: var(--space-5); position: relative; }
.pol-timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--pol-white); border: 2px solid var(--pol-green); flex-shrink: 0; margin-top: 3px; position: relative; z-index: 1; }
.pol-timeline-year { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; color: var(--pol-brown); display: block; margin-bottom: var(--space-1); }
.pol-timeline-text { font-size: var(--text-sm); color: var(--pol-ink-2); line-height: 1.5; }

/* Page sidebar */
.pol-page-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--space-6); }
