/* Teachometry Community: a fact-bound participation surface built on the shared shell. */

.community-page {
  --community-shell: 1280px;
  --community-botanical: #6fa99a;
  --community-wash: #edf7f1;
  --community-warm: #fbfcf8;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
}

.community-page main .shell {
  width: min(calc(100% - (var(--teach-gutter-desktop) * 2)), var(--community-shell));
  max-width: var(--community-shell);
}

.community-page main {
  overflow-x: clip;
}

.community-page h1,
.community-page h2,
.community-page h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.community-page p {
  color: var(--muted);
}

.community-page .eyebrow {
  color: var(--accent);
  font: 600 10px/1.6 var(--teach-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.community-page .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font: 15px/1.4 var(--serif);
  text-decoration: none;
}

.community-page .text-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.community-page main .button {
  border-radius: var(--teach-button-radius);
  padding: 11px 16px;
  font-size: 13px;
}

.community-page .community-botanical {
  display: block;
  pointer-events: none;
}

.community-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.community-hero-wash {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 72% 48%, color-mix(in srgb, var(--community-wash) 90%, transparent) 0, transparent 32%),
    linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--bg) 85%, transparent) 47%, transparent 74%);
}

.community-hero-botanical {
  position: absolute;
  z-index: 0;
  right: -6px;
  bottom: -86px;
  width: 240px;
  height: 350px;
  color: var(--community-botanical);
  opacity: 0.5;
  transform: rotate(4deg);
}

.community-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  align-items: center;
  gap: clamp(32px, 5vw, 86px);
  min-height: 560px;
  padding-top: 38px;
  padding-bottom: 34px;
}

.community-hero-copy {
  max-width: 610px;
  padding-bottom: 6px;
}

.community-hero-copy > .eyebrow {
  margin: 0 0 18px;
}

.community-hero h1 {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: clamp(56px, 5.55vw, 82px);
  line-height: 0.94;
}

.community-hero h1 > span,
.community-hero h1 > em {
  display: block;
}

.community-hero h1 > em {
  color: var(--accent);
  font-style: italic;
}

.community-hero-lede {
  max-width: 590px;
  margin: 0 0 25px;
  font: 19px/1.43 var(--serif);
}

.community-hero-actions {
  margin-bottom: 24px;
}

.community-hero-actions .button-primary {
  color: #fff;
}

.community-hero-actions .button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--accent-strong);
}

.community-hero-status {
  display: flex;
  max-width: 510px;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
  color: var(--muted);
  font: 12px/1.45 var(--teach-sans);
}

.community-hero-status strong {
  color: var(--accent-strong);
  font-weight: 650;
}

.community-status-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
}

.community-ecosystem {
  position: relative;
  min-height: 458px;
  margin: 0;
  isolation: isolate;
}

.community-ecosystem::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--community-wash) 68%, transparent);
  content: "";
  opacity: 0.7;
  transform: translate(-50%, -50%);
}

.community-ecosystem-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--line-strong);
}

.community-ecosystem-lines circle,
.community-ecosystem-lines path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1;
}

.community-ecosystem-lines circle:first-child {
  stroke: color-mix(in srgb, var(--accent) 60%, var(--line));
}

.community-ecosystem-lines circle:nth-child(2) {
  stroke-dasharray: 2 12;
  opacity: 0.7;
}

.community-ecosystem-lines .community-ecosystem-leaf-line {
  color: var(--community-botanical);
  stroke-width: 1.25;
}

.community-ecosystem-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 174px;
  height: 174px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-strong) 8%, transparent);
  text-align: center;
  transform: translate(-50%, -50%);
}

.community-ecosystem-core > span {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--accent);
}

.community-ecosystem-core .site-icon {
  width: 29px;
  height: 29px;
}

.community-ecosystem-core strong {
  max-width: 125px;
  color: var(--ink);
  font: 21px/1.05 var(--serif);
  letter-spacing: -0.035em;
}

