:root {
  --ink: #080808;
  --muted: #5f5f5f;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --surface: #eeeeee;
  --line: #dedede;
  --accent: #86b66b;
  --accent-dark: #2d6324;
  --radius: 12px;
  --shadow: 0 18px 45px rgb(0 0 0 / 8%);
  --max-width: 1180px;
  --safe-top: 0px;
  color-scheme: light;
}

@supports (top: constant(safe-area-inset-top)) {
  :root {
    --safe-top: constant(safe-area-inset-top);
  }
}

@supports (top: env(safe-area-inset-top)) {
  :root {
    --safe-top: env(safe-area-inset-top);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  min-height: 100%;
}

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

.container {
  width: min(var(--max-width), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  border-radius: 0 0 .5rem .5rem;
  z-index: 10000;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  padding-top: calc(clamp(34px, 5vw, 66px) + 58px + var(--safe-top));
  overflow: hidden;
}

.hero__content {
  display: grid;
  gap: 32px;
}

.page-tabs-shell {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 150px;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--safe-top) + 12px) 12px 12px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 100%) 0,
    rgb(255 255 255 / 0%) 100%
  );
}

.page-tabs {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  justify-self: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(244 244 244 / 88%);
  padding: 4px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 22%);
  pointer-events: auto;
}

.page-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: .5rem .85rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.page-tabs a[aria-current="page"] {
  background: white;
  color: var(--ink);
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
.document-card h3 {
  font-family: "Titillium Web", Inter, ui-sans-serif, system-ui, sans-serif;
}

h1 {
  max-width: 720px;
  margin-block-end: 0;
  font-size: clamp(2.4rem, 5vw, 4.65rem);
  line-height: .95;
  letter-spacing: -.06em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.15;
}

.hero__intro {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.35;
}

.hero__intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 8vw, 96px);
  align-items: start;
}

.hero__image-wrap {
  width: min(1510px, calc(100% - 48px));
  margin: 0 auto;
}

.hero__image {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.image-placeholder {
  display: grid;
  min-height: clamp(280px, 40vw, 560px);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 72%) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(135deg, transparent 75%, rgb(255 255 255 / 72%) 75%) 0 0 / 28px 28px,
    var(--soft);
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
}

.image-placeholder--small {
  min-height: 260px;
}

.hero__image-wrap figcaption {
  margin-top: 8px;
  padding-right: 8px;
  text-align: right;
  color: #333;
  font-size: .8rem;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, .98fr);
  gap: clamp(52px, 9vw, 112px);
  padding-block: clamp(44px, 5.4vw, 70px) clamp(35px, 4.2vw, 54px);
}

.about-copy p,
.next-section p {
  max-width: 520px;
}

.aerial-card {
  align-self: start;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft);
}

.aerial-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1068 / 554;
  object-fit: contain;
}

.category-card__count {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: .35rem .7rem;
  background: white;
  color: #222;
  font-size: .82rem;
  font-weight: 800;
}

.library {
  padding-block: clamp(32px, 4.2vw, 58px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.section-heading__note {
  max-width: 310px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: .94rem;
}

code {
  border-radius: .25rem;
  background: var(--soft);
  padding: .08rem .28rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .92em;
}

.document-list {
  display: grid;
  gap: 26px;
}

.document-group {
  scroll-margin-top: 24px;
  border-radius: 18px;
  background: var(--soft);
  padding: clamp(22px, 3.3vw, 34px);
}

.document-group__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.document-group__header p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.document-card {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto 1fr;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px;
}

.document-thumbnail {
  display: block;
  width: 100%;
  height: 158px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: contain;
  object-position: center;
}

.document-card__title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.document-card h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
  letter-spacing: -.02em;
}

.document-card__size {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f0f0f0;
  padding: .28rem .62rem;
  color: #333;
  font-size: .78rem;
  font-weight: 800;
}

.document-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .96rem;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.document-actions a,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: .65rem 1rem;
  color: white;
  background: var(--ink);
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
}

