:root {
  --night: #0c4a6e;
  --dusk: #075985;
  --terracotta: #0369a1;
  --terracotta-deep: #075985;
  --amber-glow: #e0f2fe;
  --cream: #f0f9ff;
  --sage: #0284c7;
  --ink: #1e293b;
  --background: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --muted: #64748b;
  --primary: #0369a1;
  --ring: #0284c7;
  --teal: #14b8a6;
  --teal-deep: #0d9488;
  --font-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-sans: "Assistant", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--ink);
  line-height: 1.6;
}

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

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

img {
  max-width: 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--night);
  color: #fff;
}

.header-accent {
  height: 1px;
  background: color-mix(in srgb, var(--terracotta) 50%, transparent);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.25rem;
}

.nav-link {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  height: 1px;
  width: 0;
  background: var(--terracotta);
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--ring);
  outline-offset: 2px;
}

.btn-signin {
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 2px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.btn-signin:hover {
  background: var(--terracotta-deep);
}

main {
  flex: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 55%, var(--terracotta) 100%);
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  top: -10rem;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(closest-side, oklch(0.86 0.1 230 / 0.35), transparent 70%);
  filter: blur(40px);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  color: color-mix(in srgb, var(--night) 70%, transparent);
}

.hero-inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
  text-align: center;
}

.hero-quote {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber-glow);
}

.hero h1 {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 3.6rem);
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber-glow);
}

.hero-lead {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.search-shell {
  margin: 1.25rem auto 0;
  max-width: 40rem;
}

.search-form,
.glass-form {
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.search-row,
.glass-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-field,
.glass-field {
  display: flex;
  align-items: center;
  flex: 1;
  background: #fff;
  border-radius: 0.45rem;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
}

.search-field input,
.glass-field input,
.glass-field select,
.glass-field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.search-field input:focus,
.glass-field input:focus,
.glass-field select:focus,
.glass-field textarea:focus {
  outline: none;
}

.search-field svg,
.glass-field svg {
  margin-left: 0.6rem;
  color: var(--primary);
  flex-shrink: 0;
}

.btn-night {
  min-height: 2.5rem;
  border-radius: 0.45rem;
  background: var(--night);
  color: #fff;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.btn-night:hover {
  background: #000;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.help-link strong {
  color: var(--amber-glow);
}

.hubs {
  margin-top: 1.5rem;
  text-align: right;
}

.hubs-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.hubs-head span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.hubs-head i {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.hub-tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  transition: 0.2s ease;
}

.hub-tile:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hub-tile svg {
  width: 1.4rem;
  height: 1.4rem;
}

.hub-tile span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 1.5rem 0 4rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.section-head h2,
.serif-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
}

.card:hover {
  border-color: color-mix(in srgb, var(--sage) 45%, var(--border));
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 11px;
  font-weight: 600;
  background: color-mix(in srgb, var(--sage) 16%, white);
  color: #3d543b;
}

.badge-amber {
  background: var(--cream);
  color: var(--dusk);
}

.badge-terra {
  background: #ccfbf1;
  color: #0f766e;
}

.icon-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--ink);
}

.card-place {
  font-size: 13px;
  color: var(--muted);
}

.card h3 {
  margin: 0.45rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.tag {
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  padding: 0.18rem 0.55rem;
}

.newsletter {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--terracotta) 20%, transparent);
  background: linear-gradient(135deg, var(--night), var(--dusk), var(--terracotta));
  color: #fff;
  padding: 2rem;
}

.newsletter-glow {
  pointer-events: none;
  position: absolute;
  top: -6rem;
  left: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(closest-side, oklch(0.86 0.1 230 / 0.4), transparent 70%);
  filter: blur(30px);
}

.newsletter-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber-glow);
}

.newsletter h2 {
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.newsletter p {
  margin: 0.7rem 0 0;
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.85);
}

.check-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-list svg {
  margin-top: 0.15rem;
  color: var(--amber-glow);
  flex-shrink: 0;
}

.tiny {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.cta-box {
  margin-top: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--cream) 60%, white);
  padding: 2rem;
  text-align: center;
}

.btn-primary {
  margin-top: 1.1rem;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 0.45rem;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.explainer {
  margin: 3rem auto 0;
  max-width: 72rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
  background: color-mix(in srgb, var(--cream) 50%, white);
  padding: 1.5rem;
}

.explainer .kicker {
  color: var(--sage);
}

.explainer-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.seo {
  margin-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--cream) 40%, white);
}

.seo-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.seo h2,
.seo h3,
.page-title {
  font-family: var(--font-serif);
}

.seo h2,
.page-title {
  font-size: 1.9rem;
  margin: 0;
}

.seo h3 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0;
}

.seo p,
.prose p {
  color: var(--muted);
}

.seo a,
.prose a,
.text-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--cream) 60%, white);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand .brand-kicker,
.footer-brand .brand-name {
  color: var(--ink);
}

.footer-brand .brand-name {
  color: rgba(28, 36, 32, 0.8);
}

.footer-brand .brand-mark {
  border-color: rgba(28, 36, 32, 0.2);
  color: var(--ink);
}

