﻿@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Marcellus&display=swap");

:root {
  --cream: #f7f4ee;
  --cream-2: #fffdf8;
  --paper: #f7f4ee;
  --charcoal: #2b2420;
  --ink: #231f20;
  --muted: #647067;
  --line: rgba(122, 92, 72, 0.18);
  --teal: #4f8c8a;
  --teal-dark: #3f7573;
  --river: #7a5c48;
  --ember: #c9a96b;
  --clay: #bfa98a;
  --gold: #c9a96b;
  --rose: #f2e8df;
  --sage: #a8b8a0;
  --moss: #6e8b6b;
  --driftwood: #bfa98a;
  --shadow: 0 18px 42px rgba(79, 140, 138, 0.12);
  --font-heading: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--font-heading);
  --body: var(--font-body);
  color-scheme: light;
  font-family: var(--font-body);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

.hrh-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(79, 140, 138, 0.26);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 8px 20px rgba(79, 140, 138, 0.08);
  white-space: nowrap;
}

.hrh-language-toggle button {
  min-height: 32px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font: 800 0.76rem/1 var(--font-body);
}

.hrh-language-toggle button:hover {
  background: rgba(168, 184, 160, 0.18);
}

.hrh-language-toggle button.is-active {
  background: var(--teal);
  color: #fff;
}

html[data-spanish-enabled="false"] .hrh-language-toggle,
html[data-spanish-enabled="false"] [data-hrh-language-toggle],
html[data-spanish-enabled="false"] [data-hrh-spanish-disclaimer],
html[data-spanish-enabled="false"] [data-hrh-spanish-form-notice],
html[data-spanish-enabled="false"] .hrh-spanish-disclaimer,
html[data-spanish-enabled="false"] .hrh-spanish-form-notice {
  display: none !important;
}

@media (max-width: 860px) {
  .site-header .hrh-language-toggle {
    order: 99;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
}

/* Accountability and safety management */
.accountability-hero,
.accountability-section {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.accountability-hero {
  display: grid;
  gap: 14px;
  padding: clamp(48px, 7vw, 84px) 0 28px;
}

.accountability-hero h1,
.accountability-section h2,
.accountability-panel h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
}

.accountability-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 0.94;
}

.accountability-hero p,
.accountability-section-head p,
.accountability-card p,
.accountability-panel p,
.accountability-list {
  color: var(--muted);
  line-height: 1.65;
}

.accountability-section {
  display: grid;
  gap: 22px;
  padding: 22px 0 70px;
}

.accountability-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(247, 244, 238, 0.96), rgba(255, 253, 248, 0.98));
  box-shadow: var(--shadow);
}

.accountability-section-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.accountability-card-grid,
.accountability-status-grid,
.accountability-kpi-grid,
.accountability-three-column {
  display: grid;
  gap: 16px;
}

.accountability-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accountability-card,
.accountability-panel,
.accountability-status-card,
.accountability-kpi-grid article,
.accountability-ack {
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 30px rgba(79, 140, 138, 0.1);
}

.accountability-card {
  min-height: 180px;
  padding: 22px;
}

.accountability-card h2 {
  margin-top: 14px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.accountability-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(168, 184, 160, 0.26);
  font-weight: 900;
}

.accountability-disclaimer,
.accountability-note {
  border: 1px solid rgba(201, 169, 107, 0.42);
  border-radius: 18px;
  background: rgba(201, 169, 107, 0.12);
  color: var(--river);
  line-height: 1.65;
}

.accountability-disclaimer {
  padding: 18px 20px;
}

.accountability-ack {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 20px;
}

.accountability-ack legend {
  padding: 0 8px;
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
}

.accountability-check {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 250, 0.92);
  color: var(--charcoal);
  line-height: 1.5;
  cursor: pointer;
}

.accountability-check:hover {
  border-color: rgba(79, 140, 138, 0.36);
  background: rgba(247, 244, 238, 0.72);
}

.accountability-check input {
  width: 1.12rem;
  height: 1.12rem;
  margin-top: 0.22rem;
  accent-color: var(--teal);
}

.accountability-check span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.accountability-inline-checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--charcoal);
  line-height: 1.45;
}

.accountability-inline-checks input {
  margin-top: 4px;
  accent-color: var(--teal);
}

.accountability-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.accountability-status-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.accountability-status-card > span:first-child {
  color: var(--teal-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.accountability-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  background: rgba(168, 184, 160, 0.18);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.accountability-badge-missing,
.accountability-badge-concern,
.accountability-badge-high,
.accountability-badge-immediate {
  border-color: rgba(122, 92, 72, 0.32);
  background: rgba(201, 169, 107, 0.18);
  color: var(--river);
}

.accountability-badge-watch,
.accountability-badge-due {
  border-color: rgba(201, 169, 107, 0.36);
  background: rgba(201, 169, 107, 0.14);
  color: var(--river);
}

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

.accountability-three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accountability-panel {
  padding: 22px;
}

.accountability-panel h3 {
  font-size: 1.75rem;
}

.accountability-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.accountability-form.compact {
  gap: 10px;
}

.accountability-form label {
  display: grid;
  gap: 6px;
  color: var(--charcoal);
  font-weight: 700;
}

.accountability-form input,
.accountability-form select,
.accountability-form textarea {
  width: 100%;
  border: 1px solid rgba(122, 92, 72, 0.22);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: 11px 12px;
}

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

.accountability-form-note {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

.accountability-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.accountability-note {
  padding: 12px 14px;
}

.accountability-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.accountability-kpi-grid article {
  padding: 16px;
}

.accountability-kpi-grid strong {
  display: block;
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
}

.accountability-kpi-grid span {
  color: var(--muted);
  font-weight: 800;
}

.accountability-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 18px;
  background: #fffdf8;
}

.accountability-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.accountability-table th,
.accountability-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
  vertical-align: top;
}

.accountability-table th {
  color: var(--teal-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.accountability-contract-preview {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 16px;
  background: rgba(168, 184, 160, 0.16);
}

.accountability-contract-preview h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .accountability-card-grid,
  .accountability-status-grid,
  .accountability-three-column,
  .accountability-kpi-grid,
  .accountability-two-column {
    grid-template-columns: 1fr;
  }

  .accountability-section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .accountability-inline-checks {
    grid-template-columns: 1fr;
  }

  .accountability-card,
  .accountability-panel,
  .accountability-section-head {
    padding: 18px;
  }
}

/* Reviews, testimonials, and alumni */
.hr-social-hero,
.hr-social-section,
.hr-social-form-card {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.hr-social-hero {
  display: grid;
  gap: 16px;
  padding: clamp(58px, 8vw, 96px) 0 clamp(28px, 5vw, 54px);
}

.hr-social-hero.compact {
  padding-bottom: 18px;
}

.hr-social-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.9;
}

.hr-social-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hr-social-section {
  display: grid;
  gap: 20px;
  padding: 28px 0 72px;
}

.hr-public-review-preview {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  margin-top: clamp(18px, 3vw, 34px);
  padding-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid rgba(79, 140, 138, 0.14);
}

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

.hr-social-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hr-social-count,
.hr-social-source {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  background: rgba(168, 184, 160, 0.16);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.hr-social-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hr-social-grid.one {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 760px);
}

.hr-social-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 980px);
}

.hr-social-card,
.hr-social-empty,
.hr-social-form-card {
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(247, 244, 238, 0.9)),
    var(--cream);
  box-shadow: 0 16px 38px rgba(79, 140, 138, 0.1);
}

.hr-social-card,
.hr-social-empty {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
}

.hr-social-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
}

.hr-social-card p,
.hr-social-card blockquote,
.hr-social-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hr-social-card blockquote {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.hr-public-review-preview .hr-social-card blockquote {
  display: -webkit-box;
  max-height: 15.2rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.hr-social-section .hr-social-card blockquote {
  max-height: 28rem;
  overflow-y: auto;
  padding-right: 0.45rem;
  scrollbar-color: var(--teal) rgba(79, 140, 138, 0.12);
  scrollbar-width: thin;
}

.hr-social-section .hr-social-card blockquote::-webkit-scrollbar {
  width: 8px;
}

.hr-social-section .hr-social-card blockquote::-webkit-scrollbar-track {
  background: rgba(79, 140, 138, 0.12);
  border-radius: 999px;
}

.hr-social-section .hr-social-card blockquote::-webkit-scrollbar-thumb {
  background: var(--teal);
  border: 2px solid rgba(79, 140, 138, 0.12);
  border-radius: 999px;
}

.hr-social-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.hr-social-stars {
  color: var(--ember);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.hr-social-card footer {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 92, 72, 0.14);
}

.hr-social-card footer strong {
  color: var(--ink);
}

.hr-social-card footer span,
.hr-social-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hr-social-form-card {
  margin-bottom: 72px;
  padding: clamp(20px, 4vw, 34px);
}

.hr-social-form-card form {
  display: grid;
  gap: 16px;
}

.hr-social-form-card label {
  display: grid;
  gap: 8px;
  color: var(--river);
  font-weight: 900;
}

.hr-social-form-card input,
.hr-social-form-card select,
.hr-social-form-card textarea {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  padding: 13px 14px;
}

.hr-social-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
}

.hr-social-check input {
  width: auto;
  margin-top: 4px;
}

.hr-social-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.hr-social-review-meta,
.hr-social-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hr-social-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0 4px;
}

.hr-social-status-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 14px;
  background: rgba(247, 244, 238, 0.68);
}

.hr-social-status-grid span {
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hr-social-status-grid strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.footer-review-link {
  color: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(201, 169, 107, 0.7);
  text-underline-offset: 4px;
}

@media (max-width: 780px) {
  .hr-social-section-head,
  .hr-social-card-top {
    align-items: start;
    flex-direction: column;
  }

  .hr-social-grid,
  .hr-social-grid.three {
    grid-template-columns: 1fr;
  }

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

  .hr-social-owner-actions {
    justify-content: start;
  }
}

.step-workbook-reader-shell {
  display: grid;
  gap: 22px;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 169, 107, 0.16), transparent 26rem),
    linear-gradient(180deg, #fffdf8 0%, #f7f4ee 100%);
}

.step-workbook-reader-shell > * {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.step-workbook-toolbar {
  grid-template-columns: 1fr;
}

.step-workbook-search-results {
  display: grid;
  gap: 10px;
}

.step-workbook-result {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(79, 140, 138, 0.08);
}

.step-workbook-result span {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-workbook-result strong {
  color: var(--ink);
}

.step-workbook-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Buyer Portal */
.buyer-site-header {
  border-bottom: 1px solid rgba(79, 140, 138, 0.16);
  background: rgba(255, 253, 248, 0.96);
}

.buyer-shell {
  display: grid;
  gap: 24px;
  min-height: calc(100vh - 90px);
  padding: clamp(28px, 4vw, 54px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(circle at 8% 8%, rgba(201, 169, 107, 0.14), transparent 22rem),
    radial-gradient(circle at 96% 18%, rgba(79, 140, 138, 0.12), transparent 20rem),
    linear-gradient(180deg, #fffdf8 0%, #f7f4ee 100%);
}

.buyer-shell > * {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.buyer-page-hero,
.buyer-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.buyer-page-hero {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(247, 244, 238, 0.92)),
    radial-gradient(circle at 90% 15%, rgba(201, 169, 107, 0.16), transparent 18rem);
  box-shadow: 0 18px 44px rgba(79, 140, 138, 0.1);
}

.buyer-page-hero h1,
.buyer-login-hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.94;
}

.buyer-page-hero p,
.buyer-login-hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.buyer-account-card,
.buyer-card,
.buyer-directory-card,
.buyer-metric-card,
.buyer-pricing-card {
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 34px rgba(79, 140, 138, 0.1);
}

.buyer-account-card {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 22px;
  background: linear-gradient(145deg, rgba(79, 140, 138, 0.12), rgba(201, 169, 107, 0.1));
}

.buyer-account-card span,
.buyer-metric-card span {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-account-card strong,
.buyer-metric-card strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.buyer-account-card p {
  margin: 0;
}

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

.buyer-metric-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
}

.buyer-metric-card p,
.buyer-card p,
.buyer-directory-card p,
.buyer-pricing-card p,
.buyer-pricing-card small,
.buyer-feature-link small,
.buyer-task-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.buyer-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.buyer-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.buyer-card-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.buyer-card-heading h2,
.buyer-directory-card h2,
.buyer-pricing-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.buyer-feature-list,
.buyer-task-list,
.buyer-scroll-panel {
  display: grid;
  gap: 12px;
}

.buyer-feature-link,
.buyer-task-row {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(79, 140, 138, 0.14);
  border-radius: 14px;
  background: rgba(247, 244, 238, 0.64);
  color: inherit;
  text-decoration: none;
}

.buyer-feature-link span,
.buyer-task-row strong {
  color: var(--ink);
  font-weight: 900;
}

.buyer-task-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.buyer-task-row p {
  grid-column: 1 / -1;
}

.portal-notes-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 14px 34px rgba(38, 62, 58, 0.08);
}

.portal-notes-header,
.portal-note-topline,
.portal-note-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-notes-header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.portal-notes-header h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
}

.portal-notes-header label,
.portal-note-form label,
.portal-note-edit label {
  display: grid;
  gap: 5px;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.portal-notes-panel select,
.portal-notes-panel input,
.portal-notes-panel textarea {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.28);
  border-radius: 10px;
  padding: 9px 10px;
  background: var(--cream-2);
  color: var(--ink);
  font: inherit;
}

.portal-notes-panel textarea {
  min-height: 74px;
  resize: vertical;
}

.portal-note-list,
.portal-note-form,
.portal-note-edit form {
  display: grid;
  gap: 10px;
}

.portal-note-list {
  margin-bottom: 12px;
}

.portal-note-item {
  padding: 12px;
  border: 1px solid rgba(191, 169, 138, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.portal-note-item.is-pinned {
  border-color: rgba(201, 169, 107, 0.8);
  box-shadow: inset 3px 0 0 var(--gold);
}

.portal-note-item.is-archived {
  opacity: 0.72;
}

.portal-note-topline {
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.88rem;
}

.portal-note-topline span,
.portal-note-meta,
.portal-note-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.portal-note-item p {
  margin: 8px 0;
  color: #314440;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.portal-note-meta,
.portal-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-note-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(168, 184, 160, 0.2);
}

.portal-note-form {
  padding-top: 12px;
  border-top: 1px solid rgba(79, 140, 138, 0.18);
}

.portal-note-form-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.8fr) minmax(160px, 0.8fr);
  gap: 12px;
  align-items: end;
}

.portal-note-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.portal-note-check input {
  width: auto;
}

.portal-note-actions {
  margin-top: 10px;
}

.portal-note-actions button,
.portal-note-form button,
.portal-note-edit button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.portal-note-actions button {
  background: rgba(79, 140, 138, 0.12);
  color: var(--teal-dark);
}

.portal-note-edit {
  margin-top: 10px;
}

.portal-note-edit summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}

.buyer-task-row .portal-notes-panel {
  grid-column: 1 / -1;
}

.document-notes-row td {
  padding: 0 14px 18px;
  background: rgba(247, 244, 238, 0.5);
}

.document-notes-disclosure {
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.document-notes-disclosure summary {
  cursor: pointer;
  padding: 10px 14px;
  color: var(--teal-dark);
  font-weight: 900;
}

.document-notes-row .portal-notes-panel {
  margin: 0 12px 12px;
}

@media (max-width: 720px) {
  .portal-notes-header,
  .portal-note-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-note-form-grid {
    grid-template-columns: 1fr;
  }
}

.buyer-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.1);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.buyer-status-overdue,
.buyer-status-past-due,
.buyer-status-unpaid,
.buyer-status-canceled,
.buyer-status-buyer-rejected {
  border-color: rgba(122, 92, 72, 0.28);
  background: rgba(191, 169, 138, 0.18);
  color: var(--river);
}

.buyer-status-active,
.buyer-status-active-partner,
.buyer-status-buyer-approved,
.buyer-status-completed,
.buyer-status-moved-in,
.buyer-status-signed {
  border-color: rgba(110, 139, 107, 0.3);
  background: rgba(168, 184, 160, 0.25);
  color: #506d4d;
}

.buyer-status-buyer-pending-review,
.buyer-status-follow-up-needed,
.buyer-status-pending-signature,
.buyer-status-screening,
.buyer-status-warning {
  border-color: rgba(201, 169, 107, 0.35);
  background: rgba(201, 169, 107, 0.18);
  color: #7b6536;
}

.buyer-status-archived {
  border-color: rgba(122, 92, 72, 0.2);
  background: rgba(122, 92, 72, 0.1);
  color: var(--river);
}

.buyer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.9);
}

.buyer-toolbar label,
.buyer-login-layout label {
  display: grid;
  gap: 7px;
  color: var(--river);
  font-weight: 900;
}

.buyer-toolbar input,
.buyer-toolbar select,
.buyer-card select {
  min-height: 44px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.buyer-scroll-panel {
  max-height: 650px;
  overflow: auto;
  padding-right: 8px;
}

.buyer-directory-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.buyer-mini-meta,
.buyer-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.buyer-mini-meta div,
.buyer-detail-list div {
  display: grid;
  gap: 4px;
}

.buyer-mini-meta dt,
.buyer-detail-list dt {
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-mini-meta dd,
.buyer-detail-list dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.buyer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buyer-table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 16px;
}

.buyer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(255, 253, 248, 0.92);
}

.buyer-table th,
.buyer-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(79, 140, 138, 0.12);
  text-align: left;
  vertical-align: top;
}

.buyer-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f4ee;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.buyer-readonly-banner,
.buyer-empty {
  padding: 16px;
  border: 1px solid rgba(201, 169, 107, 0.28);
  border-radius: 16px;
  background: rgba(201, 169, 107, 0.14);
  color: var(--river);
  font-weight: 900;
}

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

.buyer-pricing-grid-login {
  grid-template-columns: 1fr;
}

.buyer-pricing-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.buyer-pricing-card strong {
  color: var(--teal-dark);
  font-size: 1.55rem;
  font-weight: 900;
}

.buyer-pricing-card.is-current {
  border-color: rgba(201, 169, 107, 0.52);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(201, 169, 107, 0.11));
}

.buyer-login-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto clamp(44px, 7vw, 84px);
  align-items: start;
}

.buyer-login-layout .auth-form-card {
  max-width: none;
}

.buyer-login-hero img {
  filter: drop-shadow(0 16px 28px rgba(79, 140, 138, 0.18));
}

.buyer-features-section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 90% 8%, rgba(201, 169, 107, 0.14), transparent 24rem),
    radial-gradient(circle at 12% 12%, rgba(79, 140, 138, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 244, 238, 0.98));
}

.buyer-features-inner {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  width: min(1180px, 100%);
  margin-inline: auto;
}

.buyer-features-header {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.buyer-features-header h2,
.buyer-sales-cta h3,
.buyer-comparison h3,
.buyer-testimonial blockquote {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
}

.buyer-features-header h2 {
  font-size: clamp(2.25rem, 5vw, 4.7rem);
}

.buyer-features-header p:not(.eyebrow),
.buyer-feature-card p,
.buyer-sales-cta p:not(.eyebrow),
.buyer-comparison-column li {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

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

.buyer-feature-card,
.buyer-sales-cta,
.buyer-comparison,
.buyer-testimonial {
  border: 1px solid rgba(122, 92, 72, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(79, 140, 138, 0.08);
}

.buyer-feature-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
}

.buyer-feature-number {
  width: fit-content;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(79, 140, 138, 0.08);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.buyer-feature-card h3,
.buyer-comparison-column h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.22;
}

.buyer-sales-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(79, 140, 138, 0.13), rgba(201, 169, 107, 0.1)),
    rgba(255, 253, 248, 0.92);
}

.buyer-sales-cta > div:first-child {
  display: grid;
  gap: 9px;
}

.buyer-sales-cta h3 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
}

.buyer-sales-actions {
  display: grid;
  gap: 10px;
  min-width: min(250px, 100%);
}

.buyer-sales-actions .button {
  justify-content: center;
  width: 100%;
}

.buyer-comparison {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
}

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

.buyer-comparison-column {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.14);
  border-radius: 12px;
  padding: 18px;
  background: rgba(247, 244, 238, 0.64);
}

.buyer-comparison-column:nth-child(2) {
  border-color: rgba(79, 140, 138, 0.28);
  background: linear-gradient(180deg, rgba(237, 244, 236, 0.82), rgba(255, 253, 248, 0.9));
}

.buyer-comparison-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.buyer-testimonial {
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.95), rgba(237, 244, 236, 0.84)),
    rgba(255, 255, 255, 0.86);
}

.buyer-testimonial blockquote {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.8vw, 2.45rem);
}

.buyer-task-editable .button {
  justify-self: start;
  grid-column: 1 / -1;
}

.buyer-table a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.document-shell {
  gap: 22px;
}

.document-page-hero .buyer-account-card {
  background:
    linear-gradient(145deg, rgba(168, 184, 160, 0.22), rgba(79, 140, 138, 0.1)),
    rgba(255, 253, 248, 0.95);
}

.document-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.document-metric-grid .buyer-metric-card {
  min-height: 132px;
}

.document-toolbar {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(145px, 210px));
}

.document-toolbar input,
.document-toolbar select {
  padding-inline: 12px;
}

.document-command-row,
.document-resident-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 26px rgba(79, 140, 138, 0.08);
}

.document-command-row span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.document-resident-tabs a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.72);
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.document-table-wrap {
  max-height: 560px;
}

.document-table-wrap .buyer-table {
  min-width: 1080px;
}

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

.document-action-row .button {
  min-height: 38px;
  padding: 9px 12px;
  white-space: nowrap;
}

.document-security-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(201, 169, 107, 0.24);
  border-radius: 14px;
  background: rgba(201, 169, 107, 0.12);
  color: var(--river);
  font-weight: 700;
  line-height: 1.5;
}

.document-section-card {
  display: grid;
  gap: 16px;
}

.document-progress-card {
  display: grid;
  gap: 14px;
}

.document-signature-panel {
  display: block;
  margin: 0;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(168, 184, 160, 0.18), rgba(201, 169, 107, 0.12)),
    rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 38px rgba(79, 140, 138, 0.12);
}

.document-signature-panel form {
  display: grid;
  gap: 16px;
}

.document-signature-panel label {
  display: grid;
  gap: 7px;
  color: var(--river);
  font-weight: 900;
}

.document-signature-panel input[type="text"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.document-signature-panel .checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
  line-height: 1.45;
}

.document-signature-panel .checkbox-row input {
  margin-top: 4px;
}

.document-signature-panel .form-status:not(:empty) {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(122, 92, 72, 0.24);
  border-radius: 12px;
  background: rgba(191, 169, 138, 0.15);
  color: var(--river);
  font-weight: 900;
}

.button[disabled],
button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 980px) {
  .buyer-page-hero,
  .buyer-login-layout,
  .buyer-two-column,
  .buyer-directory-card {
    grid-template-columns: 1fr;
  }

  .buyer-metric-grid,
  .document-metric-grid,
  .buyer-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .buyer-sales-cta,
  .buyer-comparison-grid {
    grid-template-columns: 1fr;
  }

  .buyer-sales-actions {
    min-width: 0;
  }

  .buyer-toolbar,
  .document-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .buyer-shell {
    padding: 20px 14px 36px;
  }

  .buyer-page-hero,
  .buyer-card,
  .buyer-directory-card,
  .buyer-account-card,
  .buyer-pricing-card {
    border-radius: 14px;
  }

  .buyer-metric-grid,
  .document-metric-grid,
  .buyer-pricing-grid {
    grid-template-columns: 1fr;
  }

  .buyer-features-grid {
    grid-template-columns: 1fr;
  }

  .buyer-task-row {
    grid-template-columns: 1fr;
  }

  .buyer-card-actions,
  .buyer-card-actions .button,
  .document-action-row .button,
  .document-command-row .button,
  .document-resident-tabs a,
  .buyer-toolbar .button {
    width: 100%;
  }
}

.step-workbook-section-list {
  display: grid;
  gap: 18px;
}

.step-workbook-section-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(122, 92, 72, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 18px 38px rgba(79, 140, 138, 0.1);
}

.step-workbook-section-card h2,
.step-workbook-section-card p {
  margin: 0;
}

.step-workbook-section-card h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.step-workbook-section-card > p {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.7;
}

.step-workbook-section-card button {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(79, 140, 138, 0.26);
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.1);
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

.step-workbook-worksheet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.step-workbook-worksheet-list strong {
  width: 100%;
  color: var(--river);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-workbook-worksheet-list span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(191, 169, 138, 0.42);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.9);
  color: var(--river);
  font-size: 0.84rem;
  font-weight: 700;
}

.step-workbook-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.step-workbook-check-grid label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 12px;
  background: rgba(168, 184, 160, 0.12);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.step-workbook-note {
  display: grid;
  gap: 8px;
}

.step-workbook-note span {
  color: var(--river);
  font-weight: 900;
}

.step-workbook-note textarea {
  min-height: 110px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(122, 92, 72, 0.18);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  line-height: 1.55;
}

.step-workbook-disclaimers {
  width: min(1180px, 100%);
}

@media (max-width: 820px) {
  .step-workbook-check-grid {
    grid-template-columns: 1fr;
  }

  .step-workbook-reader-shell {
    padding-inline: 22px;
  }
}

@media (max-width: 960px) {
  .trust-bar,
  .feature-grid,
  .leader-grid,
  .metric-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .availability-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .availability-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .trust-bar,
  .feature-grid,
  .leader-grid,
  .metric-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    margin-top: -28px;
  }

  .public-section,
  .availability-card {
    width: min(100% - 20px, 1180px);
    padding: 22px 18px;
  }

  .availability-actions,
  .availability-actions .button,
  .workbook-roadmap-actions,
  .workbook-roadmap-actions .button {
    width: 100%;
  }
}

.buyer-workbook-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 12% 18%, rgba(168, 184, 160, 0.18), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, #f7f4ee 100%);
  border-top: 1px solid var(--line);
}

.buyer-workbook-shell {
  display: grid;
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.buyer-workbook-grid,
.buyer-workbook-layout,
.buyer-workbook-phase-grid,
.workbook-disclaimer-grid {
  display: grid;
  gap: 16px;
}

.buyer-workbook-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-workbook-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
}

.buyer-workbook-phase-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.workbook-disclaimer-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.buyer-workbook-card,
.workbook-sync-panel,
.buyer-workbook-phase-card,
.workbook-disclaimer-grid article {
  border: 1px solid rgba(122, 92, 72, 0.14);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 34px rgba(79, 140, 138, 0.1);
}

.buyer-workbook-card,
.workbook-sync-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.workbook-roadmap-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
}

.workbook-roadmap-main,
.workbook-roadmap-side,
.workbook-roadmap-certificate {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 18%, rgba(201, 169, 107, 0.12), transparent 14rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 244, 238, 0.9));
  box-shadow: 0 18px 34px rgba(79, 140, 138, 0.11);
}

.workbook-roadmap-certificate {
  grid-column: 1 / -1;
}

.workbook-roadmap-main h3,
.workbook-roadmap-side h3,
.workbook-roadmap-certificate h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  line-height: 1.05;
}

.workbook-roadmap-main p,
.workbook-roadmap-side p,
.workbook-roadmap-certificate p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workbook-roadmap-main p strong {
  color: var(--ink);
}

.workbook-roadmap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.workbook-milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.workbook-milestone-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(122, 92, 72, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--muted);
  font-weight: 900;
}

.workbook-milestone-grid span.is-complete {
  border-color: rgba(79, 140, 138, 0.3);
  background: rgba(79, 140, 138, 0.14);
  color: var(--teal-dark);
}

.workbook-phase-nav {
  position: sticky;
  top: 92px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 28px rgba(79, 140, 138, 0.1);
}

.workbook-phase-nav a {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(191, 169, 138, 0.32);
  border-radius: 10px;
  background: rgba(247, 244, 238, 0.78);
  color: inherit;
  text-decoration: none;
}

.workbook-phase-nav strong {
  overflow-wrap: break-word;
  color: var(--ink);
  line-height: 1.15;
}

.workbook-phase-nav span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workbook-save-status {
  width: fit-content;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.08);
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 900;
}

.workbook-save-status[data-save-tone="saving"] {
  color: var(--river);
}

.workbook-save-status[data-save-tone="failed"] {
  color: #8a3f32;
}

.recovery-path-map,
.workbook-resume-banner,
.workbook-search-card,
.workbook-bookmarks-panel,
.workbook-milestones,
.related-resources-panel,
.audio-placeholder-card,
.daily-workbook-widget,
.next-step-engine,
.workbook-analytics-dashboard,
.workbook-version-manager,
.manager-workbook-summary,
.workbook-print-controls,
.version-card,
.workbook-summary-table-wrap {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(122, 92, 72, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 30px rgba(79, 140, 138, 0.08);
}

.workbook-resume-banner,
.workbook-section-header,
.workbook-widget-header,
.workbook-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workbook-resume-banner h3,
.workbook-section-header h3,
.workbook-widget-header h3,
.workbook-page-header h3,
.next-step-engine h3,
.workbook-bookmarks-panel h3,
.workbook-milestones h3,
.related-resources-panel h3,
.audio-placeholder-card h3,
.workbook-print-controls h3,
.version-card h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.workbook-resume-banner p,
.workbook-resume-banner small,
.workbook-page-header p,
.next-step-card p,
.audio-placeholder-card p,
.version-card p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.path-map-list,
.workbook-search-results,
.bookmark-list,
.related-resource-list,
.next-step-list,
.version-list {
  display: grid;
  gap: 10px;
}

.path-map-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.path-map-item,
.workbook-search-results button,
.bookmark-list button,
.related-resource-list a,
.next-step-card,
.version-list-item {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(191, 169, 138, 0.35);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.path-map-item {
  grid-template-columns: auto 1fr;
  align-items: center;
  cursor: pointer;
}

.path-map-item.complete {
  border-color: rgba(110, 139, 107, 0.32);
  background: rgba(110, 139, 107, 0.13);
}

.path-map-item.current {
  border-color: rgba(79, 140, 138, 0.42);
  box-shadow: 0 0 0 3px rgba(79, 140, 138, 0.12);
}

.path-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fffdf8;
  font-weight: 900;
}

.path-step-text,
.workbook-search-results strong,
.bookmark-list strong,
.related-resource-list strong,
.next-step-card strong,
.version-list-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.path-step-text {
  display: grid;
  gap: 3px;
}

.path-step-text small,
.workbook-search-results small,
.bookmark-list small,
.related-resource-list small,
.next-step-card span,
.version-list-item small,
.version-list-item span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.workbook-search-card label,
.version-card label {
  display: grid;
  gap: 7px;
  color: var(--river);
  font-weight: 900;
}

.workbook-search-card input,
.version-card input,
.version-card textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 11px 13px;
}

.bookmark-button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(122, 92, 72, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--river);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.bookmark-button.active {
  border-color: rgba(201, 169, 107, 0.42);
  background: rgba(201, 169, 107, 0.16);
  color: #765d29;
}

.workbook-prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.milestone-grid,
.workbook-analytics-grid,
.version-grid,
.workbook-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.milestone-card,
.analytics-card,
.workbook-alert-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(191, 169, 138, 0.32);
  border-radius: 12px;
  background: rgba(247, 244, 238, 0.62);
}

.analytics-card span,
.workbook-alert-grid span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.analytics-card strong,
.workbook-alert-grid strong,
.workbook-widget-header > strong {
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.primary-action {
  border: 0;
  background: var(--teal);
  color: #fffdf8;
}

.secondary-action {
  border: 1px solid rgba(79, 140, 138, 0.28);
  background: #fffdf8;
  color: var(--teal-dark);
}

.workbook-celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(35, 31, 32, 0.48);
}

.workbook-celebration-card {
  display: grid;
  gap: 14px;
  width: min(520px, 94vw);
  padding: 24px;
  border: 1px solid rgba(201, 169, 107, 0.3);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(35, 31, 32, 0.24);
}

.workbook-celebration-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.celebration-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.owner-card-grid .owner-card-wide {
  grid-column: 1 / -1;
}

.owner-card-wide .owner-form {
  display: grid;
  gap: 14px;
}

.owner-card-wide textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  padding: 12px 14px;
}