.document-actions a.secondary {
  background: white;
  color: var(--ink);
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.document-actions a:hover,
.button:hover,
.document-actions a:focus-visible,
.button:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
  outline: none;
}

.button:disabled {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

.button:disabled:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.notice {
  border-radius: var(--radius);
  background: #fff8dc;
  padding: 1rem;
}

.next-section {
  padding-block: clamp(24px, 4.8vw, 58px);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 8vw, 96px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.important {
  align-self: start;
  border-left: 6px solid #2f6fed;
  border-radius: 0 14px 14px 0;
  background: var(--soft);
  padding: 24px;
}

.important p {
  margin-bottom: 0;
}

.important .text-link {
  display: inline-block;
  margin-top: 16px;
}

.feedback-panel {
  align-self: start;
}

.feedback-panel h3 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.feedback-panel p {
  max-width: 520px;
}

.text-link {
  color: var(--ink);
  font-weight: 850;
  text-underline-offset: .2em;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .94rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

.footer a {
  color: inherit;
}

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

.tool-hero {
  display: grid;
  gap: 28px;
  padding-block: calc(clamp(34px, 5vw, 66px) + 58px + var(--safe-top)) clamp(24px, 4vw, 48px);
}

.tool-hero h1 {
  max-width: 760px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: clamp(14px, 2.5vw, 32px);
  align-items: start;
  padding-bottom: clamp(42px, 6vw, 82px);
}

.feedback-form,
.draft-panel {
  border-radius: 18px;
  background: var(--soft);
}

.feedback-form {
  display: grid;
  gap: 0;
}

.form-section {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section h2,
.draft-panel h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .95rem;
}

.choice-card {
  display: flex;
  min-height: 92px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: white;
  font-weight: 400;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--ink);
  background: #edf6e8;
}

.choice-card--full {
  min-height: 0;
  align-items: flex-start;
  padding: 12px;
}

.choice-card--full:has(input:checked) {
  border-color: var(--line);
  background: white;
}

.choice-card + .extra-notes {
  margin-top: 28px;
}

.section-title-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.feeling-face {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: white;
  font-size: 1.7rem;
}

.feeling-control {
  display: grid;
  gap: 16px;
}

.feeling-control span {
  font-size: 1.15rem;
  font-weight: 400;
}

.feeling-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent-dark);
}

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

.criteria-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: white;
  font-weight: 400;
}

.form-note {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .94rem;
}

.extra-notes {
  display: grid;
  gap: 8px;
  font-weight: 400;
}

.extra-notes textarea,
.draft-panel textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px;
}

.draft-panel {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.draft-panel textarea {
  min-height: 420px;
  background: white;
}

.dashboard-hero {
  padding-bottom: clamp(24px, 4vw, 46px);
}

.dashboard-hero__title-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
}

.dashboard-hero__title-row h1 {
  margin-bottom: 0;
}

.mobile-share-button {
  display: none;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.mobile-share-button .material-symbols-outlined {
  font-size: 1.15em;
}

.dashboard-hero__copy {
  display: flex;
  max-width: 860px;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: end;
  justify-content: space-between;
}

.dashboard-hero__copy p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.35;
}

.dashboard {
  display: grid;
  gap: clamp(22px, 3.2vw, 34px);
  padding-bottom: clamp(44px, 6vw, 80px);
}

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

.metric-card,
.theme-card {
  border-radius: 14px;
  background: var(--soft);
  padding: 18px;
}

.metric-card {
  display: grid;
  gap: 6px;
  align-content: space-between;
}

.metric-card__label,
.theme-card small,
.dashboard-note,
.panel-heading p {
  color: var(--muted);
}

