@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap");

:root {
  --tb-red: #b91c1c;
  --tb-red-dark: #8b1e1e;
  --tb-red-soft: #fee2e2;
  --tb-text: #222222;
  --tb-muted: #555555;
  --tb-border: #dddddd;
  --tb-bg: #f7f7f7;
  --tb-panel: #ffffff;
  --tb-link: #005a9c;
  --tb-link-hover: #003d6b;
  --tb-radius: 6px;
  --tb-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
  --tb-max: 1100px;
  --tb-read: 850px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  background: var(--tb-bg);
  color: var(--tb-text);
  font-size: 18px;
  line-height: 1.62;
}

img { max-width: 100%; height: auto; }

a { color: var(--tb-link); }
a:hover { color: var(--tb-link-hover); }
a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--tb-link);
  outline-offset: 3px;
}

h1,
h2,
.site-title,
.section-title {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--tb-text);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2,
.section-title {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.8vw, 26px);
  line-height: 1.2;
  font-weight: 400;
}

h3,
.card-title {
  margin: 0 0 10px;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  font-style: italic;
}

p { margin: 0 0 16px; }

.site-header {
  background: var(--tb-red);
}

.site-header img {
  width: 100%;
  max-width: 1400px;
  display: block;
  margin: 0 auto;
}

.site-shell {
  width: min(var(--tb-max), calc(100% - 80px));
  margin: 0 auto;
  padding: 40px 0;
}

.panel {
  background: var(--tb-panel);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 42px 34px;
  margin-bottom: 28px;
}

.panel--center { text-align: center; }
.panel--center .lede,
.panel--center .copy { margin-left: auto; margin-right: auto; }
.panel--accent { border-top: 5px solid var(--tb-red); }

.lede {
  margin-top: 18px;
  max-width: 900px;
  color: var(--tb-muted);
  font-size: 19px;
  line-height: 1.6;
}

.copy {
  max-width: 900px;
  color: var(--tb-muted);
  font-size: 18px;
  line-height: 1.65;
}

.button-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.button-row--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid #111827;
  border-radius: var(--tb-radius);
  background: #111827;
  color: #ffffff;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  background: #374151;
  border-color: #374151;
}

.button--primary {
  background: var(--tb-red);
  border-color: var(--tb-red);
}

.button--primary:hover {
  background: var(--tb-red-dark);
  border-color: var(--tb-red-dark);
}

.button--secondary {
  background: #ffffff;
  color: #111827;
  border-color: var(--tb-border);
}

.button--secondary:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #c7c7c7;
}

