:root {
  color-scheme: light;
  --ink: #26221f;
  --soft-ink: #554f49;
  --muted: #857c72;
  --paper: #fffdf8;
  --paper-warm: #fbf3e5;
  --line: #d9b14a;
  --gold: #e6aa05;
  --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-display: 'Inter Tight', var(--font-sans);
}

* {
  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;
  min-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;
  min-height: 100vh;
}

.login-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 5.6vw, 86px) clamp(30px, 5vw, 72px) 28px;
  background: rgba(255, 255, 252, .78);
}

.brand {
  display: grid;
  justify-items: center;
  margin-bottom: 34px;
}

.brand-logo {
  display: block;
  width: 206px;
  height: 206px;
  object-fit: contain;
}

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

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

.login-form input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
  color: var(--ink);
  padding: 0 13px;
  font-size: 14px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.login-form input::placeholder {
  color: #aaa59d;
}

.login-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 170, 5, .16);
}

.password-wrap {
  position: relative;
  margin-bottom: 22px;
}

.password-wrap input {
  padding-right: 44px;
}

.icon-button {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.icon-button i {
  font-size: 16px;
  color: #6d6259;
}

#username {
  margin-bottom: 19px;
}

.login-button,
.create-button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: opacity .15s ease, border-color .15s ease;
}

.login-button:hover {
  opacity: .88;
}

.login-button {
  border: 0;
  background: #0d0d0b;
  color: var(--gold);
  box-shadow: 0 5px 13px rgba(0, 0, 0, .18);
}

.create-button {
  display: block;
  margin-top: 15px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .54);
  color: #111;
  text-align: center;
  line-height: 40px;
}

.create-button:hover {
  border-color: rgba(38, 34, 31, .4);
}

.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;
}

.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 {
  width: min(112%, 455px);
  max-height: 34vh;
  margin: auto -18px 8px;
  object-fit: contain;
}

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

footer p {
  margin: 0;
}

.nav-toggle {
  display: none;
}

.nav-column {
  padding: clamp(48px, 6.4vw, 82px) 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);
}

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

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

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

.block-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  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);
}

.latest-block a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 5px 17px 0;
  color: #34302d;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.005em;
}

.latest-block a+a {
  padding-top: 9px;
}

.latest-block b {
  color: #201e1c;
  font-size: 20px;
  font-weight: 500;
}

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

.link-list a {
  color: #24211f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.005em;
}

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

.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(58px, 7vw, 88px) clamp(44px, 7.4vw, 96px) 64px;
  background-color: rgba(255, 255, 253, .72);
}

.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-display);
  font-size: clamp(36px, 4.1vw, 51px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
}

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-display);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
}

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

.article-quote {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--gold-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  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;
}

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

.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;
}

@media (max-width: 1180px) {
  .home-page {
    grid-template-columns: minmax(320px, 42%) 1fr;
  }

  .login-column,
  .content-column {
    min-height: auto;
  }

  .nav-column {
    order: 3;
    grid-column: 1 / -1;
    display: block;
    min-height: auto;
    border-top: 2px solid var(--gold);
    border-right: 0;
    padding: 18px 32px 32px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 16px;
    background: rgba(255, 255, 255, .6);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.005em;
    cursor: pointer;
  }

  .nav-toggle-icon {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
  }

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

  .nav-menu-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .nav-menu-body.is-open {
    max-height: 2400px;
  }

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

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

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

@media (max-width: 820px) {
  .home-page {
    display: block;
    overflow: visible;
  }

  .login-column,
  .nav-column,
  .content-column {
    min-height: auto;
  }

  .login-column {
    padding: 32px 22px 24px;
  }

  .characters-art {
    width: min(100%, 430px);
    max-height: none;
    margin-left: 0;
    margin-right: 0;
    margin-top: 26px;
  }

  .nav-column {
    padding: 18px 24px;
  }

  .content-column {
    padding: 42px 24px 48px;
  }

  .giant-halo {
    right: -24px;
    opacity: .8;
  }

  .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);
}

/* ---------------- 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: 1px solid var(--border);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 0 13px;
  font-size: 14px;
  outline: 0;
  transition: border-color .15s ease, 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 {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 170, 5, .16);
}

.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 {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-dark);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px 16px;
  margin-bottom: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 4px 4px 0;
}

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

.checkbox-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--gold-dark);
}

.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;
  }
}