.community-ecosystem-core small {
  margin-top: 9px;
  color: var(--muted);
  font: 9px/1.3 var(--teach-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-ecosystem-nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-ecosystem-node {
  position: absolute;
  display: grid;
  width: 126px;
  justify-items: center;
  text-align: center;
}

.community-ecosystem-node:nth-child(1) {
  top: 1%;
  left: 37%;
}

.community-ecosystem-node:nth-child(2) {
  top: 29%;
  right: 0;
}

.community-ecosystem-node:nth-child(3) {
  right: 10%;
  bottom: 2%;
}

.community-ecosystem-node:nth-child(4) {
  bottom: 2%;
  left: 10%;
}

.community-ecosystem-node-number {
  color: var(--muted);
  font: 9px/1.2 var(--teach-mono);
  letter-spacing: 0.14em;
}

.community-ecosystem-node-disc {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  margin: 7px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--community-wash) 63%, transparent);
  color: var(--accent);
}

.community-ecosystem-node-disc .site-icon {
  width: 26px;
  height: 26px;
}

.community-ecosystem-node strong {
  max-width: 130px;
  color: var(--ink);
  font: 17px/1.05 var(--serif);
}

.community-ecosystem figcaption {
  position: absolute;
  right: 1%;
  top: 11%;
  display: grid;
  max-width: 150px;
  color: var(--accent);
  font: italic 17px/1.1 var(--serif);
  text-align: left;
  transform: rotate(-6deg);
}

.community-why {
  border-bottom: 1px solid var(--line);
  background: var(--community-wash);
}

.community-why-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(54px, 8vw, 140px);
  padding-top: 76px;
  padding-bottom: 78px;
}

.community-section-intro h2,
.community-section-heading h2,
.community-availability-heading h2,
.community-evidence-heading h2,
.community-principles-heading h2,
.community-closing h2 {
  margin: 11px 0 18px;
  font-size: clamp(39px, 4vw, 60px);
  line-height: 0.98;
}

.community-section-lede {
  max-width: 520px;
  margin: 0;
  font: 17px/1.5 var(--serif);
}

.community-why-detail {
  max-width: 670px;
}

.community-observation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 0 0 29px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.community-observation-list li {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 15px/1.3 var(--serif);
}

.community-observation-list .site-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.community-boundary-copy {
  max-width: 590px;
  margin: 0;
  color: var(--accent-strong) !important;
  font: italic 22px/1.23 var(--serif) !important;
  letter-spacing: -0.02em;
}

.community-tasks {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.community-tasks > .shell {
  padding-top: 68px;
  padding-bottom: 72px;
}

.community-section-heading,
.community-availability-heading,
.community-evidence-heading,
.community-principles-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 28px;
}

.community-section-heading > p,
.community-availability-heading > p,
.community-evidence-heading > p,
.community-principles-heading > p {
  max-width: 560px;
  margin: 0 0 4px;
  font: 16px/1.46 var(--serif);
}

.community-tasks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.26fr);
  gap: 18px;
}

.community-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.community-task-card {
  display: flex;
  min-height: 254px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 74%, var(--community-wash));
  padding: 18px 18px 16px;
}

.community-task-card:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.community-task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.community-task-icon {
  display: inline-flex;
  color: var(--accent);
}

.community-task-icon .site-icon {
  width: 25px;
  height: 25px;
}

.community-task-number,
.community-evidence-number,
.community-principle-number {
  color: var(--muted);
  font: 9px/1.2 var(--teach-mono);
  letter-spacing: 0.16em;
}

.community-task-card h3 {
  margin: 0 0 11px;
  font-size: 23px;
  line-height: 1.02;
}

.community-task-card p {
  margin: 0;
  font: 14px/1.42 var(--serif);
}

.community-task-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 22px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font: 9px/1.2 var(--teach-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.community-task-media {
  position: relative;
  min-height: 254px;
  overflow: hidden;
  background: var(--accent-strong);
}

.community-botanical-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

.community-task-media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-strong) 20%, transparent), color-mix(in srgb, var(--accent-strong) 70%, transparent));
  content: "";
}

.community-task-media::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  content: "";
  pointer-events: none;
}