.metric-card strong {
  font-family: "Titillium Web", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.metric-card strong span {
  font: inherit;
}

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

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

.dashboard-panel {
  min-width: 0;
  border-radius: 18px;
  background: var(--soft);
  padding: clamp(20px, 3vw, 30px);
}

.dashboard-panel--lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.lead-summary,
.lead-submission {
  min-width: 0;
}

.dashboard-panel--dark {
  background: var(--ink);
  color: white;
}

.dashboard-panel--white {
  background: white;
  color: var(--ink);
}

.dashboard-panel--dark h2,
.dashboard-panel--dark p {
  color: white;
}

.panel-heading {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.panel-heading h2 {
  margin-bottom: 8px;
}

.panel-heading p {
  max-width: 620px;
  margin-bottom: 0;
}

.panel-heading--wide {
  align-items: end;
}

.panel-heading--compact {
  margin-bottom: 18px;
}

.lead-submission .panel-heading--compact {
  justify-content: flex-end;
}

.panel-heading--compact > p {
  max-width: 360px;
}

.dashboard-note {
  max-width: 380px;
  margin-bottom: 0;
  font-size: .92rem;
}

.submission-layout {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.submission-layout > * {
  align-self: center;
}

.submission-note {
  max-width: 100%;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .833em;
  font-weight: 400;
}

.donut-chart {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  width: min(100%, 180px);
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
}

.donut-chart::after {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--soft);
  content: "";
}

.chart-list {
  display: grid;
  overflow: hidden;
  border-radius: 14px;
  background: white;
  padding: 6px 14px;
}

.chart-list__row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 48px 44px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.chart-list__row:last-child {
  border-bottom: 0;
}

.chart-list__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.chart-list__label {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 400;
  line-height: 1.25;
}

.chart-list__row strong,
.bar-row__meta strong {
  white-space: nowrap;
}

.chart-list__row strong {
  font-weight: 400;
  text-align: right;
}

.chart-list__row small,
.bar-row__meta small {
  color: var(--muted);
  font-weight: 800;
}

.chart-list__row small {
  font-weight: 400;
  text-align: right;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 44px;
  gap: 16px;
  align-items: baseline;
}

.bar-row__meta span {
  min-width: 0;
  font-weight: 400;
  line-height: 1.25;
}

.bar-row__meta strong {
  font-weight: 400;
  text-align: right;
}

.bar-row__meta small {
  color: var(--muted);
  font-weight: 400;
  text-align: right;
}

.bar-row__track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: white;
}

.bar-row__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2ca6d9;
  transition: width 1.7s cubic-bezier(.22, 1, .36, 1);
}

.dashboard-panel--area-experiment {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.area-chart {
  min-height: 420px;
  height: 100%;
}

.area-chart__surface {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 14px;
}

.area-tile {
  position: absolute;
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto;
  align-content: center;
  justify-items: center;
  gap: 8px;
  --tile-icon-size: 2rem;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 2px solid var(--soft);
  background: #a6def0;
  padding: var(--tile-padding-y, 14px) 14px;
  text-align: center;
  opacity: 0;
  transform: scale(.94);
  transform-origin: center;
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--tile-delay, 0ms);
}

.area-chart.is-animated .area-tile {
  opacity: 1;
  transform: scale(1);
}