@media (max-width: 900px) {
  .workbook-roadmap-dashboard,
  .buyer-workbook-grid,
  .buyer-workbook-layout {
    grid-template-columns: 1fr;
  }

  .workbook-phase-nav {
    position: static;
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .workbook-phase-nav a {
    flex: 0 0 min(270px, 82vw);
    scroll-snap-align: start;
  }
}

.buyer-workbook-card-wide {
  grid-column: 1 / -1;
}

.workbook-sync-panel {
  background:
    linear-gradient(135deg, rgba(79, 140, 138, 0.12), rgba(201, 169, 107, 0.12)),
    #fffdf8;
}

.buyer-workbook-card h3,
.workbook-sync-panel h3,
.buyer-workbook-phase-card h4,
.workbook-disclaimer-grid strong {
  margin: 0;
  color: var(--ink);
}

.buyer-workbook-card h3,
.workbook-sync-panel h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.buyer-workbook-card p,
.workbook-sync-panel p,
.buyer-workbook-phase-card p,
.workbook-disclaimer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.workbook-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workbook-status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.1);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.workbook-status-approved {
  border-color: rgba(110, 139, 107, 0.32);
  background: rgba(110, 139, 107, 0.16);
  color: #425f40;
}

.workbook-status-submitted {
  border-color: rgba(201, 169, 107, 0.34);
  background: rgba(201, 169, 107, 0.18);
  color: #765d29;
}

.workbook-status-changes {
  border-color: rgba(122, 92, 72, 0.28);
  background: rgba(191, 169, 138, 0.22);
  color: var(--river);
}

.workbook-status-locked {
  border-color: rgba(53, 60, 53, 0.16);
  background: rgba(53, 60, 53, 0.08);
  color: var(--muted);
}

.workbook-status-active {
  border-color: rgba(79, 140, 138, 0.26);
  background: rgba(79, 140, 138, 0.12);
  color: var(--teal-dark);
}

.workbook-actions,
.workbook-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workbook-actions button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 999px;
  background: #f7f4ee;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

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

.workbook-actions-compact {
  display: grid;
  min-width: 170px;
}

.workbook-actions-compact button {
  justify-content: center;
  border-radius: 10px;
  text-align: center;
}

.buyer-workbook-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
}

.buyer-workbook-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: var(--ink);
}

.buyer-workbook-table th,
.buyer-workbook-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
  text-align: left;
  vertical-align: top;
}

.buyer-workbook-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f4ee;
  color: var(--river);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.buyer-workbook-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.buyer-workbook-phase-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.resident-phase-list {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.workbook-phase-locked {
  background:
    linear-gradient(135deg, rgba(53, 60, 53, 0.035), rgba(168, 184, 160, 0.08)),
    rgba(255, 253, 248, 0.82);
}

.buyer-workbook-phase-card span,
.buyer-workbook-phase-card small {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.buyer-workbook-phase-card h4 {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.05;
}

.workbook-check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workbook-check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.workbook-check-list li::before {
  position: absolute;
  left: 0;
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 999px;
  background: var(--teal);
}

.workbook-progress-meter {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(168, 184, 160, 0.28);
}

.workbook-progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.workbook-progress-label {
  color: var(--river);
  font-size: 0.9rem;
}

.workbook-disclaimer-grid article {
  padding: 16px;
}

.workbook-chapter-list,
.workbook-submission-list,
.workbook-audit-list {
  display: grid;
  gap: 14px;
}

.workbook-submission-list {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.workbook-chapter-card,
.workbook-submission-list section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 12px;
  background: rgba(247, 244, 238, 0.58);
}

.workbook-chapter-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.workbook-chapter-card summary::-webkit-details-marker {
  display: none;
}

.workbook-chapter-card summary::after {
  content: "+";
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--teal-dark);
  font-weight: 900;
}

.workbook-chapter-card[open] summary::after {
  content: "-";
}

.workbook-chapter-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
}

.workbook-chapter-card summary small {
  margin-left: auto;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workbook-chapter-card h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--ink);
}

.workbook-prompt-stack {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.workbook-chapter-card label {
  display: grid;
  gap: 8px;
  color: var(--river);
  font-weight: 800;
  line-height: 1.35;
}

.workbook-chapter-card textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
  padding: 13px 14px;
}

.workbook-chapter-card textarea:disabled {
  background: rgba(247, 244, 238, 0.86);
  color: var(--muted);
}

.workbook-submission-list section strong {
  color: var(--river);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.workbook-submission-list section p {
  color: var(--ink);
}

.workbook-submission-list small {
  color: var(--teal-dark);
  font-weight: 900;
}

.workbook-audit-list p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
  color: var(--muted);
}

.workbook-audit-list p:last-child {
  border-bottom: 0;
}

.workbook-audit-list strong {
  color: var(--river);
}

.workbook-audit-list span {
  color: var(--teal-dark);
  font-weight: 900;
}

.workbook-disclaimer-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--river);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .buyer-workbook-grid,
  .buyer-workbook-layout,
  .workbook-disclaimer-grid,
  .workbook-experience-grid,
  .version-grid,
  .workbook-analytics-grid,
  .workbook-alert-grid {
    grid-template-columns: 1fr;
  }

  .buyer-workbook-section {
    padding-inline: 22px;
  }

  .workbook-resume-banner,
  .workbook-section-header,
  .workbook-widget-header,
  .workbook-page-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .buyer-workbook-card,
  .workbook-sync-panel,
  .buyer-workbook-phase-card,
  .workbook-disclaimer-grid article {
    padding: 18px;
  }

  .workbook-card-heading {
    display: grid;
  }

  .buyer-workbook-table-wrap {
    max-width: calc(100vw - 44px);
  }

  .workbook-actions,
  .workbook-roadmap-actions {
    display: grid;
  }

  .workbook-actions button,
  .workbook-roadmap-actions .button,
  .primary-action,
  .secondary-action {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .workbook-chapter-card summary {
    align-items: flex-start;
    display: grid;
  }

  .workbook-chapter-card summary small {
    margin-left: 0;
  }

  .workbook-prompt-head {
    display: grid;
  }

  .bookmark-button {
    width: 100%;
  }

  .path-map-list {
    grid-template-columns: 1fr;
  }

  .celebration-actions {
    display: grid;
  }
}

@media print {
  .site-header,
  footer,
  .resident-portal-nav,
  .workbook-phase-nav,
  .workbook-actions,
  .bookmark-button,
  .workbook-search-card,
  .audio-placeholder-card,
  .workbook-bookmarks-panel,
  .workbook-print-controls,
  .workbook-celebration-overlay {
    display: none !important;
  }

  .buyer-workbook-section,
  .buyer-workbook-shell,
  .buyer-workbook-card,
  .workbook-chapter-card,
  .workbook-prompt-stack {
    display: block;
    box-shadow: none !important;
  }

  .workbook-chapter-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .workbook-chapter-card textarea {
    min-height: 120px;
    border: 1px solid #999;
    background: #fff;
  }
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-to-main {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(79, 140, 138, 0.34);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(35, 31, 32, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-120%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.skip-to-main:focus,
.skip-to-main:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.portal-workflow-foundation {
  max-width: 1180px;
  margin: 1.5rem auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.96), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top right, rgba(79, 140, 138, 0.1), transparent 36%);
  box-shadow: 0 18px 42px rgba(122, 92, 72, 0.08);
}

.portal-workflow-foundation.compact {
  max-width: 960px;
}

.portal-workflow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-workflow-head h2,
.portal-workflow-foundation h2,
.portal-request-hub h3 {
  margin: 0.15rem 0 0.35rem;
  color: #234842;
}

.portal-workflow-head p,
.portal-workflow-foundation p,
.portal-workflow-foundation li {
  color: #51635e;
}

.portal-workflow-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.portal-workflow-metrics a,
.portal-workflow-step,
.portal-workflow-mini-card,
.portal-request-hub a,
.portal-workflow-check {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.portal-workflow-metrics a {
  padding: 0.85rem;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-workflow-metrics strong {
  display: block;
  color: #4f8c8a;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
}

.portal-workflow-metrics span,
.portal-workflow-mini-card span,
.portal-request-hub span,
.portal-workflow-check small,
.portal-workflow-check em {
  display: block;
  margin-top: 0.25rem;
  color: #5f6f69;
  font-size: 0.88rem;
  line-height: 1.45;
}

.portal-workflow-steps,
.portal-workflow-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-workflow-step,
.portal-workflow-mini-card {
  padding: 0.9rem;
  border: 1px solid rgba(191, 169, 138, 0.34);
  border-radius: 16px;
  background: #fffdf8;
}

.portal-workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: #4f8c8a;
  color: #fff;
  font-weight: 800;
}

.portal-workflow-step strong,
.portal-workflow-mini-card strong,
.portal-request-hub strong,
.portal-workflow-check strong {
  display: block;
  color: #243d38;
  line-height: 1.25;
}

.portal-workflow-step small {
  display: block;
  margin-top: 0.35rem;
  color: #66766f;
  line-height: 1.4;
}

.portal-request-hub {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(122, 92, 72, 0.16);
}

.portal-request-hub a {
  padding: 0.85rem;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.portal-workflow-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-workflow-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.portal-workflow-check > span {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #bfa98a;
}

.portal-workflow-check.complete > span {
  background: #4f8c8a;
}

.portal-workflow-check.progress > span {
  background: #c9a96b;
}

.portal-workflow-check em {
  margin: 0;
  color: #4f8c8a;
  font-style: normal;
  font-weight: 800;
  text-transform: capitalize;
}

.portal-real-definition-list,
.portal-real-subgrid,
.portal-real-list {
  margin: 1rem 0 0;
}

.portal-real-definition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.portal-real-definition-list div,
.portal-real-subgrid div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  background: rgba(247, 244, 238, 0.58);
}

.portal-real-definition-list dt,
.portal-real-subgrid span {
  color: #63736d;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-real-definition-list dd {
  margin: 0.2rem 0 0;
  color: #243d38;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.portal-real-table-wrap {
  max-width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 14px;
}

.portal-real-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.78);
}

.portal-real-table th,
.portal-real-table td {
  padding: 0.7rem;
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
  text-align: left;
  vertical-align: top;
}

.portal-real-table th {
  color: #3e6865;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-real-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.1);
  color: #315955;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.portal-real-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.portal-real-subgrid strong {
  display: block;
  color: #243d38;
  font-size: 1.1rem;
}

.portal-real-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.portal-real-list li {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(191, 169, 138, 0.28);
  border-radius: 12px;
  background: #fffdf8;
}

.portal-real-list strong,
.portal-real-list span {
  display: block;
  overflow-wrap: anywhere;
}

.portal-real-list span {
  margin-top: 0.2rem;
  color: #65756f;
  font-size: 0.88rem;
}

.portal-real-support-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(122, 92, 72, 0.14);
}

.workbook-quick-access-section {
  margin-top: clamp(1rem, 2vw, 1.6rem);
}

.workbook-quick-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: stretch;
}

.workbook-next-prompt-card {
  border-color: rgba(79, 140, 138, 0.32);
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.94), rgba(234, 244, 242, 0.94)),
    #ffffff;
}

.workbook-next-prompt-card blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--healing-teal, #4f8c8a);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.68);
  color: var(--river-brown, #7a5c48);
  font-size: 1rem;
  line-height: 1.55;
}

.workbook-next-prompt-card small {
  display: block;
  color: #566461;
  line-height: 1.5;
}

.workbook-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.workbook-prompt-actions .button {
  min-height: 44px;
}

.workbook-prompt-mini-grid {
  display: grid;
  gap: 0.8rem;
}

.workbook-prompt-mini-grid article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(50, 72, 68, 0.08);
}

.workbook-prompt-mini-grid strong,
.workbook-prompt-mini-grid span,
.workbook-prompt-mini-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.workbook-prompt-mini-grid strong {
  color: #1f2d2a;
  font-size: 1rem;
}

.workbook-prompt-mini-grid span {
  margin-top: 0.45rem;
  color: var(--healing-teal, #4f8c8a);
  font-weight: 800;
  text-transform: capitalize;
}

.workbook-prompt-mini-grid small {
  margin-top: 0.25rem;
  color: #5d6764;
}

.portal-not-authorized {
  border: 1px solid rgba(122, 92, 72, 0.18);
  background: linear-gradient(135deg, rgba(247, 244, 238, 0.98), rgba(234, 244, 242, 0.92));
}

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

img,
svg,
video,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

table {
  max-width: 100%;
}

.mobile-safe-tap {
  min-width: 44px;
  min-height: 44px;
}

.mobile-no-overflow,
.button,
.resource-card,
.dashboard-card,
.buyer-feature-card,
.portal-expansion-card,
.accountability-card,
.auth-form-card,
.page-hero,
.save-to-phone-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mobile-scroll-table,
.table-wrap,
.resource-table-wrap,
.portal-expansion-table-wrap,
.accountability-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-sticky-offset,
[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(35, 31, 32, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(244, 239, 229, 0.88)),
    rgba(251, 247, 238, 0.92);
  box-shadow: 0 14px 34px rgba(35, 31, 32, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 6px 8px 6px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--charcoal);
  box-shadow: 0 10px 22px rgba(35, 31, 32, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.03rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.main-nav {
  padding: 6px;
  border: 1px solid rgba(215, 197, 173, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(251, 247, 238, 0.76)),
    rgba(255, 250, 240, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 12px 28px rgba(35, 31, 32, 0.08);
}

nav a,
nav .nav-trigger,
nav .nav-toggle,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 13px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

nav .nav-trigger {
  appearance: none;
  cursor: pointer;
}

nav .nav-toggle {
  display: none;
  appearance: none;
  cursor: pointer;
}

body.mobile-nav-locked {
  overflow: hidden;
}

nav .nav-trigger::after {
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-menu {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 220px;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(215, 197, 173, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.99), rgba(244, 239, 229, 0.98)),
    var(--paper);
  box-shadow: 0 22px 48px rgba(35, 31, 32, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-menu-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: min(460px, 86vw);
}

.nav-menu a {
  width: 100%;
  justify-content: flex-start;
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  padding: 10px 12px;
  line-height: 1.2;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu,
.nav-group.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-group:hover .nav-trigger::after,
.nav-group:focus-within .nav-trigger::after,
.nav-group.is-open .nav-trigger::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

nav a:hover,
nav .nav-trigger:hover,
nav .nav-toggle:hover,
nav a.active,
nav .nav-trigger.active,
.button:hover {
  border-color: rgba(31, 61, 54, 0.16);
  background: rgba(31, 61, 54, 0.08);
  box-shadow: 0 8px 18px rgba(35, 31, 32, 0.08);
  transform: translateY(-1px);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(42, 169, 165, 0.12);
  transform: none;
}

nav a.active,
nav .nav-trigger.active {
  border-color: var(--charcoal);
  background:
    linear-gradient(135deg, rgba(35, 31, 32, 0.98), rgba(31, 61, 54, 0.95)),
    var(--charcoal);
  color: var(--cream);
  box-shadow: 0 10px 22px rgba(35, 31, 32, 0.18);
}

.button.primary {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--cream);
}

.button.secondary {
  border-color: rgba(42, 169, 165, 0.9);
  background: rgba(42, 169, 165, 0.12);
  color: var(--teal-dark);
}

.button.quiet {
  border-color: rgba(35, 31, 32, 0.16);
  background: rgba(244, 239, 229, 0.94);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 64px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vw, 104px) clamp(22px, 8vw, 112px) clamp(84px, 11vw, 132px);
  background:
    radial-gradient(circle at 77% 48%, rgba(42, 169, 165, 0.18), transparent 22rem),
    radial-gradient(circle at 72% 42%, rgba(244, 197, 104, 0.18), transparent 18rem),
    linear-gradient(120deg, #231f20 0%, #1a1718 70%, #2c201b 100%);
  color: var(--cream);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  content: "";
  background: linear-gradient(0deg, var(--cream), transparent);
}

.hero-art {
  position: absolute;
  right: clamp(18px, 6vw, 110px);
  top: 50%;
  width: min(43vw, 600px);
  max-height: 78%;
  transform: translateY(-50%);
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.48));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1050px;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8.8vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(244, 239, 229, 0.94);
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-meta {
  margin: -10px 0 18px;
  color: rgba(244, 197, 104, 0.95);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hrh-contact-list {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.hrh-contact-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 14px;
  background: rgba(247, 244, 238, 0.78);
}

.hrh-contact-card strong {
  color: var(--river-brown);
}

.hrh-contact-card a {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.hero .hero-actions .button,
.story-band .hero-actions .button {
  min-width: 210px;
}

.hero .button {
  border-color: rgba(244, 239, 229, 0.36);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.hero .button.primary {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--charcoal);
}

.hero .button.secondary {
  border-color: rgba(42, 169, 165, 0.86);
  background: rgba(42, 169, 165, 0.18);
  color: var(--cream);
}

.hero .button.quiet {
  border-color: rgba(244, 239, 229, 0.42);
  background: rgba(244, 239, 229, 0.09);
  color: var(--cream);
}

.story-band .button.quiet {
  border-color: rgba(13, 94, 90, 0.28);
  background: rgba(42, 169, 165, 0.1);
  color: var(--teal-dark);
}

.home-highlights {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto clamp(28px, 5vw, 62px);
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  padding: clamp(46px, 8vw, 96px) clamp(20px, 7vw, 92px);
  background:
    radial-gradient(circle at 82% 46%, rgba(42, 169, 165, 0.18), transparent 22rem),
    radial-gradient(circle at 76% 38%, rgba(244, 197, 104, 0.16), transparent 18rem),
    linear-gradient(120deg, #231f20 0%, #1a1718 72%, #2c201b 100%);
  color: var(--cream);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(244, 239, 229, 0.86);
  font-size: 1.1rem;
  line-height: 1.65;
}

.page-hero img {
  width: min(360px, 100%);
  justify-self: center;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.45));
}

.page-hero img[src*="healing-river-emblem"] {
  width: min(440px, 100%);
  max-width: 440px;
}

.home-highlight-card {
  display: grid;
  grid-template-rows: clamp(190px, 16vw, 230px) 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 197, 173, 0.76);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 16px 38px rgba(35, 31, 32, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(35, 31, 32, 0.18);
}

.trust-bar,
.public-section,
.availability-card {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.trust-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -42px;
  margin-bottom: clamp(22px, 4vw, 42px);
}

.trust-item,
.feature-card,
.leader-card,
.metric-card,
.privacy-grid article {
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 244, 238, 0.9)),
    var(--cream-2);
  box-shadow: 0 16px 34px rgba(79, 140, 138, 0.1);
}

.trust-item {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.trust-item strong,
.metric-card strong {
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1;
}

.trust-item span,
.metric-card span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.trust-bar + .home-highlights {
  margin-top: 0;
}

.public-section,
.availability-card {
  padding: clamp(28px, 4.5vw, 52px);
  margin-bottom: clamp(24px, 4.5vw, 56px);
  border: 1px solid rgba(191, 169, 138, 0.45);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(201, 169, 107, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 244, 238, 0.9));
  box-shadow: var(--shadow);
}

.public-section .section-heading {
  margin-bottom: clamp(18px, 3vw, 30px);
}

.public-section .section-heading p,
.availability-card p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid,
.leader-grid,
.metric-grid,
.privacy-grid {
  display: grid;
  gap: 14px;
}

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

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 17px;
}

.feature-card span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  position: relative;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.12);
}

.feature-card span::before {
  content: "";
  width: 0.38rem;
  height: 0.68rem;
  border: solid var(--teal-dark);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.feature-card p,
.privacy-grid article {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.availability-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(79, 140, 138, 0.12), rgba(201, 169, 107, 0.12)),
    var(--cream-2);
}

.availability-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.availability-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.leader-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.leader-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 10px;
  background: var(--cream);
}

.leader-card h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.leader-card strong {
  color: var(--river);
  line-height: 1.4;
}

.workbook-preview-section {
  border-color: rgba(79, 140, 138, 0.24);
  background:
    radial-gradient(circle at 10% 18%, rgba(79, 140, 138, 0.11), transparent 20rem),
    linear-gradient(180deg, #fffdf8, #f7f4ee);
}

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

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card strong {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

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

.privacy-grid article {
  padding: 18px;
}

.home-highlight-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: var(--charcoal);
}

.home-highlight-card.is-art img {
  object-fit: contain;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 46%, rgba(42, 169, 165, 0.18), transparent 14rem),
    linear-gradient(135deg, #1b1718, #2b211d);
}

.home-highlight-card > div {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
}

.home-highlight-card .eyebrow {
  margin-bottom: 10px;
}

.home-highlight-card h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.35rem, 1.7vw, 1.85rem);
  line-height: 1.08;
}

.home-highlight-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.story-band,
.founder-bio-section,
.content-section,
.blog-band,
.social-band,
.resource-featured-section,
.resource-directory-section,
.everything-aa-section,
.life-skills-section,
.veteran-disclaimer-section,
.admissions-band,
.amenities-section,
.program-fees-section,
.staff-email-section,
.forms-section,
.faq-section,
.contact-band,
.auth-choice-section,
.auth-form-section,
.portal-dashboard-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 86px);
}

.dashboard-greeting,
.dashboard-task-summary {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 0 clamp(18px, 6vw, 86px);
}

.dashboard-greeting > div,
.dashboard-task-summary {
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.98), rgba(255, 255, 255, 0.92)),
    var(--card-bg, #fff);
  box-shadow: 0 18px 42px rgba(64, 84, 73, 0.11);
}

.dashboard-greeting > div {
  padding: clamp(20px, 3vw, 32px);
}

.dashboard-greeting h1 {
  margin: 4px 0 8px;
  color: #28443f;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.dashboard-greeting p,
.dashboard-task-summary p {
  margin: 0;
  color: #4a5f59;
}

.dashboard-task-summary {
  padding-top: clamp(20px, 3vw, 28px);
  padding-bottom: clamp(20px, 3vw, 28px);
}

.dashboard-task-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.dashboard-task-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #4a5f59;
}

.dashboard-task-metrics strong {
  color: #28443f;
  font-size: 1.45rem;
}

.dashboard-task-list {
  display: grid;
  gap: 10px;
}

.dashboard-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-left: 5px solid #4f8c8a;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.dashboard-task-card strong,
.dashboard-task-card span,
.dashboard-task-card small {
  overflow-wrap: anywhere;
}

.dashboard-task-card strong {
  display: block;
  color: #243d37;
}

.dashboard-task-card span,
.dashboard-task-card small {
  color: #5e6d68;
}

.dashboard-task-card.priority-high,
.dashboard-task-card.priority-urgent {
  border-left-color: #c9a96b;
}

.dashboard-task-status {
  display: inline-flex;
  justify-content: center;
  width: max-content;
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.12);
  color: #2e5f5d;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.dashboard-task-status.status-overdue {
  background: rgba(122, 92, 72, 0.16);
  color: #7a3f2e;
}

@media (max-width: 640px) {
  .dashboard-greeting,
  .dashboard-task-summary {
    padding-inline: 18px;
  }

  .dashboard-task-metrics,
  .dashboard-task-card {
    grid-template-columns: 1fr;
  }

  .resident-request-summary,
  .resident-request-layout,
  .resident-form-grid,
  .resident-request-card {
    grid-template-columns: 1fr;
  }

  .resident-portal-nav,
  .resident-action-center {
    width: min(100% - 20px, 1180px);
  }

  .dashboard-task-status {
    margin-left: 0;
  }
}

.page-section {
  padding-top: clamp(42px, 7vw, 76px);
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: var(--paper);
}

.story-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.story-art {
  display: grid;
  place-items: center;
}

.story-art img {
  width: min(390px, 100%);
  filter: drop-shadow(0 22px 28px rgba(35, 31, 32, 0.18));
}

.life-gallery-section {
  padding: clamp(62px, 8vw, 94px) clamp(18px, 6vw, 72px);
  background:
    radial-gradient(circle at 11% 10%, rgba(42, 169, 165, 0.16), transparent 24rem),
    radial-gradient(circle at 92% 28%, rgba(240, 154, 53, 0.16), transparent 22rem),
    linear-gradient(135deg, #07131f 0%, #142433 48%, #231f20 100%);
  color: var(--cream);
}

.life-gallery-header {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto 38px;
  text-align: center;
}

.life-gallery-header .eyebrow {
  margin-bottom: 0;
  color: var(--teal);
}

.life-gallery-header h2,
.life-gallery-header p {
  margin: 0;
}

.life-gallery-header h2 {
  color: var(--cream-2);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.018em;
}

.life-gallery-header p {
  color: rgba(244, 239, 229, 0.86);
  font-size: 1.08rem;
  line-height: 1.7;
}

.life-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
}

.life-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(42, 169, 165, 0.26);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.07);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.life-card:hover {
  border-color: rgba(42, 169, 165, 0.68);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
}

.life-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.life-card-content {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.life-card-category {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.life-card-content h3,
.life-card-content p {
  margin: 0;
}

.life-card-content h3 {
  color: var(--cream-2);
  font-size: 1.22rem;
  line-height: 1.2;
}

.life-card-content p {
  color: rgba(244, 239, 229, 0.82);
  line-height: 1.6;
}

.founder-bio-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.44fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(31, 61, 54, 0.05), rgba(198, 129, 74, 0.08)),
    var(--cream);
  border-top: 1px solid var(--line);
}

.founder-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 61, 54, 0.16);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 46px rgba(35, 31, 32, 0.14);
}

.founder-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.team-headshot {
  object-fit: cover;
  object-position: center 28%;
}

.team-headshot-stephanie {
  object-position: center 28% !important;
}

.founder-photo-placeholder {
  display: grid;
  min-height: min(520px, 72vw);
  place-items: center;
}

.pending-headshot {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: min(520px, 72vw);
  place-items: center;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 250, 240, 0.92), transparent 32%),
    linear-gradient(145deg, rgba(31, 61, 54, 0.92), rgba(198, 129, 74, 0.82));
  color: var(--cream);
}

.pending-headshot span {
  display: grid;
  width: clamp(96px, 18vw, 150px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 50%;
  background: rgba(35, 31, 32, 0.24);
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 1;
}

.brett-bio-section {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.95), rgba(244, 239, 229, 0.96)),
    var(--paper);
}

.christy-bio-section {
  background:
    linear-gradient(135deg, rgba(31, 61, 54, 0.05), rgba(255, 250, 240, 0.96)),
    var(--cream);
}

.founder-bio-copy {
  max-width: 760px;
}

.founder-bio-copy h2 {
  margin-bottom: 12px;
  line-height: 1.08;
}

.bio-role {
  margin: 0 0 10px;
  color: var(--river);
  font-weight: 800;
  line-height: 1.4;
}

.bio-email {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(31, 61, 54, 0.34);
  color: var(--ember);
  font-weight: 850;
  text-decoration: none;
}

.bio-email:hover {
  color: var(--river);
}

.founder-bio-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.content-section {
  background:
    linear-gradient(180deg, rgba(35, 31, 32, 0.94), rgba(35, 31, 32, 0.98)),
    var(--charcoal);
  color: var(--cream);
}

.blog-band {
  background:
    linear-gradient(180deg, rgba(244, 239, 229, 0.98), rgba(255, 250, 240, 0.98)),
    var(--cream);
}

.blog-band .section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.blog-teaser-grid,
.blog-post-grid {
  display: grid;
  gap: 16px;
}

.blog-teaser-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.8fr);
}

.blog-teaser-grid article,
.blog-post-grid article,
.facebook-panel,
.facebook-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
}

.blog-teaser-grid article {
  overflow: hidden;
}

.blog-teaser-grid article img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-teaser-grid article div,
.blog-post-grid article,
.facebook-panel,
.facebook-card {
  padding: 20px;
}

.blog-teaser-grid span,
.blog-post-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-teaser-grid h3,
.blog-post-grid h3 {
  margin-bottom: 10px;
}

.blog-teaser-grid p,
.blog-post-grid p,
.facebook-panel p,
.facebook-card p,
.social-band p {
  color: var(--muted);
  line-height: 1.6;
}

.facebook-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(35, 31, 32, 0.94), rgba(35, 31, 32, 0.98)),
    var(--charcoal);
  color: var(--cream);
}

.facebook-panel p {
  color: rgba(244, 239, 229, 0.78);
}

.blog-page-section {
  border-top: 1px solid var(--line);
}

.blog-post-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
}

.blog-post-grid .featured-post {
  display: grid;
  grid-row: span 3;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
}

.featured-post img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-post div {
  padding: 24px;
}

.hr-blog-section {
  position: relative;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 86px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 169, 165, 0.22), transparent 24rem),
    radial-gradient(circle at 90% 14%, rgba(240, 154, 53, 0.12), transparent 25rem),
    linear-gradient(135deg, #07131f, #102534 58%, #231f20);
  color: var(--cream);
}

.hr-blog-header {
  max-width: 860px;
  margin: 0 auto clamp(28px, 5vw, 48px);
  text-align: center;
}

.hr-blog-kicker {
  margin: 0 0 10px;
  color: #75d7d3;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hr-blog-header h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.hr-blog-header p,
.hr-blog-featured-copy p,
.hr-blog-card p,
.hr-blog-newsletter p,
.hr-blog-modal-excerpt,
.hr-blog-modal-article p,
.hr-blog-modal-article li {
  color: rgba(244, 239, 229, 0.82);
  line-height: 1.7;
}

.hr-blog-featured {
  max-width: 1180px;
  margin: 0 auto clamp(26px, 5vw, 44px);
}

.hr-blog-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(117, 215, 211, 0.3);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hr-blog-featured-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 42%, rgba(117, 215, 211, 0.12), transparent 15rem),
    rgba(7, 19, 31, 0.74);
}

.hr-blog-featured-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 44px);
}

.hr-blog-featured-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.hr-blog-controls {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.hr-blog-search-label {
  display: grid;
  gap: 8px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.hr-blog-search-label span {
  color: rgba(244, 239, 229, 0.76);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hr-blog-search-label input {
  width: 100%;
  border: 1px solid rgba(117, 215, 211, 0.34);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 250, 240, 0.95);
  color: var(--ink);
  outline: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.hr-blog-search-label input:focus {
  border-color: rgba(117, 215, 211, 0.9);
  box-shadow: 0 0 0 4px rgba(117, 215, 211, 0.18);
}

.hr-blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hr-blog-filter-button,
.hr-blog-read-button,
.hr-blog-newsletter-form button,
.hr-blog-modal-close,
.hr-blog-related-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.hr-blog-filter-button {
  padding: 10px 13px;
  border: 1px solid rgba(117, 215, 211, 0.26);
  background: rgba(255, 250, 240, 0.08);
  color: var(--cream);
}

.hr-blog-filter-button:hover,
.hr-blog-filter-button.hr-blog-filter-active {
  background: rgba(117, 215, 211, 0.18);
  border-color: rgba(117, 215, 211, 0.72);
  color: #ffffff;
}

.hr-blog-status {
  max-width: 1180px;
  margin: 0 auto 16px;
  color: rgba(244, 239, 229, 0.72);
  font-weight: 800;
}

.hr-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.hr-blog-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(117, 215, 211, 0.25);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hr-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(117, 215, 211, 0.68);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.hr-blog-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 42%, rgba(117, 215, 211, 0.12), transparent 13rem),
    rgba(7, 19, 31, 0.66);
}

.hr-blog-card-content {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.hr-blog-category {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(117, 215, 211, 0.16);
  color: #8be4df;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hr-blog-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hr-blog-card p {
  margin: 0;
}

.hr-blog-date {
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.hr-blog-read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 6px;
  padding: 11px 14px;
  background: var(--teal);
  color: #041414;
  text-decoration: none;
}

.hr-blog-read-button:hover,
.hr-blog-newsletter-form button:hover,
.hr-blog-related-button:hover {
  background: var(--gold);
}

.hr-blog-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: center;
  max-width: 1180px;
  margin: clamp(34px, 6vw, 58px) auto 0;
  border: 1px solid rgba(117, 215, 211, 0.28);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 250, 240, 0.1);
}

.hr-blog-newsletter h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.hr-blog-newsletter-form {
  display: grid;
  gap: 10px;
}

.hr-blog-newsletter-form label {
  color: rgba(244, 239, 229, 0.76);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hr-blog-newsletter-form input {
  border: 1px solid rgba(117, 215, 211, 0.34);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
}

.hr-blog-newsletter-form button {
  padding: 13px 14px;
  background: var(--teal);
  color: #041414;
}

.hr-blog-newsletter-message {
  min-height: 1.4em;
  margin: 0;
  color: #8be4df;
  font-weight: 850;
}

.hr-blog-modal[hidden] {
  display: none;
}

.hr-blog-modal-open {
  overflow: hidden;
}

.hr-blog-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 30px);
}

.hr-blog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 31, 0.78);
  backdrop-filter: blur(8px);
}

.hr-blog-modal-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(1120px, 100%);
  height: min(88vh, 900px);
  max-height: min(88vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(117, 215, 211, 0.34);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hr-blog-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 10px 12px;
  background: rgba(35, 31, 32, 0.88);
  color: var(--cream);
}

.hr-blog-modal-close:hover {
  background: var(--teal-dark);
}

.hr-blog-modal-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  min-width: 0;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 42%, rgba(117, 215, 211, 0.14), transparent 18rem),
    rgba(7, 19, 31, 0.82);
}

.hr-blog-modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 42px);
}

