/* ==========================================================================
   Catholic Turing Test (CTT:AI) — Global Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #07090f;
  --bg-primary-rgb: 7, 9, 15;
  --bg-surface: #0d1117;
  --bg-elevated: #131920;
  --text-primary: #f0ece4;
  --text-secondary: rgba(240, 236, 228, 0.68);
  --text-muted: rgba(240, 236, 228, 0.3);
  --accent-gold: #c9a84c;
  --accent-gold-rgb: 201, 168, 76;
  --accent-blue: #3d6eba;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(201, 168, 76, 0.4);
  --error: #e05c5c;

  --hero-image: url('/static/img/hero.jpg');
}

/* --------------------------------------------------------------------- */
/* Reset                                                                  */
/* --------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
  outline: 1px solid var(--accent-gold);
  outline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

input {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.05;
}

/* --------------------------------------------------------------------- */
/* Layout helpers                                                        */
/* --------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

section {
  padding: 120px 0;
}

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

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13.75px;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .container {
    padding: 0 20px;
  }
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 36px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-primary {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

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

.btn-secondary {
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------- */
/* Overlay utility — for full-bleed background images                    */
/* --------------------------------------------------------------------- */

.bg-overlay {
  position: relative;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Slightly deepened from 0.5/0.85 as part of the same desaturation
     experiment above — to revert, restore those two values. */
  background: linear-gradient(to bottom, rgba(var(--bg-primary-rgb), 0.55), rgba(var(--bg-primary-rgb), 0.88));
  z-index: 1;
}

.bg-overlay > * {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------- */
/* Public Nav                                                             */
/* --------------------------------------------------------------------- */

.public-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(var(--bg-primary-rgb), 0);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.public-nav.scrolled {
  background: rgba(var(--bg-primary-rgb), 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.public-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.public-nav-links {
  display: flex;
  gap: 36px;
}

.public-nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.public-nav-links a:hover,
.public-nav-links a.active {
  color: var(--text-primary);
}

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

.public-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin: 0 -8px;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .public-nav-toggle {
    display: flex;
    align-items: center;
  }

  .public-nav-links {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-surface);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .public-nav-links.open {
    max-height: 400px;
    border-bottom: 1px solid var(--border);
  }

  .public-nav-links a {
    width: 100%;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
  }
}

/* Fixed nav is 88px tall; anchor targets need matching scroll offset so the
   nav doesn't cover the section heading when a link jumps to it. */
section[id] {
  scroll-margin-top: 88px;
}

.logotype {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* Nav logo, top-left of the page: 20% larger than the base wordmark
   (used elsewhere in the footer), then another 10% on top of that
   for more presence. */
.public-nav .logotype,
.member-nav .logotype {
  font-size: 29.04px;
}

.logotype .colon {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------- */
/* Member Nav                                                             */
/* --------------------------------------------------------------------- */

.member-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.member-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.member-nav-links {
  display: flex;
  gap: 40px;
}

.member-nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 26px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}

.member-nav-links a:hover {
  color: var(--text-primary);
}

.member-nav-links a.active {
  color: var(--accent-gold);
  border-bottom: 1px solid var(--accent-gold);
}

.member-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.member-nav-right #user-display-name {
  color: var(--text-secondary);
}

.member-nav-right button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.member-nav-right button:hover {
  color: var(--text-primary);
}

.member-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin: 0 -8px;
  color: var(--text-primary);
  cursor: pointer;
}

body.has-member-nav {
  padding-top: 72px;
}

@media (max-width: 1024px) {
  .member-nav-toggle {
    display: flex;
    align-items: center;
  }

  .member-nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-surface);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .member-nav-links.open {
    max-height: 400px;
    border-bottom: 1px solid var(--border);
  }

  .member-nav-links a {
    width: 100%;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
  }
}

