:root {
  color-scheme: light;
  --ink: #26221f;
  --soft-ink: #554f49;
  --muted: #857c72;
  --paper: #fffdf8;
  --paper-warm: #fbf3e5;
  --line: #d9b14a;
  --gold: #e6aa05;
  --gold-light: #ffd875;
  --gold-dark: #b98400;
  --field: #fcfbf8;
  --border: rgba(38, 34, 31, .26);
  --shadow: 0 16px 44px rgba(73, 54, 18, .08);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: 'EB Garamond', Georgia, "Times New Roman", serif;
  --font-display: var(--font-serif);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 92% 8%, rgba(232, 177, 18, .08), transparent 16rem),
    linear-gradient(90deg, #fffdfa 0%, #fbf7ef 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

.home-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 33.2%) minmax(270px, 20%) 1fr;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 83%, rgba(226, 176, 37, .12), transparent 12rem),
    radial-gradient(circle at 97% 16%, rgba(226, 176, 37, .09), transparent 16rem);
}

.login-column,
.nav-column,
.content-column {
  min-width: 0;
  height: 100vh;
}

.login-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(20px, 3.2vw, 36px) clamp(20px, 3vw, 36px) 24px;
  background: rgba(255, 255, 252, .88);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.login-column::-webkit-scrollbar {
  display: none;
}

/* Watermark Graphic Behind Login Panel */
.login-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 4vh 0 8vh;
  opacity: 0.038;
  user-select: none;
  overflow: hidden;
}

.watermark-word {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(80px, 7.5vw, 130px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #000000;
  line-height: 1;
  text-transform: uppercase;
}

.login-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

/* Brand Logo (Centered) */
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 6px;
  width: 100%;
}

.brand-logo {
  display: block;
  width: clamp(120px, 11vw, 150px);
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.sub-brand-tagline {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  color: #2e2a27;
  margin: 4px auto 20px;
  text-align: center;
  letter-spacing: -.01em;
}

/* Role Badges Box */
.role-badge-box {
  display: inline-flex;
  flex-direction: column;
  background: #000000;
  color: #ffffff;
  border-radius: 4px;
  padding: 6px 14px 7px;
  margin: 0 auto 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.role-badge-item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  padding: 2.5px 0;
  border-bottom: 1.5px solid #ffffff;
}

.role-badge-item:last-child {
  border-bottom: none;
}

.role-prefix {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
}

.role-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: #ffffff;
}

/* Google Sign-In Action Block */
.google-auth-block {
  width: 100%;
  margin: 0 auto 12px;
}

.google-signin-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 330px;
  height: 52px;
  margin: 0 auto 14px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 999px;
  color: #3c4043;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all .2s ease;
}

.google-signin-pill:hover {
  background: #f8f9fa;
  border-color: #c4c7cc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  color: #202124;
}

.google-signin-pill .google-icon {
  flex-shrink: 0;
}

.terms-notice {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: #494541;
  margin: 0 auto 24px;
  max-width: 320px;
  text-align: center;
}

.terms-notice strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-link,
.legal-link-btn {
  font-style: italic;
  font-weight: 700;
  text-decoration: underline;
  color: #1c1815;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s ease;
}

.legal-link:hover,
.legal-link-btn:hover {
  color: var(--gold-dark);
}

/* Golden Mission Quote */
.login-mission-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.45;
  color: #cf9b16;
  margin: 0 auto 24px;
  max-width: 320px;
  text-align: center;
  text-wrap: balance;
}

/* Pre-release Disclaimer */
.prerelease-disclaimer {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.45;
  color: #6e675f;
  margin: 0 auto 8px;
  text-align: center;
}

.prerelease-disclaimer p {
  margin: 0;
}

.login-form {
  width: min(100%, 340px);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 8% 83%, rgba(226, 176, 37, .12), transparent 12rem),
    radial-gradient(circle at 97% 16%, rgba(226, 176, 37, .09), transparent 16rem);
}

.auth-column {
  width: min(100%, 460px);
  min-height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 19px 4px 17px;
  color: #8c8780;
  font-size: 12px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(38, 34, 31, .17);
}

.form-error {
  margin: 0 0 15px;
  padding: 10px 13px;
  border: 1px solid rgba(197, 48, 48, .3);
  border-radius: 8px;
  background: rgba(197, 48, 48, .08);
  color: #c53030;
  font-size: 13px;
  line-height: 1.45;
}

.logged-in-panel {
  text-align: center;
}

.approval-banner,
.access-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.approval-banner i,
.access-banner i {
  flex: none;
  font-size: 14px;
}

.approval-banner {
  border: 1px solid rgba(217, 155, 10, .35);
  background: rgba(217, 155, 10, .1);
  color: #97690a;
}