.hr-blog-modal-category {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hr-blog-modal-body h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.hr-blog-modal-excerpt {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.hr-blog-modal-article {
  display: grid;
  gap: 16px;
}

.hr-blog-modal-article p,
.hr-blog-modal-article li {
  margin: 0;
  color: #4f443d;
}

.hr-blog-modal-article h3 {
  margin: 12px 0 0;
  color: var(--teal-dark);
  font-size: 1.2rem;
}

.hr-blog-modal-article ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.hr-blog-related {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.hr-blog-related h3 {
  margin: 0 0 12px;
}

.hr-blog-related-list {
  display: grid;
  gap: 10px;
}

.hr-blog-related-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  background: rgba(13, 94, 90, 0.08);
  color: var(--ink);
  text-align: left;
}

.hr-blog-related-button span {
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

@media (max-width: 950px) {
  .hr-blog-featured-card,
  .hr-blog-newsletter,
  .hr-blog-modal-content {
    grid-template-columns: 1fr;
  }

  .hr-blog-modal-content {
    grid-template-rows: auto auto;
  }

  .hr-blog-featured-card img,
  .hr-blog-modal-image {
    height: auto;
    min-height: 280px;
    max-height: 360px;
  }

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

  .hr-blog-modal-content {
    height: 92vh;
    max-height: 92vh;
    overflow-y: auto;
  }

  .hr-blog-modal-body {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .hr-blog-section {
    padding: 56px 18px;
  }

  .hr-blog-grid {
    grid-template-columns: 1fr;
  }

  .hr-blog-filters {
    justify-content: flex-start;
  }

  .hr-blog-filter-button {
    flex: 1 1 auto;
  }

  .hr-blog-featured-card img,
  .hr-blog-image {
    aspect-ratio: 4 / 3;
  }

  .hr-blog-modal-image {
    min-height: 220px;
    max-height: 300px;
  }

  .hr-blog-card-content,
  .hr-blog-featured-copy,
  .hr-blog-newsletter,
  .hr-blog-modal-body {
    padding: 18px;
  }

  .hr-blog-modal {
    padding: 10px;
  }

  .hr-blog-modal-close {
    top: 10px;
    right: 10px;
  }
}

.social-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  background: var(--paper);
}

.facebook-card {
  display: grid;
  gap: 12px;
}

.facebook-card img {
  width: min(210px, 70%);
  justify-self: center;
  filter: drop-shadow(0 18px 26px rgba(35, 31, 32, 0.16));
}

.resource-intro {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid rgba(215, 197, 173, 0.76);
  border-radius: 8px;
  background: rgba(215, 197, 173, 0.72);
  box-shadow: 0 16px 38px rgba(35, 31, 32, 0.14);
}

.resource-intro div {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 250, 240, 0.94);
}

.resource-intro strong,
.resource-intro span {
  display: block;
}

.resource-intro strong {
  margin-bottom: 8px;
}

.resource-intro span {
  color: var(--muted);
  line-height: 1.45;
}

.resource-access-intro,
.data-safety-section {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto;
}

.resource-access-intro {
  padding: 26px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 244, 236, 0.82)),
    var(--paper);
  box-shadow: 0 18px 42px rgba(79, 140, 138, 0.11);
}

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

.resource-access-grid article,
.data-safety-grid span {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(122, 92, 72, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.resource-access-grid strong,
.data-safety-grid span {
  color: var(--teal-dark);
  font-weight: 900;
}

.resource-access-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.resource-access-cta {
  border-color: rgba(201, 169, 107, 0.36) !important;
  background: linear-gradient(145deg, rgba(255, 247, 222, 0.9), rgba(255, 255, 255, 0.78)) !important;
}

.data-safety-panel {
  padding: 28px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 244, 238, 0.9)),
    var(--paper);
  box-shadow: 0 18px 42px rgba(122, 92, 72, 0.1);
}

.data-safety-panel h2 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.data-safety-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.data-safety-grid {
  margin-top: 22px;
}

.data-safety-grid span {
  display: block;
  background: rgba(237, 244, 236, 0.72);
  line-height: 1.35;
}

.data-safety-warning {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(156, 82, 64, 0.22);
  border-radius: 16px;
  background: rgba(249, 232, 226, 0.72);
  color: #7f4437 !important;
  font-weight: 800;
}

.resource-featured-section,
.everything-aa-section,
.life-skills-section,
.veteran-disclaimer-section {
  background: var(--paper);
}

.resource-directory-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 12%, rgba(42, 169, 165, 0.12), transparent 22rem),
    var(--cream-2);
}

.resource-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr) minmax(190px, 0.35fr) minmax(180px, 0.3fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.88);
}

.resource-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 12px;
}

.resource-scroll-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(237, 244, 236, 0.9);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.resource-view-row strong {
  font-size: 1.05rem;
}

.resource-view-toggle {
  display: flex;
  gap: 8px;
}

.resource-view-toggle .button,
#clearResourceFilters {
  min-width: 86px;
}

.resource-view-toggle .is-active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--cream);
}

.resource-filter-shell {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 12px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(237, 244, 236, 0.52)),
    rgba(255, 250, 240, 0.9);
}

.resource-filter-shell-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 0.92rem;
}

.resource-filter-shell-heading span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: var(--teal) rgba(237, 244, 236, 0.88);
  scrollbar-width: thin;
}

.resource-filter-panel::-webkit-scrollbar,
#resourceResults.resource-results::-webkit-scrollbar,
#resourceResults.resource-map-view::-webkit-scrollbar {
  width: 10px;
}

.resource-filter-panel::-webkit-scrollbar-track,
#resourceResults.resource-results::-webkit-scrollbar-track,
#resourceResults.resource-map-view::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(237, 244, 236, 0.88);
}

.resource-filter-panel::-webkit-scrollbar-thumb,
#resourceResults.resource-results::-webkit-scrollbar-thumb,
#resourceResults.resource-map-view::-webkit-scrollbar-thumb {
  border: 2px solid rgba(237, 244, 236, 0.88);
  border-radius: 999px;
  background: var(--teal);
}

.filter-chip {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.filter-chip input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--teal-dark);
}

.filter-chip span {
  min-width: 0;
  overflow-wrap: normal;
}

.resource-note {
  max-width: 940px;
  color: var(--muted);
  line-height: 1.6;
}

.account-cta {
  display: inline-block;
  border: 1px solid rgba(42, 169, 165, 0.32);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(223, 241, 237, 0.42);
  color: var(--ink);
  font-weight: 760;
}

.women-family-resource-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid rgba(79, 140, 138, 0.28);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 24px);
  background:
    radial-gradient(circle at 92% 10%, rgba(201, 169, 107, 0.16), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 244, 236, 0.9)),
    var(--cream-2);
  box-shadow: 0 16px 34px rgba(79, 140, 138, 0.08);
}

.women-family-resource-panel h3,
.women-family-resource-panel p {
  margin: 0;
}

.women-family-resource-panel p:not(.eyebrow) {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.62;
}

.women-family-resource-note {
  border-left: 3px solid rgba(201, 169, 107, 0.78);
  padding-left: 12px;
  font-weight: 760;
}

.resource-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-top: 18px;
}

#resourceResults.resource-results,
#resourceResults.resource-map-view {
  max-height: min(72vh, 760px);
  overflow-y: auto;
  padding-right: 8px;
  align-content: start;
  scrollbar-color: var(--teal) rgba(237, 244, 236, 0.88);
  scrollbar-width: thin;
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.resource-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  margin-top: 12px;
  border: 1px solid rgba(201, 169, 107, 0.62);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(79, 140, 138, 0.08);
}

.resource-jump-link:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.resource-sticky-jump {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: var(--teal-dark);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(35, 31, 32, 0.22);
}

.resource-sticky-jump.is-hidden {
  display: none !important;
}

.everything-aa-section {
  border-top: 1px solid var(--line);
}

.everything-aa-card {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(42, 169, 165, 0.28);
  border-radius: 8px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(223, 241, 237, 0.56), rgba(255, 250, 240, 0.96)),
    var(--cream-2);
  box-shadow: 0 16px 34px rgba(35, 31, 32, 0.1);
  text-align: center;
}

.everything-aa-card .eyebrow {
  margin-bottom: 0;
}

.everything-aa-card h2 {
  margin: 0;
}

.everything-aa-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.everything-aa-card p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

.recovery-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
  text-align: left;
}

.recovery-app-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 12px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(237, 244, 236, 0.72)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(79, 140, 138, 0.08);
}

.recovery-app-panel p {
  max-width: none;
  margin: 0;
}

.resource-app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.resource-app-card-header h3 {
  margin-bottom: 8px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.app-badge.beta {
  border: 1px solid rgba(122, 92, 72, 0.24);
  background: rgba(201, 169, 107, 0.2);
  color: var(--river);
}

.everything-aa-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--charcoal);
  color: var(--cream);
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.app-button:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.app-button.secondary {
  border-color: rgba(42, 169, 165, 0.48);
  background: rgba(42, 169, 165, 0.12);
  color: var(--ink);
}

.app-button.secondary:hover {
  border-color: rgba(13, 94, 90, 0.58);
  background: rgba(42, 169, 165, 0.2);
}

.app-button.disabled,
.app-button:disabled {
  border-color: rgba(191, 169, 138, 0.7);
  background: rgba(221, 215, 202, 0.86);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.app-button.disabled:hover,
.app-button:disabled:hover {
  border-color: rgba(191, 169, 138, 0.7);
  background: rgba(221, 215, 202, 0.86);
  color: var(--muted);
  transform: none;
}

.app-helper-text {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.everything-aa-card .everything-aa-note {
  max-width: 660px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 1000px) {
  .recovery-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.resource-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.88);
}

.resource-card.is-featured {
  border-color: rgba(42, 169, 165, 0.52);
  background:
    linear-gradient(180deg, rgba(223, 241, 237, 0.64), rgba(255, 250, 240, 0.92)),
    var(--cream-2);
}

.resource-card-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}

.resource-card-head > div {
  min-width: 0;
}

.resource-card-head span,
.resource-card-head strong {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-card-head strong {
  align-self: start;
  justify-self: start;
  max-width: 100%;
  text-align: left;
  line-height: 1.25;
}

.resource-card-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  max-width: none;
  order: -1;
}

.resource-access-label {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 999px;
  background: rgba(237, 244, 236, 0.86);
  overflow-wrap: normal;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}

.resource-access-label.owner_only,
.resource-access-label.manager_access,
.resource-access-label.client_only,
.resource-access-label.free_account {
  border-color: rgba(122, 92, 72, 0.22);
  background: rgba(247, 244, 238, 0.95);
  color: var(--river);
}

.resource-access-label.paid_buyer,
.resource-access-label.purchased_template,
.resource-access-label.training_access {
  border-color: rgba(201, 169, 107, 0.44);
  background: rgba(255, 247, 222, 0.92);
  color: #7a5c2b;
}

.resource-card h3 {
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.resource-card p,
.resource-meta-item {
  color: var(--muted);
  line-height: 1.55;
}

.resource-card p,
.resource-meta-item,
.resource-details p,
.resource-tags span,
.resource-actions .button {
  overflow-wrap: break-word;
  word-break: normal;
}

.resource-meta {
  display: grid;
  gap: 8px;
}

.resource-tags,
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-tags span {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.8rem;
  font-weight: 850;
}

.resource-meta-item {
  margin: 0;
  font-size: 0.92rem;
}

.resource-details {
  display: grid;
  gap: 8px;
  border-left: 3px solid rgba(42, 169, 165, 0.36);
  padding-left: 12px;
}

.resource-details p {
  margin: 0;
  font-size: 0.92rem;
}

.resource-details strong {
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-tags span {
  background: rgba(42, 169, 165, 0.12);
  color: var(--teal-dark);
}

.resource-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
}

.resource-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: 14px;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.resource-card .button.secondary {
  color: var(--ink);
}

.credit-repair-section {
  display: grid;
  gap: 22px;
  margin: 22px 0 18px;
  border: 1px solid rgba(42, 169, 165, 0.28);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 197, 104, 0.18), transparent 17rem),
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(223, 241, 237, 0.38)),
    var(--cream-2);
  box-shadow: 0 18px 40px rgba(35, 31, 32, 0.1);
}

.credit-repair-hero {
  max-width: 880px;
}

.credit-repair-hero h2,
.credit-repair-hero p {
  margin-bottom: 0;
}

.credit-repair-hero p:not(.eyebrow),
.credit-repair-card p,
.credit-repair-link-card span,
.credit-repair-note {
  color: var(--muted);
  line-height: 1.62;
}

.credit-repair-grid,
.credit-repair-two-column,
.credit-repair-link-grid,
.credit-repair-tool-grid {
  display: grid;
  gap: 14px;
}

.credit-repair-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.credit-repair-two-column {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.credit-repair-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.credit-repair-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.credit-repair-card,
.credit-repair-letter,
.credit-repair-link-card,
.credit-repair-tool,
.credit-repair-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
}

.credit-repair-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.credit-repair-card h3,
.credit-repair-letter h3 {
  margin: 0;
}

.credit-repair-card ul,
.credit-repair-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.52;
}

.credit-repair-check-list li::marker,
.credit-repair-steps li::marker {
  color: var(--teal-dark);
  font-weight: 900;
}

.credit-repair-block {
  display: grid;
  gap: 12px;
}

.section-heading.compact {
  margin: 0;
}

.section-heading.compact h3 {
  margin: 0;
}

.credit-repair-link-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 16px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.credit-repair-link-card strong {
  color: var(--teal-dark);
}

.credit-repair-link-card:hover {
  border-color: rgba(42, 169, 165, 0.62);
  box-shadow: 0 12px 28px rgba(35, 31, 32, 0.1);
  transform: translateY(-2px);
}

.credit-repair-warning {
  border-color: rgba(240, 154, 53, 0.56);
  background:
    linear-gradient(180deg, rgba(244, 197, 104, 0.2), rgba(255, 250, 240, 0.92)),
    var(--paper);
}

.credit-repair-warning h3 {
  color: var(--charcoal);
}

.credit-repair-letter {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(223, 241, 237, 0.38), rgba(255, 250, 240, 0.9)),
    var(--paper);
}

.credit-repair-letter p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.credit-repair-letter pre {
  overflow: auto;
  max-height: 340px;
  margin: 0;
  border: 1px solid rgba(13, 94, 90, 0.24);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.credit-repair-letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.credit-repair-tool {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 58px;
  padding: 14px;
  color: var(--muted);
  font-weight: 820;
}

.credit-repair-tool input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-dark);
  flex: 0 0 auto;
}

.credit-repair-note {
  margin: 0;
  padding: 14px 16px;
  background: rgba(223, 241, 237, 0.38);
}

.resource-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.74);
}

.resource-map-view {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.map-panel {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 22%, rgba(42, 169, 165, 0.26), transparent 7rem),
    radial-gradient(circle at 74% 36%, rgba(244, 197, 104, 0.26), transparent 8rem),
    radial-gradient(circle at 52% 76%, rgba(200, 131, 92, 0.18), transparent 10rem),
    linear-gradient(135deg, #f8f2e7, #dfecea);
  box-shadow: 0 14px 28px rgba(35, 31, 32, 0.08);
}

.map-panel-surface {
  display: grid;
  align-items: center;
  min-height: 440px;
  padding: 32px 22px 88px;
}

.map-panel-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.map-panel-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(215, 197, 173, 0.86);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.14);
}

.map-panel-caption strong {
  color: var(--ink);
  font-size: 1rem;
}

.map-panel-caption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.map-point {
  position: relative;
  display: inline-grid;
  gap: 2px;
  min-width: 112px;
  margin: 12px;
  border: 1px solid rgba(13, 94, 90, 0.32);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(35, 31, 32, 0.12);
}

.map-point span {
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.map-list {
  display: grid;
  gap: 12px;
}

.map-list-header {
  display: grid;
  gap: 6px;
}

.map-list-header h3 {
  margin-bottom: 0;
}

.map-list-header p {
  margin: 0;
  color: var(--muted);
}

.map-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.map-city-grid .map-point {
  margin: 0;
}

.map-preview-grid {
  display: grid;
  gap: 12px;
}

.life-skills-section {
  border-top: 1px solid var(--line);
}

.practical-next-steps-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(42, 169, 165, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(244, 239, 229, 0.82));
}

.practical-next-steps-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.practical-next-steps-intro {
  border: 1px solid rgba(42, 169, 165, 0.28);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.08);
}

.practical-next-steps-intro h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.practical-next-steps-intro p,
.practical-next-steps-intro li {
  color: var(--muted);
  line-height: 1.6;
}

.practical-next-steps-intro ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-left: 18px;
}

.life-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.life-skills-grid label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.84);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.35;
}

.life-skills-grid input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal-dark);
}

#resource-task-guides,
.resource-task-guide,
#sober-living-questions {
  scroll-margin-top: 6rem;
}

.selected-resource-category-notice {
  display: grid;
  gap: 6px;
  margin: 18px 0 22px;
  border: 1px solid rgba(79, 140, 138, 0.26);
  border-radius: 8px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(234, 244, 242, 0.94), rgba(255, 255, 250, 0.9));
  color: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.06);
}

.selected-resource-category-notice strong {
  color: var(--ink);
}

.selected-resource-category-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sober-living-questions-section {
  width: min(100% - 32px, 1180px);
  margin: clamp(34px, 6vw, 64px) auto;
  border: 1px solid rgba(191, 169, 138, 0.44);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 94% 8%, rgba(79, 140, 138, 0.13), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 250, 0.96), rgba(247, 244, 238, 0.92));
  box-shadow: 0 18px 42px rgba(35, 31, 32, 0.08);
}

.sober-living-questions-section .section-heading {
  max-width: 860px;
}

.sober-living-questions-section h2 {
  overflow-wrap: anywhere;
}

.sober-living-questions-grid,
.sober-living-question-groups {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.sober-living-questions-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: 24px;
}

.sober-living-questions-grid article,
.sober-living-question-group {
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 22px);
  background: rgba(255, 250, 240, 0.9);
}

.sober-living-questions-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.12;
}

.sober-living-questions-grid span,
.sober-living-question-group p,
.sober-living-question-group li {
  color: var(--muted);
  line-height: 1.65;
}

.sober-living-questions-grid span {
  display: block;
  margin-top: 12px;
}

.sober-living-questions-actions,
.sober-living-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.sober-living-questions-actions .button,
.sober-living-question-actions .button {
  min-height: 48px;
  white-space: normal;
}

.sober-living-questions-note {
  margin: 24px 0 0;
  border: 1px solid rgba(201, 169, 107, 0.5);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 248, 232, 0.88);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.sober-living-questions-card .eyebrow {
  margin-top: 24px;
}

.sober-living-question-groups {
  margin-top: 28px;
}

.sober-living-question-group h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.08;
}

.sober-living-question-group p {
  margin: 14px 0 0;
}

.sober-living-question-group ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.sober-living-question-group li {
  overflow-wrap: anywhere;
}

.public-resource-task-panel {
  min-width: 0;
}

.public-resource-task-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.public-resource-task-tools .button {
  min-height: 44px;
}

.public-resource-task-count,
.public-task-empty,
.public-task-guide-status {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.public-resource-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  min-width: 0;
}

.public-resource-task-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(247, 244, 238, 0.9));
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.08);
}

.public-resource-task-category {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.public-resource-task-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.12;
}

.public-resource-task-card h3 a {
  color: inherit;
  text-decoration: none;
}

.public-resource-task-card h3 a:hover {
  color: var(--teal-dark);
}

.public-resource-task-card p:not(.public-resource-task-category) {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.public-resource-task-actions,
.public-task-guide-actions,
.public-local-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-resource-task-actions {
  margin-top: 4px;
}

.public-resource-task-actions .button,
.public-task-guide-actions .button,
.public-local-resource-actions .button {
  min-height: 42px;
  white-space: normal;
}

.public-resource-task-related {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.16;
}

.public-resource-task-related small {
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.25;
  opacity: 0.82;
}

.public-task-guide-page main {
  padding-block: 44px;
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 140, 138, 0.14), transparent 22rem),
    linear-gradient(180deg, rgba(247, 244, 238, 0.98), rgba(255, 250, 240, 0.92));
}

.public-task-guide-card {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid rgba(191, 169, 138, 0.5);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 18px 42px rgba(35, 31, 32, 0.12);
}

.public-task-guide-card h1 {
  max-width: 840px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 8vw, 5rem);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.public-task-guide-intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.8;
}

.public-task-guide-section,
.public-task-tips,
.public-task-disclaimer {
  margin-top: 28px;
  border: 1px solid rgba(191, 169, 138, 0.45);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(255, 255, 250, 0.86);
}

.public-task-guide-section h2,
.public-task-tips h2,
.public-task-disclaimer h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.public-task-guide-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.public-task-guide-section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.public-task-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-task-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(247, 244, 238, 0.62);
}

.public-task-steps span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.14);
  color: var(--teal-dark);
  font-weight: 900;
}

.public-task-steps p,
.public-task-tips li,
.public-task-disclaimer p,
.public-local-resource-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.public-task-tips {
  border-color: rgba(201, 169, 107, 0.58);
  background: rgba(255, 248, 232, 0.82);
}

.public-task-tips ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.public-local-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.public-local-resource-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.9);
}

.public-local-resource-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-local-resource-badges span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(234, 244, 242, 0.95);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.public-local-resource-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.16;
}

.public-local-resource-provider {
  color: var(--brown);
  font-weight: 900;
}

.public-local-resource-note {
  border-radius: 8px;
  padding: 12px;
  background: rgba(247, 244, 238, 0.86);
  font-size: 0.88rem;
}

.public-task-guide-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(191, 169, 138, 0.45);
}

.public-task-disclaimer {
  border-color: rgba(201, 169, 107, 0.62);
  background: rgba(255, 248, 232, 0.9);
}

@media (max-width: 720px) {
  .public-resource-task-grid,
  .public-local-resource-grid,
  .sober-living-questions-grid {
    grid-template-columns: 1fr;
  }

  .public-resource-task-actions .button,
  .public-task-guide-actions .button,
  .public-resource-task-tools .button,
  .public-local-resource-actions .button,
  .sober-living-questions-actions .button,
  .sober-living-question-actions .button {
    width: 100%;
  }

  .public-task-guide-card {
    width: min(100% - 20px, 1040px);
    padding: 20px;
  }

  .public-task-steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .public-task-steps span {
    width: 32px;
    height: 32px;
  }

  .sober-living-questions-section {
    width: min(100% - 20px, 1180px);
    padding: 22px 16px;
  }
}

@media print {
  body.public-task-guide-page {
    background: #ffffff !important;
  }

  body.public-task-guide-page header,
  body.public-task-guide-page footer,
  body.public-task-guide-page nav,
  body.public-task-guide-page .print-hidden,
  body.public-task-guide-page button,
  body.public-task-guide-page .public-task-guide-actions {
    display: none !important;
  }

  body.public-task-guide-page main {
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.public-task-guide-page .public-task-guide-card,
  body.public-task-guide-page .public-task-guide-section,
  body.public-task-guide-page .public-task-tips,
  body.public-task-guide-page .public-task-disclaimer,
  body.public-task-guide-page .public-local-resource-card,
  body.public-task-guide-page .sober-living-question-group {
    border-color: #000000 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  body.public-task-guide-page * {
    color: #000000 !important;
  }
}

.veteran-disclaimer-section {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  padding-bottom: 34px;
}

.veteran-disclaimer,
.legal-disclaimer {
  border: 1px solid rgba(42, 169, 165, 0.28);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(223, 241, 237, 0.32);
}

.legal-disclaimer {
  margin-top: 12px;
}

.resource-seo-links .link-grid a {
  min-height: 136px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

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

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.link-grid a {
  min-height: 154px;
  border: 1px solid rgba(244, 239, 229, 0.2);
  border-radius: 8px;
  padding: 22px;
  background: rgba(244, 239, 229, 0.06);
  color: var(--cream);
  text-decoration: none;
}

.link-grid strong,
.link-grid span {
  display: block;
}

.link-grid strong {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.link-grid span {
  color: rgba(244, 239, 229, 0.76);
  line-height: 1.55;
}

.provide-grid article {
  overflow: hidden;
  border: 1px solid rgba(244, 239, 229, 0.18);
  border-radius: 8px;
  background: rgba(244, 239, 229, 0.08);
}

.provide-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.provide-grid h3,
.provide-grid p {
  padding-inline: 18px;
}

.provide-grid h3 {
  margin-top: 18px;
}

.provide-grid p {
  margin-bottom: 20px;
  color: rgba(244, 239, 229, 0.78);
  line-height: 1.6;
}

.admissions-band,
.forms-section,
.faq-section {
  background: var(--paper);
}

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

.residence-snapshot {
  margin-top: clamp(28px, 5vw, 54px);
}

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

.snapshot-grid article,
.amenity-grid section,
.cost-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
}

.snapshot-grid article {
  padding: 22px;
}

.snapshot-grid span,
.cost-table span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.snapshot-grid strong,
.cost-table strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.snapshot-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.amenities-section {
  background: var(--paper);
}

.amenities-section .section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.amenities-cream {
  border-top: 1px solid var(--line);
  background: var(--cream-2);
}

.house-photo-section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.house-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.8fr));
  gap: 14px;
}

.house-photo-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
}

.house-photo-card.featured {
  grid-row: span 2;
}

.house-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.house-photo-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(35, 31, 32, 0.76);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

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

.amenity-grid section {
  padding: 20px;
}

.amenity-grid li {
  color: var(--muted);
  line-height: 1.6;
}

.amenity-grid li.amenity-coming-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  border: 1px solid rgba(198, 129, 74, 0.34);
  border-radius: 8px;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(245, 224, 215, 0.8)),
    rgba(255, 250, 240, 0.9);
  color: var(--ink);
  list-style: none;
  box-shadow: 0 10px 22px rgba(35, 31, 32, 0.06);
}

.amenity-grid li.amenity-coming-soon::marker {
  content: "";
}

.amenity-coming-soon strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(31, 61, 54, 0.92);
  color: var(--cream);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.wellness-video-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 20%, rgba(42, 169, 165, 0.12), transparent 24rem),
    var(--paper);
}

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

.wellness-video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
}

.wellness-video-thumb {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.wellness-video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.9;
}

.wellness-video-card:nth-child(2) .wellness-video-thumb img {
  object-fit: contain;
  padding: 18px;
  background: #171313;
}

.wellness-video-thumb span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(35, 31, 32, 0.82);
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wellness-video-card > div:last-child {
  padding: 20px;
}

.wellness-video-card h3 {
  margin-bottom: 10px;
}

.wellness-video-card p {
  color: var(--muted);
  line-height: 1.6;
}

.program-fees-section {
  background:
    radial-gradient(circle at 84% 44%, rgba(42, 169, 165, 0.18), transparent 24rem),
    linear-gradient(120deg, #231f20 0%, #181515 70%, #2d211b 100%);
  color: var(--cream);
}

.program-fees-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.program-fees-layout p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(244, 239, 229, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cost-table {
  overflow: hidden;
  background: rgba(244, 239, 229, 0.96);
}

.cost-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cost-table div:last-child {
  border-bottom: 0;
}

.cost-table span {
  margin-bottom: 0;
}

.cost-table strong {
  font-size: 1.05rem;
  text-align: right;
}

.admissions-grid section,
.form-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
}

.admissions-grid section {
  padding: 20px;
}

.admissions-grid p,
.admissions-grid li,
.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

ol,
ul {
  padding-left: 1.2rem;
}

.forms-section {
  border-top: 1px solid var(--line);
}

.single-form {
  display: grid;
  justify-items: center;
}

.single-form .form-panel,
.single-form .form-status {
  width: min(720px, 100%);
}

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

.form-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.contact-form-section {
  background:
    radial-gradient(circle at 90% 18%, rgba(42, 169, 165, 0.1), transparent 24rem),
    var(--paper);
}

.contact-form-panel {
  width: min(100%, 920px);
}

.field-span {
  grid-column: 1 / -1;
}

.emergency-notice,
.contact-helper-wrap,
.contact-routing-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
}

.emergency-notice {
  display: grid;
  gap: 8px;
  width: min(100%, 920px);
  margin: 0 auto 18px;
  padding: 18px 20px;
}

.emergency-notice strong {
  color: #8b2f24;
}

.emergency-notice p,
.contact-helper,
.contact-routing-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-helper-wrap {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 100%;
  padding: 14px 16px;
}

.urgent-contact-warning {
  margin: 0;
  border: 1px solid rgba(139, 47, 36, 0.34);
  border-radius: 8px;
  padding: 12px;
  background: var(--rose);
  color: #8b2f24;
  font-weight: 900;
  line-height: 1.45;
}

.contact-routing-note {
  padding: 12px 14px;
  font-weight: 850;
}

.contact-routing-note.is-urgent {
  border-color: rgba(139, 47, 36, 0.34);
  background: var(--rose);
  color: #8b2f24;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdbda7;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
nav a:focus-visible,
nav .nav-trigger:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 169, 165, 0.22);
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 700;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-dark);
}

.form-status {
  min-height: 28px;
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 14px 0 0;
}

.contact-band {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at 84% 50%, rgba(42, 169, 165, 0.18), transparent 24rem),
    var(--charcoal);
  color: var(--cream);
}

.contact-band p:not(.eyebrow) {
  color: rgba(244, 239, 229, 0.78);
}

.contact-band .contact-actions .button {
  min-width: 180px;
}

.contact-band .button.secondary {
  border-color: rgba(42, 169, 165, 0.86);
  background: rgba(42, 169, 165, 0.18);
  color: var(--cream);
}

.contact-band .button.quiet {
  border-color: rgba(244, 239, 229, 0.42);
  background: rgba(244, 239, 229, 0.09);
  color: var(--cream);
}

.contact-page {
  min-height: 420px;
}

.contact-page .eyebrow + h1,
.contact-page .eyebrow + h2 {
  margin-top: clamp(1.75rem, 3vw, 2rem);
}

.contact-page h1 + p,
.contact-page h2 + p {
  margin-top: clamp(2rem, 3.5vw, 2.35rem);
}

.contact-page p:not(.eyebrow) {
  max-width: 68ch;
  line-height: 1.95;
}

.contact-page .contact-actions {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.staff-email-section {
  background:
    radial-gradient(circle at 92% 0%, rgba(42, 169, 165, 0.12), transparent 25rem),
    var(--paper);
}

.staff-email-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.staff-email-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(35, 31, 32, 0.08);
}

.staff-email-card span {
  color: var(--ember);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-email-card strong {
  font-size: 1.12rem;
}

.staff-email-card em {
  color: var(--river);
  font-style: normal;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.staff-email-card:hover {
  border-color: rgba(31, 61, 54, 0.32);
  transform: translateY(-2px);
}

.auth-choice-section,
.auth-form-section,
.portal-dashboard-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(42, 169, 165, 0.11), transparent 26rem),
    var(--paper);
}

.auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.auth-choice-grid.three-up {
  max-width: 1180px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-choice-grid.four-up {
  max-width: 1280px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-access-grid {
  max-width: 900px;
  margin-top: 18px;
}

.auth-choice-card,
.auth-form-card,
.portal-summary article,
.dashboard-card,
.pricing-card,
.access-card,
.lesson-card,
.protected-workbook-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 16px 34px rgba(35, 31, 32, 0.08);
}

.auth-choice-card,
.dashboard-card,
.lesson-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.auth-choice-card:hover,
.dashboard-card:hover,
.lesson-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 169, 165, 0.7);
}

.auth-choice-card strong {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.05;
}

.auth-choice-card p,
.auth-form-card p,
.portal-summary p,
.dashboard-card p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-form-section {
  min-height: calc(100svh - 170px);
  display: grid;
  place-items: center;
}

.auth-form-card {
  width: min(100%, 640px);
  padding: clamp(24px, 4vw, 38px);
}

.auth-form-card h1 {
  max-width: 560px;
  font-size: clamp(2.55rem, 6vw, 5rem);
}

.auth-form-card form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-form-card select {
  width: 100%;
}

.auth-form-card .button {
  width: 100%;
}

.compact-auth-section {
  min-height: auto;
  padding-top: 28px;
}