/* --------------------------------------------------------------------- */
/* Hero (index.html)                                                     */
/* --------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-surface);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--hero-image);
  background-size: 3px 3px, cover;
  background-position: center 38%;
  /* Slight desaturation experiment — pulls the fresco/wireframe colors
     toward the site's near-monochrome palette so the image reads less
     busy. To revert: remove this filter line. Original had none. */
  filter: saturate(0.75);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-align: center;
  margin: 0 auto 0.4in;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 8.5vw, 104px);
  color: var(--text-primary);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 28px;
}

.hero h1 .dot {
  color: var(--accent-gold);
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 20px;
}

.hero-latin {
  display: block;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 17.325px;
  color: rgba(240, 236, 228, 0.7);
  letter-spacing: 0.02em;
  margin: 0 auto 40px;
  opacity: 0;
  animation: heroLatinFadeIn 1.4s ease-out 1.2s forwards;
}

@keyframes heroLatinFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  animation: bob 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* Blueprint-style framing marks — subtle mission-control corner registration. */

.hero-frame-mark {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
}

.hero-frame-mark::before,
.hero-frame-mark::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
}

.hero-frame-mark::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.hero-frame-mark::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.hero-frame-mark.tl { top: 32px; left: 32px; }
.hero-frame-mark.tr { top: 32px; right: 32px; }
.hero-frame-mark.bl { bottom: 96px; left: 32px; }
.hero-frame-mark.br { bottom: 96px; right: 32px; }

@media (max-width: 768px) {
  .hero-frame-mark {
    display: none;
  }
}

/* --------------------------------------------------------------------- */
/* Pull Quote                                                             */
/* --------------------------------------------------------------------- */

.quote-section {
  background: var(--bg-primary);
  text-align: center;
}

.quote-block {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.quote-rule {
  width: 48px;
  height: 1px;
  background: var(--accent-gold);
  margin: 0 auto 40px;
}

.quote-rule.bottom {
  margin: 40px auto 0;
}

/* When a quote-rule follows body copy directly (e.g. the community pull-quote),
   it needs its own top gap — otherwise it sits flush under the last centered
   line of text and reads as a stray underline. */
.prose-body + .quote-rule {
  margin-top: 40px;
}

.quote-block blockquote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--text-primary);
  line-height: 1.5;
}

.quote-attribution {
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------- */
/* Prose sections (THE QUESTION, WHY NOW, THE APPROACH, etc.)            */
/* --------------------------------------------------------------------- */

/* Fills the full viewport height at any screen size, content centered. */
.section-fill {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.section-fill .container {
  width: 100%;
}

.prose-lede {
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--text-primary);
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-wrap: balance;
  max-width: 820px;
  margin-bottom: 32px;
}

.prose-body {
  max-width: 720px;
}

.prose-body p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.prose-body p:last-child {
  margin-bottom: 0;
}

.pull-line {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text-primary);
  line-height: 1.5;
}

/* .prose-body p sets margin-bottom: 20px with equal specificity (class+element
   vs. class alone), which was silently overriding just the bottom half of
   this margin — giving 32px above the line but only 20px below it. */
.prose-body p.pull-line {
  margin: 32px 0;
}

.prose-subhead {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 56px 0 24px;
}

/* Centered variant — sections 01-03 and 04-07. Text blocks that carry a
   max-width need margin:auto too, or centered text just hugs the left
   edge of the wider container. The Working Groups table is deliberately
   left out: centered table cells would hurt readability. */

.prose-center .section-label,
.prose-center .prose-subhead {
  text-align: center;
}