.area-tile__icon {
  color: #0b6f95;
  font-size: var(--tile-icon-size, 2rem);
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.area-tile__label {
  max-width: 18ch;
  min-height: 0;
  font-weight: 400;
  line-height: 1.15;
}

.area-tile__value {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  line-height: 1;
}

.area-tile__value strong {
  color: var(--ink);
  font-size: var(--tile-value-size, clamp(1.4rem, 2.8vw, 2.35rem));
  font-weight: 800;
}

.area-tile--compact {
  --tile-gap: 6px;
  --tile-padding-y: 10px;
  --tile-value-size: 1.25rem;
  gap: var(--tile-gap);
}

.area-tile--compact .area-tile__icon {
  font-size: var(--tile-icon-size);
}

.area-tile--compact .area-tile__label {
  font-size: .9rem;
}

.area-tile--compact .area-tile__value strong {
  font-size: var(--tile-value-size);
}

@media (prefers-reduced-motion: reduce) {
  .area-tile {
    transition: none;
  }
}

.timeline-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.timeline-month-controls {
  display: contents;
}

.timeline-month-label {
  font-weight: 400;
  text-align: left;
}

.timeline-total {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border-radius: 999px;
  background: white;
  padding: .42rem .72rem;
  color: var(--muted);
  font-size: .86rem;
}

.timeline-total strong {
  color: var(--ink);
}

.timeline-button.timeline-button--mobile {
  display: none;
}

.timeline-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.timeline-button {
  display: inline-grid;
  width: 34px;
  min-height: 34px;
  appearance: none;
  -webkit-appearance: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  padding: 0;
  color: white;
  font: inherit;
  cursor: pointer;
}

.timeline-button .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.timeline-button:disabled,
.timeline-button[aria-disabled="true"] {
  background: #e1e1e1;
  color: #8f8f8f;
  cursor: default;
  opacity: 1;
  pointer-events: none;
}

.timeline-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.timeline-calendar__weekday {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
  text-align: center;
}

.timeline-calendar__blank {
  min-height: 44px;
}

.timeline-day {
  display: grid;
  min-height: 45px;
  min-width: 0;
  grid-template-rows: minmax(21px, 1fr) 24px;
  overflow: hidden;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  text-align: center;
}

.timeline-day__date,
.timeline-day__count {
  display: grid;
  place-items: center;
  font-weight: 400;
  line-height: 1.1;
}

.timeline-day__date {
  font-size: .86rem;
  padding-block: 6px;
}

.timeline-day__count {
  background: #d8d8d8;
  color: transparent;
  font-size: .86rem;
  font-weight: 700;
}

.timeline-day.has-comments {
  color: var(--ink);
}

.timeline-day.has-comments .timeline-day__count {
  background: #2ca6d9;
  color: white;
}

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

.submission-total,
.location-totals {
  display: flex;
  max-width: 520px;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.submission-total span,
.location-totals span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border-radius: 999px;
  background: white;
  padding: .42rem .72rem;
  color: var(--muted);
  font-size: .86rem;
}

.submission-total strong,
.location-totals strong {
  color: var(--ink);
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.ward-map-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  border-radius: 14px;
  background: white;
  padding: clamp(14px, 2vw, 22px);
}

.ward-map {
  position: relative;
  width: min(100%, 360px);
}

.ward-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.ward-map path {
  stroke: white;
  stroke-width: 2.4;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  transition: filter .18s ease, opacity .18s ease;
}

.ward-map path:hover,
.ward-map path:focus-visible,
.ward-map path.is-active {
  filter: brightness(.78) saturate(1.12);
  outline: none;
}

.ward-map-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 190px;
  max-width: min(260px, calc(100% - 16px));
  gap: 8px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 34px rgba(12, 20, 28, .18);
  padding: 16px 18px;
  color: var(--ink);
  pointer-events: none;
}

.ward-map-tooltip[hidden] {
  display: none;
}

.ward-map-tooltip__label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.ward-map-tooltip strong {
  font-size: 1.1rem;
  line-height: 1.15;
}

.ward-map-tooltip span:last-child {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  color: var(--muted);
  font-size: .95rem;
}

.ward-map-tooltip b {
  color: var(--ink);
}