.community-task-media-label {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  color: #fff;
  font: 600 9px/1.5 var(--teach-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.community-task-media p {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 22px;
  left: 20px;
  margin: 0;
  color: #fff;
  font: italic 22px/1.08 var(--serif);
}

.community-application {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, var(--community-wash));
}

.community-application-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(44px, 8vw, 134px);
  padding-top: 72px;
  padding-bottom: 75px;
}

.community-application-notice {
  display: flex;
  max-width: 520px;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--accent-strong) !important;
  font: 14px/1.42 var(--serif) !important;
}

.community-application-notice .site-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.community-contract-card {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 24px 25px 22px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-strong) 6%, transparent);
}

.community-contract-top {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 19px;
}

.community-contract-top > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.community-contract-top .site-icon {
  width: 22px;
  height: 22px;
}

.community-contract-top .eyebrow {
  margin: 0 0 4px;
  font-size: 8px;
}

.community-contract-top strong {
  color: var(--ink);
  font: 16px/1.2 var(--serif);
}

.community-contract-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 12px 0 15px;
  padding: 0;
  list-style: none;
}

.community-contract-card li {
  display: flex;
  min-height: 49px;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 9px;
  color: var(--muted);
  font: 13px/1.3 var(--serif);
}

.community-contract-mark {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--accent);
}

.community-contract-mark .site-icon {
  width: 15px;
  height: 15px;
}

.community-contract-footnote {
  margin: 0;
  color: var(--muted);
  font: 11px/1.4 var(--teach-sans);
}

.community-process {
  border-bottom: 1px solid var(--line);
  background: var(--community-wash);
}

.community-process-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding-top: 75px;
  padding-bottom: 78px;
}

.community-process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 34px 0 0;
  list-style: none;
}

.community-process-list::before {
  position: absolute;
  top: 63px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--accent), var(--line-strong));
  content: "";
}

.community-process-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}

.community-process-node {
  display: inline-flex;
  width: 57px;
  height: 57px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 8px var(--community-wash);
  color: var(--accent);
}

.community-process-node .site-icon {
  width: 24px;
  height: 24px;
}

.community-process-number {
  display: block;
  margin: 12px 0 5px;
  color: var(--muted);
  font: 9px/1.2 var(--teach-mono);
  letter-spacing: 0.15em;
}

.community-process-step h3 {
  min-height: 36px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.02;
}

.community-process-step p {
  margin: 0 auto;
  color: var(--muted);
  font: 11px/1.35 var(--serif);
}

.community-availability {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.community-availability > .shell {
  padding-top: 74px;
  padding-bottom: 78px;
}

.community-availability-heading {
  margin-bottom: 31px;
}

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

.community-ledger {
  min-width: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, var(--community-wash));
  padding: 20px 21px 8px;
}

.community-ledger-closed {
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface));
}

.community-ledger-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.86fr) minmax(0, 1.14fr);
  gap: 20px;
  align-items: start;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.community-ledger-heading .eyebrow {
  margin: 0;
  font-size: 8px;
}

.community-ledger-heading h3 {
  margin: 7px 0 0;
  font-size: 26px;
  line-height: 1;
}

.community-ledger-intro {
  color: var(--muted);
  font: 12px/1.4 var(--serif);
}

.community-ledger-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 17px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.community-ledger-row:last-child {
  border-bottom: 0;
}

.community-ledger-link:hover {
  color: var(--accent-strong);
}

.community-ledger-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.community-ledger-icon .site-icon {
  width: 16px;
  height: 16px;
}

.community-ledger-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.community-ledger-copy strong {
  color: var(--ink);
  font: 14px/1.2 var(--serif);
}

.community-ledger-copy small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font: 10px/1.3 var(--teach-sans);
}

.community-ledger-row > .site-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.community-ledger-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--accent-strong);
  font: 600 8px/1.2 var(--teach-mono);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.community-status-available {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--accent-soft);
}

.community-status-pending,
.community-status-planned {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface-muted) 68%, transparent);
  color: var(--muted);
}

.community-evidence {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--community-wash) 56%, var(--surface));
}

.community-evidence > .shell {
  padding-top: 72px;
  padding-bottom: 76px;
}

.community-evidence-heading {
  align-items: start;
  margin-bottom: 30px;
}

.community-evidence-heading h2 {
  max-width: 560px;
}