.prose-center .prose-lede,
.prose-center .prose-body,
.prose-center .pull-line {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.table-scroll {
  overflow-x: auto;
}

/* Research Cycle interlude — reuses .quote-section's centered, rule-bracketed treatment. */

.research-cycle-section .prose-lede {
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
}

.research-cycle-note {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* The Stakes — 2x2 grid, centered as a block; each item's text centered */

.stakes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.stakes-item {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.stakes-item h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stakes-item p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* The Vision — numbered list, centered: numeral stacked above its statement */

.vision-list {
  list-style: none;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.vision-list li {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.vision-list li:first-child {
  border-top: 1px solid var(--border);
}

.vision-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.vision-list p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Support CTT — centered list, divided by thin rules instead of a left marker */

.support-list {
  list-style: none;
  max-width: 620px;
  margin: 0 auto 20px;
  text-align: center;
}

.support-list li {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.support-list li:first-child {
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13.8px;
}

.footer-brand .logotype {
  font-size: 25.3px;
}

.footer-email {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13.8px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--text-primary);
}

.footer-org {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13.8px;
  color: var(--text-secondary);
}

.footer-motto {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13.8px;
  color: var(--text-secondary);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16.1px;
}

.footer-col-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12.65px;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.footer-col a {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14.95px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------- */
/* Login Page                                                             */
/* --------------------------------------------------------------------- */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-primary);
  background-image: radial-gradient(rgba(var(--accent-gold-rgb), 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 40px 20px;
}

.login-card {
  width: 420px;
  max-width: 100%;
  padding: 56px 48px;
  background: var(--bg-surface);
}

.login-card .logotype {
  display: block;
  text-align: center;
  font-size: 24px;
}

.login-divider {
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.login-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-group input,
.search-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.search-input:focus {
  border-color: var(--accent-gold);
}

#error-msg {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--error);
  margin-top: 16px;
  min-height: 1px;
}

/* --------------------------------------------------------------------- */
/* Landing / Coming Soon Page                                             */
/* --------------------------------------------------------------------- */

.landing-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-primary);
  background-image: radial-gradient(rgba(var(--accent-gold-rgb), 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 40px 20px;
  text-align: center;
}

.landing-content {
  max-width: 480px;
}

.landing-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 72px);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1;
}

.landing-colon {
  color: var(--accent-gold);
}

.landing-tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 20px 0 0;
}

.landing-status {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 48px 0 0;
}

.landing-contact {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17.5px;
  color: var(--text-muted);
  margin: 16px 0 0;
}

.landing-contact a {
  color: var(--accent-gold);
  transition: color 0.2s ease;
}

.landing-contact a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------- */
/* Member Portal — shared                                                 */
/* --------------------------------------------------------------------- */

.member-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.member-hero h1 {
  font-size: 48px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.member-hero .welcome-msg {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.member-hero .current-date {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
}

.member-section {
  padding: 80px 0;
}

.member-section .section-label {
  margin-bottom: 32px;
}

.member-section h1 {
  font-size: 44px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.member-section h1 + p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .member-section {
    padding: 48px 0;
  }
}

/* Quick links grid */

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tile {
  background: var(--bg-surface);
  padding: 32px;
  border-top: 2px solid var(--border);
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tile:hover {
  border-top-color: var(--accent-gold);
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tile-head svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.tile-head span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.tile p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.tile-cta {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Announcements */

.announcement {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
}

.announcement .announcement-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.announcement-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.announcement-body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .announcement {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Search input reuses .form-group input styling (see Login Page section); only the spacing differs. */

.search-input {
  margin-bottom: 40px;
}

/* Directory table */

.directory-table {
  width: 100%;
  border-collapse: collapse;
}

.directory-table thead th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  text-align: left;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.directory-table tbody td {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--text-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.directory-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.directory-table tbody tr td {
  padding-left: 12px;
  padding-right: 12px;
}

.directory-table tbody tr td:first-child {
  padding-left: 0;
}

.directory-loading,
.directory-empty {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--text-muted);
  padding: 24px 0;
}

.role-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.role-badge.role-admin {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.role-badge.role-staff {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Calendar page */

.calendar-placeholder {
  text-align: center;
  padding: 80px 0;
}

.calendar-placeholder p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Resources page */

.resource-category {
  margin-bottom: 64px;
}

.resource-category h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.resource-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.resource-item-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text-primary);
}

.resource-item-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.resource-item a.resource-link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .resource-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .resource-item-meta,
  .resource-item a.resource-link {
    white-space: normal;
  }
}

/* Community page */

.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.group-card {
  background: var(--bg-surface);
  padding: 32px;
  border-top: 2px solid var(--border);
}

.group-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.group-card p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.group-card .group-count {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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