.fine-print {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.forgot-link {
  justify-self: start;
  color: var(--teal-dark);
  font-weight: 900;
}

.unified-login-card {
  width: min(100%, 720px);
}

.unified-login-card .eyebrow + h1,
.unified-login-card .eyebrow + h2 {
  margin-top: clamp(1.75rem, 3vw, 2rem);
}

.unified-login-card h1 + p,
.unified-login-card h2 + p {
  margin-top: clamp(2rem, 3.5vw, 2.35rem);
}

.unified-login-card > p:not(.eyebrow):not(.fine-print) {
  max-width: 68ch;
  line-height: 1.95;
}

.unified-login-card .login-form {
  margin-top: clamp(2.25rem, 4vw, 2.75rem);
}

.login-form {
  position: relative;
  z-index: 20;
}

.account-type-card-group {
  display: none;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.account-type-card-group legend {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.account-type-card-group > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.account-type-card-list {
  display: grid;
  gap: 10px;
}

.account-type-card {
  display: flex;
  min-height: 60px;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(35, 31, 32, 0.06);
  touch-action: manipulation;
}

.account-type-card:focus-visible {
  outline: 3px solid rgba(79, 140, 138, 0.28);
  outline-offset: 2px;
}

.account-type-card.is-selected {
  border-color: rgba(79, 140, 138, 0.85);
  background: linear-gradient(135deg, rgba(79, 140, 138, 0.14), rgba(247, 244, 238, 0.96));
  box-shadow: 0 12px 24px rgba(79, 140, 138, 0.14);
}

.account-type-card-radio {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  border: 2px solid rgba(79, 140, 138, 0.72);
  border-radius: 999px;
  background: #fff;
}

.account-type-card.is-selected .account-type-card-radio {
  background: var(--teal);
  border-color: var(--teal);
}

.account-type-card.is-selected .account-type-card-radio::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.account-type-card-copy {
  min-width: 0;
}

.account-type-card-copy strong,
.account-type-card-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.account-type-card-copy strong {
  font-size: 1rem;
  line-height: 1.25;
}

.account-type-card-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.login-account-type-select,
.auth-form-card select.login-account-type-select {
  position: relative;
  z-index: 30;
  min-height: 52px;
  font-size: 16px;
  -webkit-appearance: menulist;
  appearance: auto;
  touch-action: manipulation;
}

.login-select-active .pwa-install-strip {
  display: none !important;
}

.account-type-help {
  margin: -4px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 8px;
  background: rgba(79, 140, 138, 0.08);
  color: var(--river);
  font-size: 0.94rem;
}

@media (max-width: 767px) {
  .account-type-card-group {
    display: block;
  }

  .account-type-select-label,
  .account-type-help {
    display: none !important;
  }
}

.auth-error {
  color: #8b2f24;
}

.save-to-phone-section {
  padding: 24px var(--page-pad) 54px;
  background: var(--paper);
}

.save-to-phone-section-compact {
  padding: 0 var(--page-pad) 24px;
}

.save-to-phone-section-compact .save-to-phone-card {
  width: min(100%, 1180px);
  padding: 18px;
}

.save-to-phone-section-compact .save-to-phone-card h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.save-to-phone-section-compact .save-to-phone-grid {
  display: none;
}

.save-to-phone-card {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.96), rgba(255, 250, 240, 0.92)),
    var(--paper);
  box-shadow: 0 16px 34px rgba(35, 31, 32, 0.08);
}

.save-to-phone-card h2 {
  max-width: 700px;
  margin: 4px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.save-to-phone-card p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

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

.save-to-phone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 220px);
}

.save-to-phone-actions .button {
  min-height: 46px;
  white-space: normal;
}

.save-to-phone-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.45;
}

.save-to-phone-help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.save-to-phone-help-link:hover {
  background: rgba(79, 140, 138, 0.1);
  color: var(--charcoal);
}

.save-to-phone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.save-to-phone-grid article {
  padding: 18px;
  border: 1px solid rgba(191, 169, 138, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.78);
}

.save-to-phone-grid h3 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 900;
}

.save-to-phone-grid ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.pwa-install-strip {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 900;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(201, 169, 107, 0.46);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 42px rgba(35, 31, 32, 0.22);
}

.pwa-install-strip strong,
.pwa-install-strip span {
  display: block;
  min-width: 0;
}

.pwa-install-strip strong {
  color: var(--river);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.pwa-install-strip span,
.pwa-strip-status {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.pwa-install-strip .button {
  min-height: 44px;
  padding: 10px 14px;
  white-space: nowrap;
}

.pwa-strip-dismiss,
.pwa-modal-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(122, 92, 72, 0.18);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.pwa-strip-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.pwa-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(35, 31, 32, 0.46);
}

.pwa-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 16px;
  width: min(92vw, 560px);
  max-height: min(88dvh, 720px);
  padding: clamp(20px, 4vw, 30px);
  overflow-y: auto;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 28px 80px rgba(35, 31, 32, 0.28);
  transform: translate(-50%, -50%);
}

.pwa-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pwa-modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1;
}

.pwa-modal-body p,
.pwa-modal-body li {
  color: var(--muted);
  line-height: 1.6;
}

.pwa-modal-body ol {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.pwa-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pwa-modal-actions .button {
  min-height: 46px;
}

.pwa-remove-steps {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(201, 169, 107, 0.32);
  border-radius: 14px;
  background: rgba(201, 169, 107, 0.1);
}

.pwa-remove-steps h3 {
  margin: 0;
  color: var(--river);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 900;
}

.portal-summary,
.dashboard-grid {
  display: grid;
  gap: 14px;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.portal-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.portal-summary article {
  min-width: 0;
  padding: 22px;
}

.portal-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-summary strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
}

.portal-summary p {
  margin: 12px 0 0;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.dashboard-card h2 {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.dashboard-card p {
  margin: 0;
}

.resident-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100% - 32px, 1180px);
  margin: 0 auto 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 14px 28px rgba(35, 31, 32, 0.06);
}

.resident-portal-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.resident-portal-nav a:hover,
.resident-portal-nav a:focus-visible {
  background: rgba(79, 140, 138, 0.12);
}

.resident-action-center {
  width: min(100% - 32px, 1180px);
  margin: 28px auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.95), rgba(232, 241, 235, 0.88)),
    var(--paper);
  box-shadow: 0 18px 40px rgba(35, 31, 32, 0.08);
}

.resident-request-summary,
.resident-request-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.resident-request-summary article,
.resident-request-form,
.resident-request-list,
.resident-request-card {
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(35, 31, 32, 0.06);
}

.resident-request-summary article {
  padding: 18px;
}

.resident-request-summary span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resident-request-summary strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 2rem;
}

.resident-request-form,
.resident-request-list {
  padding: 18px;
}

.resident-request-form h3,
.resident-request-list h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.55rem;
}

.resident-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.resident-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.resident-form-grid .wide {
  grid-column: 1 / -1;
}

.resident-form-grid input,
.resident-form-grid select,
.resident-form-grid textarea {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.resident-form-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.resident-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
}

.resident-check input {
  width: auto;
}

.resident-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-top: 10px;
  padding: 14px;
}

.resident-request-card h3,
.resident-request-card p {
  margin: 0;
}

.resident-request-card p {
  color: var(--muted);
  line-height: 1.45;
}

.resident-request-status {
  display: inline-flex;
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  background: rgba(232, 241, 235, 0.9);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resident-request-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.password-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.password-input-wrap input {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.password-toggle {
  min-width: 72px;
  border: 0;
  border-left: 1px solid rgba(79, 140, 138, 0.2);
  background: rgba(168, 184, 160, 0.16);
  color: var(--teal-dark);
  font-family: var(--body);
  font-weight: 900;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(79, 140, 138, 0.16);
}

.password-strength-panel {
  display: grid;
  gap: 10px;
  margin-top: -4px;
  padding: 14px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.74);
}

.password-secure-note,
.password-match-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.password-meter-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.password-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(122, 92, 72, 0.14);
}

.password-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moss), var(--teal), var(--gold));
  transition: width 0.18s ease;
}

.password-checklist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.password-checklist li {
  position: relative;
  padding-left: 22px;
}

.password-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(79, 140, 138, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.password-checklist li.is-passed {
  color: var(--teal-dark);
}

.password-checklist li.is-passed::before {
  background: var(--teal);
  border-color: var(--teal);
}

.password-match-message {
  margin-top: -4px;
  font-weight: 900;
}

.password-match-message.is-match {
  color: var(--teal-dark);
}

.password-match-message.is-mismatch {
  color: #8b2f24;
}

.business-users-section {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 8% 18%, rgba(79, 140, 138, 0.1), transparent 26rem),
    var(--paper);
}

.business-user-toolbar,
.business-user-controls,
.business-user-table-wrap,
.business-user-panel,
.business-user-notice,
.business-user-form {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.business-user-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.business-user-toolbar h1,
.business-user-toolbar h2,
.business-user-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: 0;
}

.business-user-toolbar h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.business-user-toolbar h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.business-user-toolbar p,
.business-user-panel p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.58;
}

.business-user-controls,
.business-user-table-wrap,
.business-user-panel,
.business-user-notice,
.business-user-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 16px 34px rgba(35, 31, 32, 0.08);
}

.business-user-controls {
  display: grid;
  grid-template-columns: 1.3fr minmax(170px, 0.55fr) minmax(190px, 0.55fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
}

.business-user-controls label,
.business-user-form label {
  display: grid;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.business-user-count {
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.12);
  color: var(--teal-dark);
  font-weight: 900;
  white-space: nowrap;
}

.business-user-table-wrap {
  max-height: 560px;
  overflow: auto;
}

.business-user-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.business-user-table th,
.business-user-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
  text-align: left;
  vertical-align: top;
}

.business-user-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f4ee;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.business-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.business-user-actions.stacked {
  align-items: stretch;
  flex-direction: column;
}

.business-user-actions .button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.86rem;
}

.business-user-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(191, 169, 138, 0.16);
  color: var(--river);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: capitalize;
}

.business-user-pill.is-owner,
.business-user-pill.is-active {
  background: rgba(79, 140, 138, 0.14);
  color: var(--teal-dark);
}

.business-user-pill.is-resident {
  background: rgba(168, 184, 160, 0.18);
  color: var(--moss);
}

.business-user-pill.is-warning {
  background: rgba(201, 169, 107, 0.2);
  color: var(--river);
}

.business-user-pill.is-inactive {
  background: rgba(139, 47, 36, 0.1);
  color: #8b2f24;
}

.business-user-empty {
  padding: 28px;
  color: var(--muted);
  font-weight: 900;
}

.business-user-form-shell {
  min-height: calc(100svh - 170px);
}

.business-user-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: clamp(22px, 4vw, 34px);
}

.business-user-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-transform: none !important;
  color: var(--ink) !important;
  font-size: 0.96rem !important;
}

.business-user-checkbox input {
  width: auto;
}

.business-user-notice {
  max-width: 760px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-color: rgba(201, 169, 107, 0.34);
  background: rgba(201, 169, 107, 0.12);
  color: var(--river);
  font-weight: 900;
  line-height: 1.5;
}

.business-user-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 16px;
  width: min(100%, 1180px);
  margin: 0 auto 16px;
}

.business-user-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
}

.business-user-meta {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.business-user-meta div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 92, 72, 0.12);
}

.business-user-meta dt {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.business-user-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.business-user-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.business-user-table-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

@media (max-width: 820px) {
  .business-user-toolbar,
  .business-user-detail-grid,
  .business-user-controls {
    grid-template-columns: 1fr;
  }

  .business-user-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .business-user-toolbar .button {
    width: 100%;
  }

  .business-user-count {
    justify-self: start;
  }
}

.product-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 88% 16%, rgba(42, 169, 165, 0.1), transparent 24rem),
    var(--paper);
}

.workbook-reference-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 12% 14%, rgba(42, 169, 165, 0.12), transparent 24rem),
    var(--paper);
}

.workbook-cream {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(244, 239, 229, 0.98)),
    var(--cream);
}

.workbook-hero .hero-meta {
  color: var(--gold);
}

.workbook-reference-dashboard-section {
  padding-top: clamp(30px, 5vw, 58px);
  padding-bottom: clamp(30px, 5vw, 58px);
}

.workbook-reference-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.workbook-dashboard-main,
.workbook-dashboard-metrics article {
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 16%, rgba(201, 169, 107, 0.13), transparent 14rem),
    rgba(255, 250, 240, 0.9);
  box-shadow: 0 16px 32px rgba(35, 31, 32, 0.08);
}

.workbook-dashboard-main {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.workbook-dashboard-main h2,
.workbook-dashboard-main p {
  margin: 0;
}

.workbook-dashboard-main h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.04;
}

.workbook-dashboard-main p {
  color: var(--muted);
  line-height: 1.58;
}

.workbook-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workbook-dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.workbook-dashboard-metrics article {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.workbook-dashboard-metrics span,
.workbook-dashboard-metrics small {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workbook-dashboard-metrics strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1;
}

.workbook-dashboard-metrics small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.workbook-reference-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(100%, 1180px);
  margin: 14px auto 0;
}

.workbook-reference-subnav a {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.workbook-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.workbook-audience-grid article,
.workbook-source-note,
.workbook-toolbar,
.workbook-module-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 14px 30px rgba(35, 31, 32, 0.08);
}

.workbook-audience-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.workbook-audience-grid strong {
  color: var(--ink);
}

.workbook-audience-grid span,
.workbook-source-note span,
.workbook-status-row span {
  color: var(--muted);
  line-height: 1.55;
}

.workbook-source-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: min(100%, 1180px);
  margin: 16px auto 0;
  padding: 16px;
}

.workbook-source-note strong {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workbook-source-note a {
  color: var(--teal-dark);
  font-weight: 900;
}

.workbook-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 0.35fr) minmax(180px, 0.35fr);
  gap: 12px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 16px;
}

.workbook-status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 1180px);
  margin: 18px auto 0;
}

.workbook-status-row strong {
  color: var(--ink);
}

.workbook-module-list {
  display: grid;
  gap: 18px;
  width: min(100%, 1180px);
  margin: 18px auto 0;
}

.workbook-module-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 22px;
}

.workbook-module-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.workbook-module-head > div {
  min-width: 0;
}

.workbook-module-head .eyebrow {
  width: auto;
  max-width: 100%;
  flex-wrap: wrap;
  white-space: normal;
  overflow-wrap: anywhere;
}

.workbook-module-head > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--cream);
  font-weight: 900;
}

.workbook-module-card h2,
.workbook-module-card h3,
.workbook-module-card p,
.workbook-module-card ul {
  margin: 0;
}

.workbook-module-card h2 {
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.workbook-module-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.workbook-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.workbook-role-tags span {
  border: 1px solid rgba(42, 169, 165, 0.26);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(42, 169, 165, 0.08);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

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

.workbook-module-details {
  display: grid;
  gap: 12px;
}

.workbook-module-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 10px;
  background: rgba(79, 140, 138, 0.08);
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

.workbook-module-details summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

.workbook-module-details[open] summary::after {
  content: "-";
}

.workbook-module-details .workbook-module-columns {
  margin-top: 12px;
}

.workbook-module-columns section {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(215, 197, 173, 0.78);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.workbook-module-columns h3 {
  color: var(--ink);
  font-size: 0.95rem;
}

.workbook-module-columns ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.workbook-empty {
  text-align: center;
}

@media (max-width: 960px) {
  .workbook-reference-dashboard {
    grid-template-columns: 1fr;
  }

  .workbook-dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .workbook-reference-dashboard,
  .workbook-reference-subnav {
    max-width: calc(100vw - 58px);
  }

  .workbook-dashboard-main {
    padding: 20px;
  }

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

  .workbook-dashboard-actions {
    display: grid;
  }

  .workbook-dashboard-actions .button,
  .workbook-reference-subnav a {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    text-align: center;
  }
}

.pricing-grid,
.access-grid,
.lesson-list {
  display: grid;
  gap: 16px;
  width: min(100%, 1180px);
  margin-inline: auto;
}

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

.access-grid,
.lesson-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pricing-card,
.access-card,
.protected-workbook-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 24px;
}

.pricing-card h2,
.access-card h3,
.lesson-card h2 {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.22rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.pricing-card p,
.access-card p,
.lesson-card p,
.protected-workbook-panel p,
.protected-workbook-panel li {
  color: var(--muted);
  line-height: 1.6;
}

.product-price {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
}

.pricing-card .button,
.access-card .button {
  width: 100%;
}

.access-card span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-card.is-active {
  border-color: rgba(42, 169, 165, 0.72);
  background: rgba(42, 169, 165, 0.1);
}

.protected-workbook-panel {
  width: min(100%, 1180px);
  margin: 18px auto 0;
}

.product-disclaimer {
  width: min(100%, 1180px);
  margin: 18px auto 0;
}

.lesson-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 94px) clamp(20px, 6vw, 54px);
}

.lesson-page h1 {
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.lesson-page h2 {
  margin-top: 32px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.lesson-page p,
.lesson-page li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding: 26px 16px 34px;
  background: #161313;
  color: rgba(244, 239, 229, 0.72);
  line-height: 1.45;
  text-align: center;
}

footer span {
  display: inline-block;
}

.footer-security-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  width: 100%;
  margin-top: 8px;
}

.footer-security-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(247, 244, 238, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(247, 244, 238, 0.1);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-security-links a:hover {
  border-color: rgba(247, 244, 238, 0.38);
  background: rgba(247, 244, 238, 0.18);
  color: #fff;
  text-decoration: none;
}

.staff-page {
  background:
    radial-gradient(circle at 90% 10%, rgba(42, 169, 165, 0.12), transparent 28rem),
    var(--paper);
}

.staff-page .site-header button {
  font: inherit;
}

.staff-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(42px, 8vw, 96px) clamp(20px, 7vw, 92px);
  background:
    radial-gradient(circle at 82% 46%, rgba(42, 169, 165, 0.18), transparent 22rem),
    radial-gradient(circle at 76% 38%, rgba(244, 197, 104, 0.16), transparent 18rem),
    linear-gradient(120deg, #231f20 0%, #1a1718 72%, #2c201b 100%);
  color: var(--cream);
}

.staff-login-panel h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.staff-login-panel p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(244, 239, 229, 0.86);
  line-height: 1.65;
}

.staff-login-panel img {
  width: min(360px, 100%);
  justify-self: center;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.45));
}

.staff-login-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin-top: 24px;
}

.staff-login-form label {
  color: var(--cream);
}

.staff-locked #staffDashboard,
.staff-locked #staffLogout {
  display: none;
}

.staff-unlocked #staffLoginPanel {
  display: none;
}

.staff-dashboard {
  padding-bottom: 54px;
}

.staff-hero {
  padding: clamp(42px, 7vw, 78px) clamp(20px, 7vw, 92px);
  background:
    radial-gradient(circle at 88% 26%, rgba(42, 169, 165, 0.16), transparent 24rem),
    var(--charcoal);
  color: var(--cream);
}

.staff-hero h1 {
  max-width: 860px;
  font-size: clamp(2.85rem, 7vw, 5.8rem);
}

.staff-hero p:not(.eyebrow) {
  max-width: 960px;
  color: rgba(244, 239, 229, 0.84);
  line-height: 1.7;
}

.staff-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  padding: clamp(24px, 5vw, 48px) clamp(18px, 6vw, 86px);
  background: var(--cream-2);
}

.staff-menu a,
.staff-menu span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.88);
  color: var(--ink);
  text-decoration: none;
}

.staff-menu strong,
.staff-menu small,
.staff-menu span span {
  display: block;
}

.staff-menu span,
.staff-menu a span,
.staff-menu small {
  color: var(--muted);
  line-height: 1.45;
}

.staff-tool {
  margin: clamp(18px, 4vw, 34px) auto 0;
  width: min(1180px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 14px 34px rgba(35, 31, 32, 0.1);
}

.staff-tool-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(20px, 4vw, 30px);
  border-bottom: 1px solid var(--line);
}

.staff-tool-head p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.65;
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.staff-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 28px);
}

.staff-form details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.staff-form summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 900;
}

.staff-form details[open] summary {
  border-bottom: 1px solid var(--line);
}

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

.staff-form-grid.single {
  grid-template-columns: 1fr;
  padding: 0;
}

.staff-wide {
  grid-column: 1 / -1;
}

.staff-form fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(244, 239, 229, 0.48);
}

.staff-form legend {
  padding: 0 6px;
  font-weight: 900;
}

.staff-checks {
  display: grid;
  gap: 9px;
}

.staff-checks label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.staff-checks input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-dark);
}

.staff-callout,
.staff-script,
.staff-note {
  margin: 18px;
  border: 1px solid rgba(42, 169, 165, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: rgba(42, 169, 165, 0.09);
  color: var(--teal-dark);
  line-height: 1.6;
}

.staff-script {
  border-color: rgba(244, 197, 104, 0.46);
  background: rgba(244, 197, 104, 0.12);
  color: var(--ink);
  font-style: italic;
}

.fit-score-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.3fr) minmax(0, 1fr);
  gap: 12px;
}

.fit-score-panel div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(223, 241, 237, 0.52);
}

.fit-score-panel span,
.fit-score-panel strong {
  display: block;
}

.fit-score-panel span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.fit-score-panel strong {
  margin-top: 7px;
  color: var(--teal-dark);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.fit-warning {
  display: none;
  margin: 0;
  border: 1px solid rgba(139, 47, 36, 0.26);
  border-radius: 8px;
  padding: 14px;
  background: var(--rose);
  color: #8b2f24;
  font-weight: 850;
  line-height: 1.5;
}

.fit-warning.is-visible {
  display: block;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 18px;
}

.platform-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.88);
}

.platform-card h3 {
  margin-bottom: 0;
}

.future-tools {
  margin-bottom: 44px;
  padding: clamp(20px, 4vw, 30px);
}

.future-tools .staff-menu {
  padding: 0;
  background: transparent;
}

.newsletter-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.48fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: min(740px, calc(100svh - 64px));
  overflow: hidden;
  padding: clamp(54px, 8vw, 104px) clamp(22px, 8vw, 112px) clamp(92px, 11vw, 136px);
  background:
    linear-gradient(90deg, rgba(23, 19, 19, 0.9), rgba(23, 19, 19, 0.68) 48%, rgba(23, 19, 19, 0.38)),
    linear-gradient(0deg, rgba(13, 94, 90, 0.34), rgba(35, 31, 32, 0.26)),
    url("assets/river-newsletter-bg.png") center/cover no-repeat;
  color: var(--cream);
}

.newsletter-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  content: "";
  background: linear-gradient(0deg, var(--paper), transparent);
}

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

.newsletter-hero h1 {
  max-width: 880px;
  font-size: clamp(3.2rem, 7.4vw, 6.6rem);
}

.newsletter-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(244, 239, 229, 0.92);
  font-size: 1.12rem;
  line-height: 1.65;
}

.newsletter-hero .button {
  border-color: rgba(244, 239, 229, 0.36);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.newsletter-hero .button.primary {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--charcoal);
}

.newsletter-hero .button.secondary {
  border-color: rgba(42, 169, 165, 0.86);
  background: rgba(42, 169, 165, 0.2);
  color: var(--cream);
}

.newsletter-hero .button.quiet {
  border-color: rgba(244, 239, 229, 0.42);
  background: rgba(244, 239, 229, 0.1);
  color: var(--cream);
}

.newsletter-tagline {
  color: rgba(244, 197, 104, 0.96) !important;
  font-weight: 900;
}

.newsletter-hero-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.newsletter-hero-mark img {
  width: min(380px, 100%);
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.5));
}

.newsletter-intro-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid rgba(215, 197, 173, 0.76);
  border-radius: 8px;
  background: rgba(215, 197, 173, 0.72);
  box-shadow: 0 16px 38px rgba(35, 31, 32, 0.14);
}

.newsletter-intro-strip div {
  min-width: 0;
  min-height: 112px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.92);
}

.newsletter-intro-strip strong,
.newsletter-intro-strip span {
  display: block;
}

.newsletter-intro-strip strong {
  margin-bottom: 8px;
}

.newsletter-intro-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.newsletter-wrapper,
.newsletter-archive,
.newsletter-signup {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 8% 18%, rgba(42, 169, 165, 0.08), transparent 24rem),
    radial-gradient(circle at 94% 18%, rgba(244, 197, 104, 0.1), transparent 22rem),
    var(--paper);
}

.newsletter-cover {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(244, 197, 104, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 26%, rgba(42, 169, 165, 0.24), transparent 18rem),
    radial-gradient(circle at 16% 24%, rgba(244, 197, 104, 0.18), transparent 16rem),
    linear-gradient(135deg, #231f20, #132f2d 72%, #0d5e5a);
  color: var(--cream);
  text-align: center;
  box-shadow: 0 18px 48px rgba(35, 31, 32, 0.18);
}

.newsletter-cover h2 {
  max-width: 960px;
  margin: 10px auto;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.newsletter-cover p:not(.issue-label) {
  color: rgba(244, 239, 229, 0.88);
  font-weight: 800;
}

.issue-label {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.newsletter-cover .issue-label,
.quote-card .issue-label {
  color: var(--gold);
}

.print-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.newsletter-issue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.newsletter-card,
.archive-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(215, 197, 173, 0.86);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 12px 30px rgba(35, 31, 32, 0.08);
}

.newsletter-card.wide {
  grid-column: 1 / -1;
}

.newsletter-card h3,
.archive-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
}

.newsletter-card h4 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.newsletter-card p,
.newsletter-card li,
.archive-card p,
.newsletter-signup p {
  color: var(--muted);
  line-height: 1.7;
}

.newsletter-card ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.highlight {
  margin-top: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(42, 169, 165, 0.1);
  color: var(--ink) !important;
  font-weight: 900;
}

.signature {
  color: var(--ink) !important;
  font-weight: 900;
}

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

.newsletter-resource-grid div {
  min-width: 0;
  border: 1px solid rgba(215, 197, 173, 0.74);
  border-radius: 8px;
  padding: 18px;
  background: rgba(244, 239, 229, 0.68);
}

.quote-card {
  border-top-color: var(--gold);
  background:
    radial-gradient(circle at 82% 22%, rgba(244, 197, 104, 0.22), transparent 14rem),
    radial-gradient(circle at 18% 78%, rgba(79, 140, 138, 0.14), transparent 15rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(243, 239, 230, 0.96));
}

.quote-card h3,
.quote-card blockquote {
  color: var(--ink);
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.26;
}

.contact-newsletter-card {
  border-top-color: var(--gold);
  background:
    radial-gradient(circle at 90% 20%, rgba(244, 197, 104, 0.14), transparent 18rem),
    rgba(255, 250, 240, 0.94);
}

.newsletter-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-contact-list {
  margin-top: 18px;
}

.main-nav [data-register-link] {
  display: none !important;
}

.main-nav [data-auth-link],
.main-nav [data-logout-link] {
  display: none;
}

body.auth-ready .main-nav [data-auth-link]:not([hidden]),
body.auth-ready .main-nav [data-logout-link]:not([hidden]) {
  display: inline-block;
}

.newsletter-archive {
  border-top: 1px solid rgba(215, 197, 173, 0.72);
}

.newsletter-archive .section-heading,
.newsletter-signup > div,
.archive-card {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.archive-card {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.archive-card .button {
  width: fit-content;
  margin-top: 8px;
}

.newsletter-signup {
  display: grid;
  gap: 24px;
  border-top: 1px solid rgba(215, 197, 173, 0.72);
  text-align: center;
}

.newsletter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: left;
}

.newsletter-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.newsletter-form input,
.newsletter-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(35, 31, 32, 0.18);
  border-radius: 8px;
  padding: 11px 13px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--ink);
}

