:root {
  --bg: #101411;
  --bg-soft: #171d19;
  --panel: #1c241f;
  --panel-2: #232d26;
  --text: #efe7d4;
  --muted: #b9b09f;
  --gold: #c89b4b;
  --gold-light: #e0bd78;
  --green: #314a3b;
  --border: #4b493b;
  --danger: #c76b5e;
  --success: #82a77e;
  --shadow: 0 18px 45px rgba(0, 0, 0, .28);
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(80, 104, 82, .18), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, #0b0e0c 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--gold-light); }
a:hover { color: #f4d99d; }
.container { 
    width: min(92%, var(--max)); 
    margin-inline: auto; 
    /* margin-bottom: 2.5rem; */
}

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: #fff;
  color: #111;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(200, 155, 75, .25);
  background: rgba(10, 14, 11, .9);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong {
  color: var(--gold-light);
  font-size: 1.08rem;
  letter-spacing: .04em;
}
.brand-text span { margin-top: .25rem; color: var(--muted); font-size: .78rem; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(200, 155, 75, .4);
  border-radius: 10px;
  background: var(--panel);
  color: var(--gold-light);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--panel-2);
  color: var(--gold-light);
}
.nav-form { display: block; margin: 0; }
.nav-link-button {
  padding: .55rem .8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.nav-link-button:hover { background: var(--panel-2); color: var(--gold-light); }
.message-stack { display: grid; gap: .65rem; padding-top: 1rem; }
.site-message {
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.site-message.success { border-color: var(--success); }
.site-message.error { border-color: var(--danger); }
.site-message.info { border-color: var(--gold); }

.hero { padding: 6rem 0 4.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 4rem;
}
.eyebrow {
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.12; }
h1 { margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; }
.lead { max-width: 62ch; color: #d4cbb9; font-size: 1.2rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.08rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.btn.primary { background: var(--gold); color: #17130c; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.btn.disabled,
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.logo-card {
  padding: 2rem;
  border: 1px solid rgba(200, 155, 75, .28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(44, 59, 48, .85), rgba(18, 23, 20, .75));
  box-shadow: var(--shadow);
}
.logo-card img { max-height: 430px; margin: auto; object-fit: contain; }

.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  padding: 1.45rem;
  border: 1px solid rgba(200, 155, 75, .2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 41, 34, .92), rgba(21, 27, 23, .94));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.card p, .card li { color: #cbc2b2; }
.card h3 { color: var(--gold-light); }
.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--green);
  color: var(--gold-light);
  font-weight: 700;
}
.callout {
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(200, 155, 75, .08);
}
blockquote {
  margin: 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--green);
  background: var(--panel);
  color: #e1d8c6;
  font-size: 1.15rem;
}
blockquote footer { margin-top: .75rem; color: var(--muted); font-size: .92rem; }
.check-list { padding-left: 1.2rem; }
.check-list li { margin-bottom: .55rem; }
dl { display: grid; grid-template-columns: 180px 1fr; gap: .7rem 1.2rem; }
dt { color: var(--gold-light); font-weight: 700; }
dd { margin: 0; color: var(--muted); }

form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: grid; gap: .4rem; }
label, legend { color: #e9dec8; font-weight: 700; }
input, textarea, select {
  width: 100%;
  padding: .78rem .85rem;
  border: 1px solid #535648;
  border-radius: 10px;
  background: #111612;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
fieldset { padding: 1rem; border: 1px solid #4a4c41; border-radius: 12px; }
.inline-options { display: flex; flex-wrap: wrap; gap: 1rem; }
.inline-options label { font-weight: 400; }
.inline-options input { width: auto; margin-right: .35rem; }
.auth-section { min-height: 62vh; }
.auth-shell { display: grid; place-items: center; }
.auth-card { width: min(560px, 100%); }
.auth-card-wide { width: min(760px, 100%); }
.auth-card h1 { margin-bottom: .5rem; font-size: clamp(2.4rem, 6vw, 4rem); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 1.2rem; }
.auth-card details { margin-top: 1.5rem; }
.auth-card details form { margin-top: 1rem; }
.agreement-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid rgba(200, 155, 75, .3);
  border-radius: 12px;
  background: rgba(200, 155, 75, .08);
}
.agreement-card input { width: auto; margin-top: .35rem; }
.agreement-card label { font-weight: 400; }
.optional { color: var(--muted); font-size: .85rem; font-weight: 400; }
.errorlist {
  margin: .2rem 0 0;
  padding: 0;
  color: #efa094;
  font-size: .9rem;
  list-style: none;
}
.form-errors { padding: .8rem 1rem; border-left: 4px solid var(--danger); background: rgba(199, 107, 94, .1); }
.form-errors .errorlist { margin: 0; }
.account-hero, .legal-hero { padding-bottom: 2rem; }
.legal-copy { max-width: 900px; }
.legal-copy h2 { margin-top: 2rem; font-size: 1.8rem; }
.badge {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #26352c;
  color: #cddfc9;
  font-size: .8rem;
}
.progress { height: 11px; overflow: hidden; border: 1px solid #394038; border-radius: 999px; background: #0f130f; }
.progress > span { display: block; width: 72%; height: 100%; background: var(--gold); }
details { padding: 1rem 1.1rem; border: 1px solid rgba(200, 155, 75, .2); border-radius: 12px; background: var(--panel); }
details + details { margin-top: .75rem; }
summary { color: var(--gold-light); cursor: pointer; font-weight: 700; }

.story-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.story-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.story-card h2 { margin-bottom: .4rem; color: var(--text); font-size: 1.6rem; }
.story-card-location, .story-card-meta { margin: .25rem 0 0; color: var(--muted); }
.empty-message { text-align: center; }
.empty-message h2 { color: var(--text); }
.empty-message p { color: var(--muted); }
.error-page { display: grid; min-height: 55vh; place-items: center; text-align: center; }
.error-panel { width: min(620px, 100%); }
.error-code { margin: 0; color: var(--gold-light); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; }

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(200, 155, 75, .22);
  background: #0a0d0b;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }

@media (max-width: 850px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .nav-wrap { min-height: 72px; gap: 1rem; padding: .55rem 0; }
  .brand img { width: 52px; height: 52px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 4%;
    left: 4%;
    display: none;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid rgba(200, 155, 75, .3);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(10, 14, 11, .98);
    box-shadow: var(--shadow);
  }
  .menu-toggle[aria-expanded="true"] + .primary-navigation { display: block; }
  .nav-links { flex-direction: column; gap: .2rem; }
  .nav-links li, .nav-links a, .nav-form, .nav-link-button { width: 100%; }
  .nav-links a, .nav-link-button { padding: .7rem .85rem; text-align: left; }
  dl { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .container {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .story-card { grid-template-columns: 1fr; }
  .story-card .btn, .story-card form .btn { width: 100%; }
}

/* Server-rendered Builder help browser. */
.builder-help-main { min-height: 70vh; }
.builder-help-shell { padding-block: 3rem 1rem; }
.builder-help-heading { margin-bottom: 1.5rem; }
.builder-help-heading h1 {
  margin-bottom: .35rem;
  color: var(--gold-light);
  font-size: clamp(2.15rem, 5vw, 3.75rem);
}
.builder-help-heading p { margin: 0; color: var(--muted); }
.builder-help-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}
.builder-help-sidebar {
  position: sticky;
  top: 6.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: .65rem;
  border: 1px solid rgba(200, 155, 75, .22);
  border-radius: 12px;
  background: var(--panel);
}
.builder-help-sidebar ul { margin: 0; padding: 0; list-style: none; }
.builder-help-sidebar li + li { margin-top: .2rem; }
.builder-help-sidebar a {
  display: block;
  padding: .48rem .58rem;
  border-radius: 7px;
  color: var(--text);
  line-height: 1.3;
  text-decoration: none;
}
.builder-help-sidebar a:hover,
.builder-help-sidebar a[aria-current] {
  background: var(--panel-2);
  color: var(--gold-light);
}
.builder-help-sidebar details {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.builder-help-sidebar summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: inherit;
  list-style-position: outside;
}
.builder-help-sidebar summary a { min-width: 0; }
.builder-help-sidebar details ul {
  margin: .1rem 0 .35rem .65rem;
  padding-left: .55rem;
  border-left: 1px solid var(--border);
}
.builder-help-sidebar details li a { color: var(--muted); font-size: .92rem; }
.builder-help-article {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid rgba(200, 155, 75, .22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 41, 34, .92), rgba(21, 27, 23, .94));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.builder-help-section {
  scroll-margin-top: 7rem;
  overflow-wrap: anywhere;
}
.builder-help-section + .builder-help-section { margin-top: 1.35rem; }
.builder-help-section.depth-1,
.builder-help-section.depth-2,
.builder-help-section.depth-3 {
  margin-left: clamp(.25rem, 2vw, 1.25rem);
  padding-left: clamp(.65rem, 2vw, 1rem);
  border-left: 2px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.builder-help-section h2 { color: var(--gold-light); font-size: clamp(1.65rem, 3vw, 2.25rem); }
.builder-help-section h3 { color: var(--text); font-size: 1.35rem; }
.builder-help-section h4 { color: var(--text); font-size: 1.08rem; }
.builder-help-section details,
details.builder-help-section {
  padding: .75rem .9rem;
  background: color-mix(in srgb, var(--panel-2) 76%, transparent);
}
.builder-help-copy > :last-child { margin-bottom: 0; }
.builder-help-copy img {
  height: auto;
  margin-block: 1rem;
  border-radius: 8px;
}
.builder-help-copy pre,
.builder-help-copy code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.builder-help-copy pre {
  max-width: 100%;
  overflow-x: auto;
  padding: .8rem;
  border-radius: 8px;
  background: #0d110e;
}
.builder-help-copy table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.builder-help-copy th,
.builder-help-copy td { padding: .45rem .6rem; border: 1px solid var(--border); }
.builder-help-also-read {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.builder-help-also-read > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.builder-help-also-read a {
  padding: .35rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.builder-help-mobile-nav { display: none; }

@media (max-width: 767.98px) {
  .builder-help-shell { padding: 1.25rem .85rem 0; }
  .builder-help-heading { margin-bottom: 1rem; }
  .builder-help-layout { display: block; }
  .builder-help-sidebar { display: none; }
  .builder-help-mobile-nav {
    display: grid;
    gap: .35rem;
    position: sticky;
    top: 72px;
    z-index: 20;
    margin: 0 -.2rem .8rem;
    padding: .65rem;
    border: 1px solid rgba(200, 155, 75, .25);
    border-radius: 10px;
    background: rgba(17, 22, 18, .97);
  }
  .builder-help-mobile-nav > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem;
  }
  .builder-help-mobile-nav select { min-width: 0; }
  .builder-help-mobile-nav .btn { min-width: 3.5rem; padding-inline: .8rem; }
  .builder-help-article { padding: 1rem; }
  .builder-help-section.depth-1,
  .builder-help-section.depth-2,
  .builder-help-section.depth-3 { margin-left: 0; padding-left: .65rem; }
}