.town-grid,
.card-grid {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.town-grid--single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.town-card,
.info-card,
.issue-card {
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background: #ffffff;
  padding: 28px 24px;
}

.town-card { text-align: center; }
.town-card--active { background: var(--tb-red-soft); border-color: #f2b8b8; }

.town-card h3,
.info-card h3 {
  margin-bottom: 10px;
}

.town-card p,
.info-card p {
  margin: 0 auto;
  color: var(--tb-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 380px;
}

.status-label,
.section-label,
.sponsor-label {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.status-label--light {
  background: #e5e7eb;
  color: #374151;
}

.town-nav {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.town-nav a {
  padding: 9px 12px;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background: #ffffff;
  color: #111827;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.town-nav a:hover { background: #f3f4f6; color: #111827; }

.iframe-wrap {
  margin-top: 24px;
  width: 100%;
  min-height: 760px;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background: #ffffff;
  overflow: hidden;
}

.iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}

.icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border: 1px solid #f2b8b8;
  border-radius: 999px;
  color: var(--tb-red);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}

.footer {
  padding: 34px 20px 50px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-shell { width: calc(100% - 40px); padding: 24px 0; }
  .panel { padding: 30px 20px; }
  .town-grid,
  .card-grid,
  .button-row--grid { grid-template-columns: 1fr; }
  .button-row { justify-content: stretch; }
  .button { width: 100%; }
  .iframe-wrap,
  .iframe-wrap iframe { height: 680px; min-height: 680px; }
}

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

/* Cheshire reader journey additions */
.page-kicker {
  margin: 0 0 10px;
  color: var(--tb-red);
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
}

.page-header {
  text-align: center;
}

.page-header .lede {
  margin-left: auto;
  margin-right: auto;
}

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.issue-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--tb-border);
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.reader-actions {
  margin-top: 22px;
}

.archive-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background: #ffffff;
  box-shadow: var(--tb-shadow);
  overflow: hidden;
}

.issue-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 22px;
  border-bottom: 1px solid var(--tb-border);
  background: linear-gradient(135deg, #ffffff, var(--tb-red-soft));
  text-align: center;
}

.issue-preview-placeholder span {
  color: var(--tb-red);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.archive-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.archive-card__date {
  margin: 0 0 8px;
  color: var(--tb-red);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-card__title {
  margin: 0 0 12px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.archive-card__copy {
  margin: 0;
  color: var(--tb-muted);
  font-size: 16px;
  line-height: 1.55;
}

.archive-card__actions {
  margin-top: auto;
  padding-top: 22px;
}

.content-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.notice-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background: #fafafa;
  color: var(--tb-muted);
  font-size: 16px;
  line-height: 1.6;
}

.form-panel {
  max-width: 680px;
  margin: 28px auto 0;
  padding: 28px;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background: #fafafa;
  text-align: left;
}

.form-field {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--tb-radius);
  background: #ffffff;
  color: var(--tb-text);
  font: inherit;
}

.form-input:focus-visible {
  outline: 3px solid var(--tb-link);
  outline-offset: 2px;
}

.form-submit {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--tb-red);
  border-radius: var(--tb-radius);
  background: var(--tb-red);
  color: #ffffff;
  cursor: pointer;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.form-submit:hover {
  background: var(--tb-red-dark);
  border-color: var(--tb-red-dark);
}

.form-note {
  margin: 16px auto 0;
  max-width: 680px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.pricing-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pricing-card {
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background: #ffffff;
  padding: 24px 18px;
  text-align: center;
}

.pricing-name {
  margin: 0 0 10px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-price {
  margin: 0;
  color: var(--tb-red);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.pricing-copy {
  margin: 10px 0 0;
  color: var(--tb-muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .archive-grid,
  .content-columns,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Launch issue compact section renderer rules */
.section-body--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 8px;
  padding: 8px 24px 12px;
  border-top: 1px solid #eeeeee;
}

.section-body--columns .item {
  padding: 4px 0;
  border: 0;
  background: transparent;
}

.section-body--columns .subsection-label {
  grid-column: 1 / -1;
  padding: 7px 0 1px;
  border: 0;
  background: transparent;
}

.section-body--columns .subsection-label .item-title {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tb-red);
}

.section-body--columns .section-item--wide {
  grid-column: 1 / -1;
}

.section-body--compact {
  column-gap: 16px;
  row-gap: 6px;
}

.section-body--faith {
  column-gap: 16px;
  row-gap: 5px;
}

.section-body--faith .item-title {
  font-size: 13px;
  line-height: 1.25;
}

.section-body--faith .item-sub {
  font-size: 11.5px;
  line-height: 1.32;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .section-body--columns {
    grid-template-columns: 1fr;
    padding: 6px 12px 10px;
    row-gap: 4px;
  }

  .section-body--columns .item {
    padding: 5px 0;
  }

  .section-body--faith .item-title {
    font-size: 13px;
  }

  .section-body--faith .item-sub {
    font-size: 12px;
  }
}


/* Town Bulletin Layout System v1.0 */
.subsection-block {
  padding: 4px 0 6px;
  break-inside: avoid;
}

.subsection-block--wide {
  grid-column: 1 / -1;
}

.subsection-heading,
.section-body--columns .subsection-heading {
  margin: 0 0 6px;
  padding: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--tb-red);
}

.subsection-heading--wide {
  grid-column: 1 / -1;
  padding-top: 3px;
}

.subsection-block .item,
.section-body--columns .subsection-block .item {
  padding: 3px 0 5px;
  border: 0;
}

.section-body--columns .subsection-block .item-title {
  font-size: 14px;
}

.local-sponsors-board {
  padding: 8px 18px 20px;
  border-top: 1px solid #eeeeee;
  background: #ffffff;
  box-sizing: border-box;
}


/* LC3 issue renderer polish */
.charge-list {
  margin: 4px 0 4px 18px;
  padding: 0;
  color: var(--tb-muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.charge-list li {
  margin: 0 0 2px;
  padding: 0;
}