.newsletter-form .button {
  align-self: end;
  min-height: 48px;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    justify-content: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-art {
    right: -30px;
    width: min(66vw, 520px);
    opacity: 0.68;
  }

  .home-highlights,
  .story-band,
  .founder-bio-section,
  .provide-grid,
  .admissions-grid,
  .snapshot-grid,
  .workbook-audience-grid,
  .workbook-toolbar,
  .workbook-source-note,
  .house-photo-grid,
  .amenity-grid,
  .staff-email-grid,
  .wellness-video-grid,
  .program-fees-layout,
  .form-grid,
  .link-grid,
  .blog-teaser-grid,
  .blog-post-grid,
  .social-band,
  .resource-intro,
  .resource-toolbar,
  .women-family-resource-panel,
  .resource-map-view,
  .credit-repair-grid,
  .credit-repair-two-column,
  .staff-login-panel,
  .staff-form-grid,
  .fit-score-panel,
  .page-hero,
  .newsletter-hero,
  .newsletter-intro-strip,
  .newsletter-issue,
  .newsletter-resource-grid,
  .newsletter-form,
  .save-to-phone-grid,
  .auth-choice-grid,
  .portal-summary,
  .pricing-grid,
  .access-grid,
  .lesson-list {
    grid-template-columns: 1fr;
  }

  .blog-post-grid .featured-post {
    grid-row: auto;
  }

  .page-hero img {
    max-width: 260px;
  }

  .page-hero img[src*="healing-river-emblem"] {
    max-width: 300px;
  }

  .newsletter-hero {
    min-height: auto;
    padding-bottom: 104px;
  }

  .newsletter-hero-mark {
    position: absolute;
    right: -34px;
    bottom: 34px;
    opacity: 0.35;
    width: min(48vw, 260px);
  }

  .newsletter-intro-strip {
    width: min(100% - 20px, 1180px);
  }

  .newsletter-form .button,
  .archive-card .button {
    width: 100%;
  }

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

  .workbook-module-columns {
    grid-template-columns: 1fr;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-tool-head {
    flex-direction: column;
  }

  .staff-actions {
    justify-content: flex-start;
  }

  .save-to-phone-head {
    align-items: stretch;
    flex-direction: column;
  }

  .save-to-phone-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .brand {
    width: 100%;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  nav a,
  nav .nav-trigger,
  nav .nav-toggle {
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
  }

  .main-nav .nav-toggle {
    display: inline-flex;
    min-height: 48px;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    border-color: rgba(35, 31, 32, 0.92);
    background:
      linear-gradient(135deg, rgba(35, 31, 32, 0.98), rgba(31, 61, 54, 0.95)),
      var(--charcoal);
    color: var(--cream);
    box-shadow: 0 12px 22px rgba(35, 31, 32, 0.18);
  }

  .main-nav .nav-toggle::before {
    width: 18px;
    height: 12px;
    background:
      linear-gradient(currentColor, currentColor) top left / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) center left / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) bottom left / 100% 2px no-repeat;
    content: "";
  }

  .main-nav .nav-toggle::after {
    width: 0;
    height: 0;
    margin-left: auto;
    border-top: 6px solid currentColor;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: "";
    transition: transform 0.18s ease;
  }

  .main-nav.nav-open .nav-toggle::after {
    transform: rotate(180deg);
  }

  .main-nav:not(.nav-open) > :not(.nav-toggle) {
    display: none;
  }

  .main-nav.nav-open {
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    gap: 7px;
    padding: 8px;
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(244, 239, 229, 0.95)),
      var(--paper);
  }

  .nav-group {
    display: block;
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-group .nav-trigger {
    min-height: 48px;
    width: 100%;
    justify-content: space-between;
    border-color: rgba(215, 197, 173, 0.68);
    background: rgba(255, 250, 240, 0.72);
  }

  .nav-menu,
  .nav-menu-wide {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    padding: 7px;
    border-color: rgba(215, 197, 173, 0.62);
    background: rgba(255, 250, 240, 0.72);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-group.is-open .nav-menu,
  .nav-group:focus-within .nav-menu {
    display: grid;
  }

  .main-nav.nav-open .nav-group.is-open .nav-trigger::after {
    transform: rotate(225deg) translate(-2px, -1px);
  }

  .nav-menu a {
    min-height: 46px;
    padding-inline: 12px;
    background: rgba(255, 250, 240, 0.54);
  }

  .hero {
    min-height: 650px;
    padding: 42px 22px 78px;
  }

  .page-hero {
    padding: 42px 22px 54px;
    max-width: 100vw;
    overflow: hidden;
  }

  .amenities-section,
  .house-photo-section,
  .life-gallery-section,
  .wellness-video-section,
  .program-fees-section,
  .blog-band,
  .social-band,
  .resource-featured-section,
  .resource-directory-section,
  .everything-aa-section,
  .life-skills-section,
  .veteran-disclaimer-section,
  .contact-form-section,
  .auth-choice-section,
  .auth-form-section,
  .portal-dashboard-section,
  .product-section {
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-art {
    right: -115px;
    top: 60%;
    width: 430px;
    opacity: 0.42;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3rem);
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
    overflow-wrap: break-word;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 330px;
  }

  .hero-meta {
    max-width: 300px;
    font-size: 0.78rem;
  }

  .life-gallery-section {
    padding: 56px 18px;
  }

  .life-gallery-grid {
    grid-template-columns: 1fr;
  }

  .life-card img {
    height: 230px;
  }

  .home-highlight-card {
    grid-template-rows: 220px auto;
  }

  .page-hero p:not(.eyebrow),
  .section-heading {
    max-width: 100%;
  }

  .page-hero p:not(.eyebrow) {
    max-width: 315px;
    font-size: 1rem;
  }

  .page-hero > div,
  .story-copy,
  .founder-bio-copy,
  .founder-photo,
  .section-heading,
  .workbook-toolbar,
  .workbook-source-note,
  .workbook-module-card,
  .life-card,
  .snapshot-grid article,
  .house-photo-card,
  .amenity-grid section,
  .wellness-video-card,
  .blog-teaser-grid article,
  .blog-post-grid article,
  .facebook-panel,
  .facebook-card,
  .resource-card,
  .resource-toolbar,
  .women-family-resource-panel,
  .credit-repair-section,
  .credit-repair-card,
  .credit-repair-letter,
  .credit-repair-link-card,
  .credit-repair-tool,
  .map-panel,
  .program-fees-layout > div,
  .contact-band > div,
  .emergency-notice,
  .contact-form-panel,
  .contact-helper-wrap,
  .auth-choice-card,
  .auth-form-card,
  .portal-summary article,
  .dashboard-card,
  .pricing-card,
  .access-card,
  .lesson-card,
  .protected-workbook-panel {
    min-width: 0;
    width: 100%;
  }

  .page-hero p,
  .story-copy p,
  .founder-bio-copy p,
  .life-gallery-header p,
  .life-card-content p,
  .life-card-content h3,
  .workbook-module-card p,
  .workbook-module-card li,
  .workbook-source-note span,
  .workbook-audience-grid span,
  .section-heading h2,
  .snapshot-grid p,
  .amenity-grid li,
  .program-fees-layout p,
  .cost-table span,
  .cost-table strong,
  .blog-teaser-grid p,
  .blog-post-grid p,
  .facebook-panel p,
  .facebook-card p,
  .women-family-resource-panel p,
  .resource-card p,
  .resource-details p,
  .credit-repair-card p,
  .credit-repair-card li,
  .credit-repair-link-card span,
  .credit-repair-letter pre,
  .credit-repair-note,
  .everything-aa-card p,
  .emergency-notice p,
  .contact-helper,
  .contact-routing-note,
  .auth-choice-card p,
  .auth-form-card p,
  .portal-summary p,
  .dashboard-card p,
  .pricing-card p,
  .access-card p,
  .lesson-card p,
  .protected-workbook-panel p,
  .veteran-disclaimer,
  .legal-disclaimer,
  .resource-meta-item {
    overflow-wrap: break-word;
  }

  .snapshot-grid strong {
    font-size: 1.35rem;
  }

  .amenities-section .section-heading,
  .snapshot-grid,
  .house-photo-grid,
  .life-gallery-grid,
  .workbook-audience-grid,
  .workbook-module-list,
  .amenity-grid,
  .wellness-video-grid,
  .blog-teaser-grid,
  .blog-post-grid,
  .social-band,
  .resource-results,
  .resource-map-view,
  .practical-next-steps-layout,
  .life-skills-grid,
  .program-fees-layout,
  .auth-choice-grid,
  .portal-summary,
  .dashboard-grid,
  .pricing-grid,
  .access-grid,
  .lesson-list,
  .protected-workbook-panel {
    max-width: calc(100vw - 58px);
  }

  .snapshot-grid article,
  .amenity-grid section,
  .wellness-video-card > div:last-child,
  .blog-teaser-grid article div,
  .blog-post-grid article,
  .featured-post div,
  .facebook-panel,
  .facebook-card,
  .resource-card,
  .resource-toolbar,
  .practical-next-steps-intro,
  .everything-aa-card,
  .emergency-notice,
  .contact-helper-wrap,
  .contact-routing-note,
  .auth-choice-card,
  .auth-form-card,
  .portal-summary article,
  .dashboard-card,
  .pricing-card,
  .access-card,
  .lesson-card,
  .protected-workbook-panel,
  .life-skills-grid label {
    padding: 18px;
  }

  .everything-aa-card {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .everything-aa-card h2 {
    max-width: 300px;
    margin-inline: auto;
    font-size: clamp(1.65rem, 9vw, 2.1rem);
    overflow-wrap: break-word;
  }

  .everything-aa-card p {
    max-width: 290px;
  }

  .recovery-app-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .resource-app-card-header {
    flex-direction: column;
  }

  .recovery-app-panel {
    padding: 18px;
  }

  .recovery-app-panel p {
    max-width: none;
  }

  .everything-aa-buttons {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .app-button {
    max-width: 100%;
    width: min(100%, 290px);
    white-space: normal;
  }

  .resource-view-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-view-toggle .button {
    width: auto;
  }

  .resource-actions .button {
    width: 100%;
  }

  .resource-intro {
    width: min(100% - 20px, 1180px);
  }

  .snapshot-grid p,
  .amenity-grid li,
  .program-fees-layout p {
    font-size: 0.95rem;
  }

  .cost-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cost-table strong {
    text-align: left;
  }

  .house-photo-card,
  .house-photo-card img {
    min-height: 230px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .staff-actions .button,
  .staff-header nav .button {
    width: auto;
  }

  .home-highlights {
    width: min(100% - 20px, 1180px);
  }

  .newsletter-hero h1 {
    font-size: clamp(2.9rem, 16vw, 4.6rem);
  }

  .newsletter-hero-mark {
    display: none;
  }

  .newsletter-cover {
    padding-inline: 20px;
  }

  .newsletter-contact-actions {
    display: grid;
  }
}

@media (max-width: 820px) {
  .practical-next-steps-layout {
    grid-template-columns: 1fr;
  }

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

  .resource-card-head strong {
    justify-self: start;
    text-align: left;
  }
}

/* Flyer-aligned brand refinement */
body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

h1,
h2,
h3,
.brand strong,
.auth-choice-card strong,
.auth-form-card h1,
.dashboard-card h2,
.portal-summary strong,
.front-brand h1 {
  font-family: var(--display);
  letter-spacing: 0;
}

h2,
h3,
.section-heading h2,
.resource-card h3,
.home-highlight-card h2,
.blog-teaser-grid h3,
.blog-post-grid h3,
.dashboard-card h2 {
  color: var(--ink);
}

.eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.life-gallery-header .eyebrow,
.hr-blog-kicker,
.blog-teaser-grid span,
.blog-post-grid span,
.resource-card-head span,
.resource-card-head strong,
.portal-summary span,
.snapshot-grid span,
.cost-table span {
  color: var(--teal-dark);
}

.eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.life-gallery-header .eyebrow,
.hr-blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  margin-bottom: 14px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  padding: 0.42rem 0.92rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(237, 244, 236, 0.78)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(79, 140, 138, 0.08);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.hero .eyebrow::before,
.page-hero .eyebrow::before,
.life-gallery-header .eyebrow::before,
.hr-blog-kicker::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  content: "";
  box-shadow: 0 0 0 4px rgba(79, 140, 138, 0.08);
}

.site-header {
  border-bottom-color: rgba(122, 92, 72, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(239, 244, 237, 0.92)),
    rgba(247, 244, 238, 0.94);
  box-shadow: 0 14px 34px rgba(79, 140, 138, 0.08);
}

.brand {
  border-radius: 12px;
}

.home-page .brand {
  margin-left: clamp(8px, 1.2vw, 18px);
}

.brand img {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(79, 140, 138, 0.14);
}

.brand strong {
  font-size: 1.12rem;
  font-weight: 600;
}

.brand small {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.main-nav {
  border-color: rgba(122, 92, 72, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 248, 241, 0.9)),
    rgba(255, 253, 248, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 28px rgba(79, 140, 138, 0.08);
}

nav a,
nav .nav-trigger,
nav .nav-toggle,
.button,
.app-button,
.hr-blog-filter-button,
.hr-blog-read-button,
.hr-blog-newsletter-form button,
.hr-blog-modal-close,
.hr-blog-related-button {
  border-radius: 12px;
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

nav a,
nav .nav-trigger,
nav .nav-toggle {
  color: var(--ink);
}

nav a:hover,
nav .nav-trigger:hover,
nav .nav-toggle:hover,
nav a.active,
nav .nav-trigger.active,
.button:hover {
  border-color: rgba(79, 140, 138, 0.22);
  background: rgba(79, 140, 138, 0.08);
  box-shadow: 0 10px 20px rgba(79, 140, 138, 0.08);
}

.nav-menu {
  border-color: rgba(122, 92, 72, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(241, 246, 239, 0.97)),
    var(--cream-2);
  box-shadow: 0 24px 48px rgba(79, 140, 138, 0.14);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(79, 140, 138, 0.1);
}

.nav-menu a {
  justify-content: flex-start;
  text-align: left;
}

nav a.active,
nav .nav-trigger.active,
.resource-view-toggle .is-active {
  border-color: rgba(79, 140, 138, 0.42);
  background:
    linear-gradient(135deg, var(--teal), var(--moss)),
    var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px rgba(79, 140, 138, 0.18);
}

.button.primary,
.app-button,
.hr-blog-read-button,
.hr-blog-newsletter-form button,
.hr-blog-related-button {
  border-color: rgba(79, 140, 138, 0.42);
  background:
    linear-gradient(135deg, var(--teal), var(--moss)),
    var(--teal);
  color: #fff;
  box-shadow: 0 14px 24px rgba(79, 140, 138, 0.16);
}

.button.secondary,
.app-button.secondary {
  border-color: rgba(79, 140, 138, 0.2);
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-dark);
}

.button.quiet {
  border-color: rgba(191, 169, 138, 0.45);
  background: rgba(247, 244, 238, 0.94);
  color: var(--river);
}

.hero .button,
.page-hero .button,
.contact-band .button {
  box-shadow: 0 12px 22px rgba(79, 140, 138, 0.12);
}

.hero .button.primary,
.page-hero .button.primary,
.contact-band .button.primary {
  border-color: rgba(79, 140, 138, 0.42);
  background:
    linear-gradient(135deg, var(--teal), var(--moss)),
    var(--teal);
  color: #fff;
}

.hero .button.secondary,
.page-hero .button.secondary,
.contact-band .button.secondary {
  border-color: rgba(79, 140, 138, 0.22);
  background: rgba(255, 255, 255, 0.84);
  color: var(--teal-dark);
}

.hero .button.quiet,
.page-hero .button.quiet,
.contact-band .button.quiet {
  border-color: rgba(191, 169, 138, 0.45);
  background: rgba(247, 244, 238, 0.94);
  color: var(--river);
}

.contact-band .contact-actions .button {
  font-weight: 800;
}

.contact-band .contact-actions .button.secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-dark);
}

.contact-band .contact-actions .button.quiet {
  background: rgba(247, 244, 238, 0.96);
  color: var(--river);
}

.hero,
.page-hero {
  background:
    radial-gradient(circle at 76% 28%, rgba(79, 140, 138, 0.16), transparent 22rem),
    radial-gradient(circle at 86% 16%, rgba(201, 169, 107, 0.14), transparent 18rem),
    linear-gradient(135deg, #faf8f2 0%, #edf4ec 58%, #f7f4ee 100%);
  color: var(--ink);
}

.home-page .hero {
  grid-template-columns: minmax(0, 0.54fr) minmax(340px, 0.46fr);
  gap: clamp(2.5rem, 4.5vw, 4rem);
  width: 100%;
  min-height: min(700px, calc(100svh - 68px));
  padding: clamp(52px, 7vw, 92px) clamp(22px, 6vw, 88px) clamp(78px, 9vw, 118px);
}

.home-page .hero-copy {
  grid-column: 1;
  min-width: 0;
  max-width: 680px;
}

.home-page .hero h1 {
  max-width: 12ch;
  font-size: clamp(3.9rem, 7.35vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.018em;
}

.home-page .hero-art {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: min(100%, 42vw, 640px);
  min-width: 340px;
  max-height: none;
  opacity: 0.96;
  transform: none;
}

@media (max-width: 960px) {
  .home-page .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .home-page .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .home-page .hero h1 {
    max-width: 11ch;
    font-size: clamp(3.6rem, 12vw, 6rem);
  }

  .home-page .hero-art {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: min(78vw, 420px);
    min-width: 0;
    opacity: 0.48;
  }
}

@media (max-width: 620px) {
  .home-page .hero-art {
    width: min(82vw, 340px);
    opacity: 0.34;
  }

  .home-page .hero h1 {
    max-width: 10.8ch;
    font-size: clamp(3.05rem, 15vw, 4.35rem);
  }
}

.hero::after {
  background: linear-gradient(0deg, var(--paper), transparent);
}

.hero-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.story-copy p:not(.eyebrow),
.founder-bio-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.contact-band p:not(.eyebrow),
.life-gallery-header p,
.life-card-content p,
.hr-blog-header p,
.hr-blog-featured-copy p,
.hr-blog-card p,
.hr-blog-newsletter p,
.hr-blog-modal-excerpt,
.hr-blog-modal-article p,
.hr-blog-modal-article li {
  color: var(--muted);
}

.hero-meta {
  color: var(--river);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  margin-top: -2px;
  margin-bottom: 18px;
  border: 1px solid rgba(191, 169, 138, 0.34);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 20px rgba(79, 140, 138, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-art,
.page-hero img,
.story-art img {
  filter: drop-shadow(0 24px 34px rgba(79, 140, 138, 0.16));
}

.home-highlight-card {
  border-color: rgba(122, 92, 72, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 34px rgba(79, 140, 138, 0.1);
}

.home-highlight-card > div {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
}

.home-highlight-card h2 {
  min-height: 2.2em;
  margin-bottom: 0;
  font-size: clamp(1.4rem, 1.8vw, 1.95rem);
  line-height: 1.08;
}

.home-highlight-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.home-highlight-card.is-art img {
  background:
    radial-gradient(circle at 50% 42%, rgba(79, 140, 138, 0.12), transparent 14rem),
    linear-gradient(135deg, rgba(247, 244, 238, 0.94), rgba(237, 244, 236, 0.96));
}

.story-band,
.founder-bio-section,
.blog-band,
.social-band,
.resource-featured-section,
.resource-directory-section,
.everything-aa-section,
.life-skills-section,
.veteran-disclaimer-section,
.admissions-band,
.amenities-section,
.staff-email-section,
.forms-section,
.faq-section,
.auth-choice-section,
.auth-form-section,
.portal-dashboard-section,
.product-section,
.workbook-reference-section,
.contact-form-section,
.newsletter-wrapper,
.what-we-provide-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(79, 140, 138, 0.08), transparent 24rem),
    radial-gradient(circle at 12% 0%, rgba(201, 169, 107, 0.08), transparent 18rem),
    var(--paper);
}

.content-section,
.life-gallery-section,
.hr-blog-section,
.contact-band,
.program-fees-section {
  background:
    radial-gradient(circle at 86% 18%, rgba(79, 140, 138, 0.12), transparent 24rem),
    radial-gradient(circle at 14% 8%, rgba(201, 169, 107, 0.1), transparent 18rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(237, 244, 236, 0.96));
  color: var(--ink);
}

.life-gallery-header h2,
.hr-blog-header h1,
.hr-blog-featured-copy h2,
.contact-band h2 {
  color: var(--ink);
  font-style: italic;
  font-weight: 600;
}

.life-card,
.blog-teaser-grid article,
.blog-post-grid article,
.facebook-panel,
.facebook-card,
.hr-blog-featured-card,
.hr-blog-card,
.hr-blog-newsletter,
.resource-toolbar,
.women-family-resource-panel,
.resource-card,
.everything-aa-card,
.credit-repair-section,
.credit-repair-card,
.credit-repair-link-card,
.credit-repair-tool,
.snapshot-grid article,
.amenity-grid section,
.cost-table,
.wellness-video-card,
.admissions-grid section,
.form-panel,
.faq-list details,
.emergency-notice,
.contact-helper-wrap,
.contact-routing-note,
.staff-email-card,
.auth-choice-card,
.auth-form-card,
.portal-summary article,
.dashboard-card,
.pricing-card,
.access-card,
.lesson-card,
.protected-workbook-panel {
  border-color: rgba(122, 92, 72, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 34px rgba(79, 140, 138, 0.08);
}

.facebook-panel {
  color: var(--ink);
}

.facebook-panel p {
  color: var(--muted);
}

.provide-grid article,
.link-grid a {
  border-color: rgba(122, 92, 72, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(79, 140, 138, 0.08);
}

.link-grid strong,
.provide-grid h3,
.provide-grid p,
.link-grid span {
  color: inherit;
}

.link-grid span,
.provide-grid p {
  color: var(--muted);
}

.provide-grid p,
.blog-teaser-grid p,
.blog-post-grid p,
.women-family-resource-panel p,
.resource-card p,
.resource-meta-item,
.resource-details p,
.resource-note,
.staff-email-card em,
.admissions-grid p,
.admissions-grid li,
.faq-list p,
.snapshot-grid p,
.amenity-grid li,
.wellness-video-card p,
.everything-aa-card p,
.auth-choice-card p,
.auth-form-card p,
.portal-summary p,
.dashboard-card p,
.pricing-card p,
.access-card p,
.lesson-card p,
.protected-workbook-panel p,
.fine-print {
  color: var(--muted);
}

.filter-chip,
.resource-tags span,
.hr-blog-category {
  border-color: rgba(79, 140, 138, 0.16);
  background: rgba(79, 140, 138, 0.08);
  color: var(--teal-dark);
}

.resource-toolbar,
.resource-directory-section,
.women-family-resource-panel,
.everything-aa-card,
.credit-repair-section,
.hr-blog-newsletter {
  border-color: rgba(122, 92, 72, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 244, 236, 0.92)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(79, 140, 138, 0.08);
}

.newsletter-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(79, 140, 138, 0.12), transparent 22rem),
    radial-gradient(circle at 14% 10%, rgba(201, 169, 107, 0.12), transparent 18rem),
    linear-gradient(135deg, #faf8f2 0%, #edf4ec 58%, #f7f4ee 100%);
  color: var(--ink);
}

.newsletter-hero::after {
  background: linear-gradient(0deg, rgba(247, 244, 238, 0.98), transparent);
}

.newsletter-hero-copy p:not(.eyebrow),
.newsletter-tagline {
  color: var(--muted);
}

.newsletter-hero .button.primary {
  border-color: rgba(79, 140, 138, 0.42);
  background:
    linear-gradient(135deg, var(--teal), var(--moss)),
    var(--teal);
  color: #fff;
}

.newsletter-hero .button.secondary {
  border-color: rgba(79, 140, 138, 0.3);
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-dark);
}

.newsletter-hero .button.quiet {
  border-color: rgba(191, 169, 138, 0.45);
  background: rgba(247, 244, 238, 0.96);
  color: var(--river);
}

.newsletter-cover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 244, 236, 0.9)),
    rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.newsletter-cover p {
  color: var(--river);
}

.newsletter-cover p:not(.issue-label) {
  color: var(--river);
  font-weight: 700;
}

.newsletter-cover .issue-label {
  color: rgba(201, 169, 107, 0.98);
}

.newsletter-cover .button.primary,
.contact-newsletter-card .button.primary {
  color: #fff;
}

.contact-newsletter-card .button.secondary {
  color: var(--teal-dark);
}

.contact-newsletter-card .button.quiet {
  color: var(--river);
}

@media (max-width: 900px) {
  #resourceResults.resource-results,
  #resourceResults.resource-map-view {
    max-height: min(70vh, 760px);
    overflow-y: auto;
    padding-right: 6px;
  }

  .map-panel-surface {
    min-height: 320px;
    padding-bottom: 92px;
  }
}

.wellness-video-section .section-heading {
  max-width: min(1120px, 100%);
  margin: 0 auto 28px;
  border: 1px solid rgba(122, 92, 72, 0.14);
  border-radius: 16px;
  padding: 28px clamp(20px, 4vw, 34px);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 244, 236, 0.88)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 34px rgba(79, 140, 138, 0.08);
}

.wellness-video-section .section-heading h2 {
  font-style: italic;
  font-weight: 600;
}

.wellness-video-section .section-heading p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 760px;
}

.wellness-video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(79, 140, 138, 0.09);
}

.wellness-video-thumb {
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
}

.wellness-video-thumb span {
  background:
    linear-gradient(135deg, var(--teal), var(--moss)),
    var(--teal);
  color: #fff;
  box-shadow: 0 10px 18px rgba(79, 140, 138, 0.16);
}

.wellness-video-card > div:last-child {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 176px;
  padding: 22px;
}

.hr-blog-featured-card img,
.hr-blog-image {
  background:
    radial-gradient(circle at 50% 38%, rgba(79, 140, 138, 0.08), transparent 15rem),
    rgba(247, 244, 238, 0.84);
}

.hr-blog-filter-button {
  border-color: rgba(79, 140, 138, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: var(--teal-dark);
}

.hr-blog-filter-button:hover,
.hr-blog-filter-button.hr-blog-filter-active {
  background: rgba(79, 140, 138, 0.12);
  border-color: rgba(79, 140, 138, 0.34);
  color: var(--teal-dark);
}

.hr-blog-status,
.hr-blog-search-label span,
.hr-blog-newsletter-form label {
  color: var(--muted);
}

.hr-blog-search-label input,
.hr-blog-newsletter-form input,
input,
select,
textarea {
  border-color: rgba(191, 169, 138, 0.55);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

label {
  color: var(--ink);
  font-weight: 700;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
nav a:focus-visible,
nav .nav-trigger:focus-visible,
.hr-blog-search-label input:focus,
.hr-blog-newsletter-form input:focus {
  border-color: rgba(79, 140, 138, 0.62);
  box-shadow: 0 0 0 4px rgba(79, 140, 138, 0.14);
}

.contact-routing-note.is-urgent,
.urgent-contact-warning {
  border-color: rgba(201, 169, 107, 0.34);
  background: rgba(201, 169, 107, 0.12);
  color: var(--river);
}

.amenity-grid li.amenity-coming-soon,
.amenity-coming-soon strong {
  border-radius: 12px;
}

.amenity-coming-soon strong {
  background: rgba(79, 140, 138, 0.92);
  color: #fff;
}

.program-fees-layout p:not(.eyebrow) {
  color: var(--muted);
}

.cost-table {
  background: rgba(255, 255, 255, 0.84);
}

footer {
  border-top: 1px solid rgba(122, 92, 72, 0.12);
  background:
    linear-gradient(180deg, rgba(237, 244, 236, 0.92), rgba(247, 244, 238, 0.96)),
    var(--paper);
  color: var(--river);
  font-weight: 700;
}

@media (max-width: 620px) {
  .main-nav .nav-toggle {
    border-color: rgba(79, 140, 138, 0.42);
    background:
      linear-gradient(135deg, var(--teal), var(--moss)),
      var(--teal);
    color: #fff;
    box-shadow: 0 12px 22px rgba(79, 140, 138, 0.16);
  }

  .main-nav.nav-open {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(241, 246, 239, 0.95)),
      var(--paper);
  }

  .nav-group .nav-trigger,
  .nav-menu,
  .nav-menu-wide,
  .nav-menu a {
    border-color: rgba(122, 92, 72, 0.14);
    background: rgba(255, 255, 255, 0.76);
  }
}

.demo-user-banner {
  max-width: min(1120px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid rgba(201, 169, 107, 0.52);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 248, 226, 0.96), rgba(237, 244, 236, 0.96)),
    var(--paper);
  color: var(--river);
  box-shadow: 0 14px 28px rgba(122, 92, 72, 0.12);
}

.demo-user-banner strong {
  color: var(--teal);
  font-weight: 900;
}

.demo-user-banner span {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
}

.demo-logins-hero {
  align-items: center;
}

.demo-logins-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 52px;
}

.demo-logins-notice,
.demo-logins-disabled,
.demo-logins-cleanup {
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 244, 236, 0.74)),
    var(--paper);
  box-shadow: 0 16px 32px rgba(79, 140, 138, 0.1);
}

.demo-logins-notice,
.demo-logins-disabled {
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--river);
}

.demo-logins-notice strong,
.demo-logins-disabled strong {
  color: var(--teal);
  white-space: nowrap;
}

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

.demo-login-card {
  padding: 22px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 238, 0.88)),
    var(--paper);
  box-shadow: 0 18px 36px rgba(122, 92, 72, 0.1);
}

.demo-login-card h2 {
  margin: 6px 0 14px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.demo-login-card dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.demo-login-card dl div {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
}

.demo-login-card dt {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-login-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-weight: 800;
}

.demo-login-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.demo-login-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-login-actions .button {
  flex: 1 1 160px;
  justify-content: center;
}

.demo-logins-cleanup {
  margin-top: 22px;
  padding: 24px;
}

.demo-logins-cleanup h2 {
  margin: 6px 0 10px;
  color: var(--ink);
}

.demo-logins-cleanup p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.demo-logins-cleanup p:last-child {
  margin-bottom: 0;
}

.portal-expansion-suite {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 54px;
  display: grid;
  gap: 18px;
}

.owner-admin-shell .portal-expansion-suite {
  width: 100%;
  margin: 28px 0 0;
}

.portal-expansion-heading,
.portal-expansion-card,
.portal-expansion-metric,
.portal-expansion-mini {
  border: 1px solid rgba(79, 140, 138, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 238, 0.82)),
    var(--paper);
  box-shadow: 0 18px 42px rgba(79, 140, 138, 0.1);
}

.portal-expansion-heading {
  padding: 24px;
  border-radius: 22px;
}

.portal-expansion-heading h2,
.portal-expansion-heading h3,
.portal-expansion-card h3,
.portal-expansion-card h4,
.portal-expansion-mini h4,
.portal-expansion-mini h5 {
  margin: 6px 0 8px;
  color: var(--ink);
  letter-spacing: 0;
}

.portal-expansion-heading p,
.portal-expansion-card p,
.portal-expansion-mini p,
.portal-expansion-muted {
  color: var(--muted);
  line-height: 1.55;
}

.portal-expansion-grid {
  display: grid;
  gap: 16px;
}

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

.portal-expansion-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-expansion-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.portal-expansion-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.portal-expansion-card-grid.marketplace {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.portal-expansion-card,
.portal-expansion-mini {
  border-radius: 20px;
  padding: 22px;
}

.portal-expansion-mini {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.portal-expansion-mini > strong {
  color: var(--teal);
  font-size: 1.35rem;
}

.portal-expansion-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.portal-expansion-metric {
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
}

.portal-expansion-metric span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-expansion-metric strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-family: Marcellus, Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.portal-expansion-metric p {
  margin: 0;
  font-size: 0.9rem;
}

.portal-expansion-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 999px;
  background: rgba(237, 244, 236, 0.82);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: capitalize;
}

.portal-expansion-pill.overdue,
.portal-expansion-pill.high-concern {
  border-color: rgba(156, 82, 64, 0.28);
  background: rgba(249, 232, 226, 0.86);
  color: #8b4737;
}

.portal-expansion-pill.due-soon,
.portal-expansion-pill.subscription {
  border-color: rgba(201, 169, 107, 0.38);
  background: rgba(255, 247, 222, 0.9);
  color: #7a5c2b;
}

.portal-expansion-list,
.portal-expansion-search-results {
  display: grid;
  gap: 10px;
}

.portal-expansion-row {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(122, 92, 72, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-expansion-row div {
  min-width: 0;
}

.portal-expansion-row strong,
.portal-expansion-row span {
  overflow-wrap: anywhere;
}

.portal-expansion-row strong {
  display: block;
  color: var(--ink);
}

.portal-expansion-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.portal-expansion-details {
  margin: 10px 0;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.portal-expansion-details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.portal-expansion-timeline {
  display: grid;
  gap: 10px;
  padding: 4px 0 0 4px;
}

.portal-expansion-details .portal-expansion-timeline {
  padding: 0 16px 16px;
}

.portal-expansion-timeline div {
  position: relative;
  padding: 0 0 12px 18px;
  border-left: 3px solid rgba(79, 140, 138, 0.28);
}

.portal-expansion-timeline span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-expansion-timeline strong {
  display: block;
  color: var(--ink);
}

.portal-expansion-timeline p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-expansion-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(122, 92, 72, 0.1);
  border-radius: 16px;
}

.portal-expansion-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.portal-expansion-table th,
.portal-expansion-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(122, 92, 72, 0.1);
  text-align: left;
}

.portal-expansion-table th {
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-expansion-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}

.portal-expansion-search label {
  color: var(--teal);
  font-weight: 900;
}

.portal-expansion-search input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.portal-expansion-steps {
  display: grid;
  gap: 8px;
}

.portal-expansion-steps div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 140, 138, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.portal-expansion-steps .completed {
  border-color: rgba(79, 140, 138, 0.28);
  background: rgba(237, 244, 236, 0.9);
}

.portal-expansion-steps .current {
  border-color: rgba(201, 169, 107, 0.48);
  background: rgba(255, 247, 222, 0.92);
}

.portal-expansion-steps strong,
.portal-expansion-steps span {
  overflow-wrap: anywhere;
}

.portal-expansion-steps strong {
  color: var(--ink);
}

.portal-expansion-steps span {
  color: var(--teal);
  font-weight: 900;
}

.portal-expansion-sales {
  border-left: 6px solid var(--gold);
}

.portal-expansion-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.portal-expansion-bullets span {
  padding: 10px 12px;
  border: 1px solid rgba(79, 140, 138, 0.14);
  border-radius: 14px;
  background: rgba(237, 244, 236, 0.72);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.portal-expansion-cert {
  padding: 14px 0;
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
}

.portal-expansion-cert:last-child {
  border-bottom: 0;
}

.portal-expansion-cert > span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-expansion-cert strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.portal-expansion-cert p {
  margin: 4px 0 8px;
}

.portal-expansion-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.14);
  overflow: hidden;
}

.portal-expansion-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--moss));
}