.footer-grid h4,
.footer-label {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.footer-grid ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 0.4rem;
}

.footer-grid a:hover {
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.socials a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.page-hero {
  background: var(--night);
  color: #fff;
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: var(--ink);
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
}

.form-stack {
  display: grid;
  gap: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
}

.tool-grid,
.resource-grid {
  display: grid;
  gap: 1rem;
}

.tool-card,
.resource-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.3rem;
}

.chat {
  display: grid;
  gap: 0.75rem;
}

.bubble {
  max-width: 38rem;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.bubble-bot {
  background: var(--cream);
  border: 1px solid var(--border);
}

.bubble-user {
  justify-self: start;
  background: var(--night);
  color: #fff;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--night);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  display: none;
  z-index: 60;
}

.toast.is-on {
  display: block;
}

@media (min-width: 640px) {
  .search-row,
  .glass-row {
    flex-direction: row;
  }

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

  .card-grid,
  .tool-grid,
  .resource-grid,
  .check-list {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 768px) {
  .nav {
    gap: 1.75rem;
  }

  .hero-inner {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .newsletter-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .footer-grid {
    align-items: start;
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hub-grid {
    grid-template-columns: repeat(6, 1fr);
  }

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

.intro-steps {
  margin: 1rem 0 0;
  padding-right: 1.2rem;
  color: var(--muted);
}

.intro-steps li + li {
  margin-top: 0.6rem;
}

.cal-layout {
  display: grid;
  gap: 1.5rem;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cal-week-wrap {
  overflow-x: auto;
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(8.5rem, 1fr));
  gap: 0.45rem;
  min-width: 56rem;
}

.cal-week-day {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.55rem;
  text-align: right;
  cursor: pointer;
}

.cal-week-day.is-selected {
  border-color: var(--primary);
  background: var(--cream);
}

.cal-week-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.cal-week-num {
  font-size: 1.05rem;
  font-weight: 700;
}

.cal-week-events {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  flex: 1;
}

.cal-week-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.cal-week-event {
  display: grid;
  gap: 0.1rem;
  text-align: right;
  border: 0;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--border);
}

.cal-week-event-time {
  font-size: 11px;
  color: var(--muted);
}

.cal-week-event.type-play { box-shadow: inset 0 0 0 1px #0d9488; }
.cal-week-event.type-trip { box-shadow: inset 0 0 0 1px #075985; }
.cal-week-event.type-workshop { box-shadow: inset 0 0 0 1px #0284c7; }
.cal-week-event.type-support { box-shadow: inset 0 0 0 1px #64748b; }

.cal-cell {
  min-height: 4.2rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.35rem;
  text-align: right;
  cursor: pointer;
}

.cal-cell.is-empty {
  border: 0;
  background: transparent;
  cursor: default;
}

.cal-cell.is-selected {
  border-color: var(--primary);
  background: var(--cream);
}

.cal-dots {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.cal-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
}

.cal-dot.type-play { background: #0d9488; }
.cal-dot.type-trip { background: #075985; }
.cal-dot.type-workshop { background: #0284c7; }
.cal-dot.type-support { background: #64748b; }

.cal-day-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.cal-event {
  display: grid;
  gap: 0.2rem;
  text-align: right;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.cal-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

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

.cal-layout .form-stack {
  max-width: 36rem;
}

.btn-ghost {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.field-hint,
.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: #b91c1c;
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

.workspace-intro,
.workspace-grid {
  display: grid;
  gap: 1.5rem;
}

.workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.workspace-tabs,
.workspace-user,
.add-chip-row,
.profile-contacts,
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.workspace-user {
  justify-content: flex-end;
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.add-chip-row input {
  flex: 1;
  min-width: 10rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
}

.cert-note,
.cert-banner {
  margin-top: 1rem;
  border-radius: 0.85rem;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  padding: 1rem 1.1rem;
}

.cert-note p,
.cert-banner p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.cert-banner {
  margin: 0 0 1.25rem;
}

.profile-preview-wrap {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.listing-card.has-photo {
  padding-top: 0;
}

.listing-photo {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  display: block;
  margin: 0 -1.25rem 1rem;
  max-width: calc(100% + 2.5rem);
  background: var(--cream);
}

.profile-head {
  display: grid;
  gap: 1.25rem;
}

.profile-photo-wrap {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
}

.profile-photo,
.profile-photo-fallback {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--cream);
}

.profile-photo-fallback {
  display: grid;
  place-items: center;
  color: var(--dusk);
}

.profile-stamp {
  position: absolute;
  left: -0.4rem;
  bottom: -0.4rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  border: 3px solid #fff;
}

.badge-cert {
  background: #ccfbf1;
  color: #0f766e;
}

.profile-contacts {
  margin-top: 1rem;
}

.profile-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.profile-contact:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-section {
  margin-top: 1.5rem;
}

.profile-accord {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.profile-accord details {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.9rem 1rem;
}

.profile-accord summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.profile-accord .accord-body {
  margin-top: 0.7rem;
  color: var(--muted);
}

.profile-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.provider-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .form-row,
  .workspace-intro,
  .workspace-grid,
  .profile-head {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-grid {
    align-items: start;
  }
}