.access-banner {
  border: 1px solid rgba(43, 138, 62, .3);
  background: rgba(43, 138, 62, .08);
  color: #237a3d;
}

/* M7b: login_error (wrong credentials, or — the case this exists for —
   a deactivated account's reason on their next Google sign-in attempt).
   No border, per house style: separated from the page by its own tinted
   background rather than a stroke. */
.login-error-msg {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(220, 38, 38, .1);
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.login-error-msg i {
  flex: none;
  font-size: 14px;
}

.welcome-message {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -.01em;
}

.social-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-actions a.social-button {
  text-decoration: none;
}

.social-actions button,
.social-actions .social-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(38, 34, 31, .12);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(38, 34, 31, .07);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.social-actions button:hover,
.social-actions .social-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(38, 34, 31, .1);
}

.social-actions button i,
.social-actions .social-button i {
  font-size: 20px;
  color: #1f1c19;
}

.social-button.is-disabled {
  opacity: .38;
  cursor: not-allowed;
  box-shadow: none;
}

.social-button.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.social-button.is-disabled i {
  color: #6d6259;
}

.continue-copy {
  margin: 10px 0 0;
  color: #77726d;
  text-align: center;
  font-size: 11px;
  letter-spacing: -.005em;
}

.characters-art {
  display: block;
  width: min(100%, 320px);
  max-height: clamp(160px, 25vh, 230px);
  margin: 14px auto 0;
  object-fit: contain;
}

footer {
  color: #77716b;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.005em;
  margin-top: auto;
}

footer p {
  margin: 0;
}

.mobile-scroll-cue {
  display: none;
}

.nav-toggle {
  display: none;
}

.nav-column {
  padding: clamp(42px, 5.5vw, 72px) 28px 52px;
  border-right: 2px solid var(--gold);
  background:
    linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .34)),
    var(--paper-warm);
  box-shadow: inset 1px 0 rgba(255, 255, 255, .7);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 163, 55, 0.35) transparent;
}

.side-block {
  padding: 0 0 33px;
  border-bottom: 1px solid rgba(207, 163, 55, .62);
}

.side-block+.side-block {
  margin-top: 29px;
}

.merchandise-block {
  border-top: 1px solid rgba(207, 163, 55, .62);
  padding-top: 29px;
}

.block-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
}

.block-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.book-icon,
.people-icon,
.info-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold);
  transition: color .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.block-heading:hover span {
  color: var(--gold-dark);
  transform: translateY(-1px) scale(1.02);
}

.book-icon::before {
  content: "";
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 5px 0 currentColor, inset 0 10px 0 currentColor, inset 0 15px 0 currentColor;
  transition: box-shadow .22s ease;
}

.people-icon::before {
  content: "";
  width: 24px;
  height: 16px;
  background: radial-gradient(circle at 8px 5px, currentColor 52%, transparent 53%), radial-gradient(circle at 16px 5px, currentColor 52%, transparent 53%), linear-gradient(currentColor 0 0) no-repeat 50% 100% / 18px 6px;
  border-radius: 999px 999px 10px 10px;
  transition: background .22s ease;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.block-heading:hover .book-icon::before {
  box-shadow: inset 0 5px 0 currentColor, inset 0 10px 0 currentColor, inset 0 15px 0 currentColor, 0 0 0 2px rgba(230, 170, 5, .16);
}

.block-heading:hover .people-icon::before {
  background:
    radial-gradient(circle at 8px 5px, currentColor 52%, transparent 53%),
    radial-gradient(circle at 16px 5px, currentColor 52%, transparent 53%),
    linear-gradient(currentColor 0 0) no-repeat 50% 100% / 18px 6px,
    radial-gradient(circle at center, rgba(230, 170, 5, .16) 45%, transparent 46%);
}

.block-heading:hover .info-icon {
  background: rgba(230, 170, 5, .12);
}


.link-list {
  display: grid;
  gap: 16px;
}

.link-list a {
  color: #24211f;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-wrap: balance;
  transition: color .2s ease;
}

.link-list a:hover {
  color: var(--gold-dark);
}

.link-list .active {
  color: var(--gold-dark);
  font-weight: 700;
}

.characters-block {
  padding-bottom: 30px;
}

.mission-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin: 24px 0 0;
  padding: 18px 18px 18px 13px;
  border: 1px solid rgba(207, 163, 55, .52);
  border-radius: 7px;
  background: rgba(255, 250, 236, .72);
  color: #332d27;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.005em;
}

.mission-card span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: .8;
}

.mission-card strong {
  color: var(--gold-dark);
}

.content-column {
  position: relative;
  padding: clamp(48px, 6vw, 76px) clamp(36px, 6vw, 84px) 64px;
  background-color: rgba(255, 255, 253, .72);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 163, 55, 0.35) transparent;
}

