/*
Theme Name: Geojuristoday Research Foundation
Theme URI: https://www.geojuristoday.in
Author: Geojuristoday Research Foundation
Description: Editorial WordPress theme for Geojuristoday Research Foundation: geopolitics, foreign policy and public-interest research.
Version: 1.3.67
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: geojuris

Editorial system, rebuilt 2026-11-27.
Consciously dropped with the old glass kit: .eyebrow, .glass, .hero-feature,
.hero-grid, .hero-copy, .hero-note, .dual-section-grid, .newsletter-split-*,
.workshop-*, .cta-band (rebuilt as .subscribe-panel), .grid-4, .card.compact,
.small, .section.brown. Kept and restyled because DB page content uses them:
.grid-2, .gallery-grid, .page-figure*.
Type voices: Spectral (display, deks) / Manrope (body, UI).
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --bg: #161316;
  --bg-raise: #1d191d;
  --brown: #453027;
  --brown-deep: #35241d;
  --ink: #ffffff;
  --ink-2: #bababa;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.32);
  --accent: #ff6d29;
  --accent-hover: #e85c1c;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Spectral", Georgia, serif;
  --maxw: 1240px;
  --gutter: 32px;
  --section: 112px;
  --radius: 3px;
  --radius-sm: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  caret-color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font-family: var(--font);
  font-size: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
}

h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 500;
}

p {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.2em 1.3em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}

.section-head .lede {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
  margin-top: 6px;
}

.muted {
  color: var(--ink-2);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 124px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand .dot {
  color: var(--ink);
}

.brand .brand-muted {
  color: var(--ink-2);
  font-weight: 400;
  font-size: 0.62em;
  margin-left: 7px;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.custom-logo {
  height: 100px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
}

.site-nav a {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s var(--ease);
}

.header-cta:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 1240px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px 24px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav.open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }
  .site-nav.open .nav-list li {
    width: 100%;
  }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .site-nav a:last-child {
    border-bottom: 0;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-ghost {
  color: var(--ink-2);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section.tight {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
}

.section-head .btn {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .section {
    padding: 56px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }
}

/* =========================================================
   Grids and cards
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brown);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.02);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 500;
  margin-bottom: 10px;
}

.card-title a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}

.card-title a:hover {
  text-decoration-color: var(--accent);
}

.card-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 18px;
}

/* =========================================================
   Split (about)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.split-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--brown);
}

.split-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split-copy .lede {
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =========================================================
   Article / page
   ========================================================= */
.article-hero {
  padding: 40px 0 34px;
}

.article-hero {
  position: relative;
  overflow: hidden;
}

/* Formal accent rule filling the empty right side of inner page headers,
   matching the left-side heading accent mark. */
.article-hero::after {
  content: "";
  position: absolute;
  top: 40px;
  right: max(24px, calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  width: 2px;
  height: clamp(120px, 26vh, 220px);
  background: var(--accent);
  opacity: 0.55;
  border-radius: 1px;
  pointer-events: none;
  z-index: 0;
}

.article-hero .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .article-hero::after {
    display: none;
  }
}

.article-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.article-meta .article-cat {
  color: var(--ink);
  font-weight: 500;
}

.article-cover {
  margin: 34px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  padding: 56px 0 96px;
}

.article-wrap--single {
  grid-template-columns: minmax(0, 1fr);
}

.article-content {
  width: 100%;
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  overflow-x: hidden;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink);
}

.article-content > * + * {
  margin-top: 1.1em;
}

.article-content h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-top: 1.8em;
  line-height: 1.2;
}

.article-content h3 {
  margin-top: 1.6em;
}

.article-content a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease);
}

.article-content a:not(.btn):hover {
  color: var(--accent-hover);
}

.article-content blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 1px solid var(--line-strong);
  background: var(--bg-raise);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.article-content img {
  margin: 1.6em auto;
  border-radius: var(--radius-sm);
}

.article-content figure {
  margin: 1.6em 0;
}