.community-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.community-evidence-card {
  min-height: 222px;
  border-left: 1px solid var(--line);
  padding: 20px 22px 10px;
}

.community-evidence-card:first-child {
  border-left: 0;
  padding-left: 0;
}

.community-evidence-number {
  display: block;
  margin-bottom: 21px;
}

.community-evidence-icon {
  display: inline-flex;
  color: var(--accent);
}

.community-evidence-icon .site-icon {
  width: 22px;
  height: 22px;
}

.community-evidence-card h3 {
  margin: 14px 0 10px;
  font-size: 22px;
  line-height: 1.05;
}

.community-evidence-card p {
  max-width: 235px;
  margin: 0;
  font: 13px/1.45 var(--serif);
}

.community-principles {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.community-principles-shell {
  position: relative;
  padding-top: 66px;
  padding-bottom: 78px;
}

.community-principles-heading {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  margin-bottom: 28px;
}

.community-principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-right: 118px;
}

.community-principle {
  min-height: 177px;
  border-left: 1px solid var(--line);
  padding: 0 22px;
}

.community-principle:first-child {
  border-left: 0;
  padding-left: 0;
}

.community-principle-icon {
  display: inline-flex;
  color: var(--accent);
}

.community-principle-icon .site-icon {
  width: 22px;
  height: 22px;
}

.community-principle-number {
  display: block;
  margin-top: 14px;
}

.community-principle h3 {
  margin: 9px 0 10px;
  font-size: 22px;
  line-height: 1.05;
}

.community-principle p {
  max-width: 220px;
  margin: 0;
  font: 13px/1.42 var(--serif);
}

.community-principles-botanical {
  position: absolute;
  right: -8px;
  bottom: 30px;
  width: 148px;
  height: 215px;
  color: var(--community-botanical);
  opacity: 0.72;
  transform: rotate(-6deg);
}

.community-closing {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--community-wash);
}

.community-closing-image {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-strong) 24%, transparent), color-mix(in srgb, var(--community-wash) 88%, transparent)),
    url("./home-blog-01.webp") 62% center / cover no-repeat;
  opacity: 0.82;
  mask-image: linear-gradient(90deg, #000 0, #000 64%, transparent 100%);
}

.community-closing-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 58px;
  min-height: 274px;
  padding-top: 45px;
  padding-bottom: 45px;
}

.community-closing h2 {
  max-width: 425px;
  margin-bottom: 0;
}

.community-closing-grid > div:nth-child(2) {
  max-width: 630px;
  padding-right: 96px;
}

.community-closing-grid > div:nth-child(2) > p {
  margin: 0 0 19px;
  font: 16px/1.45 var(--serif);
}

.community-closing-grid .button-row {
  gap: 12px 16px;
}

.community-closing-grid .button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  color: var(--accent-strong);
}

.community-closing-botanical {
  position: absolute;
  right: -4px;
  bottom: -62px;
  width: 180px;
  height: 250px;
  color: var(--community-botanical);
  opacity: 0.82;
}

.community-page[data-theme="dark"] {
  --community-wash: #173c35;
  --community-warm: #132d29;
  --community-botanical: #83c9b2;
}

.community-page[data-theme="dark"] .community-hero-wash {
  background:
    radial-gradient(circle at 70% 45%, color-mix(in srgb, var(--community-wash) 68%, transparent) 0, transparent 34%),
    linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--bg) 80%, transparent) 47%, transparent 74%);
}

.community-page[data-theme="dark"] .community-task-media {
  background: #0b342f;
}

