:root {
  --white: #ffffff;
  --bg: #f6f7fa;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --slate: #475569;
  --slate-light: #94a3b8;
  --line: #e2e8f0;
  --blue: #791a3c;
  --blue-dark: #601731;
  --blue-tint: #eaf0ff;
  --orange: #94a3b8;
  --orange-dark: #475569;
  --green: #15803d;
  --radius: 14px;
  --maxw: 1280px;
  --header-h: 76px;
  --sidebar-w: 250px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.disp {
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.02em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.enso {
  width: 16px;
  height: 16px;
  stroke: var(--blue);
  stroke-width: 5;
  fill: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn-cta {
  background: var(--orange);
  color: #000;
  box-shadow: 0 8px 20px -6px rgba(71, 85, 105, 0.55);
}
.btn-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-ghost {
  background: var(--blue-tint);
  color: var(--blue-dark);
}
.btn-ghost:hover {
  background: #dbe6ff;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.enso-bg {
  position: absolute;
  pointer-events: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
  fill: none;
}
.enso-mark {
  width: 22px;
  height: 22px;
  stroke: var(--orange);
  stroke-width: 6;
  fill: none;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 22px;
}
.logo svg {
  width: 32px;
  height: 32px;
  stroke: var(--blue);
  stroke-width: 5;
  fill: none;
}
.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--navy-soft);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  padding: 14px 24px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  display: block;
}
.mobile-menu.open {
  display: flex;
  background-color: var(--bg);
}
@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }
  .burger {
    display: flex;
  }
}

/* ---------- App layout: sidebar + main ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 32px 22px;
  background: var(--white);
}
.sidebar h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-light);
  margin-bottom: 16px;
}
.club-list li {
  margin-bottom: 2px;
}
.club-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-soft);
  position: relative;
}
.club-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-light);
  flex-shrink: 0;
}
.club-list a:hover,
.club-list a.active {
  background: var(--blue-tint);
  color: var(--blue-dark);
}
.club-list a:hover::before,
.club-list a.active::before {
  background: var(--blue);
}
.sidebar-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--slate-light);
}

.main {
  min-width: 0;
}

/* Mobile: sidebar becomes a horizontal scroll strip under header */
@media (max-width: 900px) {
  .app {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: var(--header-h);
    height: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 40;
  }
  .sidebar h5 {
    margin-bottom: 0;
  }
  .club-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .club-list li {
    margin-bottom: 0;
    flex: 0 0 auto;
  }
  .club-list a {
    white-space: nowrap;
    background: var(--bg);
  }
  .sidebar-note {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 140px 0 110px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.8)),
    url("https://images.unsplash.com/photo-1555597673-b21d5c935865?q=80&w=1800&auto=format&fit=crop")
      center/cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 34px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .hero {
    padding: 90px 0 70px;
  }
  .hero h1 {
    font-size: 32px;
  }
}

/* ---------- Section base ---------- */
section {
  padding: 88px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 46px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--slate);
  font-size: 16px;
}
.bg-soft {
  background: var(--bg);
}

/* ---------- Upcoming event (featured poster) ---------- */
.event-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.event-feature img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.event-feature-body {
  padding: 40px 44px 40px 0;
}
.event-feature-body .eyebrow {
  color: var(--orange);
}
.event-feature-body h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}
.event-feature-body p {
  color: var(--slate);
  margin-bottom: 22px;
}
.event-meta {
  display: flex;
  gap: 26px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.event-meta div {
  font-size: 13.5px;
  color: var(--slate);
}
.event-meta b {
  display: block;
  color: var(--navy);
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
}
@media (max-width: 820px) {
  .event-feature {
    grid-template-columns: 1fr;
  }
  .event-feature img {
    min-height: 220px;
  }
  .event-feature-body {
    padding: 8px 26px 34px;
  }
}

/* ---------- History ---------- */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.history-copy p {
  color: var(--slate);
  margin-bottom: 18px;
  font-size: 16px;
}
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.timeline li {
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}
.timeline b {
  font-family: "Montserrat", sans-serif;
  color: var(--blue);
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.timeline span {
  font-size: 14.5px;
  color: var(--slate);
}
@media (max-width: 820px) {
  .history-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Publications / Zen stories ---------- */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pub-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: 0.2s;
}
.pub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px -18px rgba(15, 23, 42, 0.25);
}
.pub-photo {
  height: 170px;
  background-size: cover;
  background-position: center;
}
.pub-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 18px 18px 0;
}
.pub-tag.tag-news,
.pub-tag.tag-articles {
  background: var(--blue-tint);
  color: var(--blue-dark);
}
.pub-tag.tag-zen,
.pub-tag.tag-dzen {
  background: var(--slate-light);
  color: var(--orange-dark);
}
.pub-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 12px 18px 8px;
}
.pub-card p {
  font-size: 14px;
  color: var(--slate);
  margin: 0 18px 22px;
}

.article-cover img,
.profile-photo img {
  width: 100% !important;
  height: auto !important;
}
@media (max-width: 960px) {
  .pub-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .pub-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  border-radius: 24px;
  padding: 60px 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h3 {
  font-size: 28px;
  font-weight: 800;
  max-width: 480px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  max-width: 440px;
}

/* ---------- Sub-nav (used on Confederation page) ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 30;
}
.subnav-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 0;
}
.subnav a {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
}
.subnav a:hover,
.subnav a.active {
  background: var(--blue-tint);
  color: var(--blue-dark);
}

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  font-size: 16px;
}

.doc-block {
  max-width: 820px;
}
.doc-block h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
}
.doc-block p{
  color: var(--slate);
  margin-bottom: 16px;
  font-size: 16px;
}
.doc-block ul.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 6px;
  list-style-image: url('/wp-content/themes/crag/assets/li.svg'); 
}
.doc-block ul.checklist li {
  
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--navy-soft);
}
svg {
  width: 24px;
  height: 24px;
  display: block;
}
.doc-block ul.checklist svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  stroke-width: 2.4;
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.board-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
}
.board-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}
.board-card b {
  display: block;
  font-size: 15.5px;
}
.board-card span {
  font-size: 13px;
  color: var(--slate);
}
@media (max-width: 820px) {
  .board-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.past-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.past-card .status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: #ecfdf3;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.past-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.past-card span {
  font-size: 13px;
  color: var(--slate);
}
@media (max-width: 820px) {
  .past-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .past-grid {
    grid-template-columns: 1fr;
  }
}

.essay {
  max-width: 760px;
}
.essay p {
  color: var(--navy-soft);
  font-size: 16.5px;
  margin-bottom: 20px;
}
.essay p.drop::first-letter {
  font-family: "Montserrat", sans-serif;
  font-size: 52px;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin: 6px 8px 0 0;
  color: var(--blue);
}

/* ---------- Club page ---------- */
.club-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.club-header img {
  border-radius: 20px;
  height: 340px;
  object-fit: cover;
}
.club-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}
.fact {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.fact b {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 4px;
}
.fact span {
  font-size: 14px;
  color: var(--slate);
}
@media (max-width: 820px) {
  .club-header {
    grid-template-columns: 1fr;
  }
  .club-header img {
    height: 220px;
  }
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}
.footer-logo svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  stroke-width: 5;
  fill: none;
}
.footer-grid h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.footer-grid ul a:hover {
  color: #fff;
}
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.social-row svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 36px 24px;
  }
  .cta-band h3 {
    font-size: 22px;
  }
}