@media (max-width: 920px) {
  .demo-logins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-access-grid,
  .data-safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-expansion-grid.two,
  .portal-expansion-grid.three,
  .portal-expansion-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .demo-user-banner,
  .demo-logins-section {
    width: min(100% - 24px, 1120px);
    max-width: min(100% - 24px, 1120px);
  }

  .demo-logins-grid {
    grid-template-columns: 1fr;
  }

  .portal-expansion-suite {
    width: min(100% - 24px, 1120px);
  }

  .resource-access-intro,
  .data-safety-section {
    width: min(100% - 24px, 1120px);
  }

  .resource-access-grid,
  .data-safety-grid {
    grid-template-columns: 1fr;
  }

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

  .resource-card-labels {
    justify-content: flex-start;
    max-width: none;
  }

  .portal-expansion-card-head,
  .portal-expansion-row,
  .portal-expansion-steps div {
    display: block;
  }

  .portal-expansion-pill {
    margin-top: 8px;
  }

  .demo-logins-notice,
  .demo-logins-disabled {
    display: block;
  }

  body {
    min-width: 0;
  }

  input,
  select,
  textarea,
  button,
  .button,
  nav a,
  summary {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .button,
  button {
    max-width: 100%;
    white-space: normal;
  }

  .pwa-install-strip {
    display: grid;
  }

  .pwa-install-strip {
    grid-template-columns: minmax(0, 1fr) auto 44px;
  }

  .save-to-phone-actions,
  .pwa-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .save-to-phone-actions .button,
  .pwa-modal-actions .button {
    width: 100%;
  }

  .pwa-modal-panel {
    width: calc(100vw - 24px);
    max-height: 84dvh;
  }
}

/* Mobile public formatting hardening: menu, grids, and card text */
@media (max-width: 767px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .mobile-stack,
  .home-highlights,
  .trust-bar,
  .feature-grid,
  .leader-grid,
  .metric-grid,
  .privacy-grid,
  .provide-grid,
  .admissions-grid,
  .link-grid,
  .resource-results,
  .featured-grid,
  .resource-access-grid,
  .data-safety-grid,
  .blog-teaser-grid,
  .blog-post-grid,
  .life-gallery-grid,
  .snapshot-grid,
  .amenity-grid,
  .wellness-video-grid,
  .recovery-app-grid,
  .dashboard-grid,
  .portal-summary,
  .pricing-grid,
  .access-grid,
  .website-conversion-grid,
  .hrh-upgrade-checks,
  .hrh-upgrade-pill-grid,
  .hrh-upgrade-link-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mobile-two-col-safe {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-highlight-card,
  .trust-item,
  .feature-card,
  .leader-card,
  .metric-card,
  .privacy-grid article,
  .provide-grid article,
  .admissions-grid section,
  .link-grid a,
  .resource-card,
  .recovery-app-panel,
  .life-card,
  .snapshot-grid article,
  .amenity-grid section,
  .wellness-video-card,
  .blog-teaser-grid article,
  .blog-post-grid article,
  .dashboard-card,
  .portal-summary article,
  .pricing-card,
  .access-card,
  .mobile-readable-card {
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .home-highlight-card *,
  .trust-item *,
  .feature-card *,
  .leader-card *,
  .metric-card *,
  .privacy-grid article *,
  .provide-grid article *,
  .admissions-grid section *,
  .link-grid a *,
  .resource-card *,
  .recovery-app-panel *,
  .life-card *,
  .snapshot-grid article *,
  .amenity-grid section *,
  .wellness-video-card *,
  .blog-teaser-grid article *,
  .blog-post-grid article *,
  .dashboard-card *,
  .portal-summary article *,
  .pricing-card *,
  .access-card *,
  .mobile-readable-card * {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .feature-card,
  .resource-details,
  .life-skills-grid label,
  .hrh-upgrade-checks li,
  .mobile-compact-icon-list-item {
    display: grid !important;
    grid-template-columns: 2rem minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.75rem !important;
  }

  .feature-card span,
  .mobile-compact-icon-list-item__icon {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
  }

  .resource-card-head,
  .resource-app-card-header,
  .portal-expansion-card-head,
  .dashboard-task-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .resource-card-labels,
  .resource-tags,
  .resource-actions,
  .everything-aa-buttons,
  .hero-actions,
  .contact-actions,
  .availability-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
  }

  .resource-access-label,
  .resource-tags span,
  .app-badge,
  .button,
  .app-button,
  .resource-actions .button {
    max-width: 100%;
    white-space: normal !important;
    line-height: 1.3;
  }

  .home-highlights,
  .trust-bar,
  .public-section,
  .availability-card,
  .content-section,
  .story-band,
  .founder-bio-section,
  .blog-band,
  .resource-featured-section,
  .resource-directory-section,
  .everything-aa-section,
  .life-skills-section,
  .contact-band {
    width: min(100% - 20px, 1180px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  #resourceResults.resource-results,
  #resourceResults.resource-map-view {
    max-height: min(68vh, 860px);
    padding-right: 0;
  }

  .home-highlight-card {
    grid-template-rows: minmax(200px, auto) auto;
  }

  .home-highlight-card > div,
  .trust-item,
  .feature-card,
  .leader-card,
  .metric-card,
  .privacy-grid article,
  .provide-grid article,
  .admissions-grid section,
  .link-grid a,
  .resource-card,
  .recovery-app-panel {
    padding: 18px !important;
  }
}

@media (max-width: 620px) {
  .main-nav.nav-open {
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.nav-open > :not(.nav-toggle) {
    flex: 0 0 auto;
  }

  .main-nav.nav-open .nav-menu,
  .main-nav.nav-open .nav-menu-wide {
    max-height: none;
    overflow: visible;
  }

  .main-nav.nav-open .nav-group:focus-within .nav-menu {
    display: none;
  }

  .main-nav.nav-open .nav-group.is-open .nav-menu {
    display: grid;
  }

  .nav-menu a,
  .main-nav > a,
  .nav-group .nav-trigger,
  .main-nav .nav-toggle {
    min-height: 48px;
    text-align: left;
  }

  .brand span,
  .brand strong,
  .brand small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .founder-bio-section,
  .story-band {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .founder-photo img,
  .leader-card img {
    object-position: center 22%;
  }
}

@media print {
  .site-header,
  footer,
  .newsletter-hero,
  .newsletter-intro-strip,
  .newsletter-archive,
  .newsletter-signup,
  .print-row,
  .staff-menu,
  .staff-actions,
  .staff-login-panel,
  .future-tools {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .staff-dashboard,
  .staff-tool,
  .staff-form,
  .staff-form details {
    display: block !important;
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .staff-form details {
    break-inside: avoid;
  }

  .staff-form details > * {
    display: block;
  }

  .staff-form summary {
    border-bottom: 1px solid #999;
  }

  .newsletter-wrapper {
    padding: 0;
    background: #fff;
  }

  .newsletter-cover,
  .newsletter-card {
    border-color: #aaa;
    box-shadow: none;
    break-inside: avoid;
  }

  .newsletter-cover {
    color: #000;
    background: #fff;
  }

  .newsletter-cover p,
  .newsletter-card p,
  .newsletter-card li {
    color: #000 !important;
  }

  .newsletter-issue {
    display: block;
  }

  .newsletter-card {
    margin-bottom: 14px;
  }
}

.next-phase-suite {
  margin: 28px auto 0;
  max-width: 1180px;
  padding: 28px 18px 44px;
}

.next-phase-heading,
.next-phase-card,
.website-conversion-inner {
  background: rgba(247, 244, 238, 0.94);
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(55, 76, 68, 0.08);
}

.next-phase-heading {
  margin-bottom: 18px;
  padding: 24px;
}

.next-phase-heading h2,
.next-phase-card h2,
.website-conversion-inner h2 {
  color: #2d3f38;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.05;
  margin: 0;
}

.next-phase-heading p,
.next-phase-card p,
.next-phase-card small,
.next-phase-task em,
.website-conversion-inner p,
.website-conversion-grid span {
  color: #56655e;
  line-height: 1.6;
}

.next-phase-grid {
  display: grid;
  gap: 18px;
}

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

.next-phase-span {
  grid-column: 1 / -1;
}

.next-phase-card {
  padding: 22px;
}

.next-phase-card-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.next-phase-card-head p {
  margin: 8px 0 0;
}

.next-phase-pill {
  align-items: center;
  background: rgba(168, 184, 160, 0.18);
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 999px;
  color: #355f5d;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 6px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 7px 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.next-phase-pill.high,
.next-phase-pill.moderate,
.next-phase-pill.missing,
.next-phase-pill.open {
  background: rgba(201, 169, 107, 0.22);
  border-color: rgba(201, 169, 107, 0.45);
  color: #7a5c48;
}

.next-phase-risk-list,
.next-phase-task-list,
.next-phase-doc-list,
.next-phase-message-list,
.next-phase-link-list,
.next-phase-workflow-list {
  display: grid;
  gap: 12px;
}

.next-phase-risk-item,
.next-phase-task,
.next-phase-doc,
.next-phase-message-list article,
.next-phase-link-list a,
.next-phase-workflow-row,
.next-phase-metric {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(122, 92, 72, 0.13);
  border-radius: 16px;
  padding: 14px;
}

.next-phase-risk-item,
.next-phase-doc,
.next-phase-workflow-row {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.next-phase-risk-item strong,
.next-phase-doc strong,
.next-phase-task strong,
.next-phase-message-list strong,
.next-phase-link-list strong,
.next-phase-workflow-row strong {
  color: #263c35;
  display: block;
  font-weight: 800;
}

.next-phase-risk-item p,
.next-phase-message-list p,
.next-phase-workflow-row p {
  margin: 7px 0;
}

.next-phase-risk-item > span {
  background: rgba(79, 140, 138, 0.11);
  border-radius: 14px;
  color: #315d5a;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 9px 11px;
  text-align: center;
  text-transform: uppercase;
}

.next-phase-risk-item > span em {
  display: block;
  font-style: normal;
  margin-top: 4px;
}

.next-phase-risk-item.severity-high,
.next-phase-risk-item.severity-moderate {
  border-color: rgba(201, 169, 107, 0.45);
}

.next-phase-task {
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
}

.next-phase-task input {
  accent-color: #4f8c8a;
  margin-top: 4px;
}

.next-phase-task em,
.next-phase-task small,
.next-phase-doc small {
  display: block;
  font-style: normal;
}

.next-phase-stage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 720px;
}

.next-phase-stage-strip span {
  background: rgba(168, 184, 160, 0.16);
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 999px;
  color: #52645d;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 9px;
}

.next-phase-stage-strip span.done {
  background: rgba(79, 140, 138, 0.14);
  color: #315d5a;
}

.next-phase-stage-strip span.current {
  background: #4f8c8a;
  color: #fff;
}

.next-phase-ledger-wrap {
  overflow-x: auto;
}

.next-phase-ledger {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.next-phase-ledger th,
.next-phase-ledger td {
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
  color: #405249;
  font-size: 0.92rem;
  padding: 11px 9px;
  text-align: left;
}

.next-phase-ledger th {
  color: #315d5a;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-phase-message-form,
.next-phase-discharge-form,
.next-phase-buyer-form,
.next-phase-ticket-form {
  display: grid;
  gap: 12px;
}

.next-phase-form-grid,
.next-phase-check-grid,
.next-phase-metric-grid {
  display: grid;
  gap: 12px;
}

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

.next-phase-check-grid,
.next-phase-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.next-phase-message-form label,
.next-phase-discharge-form label,
.next-phase-buyer-form label,
.next-phase-ticket-form label {
  color: #35524a;
  display: grid;
  font-size: 0.85rem;
  font-weight: 800;
  gap: 6px;
}

.next-phase-message-form input,
.next-phase-message-form textarea,
.next-phase-discharge-form input,
.next-phase-discharge-form textarea,
.next-phase-discharge-form select,
.next-phase-buyer-form input,
.next-phase-buyer-form select,
.next-phase-ticket-form input,
.next-phase-ticket-form textarea,
.next-phase-ticket-form select {
  background: #fff;
  border: 1px solid rgba(79, 140, 138, 0.25);
  border-radius: 12px;
  color: #263c35;
  font: inherit;
  padding: 11px 12px;
}

.next-phase-check-grid label {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 12px;
  display: flex;
  font-weight: 700;
  gap: 8px;
  padding: 10px 12px;
}

.next-phase-form-status,
.next-phase-empty {
  color: #6e8b6b;
  margin: 0;
}

.next-phase-message-list {
  margin-top: 14px;
}

.next-phase-link-list a {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.next-phase-link-list a:hover {
  border-color: rgba(79, 140, 138, 0.42);
  transform: translateY(-1px);
}

.website-conversion-section {
  padding: 44px 18px;
}

.website-conversion-inner {
  margin: 0 auto;
  max-width: 1120px;
  padding: 34px;
  text-align: center;
}

.website-conversion-inner > p {
  margin: 12px auto 0;
  max-width: 760px;
}

.website-conversion-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.website-conversion-grid a {
  background: #fff;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  color: #263c35;
  padding: 18px;
  text-align: left;
  text-decoration: none;
}

.website-conversion-grid strong {
  display: block;
  font-weight: 900;
}

.website-conversion-grid span {
  display: block;
  margin-top: 8px;
}

.website-conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .next-phase-grid.two,
  .next-phase-form-grid,
  .next-phase-check-grid,
  .next-phase-metric-grid,
  .website-conversion-grid {
    grid-template-columns: 1fr;
  }

  .next-phase-risk-item,
  .next-phase-doc,
  .next-phase-workflow-row,
  .next-phase-card-head {
    flex-direction: column;
  }

  .next-phase-pill {
    align-self: flex-start;
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .next-phase-suite,
  .website-conversion-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .next-phase-heading,
  .next-phase-card,
  .website-conversion-inner {
    border-radius: 16px;
    padding: 18px;
  }
}

.next-feature-privacy-box,
.next-feature-emergency {
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 16px;
  padding: 14px 16px;
}

.next-feature-privacy-box {
  background: rgba(201, 169, 107, 0.16);
  border: 1px solid rgba(201, 169, 107, 0.35);
  color: #6d543f;
}

.next-feature-emergency {
  background: rgba(122, 92, 72, 0.12);
  border: 1px solid rgba(122, 92, 72, 0.26);
  color: #5b4030;
}

.next-feature-inline-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.next-feature-inline-form label {
  color: #35524a;
  display: grid;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 6px;
}

.next-feature-inline-form label.wide,
.next-feature-inline-form .next-feature-check,
.next-feature-inline-form button,
.next-feature-inline-form .next-phase-form-status {
  grid-column: 1 / -1;
}

.next-feature-inline-form input,
.next-feature-inline-form select,
.next-feature-inline-form textarea {
  background: #fff;
  border: 1px solid rgba(79, 140, 138, 0.25);
  border-radius: 12px;
  color: #263c35;
  font: inherit;
  padding: 11px 12px;
}

.next-feature-inline-form .next-feature-check {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 12px;
  display: flex;
  gap: 9px;
  padding: 10px 12px;
}

.next-feature-protocol-list {
  margin-top: 12px;
}

.next-feature-portal-grid {
  margin-top: 18px;
}

.next-feature-lead-card {
  margin: 30px auto;
  max-width: 960px;
}

.final-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.final-score-card {
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 236, 0.82)),
    #fff;
}

.final-score-card span,
.final-score-card p {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.final-score-card strong {
  display: block;
  margin: 8px 0;
  color: var(--teal);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 0.95;
}

.final-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.final-photo-grid article {
  overflow: hidden;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background: #fff;
}

.final-photo-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.final-photo-grid div {
  padding: 14px;
}

.final-photo-grid strong,
.final-photo-grid span,
.final-photo-grid p {
  display: block;
}

.final-photo-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.final-report-card {
  border-color: rgba(201, 169, 107, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(237, 244, 236, 0.92)),
    #fff;
}

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

.final-report-grid article,
.final-public-impact .website-conversion-grid article {
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
}

.final-report-grid strong,
.final-public-impact .website-conversion-grid strong {
  display: block;
  color: var(--river);
  font-weight: 900;
}

.final-report-grid p,
.final-public-impact .website-conversion-grid span {
  display: block;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .next-feature-inline-form,
  .final-report-grid {
    grid-template-columns: 1fr;
  }
}

/* Buyer Portal Branding */
body.buyer-branding-active .buyer-site-header {
  border-bottom-color: color-mix(in srgb, var(--buyer-primary) 20%, transparent);
}

body.buyer-branding-active .buyer-shell {
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--buyer-accent) 14%, transparent), transparent 22rem),
    radial-gradient(circle at 96% 18%, color-mix(in srgb, var(--buyer-primary) 12%, transparent), transparent 20rem),
    linear-gradient(180deg, var(--buyer-background) 0%, color-mix(in srgb, var(--buyer-background) 82%, var(--buyer-secondary)) 100%);
  color: var(--buyer-text);
}

body.buyer-branding-active .buyer-page-hero,
body.buyer-branding-active .buyer-card,
body.buyer-branding-active .buyer-directory-card,
body.buyer-branding-active .buyer-metric-card,
body.buyer-branding-active .buyer-pricing-card {
  border-color: color-mix(in srgb, var(--buyer-primary) 18%, transparent);
  background: color-mix(in srgb, var(--buyer-surface) 94%, transparent);
  color: var(--buyer-text);
}

body.buyer-branding-active .buyer-account-card {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--buyer-primary) 12%, var(--buyer-surface)),
    color-mix(in srgb, var(--buyer-accent) 10%, var(--buyer-surface))
  );
}

body.buyer-branding-active .buyer-page-hero h1,
body.buyer-branding-active .buyer-card-heading h2,
body.buyer-branding-active .buyer-directory-card h2,
body.buyer-branding-active .buyer-pricing-card h2,
body.buyer-branding-active .buyer-account-card strong,
body.buyer-branding-active .buyer-metric-card strong,
body.buyer-branding-active .buyer-feature-link span,
body.buyer-branding-active .buyer-task-row strong {
  color: var(--buyer-text);
}

body.buyer-branding-active .buyer-account-card span,
body.buyer-branding-active .buyer-metric-card span,
body.buyer-branding-active .buyer-mini-meta dt,
body.buyer-branding-active .buyer-detail-list dt,
body.buyer-branding-active .buyer-table th {
  color: var(--buyer-primary);
}

body.buyer-branding-active .buyer-feature-link,
body.buyer-branding-active .buyer-task-row,
body.buyer-branding-active .buyer-toolbar,
body.buyer-branding-active .buyer-comparison-column {
  border-color: color-mix(in srgb, var(--buyer-primary) 15%, transparent);
  background: color-mix(in srgb, var(--buyer-secondary) 18%, var(--buyer-surface));
}

body.buyer-branding-active .button.primary,
body.buyer-branding-active .buyer-primary-button {
  border-color: var(--buyer-primary);
  background: var(--buyer-primary);
  color: var(--buyer-button-text);
}

body.buyer-branding-active .button.secondary,
body.buyer-branding-active .button.quiet {
  border-color: color-mix(in srgb, var(--buyer-primary) 24%, transparent);
  background: color-mix(in srgb, var(--buyer-secondary) 30%, var(--buyer-surface));
  color: var(--buyer-text);
}

.buyer-branding-settings {
  scroll-margin-top: 96px;
}

.buyer-branding-form,
.buyer-branding-panel,
.buyer-theme-presets {
  display: grid;
  gap: 14px;
}

.buyer-branding-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.buyer-branding-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.buyer-branding-panel h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.45rem;
}

.buyer-branding-panel label {
  display: grid;
  gap: 7px;
  color: var(--river);
  font-weight: 900;
}

.buyer-branding-panel input[type="text"],
.buyer-branding-panel input:not([type]),
.buyer-branding-panel input[type="file"],
.buyer-color-inputs input:not([type="color"]) {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 9px 11px;
}

.buyer-field-note {
  font-size: 0.88rem;
}

.buyer-logo-current {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed rgba(79, 140, 138, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  overflow: hidden;
}

.buyer-logo-current img {
  max-width: min(240px, 100%);
  max-height: 80px;
  object-fit: contain;
  padding: 8px;
}

.buyer-theme-presets {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.buyer-theme-preset {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.buyer-theme-preset.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(79, 140, 138, 0.14);
}

.buyer-theme-preset span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.buyer-theme-preset small {
  display: flex;
  gap: 5px;
}

.buyer-theme-preset i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(31, 41, 51, 0.16);
  border-radius: 999px;
}

.buyer-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.buyer-color-inputs {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
}

.buyer-color-inputs input[type="color"] {
  width: 44px;
  min-height: 42px;
  padding: 2px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 10px;
  background: #fff;
}

.buyer-branding-preview {
  border: 1px solid color-mix(in srgb, var(--preview-primary) 18%, transparent);
  border-radius: 16px;
  padding: 18px;
  background: var(--preview-background);
  color: var(--preview-text);
}

.buyer-branding-preview-card {
  display: grid;
  gap: 14px;
  max-width: 620px;
  border-radius: 14px;
  padding: 18px;
  background: var(--preview-surface);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--preview-primary) 12%, transparent);
}

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

.buyer-preview-head img,
.buyer-preview-head > span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--preview-primary);
}

.buyer-preview-head strong,
.buyer-preview-head small {
  display: block;
}

.buyer-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buyer-preview-actions button,
.buyer-preview-actions span {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
}

.buyer-preview-actions button {
  background: var(--preview-primary);
  color: var(--preview-button-text);
}

.buyer-preview-actions span {
  background: var(--preview-accent);
  color: var(--preview-button-text);
}

.buyer-contrast-warning {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(122, 92, 72, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(191, 169, 138, 0.18);
  color: var(--river);
  font-weight: 900;
}

.buyer-contrast-warning p,
.buyer-branding-status {
  margin: 0;
}

.buyer-branding-status {
  align-self: center;
  color: var(--teal-dark);
  font-weight: 900;
}

.buyer-branding-status.is-error {
  color: var(--river);
}

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

/* Portal SaaS dashboard enhancements */
.clickable-info-card {
  position: relative;
  display: block;
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 244, 238, 0.9)),
    var(--cream-2);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(79, 140, 138, 0.1);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.clickable-info-card:hover,
.clickable-info-card:focus-visible,
.portal-clickable-card:hover,
.portal-clickable-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(79, 140, 138, 0.58);
  box-shadow: 0 20px 42px rgba(79, 140, 138, 0.16);
  outline: none;
}

.clickable-info-card.disabled-card {
  opacity: 0.68;
  cursor: not-allowed;
}

.clickable-info-card h3,
.clickable-info-card h4 {
  margin-top: 0;
}

.clickable-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.clickable-card-top strong,
.clickable-info-card > strong {
  display: block;
  color: var(--teal-dark);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
}

.clickable-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.1);
  color: var(--teal-dark);
  font-weight: 900;
}

.card-status {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(201, 169, 107, 0.42);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(201, 169, 107, 0.14);
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.view-details {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal-dark);
  font-weight: 900;
}

.portal-command-strip,
.portal-section {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

.portal-command-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at 96% 12%, rgba(201, 169, 107, 0.16), transparent 16rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(247, 244, 238, 0.92));
  box-shadow: 0 18px 42px rgba(79, 140, 138, 0.12);
}

.portal-command-strip h2,
.portal-section-header h2 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.98;
}

.portal-command-strip .eyebrow,
.portal-section-header .eyebrow {
  margin-bottom: 5px;
}

.portal-universal-search {
  position: relative;
  display: grid;
  gap: 7px;
}

.portal-universal-search span {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-universal-search input,
.command-center-input {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 999px;
  padding: 13px 16px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  font: inherit;
}

.portal-universal-search input:focus,
.command-center-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(79, 140, 138, 0.12);
  outline: none;
}

.portal-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 330px;
  overflow-y: auto;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 18px;
  background: var(--cream-2);
  box-shadow: 0 20px 46px rgba(79, 140, 138, 0.18);
}

.command-center-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  padding: 10vh 16px 24px;
  background: rgba(35, 31, 32, 0.42);
}

.command-center-panel {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 24px;
  background: var(--cream-2);
  box-shadow: 0 26px 88px rgba(35, 31, 32, 0.28);
}

.command-center-panel .command-center-input {
  border: 0;
  border-bottom: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 0;
  padding: 18px 20px;
  font-size: 1.08rem;
}

.command-center-results {
  max-height: 62vh;
  overflow-y: auto;
}

.command-center-result {
  display: grid;
  gap: 4px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(122, 92, 72, 0.12);
  color: var(--ink);
  text-decoration: none;
}

.command-center-result:hover,
.command-center-result:focus-visible {
  background: rgba(79, 140, 138, 0.08);
  outline: none;
}

.command-center-result span,
.command-center-result small {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.portal-section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.portal-notification-center .notification-list,
.notification-list,
.timeline-list,
.document-grid,
.occupancy-grid {
  display: grid;
  gap: 12px;
}

.notification-item,
.timeline-item,
.document-card,
.bed-card {
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.94);
}

.notification-item p,
.timeline-item p,
.document-card p,
.bed-card p {
  margin-bottom: 0;
}

.portal-snapshot-grid {
  align-items: stretch;
}

.resident-snapshot-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.widget-dashboard .portal-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.widget-customizer {
  position: relative;
}

.widget-customizer summary {
  cursor: pointer;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--teal-dark);
  font-weight: 900;
}

.widget-customizer > div {
  position: absolute;
  right: 0;
  z-index: 55;
  display: grid;
  gap: 9px;
  min-width: 240px;
  margin-top: 8px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 16px;
  padding: 13px;
  background: var(--cream-2);
  box-shadow: 0 18px 42px rgba(79, 140, 138, 0.14);
}

.widget-customizer label {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
}

.quick-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
}

.quick-actions-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(79, 140, 138, 0.24);
  cursor: pointer;
}

.quick-actions-button:hover,
.quick-actions-button:focus-visible {
  background: var(--teal-dark);
  outline: none;
}

.quick-actions-menu {
  position: absolute;
  right: 0;
  bottom: 56px;
  min-width: 260px;
  overflow: hidden;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 18px;
  background: var(--cream-2);
  box-shadow: 0 20px 48px rgba(79, 140, 138, 0.18);
}

.quick-actions-menu a,
.quick-actions-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(122, 92, 72, 0.1);
  padding: 12px 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.quick-actions-menu a:hover,
.quick-actions-menu button:hover,
.quick-actions-menu a:focus-visible,
.quick-actions-menu button:focus-visible {
  background: rgba(79, 140, 138, 0.08);
  outline: none;
}

.portal-feature-hero img {
  width: min(210px, 32vw);
  justify-self: center;
}

.resource-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.resource-trust-row span {
  border: 1px solid rgba(79, 140, 138, 0.15);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(79, 140, 138, 0.07);
}

.resource-owner-tools {
  border: 1px solid rgba(201, 169, 107, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(201, 169, 107, 0.1);
}

.resource-owner-tools summary {
  color: var(--river);
  font-weight: 900;
  cursor: pointer;
}

.resource-owner-tools label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
}

.resource-owner-tools textarea,
.resource-owner-tools input {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 253, 248, 0.9);
  font: inherit;
}

@media (max-width: 1100px) {
  .portal-command-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 650px) {
  .portal-command-strip,
  .portal-section {
    width: min(100% - 22px, 1180px);
  }

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

  .portal-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .widget-customizer > div {
    position: static;
  }

  .quick-actions {
    right: 12px;
    bottom: 12px;
  }
}

/* Portal refactor layer */
.compact-dashboard-header {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(247, 244, 238, 0.9)),
    radial-gradient(circle at 92% 14%, rgba(201, 169, 107, 0.16), transparent 18rem);
  box-shadow: 0 18px 44px rgba(79, 140, 138, 0.1);
}

.compact-dashboard-header h1 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.8vw, 3.8rem);
  line-height: 0.96;
}

.compact-dashboard-header .compact-page-description {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}

.portal-detail-header h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.portal-detail-page .portal-dashboard-section,
.portal-detail-page .buyer-shell {
  padding-top: clamp(24px, 4vw, 42px);
}

.portal-landing-page .portal-dashboard-section {
  padding-top: clamp(34px, 5vw, 68px);
}

.portal-landing-page .dashboard-grid,
.portal-landing-page .buyer-feature-grid {
  align-items: stretch;
}

.portal-landing-page .dashboard-card,
.portal-landing-page .buyer-feature-card,
.portal-landing-page .buyer-metric-card {
  min-height: 188px;
}

.dashboard-grid.compact,
.collapsible-body.dashboard-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
}

.owner-mobile-preview-section {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 6vw, 86px) clamp(54px, 7vw, 92px);
  background:
    radial-gradient(circle at 8% 12%, rgba(79, 140, 138, 0.1), transparent 24rem),
    linear-gradient(180deg, rgba(247, 244, 238, 0.72), rgba(255, 253, 248, 0.96));
}

.owner-mobile-preview-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  width: min(100%, 1240px);
  margin: 0 auto;
  align-items: start;
}

.mobile-preview-panel,
.mobile-preview-stage {
  display: grid;
  gap: 16px;
}

.mobile-preview-panel-card,
.mobile-preview-stage,
.portal-organization-intro,
.portal-workflow-groups {
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 42px rgba(50, 63, 55, 0.08);
}

.mobile-preview-panel-card {
  padding: 18px;
}

.mobile-preview-panel-card label,
.mobile-preview-checklist label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 700;
}

.mobile-preview-panel-card select,
.mobile-preview-panel-card textarea {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.32);
  border-radius: 14px;
  background: #fffffa;
  color: var(--ink);
  font: inherit;
}

.mobile-preview-panel-card select {
  min-height: 46px;
  padding: 0 12px;
}

.mobile-preview-panel-card textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
}

.mobile-preview-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mobile-preview-checklist label {
  grid-template-columns: 22px 1fr;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(191, 169, 138, 0.24);
  font-weight: 600;
}

.mobile-preview-checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.mobile-preview-status,
.mobile-preview-empty {
  margin: 10px 0 0;
  color: var(--muted);
}

.mobile-preview-stage {
  padding: clamp(18px, 3vw, 30px);
}

.mobile-preview-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.mobile-preview-stage-header h2,
.portal-organization-intro h2,
.portal-workflow-groups h2 {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
}

.mobile-preview-stage-header p {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.55;
}

.mobile-preview-device-frame {
  --preview-width: 390px;
  --preview-height: 844px;
  width: min(100%, calc(var(--preview-width) + 28px));
  margin: 0 auto;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(145deg, #173d3a, #4f8c8a);
  box-shadow: 0 24px 52px rgba(36, 58, 52, 0.24);
}

.mobile-preview-device-top {
  width: 90px;
  height: 7px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.mobile-preview-device-frame iframe {
  display: block;
  width: min(100%, var(--preview-width));
  height: min(72vh, var(--preview-height));
  margin: 0 auto;
  border: 0;
  border-radius: 22px;
  background: #fffdf8;
}

.mobile-preview-notes {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(191, 169, 138, 0.32);
}

.mobile-preview-note {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 16px;
  background: rgba(247, 244, 238, 0.7);
}

.mobile-preview-note div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.mobile-preview-note p,
.mobile-preview-note small {
  margin: 0;
  color: var(--muted);
}

.portal-organization-intro,
.portal-workflow-groups {
  width: min(100%, 1180px);
  margin: 0 auto 16px;
  padding: clamp(18px, 3vw, 28px);
}

.portal-organization-intro p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.portal-summary-grid .portal-summary-card strong {
  margin-top: auto;
  color: var(--teal);
  font-size: 0.92rem;
}

.portal-workflow-groups {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.portal-workflow-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.portal-workflow-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 16px;
  background: rgba(168, 184, 160, 0.14);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 900px) {
  .owner-mobile-preview-layout,
  .portal-workflow-groups {
    grid-template-columns: 1fr;
  }

  .mobile-preview-stage-header {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .owner-mobile-preview-section {
    padding-inline: 14px;
  }

  .mobile-preview-device-frame {
    padding: 10px;
    border-radius: 26px;
  }

  .mobile-preview-device-frame iframe {
    height: 70vh;
    border-radius: 18px;
  }
}

.collapsible-section {
  width: min(100% - 32px, 1180px);
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 14px 34px rgba(79, 140, 138, 0.08);
}

.collapsible-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.collapsible-header::-webkit-details-marker {
  display: none;
}

.collapsible-header strong {
  display: block;
  color: var(--teal-dark);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collapsible-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.section-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(79, 140, 138, 0.08);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.collapsible-section[open] .section-badge {
  background: var(--teal);
  color: #fff;
}

.collapsible-body {
  padding: 0 18px 18px;
}

.portal-generated-collapse {
  margin-top: 20px;
}

.next-action-panel,
.page-section-summary,
.empty-state {
  width: min(100% - 32px, 1180px);
  margin: 18px auto;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.96), rgba(255, 253, 248, 0.92)),
    var(--cream-2);
  box-shadow: 0 12px 30px rgba(79, 140, 138, 0.08);
}

.next-action-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.next-action-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(79, 140, 138, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.compact-table-card {
  width: min(100% - 32px, 1180px);
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 32px rgba(79, 140, 138, 0.08);
}

.compact-table-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(79, 140, 138, 0.12);
  background: rgba(247, 244, 238, 0.9);
}

.compact-table-toolbar input {
  width: min(420px, 100%);
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 999px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.compact-table th,
.compact-table td {
  padding: 12px 14px;
  vertical-align: top;
}

.compact-table-more {
  margin: 0 14px 14px;
}

.sticky-subnav {
  position: sticky;
  top: 0;
  z-index: 9;
  backdrop-filter: blur(12px);
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100% - 32px, 1180px);
  margin: 18px auto;
  padding: 10px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
}

.portal-tab,
.clickable-info-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-tab {
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(79, 140, 138, 0.07);
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.portal-tab[aria-current="page"],
.portal-tab:hover,
.portal-tab:focus-visible {
  background: var(--teal);
  color: #fff;
}

.portal-detail-page .portal-command-strip {
  margin-top: 18px;
}

.resident-preference-list,
.resident-simple-list,
.resident-mini-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.resident-preference-list label,
.resident-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #334943;
  font-weight: 800;
}

.resident-mini-form label {
  display: grid;
  gap: 6px;
  color: #334943;
  font-size: 0.9rem;
  font-weight: 900;
}

.resident-mini-form input,
.resident-mini-form textarea {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #253b36;
  font: inherit;
}

.resident-mini-form textarea {
  min-height: 78px;
  resize: vertical;
}

.resident-mini-form button {
  width: fit-content;
  min-height: 38px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: #4f8c8a;
  color: #fff;
  font-weight: 900;
}

.resident-save-note {
  margin: 0;
  color: #4f8c8a;
  font-weight: 900;
}

.resident-simple-list {
  color: #53615b;
}

.resident-simple-list a {
  color: #315f5d;
  font-weight: 900;
}

.resident-payment-priority-card {
  display: grid;
  margin: 18px auto;
  width: min(100%, 1180px);
  border-color: rgba(79, 140, 138, 0.34);
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.98), rgba(232, 239, 232, 0.9));
}

.resident-payment-priority-card small {
  color: #4f8c8a;
  font-weight: 900;
}

.buyer-start-here-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 8%, rgba(201, 169, 107, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(247, 244, 238, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 44px rgba(42, 54, 51, 0.08);
}

.buyer-start-here-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.buyer-start-here-header h2 {
  margin: 4px 0 6px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--ink);
}

.buyer-start-here-header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.buyer-start-progress {
  min-width: 142px;
  padding: 14px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 8px;
  background: rgba(79, 140, 138, 0.08);
  text-align: center;
}

.buyer-start-progress strong,
.buyer-start-progress span {
  display: block;
}

.buyer-start-progress strong {
  color: #4f8c8a;
  font-size: 1.55rem;
  line-height: 1;
}

.buyer-start-progress span {
  margin-top: 6px;
  color: #5a665f;
  font-size: 0.8rem;
  font-weight: 800;
}

.buyer-start-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.buyer-start-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.buyer-start-step.complete {
  border-color: rgba(79, 140, 138, 0.5);
  background: rgba(168, 184, 160, 0.18);
}

.buyer-start-step input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #4f8c8a;
}

.buyer-start-step span {
  min-width: 0;
}

.buyer-start-step strong,
.buyer-start-step small {
  display: block;
}

.buyer-start-step strong {
  color: var(--ink);
  font-weight: 900;
}