/* Custom Sleek Scrollbars for Nav and Content Columns */
.nav-column::-webkit-scrollbar,
.content-column::-webkit-scrollbar {
  width: 6px;
}

.nav-column::-webkit-scrollbar-track,
.content-column::-webkit-scrollbar-track {
  background: transparent;
}

.nav-column::-webkit-scrollbar-thumb,
.content-column::-webkit-scrollbar-thumb {
  background: rgba(207, 163, 55, 0.22);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-column:hover::-webkit-scrollbar-thumb,
.content-column:hover::-webkit-scrollbar-thumb {
  background: rgba(207, 163, 55, 0.45);
}

.nav-column::-webkit-scrollbar-thumb:hover,
.content-column::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.content-column::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/statement-shirts/shirts-bg.b175b777c674.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.content-column.merch-active::before {
  opacity: 0.09;
}

.giant-halo {
  position: absolute;
  top: 25px;
  right: 48px;
  width: clamp(130px, 19vw, 240px);
  aspect-ratio: 1.6;
  border: 16px solid rgba(230, 170, 5, .08);
  border-radius: 50%;
  transform: rotate(-25deg);
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 30px;
  height: 30px;
  color: rgba(230, 170, 5, .11);
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.sparkle::before {
  left: 14px;
  top: 0;
  width: 2px;
  height: 30px;
}

.sparkle::after {
  top: 14px;
  left: 0;
  width: 30px;
  height: 2px;
}

.sparkle-one {
  top: 76px;
  right: 23vw;
}

.sparkle-two {
  top: 150px;
  right: 7vw;
  transform: scale(.75);
}

.content-column header {
  position: relative;
  z-index: 1;
  max-width: 770px;
}

.article-stage {
  position: relative;
  z-index: 1;
  transition: opacity .24s ease, transform .24s ease;
}

.article-byline {
  display: none;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.byline-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.byline-person img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(38, 34, 31, .1);
}

.byline-person div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.byline-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.byline-role {
  color: var(--muted);
  font-size: 12px;
}

.article-hero {
  display: none;
  margin-bottom: 32px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(30, 27, 24, .12);
}

.article-header-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article-stage.is-switching {
  opacity: 0;
  transform: translateY(10px);
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
}

h1 span {
  color: var(--gold);
}

.rule {
  width: 60px;
  height: 2px;
  margin: 18px 0 24px;
  background: var(--gold);
}

.lead {
  max-width: 690px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.intro {
  max-width: 760px;
  margin: 25px 0 24px;
  color: #36312d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.005em;
}

.intro:has(> .section-heading:first-child) {
  margin-top: 0;
}

.article-quote {
  max-width: 620px;
  margin: 16px 0 22px;
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0;
}

.section-heading {
  display: block;
  margin: 22px 0 8px;
  font-size: 15px;
  letter-spacing: -.005em;
}

.article-copy {
  max-width: 740px;
  color: #1f1c19;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.005em;
}

.article-copy p {
  margin: 0 0 18px;
}

/* C4b/C4c uploaded video (bug fix): the player's `width`/`height`
 * attributes are the real pixel dimensions C4c's client-side probe read
 * off the file (see home/views.py::_expand_video_directives) — kept on
 * the element so the browser has an intrinsic aspect ratio and doesn't
 * shift the layout while the video loads. This CSS only caps the
 * *rendered* size to the article column's width; a 1080p+ upload no
 * longer overflows it. Applies wherever `.article-copy` renders a video —
 * the public article page and the console preview alike, since both
 * render through the same home/index.html template (see
 * workspace/views.py::workspace_content_preview).
 */
.article-copy video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
  border-radius: 8px;
  /* No hard border (house style: separate via container background, not
   * a stroke) — the shadow reads as a soft lift off the paper background
   * instead. */
  box-shadow: var(--shadow);
  background: var(--paper-warm);
}

/* C6e: uploaded audio player */
.article-copy audio {
  display: block;
  width: 100%;
  max-width: 740px;
  margin: 0 0 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--paper-warm);
}

.article-references {
  max-width: 740px;
  margin-top: 8px;
}

/* C6c: inline YouTube embeds — click-to-load poster. Tonal separation, not
 * a stroke (standing styling rule) — the box reads as a distinct surface
 * against the page purely by background color + inset shadow, matching the
 * console's --surface-field/--field-shadow pattern (static/css/workspace.css)
 * with this page's own token set. No background image / thumbnail is
 * fetched here — that would itself be a request to a YouTube-owned host
 * before the reader has opted in, defeating the point of this design. */
[data-youtube-id] {
  position: relative;
  display: block;
  width: 100%;
  max-width: 740px;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  border-radius: 10px;
  background: var(--paper-warm);
  box-shadow: inset 0 1px 2px rgba(38, 34, 31, .07);
  cursor: pointer;
}

[data-youtube-id]::before {
  content: "\25B6";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--paper);
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(73, 54, 18, .18);
  transform: translate(-50%, -50%);
  transition: transform .15s ease;
}

