/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 84px; padding-block: 12px; }
.brand { display: flex; align-items: center; }
.brand img { width: auto; height: 68px; margin-block: -8px; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 1rem; }
.header-nav > a:not(.button) { color: var(--muted); text-decoration: none; }
.header-nav > a:not(.button):hover { color: var(--ink); }
@media (max-width: 600px) {
  .brand img { height: 52px; }
  .header-nav { gap: 8px 20px; }
}

.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding: 28px 0; font-size: 1rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Buttons: every call to action is a real button. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--accent);
  color: #fff;
  font: 700 1rem/1.2 var(--font);
  padding: 14px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button:disabled { background: var(--disabled); border-color: var(--disabled); cursor: not-allowed; }
.button-small { min-height: 44px; padding: 10px 20px; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.button-gold:hover { background: var(--gold-dark); color: var(--ink); border-color: var(--gold-dark); }
.button-on-dark { background: transparent; color: var(--bg); border-color: var(--on-dark-muted); }
.button-on-dark:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--tint); }
.lead { font-size: 1.2rem; color: var(--muted); }

.hero { padding: 96px 0 0; background: var(--ink); color: #fff; }
.hero h1 { max-width: 20ch; color: #fff; }
.hero-subhead { font-size: 1.25rem; color: var(--on-dark-muted); max-width: 46ch; margin-bottom: 32px; }
.hero .button-row { padding-bottom: 56px; }
.hero-plain { padding-bottom: 88px; }

/* Care-setting tabs: both panels show without JavaScript. */
.setting-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.setting-tab {
  font: 500 1.0625rem/1.2 var(--font);
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: #352F2B;
  color: var(--on-dark-muted);
  cursor: pointer;
}
.setting-tab[aria-selected="true"] { background: var(--tint); color: var(--ink); font-weight: 700; }
.setting-panel { display: grid; gap: 24px 48px; }
.setting-panel + .setting-panel { margin-top: 56px; }
.js-tabs .setting-panel + .setting-panel { margin-top: 0; }
.setting-panel[hidden] { display: none; }
.setting-intro h2 { margin-bottom: .4em; }
.setting-intro p { color: var(--muted); }
.setting-services { display: grid; gap: 20px; }
.setting-services > div { padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.setting-services > div:last-child { padding-bottom: 0; border-bottom: 0; }
.setting-services h3 { margin-bottom: .3em; }
.setting-services p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .setting-panel { grid-template-columns: 5fr 6fr; } }

.offers { display: grid; gap: 24px; margin-top: 32px; }
.offer { background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; padding: 26px 28px; }
.offer h3 { margin-bottom: .4em; }
.offer p { margin: 0; }
@media (min-width: 860px) { .offers { grid-template-columns: 1fr 1fr; } }

.steps { display: grid; gap: 24px; margin-top: 32px; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step h3 { margin-bottom: .2em; }
.step-days { color: var(--muted); margin-bottom: .6em; }
.step p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.founder { display: grid; gap: 28px; align-items: center; }
.founder img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; }
@media (min-width: 760px) { .founder { grid-template-columns: 220px 1fr; gap: 48px; } }
.founder-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Readiness-check sign-up band */
.signup { background: var(--clay-tint); border-radius: 12px; padding: 40px 32px; display: grid; gap: 24px 48px; align-items: center; }
.signup h2 { margin-bottom: .3em; }
.signup p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .signup { grid-template-columns: 1fr 1fr; padding: 44px 48px; } }
.signup-form { display: grid; gap: 10px; }
.signup-form label { font-weight: 500; font-size: 1rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-row input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 14px; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid var(--input-line); border-radius: 8px; }
.signup-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 400; color: var(--muted); }
.signup-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.signup-done { display: grid; gap: 14px; justify-items: start; }

.form-status { margin: 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

/* Forms on the citation check */
.contact-form { max-width: 560px; display: grid; gap: 18px; margin-top: 24px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--input-line);
  border-radius: 8px;
  padding: 12px 14px;
}

/* Interior pages: events, legal, 404 */
.interior-main { padding: 56px 0 72px; }
.articles-hub-header, .legal-article, .not-found { max-width: 70ch; }
.article-card-list { display: grid; gap: 40px; margin: 32px 0; max-width: 70ch; }
.article-card { display: block; color: var(--ink); text-decoration: none; }
.article-card:hover { color: var(--accent); }
.ac-media { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .15s; }
.article-card:hover .ac-media { box-shadow: 0 8px 20px rgba(36, 30, 26, .14); }
.ac-media img { display: block; width: 100%; height: auto; }
.ac-sum { display: block; margin-top: 14px; color: var(--muted); font-size: 1rem; }
.ac-head { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.event-tag { position: absolute; top: 12px; right: 12px; padding: 3px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .85rem; font-weight: 700; }
.event-tag-attended { background: var(--ink); color: #fff; }
@media (max-width: 600px) { .event-tag { top: 6px; right: 6px; padding: 1px 8px; font-size: .75rem; } }
.ac-summary { margin-top: 8px; }
.articles-cta { margin-top: 48px; max-width: 70ch; }
.legal-sections h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal-updated { color: var(--muted); }
.post-meta, .as-title { color: var(--muted); }
.article-body-v2, .article-header-v2, .article-art, .author-signoff, .article-footer-band { max-width: 70ch; margin-inline: auto; }
.article-art-frame { position: relative; margin: 24px 0 8px; }
.article-art-link { margin-bottom: 40px; }
.article-art-frame img { display: block; width: 100%; height: auto; border-radius: 10px; }
.author-signoff { display: flex; gap: 16px; align-items: center; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-footer-band { margin-top: 32px; }
.author-signoff img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-signoff p { margin: 0; }
.as-name { font-weight: 700; color: var(--ink); }