.buyer-start-step small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .buyer-start-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .buyer-start-here-header {
    flex-direction: column;
  }

  .buyer-start-progress {
    width: 100%;
  }

  .buyer-start-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .compact-dashboard-header,
  .collapsible-section,
  .compact-table-card,
  .next-action-panel,
  .page-section-summary,
  .empty-state,
  .portal-tabs {
    width: min(100% - 22px, 1180px);
  }

  .collapsible-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-summary {
    grid-template-columns: 1fr;
  }

  .sticky-subnav {
    top: 0;
  }

  .resident-mini-form button {
    width: 100%;
  }
}

.hrh-upgrade-section {
  width: min(100% - 32px, 1180px);
  margin: 32px auto;
  padding: 28px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 14px;
  background: rgba(247, 244, 238, 0.92);
  box-shadow: 0 18px 44px rgba(70, 54, 40, 0.08);
  color: var(--ink);
}

.hrh-upgrade-section h2,
.hrh-upgrade-section h3 {
  margin-top: 0;
}

.hrh-upgrade-section > p {
  max-width: 860px;
}

.hrh-upgrade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.hrh-upgrade-status {
  padding: 18px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hrh-upgrade-status span,
.hrh-upgrade-status strong {
  display: block;
}

.hrh-upgrade-status span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hrh-upgrade-status strong {
  margin-top: 7px;
  color: var(--teal);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.hrh-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hrh-upgrade-steps,
.hrh-upgrade-checks,
.hrh-upgrade-pill-grid,
.hrh-upgrade-link-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hrh-upgrade-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hrh-upgrade-card,
.hrh-upgrade-step,
.hrh-upgrade-pill-grid li,
.hrh-upgrade-link-grid a {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hrh-upgrade-step strong {
  display: block;
  color: var(--teal);
  font-weight: 900;
}

.hrh-upgrade-step p,
.hrh-upgrade-card p {
  margin-bottom: 0;
}

.hrh-upgrade-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.hrh-upgrade-checks,
.hrh-upgrade-pill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.hrh-upgrade-checks li,
.hrh-upgrade-pill-grid li {
  overflow-wrap: anywhere;
}

.hrh-recovery-support-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hrh-recovery-support-item {
  min-width: 0;
}

.hrh-recovery-support-link {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  box-shadow: 0 10px 24px rgba(79, 140, 138, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hrh-recovery-support-link:hover,
.hrh-recovery-support-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(79, 140, 138, 0.46);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(79, 140, 138, 0.16);
}

.hrh-recovery-support-link:focus-visible {
  outline: 3px solid rgba(79, 140, 138, 0.26);
  outline-offset: 3px;
}

.hrh-recovery-support-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.11);
  color: var(--teal);
  flex: 0 0 auto;
}

.hrh-recovery-support-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hrh-recovery-support-text {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hrh-recovery-support-arrow {
  color: var(--teal);
  font-weight: 950;
}

.hrh-upgrade-checks li::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.78rem;
  margin: 0 11px 0 2px;
  border: solid var(--teal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hrh-upgrade-pill-grid li {
  color: var(--ink);
  font-weight: 800;
}

.hrh-upgrade-disclaimer,
.hrh-upgrade-alert {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  line-height: 1.55;
}

.hrh-upgrade-disclaimer {
  border: 1px solid rgba(191, 169, 138, 0.45);
  background: rgba(255, 255, 255, 0.72);
}

.hrh-upgrade-alert {
  border: 1px solid rgba(122, 92, 72, 0.28);
  background: rgba(201, 169, 107, 0.15);
}

.hrh-upgrade-muted {
  background: rgba(168, 184, 160, 0.15);
}

.hrh-upgrade-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hrh-upgrade-link-grid a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 860px) {
  .hrh-upgrade-hero,
  .hrh-upgrade-two,
  .hrh-upgrade-steps,
  .hrh-upgrade-link-grid {
    grid-template-columns: 1fr;
  }

  .hrh-upgrade-checks,
  .hrh-upgrade-pill-grid {
    grid-template-columns: 1fr;
  }

  .hrh-recovery-support-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hrh-recovery-support-item {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .hrh-recovery-support-link {
    width: 100%;
    max-width: 100%;
  }

  .hrh-upgrade-checks.hrh-compact-checks {
    grid-template-columns: 1fr;
  }

  .hrh-upgrade-checks.hrh-compact-checks li {
    grid-template-columns: 1.45rem minmax(0, 1fr);
  }

  .hrh-resource-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .hrh-resource-cta .button {
    width: 100%;
    justify-content: center;
  }
}

/* Sitewide UI polish: cleaner steps, clickable cards, resources filters, and printable checklist. */
.hrh-upgrade-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hrh-upgrade-card .hrh-upgrade-step {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  margin-bottom: 4px;
  border-radius: 14px;
  background: rgba(79, 140, 138, 0.11);
  color: var(--teal-dark);
  font-size: 1.08rem;
  font-weight: 950;
}

.hrh-upgrade-card h3 {
  margin: 0;
  line-height: 1.16;
}

.hrh-upgrade-card p {
  margin-top: 0;
}

.hrh-upgrade-checks {
  gap: 12px;
}

.hrh-upgrade-checks li {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  line-height: 1.45;
}

.hrh-upgrade-checks li::before {
  width: 0.42rem;
  height: 0.78rem;
  margin: 0.22rem 0 0 0.18rem;
}

.hrh-upgrade-checks.hrh-compact-checks {
  gap: 10px 14px;
}

.hrh-upgrade-checks.hrh-compact-checks li {
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 8px;
  padding: 12px 13px;
}

.hrh-upgrade-checks.hrh-compact-checks li::before {
  width: 0.42rem;
  height: 0.78rem;
  margin: 0.2rem 0 0 0.34rem;
}

.hrh-resource-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(247, 244, 238, 0.92), rgba(168, 184, 160, 0.2));
  box-shadow: 0 14px 34px rgba(79, 140, 138, 0.1);
}

.hrh-resource-cta h3 {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.hrh-resource-cta p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

.hrh-resource-cta .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.leader-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.leader-card-link span {
  color: var(--teal-dark);
  font-weight: 900;
}

.leader-card-link:hover,
.leader-card-link:focus-visible,
.dashboard-card:hover,
.dashboard-card:focus-visible,
.link-grid a:hover,
.link-grid a:focus-visible,
.resource-card:has(a[href]):hover,
.resource-card:has(a[href]):focus-within,
.recovery-app-panel:has(a[href]):hover,
.recovery-app-panel:has(a[href]):focus-within {
  border-color: rgba(79, 140, 138, 0.48);
  box-shadow: 0 20px 42px rgba(35, 31, 32, 0.13);
  transform: translateY(-4px);
}

.leader-card-link:focus-visible,
.dashboard-card:focus-visible,
.link-grid a:focus-visible {
  outline: 3px solid rgba(79, 140, 138, 0.28);
  outline-offset: 3px;
}

.resource-filter-shell {
  display: block;
}

.resource-filter-shell[open] {
  padding-bottom: 14px;
}

.resource-filter-shell-heading {
  cursor: pointer;
  list-style: none;
}

.resource-filter-shell-heading::-webkit-details-marker {
  display: none;
}

.resource-filter-shell-heading::after {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.resource-filter-shell[open] .resource-filter-shell-heading::after {
  transform: rotate(225deg) translateY(-1px);
}

.resource-filter-panel {
  margin-top: 10px;
}

.resource-access-cta {
  display: flex;
  flex-direction: column;
}

.resource-access-cta .resource-actions {
  margin-top: auto;
  padding-top: 18px;
}

.resource-access-cta p {
  margin-bottom: 0;
}

.back-to-top-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--teal-dark);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(35, 31, 32, 0.22);
  cursor: pointer;
}

.back-to-top-button[hidden] {
  display: none;
}

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
  background: var(--teal);
  transform: translateY(-2px);
}

.daily-checklist-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(79, 140, 138, 0.13), transparent 20rem),
    linear-gradient(180deg, var(--paper), var(--cream));
}

.daily-checklist-card {
  width: min(100% - 32px, 900px);
  margin: 34px auto;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.daily-checklist-grid {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.daily-checklist-item {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(191, 169, 138, 0.36);
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.daily-checklist-item input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
  accent-color: var(--teal-dark);
}

.daily-checklist-actions,
.daily-checklist-phone {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.daily-checklist-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.daily-checklist-actions button,
.daily-checklist-actions .button {
  width: 100%;
}

.daily-checklist-phone {
  grid-column: 1 / -1;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  padding: 16px;
  background: rgba(79, 140, 138, 0.08);
}

.save-phone-instructions summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 900;
}

.daily-checklist-phone h2,
.daily-checklist-phone p {
  margin: 0;
}

.daily-checklist-phone p {
  color: var(--muted);
  line-height: 1.55;
}

.daily-checklist-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.client-checklist-shell {
  width: min(100% - 32px, 1120px);
}

.client-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.client-task-card {
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(69, 59, 48, 0.06);
}

.client-task-card-main {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.client-task-card input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--teal-dark);
}

.client-task-category {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-task-title {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.08;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.client-task-title:hover,
.client-task-title:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.client-task-card p:not(.client-task-category) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.client-task-button {
  width: fit-content;
  margin-top: 14px;
}

.client-checklist-disclaimer,
.client-task-tips {
  margin-top: 28px;
  border: 1px solid rgba(201, 169, 107, 0.55);
  border-radius: 16px;
  padding: 18px;
  background: #fff8e8;
  box-shadow: 0 12px 24px rgba(122, 92, 72, 0.07);
}

.client-checklist-disclaimer h2,
.client-task-tips h2 {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 900;
}

.client-checklist-disclaimer p,
.client-task-tips li {
  color: var(--ink);
  line-height: 1.7;
}

.client-task-guide {
  width: min(100% - 32px, 980px);
}

.client-task-guide h1 {
  max-width: 820px;
  overflow-wrap: anywhere;
}

.client-task-guide-intro {
  max-width: 760px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.75;
}

.client-task-guide-section {
  margin-top: 30px;
  border: 1px solid rgba(191, 169, 138, 0.34);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(255, 255, 255, 0.78);
}

.client-task-guide-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.client-task-guide-section-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
}

.client-task-guide-section-head p,
.client-task-guide-section > p {
  color: var(--muted);
  line-height: 1.7;
}

.client-task-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.client-task-steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 14px;
  padding: 14px;
  background: #fffffa;
}

.client-task-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.12);
  color: var(--teal-dark);
  font-weight: 900;
}

.client-task-steps p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

.client-task-tips ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.client-local-resource-grid,
.owner-local-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.client-local-resource-card,
.owner-local-resource-card {
  min-width: 0;
  border: 1px solid rgba(191, 169, 138, 0.34);
  border-radius: 14px;
  padding: 16px;
  background: #fffffa;
}

.client-resource-badges,
.owner-local-resource-actions,
.client-resource-actions,
.client-task-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.client-resource-badges span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(79, 140, 138, 0.12);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.client-resource-badges span + span {
  background: #fff8e8;
  color: var(--brown);
}

.client-local-resource-card h3,
.owner-local-resource-card h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.1;
}

.client-resource-provider,
.owner-local-resource-card > p:first-of-type {
  color: var(--brown);
  font-weight: 900;
}

.client-resource-note {
  border-radius: 12px;
  padding: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.client-task-guide-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(191, 169, 138, 0.34);
}

.owner-local-classes-page {
  background:
    radial-gradient(circle at 16% 12%, rgba(79, 140, 138, 0.12), transparent 21rem),
    linear-gradient(180deg, var(--paper), var(--cream));
}

.owner-local-class-shell {
  width: min(100% - 32px, 1120px);
  margin: 32px auto 48px;
}

.owner-local-class-header {
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 253, 248, 0.95);
  box-shadow: var(--shadow);
}

.owner-local-class-header p {
  max-width: 780px;
}

.owner-local-resource-top {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.owner-local-resource-top p {
  margin: 6px 0 0;
  color: var(--brown);
  font-weight: 900;
}

.owner-local-resource-top span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(79, 140, 138, 0.12);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
  white-space: nowrap;
}

.owner-local-resource-card dl {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.owner-local-resource-card dl div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 10px;
}

.owner-local-resource-card dt {
  color: var(--teal-dark);
  font-weight: 900;
}

.owner-local-resource-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.danger-button {
  border-color: rgba(180, 48, 48, 0.2) !important;
  color: #8f2525 !important;
}

.owner-local-resource-editor {
  position: fixed;
  inset: 0;
  z-index: 3000;
  overflow: auto;
  padding: 24px;
  background: rgba(22, 28, 26, 0.48);
}

.owner-local-resource-editor form {
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.owner-local-resource-editor-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.owner-local-resource-editor label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 900;
}

.owner-local-resource-editor input,
.owner-local-resource-editor textarea,
.owner-local-resource-editor select {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.28);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.owner-local-resource-editor textarea {
  min-height: 100px;
}

.owner-local-resource-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .daily-checklist-page {
    background: #fff !important;
  }

  .no-print,
  .client-task-guide-actions,
  button,
  nav,
  footer,
  .save-phone-instructions {
    display: none !important;
  }

  .checklist-page,
  .daily-checklist-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff !important;
  }

  .checklist-grid,
  .daily-checklist-grid,
  .client-task-grid,
  .client-local-resource-grid {
    display: block;
  }

  .checklist-item,
  .daily-checklist-item,
  .client-task-card,
  .client-task-steps li,
  .client-local-resource-card,
  .client-checklist-disclaimer {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    padding: 10px;
    background: #fff !important;
  }

  input[type="checkbox"] {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  h1,
  h2,
  h3,
  p,
  span,
  label,
  a {
    color: #000 !important;
  }
}

@media (max-width: 767px) {
  .checklist-page,
  .daily-checklist-card {
    width: calc(100% - 24px);
    margin: 18px auto;
    padding: 20px;
  }

  .checklist-grid,
  .daily-checklist-grid,
  .client-task-grid,
  .client-local-resource-grid,
  .owner-local-resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checklist-item,
  .daily-checklist-item {
    padding: 14px;
    font-size: 16px;
  }

  .checklist-item input[type="checkbox"],
  .daily-checklist-item input {
    width: 22px;
    height: 22px;
  }

  .checklist-actions,
  .daily-checklist-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0;
  }

  .checklist-actions button,
  .daily-checklist-actions button,
  .daily-checklist-actions .button {
    min-height: 44px;
    font-size: 16px;
  }

  .client-task-card,
  .client-task-guide-section,
  .client-checklist-disclaimer,
  .client-task-tips,
  .client-local-resource-card,
  .owner-local-resource-card {
    padding: 14px;
  }

  .client-task-guide-section-head,
  .owner-local-resource-top,
  .owner-local-resource-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .client-task-button,
  .client-task-guide-actions .button,
  .client-task-guide-actions button,
  .client-resource-actions .button,
  .client-resource-actions a,
  .owner-local-resource-actions button {
    width: 100%;
    min-height: 44px;
  }

  .owner-local-resource-card dl div {
    grid-template-columns: 1fr;
  }

  .owner-local-resource-editor {
    padding: 12px;
  }

  body:not(.install-app-page) .save-to-phone-section:empty {
    display: none;
  }
}

@media (min-width: 768px) {
  body:not(.install-app-page) .save-to-phone-section {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leader-card-link,
  .leader-card-link:hover,
  .leader-card-link:focus-visible,
  .dashboard-card:hover,
  .dashboard-card:focus-visible,
  .link-grid a:hover,
  .link-grid a:focus-visible,
  .resource-card:has(a[href]):hover,
  .resource-card:has(a[href]):focus-within,
  .recovery-app-panel:has(a[href]):hover,
  .recovery-app-panel:has(a[href]):focus-within,
  .back-to-top-button:hover,
  .back-to-top-button:focus-visible {
    transition: none;
    transform: none;
  }
}

.oak-program-hero,
.oak-program-section {
  width: min(100% - 32px, 1180px);
  margin: 32px auto;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 16px;
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 18px 46px rgba(70, 54, 40, 0.08);
  color: var(--ink);
}

.oak-program-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.55fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
}

.oak-program-hero img {
  width: min(100%, 260px);
  justify-self: center;
}

.oak-program-section {
  padding: 28px;
}

.oak-program-section h1,
.oak-program-section h2,
.oak-program-section h3,
.oak-program-hero h1 {
  margin-top: 0;
}

.oak-program-lead {
  color: var(--teal);
  font-size: 1.15rem;
  font-weight: 800;
}

.oak-program-card-grid,
.oak-track-grid,
.oak-form-grid,
.oak-check-grid,
.oak-program-heading-row,
.oak-filter-row {
  display: grid;
  gap: 14px;
}

.oak-program-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.oak-program-card,
.oak-track-card,
.oak-program-details {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.oak-program-card strong,
.oak-track-card h3,
.oak-program-details summary {
  color: var(--teal);
  font-weight: 900;
}

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

.oak-program-list li {
  position: relative;
  padding-left: 24px;
  overflow-wrap: anywhere;
}

.oak-program-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.oak-program-warning {
  border-color: rgba(122, 92, 72, 0.3);
  background: rgba(201, 169, 107, 0.14);
}

.oak-program-safety {
  border-color: rgba(79, 140, 138, 0.3);
  background: rgba(168, 184, 160, 0.18);
}

.oak-program-med {
  border-color: rgba(79, 140, 138, 0.24);
  background: rgba(79, 140, 138, 0.08);
}

.oak-program-warning.compact {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 12px;
}

.oak-program-heading-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.oak-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}

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

.oak-program-form label,
.oak-terms-check {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.oak-program-form input,
.oak-program-form select,
.oak-program-form textarea {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.oak-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.oak-check-grid label,
.oak-terms-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.oak-program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.oak-progress {
  display: block;
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.16);
}

.oak-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--sage));
}

.oak-program-details {
  margin-top: 18px;
}

.oak-program-details summary {
  cursor: pointer;
  font-size: 1.12rem;
}

.oak-program-muted {
  color: var(--muted);
}

.oak-filter-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 16px 0;
}

.oak-filter-row button {
  min-width: 0;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--teal);
  font-weight: 900;
}

.oak-table-wrap {
  overflow-x: auto;
}

.oak-program-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.oak-program-table th,
.oak-program-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(79, 140, 138, 0.14);
  text-align: left;
}

.oak-program-table th {
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.latest-updates-card {
  margin: 20px auto;
}

.latest-updates-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.latest-updates-header h2,
.latest-updates-header h3 {
  margin: 0;
}

.latest-updates-list,
.document-template-client-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.latest-update-item,
.document-template-client-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(70, 54, 40, 0.06);
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 16px;
}

.latest-update-item.is-unread {
  border-color: rgba(79, 140, 138, 0.5);
  box-shadow: 0 16px 36px rgba(79, 140, 138, 0.1);
}

.latest-update-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.latest-update-category {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.latest-update-badge {
  background: rgba(79, 140, 138, 0.1);
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 3px 8px;
}

.latest-update-item h3,
.latest-update-item h4,
.document-template-client-card h3 {
  margin: 0 0 6px;
}

.latest-update-item p,
.document-template-client-card p {
  color: var(--muted);
  margin: 0;
}

.latest-update-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
}

.latest-update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.latest-update-actions button {
  background: transparent;
  border: 0;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
}

.document-template-client-section {
  margin: 20px auto;
}

.hr-client-section-head {
  margin-bottom: 14px;
}

.hr-client-section-head h2 {
  margin: 0 0 6px;
}

.document-template-client-card details {
  margin-top: 14px;
}

.document-template-client-card summary {
  color: var(--teal);
  cursor: pointer;
  font-weight: 900;
}

.template-preview-body {
  background: rgba(247, 244, 238, 0.68);
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 12px;
  color: var(--ink);
  max-height: 460px;
  overflow: auto;
  padding: 16px;
}

.template-preview-body p {
  margin: 0 0 12px;
}

@media (max-width: 860px) {
  .oak-program-hero,
  .oak-program-heading-row,
  .oak-program-card-grid,
  .oak-track-grid,
  .oak-form-grid,
  .oak-form-grid.two,
  .oak-check-grid,
  .oak-filter-row {
    grid-template-columns: 1fr;
  }

  .oak-program-hero {
    padding: 24px;
  }

  .oak-program-actions .button {
    width: 100%;
  }

  .latest-updates-header,
  .latest-update-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Oak & Ember digital workbook portal */
.oak-portal-shell {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.oak-portal-hero,
.oak-stats-grid article,
.oak-step-card,
.oak-review-list,
.oak-review-detail,
.oak-safety-card,
.oak-audit-card {
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 16px 38px rgba(79, 140, 138, 0.11);
}

.oak-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(20px, 4vw, 30px);
}

.oak-portal-hero h2,
.oak-step-summary h3,
.oak-review-detail h3,
.oak-review-list h3,
.oak-feedback-panel h4 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--ink);
}

.oak-portal-hero h2 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
}

.oak-portal-hero p,
.oak-safety-card p,
.oak-step-summary p,
.oak-prompt-card p,
.oak-feedback-panel p,
.oak-review-answer,
.oak-audit-card p {
  color: var(--muted);
  line-height: 1.62;
}

.oak-portal-actions,
.oak-step-actions,
.oak-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.oak-portal-actions {
  margin-top: 18px;
}

.oak-safety-card {
  padding: 20px;
  background: linear-gradient(145deg, rgba(247, 244, 238, 0.95), rgba(168, 184, 160, 0.18));
}

.oak-safety-card strong {
  color: var(--teal-dark);
}

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

.oak-stats-grid article {
  padding: 18px;
}

.oak-stats-grid span,
.oak-review-list button span {
  display: block;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oak-stats-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

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

.oak-status-row span,
.oak-portal-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.85);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.oak-portal-status-submitted,
.oak-portal-status-reviewed,
.oak-portal-status-completed {
  background: rgba(168, 184, 160, 0.22);
}

.oak-portal-status-revision_requested,
.oak-trauma-pill {
  border-color: rgba(201, 169, 107, 0.35);
  background: rgba(255, 248, 232, 0.96);
  color: var(--river);
}

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

.oak-step-card {
  overflow: hidden;
}

.oak-step-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 22px;
}

.oak-step-summary h3 {
  margin-top: 4px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.oak-step-side {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: end;
}

.oak-step-detail {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
}

.oak-prompt-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(122, 92, 72, 0.14);
  border-radius: 18px;
  background: rgba(247, 244, 238, 0.52);
}

.oak-prompt-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.oak-prompt-heading h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.oak-workbook-textarea,
.oak-feedback-panel textarea,
.oak-response-table textarea {
  width: 100%;
  border: 1px solid rgba(122, 92, 72, 0.2);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

.oak-workbook-textarea {
  min-height: 138px;
  padding: 14px;
  resize: vertical;
}

.oak-gentle-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.9);
}

.oak-checklist-input {
  display: grid;
  gap: 9px;
}

.oak-checklist-input label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}

.oak-prompt-actions span {
  color: var(--muted);
  font-size: 0.86rem;
}

.oak-table-wrap {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.oak-response-table {
  min-width: 760px;
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.oak-response-table th,
.oak-response-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(122, 92, 72, 0.14);
  text-align: left;
  vertical-align: top;
}

.oak-response-table th {
  background: rgba(168, 184, 160, 0.17);
  color: var(--teal-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.oak-response-table textarea {
  min-height: 90px;
  padding: 10px;
  resize: vertical;
}

.oak-feedback-panel {
  padding: 16px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.86);
}

.oak-feedback-panel.muted {
  background: rgba(247, 244, 238, 0.58);
}

.oak-feedback-panel textarea {
  min-height: 110px;
  margin-top: 10px;
  padding: 14px;
}

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

.oak-review-list {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.oak-review-list button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 16px;
  background: rgba(247, 244, 238, 0.64);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.oak-review-list button.active {
  border-color: var(--teal);
  background: rgba(79, 140, 138, 0.1);
}

.oak-review-detail {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.oak-review-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.oak-review-heading select {
  max-width: 280px;
  padding: 11px 12px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
}

.oak-review-responses {
  display: grid;
  gap: 12px;
}

.oak-review-responses article {
  padding: 16px;
  border: 1px solid rgba(122, 92, 72, 0.14);
  border-radius: 18px;
  background: rgba(247, 244, 238, 0.52);
}

.oak-review-responses h4 {
  margin: 4px 0 12px;
}

.oak-review-answer {
  padding: 13px;
  border-radius: 14px;
  background: #fff;
}

.oak-review-answer pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}

.oak-audit-card {
  padding: 14px;
  box-shadow: none;
}

.oak-link-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.oak-small-button {
  padding: 9px 12px;
  font-size: 0.86rem;
}

.oak-reader-workspace {
  padding-top: 24px;
}

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

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

  .oak-review-list {
    position: static;
  }
}

@media (max-width: 640px) {
  .oak-stats-grid,
  .oak-step-summary,
  .oak-review-heading {
    grid-template-columns: 1fr;
  }

  .oak-step-side {
    justify-items: start;
  }

  .oak-portal-actions .button,
  .oak-step-actions .button,
  .oak-prompt-actions .button,
  .oak-review-heading select {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .portal-workflow-head,
  .portal-request-hub {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .portal-workflow-metrics,
  .portal-workflow-steps,
  .portal-workflow-card-grid,
  .portal-workflow-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .portal-workflow-metrics,
  .portal-workflow-steps,
  .portal-workflow-card-grid,
  .portal-workflow-checklist,
  .portal-workflow-check {
    grid-template-columns: 1fr;
  }

  .portal-workflow-check em {
    justify-self: start;
  }

  .portal-real-definition-list,
  .portal-real-subgrid {
    grid-template-columns: 1fr;
  }

  .workbook-quick-access-layout {
    grid-template-columns: 1fr;
  }

  .workbook-prompt-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* Final mobile public QA guard. Keep this at the end so later feature modules cannot squeeze public cards. */
@media (max-width: 767px) {
  .home-highlights,
  .trust-bar,
  .feature-grid,
  .leader-grid,
  .metric-grid,
  .privacy-grid,
  .provide-grid,
  .admissions-grid,
  .link-grid,
  .resource-results,
  .featured-grid,
  .resource-access-grid,
  .data-safety-grid,
  .blog-teaser-grid,
  .blog-post-grid,
  .life-gallery-grid,
  .snapshot-grid,
  .amenity-grid,
  .wellness-video-grid,
  .recovery-app-grid,
  .dashboard-grid,
  .portal-summary,
  .pricing-grid,
  .access-grid,
  .website-conversion-grid,
  .hrh-upgrade-checks,
  .hrh-upgrade-pill-grid,
  .hrh-upgrade-link-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .home-highlight-card,
  .trust-item,
  .feature-card,
  .leader-card,
  .metric-card,
  .privacy-grid article,
  .provide-grid article,
  .admissions-grid section,
  .link-grid a,
  .resource-card,
  .recovery-app-panel,
  .life-card,
  .snapshot-grid article,
  .amenity-grid section,
  .wellness-video-card,
  .blog-teaser-grid article,
  .blog-post-grid article,
  .dashboard-card,
  .portal-summary article,
  .pricing-card,
  .access-card,
  .hrh-upgrade-checks li,
  .hrh-upgrade-pill-grid li,
  .hrh-upgrade-link-grid a {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .home-highlight-card *,
  .trust-item *,
  .feature-card *,
  .leader-card *,
  .metric-card *,
  .privacy-grid article *,
  .provide-grid article *,
  .admissions-grid section *,
  .link-grid a *,
  .resource-card *,
  .recovery-app-panel *,
  .life-card *,
  .snapshot-grid article *,
  .amenity-grid section *,
  .wellness-video-card *,
  .blog-teaser-grid article *,
  .blog-post-grid article *,
  .dashboard-card *,
  .portal-summary article *,
  .pricing-card *,
  .access-card *,
  .hrh-upgrade-checks li *,
  .hrh-upgrade-pill-grid li *,
  .hrh-upgrade-link-grid a * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .feature-card,
  .life-skills-grid label,
  .hrh-upgrade-checks li {
    display: grid !important;
    grid-template-columns: 2rem minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.75rem !important;
  }

  .feature-card span {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
  }

  .home-highlights,
  .trust-bar,
  .public-section,
  .availability-card,
  .content-section,
  .story-band,
  .founder-bio-section,
  .blog-band,
  .resource-featured-section,
  .resource-directory-section,
  .everything-aa-section,
  .life-skills-section,
  .contact-band {
    width: min(100% - 20px, 1180px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-inline: auto !important;
  }

  .resource-card-head,
  .resource-app-card-header,
  .portal-expansion-card-head,
  .dashboard-task-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .resource-card-labels,
  .resource-tags,
  .resource-actions,
  .everything-aa-buttons,
  .hero-actions,
  .contact-actions,
  .availability-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
  }

  .button,
  .app-button,
  .resource-actions .button,
  .resource-access-label,
  .resource-tags span {
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    line-height: 1.3;
  }
}

@media (max-width: 620px) {
  .main-nav.nav-open {
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.nav-open .nav-menu,
  .main-nav.nav-open .nav-menu-wide {
    max-height: none;
    overflow: visible;
  }

  .main-nav.nav-open .nav-group:focus-within .nav-menu {
    display: none;
  }

  .main-nav.nav-open .nav-group.is-open .nav-menu {
    display: grid;
  }
}

/* Resources mobile readability and scroll affordances */
#resources-search {
  scroll-margin-top: 90px;
}

.resource-who-block {
  display: block;
  width: 100%;
  min-width: 0;
  border-left: 0;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.resource-who-block strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.resource-who-block p {
  margin: 0;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
}

.resource-housing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.95rem 0 0.35rem;
}

.resource-housing-badges span {
  border: 1px solid rgba(79, 140, 138, 0.26);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.86);
  color: #3d6f6d;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.42rem 0.7rem;
  text-transform: capitalize;
  white-space: normal;
}

.resource-public-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0.35rem;
}

.resource-public-badges span {
  border: 1px solid rgba(201, 169, 107, 0.34);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.96);
  color: #5f4a39;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 0.42rem 0.7rem;
  white-space: normal;
}

.resource-sensitive-warning {
  border: 1px solid rgba(168, 184, 160, 0.45);
  border-left: 4px solid var(--sage);
  border-radius: 0.9rem;
  background: rgba(247, 244, 238, 0.86);
  color: #51463c;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.65rem 0 0.25rem;
  padding: 0.75rem 0.9rem;
}

.resource-verification-explanation {
  margin: 1rem 0 1.2rem;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 0.95rem 1rem;
}

.resource-verification-explanation p {
  margin: 0;
  line-height: 1.55;
}

.resource-verification-explanation strong {
  color: var(--teal-dark);
}

.filter-chip small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.1);
  color: var(--teal-dark);
  font-size: 0.72em;
  font-weight: 900;
  padding: 0.1rem 0.42rem;
}

.resource-empty {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 1rem;
  background: rgba(247, 244, 238, 0.86);
  color: var(--brown);
  padding: 1.2rem;
}

.resource-empty strong {
  color: var(--teal-dark);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.resource-empty p {
  margin: 0;
}

.resource-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.resource-empty-links button {
  border: 1px solid rgba(79, 140, 138, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 850;
  padding: 0.55rem 0.82rem;
}

.resource-empty-crisis {
  border-top: 1px solid rgba(122, 92, 72, 0.14);
  color: #5f4a39;
  padding-top: 0.65rem;
}

.resource-sober-warning {
  border: 1px solid rgba(201, 169, 107, 0.55);
  border-left: 4px solid #c9a96b;
  border-radius: 0.9rem;
  background: #fff8e8;
  color: #5f4a39;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0.85rem 0 0.35rem;
  padding: 0.85rem 0.95rem;
}

.resource-sober-context-warning {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0.35rem;
  border: 1px solid rgba(79, 140, 138, 0.3);
  border-left: 4px solid var(--teal);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(247, 244, 238, 0.96), rgba(237, 244, 236, 0.94));
  color: var(--brown);
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 30px rgba(35, 31, 32, 0.06);
}

.resource-sober-context-warning strong {
  color: var(--teal-dark);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.1;
}

.resource-sober-context-warning span {
  font-size: 0.95rem;
  line-height: 1.55;
}

.sober-lead-shell {
  display: grid;
  gap: 1.35rem;
  margin: 0 auto 3rem;
  max-width: 1180px;
  padding: 0 1rem;
}

.sober-lead-toolbar,
.sober-lead-section,
.sober-lead-card,
.sober-source-card {
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 1.35rem;
  background: rgba(255, 255, 250, 0.92);
  box-shadow: 0 14px 36px rgba(62, 74, 69, 0.08);
}

.sober-lead-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
}

.sober-lead-toolbar h2,
.sober-lead-section h2,
.sober-lead-card h3,
.sober-source-card h3 {
  color: #1d2f2d;
}

.sober-lead-toolbar p,
.sober-lead-section-head p,
.sober-lead-card p,
.sober-source-card p {
  color: #52615d;
  line-height: 1.65;
}

.sober-lead-section {
  padding: 1.35rem;
}

.sober-lead-section-head {
  margin-bottom: 1rem;
  max-width: 820px;
}

.sober-source-grid,
.sober-lead-grid {
  display: grid;
  gap: 1rem;
}

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

.sober-import-summary {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
}

.sober-import-summary article {
  border: 1px solid rgba(201, 169, 107, 0.36);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.95), rgba(238, 246, 243, 0.88));
  padding: 0.95rem;
}