[data-youtube-id]:hover::before {
  transform: translate(-50%, -50%) scale(1.06);
}

[data-youtube-id]:focus-visible {
  outline: none;
  box-shadow: inset 0 1px 2px rgba(38, 34, 31, .07), 0 0 0 3px rgba(230, 170, 5, .45);
}

[data-youtube-id].is-playing {
  cursor: default;
  background: #000;
}

[data-youtube-id].is-playing::before {
  display: none;
}

[data-youtube-id] iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.article-references h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.article-references ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.article-references li {
  margin-bottom: 8px;
}

.article-references a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.article-references a:hover {
  color: var(--gold);
}

.article-references li {
  border-radius: 6px;
  transition: background-color .6s ease;
}

.citation-link {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.citation-link:hover {
  text-decoration: underline;
}

.citation-highlight {
  background-color: rgba(230, 170, 5, .18);
}

.read-more-label {
  margin: 8px 0 0;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
}

/* Tablet & Small Laptop: 2-column layout (Fixed login on left, Nav bar + Content on right) */
@media (min-width: 769px) and (max-width: 1240px) {
  .home-page {
    display: grid;
    grid-template-columns: minmax(280px, 33%) 1fr;
    grid-template-rows: max-content 1fr;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .login-column {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    padding: clamp(24px, 3vw, 36px) clamp(18px, 2.5vw, 32px) 20px;
    background: rgba(255, 255, 252, .78);
  }

  .nav-column {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: auto;
    overflow: visible;
    order: unset;
    position: relative;
    border-top: none;
    border-right: none;
    border-bottom: 2px solid var(--gold);
    padding: 14px 28px;
    background: var(--paper-warm);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    padding: 0 20px;
    background: #ffffff;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230, 170, 5, 0.12);
    transition: all .2s ease;
  }

  .nav-toggle:hover {
    background: var(--paper-warm);
    border-color: var(--gold-dark);
  }

  .nav-toggle-icon {
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--gold-dark);
    border-bottom: 2.5px solid var(--gold-dark);
    transform: rotate(45deg);
    transition: transform .25s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    transform: rotate(-135deg);
  }

  .nav-menu-body {
    max-height: 0;
    overflow-y: auto;
    transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(207, 163, 55, 0.35) transparent;
  }

  .nav-menu-body::-webkit-scrollbar {
    width: 6px;
  }

  .nav-menu-body::-webkit-scrollbar-thumb {
    background: rgba(207, 163, 55, 0.35);
    border-radius: 999px;
  }

  .nav-menu-body.is-open {
    height: calc(100vh - 92px);
    max-height: calc(100vh - 92px);
    padding: 20px 14px 48px;
    border-top: 1px solid rgba(207, 163, 55, 0.3);
    margin-top: 12px;
  }

  .nav-menu-body>.side-block:first-child {
    margin-top: 4px;
  }

  .side-block {
    margin: 0;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(207, 163, 55, .62);
  }

  .side-block+.side-block,
  .mission-card {
    margin-top: 22px;
  }

  .content-column {
    grid-column: 2;
    grid-row: 2;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: clamp(32px, 4.5vw, 56px) clamp(24px, 4vw, 48px) 64px;
    scrollbar-width: thin;
    scrollbar-color: rgba(207, 163, 55, 0.35) transparent;
  }
}

/* Mobile: Single Column Stacked */
@media (max-width: 768px) {
  .home-page {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    overflow: visible;
    min-height: 100vh;
  }

  .login-column {
    order: 1;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: clamp(28px, 5vw, 40px) 20px 24px;
    background: rgba(255, 255, 252, .9);
  }

  .login-watermark {
    padding: 30px 0 40px;
    opacity: 0.048;
  }

  .watermark-word {
    font-size: clamp(100px, 28vw, 150px);
    letter-spacing: 0.06em;
  }

  .brand {
    margin-bottom: 20px;
  }

  .brand-logo {
    width: clamp(140px, 28vw, 180px);
    height: auto;
  }

  .characters-art {
    width: min(100%, 360px);
    max-height: none;
    margin: 18px auto 12px;
  }

  .nav-column {
    order: 2;
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 12px 18px;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    border-right: none;
    background: rgba(253, 247, 235, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(73, 54, 18, 0.08);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    padding: 0 18px;
    background: #ffffff;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230, 170, 5, 0.15);
    transition: all .2s ease;
  }

  .nav-toggle:hover {
    background: var(--paper-warm);
    border-color: var(--gold-dark);
  }

  .nav-toggle-icon {
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--gold-dark);
    border-bottom: 2.5px solid var(--gold-dark);
    transform: rotate(45deg);
    transition: transform .25s ease;
    margin-right: 2px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    transform: rotate(-135deg);
  }

  .nav-menu-body {
    max-height: 0;
    overflow-y: auto;
    transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(207, 163, 55, 0.35) transparent;
  }

  .nav-menu-body::-webkit-scrollbar {
    width: 6px;
  }

  .nav-menu-body::-webkit-scrollbar-thumb {
    background: rgba(207, 163, 55, 0.35);
    border-radius: 999px;
  }

  .nav-menu-body.is-open {
    height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    padding: 18px 8px 48px;
    border-top: 1px solid rgba(207, 163, 55, 0.3);
    margin-top: 12px;
  }

  .nav-menu-body>.side-block:first-child {
    margin-top: 4px;
  }

  .side-block {
    margin: 0;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(207, 163, 55, .62);
  }

  .side-block+.side-block,
  .mission-card {
    margin-top: 22px;
  }

  .content-column {
    order: 3;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 32px 18px 48px;
  }

  .mobile-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin: 18px auto 6px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
  }

  .mobile-scroll-cue span {
    color: #8c857b;
    font-size: 13px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.005em;
    text-align: center;
    line-height: 1.4;
    transition: color .2s ease;
  }

  .mobile-scroll-cue .mobile-scroll-arrow {
    color: var(--gold);
    transition: transform .2s ease, color .2s ease;
    animation: bounceDown 2s ease-in-out infinite;
  }

  .mobile-scroll-cue:hover span,
  .mobile-scroll-cue:active span {
    color: var(--ink);
  }

  .mobile-scroll-cue:hover .mobile-scroll-arrow,
  .mobile-scroll-cue:active .mobile-scroll-arrow {
    color: var(--gold-dark);
  }

  @keyframes bounceDown {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(5px);
    }
  }

  .giant-halo {
    right: -20px;
    opacity: .7;
  }

  .intro {
    font-size: 15px;
  }
}