.community-page[data-theme="dark"] .community-task-media::before {
  background: linear-gradient(180deg, color-mix(in srgb, #0b342f 38%, transparent), color-mix(in srgb, #0b342f 82%, transparent));
}

.community-page[data-theme="dark"] .community-botanical-photo {
  opacity: 0.64;
  filter: saturate(0.78) brightness(0.76);
}

.community-page[data-theme="dark"] .community-closing-image {
  background:
    linear-gradient(90deg, color-mix(in srgb, #0b342f 46%, transparent), color-mix(in srgb, var(--community-wash) 94%, transparent)),
    url("./home-blog-01.webp") 62% center / cover no-repeat;
  opacity: 0.62;
}

@media (max-width: 1200px) and (min-width: 901px) {
  .community-page main .shell {
    width: calc(100% - (var(--teach-gutter-tablet) * 2));
  }

  .community-hero-grid {
    grid-template-columns: minmax(0, 0.83fr) minmax(410px, 1.17fr);
    gap: 28px;
  }

  .community-hero h1 {
    font-size: clamp(52px, 5.8vw, 72px);
  }

  .community-hero-lede {
    font-size: 17px;
  }

  .community-ecosystem {
    min-height: 410px;
  }

  .community-task-card {
    padding-inline: 14px;
  }

  .community-task-card h3 {
    font-size: 20px;
  }

  .community-principle {
    padding-inline: 15px;
  }
}

@media (max-width: 900px) {
  .community-page main .shell {
    width: calc(100% - (var(--teach-gutter-mobile) * 2));
    max-width: none;
  }

  .community-hero {
    min-height: 0;
  }

  .community-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .community-hero-copy {
    max-width: 690px;
  }

  .community-hero h1 {
    max-width: 690px;
    font-size: clamp(52px, 9vw, 74px);
  }

  .community-hero-lede {
    max-width: 650px;
    font-size: 19px;
  }

  .community-ecosystem {
    width: min(100%, 640px);
    min-height: 405px;
    justify-self: center;
  }

  .community-why-grid,
  .community-application-grid,
  .community-process-grid,
  .community-closing-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .community-why-grid,
  .community-application-grid,
  .community-process-grid {
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .community-section-heading,
  .community-availability-heading,
  .community-evidence-heading,
  .community-principles-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .community-section-heading h2,
  .community-availability-heading h2,
  .community-evidence-heading h2,
  .community-principles-heading h2 {
    margin-bottom: 13px;
  }

  .community-tasks-layout {
    grid-template-columns: 1fr;
  }

  .community-task-media {
    min-height: 230px;
  }

  .community-process-list {
    max-width: 760px;
  }

  .community-principles-grid {
    padding-right: 0;
  }

  .community-principle:nth-child(4) {
    padding-right: 120px;
  }

  .community-closing-grid {
    min-height: 0;
    padding-top: 55px;
    padding-bottom: 58px;
  }

  .community-closing-grid > div:nth-child(2) {
    padding-right: 0;
  }

  .community-closing-image {
    width: 56%;
  }
}

@media (max-width: 700px) {
  .community-hero-grid {
    gap: 25px;
    padding-top: 34px;
  }

  .community-hero h1 {
    font-size: clamp(43px, 12.2vw, 62px);
    line-height: 0.97;
  }

  .community-hero-lede {
    font-size: 17px;
  }

  .community-hero-actions {
    align-items: stretch;
  }

  .community-hero-actions .button {
    min-height: 44px;
  }

  .community-hero-botanical {
    right: -45px;
    bottom: 170px;
    width: 170px;
    opacity: 0.25;
  }

  .community-ecosystem {
    min-height: 352px;
    margin-top: 5px;
  }

  .community-ecosystem::before {
    width: 270px;
    height: 270px;
  }

  .community-ecosystem-core {
    width: 132px;
    height: 132px;
  }

  .community-ecosystem-core .site-icon {
    width: 23px;
    height: 23px;
  }

  .community-ecosystem-core strong {
    max-width: 97px;
    font-size: 16px;
  }

  .community-ecosystem-core small {
    max-width: 92px;
    margin-top: 5px;
    font-size: 7px;
  }

  .community-ecosystem-node {
    width: 92px;
  }

  .community-ecosystem-node-disc {
    width: 45px;
    height: 45px;
    margin: 5px 0 6px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--community-wash) 63%, transparent);
  }

  .community-ecosystem-node-disc .site-icon {
    width: 20px;
    height: 20px;
  }

  .community-ecosystem-node strong {
    max-width: 92px;
    font-size: 13px;
  }

  .community-ecosystem-node-number {
    font-size: 7px;
  }

  .community-ecosystem-node:nth-child(1) {
    left: 34%;
  }

  .community-ecosystem-node:nth-child(2) {
    right: -2%;
  }

  .community-ecosystem-node:nth-child(3) {
    right: 5%;
  }

  .community-ecosystem-node:nth-child(4) {
    left: 5%;
  }

  .community-ecosystem figcaption {
    right: 1%;
    top: auto;
    bottom: 18%;
    font-size: 12px;
  }

  .community-why-grid,
  .community-application-grid,
  .community-process-grid {
    padding-top: 50px;
    padding-bottom: 54px;
  }

  .community-section-intro h2,
  .community-section-heading h2,
  .community-availability-heading h2,
  .community-evidence-heading h2,
  .community-principles-heading h2,
  .community-closing h2 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .community-section-lede,
  .community-section-heading > p,
  .community-availability-heading > p,
  .community-evidence-heading > p,
  .community-principles-heading > p {
    font-size: 15px;
  }

  .community-observation-list {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .community-boundary-copy {
    font-size: 20px !important;
  }

  .community-tasks > .shell {
    padding-top: 50px;
    padding-bottom: 54px;
  }

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

  .community-task-card {
    min-height: 238px;
    padding: 15px;
  }

  .community-task-card-top {
    margin-bottom: 21px;
  }

  .community-task-card h3 {
    font-size: 20px;
  }

  .community-task-card p {
    font-size: 13px;
  }

  .community-contract-card {
    padding: 19px 17px 18px;
  }

  .community-contract-card ul {
    grid-template-columns: 1fr;
  }

  .community-process-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 0 52px;
  }

  .community-process-list::before {
    top: 22px;
    right: auto;
    bottom: 22px;
    left: 28px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--line-strong), var(--accent), var(--line-strong));
  }

  .community-process-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    min-height: 90px;
    padding: 7px 0;
    text-align: left;
  }

  .community-process-node {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 6px var(--community-wash);
  }

  .community-process-node .site-icon {
    width: 19px;
    height: 19px;
  }

  .community-process-number {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 4px;
    font-size: 8px;
  }

  .community-process-step h3 {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    margin: 0 0 4px;
    font-size: 19px;
  }

  .community-process-step p {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    font-size: 12px;
  }

  .community-ledger-grid {
    grid-template-columns: 1fr;
  }

  .community-ledger {
    padding: 17px 15px 5px;
  }

  .community-ledger-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding-bottom: 15px;
  }

  .community-ledger-heading h3 {
    font-size: 24px;
  }

  .community-ledger-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 64px;
  }

  .community-ledger-row > .site-icon {
    display: none;
  }

  .community-ledger-status {
    max-width: 92px;
    white-space: normal;
  }

  .community-evidence > .shell {
    padding-top: 50px;
    padding-bottom: 54px;
  }

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

  .community-evidence-card,
  .community-evidence-card:first-child {
    min-height: 205px;
    border-left: 1px solid var(--line);
    padding: 17px 15px 12px;
  }

  .community-evidence-card:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .community-evidence-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .community-evidence-card h3 {
    font-size: 20px;
  }

  .community-evidence-card p {
    font-size: 12px;
  }

  .community-principles-shell {
    padding-top: 50px;
    padding-bottom: 56px;
  }

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

  .community-principle,
  .community-principle:first-child {
    min-height: 185px;
    border-left: 1px solid var(--line);
    padding: 0 15px 20px;
  }

  .community-principle:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .community-principle:nth-child(4) {
    padding-right: 15px;
  }

  .community-principles-botanical {
    right: -38px;
    bottom: 4px;
    width: 108px;
    height: 165px;
    opacity: 0.36;
  }

  .community-closing-grid {
    gap: 25px;
    padding-top: 48px;
    padding-bottom: 49px;
  }

  .community-closing-grid > div:nth-child(2) > p {
    font-size: 15px;
  }

  .community-closing-image {
    width: 100%;
    height: 100%;
    opacity: 0.28;
    mask-image: linear-gradient(90deg, #000, transparent 90%);
  }

  .community-closing-botanical {
    right: -46px;
    bottom: -38px;
    width: 134px;
    height: 200px;
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-page *,
  .community-page *::before,
  .community-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
