:root {








  --safe: env(safe-area-inset-bottom, 0px);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.attribution-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 10px;
  color: var(--muted);
  text-decoration: underline;
  max-width: 220px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
.small,
.hero-note,
.location-note,
.event-time {
  color: var(--muted);
  font-size: 12px;
}
.small a {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0 0 14px;
}
h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 17px;
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 750;
  margin-bottom: 9px;
}
.skip-link {
  position: absolute;
  left: 15px;
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
  z-index: 99;
}
.skip-link:focus {
  top: 12px;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 44px;
}
.home-brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}
.header-area {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 13px;
  min-height: 44px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-shell {
  max-width: 1180px;
  margin: auto;
  padding: 0 28px;
}
.hero {
  position: relative;
  padding: 60px 0 42px;
  overflow: hidden;
  isolation: isolate;
}
.hero:after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -50px;
  top: -80px;
  z-index: -1;
  background: radial-gradient(ellipse, var(--ct-accent-soft), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 780;
  max-width: 700px;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 span {
  color: var(--ct-muted);
}
.hero > p:not(.eyebrow):not(.hero-note) {
  color: var(--muted);
  max-width: 520px;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 27px;
  margin-bottom: 20px;
}
.button,
.icon-button,
.zone-tools button,
.zone-chips button,
.zone-chips a,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.primary {
  background: #557ff5;
  border-color: #557ff5;
  color: var(--ct-text);
}
.primary:hover {
  background: #456fe8;
}
.secondary {
  background: var(--ct-raised);
}
.button span {
  margin-left: 15px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--teal);
  margin-right: 7px;
  box-shadow: 0 0 0 4px var(--ct-accent-soft);
}
.hero-note {
  font-size: 11px;
}
.zone-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  margin-bottom: 30px;
}
.zone-bar h2 {
  font-size: 20px;
  margin: 0;
}
.zone-bar .eyebrow {
  font-size: 9px;
}
.zone-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.zone-chips button {
  font-size: 12px;
  border-radius: 24px;
  padding: 8px 13px;
}
.zone-chips [aria-pressed="true"] {
  background: var(--ct-raised);
  border-color: var(--ct-accent-soft);
  color: var(--ct-text);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > a {
  font-size: 12px;
  color: var(--blue);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.service-card {
  background: linear-gradient(135deg, var(--ct-raised), var(--ct-raised));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s;
}
.service-card:hover {
  border-color: var(--blue);
}
.service-symbol {
  width: 32px;
  height: 32px;
  font-size: 23px;
  color: var(--blue);
  line-height: 1.3;
}
.service-card strong {
  font-size: 16px;
}
.service-card span:last-child {
  color: var(--muted);
  font-size: 11px;
}
.service-state {
  font-size: 10px;
  color: var(--teal);
}
.service-card.partial .service-state {
  color: var(--ct-warning);
}
.service-card.unknown .service-state {
  color: var(--ct-danger);
}
#selectionPrecision {
  margin-top: 12px;
}
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 28px;
  margin: 38px 0;
}
.feed-section {
  min-width: 0;
}
.feed-section > .section-heading {
  margin-bottom: 7px;
}
.home-event {
  padding: 19px 20px;
  margin: 13px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  overflow-wrap: anywhere;
}
.event-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.event-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 30px;
  background: var(--ct-raised);
  color: var(--ct-accent);
}
.event-tag.active {
  background: var(--ct-success-bg);
  color: var(--ct-success);
}
.event-tag.unverified {
  background: var(--ct-warning-bg);
  color: var(--ct-warning);
}
.source-kind {
  font-size: 10px;
  color: var(--muted);
}
.home-event h3 {
  font-size: 17px;
}
.home-event > p {
  font-size: 13px;
  color: var(--ct-muted);
  margin-bottom: 12px;
}
.home-event .location-note,
.home-event .event-time,
.home-event .small {
  font-size: 11px;
  color: var(--muted);
}
.event-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.event-links a {
  font-size: 12px;
  color: var(--blue);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 13px;
  padding: 23px;
  font-size: 13px;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
}
.group-title {
  margin: 26px 0 12px;
  font-size: 17px;
}
.feed-details,
.sources-panel {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 8px;
}
.feed-details > p {
  font-size: 13px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
}
.sources-panel h3 {
  margin-top: 20px;
}
.sources-panel p {
  font-size: 12px;
}
.sources-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}
.since-visit {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 13px;
  background: var(--ct-raised);
  border-radius: 9px;
  margin-bottom: 15px;
}
.home-aside {
  display: grid;
  align-content: start;
  gap: 20px;
}
.weather-panel,
.map-teaser {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
}
.weather-panel h2 {
  font-size: 18px;
}
.weather-panel .section-heading > span {
  color: var(--ct-warning);
  font-size: 23px;
}
.weather-main {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 18px;
}
.weather-main strong {
  font-size: 54px;
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}
.weather-main div {
  font-size: 13px;
}
.weather-main span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  max-width: 150px;
}
.weather-values {
  display: flex;
  gap: 24px;
  margin: 0 0 14px;
}
.weather-values dt {
  font-size: 10px;
  color: var(--muted);
}
.weather-values dd {
  margin: 0;
  font-size: 12px;
}
.weather-panel > a {
  font-size: 12px;
  color: var(--blue);
  display: flex;
  align-items: center;
  min-height: 44px;
}
.map-teaser {
  position: relative;
  background: linear-gradient(135deg, var(--ct-raised), var(--ct-panel));
  overflow: hidden;
}
.map-motif {
  position: absolute;
  right: 18px;
  top: 5px;
  font-size: 90px;
  font-weight: 200;
  opacity: 0.18;
  pointer-events: none;
}
.map-teaser h2 {
  font-size: 30px;
  margin-top: 20px;
}
.map-teaser p:not(.eyebrow) {
  font-size: 12px;
  max-width: 280px;
  color: var(--ct-muted);
}
.map-teaser .button {
  font-size: 12px;
  margin-top: 8px;
}
.zones-panel {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--ct-raised);
  padding: 27px;
  margin: 38px 0;
  scroll-margin-top: 25px;
}
.zones-panel > p {
  font-size: 13px;
  color: var(--muted);
  max-width: 700px;
}
.zones-panel label {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
  font-weight: 650;
}
.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
input {
  background: var(--ct-bg);
  border: 1px solid var(--ct-line);
  color: var(--ink);
  border-radius: 9px;
  padding: 12px;
  min-width: 0;
  min-height: 46px;
  font-size: 16px;
  flex: 1;
}
.search-row input {
  min-width: 180px;
}
#zonePrivacy {
  margin-top: 9px;
}
.zone-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.zone-results button {
  text-align: left;
  background: var(--ct-raised);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 9px;
  width: 100%;
  min-height: 58px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.zone-results button span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
#saveZoneForm {
  background: var(--ct-raised);
  padding: 18px;
  border-radius: 10px;
  margin: 15px 0;
}
#zoneCandidate {
  font-size: 13px;
}
.saved-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.saved-zone strong {
  font-size: 14px;
  display: block;
}
.saved-zone span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.zone-tools {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.zone-tools button {
  padding: 8px 10px;
  font-size: 11px;
}
.zone-tools [aria-pressed="true"] {
  color: var(--teal);
  border-color: var(--ct-accent-soft);
}
.text-button {
  font-size: 11px;
  color: var(--muted);
  border-color: transparent;
  text-decoration: underline;
  padding-left: 0;
}
.community-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  margin: 40px 0;
}
.community-panel h2 {
  font-size: 28px;
}
.community-panel p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 490px;
}
.community-empty {
  padding: 25px;
  border-left: 2px solid var(--line);
  margin-top: 30px;
}
.local-pages {
  margin: 35px 0;
}
.local-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.local-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 16px;
  min-height: 48px;
  font-size: 13px;
}
.local-links a span {
  color: var(--blue);
}
.local-pages > p {
  font-size: 11px;
  margin-top: 20px;
  color: var(--muted);
}
.local-pages > p a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
}
.home-footer {
  border-top: 1px solid var(--line);
  max-width: 1124px;
  margin: 30px auto 0;
  padding: 25px 0;
  display: flex;
  align-items: start;
  gap: 30px;
}
.home-footer p {
  font-size: 11px;
  color: var(--muted);
  max-width: 640px;
}
.home-footer .home-brand {
  font-size: 17px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .home-brand small {
    font-size: 9px;
  }
  .header-area {
    max-width: 155px;
    padding: 9px 12px;
    font-size: 11px;
  }
  .home-shell {
    padding: 0 20px;
  }
  .hero {
    padding: 34px 0 25px;
  }
  .hero h1 {
    font-size: 38px;
    max-width: 420px;
    margin-bottom: 18px;
  }
  .hero > p:not(.eyebrow):not(.hero-note) {
    font-size: 14px;
  }
  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 11px 13px;
    gap: 5px;
  }
  .button span {
    margin-left: 5px;
  }
  .hero-note {
    font-size: 10px;
  }
  .zone-bar {
    align-items: start;
    flex-direction: column;
    padding: 18px 0;
    margin-bottom: 24px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading > a {
    font-size: 10px;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .service-card {
    padding: 16px 13px;
    gap: 5px;
  }
  .service-card strong {
    font-size: 15px;
  }
  .home-columns {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .home-aside {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .home-event {
    padding: 17px;
  }
  .event-heading {
    align-items: start;
  }
  .source-kind {
    text-align: right;
    max-width: 55%;
    font-size: 9px;
  }
  .home-event h3 {
    font-size: 16px;
  }
  .weather-panel,
  .map-teaser {
    padding: 18px;
  }
  .weather-main {
    gap: 14px;
  }
  .weather-main strong {
    font-size: 44px;
  }
  .weather-values {
    gap: 15px;
  }
  .map-teaser h2 {
    font-size: 25px;
  }
  .zones-panel {
    padding: 20px;
    margin-top: 30px;
  }
  .zones-panel .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .saved-zone {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .zone-tools {
    gap: 6px;
  }
  .community-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 30px 0;
    padding: 27px 0;
  }
  .community-empty {
    margin-top: 0;
    padding: 15px;
  }
  .local-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .local-links a {
    padding: 12px;
    font-size: 12px;
  }
  .home-footer {
    padding: 20px 20px calc(100px + var(--safe));
    margin: 20px 0 0;
    gap: 20px;
  }
  .home-footer p {
    font-size: 10px;
  }
  .zone-results {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 550px) {
  .home-aside {
    grid-template-columns: 1fr;
  }
  .weather-panel {
    padding: 20px;
  }
  .weather-main span {
    max-width: none;
  }
  .map-teaser {
    padding: 22px;
  }
  .map-teaser h2 {
    font-size: 28px;
  }
  .map-teaser .button {
    width: 100%;
    justify-content: space-between;
  }
  .zones-panel {
    padding: 19px 15px;
  }
  .search-row {
    gap: 8px;
  }
  .search-row .button {
    flex-grow: 1;
  }
  #zoneLabel,
  #zoneSearch {
    flex-basis: 100%;
  }
  .home-footer {
    flex-direction: column;
    gap: 8px;
  }
  .hero h1 {
    font-size: clamp(33px, 9.6vw, 42px);
  }
  .section-heading > .icon-button {
    font-size: 10px;
    padding: 8px;
  }
  .hero:after {
    right: -190px;
  }
  .home-event .event-links {
    gap: 12px;
  }
  .local-links {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media (max-width: 900px) {
  html {
    scroll-padding-bottom: calc(85px + var(--safe));
  }
  button,
  input,
  a,
  summary {
    scroll-margin-bottom: calc(85px + var(--safe));
  }
}
.ct-build-version {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .home-shell {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
}
.ct-update-notice {
  position: fixed;
  z-index: 30;
  top: 90px;
  right: 15px;
  max-width: calc(100vw - 30px);
  padding: 15px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: var(--panel);
  font-size: 12px;
}
.ct-update-notice button {
  min-width: 44px;
  min-height: 44px;
  background: #557ff5;
  color:var(--ct-text);
  border: 0;
  border-radius: 8px;
  margin-left: 10px;
  padding: 8px;
}