.map-legend {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.legend-chip {
  width: 24px;
  height: 12px;
  border-radius: 999px;
}

.legend-chip--empty {
  background: #d8d8d8;
}

.legend-chip--low {
  background: #d9f0f8;
}

.legend-chip--mid {
  background: #2ca6d9;
}

.legend-chip--high {
  background: #0b6f95;
}

.location-list-group {
  display: grid;
  gap: 14px;
}

.location-chart,
.location-extra {
  display: grid;
  overflow: hidden;
  border-radius: 14px;
  background: white;
  padding: 6px 14px;
}

.location-chart {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.location-extra {
  grid-template-columns: 1fr;
}

.location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 44px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

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

.location-row__label {
  min-width: 0;
  overflow: visible;
}

.location-row__label span {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 400;
  line-height: 1.25;
}

.location-row strong {
  white-space: nowrap;
  font-weight: 400;
  text-align: right;
}

.location-row small {
  color: var(--muted);
  font-weight: 400;
  text-align: right;
}

.location-row.is-empty {
  color: var(--muted);
}

.theme-card {
  display: grid;
  gap: 10px;
  background: white;
}

.theme-card span {
  min-height: 44px;
  font-weight: 400;
  line-height: 1.2;
}

.theme-card strong {
  font-family: "Titillium Web", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2.2rem;
  line-height: .9;
}

.theme-card__value {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.theme-card__value small {
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.latest-comments-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.latest-comments-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  padding: 0 14px;
  color: white;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.latest-comments {
  display: flex;
  gap: 14px;
  margin-inline: calc(clamp(20px, 3vw, 30px) * -1 + 2px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-inline: calc(clamp(20px, 3vw, 30px) - 2px);
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: calc(clamp(20px, 3vw, 30px) - 2px);
  scrollbar-width: none;
  width: calc(100% + (clamp(20px, 3vw, 30px) * 2) - 4px);
}

.latest-comments::-webkit-scrollbar {
  display: none;
}

.latest-comments::after {
  flex: 0 0 calc(clamp(20px, 3vw, 30px) - 16px);
  content: "";
}

.comment-card {
  display: grid;
  flex: 0 0 calc((100% - 14px) / 1.5);
  min-height: 260px;
  align-content: space-between;
  scroll-snap-align: start;
  border-radius: 14px;
  background: white;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}

.comment-card:focus-visible {
  outline: 3px solid #2ca6d9;
  outline-offset: 3px;
}

.comment-card__meta,
.comment-card__link {
  color: var(--muted);
  font-size: .86rem;
}

.comment-card p {
  margin-block: 14px;
  line-height: 1.45;
}

.latest-comments .comment-card p {
  margin-block: 0;
}

.comment-card__link {
  color: var(--ink);
  font-weight: 700;
}

.comment-detail {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  padding-bottom: clamp(44px, 6vw, 80px);
}

.comments-page {
  display: grid;
  gap: clamp(18px, 2.8vw, 28px);
  padding-bottom: clamp(44px, 6vw, 80px);
}

.comments-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.comments-filter {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
}

.comments-filter[hidden] {
  display: none;
}

.comments-filter span {
  font-weight: 700;
}

.comments-filter--type {
  width: min(100%, 18rem);
}

.comments-controls select {
  width: 100%;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 18px) 20px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 12px) 20px / 6px 6px no-repeat,
    white;
  color: var(--ink);
  font: inherit;
  padding: 0 38px 0 14px;
}

.comments-results-heading,
.comments-pagination {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.comments-results-heading p,
.comments-pagination__status {
  margin: 0;
  color: var(--muted);
}

.comments-pagination .timeline-button:not(:disabled) .material-symbols-outlined {
  color: white;
}

.comments-reset {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

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

.comments-list .comment-card {
  flex: none;
  min-height: 320px;
  align-content: start;
  background: var(--soft);
  gap: 18px;
}

.comments-list .comment-card p {
  margin-block: 0;
}

.comments-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.comments-card__date {
  font-family: "Titillium Web", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.comments-card__tag {
  display: inline-flex;
  justify-self: end;
  border-radius: 999px;
  background: #2ca6d9;
  padding: .42rem .72rem;
  color: white;
  font-size: .86rem;
  line-height: 1;
  white-space: nowrap;
}

.comments-list .comment-card__link {
  align-self: end;
  margin-top: auto;
}

.comments-empty {
  grid-column: 1 / -1;
  border-radius: 14px;
  background: var(--soft);
  padding: 18px;
}

.comment-detail__panel {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border-radius: 18px;
  background: var(--soft);
  padding: clamp(20px, 3vw, 30px);
}

.comment-detail__panel h2 {
  margin-bottom: 0;
}

.comment-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.comment-detail__meta span {
  display: inline-flex;
  border-radius: 999px;
  background: #2ca6d9;
  padding: .42rem .72rem;
  color: white;
  font-size: .86rem;
}

.comment-detail__body {
  grid-column: 1 / -1;
  max-width: 860px;
  line-height: 1.55;
}

.comment-detail__body p {
  margin-bottom: 1rem;
}

.comment-detail__body p:last-child {
  margin-bottom: 0;
}

.comment-detail__panel > .text-link {
  grid-column: 1 / -1;
}

.insight-list {
  display: grid;
  gap: 12px;
}

.insight-list p {
  margin-bottom: 0;
  color: var(--ink);
}

.dashboard-cta {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.dashboard-cta p {
  margin-bottom: 0;
}

.dashboard-cta h2 {
  margin-bottom: 8px;
}

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

.methodology p {
  max-width: 860px;
}

@media (min-width: 921px) {
  .aerial-card {
    margin-top: clamp(42px, 4vw, 54px);
  }
}

@media (max-width: 920px) {
  .intro-section,
  .hero__intro-grid,
  .next-grid,
  .tool-layout,
  .dashboard-grid,
  .dashboard-grid--lead,
  .dashboard-panel--lead {
    grid-template-columns: 1fr;
  }

  .draft-panel {
    position: static;
  }

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

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

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

  .section-heading {
    display: grid;
  }

  .section-heading__note {
    max-width: 100%;
  }

  .panel-heading.latest-comments-heading {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .latest-comments-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    align-items: center;
    justify-content: stretch;
  }

  .latest-comments-button {
    justify-self: start;
  }

  .latest-comments-actions .carousel-controls {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .hero {
    padding-top: calc(96px + var(--safe-top));
  }

  .tool-hero {
    padding-top: calc(96px + var(--safe-top));
  }

  .dashboard-hero__title-row h1 {
    flex: 1 1 min-content;
  }

  .mobile-share-button {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 42px;
    margin-bottom: .35rem;
    padding: 9px 14px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .hero__image-wrap {
    width: calc(100% - 24px);
    overflow: hidden;
  }

  .hero__image {
    width: 1170px;
    max-width: none;
    min-width: 1170px;
    transform-origin: left center;
    animation: hero-image-pan 14s ease-in-out infinite alternate;
  }

  .page-tabs {
    display: grid;
    width: calc(100% - 24px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: center;
  }

  .page-tabs a {
    padding-inline: .45rem;
    font-size: .82rem;
  }

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

  .choice-grid,
  .criteria-grid,
  .submission-layout {
    grid-template-columns: 1fr;
  }

  .lead-submission .panel-heading--compact,
  .submission-total {
    justify-content: center;
  }

  .area-chart {
    height: auto;
    min-height: 0;
  }

  .area-chart__surface {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 50px;
    grid-auto-flow: row;
    gap: 2px;
    overflow: visible;
  }

  .area-tile {
    position: relative;
    display: grid;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    grid-template-rows: auto minmax(0, auto) auto;
    align-content: center;
    --tile-gap: 7px;
    --tile-icon-size: 1.55rem;
    --tile-padding-y: 12px;
    --tile-value-size: 2rem;
    gap: var(--tile-gap);
    overflow: hidden;
    padding-inline: 12px;
  }

  .area-tile--rank-1 {
    grid-column: span 5;
    grid-row: span 3;
  }

  .area-tile--rank-2 {
    grid-column: span 3;
    grid-row: span 4;
  }

  .area-tile--rank-3 {
    grid-column: span 2;
    grid-row: span 4;
  }

  .area-tile--rank-4 {
    grid-column: span 3;
    grid-row: span 4;
    --tile-value-size: 1.75rem;
  }

  .area-tile--rank-5 {
    grid-column: span 2;
    grid-row: span 4;
    --tile-gap: 4px;
    --tile-padding-y: 8px;
    --tile-value-size: 1.08rem;
  }

  .area-tile--rank-6 {
    grid-column: span 2;
    grid-row: span 3;
    --tile-gap: 4px;
    --tile-padding-y: 8px;
    --tile-value-size: 1.08rem;
  }

  .area-tile--rank-7 {
    grid-column: span 3;
    grid-row: span 3;
    --tile-gap: 4px;
    --tile-padding-y: 8px;
    --tile-value-size: 1.08rem;
  }

  .area-tile__label {
    max-width: min(18ch, 100%);
    font-size: .92rem;
  }

  .area-tile--compact {
    --tile-gap: 4px;
    --tile-padding-y: 8px;
    --tile-value-size: 1.08rem;
  }

  .area-tile__icon,
  .area-tile--compact .area-tile__icon {
    font-size: var(--tile-icon-size);
  }

  .area-tile--compact .area-tile__label,
  .area-tile--rank-5 .area-tile__label,
  .area-tile--rank-6 .area-tile__label,
  .area-tile--rank-7 .area-tile__label {
    font-size: .78rem;
    line-height: 1.04;
  }

  .area-tile--compact .area-tile__value strong {
    font-size: var(--tile-value-size);
  }

  .area-tile--rank-5 .area-tile__value strong,
  .area-tile--rank-6 .area-tile__value strong,
  .area-tile--rank-7 .area-tile__value strong {
    font-size: var(--tile-value-size);
  }

  @media (min-width: 520px) {
    .area-chart__surface {
      grid-template-columns: repeat(6, minmax(0, 1fr));
      grid-auto-rows: 44px;
    }

    .area-tile--rank-1,
    .area-tile--rank-2 {
      grid-column: span 3;
      grid-row: span 4;
    }

    .area-tile--rank-3 {
      grid-column: span 4;
      grid-row: span 3;
    }

    .area-tile--rank-4 {
      grid-column: span 2;
      grid-row: span 3;
    }

    .area-tile--rank-5,
    .area-tile--rank-6 {
      grid-column: span 3;
      grid-row: span 4;
    }

    .area-tile--rank-7 {
      grid-column: span 2;
      grid-row: span 4;
    }
  }

  .donut-chart {
    justify-self: center;
  }

  .timeline-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .timeline-month-controls {
    display: flex;
    min-width: 0;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
  }

  .timeline-month-label {
    min-width: 0;
    text-align: left;
    white-space: nowrap;
  }

  .timeline-total {
    justify-self: end;
    white-space: nowrap;
  }

  .timeline-button.timeline-button--mobile {
    display: inline-grid;
  }

  .timeline-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-stage > .timeline-button {
    display: none;
  }

  .timeline-chart {
    gap: 4px;
  }

  .location-heading {
    display: grid;
    gap: 14px;
  }

  .location-totals {
    max-width: none;
    justify-content: flex-start;
  }

  .location-chart {
    grid-template-columns: 1fr;
  }

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

  .latest-comments {
    gap: 12px;
  }

  .comment-card {
    flex-basis: 100%;
  }

  .comment-detail__panel {
    grid-template-columns: 1fr;
  }

  .comment-detail__meta {
    justify-content: flex-start;
  }

  .dashboard-cta {
    display: grid;
    justify-items: start;
  }

  .form-section,
  .form-actions,
  .draft-panel {
    padding: 16px;
  }

  .document-group__header {
    display: grid;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@keyframes hero-image-pan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(min(0px, calc((100vw - 24px) - 1170px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .hero__image {
    animation: none !important;
  }
}

@media print {
  .skip-link,
  .document-actions,
  .footer,
  .button {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  .container {
    width: 100%;
  }

  .document-card,
  .document-group {
    break-inside: avoid;
    box-shadow: none;
  }
}