.article-content figcaption {
  font-size: 0.8rem;
  color: var(--ink-2);
  text-align: center;
  margin-top: 8px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

/* Site-wide content bullets use the ✧ mark in place of the default disc. */
.article-content ul {
  list-style: none;
  padding-left: 1.4em;
}
.article-content ul > li {
  position: relative;
}
.article-content ul > li::before {
  content: '✧';
  position: absolute;
  left: -1.4em;
  top: 0;
  color: var(--accent);
  font-size: 0.9em;
  line-height: 1.7;
}

.article-content .btn {
  margin: 8px 8px 8px 0;
  text-decoration: none;
}

/* =========================================================
   Newsletter issues
   ========================================================= */
.article-content:has(.newsletter-grid) {
  max-width: 100%;
}

.article-wrap:has(.newsletter-grid) {
  grid-template-columns: minmax(0, 1fr) !important;
}

.article-content:has(.newsletter-grid) .newsletter-grid {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 28px;
  margin: 32px 0 40px;
}

.newsletter-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s var(--ease);
}

.newsletter-card:hover {
  border-color: var(--line-strong);
}

.newsletter-card-visual {
  background: var(--bg-raise);
  padding: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.newsletter-card-visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s var(--ease);
}

.newsletter-card:hover .newsletter-card-visual img {
  transform: scale(1.02);
}

.newsletter-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.newsletter-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 10px;
}

.newsletter-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 20px;
  flex: 1;
}

.newsletter-card-actions {
  margin-top: auto;
}

@media (max-width: 720px) {
  .newsletter-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Subscribe band (flat panel)
   ========================================================= */
.subscribe-panel {
  margin-top: 48px;
  padding: 48px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.subscribe-panel h2 {
  max-width: 20ch;
  margin-bottom: 14px;
}

.subscribe-panel p {
  max-width: 56ch;
  color: var(--ink-2);
}

.subscribe-panel .hero-actions {
  margin-top: 24px;
}

@media (max-width: 700px) {
  .subscribe-panel {
    padding: 32px 24px;
  }
}

/* =========================================================
   Article aside
   ========================================================= */
.article-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.aside-box {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-raise);
}

.aside-box h4 {
  margin-bottom: 12px;
}

.aside-box ul {
  list-style: none;
  margin: 0;
}

.aside-box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.5;
}

.aside-box li:last-child {
  border-bottom: 0;
}

.aside-box a {
  transition: color 0.18s var(--ease);
}

.aside-box a:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .article-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* =========================================================
   Team
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  transition: border-color 0.18s var(--ease);
}

.team-card:hover {
  border-color: var(--line-strong);
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Forms
   ========================================================= */
.contact-form {
  max-width: 640px;
}

.contact-form p {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 7px;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.form-status {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.form-status.success {
  border-color: var(--accent);
}

.form-status.error {
  border-color: rgba(220, 60, 60, 0.7);
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Newsletter signup */
.gj-newsletter-form .gj-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--ink-2);
  cursor: pointer;
}

.gj-newsletter-form .gj-consent input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

.gj-newsletter-form .gj-consent a {
  color: var(--accent);
}

/* WP search form (rendered on empty results / archives) */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 18px auto 0;
  text-align: left;
}

.search-form .search-field {
  flex: 1;
  min-width: 0;
}

.search-form .search-submit {
  flex: 0 0 auto;
  width: auto;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.search-form .search-submit:hover {
  background: var(--accent-hover);
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.pagination a.page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================================================
   Tags
   ========================================================= */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag-list a {
  font-family: var(--font);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--ink-2);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.tag-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================================================
   Shared actions row (also used by 404 / newsletter page)
   ========================================================= */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 72px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer .custom-logo-link .custom-logo {
  height: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer-brand p {
  max-width: 38ch;
  color: var(--ink-2);
  font-size: 0.9rem;
  margin-top: 16px;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.18s var(--ease);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-2);
}

.footer-legal a + a {
  margin-left: 14px;
}

.footer-bottom a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal a + a {
    margin-left: 0;
  }
}

/* =========================================================
   Utilities / states
   ========================================================= */
.empty-state {
  padding: 64px 0;
  text-align: center;
  color: var(--ink-2);
}

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
}

.not-found p {
  color: var(--ink-2);
  margin-bottom: 26px;
}

.not-found .hero-actions {
  justify-content: center;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }
}