@media (max-width: 440px) {
  .brand-logo {
    width: 178px;
    height: 178px;
  }

  .login-form {
    width: 100%;
  }

  .social-actions {
    gap: 12px;
  }

  .social-actions button,
  .social-actions .social-button {
    width: 44px;
    height: 44px;
  }
}

/* Statement shirts showcase */
.merch-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 12px;
}

.merch-title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 3em;
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--ink);
}

.merch-shirt-image {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: clamp(-56px, -5vw, -24px) auto 0;
  object-fit: contain;
  transition: opacity .5s ease;
  pointer-events: none;
}

.merch-description {
  max-width: 560px;
  margin: 4px auto 28px;
  text-align: center;
  font-weight: 600;
  color: var(--soft-ink);
  line-height: 1.5;
}

.carousel-thumbs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
}

.carousel-thumbs {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  justify-content: center;
  scrollbar-width: none;
}

.carousel-thumbs::-webkit-scrollbar {
  display: none;
}

.carousel-thumbs .thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--paper-warm);
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity .2s ease, border-color .2s ease;
}

.carousel-thumbs .thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

.carousel-nav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.carousel-nav:hover {
  background: var(--paper);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.quote-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 15px;
  transition: color .22s ease, transform .22s ease;
}

.quote-icon::before {
  content: "\f10d";
}

