/*
 * GestaltReview Essays Archive — archive-essays.css
 * Loaded only on the essays archive template via functions.php
 * Scoped under .gre-page to avoid conflicts with Elementor page content
 */

/* ── CSS Variables ─────────────────────────────────────────── */
.gre-page {
  --ink:       #1a1a1a;
  --muted:     #5a5a5a;
  --light:     #888;
  --rule:      #d4d0c8;
  --accent:    #2c4a3e;
  --accent-mid:#4a7a64;
  --accent-lt: #e8ede9;
  --page:      #faf9f7;
  --border:    #e2ddd6;
  --card:      #ffffff;
  --warm:      #f5f0e8;
  --dark:      #1e3830;
  --amber:     #c87941;
}

/* ── Full-width wrapper ────────────────────────────────────── */
.gre-page {
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--page);
  width: 100%;
}

.gre-page *,
.gre-page *::before,
.gre-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Shared inner width ────────────────────────────────────── */
.gre-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────── */
.gre-hero {
  background: var(--dark);
  padding: 60px 28px 52px;
  text-align: center;
}
.gre-hero__eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: #7aaa90; margin-bottom: 16px; display: block;
}
.gre-hero__title {
  font-family: "Georgia", serif;
  font-size: clamp(26px, 4vw, 44px); font-weight: 700;
  line-height: 1.15; color: #f0f5f1;
  letter-spacing: -.02em; margin-bottom: 16px;
}
.gre-hero__sub {
  font-family: "Georgia", serif;
  font-size: clamp(15px, 1.8vw, 18px); font-style: italic;
  line-height: 1.65; color: #7aaa90;
  max-width: 580px; margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   SEARCH BAR
───────────────────────────────────────────────────────────── */
.gre-search-band {
  background: var(--accent);
  padding: 24px 28px;
}
.gre-search-inner {
  max-width: 640px; margin: 0 auto;
}
.gre-search-label {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #a8c4b0; margin-bottom: 10px; display: block;
}
.gre-search-form {
  display: flex;
}
.gre-search-input {
  flex: 1; font-family: "Georgia", serif;
  font-size: 15.5px; color: var(--ink);
  background: #fff; border: none;
  padding: 12px 16px;
  border-radius: 3px 0 0 3px; outline: none;
}
.gre-search-input::placeholder { color: #aaa; }
.gre-search-btn {
  background: var(--dark); color: #a8d4b8;
  border: none; padding: 12px 20px;
  border-radius: 0 3px 3px 0; cursor: pointer;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background .15s; white-space: nowrap;
}
.gre-search-btn:hover { background: #162d26; }

/* ─────────────────────────────────────────────────────────────
   TOPIC CHIPS
───────────────────────────────────────────────────────────── */
.gre-topics-band {
  background: var(--warm);
  border-bottom: 1px solid var(--border);
  padding: 22px 28px;
}
.gre-topics-label {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 13px; display: block;
}
.gre-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.gre-chip {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: #fff;
  border: 1px solid var(--border); border-radius: 2px;
  padding: 6px 13px; text-decoration: none;
  transition: background .15s, border-color .15s;
  display: inline-block;
}
.gre-chip:hover {
  background: var(--accent-lt);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   EDITORIAL INTRO BAND
───────────────────────────────────────────────────────────── */
.gre-intro-band {
  padding: 52px 28px 48px;
}
.gre-intro-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px; align-items: start;
}

.gre-section-eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px; display: block;
}
.gre-section-title {
  font-family: "Georgia", serif;
  font-size: clamp(18px, 2.3vw, 24px); font-weight: 700;
  line-height: 1.25; color: var(--ink); letter-spacing: -.01em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px; margin-bottom: 22px;
}
.gre-intro-main p {
  font-size: 16px; line-height: 1.8; color: var(--muted);
  margin-bottom: 1.4em;
}
.gre-intro-main p:last-child { margin-bottom: 0; }

.gre-themes-list {
  list-style: none; padding: 0; margin: 16px 0 0;
}
.gre-themes-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 15.5px; line-height: 1.55; color: var(--ink);
}
.gre-themes-list li:first-child { border-top: 1px solid var(--border); }
.gre-themes-list li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 5px;
}