/* =========================================================
   Homepage: masthead, analysis index, shelves, book band
   ========================================================= */
.masthead {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  text-align: center;
}

.masthead-pillar {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(260px, 22vw);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.85) 50%, transparent 92%), radial-gradient(ellipse at 50% 40%, #000 0%, transparent 85%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.85) 50%, transparent 92%), radial-gradient(ellipse at 50% 40%, #000 0%, transparent 85%);
  mask-composite: intersect;
}

.masthead-pillar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.masthead .container {
  position: relative;
  z-index: 1;
}

.masthead-title {
  max-width: 21ch;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.masthead-dek {
  margin-top: 22px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

@keyframes masthead-rise {
  from {
    opacity: 0.001;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead-title,
  .masthead-dek {
    animation: masthead-rise 0.4s var(--ease) backwards;
    animation-delay: 0.05s;
  }
  .masthead-actions {
    animation: masthead-rise 0.4s var(--ease) backwards;
    animation-delay: 0.15s;
  }
}

/* Analysis index (ruled entries) - top rule removed per request */

.index .entry:first-child {
  padding-top: 40px;
}

.section-head:has(+ .index) {
  margin-bottom: 72px;
}

.entry {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.entry-thumb {
  flex: 0 0 150px;
  max-width: 150px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.entry-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  background: var(--bg-raise);
}

.entry-content {
  flex: 1 1 auto;
  min-width: 0;
}

.entry-lead .entry-thumb {
  flex: 0 0 150px;
  max-width: 150px;
}

.entry-lead .entry-thumb img {
  aspect-ratio: 1 / 1;
}

.entry:last-child {
  border-bottom: 0;
}

.entry-lead {
  padding-top: 0;
}

.entry-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
}

.entry-lead .entry-title {
  font-size: 1.2rem;
  line-height: 1.3;
}

.entry-title a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}

.entry-title a:hover {
  text-decoration-color: var(--accent);
}

.entry-excerpt {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 72ch;
}

.entry-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.entry-foot .author {
  color: var(--ink);
  font-weight: 500;
}

.entry-read {
  margin-left: auto;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}

.entry-read:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

@media (max-width: 560px) {
  .entry {
    flex-direction: column;
    gap: 14px;
  }

  .entry-thumb,
  .entry-lead .entry-thumb {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .entry-read {
    margin-left: 0;
  }
}

/* Shelves (newsletter, workshop) */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.shelf {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s var(--ease);
}

.shelf:hover {
  border-color: var(--line-strong);
}

.shelf-cover {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: grid;
  place-items: center;
}

.shelf-cover img {
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s var(--ease);
}

.shelf:hover .shelf-cover img {
  transform: scale(1.02);
}

.shelf-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shelf-edition {
  font-size: 0.85rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.shelf-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.shelf-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 22px;
  flex: 1;
}

.shelf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.shelf-pdf {
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}

.shelf-pdf:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

@media (max-width: 900px) {
  .shelf-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shelf {
    grid-template-columns: 1fr;
  }
  .shelf-cover {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Book band */
.book-band {
  background: var(--brown);
}

.book-band-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.book-content {
  min-width: 0;
}

.book-cover {
  width: 260px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  box-shadow: 12px 16px 32px rgba(0, 0, 0, 0.4);
}

.book-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 6px;
}

.book-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.book-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 28px;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .book-band-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .book-cover {
    justify-self: center;
  }
}

/* Event panels */
.panel {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s var(--ease);
}

.panel-media {
  display: block;
  height: auto;
  overflow: hidden;
  background: var(--brown);
}

.panel-media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.panel-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.panel:hover {
  border-color: var(--line-strong);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.panel-title a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}

.panel-title a:hover {
  text-decoration-color: var(--accent);
}

.panel-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 18px;
  flex: 1;
}

.panel-link {
  align-self: flex-start;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}

.panel-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Report descriptions */
.report-desc {
  max-height: 4.6em;
  overflow: hidden;
  transition: max-height 0.2s var(--ease);
}

.report-desc.is-expanded {
  max-height: none;
}

.read-more-toggle {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.panel-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.read-more-toggle:hover {
  color: var(--accent-hover);
}

/* =========================================================
   Page content classes (DB-built pages: gallery, figures)
   ========================================================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.page-figure {
  margin: 28px 0;
}

.page-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.page-figure--narrow {
  max-width: 460px;
}

.page-figure--narrow img {
  max-height: 620px;
  object-fit: contain;
  background: var(--brown);
}

.page-figure--poster img {
  max-height: 720px;
  object-fit: contain;
  background: var(--brown);
}

.gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.gallery-grid::-webkit-scrollbar {
  height: 6px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.gallery-grid figure {
  flex: 0 0 auto;
  width: 220px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raise);
  scroll-snap-align: start;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--brown);
}

.gallery-grid figcaption {
  padding: 14px 16px 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.gallery-grid figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}

.gallery-grid figcaption span {
  display: block;
}

@media (max-width: 900px) {
  .gallery-grid figure {
    width: 200px;
  }
}

@media (max-width: 560px) {
  .gallery-grid figure {
    width: 180px;
  }
}

/* =========================================================
   Gallery: masonry + lightbox
   ========================================================= */
.gallery-masonry {
  column-count: 3;
  column-gap: 18px;
  margin-top: 28px;
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raise);
}

.gallery-masonry .gallery-link {
  display: block;
}

.gallery-masonry img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s var(--ease);
}

.gallery-masonry .gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-masonry figcaption {
  padding: 14px 16px 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.gallery-masonry figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}

.gallery-masonry figcaption span {
  display: block;
}

@media (max-width: 900px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .gallery-masonry {
    column-count: 1;
  }
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.gallery-lightbox-content p {
  color: var(--ink);
  margin-top: 12px;
  font-size: 0.95rem;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  background: var(--bg-raise);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-close {
  top: 20px;
  right: 20px;
}

.gallery-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   Fellowship page (DB content)
   ========================================================= */
.article-content:has(.fellowship) {
  max-width: 100%;
}

.article-hero .lede {
  margin: 0;
}

.fellowship-tagline,
.fellowship-dates {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.fellowship-dates {
  font-variant-numeric: tabular-nums;
}

.fellowship-intro--text {
  grid-template-columns: minmax(0, 1fr);
}

.fellowship-intro {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.fellowship-portrait {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--brown);
}

.fellowship-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.fellowship-overview h2 {
  margin-top: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 48px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts > div {
  padding: 20px 24px 20px 0;
}

.facts > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.facts dt {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.facts dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.35;
}

.fellowship-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 56px;
}

.curriculum {
  border-top: 1px solid var(--line);
}

.chapter {
  border-bottom: 1px solid var(--line);
}

.chapter summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.chapter summary::-webkit-details-marker {
  display: none;
}

.chapter summary::after {
  content: "+";
  justify-self: end;
  color: var(--ink-2);
  font-size: 1.15rem;
  line-height: 1;
  transition: color 0.18s var(--ease);
}

.chapter[open] summary::after {
  content: "−";
}

.chapter summary:hover .chapter-title,
.chapter summary:focus-visible .chapter-title {
  color: var(--accent);
}

.chapter summary:hover::after,
.chapter summary:focus-visible::after {
  color: var(--ink);
}

.chapter-num {
  color: var(--ink-2);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.3;
  transition: color 0.18s var(--ease);
}

.chapter-body {
  max-width: 78ch;
  padding: 0 0 22px 72px;
  color: var(--ink-2);
}

.chapter-body p {
  margin: 0;
}

@media (max-width: 900px) {
  .fellowship-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fellowship-portrait {
    max-width: 380px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts > div {
    padding: 16px 0;
  }

  .facts > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .chapter summary {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 16px 0;
  }

  .chapter-title {
    font-size: 1.08rem;
  }

  .chapter-body {
    padding: 0 0 20px 52px;
  }
}

/* =========================================================
   Board of Advisors (homepage)
   ========================================================= */
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.advisor {
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.advisor-photo {
  width: 90%;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--brown);
  border-radius: var(--radius-sm);
}

.advisor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-body {
  padding: 18px 20px 20px;
}

.advisor-role {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.advisor-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 10px;
}

.advisor-bio {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.advisor-bio--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.advisor-readmore {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}

.advisor-readmore:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .advisor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* =========================================================
   CyberPax section (homepage)
   ========================================================= */
.cyberpax-intro {
  max-width: 72ch;
}

.cyberpax-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.cyberpax-details.is-expanded {
  max-height: 12000px;
}

.cyberpax-figure {
  text-align: center;
  margin: 24px 0;
}

.cyberpax-figure img {
  width: auto;
  max-width: 480px;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: var(--brown);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-block;
}

/* =========================================================
   Instagram feed (homepage)
   ========================================================= */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.instagram-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s var(--ease);
}

.instagram-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 980px) {
  .instagram-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Reports slider (homepage)
   ========================================================= */
.report-slider-wrap {
  position: relative;
}

.report-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.report-slider::-webkit-scrollbar {
  display: none;
}

.report-slider .panel,
.report-slider .advisor {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raise);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.slider-prev {
  left: -20px;
}

.slider-next {
  right: -20px;
}

@media (max-width: 980px) {
  .report-slider .panel,
  .report-slider .advisor {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .report-slider .panel,
  .report-slider .advisor {
    flex: 0 0 100%;
  }

  .slider-btn {
    display: none;
  }
}

/* About page: Sanskrit epigraph */
.article-content .about-shloka {
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  text-align: left;
  font-style: normal;
}

.article-content .about-shloka-verse {
  font-family: "Noto Serif Devanagari", "Noto Sans Devanagari", var(--font-display);
  font-size: 1.3rem;
  line-height: 1.9;
  margin: 0 0 10px;
  color: var(--ink);
  text-align: center;
}

.article-content .about-shloka-meaning {
  text-align: left;
}

.article-content .about-shloka-meaning {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  margin: 0;
  color: var(--ink-2);
  text-align: left;
}

/* About page: magazine-style scattered photos around the shloka */
.article-content .about-shloka-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px 28px;
  align-items: center;
  margin: 32px 0 40px;
}

.article-content .about-shloka-wrap .about-photo {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.article-content .about-shloka-wrap .about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.article-content .about-shloka-wrap .about-photo--tl { grid-column: 1; grid-row: 1; transform: rotate(-4deg); }
.article-content .about-shloka-wrap .about-photo--bl { grid-column: 1; grid-row: 2; transform: rotate(3deg); }
.article-content .about-shloka-wrap .about-shloka { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
.article-content .about-shloka-wrap .about-photo--tr { grid-column: 3; grid-row: 1; transform: rotate(3deg); }
.article-content .about-shloka-wrap .about-photo--br { grid-column: 3; grid-row: 2; transform: rotate(-2deg); }

@media (max-width: 760px) {
  .article-content .about-shloka-wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 14px;
    justify-items: center;
  }
  .article-content .about-shloka-wrap .about-photo {
    transform: none;
    max-width: 88%;
    justify-self: center;
  }
  .article-content .about-shloka-wrap .about-photo--tl { grid-column: 1; grid-row: 2; }
  .article-content .about-shloka-wrap .about-photo--bl { grid-column: 2; grid-row: 2; }
  .article-content .about-shloka-wrap .about-photo--tr { grid-column: 1; grid-row: 3; }
  .article-content .about-shloka-wrap .about-photo--br { grid-column: 2; grid-row: 3; }
  .article-content .about-shloka-wrap .about-shloka {
    grid-column: 1 / 3;
    grid-row: 1;
    transform: none;
    max-width: 100%;
  }
}

/* Team page: Geojuristoday Family panel */
.team-family {
  margin-top: 64px;
  border-left: 3px solid var(--accent);
  padding: 32px 36px;
  text-align: center;
  background: var(--bg-raise);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.team-family__stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 4px;
}

.team-family__and {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 8px;
}

.team-family__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 6px;
}

.team-family__sub {
  font-size: 0.95rem;
  color: var(--ink-2);
  font-weight: 500;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.team-family__bio {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

/* Formal accent marks beside headings (theme accent) */
.article-hero h1,
.section-head h1,
.section-head h2 {
  position: relative;
}

.article-hero h1::before,
.section-head h1::before,
.section-head h2::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 0.18em;
  bottom: 0.18em;
  width: 2px;
  background: var(--accent);
  opacity: 0.55;
  border-radius: 1px;
}

@media (max-width: 760px) {
  .article-hero h1::before,
  .section-head h1::before,
  .section-head h2::before {
    left: -10px;
    width: 2px;
  }
}

/* About page: magazine-style floated images */
.article-content::after {
  content: '';
  display: table;
  clear: both;
}

.article-content .about-mag {
  margin: 8px 0 16px;
  max-width: 40%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.article-content .about-mag img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.article-content .about-mag--left {
  float: left;
  margin-right: 24px;
}

.article-content .about-mag--right {
  float: right;
  margin-left: 24px;
}

@media (max-width: 760px) {
  .article-content .about-mag {
    float: none;
    max-width: 85%;
    margin: 16px auto;
  }
}

.article-content .about-para-left {
  text-align: left;
}

/* Event pages (Rakshamanthan etc.): professional image sizing */
.single-event .article-content .page-figure {
  margin: 12px 0;
  text-align: center;
}

.single-event .article-content .page-figure img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-block;
}

.single-event .rk-figure-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  margin: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.single-event .rk-figure-row::-webkit-scrollbar {
  height: 6px;
}

.single-event .rk-figure-row::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.single-event .rk-figure-row .page-figure {
  flex: 0 0 auto;
  width: 260px;
  max-width: 260px;
  margin: 0;
  text-align: center;
  scroll-snap-align: start;
}

.single-event .rk-figure-row .page-figure img {
  max-width: 100%;
}

/* Event pages: accordion for sections */
.single-event .rk-accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 14px;
  overflow: hidden;
  background: var(--bg-raise);
}

.single-event .rk-accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid transparent;
  transition: background 0.18s var(--ease);
}

.single-event .rk-accordion[open] .rk-accordion__summary {
  border-bottom-color: var(--line);
}

.single-event .rk-accordion__summary:hover {
  background: var(--bg-raise);
}

.single-event .rk-accordion__summary::-webkit-details-marker {
  display: none;
}

.single-event .rk-accordion__summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  flex: 0 0 auto;
}

.single-event .rk-accordion[open] .rk-accordion__summary::after {
  content: '\2212';
}

.single-event .rk-accordion__summary h2,
.single-event .rk-accordion__summary h3 {
  margin: 0;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
}

.single-event .rk-accordion__body {
  padding: 16px 18px 8px;
}

.single-event .page-figure__caption {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}

/* Event pages: speaker slider */
.single-event .rk-speaker-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  margin: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.single-event .rk-speaker-slider::-webkit-scrollbar { height: 6px; }
.single-event .rk-speaker-slider::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.single-event .rk-speaker-card {
  flex: 0 0 auto;
  width: 220px;
  max-width: 220px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  scroll-snap-align: start;
  text-align: center;
}

.single-event .rk-speaker-card .page-figure {
  margin: 0 0 10px;
  text-align: center;
}

.single-event .rk-speaker-card .page-figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  display: block;
}

.single-event .rk-speaker-card .page-figure__caption {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.single-event .rk-speaker-card p {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 6px 0 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-event .rk-speaker-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin: 8px 0 4px;
  color: var(--ink);
}

/* About: "What We Do" star list (no bullets) */
.article-content .about-do-list {
  margin: 16px 0 24px;
}

.article-content .about-do {
  margin: 0 0 14px;
  padding-left: 1.6em;
  text-indent: -1.6em;
  line-height: 1.6;
}

.article-content .about-do__star {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35em;
}

.article-content .about-do strong {
  color: var(--ink);
  font-weight: 600;
}

/* Event pages: wp-block-image (Yuva Bharat etc.) sizing + slider */
.single-event .article-content .wp-block-image {
  margin: 12px 0;
  text-align: center;
}

.single-event .article-content .wp-block-image img {
  max-width: 640px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-block;
}

.single-event .rk-figure-row .wp-block-image {
  flex: 0 0 auto;
  width: 260px;
  max-width: 260px;
  margin: 0;
  text-align: center;
}

.single-event .rk-figure-row .wp-block-image img {
  max-width: 100%;
  width: 100%;
}

/* International Peace Conclave 2026: uniform gallery slides */
.postid-3332 .rk-figure-row {
  gap: 14px;
}

.postid-3332 .rk-figure-row .wp-block-image {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.postid-3332 .rk-figure-row .wp-block-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 600px) {
  .postid-3332 .rk-figure-row .wp-block-image {
    flex-basis: 240px;
    width: 240px;
    max-width: 240px;
  }
}

.single-event .article-cover {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.single-event .article-cover img {
  max-height: 360px;
  object-fit: contain;
  background: var(--bg-raise);
}

/* Consistent page-header spacing */
.section--flush {
  padding-top: 0;
}

.archive-body {
  padding-top: 40px;
  padding-bottom: var(--section);
}

/* About: tighten the space between the hero lede and the first figure */
.page-id-2001 .article-wrap--single {
  padding-top: 0;
}

.page-id-2001 .article-content > .page-figure:first-child,
.page-id-2001 .article-content > .page-figure:first-child img {
  margin-top: 0;
}

/* Beneath the Red Banner: same tightening as About (starts with a figure) */
.page-id-2002 .article-wrap--single {
  padding-top: 0;
}

.page-id-2002 .article-content > .page-figure:first-child,
.page-id-2002 .article-content > .page-figure:first-child img {
  margin-top: 0;
}

/* Team card: role + bio */
.team-card .team-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

.team-card .team-bio {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   Preloader
   ========================================================= */
.gj-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.gj-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gj-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}

.gj-preloader__logo {
  width: clamp(120px, 22vw, 220px);
  height: auto;
  opacity: 0;
  transform: scale(0.85);
  animation: gj-preloader-in 0.7s var(--ease) 0.15s forwards,
             gj-preloader-pulse 2s var(--ease) 0.9s infinite;
  filter: drop-shadow(0 0 24px rgba(255, 109, 41, 0.18));
}

.gj-preloader__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: min(90vw, 32ch);
  line-height: 1.45;
  opacity: 0;
  animation: gj-preloader-in 0.7s var(--ease) 0.5s forwards;
}

.gj-preloader__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0;
  animation: gj-preloader-in 0.9s var(--ease) 0.8s forwards;
  text-align: center;
  max-width: 28ch;
}

@media (prefers-reduced-motion: reduce) {
  .gj-preloader__tagline {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes gj-preloader-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gj-preloader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .gj-preloader__logo,
  .gj-preloader__name {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   Global text justification
   ========================================================= */
body {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Keep headings, navigation, controls and centered blocks left/center aligned */
h1, h2, h3, h4, h5, h6,
nav, .nav-list, .nav-toggle,
button, input, textarea, select, .btn,
.article-meta, .article-cat,
.byline, .tally, .kicker,
.section-head, .section-head h1, .section-head h2,
.card-title, .panel-link, .panel-body,
.avatar, .team-role,
.skip-link, .brand,
.masthead, .masthead-title, .masthead-dek, .masthead-actions,
table, th, td,
figcaption, .article-meta,
.pagination, .slider-btn {
  text-align: left;
}

.masthead,
.masthead-title,
.masthead-dek,
.masthead-actions,
.pagination {
  text-align: center;
}

/* Preloader copy is centered at every size. */
.gj-preloader,
.gj-preloader__inner,
.gj-preloader__name,
.gj-preloader__tagline {
  text-align: center;
}

/* Headings and hero copy should never split a word with a dash. */
h1, h2, h3, h4, h5, h6,
.article-hero,
.masthead,
.gj-preloader,
.gj-preloader__name,
.gj-preloader__tagline {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* On small screens keep whole words together everywhere. */
@media (max-width: 760px) {
  body {
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
  }
}

/* Justify long-form body copy explicitly */
.dek, .article-content, .article-content p,
.page-figure figcaption {
  text-align: justify;
}

.lede, .card-excerpt, .team-bio, .panel-excerpt,
.report-desc, .muted {
  text-align: left;
}