.article-gallery {
  max-width: 740px;
  margin: 12px 0 28px;
  padding: 20px 18px;
  background: linear-gradient(150deg, #2c2621 0%, #1c1815 100%);
  border-radius: 20px;
  box-shadow: 0 14px 34px -4px rgba(38, 30, 24, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.article-gallery::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 15%, rgba(230, 170, 5, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.gallery-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  touch-action: pan-y;
  cursor: grab;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gallery-main.is-dragging {
  cursor: grabbing;
}

.gallery-main-image {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background: transparent;
  transition: transform .22s cubic-bezier(0.2, 0, 0, 1), opacity .2s ease;
  pointer-events: none;
}

.gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 4px 12px;
  background: rgba(28, 24, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f7ca55;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: opacity .2s ease;
}

.gallery-main .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.gallery-main .gallery-nav.prev {
  left: 12px;
}

.gallery-main .gallery-nav.next {
  right: 12px;
}

.gallery-nav {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 38, 33, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f7ca55;
  border: none;
  border-radius: 50%;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gallery-nav:hover {
  background: #f7ca55;
  color: #1e1812;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 18px rgba(247, 202, 85, 0.45);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gallery-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

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

.gallery-thumb:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: #f7ca55;
  box-shadow: 0 0 0 2px rgba(247, 202, 85, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Social share section */
.social-share-section {
  margin: 32px 0 16px;
  padding: 20px 22px;
  background: rgba(255, 250, 236, .85);
  border: 1px solid rgba(207, 163, 55, .45);
  border-radius: 14px;
  text-align: center;
}

.social-share-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.social-share-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-share-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.social-share-btn i {
  font-size: 14px;
  line-height: 1;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(73, 54, 18, .12);
}

.social-share-btn:active {
  transform: translateY(0);
}

.social-share-btn.facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.social-share-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
}

.social-share-btn.x-twitter:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.social-share-btn.linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}

.social-share-btn.copy-link:hover {
  background: var(--gold-dark);
  color: #ffffff;
  border-color: var(--gold-dark);
}

/* QuoteZ hashtag and date badge */
.quotez-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(230, 170, 5, .15);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
}

.quotez-hashtag {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 600;
  margin-right: 4px;
}

/* QuoteZ Special Sidebar Card */
.side-block.quotez-sidebar-card {
  padding: 0;
  border-bottom: none;
  margin-bottom: 24px;
}

.quotez-card-inner {
  background: linear-gradient(150deg, #2c2621 0%, #1c1815 100%);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 12px 32px -4px rgba(38, 30, 24, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.quotez-card-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 20%, rgba(230, 170, 5, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.quotez-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.quotez-heading h2 {
  color: #f7ca55;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 1px 8px rgba(247, 202, 85, 0.3);
}

.quotez-link-list {
  display: grid;
  gap: 14px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quotez-link-list a {
  display: block;
  text-align: center;
  color: #dfd8cf;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.38;
  padding: 8px 12px;
  border-radius: 10px;
  text-wrap: balance;
  transition: all .22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quotez-link-list a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.quotez-link-list a.active {
  color: #1e1812;
  font-weight: 700;
  background: linear-gradient(135deg, #f7ce5f 0%, #e5a718 100%);
  box-shadow: 0 4px 14px rgba(229, 167, 24, 0.38);
  transform: translateY(-1px);
}

/* Toast notification */
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #26221f;
  color: #fffdf8;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity .3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------------- Profile builder ---------------- */

.profile-progress-mini {
  margin: 0 0 18px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(38, 34, 31, .1);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width .3s ease;
}

.profile-progress-mini p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.005em;
}

.profile-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  padding-left: 36px;
  padding-bottom: 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: -4px;
  width: 2px;
  background: rgba(38, 34, 31, .15);
}

.timeline-item.done:not(:last-child)::before {
  background: var(--gold);
}

.timeline-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 2px solid rgba(38, 34, 31, .22);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.timeline-item.done .timeline-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.timeline-item.active .timeline-dot {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(230, 170, 5, .16);
}

.timeline-item.active.done .timeline-dot {
  color: #fff;
}

.timeline-label {
  color: var(--soft-ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.005em;
}

.timeline-item.active .timeline-label {
  color: var(--ink);
  font-weight: 700;
}

.step-eyebrow {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-stage {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

/* Overview / summary cards */

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.summary-card {
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.summary-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.summary-card-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.summary-card-head h3 i {
  color: var(--gold-dark);
  font-size: 14px;
}

.edit-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.edit-link:hover {
  color: var(--gold);
}

.summary-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.summary-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.summary-list dt {
  color: var(--muted);
  font-weight: 500;
}

.summary-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.summary-bio {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--soft-ink);
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
}

.summary-entries {
  display: grid;
  gap: 14px;
}

.summary-entry+.summary-entry {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.entry-title {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.entry-sub {
  margin: 2px 0 0;
  color: var(--gold-dark);
  font-size: 12.5px;
  font-weight: 600;
}

.entry-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.summary-label {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.summary-label:first-of-type {
  margin-top: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid rgba(207, 163, 55, .5);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 600;
}

.tag-pill.mentor {
  background: rgba(38, 34, 31, .05);
  border-color: rgba(38, 34, 31, .18);
  color: var(--ink);
}

.tag-pill.mentee {
  background: rgba(230, 170, 5, .1);
}

/* Step forms */

.profile-form {
  margin-top: 8px;
}

.profile-form label {
  display: block;
  margin: 0 0 6px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
}

.profile-form input[type="text"],
.profile-form input[type="date"],
.profile-form input[type="tel"],
.profile-form select,
.profile-form textarea {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--field);
  box-shadow: inset 0 1px 2px rgba(38, 34, 31, .07);
  color: var(--ink);
  padding: 0 13px;
  font-size: 14px;
  outline: 0;
  transition: box-shadow .15s ease;
}

.profile-form input[type="text"],
.profile-form input[type="date"],
.profile-form input[type="tel"],
.profile-form select {
  height: 42px;
}

.profile-form textarea {
  padding: 12px 13px;
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  box-shadow: inset 0 1px 2px rgba(38, 34, 31, .07), 0 0 0 3px rgba(230, 170, 5, .32);
}

.field {
  margin-bottom: 20px;
}

.field-row {
  margin-bottom: 4px;
}

.field-row.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checkbox-field {
  display: flex;
  align-items: flex-end;
}

.inline-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--soft-ink) !important;
}

.inline-checkbox input,
.checkbox-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 7px;
  background: var(--field);
  box-shadow: inset 0 1px 2px rgba(38, 34, 31, .07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.inline-checkbox input::after,
.checkbox-grid input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2.5px solid var(--paper);
  border-bottom: 2.5px solid var(--paper);
  transform: rotate(45deg) translate(-1px, -1px) scale(0);
  transition: transform .12s ease;
}

.inline-checkbox input:checked,
.checkbox-grid input[type="checkbox"]:checked {
  background: var(--gold-dark);
  box-shadow: none;
}

.inline-checkbox input:checked::after,
.checkbox-grid input[type="checkbox"]:checked::after {
  transform: rotate(45deg) translate(-1px, -1px) scale(1);
}

.inline-checkbox input:focus-visible,
.checkbox-grid input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: inset 0 1px 2px rgba(38, 34, 31, .07), 0 0 0 3px rgba(230, 170, 5, .32);
}

.inline-checkbox input:checked:focus-visible,
.checkbox-grid input[type="checkbox"]:checked:focus-visible {
  box-shadow: 0 0 0 3px rgba(230, 170, 5, .32);
}

@media (prefers-reduced-motion: reduce) {
  .inline-checkbox input,
  .checkbox-grid input[type="checkbox"],
  .inline-checkbox input::after,
  .checkbox-grid input[type="checkbox"]::after {
    transition: none;
  }
  .profile-form textarea {
    transition: none;
  }
}

/* Steps 6/7 (Social Networks Today, Why HelpeerZ): the builder's first
   large free-text areas. Same borderless/tonal treatment as every other
   field above -- separated by background + inset shadow, never a
   stroke -- just taller, plus a short line of copy explaining why we ask. */
.step-hint {
  margin: 0 0 18px;
  padding: 12px 15px;
  background: var(--paper-warm);
  border-radius: 10px;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.5;
}

.profile-form textarea.profile-longtext {
  min-height: 150px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px 16px;
  margin-bottom: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  background: var(--paper-warm);
  border-radius: 10px;
}

/* "Others" reveal field under a checkbox grid — hidden state managed via
   [hidden] attr only, to avoid CSS specificity fights (same bug class as
   task #32). */
.other-field {
  margin-top: -4px;
  margin-bottom: 20px;
}

.other-field[hidden] {
  display: none !important;
}

.checkbox-grid label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 5px 0;
  color: var(--soft-ink) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.repeat-rows {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.repeat-row {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  transition: opacity .2s ease;
}

.repeat-row.marked-delete {
  opacity: .4;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.remove-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  color: #c53030;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.remove-row input[type="checkbox"] {
  display: none;
}

.remove-row:hover {
  color: #a02626;
}

.add-row-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: none;
  padding: 12px 16px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.add-row-btn:hover {
  border-color: var(--gold);
  background: rgba(230, 170, 5, .06);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
}

.btn-secondary {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

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

.btn-primary {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  background: #0d0d0b;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  box-shadow: 0 5px 13px rgba(0, 0, 0, .18);
  transition: opacity .15s ease;
}

.btn-primary:hover {
  opacity: .88;
}

@media (max-width: 820px) {
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .field-row.two-col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Privacy Promise Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 18, 14, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background:
    linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .4)),
    var(--paper-warm);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  padding: clamp(28px, 4.5vw, 40px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform .25s cubic-bezier(0.2, 0, 0, 1);
}

.modal-overlay.is-visible .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(207, 163, 55, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: all .15s ease;
}

.modal-close-btn:hover {
  background: #ffffff;
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: scale(1.05);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(207, 163, 55, 0.4);
}

/* ==========================================================================
   Privacy Acceptance Status Banner
   ========================================================================== */
.privacy-acceptance-banner {
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.privacy-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.4;
  transition: all .25s ease;
}

.privacy-status-box.is-accepted {
  background: rgba(46, 133, 64, 0.08);
  border: 1.5px solid rgba(46, 133, 64, 0.28);
  color: #1b6d31;
}

.privacy-status-box.is-accepted i {
  font-size: 16px;
  color: #28a745;
  margin-right: 6px;
}

.privacy-status-box.is-pending {
  background: rgba(207, 163, 55, 0.1);
  border: 1.5px solid rgba(207, 163, 55, 0.45);
  color: #4a3810;
}

.privacy-pending-left,
.privacy-accepted-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-pending-left i {
  font-size: 17px;
  color: var(--gold-dark);
}

.privacy-pending-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-review-terms {
  padding: 6px 14px;
  border: 1px solid rgba(207, 163, 55, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}

.btn-review-terms:hover {
  background: #ffffff;
  border-color: var(--gold-dark);
}

.btn-accept-terms {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  background: #000000;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all .15s ease;
}

.btn-accept-terms:hover {
  background: #1c1815;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

/* ==========================================================================
   Terms Stage Action Footer
   ========================================================================== */
.terms-stage-action-bar {
  margin-top: 36px;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(22, 18, 14, 0.96), rgba(36, 28, 20, 0.98));
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 0 16px rgba(207, 163, 55, 0.12);
  position: relative;
  overflow: hidden;
}

.terms-stage-action-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.terms-action-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.terms-action-bar-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5f0e6;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
}

.terms-action-bar-text i {
  color: var(--gold);
  font-size: 17px;
}

.btn-terms-accept-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  background: #000000;
  color: #ffd875;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none;
}

.btn-terms-accept-action .btn-terms-accept-label {
  color: #ffd875;
  font-weight: 700;
  transition: color 0.2s ease;
}

.btn-terms-accept-action:hover {
  background: #1c1815;
  border-color: #ffe08c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 170, 5, 0.4);
}

.btn-terms-accept-action:hover .btn-terms-accept-label {
  color: #ffffff;
}

.btn-terms-accept-action i {
  font-size: 13px;
  color: #ffd875;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-terms-accept-action:hover i {
  color: #ffffff;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .terms-action-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-terms-accept-action {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .privacy-status-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .privacy-pending-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.modal-mini-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}


.modal-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 27px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.modal-content {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
}

.modal-lead {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.modal-bullet-list {
  margin: 0 0 20px 4px;
  padding-left: 20px;
  list-style-type: disc;
}

.modal-bullet-list li {
  margin-bottom: 8px;
  line-height: 1.55;
  color: #2f2a26;
}

.modal-bullet-list li::marker {
  color: var(--gold-dark);
}

.modal-content p {
  margin: 0 0 16px;
  color: #3b3530;
}

.modal-content p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--ink);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(207, 163, 55, 0.3);
}

.modal-full-policy-link {
  margin-right: auto;
  align-self: center;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: underline;
  cursor: pointer;
  transition: color .15s ease;
}

.modal-full-policy-link:hover {
  color: var(--ink);
}

.modal-btn-confirm {
  padding: 10px 24px;
  background: #000000;
  color: var(--gold);
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: all .15s ease;
}

.modal-btn-confirm:hover {
  background: #1c1815;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Terms & Privacy Center Tabbed Interface
   ========================================================================== */
.terms-stage {
  animation: fadeIn .3s ease;
  padding-bottom: 48px;
}

.terms-stage-header {
  margin-bottom: 28px;
}

.terms-stage-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.15;
}

.terms-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 16px;
  margin-bottom: 32px;
  border-bottom: 1.5px solid rgba(207, 163, 55, 0.4);
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 163, 55, 0.35) transparent;
}

.terms-tabs-nav::-webkit-scrollbar {
  height: 5px;
}

.terms-tabs-nav::-webkit-scrollbar-thumb {
  background: rgba(207, 163, 55, 0.35);
  border-radius: 999px;
}

.terms-tab-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1.5px solid rgba(207, 163, 55, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s ease;
}

.terms-tab-btn:hover {
  background: #ffffff;
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.terms-tab-btn.active {
  background: #000000;
  border-color: #000000;
  color: var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.terms-panes-container {
  position: relative;
  transition: opacity .18s cubic-bezier(0.4, 0, 0.2, 1), transform .18s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-panes-container.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.terms-tab-pane {
  display: none;
}

.terms-tab-pane.active {
  display: block;
  animation: fadeIn .22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.terms-tab-pane h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.terms-tab-pane .lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 400;
  line-height: 1.45;
  color: #7f581b;
  margin-bottom: 26px;
}

.terms-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(207, 163, 55, 0.25);
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-section h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.terms-section p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: #2d2824;
}

.terms-paragraph {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: #2d2824;
}

.terms-bullet-list {
  margin: 0 0 20px 4px;
  padding-left: 20px;
  list-style-type: disc;
}

.terms-bullet-list li {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: #2d2824;
}

.terms-bullet-list li::marker {
  color: var(--gold-dark);
}

.terms-box {
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1.5px solid;
}

.danger-box {
  background: rgba(197, 48, 48, 0.05);
  border-color: rgba(197, 48, 48, 0.25);
}

.danger-box h3 {
  color: #a32222;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 12px;
}

.success-box {
  background: rgba(46, 133, 64, 0.05);
  border-color: rgba(46, 133, 64, 0.25);
}

.success-box h3 {
  color: #1b6d31;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 12px;
}