.sober-import-summary span {
  color: #4f8c8a;
  display: block;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.sober-import-summary strong {
  color: #1d2f2d;
  display: block;
  margin-top: 0.4rem;
}

.sober-import-summary p {
  margin: 0.35rem 0 0;
}

.sober-source-card,
.sober-lead-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.sober-lead-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sober-lead-status {
  border-radius: 999px;
  background: #fff8e8;
  color: #7a5c48;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.42rem 0.7rem;
}

.sober-lead-badges,
.sober-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sober-lead-badges span {
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 999px;
  background: #eef6f3;
  color: #3d6f6d;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.42rem 0.7rem;
}

.sober-lead-details {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.sober-lead-details div {
  border-radius: 0.8rem;
  background: rgba(247, 244, 238, 0.72);
  padding: 0.75rem;
}

.sober-lead-details dt {
  color: #3d6f6d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sober-lead-details dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.sober-lead-notes {
  border-left: 4px solid #c9a96b;
  border-radius: 0.9rem;
  background: #fff8e8;
  margin: 0;
  padding: 0.85rem 1rem;
}

.sober-lead-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sober-lead-form label {
  color: #3f4e4a;
  display: grid;
  font-weight: 800;
  gap: 0.35rem;
}

.sober-lead-form input,
.sober-lead-form select,
.sober-lead-form textarea {
  border: 1px solid rgba(79, 140, 138, 0.28);
  border-radius: 0.8rem;
  background: #fffefa;
  color: #1d2f2d;
  font: inherit;
  padding: 0.75rem 0.85rem;
}

.sober-lead-form-wide {
  grid-column: 1 / -1;
}

.sober-search-log {
  margin-top: 1rem;
}

.sober-search-log summary {
  color: #3d6f6d;
  cursor: pointer;
  font-weight: 900;
}

.sober-search-log ul {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
}

.sober-search-log li {
  border-radius: 0.85rem;
  background: rgba(247, 244, 238, 0.78);
  display: grid;
  gap: 0.2rem;
  list-style: none;
  padding: 0.8rem;
}

@media (max-width: 900px) {
  .sober-lead-toolbar,
  .sober-lead-card-top {
    align-items: stretch;
    flex-direction: column;
  }

  .sober-source-grid,
  .sober-import-summary,
  .sober-lead-details,
  .sober-lead-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .resource-sticky-jump {
    display: flex;
  }

  .resource-toolbar {
    scroll-margin-top: 86px;
  }

  .resource-view-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .resource-view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-filter-panel {
    grid-template-columns: minmax(0, 1fr);
    max-height: 310px;
  }

  #resourceResults.resource-results,
  #resourceResults.resource-map-view {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    max-height: min(68dvh, 620px);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 8px 8px 0;
  }

  #featuredResources.resource-results {
    max-height: none;
    overflow: visible;
  }

  .featured-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .resource-card,
  .resource-card *,
  .filter-chip,
  .filter-chip * {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .resource-card h3,
  .resource-card p,
  .resource-meta-item,
  .resource-details p,
  .resource-tags span,
  .resource-actions .button {
    overflow-wrap: break-word !important;
  }

  .resource-card h3 {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
    line-height: 1.18;
  }

  .resource-card-labels {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start !important;
  }

  .resource-card-labels strong,
  .resource-access-label {
    width: auto !important;
    max-width: 100% !important;
  }

  footer {
    padding-bottom: 92px;
  }

  .footer-security-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-security-links a {
    width: min(100%, 320px);
    margin-inline: auto;
  }
}

/* Spacing, footer, resources, and blog comment polish */
html {
  scroll-behavior: smooth;
}

section[id],
#resources-search {
  scroll-margin-top: 6rem;
}

.section-heading h1 + p,
.section-heading h2 + p,
.section-heading h3 + p,
.hr-social-hero h1 + p,
.photo-reel-copy h2 + p,
.hr-blog-header h1 + p,
.hrh-upgrade-section h2 + p,
.page-hero h1 + p,
.story-copy h2 + p,
.availability-card h2 + p,
.website-conversion-inner h2 + p {
  margin-top: clamp(1.75rem, 2.75vw, 2.25rem);
}

.section-heading .eyebrow + h1,
.section-heading .eyebrow + h2,
.section-heading .eyebrow + h3,
.hr-social-hero .eyebrow + h1,
.photo-reel-copy .eyebrow + h2,
.hrh-upgrade-section .eyebrow + h2,
.availability-card .eyebrow + h2,
.website-conversion-inner .eyebrow + h2,
.hr-blog-kicker + h1,
.hr-blog-kicker + h2 {
  margin-top: clamp(1.75rem, 2.75vw, 2.25rem);
}

.hrh-upgrade-grid + .hrh-upgrade-note,
.hrh-upgrade-steps + .hrh-upgrade-note,
.hrh-upgrade-checks + .hrh-upgrade-note,
.hrh-upgrade-card-grid + .hrh-upgrade-note {
  margin-top: clamp(3rem, 4.5vw, 4rem);
}

.hrh-upgrade-note {
  display: block;
  width: min(100%, 880px);
  border: 1px solid rgba(201, 169, 107, 0.35);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 12px 28px rgba(79, 140, 138, 0.08);
  line-height: 1.75;
  padding: clamp(18px, 3vw, 24px);
}

.availability-card .availability-actions,
.website-conversion-grid,
.website-conversion-actions {
  margin-top: clamp(2.25rem, 4vw, 2.75rem);
}

.website-conversion-inner > p {
  margin-top: clamp(1.75rem, 2.75vw, 2.25rem);
}

.footer-security-links a,
footer .footer-security-links a {
  border-color: rgba(122, 92, 72, 0.28) !important;
  background: #fffaf0 !important;
  color: #5b4637 !important;
  opacity: 1 !important;
  box-shadow: 0 10px 22px rgba(35, 31, 32, 0.18);
}

.footer-security-links a:hover,
footer .footer-security-links a:hover {
  border-color: rgba(79, 140, 138, 0.7) !important;
  background: #ffffff !important;
  color: #315f5d !important;
}

.resources-account-cta,
.resources-disclaimer {
  display: grid;
  gap: 18px;
  width: min(100% - 32px, 1100px);
  margin: clamp(28px, 5vw, 54px) auto;
  border: 1px solid rgba(201, 169, 107, 0.42);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 96% 10%, rgba(79, 140, 138, 0.12), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 232, 0.88));
  box-shadow: 0 16px 34px rgba(35, 31, 32, 0.08);
}

.resources-account-cta h2,
.resources-disclaimer h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.08;
}

.resources-account-cta p,
.resources-disclaimer p {
  max-width: 820px;
  margin: clamp(1.1rem, 2vw, 1.55rem) 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.resources-account-cta .resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.resource-local-anchors-shell {
  border-color: rgba(79, 140, 138, 0.28);
  background:
    linear-gradient(180deg, rgba(247, 244, 238, 0.94), rgba(255, 255, 250, 0.88)),
    var(--paper);
}

.resource-local-anchors-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.92);
  cursor: pointer;
  list-style: none;
}

.resource-local-anchors-summary::-webkit-details-marker {
  display: none;
}

.resource-local-anchors-summary .eyebrow {
  display: block;
  margin: 0 0 7px;
}

.resource-local-anchors-summary strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.resource-local-anchors-summary small {
  display: block;
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.resource-local-anchors-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 999px;
  background: rgba(234, 244, 242, 0.95);
  color: var(--teal-dark);
  font-weight: 900;
}

.resource-local-anchors-toggle::before {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

.resource-local-anchors-shell[open] .resource-local-anchors-toggle::before {
  content: "-";
}

.resource-local-anchors-shell .resource-jump-link {
  display: inline-flex;
  margin: 16px 0 0;
}

.resource-local-anchors-scroll {
  max-height: min(68vh, 34rem);
  margin-top: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-color: var(--teal) rgba(237, 244, 236, 0.9);
  scrollbar-width: thin;
}

.resource-local-anchors-scroll::-webkit-scrollbar {
  width: 10px;
}

.resource-local-anchors-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(237, 244, 236, 0.9);
}

.resource-local-anchors-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(237, 244, 236, 0.9);
  border-radius: 999px;
  background: var(--teal);
}

.resource-local-anchors-scroll .featured-grid {
  margin-top: 0;
}

.resource-checklist-panel {
  width: min(100% - 32px, 1180px);
  margin: 28px auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 250, 0.96), rgba(247, 244, 238, 0.92)),
    var(--paper);
  box-shadow: 0 18px 42px rgba(35, 31, 32, 0.08);
}

.resource-checklist-panel h2 {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 0.96;
}

.resource-checklist-intro {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.resource-checklist-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  margin-top: 24px;
}

.resource-checklist-items label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(191, 169, 138, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.84);
  color: var(--ink);
  line-height: 1.5;
}

.resource-checklist-items input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.resource-checklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.resource-checklist-actions .button {
  min-height: 48px;
}

.resource-checklist-save-note,
.resource-checklist-status {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.resource-checklist-save-card {
  width: min(100% - 32px, 860px);
  margin: 22px auto 48px;
  padding: 22px;
  border: 1px solid rgba(201, 169, 107, 0.48);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.88);
}

.resource-checklist-save-card h2 {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-size: 2rem;
}

.resource-checklist-save-card p {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.7;
}

.resource-checklist-page {
  padding-bottom: 24px;
}

.resource-share-button {
  border-color: rgba(79, 140, 138, 0.28);
}

@media (max-width: 767px) {
  .resource-local-anchors-summary {
    align-items: flex-start;
    padding: 16px;
  }

  .resource-local-anchors-summary strong {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
  }

  .resource-local-anchors-scroll {
    max-height: min(70dvh, 28rem);
    padding-right: 4px;
  }

  .resource-checklist-panel {
    width: min(100% - 20px, 1180px);
    padding: 22px 16px;
  }

  .resource-checklist-actions {
    display: grid;
  }
}

@media print {
  body.resource-checklist-printing {
    background: #ffffff !important;
  }

  body.resource-checklist-printing header,
  body.resource-checklist-printing footer,
  body.resource-checklist-printing .print-hidden,
  body.resource-checklist-printing .resource-checklist-actions,
  body.resource-checklist-printing .resource-checklist-save-note,
  body.resource-checklist-printing .resource-checklist-status,
  body.resource-checklist-printing main > section:not(.resource-checklist-panel),
  body.resource-checklist-printing main > details {
    display: none !important;
  }

  body.resource-checklist-printing .resource-checklist-panel {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  body.resource-checklist-printing .resource-checklist-items {
    grid-template-columns: 1fr;
  }

  .print-hidden {
    display: none !important;
  }
}

.resource-sticky-jump {
  bottom: 82px;
}

.resource-view-toggle {
  display: none !important;
}

.hr-blog-comments {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 236, 0.78));
}

.hr-blog-comments-header h3,
.owner-comment-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.12;
}

.hr-blog-comments-header p:not(.hr-blog-kicker),
.hr-blog-no-comments,
.hr-blog-comment-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hr-blog-approved-comments {
  display: grid;
  gap: 12px;
}

.hr-blog-approved-comment {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.hr-blog-approved-comment time {
  color: var(--muted);
  font-size: 0.82rem;
}

.hr-blog-approved-comment p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.hr-blog-comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid rgba(122, 92, 72, 0.16);
  padding-top: 18px;
}

.hr-blog-comment-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.hr-blog-comment-form input,
.hr-blog-comment-form textarea {
  width: 100%;
  border: 1px solid rgba(79, 140, 138, 0.26);
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.hr-blog-comment-wide,
.hr-blog-comment-form button,
.hr-blog-comment-message {
  grid-column: 1 / -1;
}

.hr-blog-comment-form button {
  min-height: 46px;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--teal-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.owner-comment-moderation {
  width: min(100% - 32px, 1120px);
  margin: clamp(32px, 5vw, 64px) auto;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 18px 40px rgba(35, 31, 32, 0.08);
}

.owner-comment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.owner-comment-summary article {
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.owner-comment-summary span,
.owner-comment-card-head p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.owner-comment-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--teal-dark);
  font-size: 2rem;
}

.owner-comment-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.owner-comment-card,
.owner-comment-empty {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(122, 92, 72, 0.18);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 22px);
  background: #fff;
}

.owner-comment-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.owner-comment-card-head a {
  color: var(--teal-dark);
  font-weight: 850;
}

.owner-comment-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.owner-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

@media (min-width: 768px) {
  .resource-sticky-jump {
    right: auto;
    bottom: 24px;
    max-width: 310px;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .resource-sticky-jump {
    bottom: 86px;
  }

  .resources-account-cta .resource-actions,
  .hr-blog-comment-form,
  .owner-comment-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .resources-account-cta .resource-actions {
    display: grid;
  }

  .hr-blog-comment-form button {
    width: 100%;
  }
}

/* Home and amenities rotating photo reel */
.photo-reel-section {
  padding: clamp(2.5rem, 6vw, 4.75rem) 1.25rem;
}

.photo-reel-shell {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.96), rgba(232, 241, 235, 0.86)),
    #f7f4ee;
  border: 1px solid rgba(79, 140, 138, 0.2);
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(58, 45, 35, 0.12);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.photo-reel-copy h2 {
  color: #1f2a24;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 0.96;
  margin: clamp(1.75rem, 2.75vw, 2.25rem) 0 0;
  max-width: 9ch;
}

.photo-reel-copy > p:not(.eyebrow):not(.photo-reel-caption) {
  color: #4b574f;
  font-size: 1.03rem;
  line-height: 1.75;
  margin: clamp(1.75rem, 2.75vw, 2.25rem) 0 0;
  max-width: 42rem;
}

.photo-reel-caption {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(191, 169, 138, 0.5);
  border-radius: 18px;
  color: #7a5c48;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 1.4rem 0 0;
  padding: 0.78rem 1rem;
}

.photo-reel-media {
  min-width: 0;
}

.photo-reel-image-wrap {
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(135deg, rgba(247, 244, 238, 0.98), rgba(232, 241, 235, 0.86));
  border: 1px solid rgba(191, 169, 138, 0.45);
  border-radius: 26px;
  box-shadow: 0 18px 34px rgba(31, 42, 36, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-reel-image-wrap img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-reel-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(31, 42, 36, 0.16);
  color: #3d6f6d;
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
}

.photo-reel-prev {
  left: 0.85rem;
}

.photo-reel-next {
  right: 0.85rem;
}

.photo-reel-control:focus-visible,
.photo-reel-dot:focus-visible {
  outline: 3px solid rgba(201, 169, 107, 0.72);
  outline-offset: 3px;
}

.photo-reel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
  max-width: 100%;
  overflow: hidden;
}

.photo-reel-dot {
  background: #d8d0c2;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 11px;
  padding: 0;
  transition: background 180ms ease, width 180ms ease;
  width: 11px;
}

.photo-reel-dot.is-active {
  background: #4f8c8a;
  width: 34px;
}

.photo-reel-thumbs {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1rem;
}

.photo-reel-thumb {
  background: #ffffff;
  border: 1px solid rgba(191, 169, 138, 0.42);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  padding: 0.2rem;
}

.photo-reel-thumb.is-active {
  border-color: #4f8c8a;
  box-shadow: 0 0 0 2px rgba(79, 140, 138, 0.14);
}

.photo-reel-thumb img {
  aspect-ratio: 1;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 860px) {
  .photo-reel-section {
    padding-inline: 1rem;
  }

  .photo-reel-shell {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .photo-reel-copy h2 {
    max-width: 12ch;
  }

  .photo-reel-image-wrap img {
    object-fit: contain;
  }

  .photo-reel-image-wrap {
    aspect-ratio: 4 / 5;
    background:
      radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 32%),
      linear-gradient(135deg, #fffaf0, #e8f1eb);
  }

  .photo-reel-control {
    height: 40px;
    width: 40px;
  }

  .photo-reel-prev {
    left: 0.55rem;
  }

  .photo-reel-next {
    right: 0.55rem;
  }

  .photo-reel-thumbs {
    display: none;
  }
}

@media (max-width: 700px) {
  .hrh-upgrade-checks.hrh-compact-checks li {
    grid-template-columns: 1.45rem minmax(0, 1fr) !important;
    gap: 8px !important;
  }
}

.life-card img.amenity-cat-plant-image,
img[data-image-kind="cat-plant-full-fit"] {
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

.life-card:has(img.amenity-cat-plant-image) {
  background: rgba(247, 244, 238, 0.92);
}

.photo-reel-image-wrap.photo-reel-cat-plant-frame {
  aspect-ratio: auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(135deg, #fffaf0, #e8f1eb);
}

.photo-reel-image-wrap.photo-reel-cat-plant-frame img {
  height: auto !important;
  max-height: min(78vh, 720px);
  object-fit: contain !important;
  object-position: center bottom !important;
}

.program-fees-layout h2 + p {
  margin-top: clamp(2rem, 4vw, 2.6rem);
}

.program-fees-layout p:not(.eyebrow) {
  line-height: 1.85;
}

@media (max-width: 767px) {
  .life-card img.amenity-cat-plant-image {
    width: 100% !important;
    height: auto !important;
  }

  .photo-reel-image-wrap.photo-reel-cat-plant-frame img {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh;
  }

  .program-fees-layout h2 {
    line-height: 0.98;
  }

  .program-fees-layout h2 + p {
    margin-top: 2.25rem !important;
  }

  .program-fees-layout p:not(.eyebrow) {
    line-height: 2.05;
  }
}

.business-automation-center {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(1.25rem, 3vw, 2.5rem) auto;
  color: #24302f;
}

.business-automation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.96), rgba(232, 241, 235, 0.92)),
    radial-gradient(circle at 12% 8%, rgba(201, 169, 107, 0.2), transparent 30%);
  box-shadow: 0 22px 54px rgba(36, 48, 47, 0.1);
}

.business-automation-hero h2 {
  margin: 0.35rem 0 0.55rem;
  color: #1f3d36;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.business-automation-hero p {
  max-width: 68ch;
  color: rgba(36, 48, 47, 0.78);
  line-height: 1.7;
}

.business-automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.business-automation-note {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(201, 169, 107, 0.36);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.business-automation-note strong {
  color: #7a5c48;
  font-size: 1.02rem;
}

.business-automation-note span,
.business-automation-note em {
  color: rgba(36, 48, 47, 0.72);
  font-style: normal;
  line-height: 1.55;
}

.business-automation-note em {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.business-automation-pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.business-automation-pill,
.business-automation-row {
  text-decoration: none;
  color: inherit;
}

.business-automation-pill {
  min-height: 96px;
  display: grid;
  gap: 0.25rem;
  align-content: center;
  padding: 1rem;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(36, 48, 47, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.business-automation-pill:hover,
.business-automation-row:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 140, 138, 0.42);
  box-shadow: 0 18px 34px rgba(36, 48, 47, 0.12);
}

.business-automation-pill strong {
  color: #1f3d36;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1;
}

.business-automation-pill span {
  color: rgba(36, 48, 47, 0.72);
  font-weight: 800;
}

.business-automation-pill.urgent,
.business-automation-row.urgent {
  border-color: rgba(122, 92, 72, 0.38);
  background: rgba(255, 248, 239, 0.92);
}

.business-automation-pill.high,
.business-automation-row.high {
  border-color: rgba(201, 169, 107, 0.42);
}

.business-automation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  gap: 1rem;
  align-items: start;
}

.business-automation-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.business-automation-group,
.business-automation-rules {
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(36, 48, 47, 0.08);
}

.business-automation-group {
  padding: 1rem;
}

.business-automation-group-head {
  margin-bottom: 0.8rem;
}

.business-automation-group-head h3,
.business-automation-rules h3 {
  margin: 0;
  color: #1f3d36;
  font-size: 1.35rem;
  line-height: 1.05;
}

.business-automation-group-head p,
.business-automation-rules p {
  margin: 0.45rem 0 0;
  color: rgba(36, 48, 47, 0.68);
  line-height: 1.55;
}

.business-automation-queue {
  display: grid;
  gap: 0.65rem;
}

.business-automation-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 74px;
  padding: 0.75rem;
  border: 1px solid rgba(168, 184, 160, 0.34);
  border-radius: 16px;
  background: rgba(247, 244, 238, 0.76);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.business-automation-count {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(79, 140, 138, 0.12);
  color: #1f3d36;
  font-size: 1.2rem;
  font-weight: 900;
}

.business-automation-row-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.business-automation-row-copy strong {
  color: #24302f;
  line-height: 1.25;
}

.business-automation-row-copy em {
  color: rgba(36, 48, 47, 0.56);
  font-size: 0.82rem;
  font-style: normal;
  text-transform: capitalize;
}

.business-automation-rules {
  position: sticky;
  top: 1rem;
  padding: 1rem;
}

.business-automation-rules ul {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.business-automation-rules li {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(232, 241, 235, 0.72);
}

.business-automation-rules li strong {
  color: #1f3d36;
}

.business-automation-rules li span {
  color: rgba(36, 48, 47, 0.62);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .business-automation-hero,
  .business-automation-grid {
    grid-template-columns: 1fr;
  }

  .business-automation-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .business-automation-rules {
    position: static;
  }
}

@media (max-width: 720px) {
  .business-automation-center {
    width: min(100% - 20px, 1180px);
  }

  .business-automation-hero {
    padding: 1rem;
    border-radius: 20px;
  }

  .business-automation-actions .button {
    width: 100%;
    justify-content: center;
  }

  .business-automation-pills,
  .business-automation-groups {
    grid-template-columns: 1fr;
  }

  .business-automation-pill {
    min-height: 82px;
  }

  .business-automation-row {
    grid-template-columns: 2.9rem minmax(0, 1fr);
  }

  .business-automation-row > span[aria-hidden="true"] {
    display: none;
  }
}

.inactive-portal-login-notice,
.inactive-portal-notice {
  border: 1px solid rgba(201, 169, 107, 0.5);
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.98), rgba(168, 184, 160, 0.18)),
    #f7f4ee;
  color: #24302f;
  box-shadow: 0 16px 36px rgba(36, 48, 47, 0.08);
}

.inactive-portal-login-notice {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 clamp(1rem, 2vw, 1.35rem);
  padding: clamp(0.95rem, 2vw, 1.2rem);
  border-radius: 18px;
}

.inactive-portal-login-notice strong {
  color: #4f7774;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.inactive-portal-login-notice span {
  color: rgba(36, 48, 47, 0.78);
  font-size: 0.98rem;
  line-height: 1.65;
}

.inactive-portal-notice {
  align-items: center;
}

.inactive-portal-notice h1,
.inactive-portal-notice p:not(.eyebrow) {
  color: #24302f;
}

.inactive-portal-notice img {
  max-width: min(280px, 72vw);
  opacity: 0.9;
}
/* Owner Newsletter Center */
.newsletter-center-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 56px;
  color: var(--ink, #1f2f2c);
}

.newsletter-center-heading {
  border: 1px solid rgba(79, 140, 138, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 250, 0.98), rgba(247, 244, 238, 0.92));
  border-radius: 24px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 18px 45px rgba(36, 48, 47, 0.08);
}

.newsletter-center-heading h1 {
  margin: 12px 0 0;
  max-width: 850px;
  color: #172522;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.96;
}

.newsletter-center-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 18px 0 0;
  color: #40504c;
  font-size: 1rem;
  line-height: 1.75;
}

.newsletter-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.newsletter-safety-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border-radius: 20px;
  padding: 18px 20px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.newsletter-safety-panel.safe {
  border: 1px solid rgba(79, 140, 138, 0.26);
  background: rgba(234, 244, 242, 0.9);
  color: #2f5d59;
}

.newsletter-safety-panel.review {
  border: 1px solid rgba(201, 169, 107, 0.42);
  background: rgba(255, 248, 232, 0.94);
  color: #644936;
}

.newsletter-safety-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.newsletter-safety-panel li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.newsletter-safety-panel li span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(122, 92, 72, 0.12);
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.newsletter-owner-notices,
.newsletter-stat-grid,
.newsletter-issue-list,
.newsletter-section-editor {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.newsletter-owner-notices article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 20px;
  background: #f4fbf8;
  padding: 16px 18px;
}

.newsletter-owner-notices a {
  color: #2f5d59;
  font-weight: 800;
}

.newsletter-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.newsletter-stat-grid article {
  border: 1px solid rgba(221, 215, 202, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 250, 0.95);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(36, 48, 47, 0.06);
}

.newsletter-stat-grid span,
.newsletter-meta-grid dt {
  color: #4f7772;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.newsletter-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: #172522;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.newsletter-owner-card,
.newsletter-editor-section,
.newsletter-public-preview,
.newsletter-dynamic-detail {
  border: 1px solid rgba(221, 215, 202, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 250, 0.98);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 16px 38px rgba(36, 48, 47, 0.08);
}

.newsletter-owner-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.newsletter-owner-card h2,
.newsletter-public-preview h2,
.newsletter-dynamic-detail h3 {
  margin: 14px 0 0;
  color: #172522;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.05;
}

.newsletter-owner-card p,
.newsletter-public-preview p,
.newsletter-dynamic-detail p {
  color: #45554f;
  line-height: 1.68;
}

.newsletter-card-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.newsletter-status-badge,
.newsletter-mini-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(79, 140, 138, 0.2);
  background: #eaf4f2;
  color: #2f5d59;
  padding: 7px 11px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newsletter-mini-badge {
  border-color: rgba(201, 169, 107, 0.35);
  background: #fff8e8;
  color: #75553f;
}

.newsletter-mini-badge.review {
  border-color: rgba(201, 169, 107, 0.5);
  background: #fff3d8;
}

.newsletter-mini-badge.safe {
  border-color: rgba(79, 140, 138, 0.26);
  background: #eef8f4;
}

.status-published {
  background: #eef8f4;
  color: #386f56;
}

.status-archived {
  background: #f1ede6;
  color: #7a5c48;
}

.status-needs_owner_review {
  background: #fff3d8;
  color: #7a5c48;
}

.newsletter-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.newsletter-meta-grid div {
  border-radius: 16px;
  background: rgba(247, 244, 238, 0.88);
  padding: 12px;
}

.newsletter-meta-grid dd {
  margin: 5px 0 0;
  color: #253632;
  font-weight: 800;
}

.newsletter-card-actions {
  display: grid;
  gap: 10px;
  min-width: 140px;
}

.newsletter-editor-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.newsletter-editor-form label {
  display: grid;
  gap: 8px;
  color: #263b36;
  font-weight: 800;
}

.newsletter-editor-form input,
.newsletter-editor-form textarea {
  width: 100%;
  border: 1px solid rgba(122, 92, 72, 0.22);
  border-radius: 18px;
  background: #fffffa;
  color: #172522;
  padding: 13px 15px;
  font: inherit;
  line-height: 1.55;
}

.newsletter-editor-form textarea {
  resize: vertical;
}

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

.newsletter-check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.newsletter-check-row input {
  width: 20px;
  height: 20px;
}

.newsletter-public-preview {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.newsletter-public-preview section,
.newsletter-dynamic-detail section {
  border-top: 1px solid rgba(221, 215, 202, 0.9);
  padding-top: 18px;
}

.newsletter-public-preview section:first-child,
.newsletter-dynamic-detail section:first-child {
  border-top: 0;
  padding-top: 0;
}

.newsletter-public-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.newsletter-dynamic-detail {
  grid-column: 1 / -1;
}

.newsletter-dynamic-detail h4 {
  margin: 18px 0 0;
  color: #172522;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.newsletter-dashboard-signal {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  border-radius: 999px;
  background: #fff3d8;
  color: #7a5c48;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.newsletter-dashboard-signal.calm {
  background: #eaf4f2;
  color: #2f5d59;
}

@media (max-width: 780px) {
  .newsletter-center-shell {
    width: min(100% - 22px, 1120px);
    margin-top: 22px;
  }

  .newsletter-stat-grid,
  .newsletter-meta-grid,
  .newsletter-owner-card,
  .newsletter-editor-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-card-actions,
  .newsletter-actions-row .button,
  .newsletter-actions-row button {
    width: 100%;
  }

  .newsletter-safety-panel li {
    display: grid;
  }
}

/* Client portal workbook actionability pass */
.client-next-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.client-next-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid rgba(79, 140, 138, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(35, 31, 32, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.client-next-step-card:hover,
.client-next-step-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(79, 140, 138, 0.42);
  box-shadow: 0 18px 34px rgba(35, 31, 32, 0.1);
}

.client-next-step-card > span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #4f8c8a;
  color: #fff;
  font-weight: 900;
}

.client-next-step-card strong,
.client-next-step-card p,
.client-next-step-card em {
  overflow-wrap: anywhere;
}

.client-next-step-card p {
  margin: 0.35rem 0 0;
  color: #51635e;
  font-size: 0.9rem;
  line-height: 1.5;
}

.client-next-step-card em {
  display: block;
  margin-top: 0.55rem;
  color: #3d6f6d;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-next-step-note,
.workbook-after-submit-note {
  display: grid;
  gap: 0.25rem;
  margin: 0.8rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 169, 107, 0.38);
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.78);
  color: #5b4a3e;
  line-height: 1.5;
}

.workbook-action-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.workbook-action-flow > div {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(79, 140, 138, 0.18);
  border-radius: 14px;
  background: rgba(234, 244, 242, 0.72);
}

.workbook-action-flow span {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: #4f8c8a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.workbook-action-flow strong,
.workbook-action-flow p {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.workbook-action-flow p {
  margin: 0.35rem 0 0;
  color: #5f6f69;
  font-size: 0.86rem;
  line-height: 1.45;
}

.client-profile-summary {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}

.client-profile-summary div,
.client-program-fee-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(79, 140, 138, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.client-profile-summary dt {
  color: #3d6f6d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-profile-summary dd {
  grid-column: 1 / -1;
  margin: 0;
  color: #34433f;
  line-height: 1.45;
}

.client-announcement-list strong {
  color: #243d38;
}

.client-program-fee-table {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0;
}

.client-program-fee-table [role="row"] {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.client-program-fee-table span,
.client-program-fee-table strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-program-fee-table strong {
  color: #3d6f6d;
  text-transform: uppercase;
  font-size: 0.76rem;
}

@media (max-width: 980px) {
  .client-next-step-list,
  .workbook-action-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .client-next-step-list,
  .workbook-action-flow,
  .client-program-fee-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .client-next-step-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.9rem;
  }

  .workbook-resume-banner,
  .workbook-widget-header {
    align-items: flex-start;
  }

  .workbook-resume-banner .button,
  .workbook-roadmap-actions .button,
  .next-step-card {
    width: 100%;
  }
}

/* Owner portal task-driven focus pass */
.owner-task-focus,
.owner-library-heading {
  border: 1px solid rgba(79, 140, 138, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.96), rgba(255, 255, 250, 0.94)),
    #fffefa;
  box-shadow: 0 16px 34px rgba(36, 48, 47, 0.08);
  margin: 1.5rem 0;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.owner-task-focus {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.6fr);
  gap: 1rem;
  align-items: stretch;
}

.owner-task-focus.muted {
  background: rgba(247, 244, 238, 0.68);
  border-style: dashed;
}

.owner-task-focus h2,
.owner-library-heading h2 {
  margin: 0.25rem 0 0.55rem;
  color: #213d3b;
  font-family: var(--heading-font, "Marcellus", serif);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
}

.owner-task-focus p,
.owner-library-heading p {
  margin: 0;
  color: #53645e;
  line-height: 1.65;
}

.owner-task-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.owner-task-focus-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-task-focus-grid a,
.owner-task-focus-grid span {
  min-width: 0;
  border: 1px solid rgba(168, 184, 160, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 250, 0.92);
  color: #24302f;
  display: grid;
  gap: 0.28rem;
  padding: 0.82rem;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.owner-task-focus-grid a:hover,
.owner-task-focus-grid a:focus-visible {
  border-color: rgba(79, 140, 138, 0.72);
  box-shadow: 0 10px 24px rgba(36, 48, 47, 0.1);
  transform: translateY(-2px);
}

.owner-task-focus-grid strong {
  color: #4F8C8A;
  font-size: 1.25rem;
  line-height: 1;
}

.owner-task-focus-grid span span,
.owner-task-focus-grid a span {
  color: #24302f;
  font-weight: 800;
}

.owner-task-focus-grid small {
  color: #61736d;
  line-height: 1.45;
}

.owner-library-heading {
  background: rgba(255, 255, 250, 0.72);
  box-shadow: none;
}

.owner-tool-library-grid {
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .owner-task-focus {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .owner-task-focus-grid,
  .owner-task-focus-grid.compact {
    grid-template-columns: 1fr;
  }
}
