:root {
  --ink: #17242d;
  --muted: #5d6b73;
  --soft: #eef3f2;
  --paper: #fbfaf6;
  --line: #d9e2df;
  --teal: #16807a;
  --teal-dark: #0d5f5b;
  --blue: #2e5266;
  --clay: #b96d4f;
  --gold: #c7a14a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24, 47, 61, 0.11);
  --radius: 8px;
  color-scheme: light;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(238, 243, 242, 0.68) 0, rgba(251, 250, 246, 0) 360px),
    var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 76px;
  padding: 18px clamp(18px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 36, 45, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--blue);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(46, 82, 102, 0.14);
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.top-link:hover,
.top-link[aria-current="page"] {
  border-color: rgba(22, 128, 122, 0.32);
  color: var(--teal-dark);
  background: rgba(22, 128, 122, 0.08);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
}

.icon-button:hover {
  border-color: rgba(22, 128, 122, 0.5);
  color: var(--teal-dark);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 54px) 0 56px;
  flex: 1;
}

.login-layout,
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.portal-layout {
  align-items: start;
  grid-template-columns: 320px minmax(0, 1fr);
}

.intro {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 0.98;
}

.headline-note {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 0.5em;
  line-height: 1.08;
}

h2 {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

h3 {
  font-size: 17px;
}

.section-title {
  max-width: 720px;
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.02;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.book-stage {
  position: relative;
  min-height: 178px;
  max-width: 560px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(112px, 148px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.book-stage img {
  width: min(148px, 28vw);
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(23, 36, 45, 0.2));
}

.member-proof {
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.member-proof b {
  display: block;
  color: var(--ink);
}

.member-proof span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.surface,
.rail,
.module-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.surface {
  padding: clamp(20px, 4vw, 38px);
}

.login-box {
  max-width: 520px;
  width: 100%;
  justify-self: end;
}

.login-box .lead {
  margin-top: 12px;
  font-size: 16px;
}

.landing-page {
  display: grid;
  gap: clamp(34px, 6vw, 68px);
}

.landing-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 48%, rgba(22, 128, 122, 0.1), transparent 28%),
    linear-gradient(90deg, rgba(251, 250, 246, 0.99) 0 48%, rgba(251, 250, 246, 0.82) 72%, rgba(251, 250, 246, 0.58)),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.landing-hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.landing-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(54px, 7.4vw, 96px);
}

.landing-hero-stat {
  width: fit-content;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 13px;
  border: 1px solid rgba(22, 128, 122, 0.22);
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(22, 128, 122, 0.08);
}

.landing-hero-stat strong {
  color: var(--teal-dark);
  font-size: 24px;
  line-height: 1;
}

.landing-hero-stat span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.landing-hero-media {
  position: absolute;
  right: clamp(16px, 6vw, 76px);
  top: 50%;
  width: min(38vw, 390px);
  height: min(62vh, 540px);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.landing-book {
  width: 100%;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(0 24px 38px rgba(23, 36, 45, 0.24));
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-card {
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.landing-section,
.landing-includes,
.landing-pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.landing-copy p,
.pricing-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.pricing-copy .pricing-sustainability {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid rgba(22, 128, 122, 0.34);
  font-size: 16px;
  line-height: 1.62;
}

.landing-testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.testimonial-card {
  padding: 18px;
}

.testimonial-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.landing-goals {
  display: grid;
  gap: clamp(26px, 4vw, 42px);
  padding: clamp(24px, 4vw, 42px);
  background: rgba(46, 82, 102, 0.08);
  border-radius: var(--radius);
}

.landing-goal h3 {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.16;
}

.landing-goal h3 span {
  color: var(--ink);
  font-weight: 600;
}

.landing-goal mark {
  color: var(--teal);
  background: transparent;
  font-weight: 600;
}

.landing-goal ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 24px;
}

.landing-goal li {
  color: var(--ink);
  line-height: 1.65;
}

.include-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.include-item {
  min-height: 190px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.include-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--teal-dark);
  background: rgba(22, 128, 122, 0.1);
}

.include-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.include-item h3 {
  font-size: 18px;
  line-height: 1.2;
}

.include-item p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.include-item:nth-child(2n) .include-icon {
  color: var(--blue);
  background: rgba(46, 82, 102, 0.1);
}

.include-item:nth-child(3n) .include-icon {
  color: var(--clay);
  background: rgba(185, 109, 79, 0.1);
}

.testimonial-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.testimonial-person {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.testimonial-person img,
.testimonial-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
  object-fit: cover;
  font-weight: 800;
}

.testimonial-person strong,
.testimonial-person span {
  display: block;
}

.testimonial-person span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.testimonial-card h3 {
  font-size: 20px;
  line-height: 1.2;
}

.testimonial-card p {
  font-size: 15px;
}

.checkout-card {
  display: grid;
  gap: 18px;
  box-shadow: none;
}

.checkout-options {
  display: grid;
  gap: 9px;
}

.checkout-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.checkout-option[aria-pressed="true"] {
  border-color: rgba(22, 128, 122, 0.45);
  background: rgba(22, 128, 122, 0.07);
}

.checkout-plan-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 16px;
}

.checkout-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.checkout-plan-card input[type="radio"] {
  margin-top: 5px;
}

.checkout-option strong,
.checkout-option small,
.checkout-option b,
.checkout-option em {
  display: block;
}

.checkout-option small,
.checkout-option em {
  color: var(--muted);
  line-height: 1.35;
}

.checkout-option em {
  grid-column: 2 / -1;
  font-size: 13px;
  font-style: normal;
}

.checkout-option b {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.checkout-option b small {
  display: inline;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-plan-copy {
  display: block;
}

.price-slider {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.price-slider input[type="range"] {
  width: 100%;
  min-height: 28px;
  padding: 0;
  accent-color: var(--teal);
  background: transparent;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(22, 128, 122, 0.22);
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(22, 128, 122, 0.07);
}

.checkout-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.member-login-card {
  max-width: none;
  justify-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field > span,
.field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.required-label {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 6px;
  color: var(--teal-dark);
  background: rgba(22, 128, 122, 0.08);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 112px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 128, 122, 0.12);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--teal);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--teal-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button.secondary {
  color: var(--blue);
  background: rgba(46, 82, 102, 0.08);
  border-color: rgba(46, 82, 102, 0.16);
}

.button.secondary:hover {
  color: var(--ink);
  background: rgba(46, 82, 102, 0.13);
}

.button.text {
  min-height: 40px;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
}

.button.text:hover {
  color: var(--ink);
  background: transparent;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice {
  min-height: 42px;
  margin-top: 18px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  color: var(--blue);
  background: rgba(46, 82, 102, 0.08);
  border: 1px solid rgba(46, 82, 102, 0.13);
  border-radius: var(--radius);
  font-size: 14px;
}

.notice[hidden] {
  display: none;
}

.rail {
  position: sticky;
  top: 18px;
  padding: 22px;
  box-shadow: none;
}

.profile-mini {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
  font-weight: 800;
}

.profile-mini strong {
  display: block;
  line-height: 1.2;
}

.profile-mini span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.progress {
  margin: 24px 0;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(46, 82, 102, 0.12);
}

.progress-bar {
  height: 100%;
  width: var(--progress, 0%);
  background: var(--teal);
  transition: width 180ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.rail-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 36, 45, 0.08);
  color: var(--muted);
  font-size: 14px;
}

.rail-list strong {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.shortcut-band {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 36, 45, 0.08);
}

.step-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 28px;
}

.step-count {
  min-width: 72px;
  color: var(--teal-dark);
  font-weight: 800;
  text-align: right;
}

.step-body {
  display: grid;
  gap: 20px;
}

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

.share-settings {
  display: grid;
  gap: 12px;
}

.share-setting {
  padding: 0 16px 16px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.share-setting .toggle-row {
  padding: 14px 0 12px;
  border-top: 0;
}

.social-fieldset {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(238, 243, 242, 0.34);
}

.social-fieldset .hint {
  margin: 4px 0 0;
}

.social-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.chip[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(23, 36, 45, 0.08);
}

.toggle-row:first-child {
  border-top: 0;
}

.switch {
  width: 52px;
  height: 30px;
  position: relative;
  flex: 0 0 auto;
}

.switch input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(46, 82, 102, 0.2);
  transition: background 160ms ease;
}

.switch span::after {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(23, 36, 45, 0.18);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--teal);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-item {
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(238, 243, 242, 0.45);
}

.review-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-item strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.dashboard {
  display: grid;
  gap: 24px;
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 20px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.dashboard-head img {
  width: 150px;
  justify-self: end;
  filter: drop-shadow(0 14px 22px rgba(23, 36, 45, 0.16));
}

.email-settings {
  display: grid;
  grid-template-columns: minmax(180px, 0.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.email-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-settings-head .eyebrow {
  margin-bottom: 6px;
}

.email-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.email-toggle {
  min-height: 38px;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.email-toggle span:first-child strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
}

.compact-select {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.compact-select span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.compact-select select {
  width: auto;
  min-height: 30px;
  padding: 0 24px 0 8px;
  border: 0;
  background: transparent;
}

.compact-select select:disabled,
.switch input:disabled + span {
  opacity: 0.54;
  cursor: not-allowed;
}

.email-compact .switch {
  width: 42px;
  height: 24px;
}

.email-compact .switch span::after {
  width: 18px;
  height: 18px;
}

.email-compact .switch input:checked + span::after {
  transform: translateX(18px);
}

.compact-save {
  min-height: 38px;
  padding-inline: 13px;
}

.atlas {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.field-notes-page {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.members-page,
.member-profile-page {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.field-notes-masthead,
.members-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
}

.field-notes-masthead h1,
.members-masthead h1 {
  max-width: 820px;
  font-size: clamp(46px, 6vw, 78px);
}

.field-notes-masthead .lead,
.members-masthead .lead {
  max-width: 720px;
}

.member-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  align-items: end;
  margin: 24px 0 18px;
}

.member-search {
  margin: 0;
}

.member-search-stat {
  min-height: 68px;
  display: grid;
  align-content: center;
  justify-items: end;
  padding: 12px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.member-search-stat strong {
  font-size: 28px;
  line-height: 1;
}

.member-search-stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.find-others-highlights {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin: 22px 0;
}

.find-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.find-panel-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.open-conversation-list,
.travel-feed {
  display: grid;
  gap: 10px;
}

.open-conversation-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(46, 82, 102, 0.1);
  border-radius: var(--radius);
  background: rgba(238, 243, 242, 0.38);
}

.open-conversation-card .avatar {
  width: 42px;
  height: 42px;
  font-size: 12px;
}

.open-conversation-card strong,
.open-conversation-card span {
  display: block;
}

.open-conversation-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.travel-event-card {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(46, 82, 102, 0.1);
  border-radius: var(--radius);
  background: rgba(238, 243, 242, 0.38);
}

.travel-event-card span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel-event-card em,
.travel-event-card p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.4;
}

.travel-event-card p {
  margin: 0;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.directory-card,
.profile-contact-card,
.profile-section,
.directory-empty {
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.directory-card {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.directory-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--clay);
  background: rgba(185, 109, 79, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.directory-card .button {
  align-self: end;
  justify-self: start;
  margin-top: 4px;
}

.directory-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
}

.profile-topbar {
  margin-bottom: 24px;
}

.public-profile-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  font-size: 26px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
  margin-top: 22px;
}

.profile-main,
.profile-side {
  display: grid;
  gap: 14px;
}

.profile-section,
.profile-contact-card {
  padding: 18px;
}

.profile-section h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.profile-section p,
.profile-contact-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-chip-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--blue);
  background: rgba(46, 82, 102, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.profile-contact-card {
  position: sticky;
  top: 18px;
}

.profile-contact-card h3 {
  margin-bottom: 12px;
}

.profile-contact-card div + div {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 36, 45, 0.08);
}

.profile-contact-card span,
.profile-contact-card strong {
  display: block;
}

.profile-contact-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-contact-card strong {
  margin-top: 4px;
  line-height: 1.35;
}

.profile-contact-card a {
  color: var(--teal-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.profile-empty {
  margin-top: 24px;
}

.field-notes-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 24px;
}

.field-notes-rules span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(22, 128, 122, 0.18);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(22, 128, 122, 0.07);
  font-size: 13px;
  font-weight: 800;
}

.field-notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 18px;
  align-items: start;
}

.field-notes-main {
  min-width: 0;
}

.field-notes-sidebar {
  position: sticky;
  top: 18px;
}

.sidebar-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.sidebar-card h3 {
  margin: 0;
  font-size: 24px;
}

.active-convo-list {
  display: grid;
  gap: 10px;
}

.active-convo {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(46, 82, 102, 0.1);
  border-radius: var(--radius);
  background: rgba(238, 243, 242, 0.44);
}

.active-convo strong {
  line-height: 1.3;
}

.active-convo span,
.sidebar-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.active-tag-row em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--teal-dark);
  background: rgba(22, 128, 122, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.weekly-compose-shell {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 36px rgba(24, 47, 61, 0.08);
}

.weekly-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.weekly-head p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.weekly-composer {
  display: grid;
  gap: 10px;
}

.weekly-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: 12px;
  align-items: stretch;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(238, 243, 242, 0.58);
}

.editor-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(46, 82, 102, 0.14);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.editor-button:hover {
  border-color: rgba(22, 128, 122, 0.34);
  color: var(--teal-dark);
  background: rgba(22, 128, 122, 0.08);
}

.image-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.weekly-composer textarea {
  min-height: 220px;
}

.weekly-live-preview {
  min-height: 220px;
  padding: 14px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: auto;
}

.preview-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-preview p {
  color: var(--muted);
  font-style: italic;
}

.weekly-image-preview,
.weekly-post-image {
  margin: 0;
}

.weekly-image-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 36, 45, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.weekly-image-preview img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
}

.weekly-image-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.weekly-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.weekly-feed {
  display: grid;
  gap: 16px;
}

.feed-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 14px;
}

.feed-head h2 {
  font-size: clamp(32px, 3.5vw, 48px);
}

.feed-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weekly-post {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.weekly-post-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.weekly-post-top .avatar {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.weekly-post-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.weekly-post-meta span {
  color: var(--muted);
  font-size: 13px;
}

.weekly-post-image {
  margin-bottom: 18px;
}

.weekly-post-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-body {
  max-width: 860px;
  color: var(--ink);
}

.post-body p,
.post-body blockquote,
.post-body ul {
  max-width: 860px;
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.68;
}

.post-body h3,
.post-body h4,
.post-body h5 {
  margin: 22px 0 10px;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 26px;
  line-height: 1.05;
}

.post-body blockquote {
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--teal);
  color: var(--blue);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 21px;
}

.post-body ul {
  padding-left: 22px;
}

.post-body li + li {
  margin-top: 6px;
}

.post-body a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.post-body p:last-child,
.post-body blockquote:last-child,
.post-body ul:last-child {
  margin-bottom: 0;
}

.reply-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 36, 45, 0.08);
}

.reply-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(46, 82, 102, 0.07);
}

.reply-item strong {
  font-size: 13px;
}

.reply-item span {
  color: var(--muted);
  line-height: 1.45;
}

.reply-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.atlas-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.atlas-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.atlas-stat {
  min-width: 116px;
  padding: 12px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  text-align: right;
  background: rgba(238, 243, 242, 0.5);
}

.atlas-stat strong,
.atlas-stat span {
  display: block;
}

.atlas-stat strong {
  font-size: 28px;
  line-height: 1;
}

.atlas-stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 14px;
}

.atlas-map-shell {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(219, 232, 231, 0.72);
}

.atlas-leaflet-map {
  min-height: 330px;
  width: 100%;
  height: 100%;
  font-family: "DM Sans", system-ui, sans-serif;
}

.atlas-map-fallback {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.atlas-map-status {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  max-width: min(320px, calc(100% - 28px));
  padding: 8px 10px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(24, 47, 61, 0.12);
}

.atlas-leaflet-marker {
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(13, 95, 91, 0.26);
  font-size: 12px;
  font-weight: 900;
}

.atlas-leaflet-marker.is-selected {
  background: var(--clay);
}

.atlas-leaflet-marker.is-profile-pin {
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(46, 82, 102, 0.3);
}

.atlas-leaflet-marker.is-draggable {
  background: var(--clay);
}

.atlas-leaflet-marker span {
  transform: translateY(-1px);
}

.atlas-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.pin-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.pin-card strong,
.pin-card span {
  display: block;
}

.pin-card span,
.pin-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pin-card p {
  margin: 0;
}

.pin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pin-actions .button {
  min-height: 38px;
}

.pin-save {
  justify-self: start;
}

.pin-city-select {
  margin: 0;
}

.pin-coordinate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.atlas-search {
  margin: 0;
}

.location-list {
  max-height: 270px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.location-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.location-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-button strong {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(46, 82, 102, 0.08);
}

.location-button:hover,
.location-button[aria-pressed="true"] {
  border-color: rgba(22, 128, 122, 0.42);
  background: rgba(22, 128, 122, 0.08);
}

.atlas-empty {
  padding: 14px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  line-height: 1.4;
}

.member-strip {
  display: grid;
  gap: 12px;
}

.member-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.member-strip-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.member-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-card {
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(23, 36, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.member-card .profile-mini {
  grid-template-columns: 46px minmax(0, 1fr);
}

.member-card .avatar {
  width: 46px;
  height: 46px;
}

.mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.mini-chip-row span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--blue);
  background: rgba(46, 82, 102, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  min-height: 166px;
  padding: 18px;
  box-shadow: none;
}

.module-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.module-kicker {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(199, 161, 74, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty p {
  max-width: 520px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .intro {
    min-height: auto;
    justify-content: start;
  }

  .login-box {
    max-width: 640px;
    justify-self: stretch;
  }

  h1 {
    max-width: 650px;
    font-size: clamp(42px, 9vw, 72px);
  }

  .lead {
    max-width: 620px;
  }

  .book-stage {
    max-width: 640px;
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .book-stage img {
    width: 128px;
  }
}

@media (max-width: 900px) {
  .login-layout,
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .login-box {
    justify-self: stretch;
  }

  .landing-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(251, 250, 246, 0.98), rgba(251, 250, 246, 0.82)),
      rgba(255, 255, 255, 0.72);
  }

  .landing-hero-media {
    right: 16px;
    bottom: 16px;
    top: auto;
    width: 210px;
    height: 260px;
    transform: none;
    opacity: 0.52;
  }

  .landing-hero-copy .lead {
    max-width: calc(100% - 220px);
  }

  .landing-book {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .landing-section,
  .landing-includes,
  .landing-pricing,
  .landing-testimonials,
  .member-login-card {
    grid-template-columns: 1fr;
  }

  .include-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-card {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 18px;
  }

  .testimonial-person {
    grid-row: 1 / span 2;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .testimonial-card h3,
  .testimonial-card p {
    grid-column: 2;
  }

  .rail {
    position: static;
  }

  .dashboard-head {
    grid-template-columns: 1fr;
  }

  .dashboard-head img {
    justify-self: start;
  }

  .field-notes-masthead,
  .members-masthead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .field-notes-masthead .button,
  .members-masthead .button {
    justify-self: start;
  }

  .member-search-panel,
  .profile-layout,
  .field-notes-layout,
  .weekly-editor-grid,
  .find-others-highlights {
    grid-template-columns: 1fr;
  }

  .field-notes-sidebar {
    position: static;
  }

  .member-search-stat {
    justify-items: start;
  }

  .profile-contact-card {
    position: static;
  }

  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .location-list {
    max-height: none;
  }

  .member-card-row {
    grid-template-columns: 1fr;
  }

  .email-settings {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .email-compact {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand small {
    display: none;
  }

  .top-link {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .app {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
    line-height: 1;
  }

  .lead {
    font-size: 17px;
  }

  .book-stage {
    min-height: 0;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    margin-top: 24px;
  }

  .book-stage img {
    width: 92px;
  }

  .landing-hero-media {
    width: 150px;
    height: 190px;
    opacity: 0.22;
  }

  .landing-hero-copy .lead {
    max-width: 620px;
  }

  .member-proof {
    padding-top: 12px;
  }

  .surface {
    padding: 18px;
  }

  .step-head,
  .dashboard-head {
    gap: 14px;
  }

  .step-count {
    min-width: 52px;
  }

  .two-col,
  .social-fields-grid,
  .include-grid,
  .checkout-plan-grid,
  .review-list,
  .member-card-row,
  .module-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-hero {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .testimonial-person {
    grid-row: auto;
    grid-template-columns: 58px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .testimonial-card h3,
  .testimonial-card p {
    grid-column: auto;
  }

  .profile-avatar {
    width: 78px;
    height: 78px;
    font-size: 22px;
  }

  .email-settings-head,
  .field-notes-masthead,
  .members-masthead,
  .feed-head,
  .weekly-head,
  .weekly-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .weekly-image-preview {
    grid-template-columns: 1fr;
  }

  .weekly-image-preview img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }

  .reply-box {
    grid-template-columns: 1fr;
  }

  .button-row {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