/* Sidebar blocks */
.gre-sidebar-block {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; margin-bottom: 18px;
}
.gre-sidebar-block:last-child { margin-bottom: 0; }
.gre-sidebar-block__head {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--card);
  background: var(--accent); padding: 10px 16px;
}
.gre-sidebar-block__body {
  padding: 16px;
}
.gre-sidebar-block__body p {
  font-size: 14px; line-height: 1.7; color: var(--muted);
  margin-bottom: .8em;
}
.gre-sidebar-block__body p:last-child { margin-bottom: 0; }

.gre-mission-items {
  display: flex; flex-direction: column; gap: 9px;
}
.gre-mission-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
}
.gre-mission-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 5px;
}

.gre-volume-links {
  display: flex; flex-direction: column; gap: 6px; margin-top: 10px;
}
.gre-volume-links a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid #a8c4b0;
  padding-bottom: 2px; transition: border-color .15s;
}
.gre-volume-links a:hover { border-bottom-color: var(--accent); }

/* ─────────────────────────────────────────────────────────────
   POSTS SECTION LABEL
───────────────────────────────────────────────────────────── */
.gre-posts-label {
  background: #f3f0eb;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
}
.gre-posts-label__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.gre-posts-label__heading {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.gre-posts-label__count {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; color: var(--light);
}

/* ─────────────────────────────────────────────────────────────
   DYNAMIC POSTS LIST
───────────────────────────────────────────────────────────── */
.gre-posts-section {
  max-width: 1100px; margin: 0 auto;
  padding: 36px 28px 64px;
}

/* Individual post card */
.gre-post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 3px; padding: 20px 22px;
  margin-bottom: 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px; align-items: start;
  transition: border-color .15s;
}
.gre-post-card:hover {
  border-color: var(--accent-mid);
}
.gre-post-card__main {}

.gre-post-card__category {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-mid);
  margin-bottom: 5px; display: block;
}

.gre-post-card__title {
  font-family: "Georgia", serif;
  font-size: 17px; font-weight: 700;
  line-height: 1.3; color: var(--ink);
  margin-bottom: 8px;
}
.gre-post-card__title a {
  color: inherit; text-decoration: none;
}
.gre-post-card__title a:hover { color: var(--accent); }

.gre-post-card__excerpt {
  font-family: "Georgia", serif;
  font-size: 14.5px; line-height: 1.65;
  color: var(--muted); margin-bottom: 0;
}

.gre-post-card__meta {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11.5px; color: var(--light);
  margin-top: 10px;
}

.gre-post-card__arrow {
  color: var(--border); font-size: 20px;
  line-height: 1; padding-top: 4px;
  transition: color .15s;
}
.gre-post-card:hover .gre-post-card__arrow {
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.gre-pagination {
  display: flex; justify-content: center;
  gap: 6px; flex-wrap: wrap;
  margin-top: 36px;
}
.gre-pagination a,
.gre-pagination span {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 2px;
  padding: 8px 15px; text-decoration: none;
  color: var(--accent); background: var(--card);
  transition: background .15s, border-color .15s, color .15s;
  display: inline-block;
}
.gre-pagination a:hover {
  background: var(--accent-lt); border-color: var(--accent);
}
.gre-pagination span.current {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.gre-pagination .dots {
  border: none; background: transparent;
  color: var(--light); cursor: default;
  padding: 8px 6px;
}

/* ─────────────────────────────────────────────────────────────
   BOTTOM STATEMENT BAND
───────────────────────────────────────────────────────────── */
.gre-statement-band {
  background: var(--accent);
  padding: 48px 28px; text-align: center;
}
.gre-statement-band__title {
  font-family: "Georgia", serif;
  font-size: clamp(17px, 2.2vw, 23px); font-weight: 700;
  color: #f0f5f1; margin-bottom: 10px; line-height: 1.3;
}
.gre-statement-band__sub {
  font-family: "Georgia", serif; font-style: italic;
  font-size: 16px; color: #9ab8a4;
  max-width: 520px; margin: 0 auto; line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .gre-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .gre-hero,
  .gre-search-band,
  .gre-topics-band,
  .gre-intro-band,
  .gre-posts-label,
  .gre-statement-band { padding-left: 16px; padding-right: 16px; }

  .gre-posts-section { padding: 24px 16px 48px; }

  .gre-search-form { flex-direction: column; }
  .gre-search-input { border-radius: 3px; }
  .gre-search-btn   { border-radius: 3px; text-align: center; }

  .gre-post-card { grid-template-columns: 1fr; gap: 0; }
  .gre-post-card__arrow { display: none; }
}
