:root {
  --forest: #0b5a46;
  --forest-dark: #063d31;
  --cream: #f4eee2;
  --paper: #fffdf8;
  --mint: #e4eee3;
  --line: #cbd4c8;
  --ink: #17352e;
  --muted: #50655e;
  --strip-bg: #dce8d8;
  --success-bg: #f0f6ef;
  --success-border: #b8cdb8;
  --error-bg: #faf0f0;
  --error-border: #ddb8b8;
  --max: 1180px;
  --shadow: 0 8px 24px rgba(18, 43, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep centered content aligned on both short and scrollable pages. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  background: #fffdf8;
  border-bottom: 1px solid #d6d2c6;
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: var(--max);
  margin: auto;
  min-height: 86px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.site-brand img {
  width: min(310px, 48vw);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--forest);
  color: var(--forest-dark);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--forest-dark);
  font: 700 1rem Arial, sans-serif;
}

.page-wrap {
  max-width: var(--max);
  margin: auto;
}

.hero {
  position: relative;
  min-height: 330px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-home {
  min-height: 470px;
  background-image:
    linear-gradient(90deg, rgba(4, 43, 34, 0.84), rgba(4, 43, 34, 0.45) 48%, rgba(4, 43, 34, 0.08)),
    url("../images/autumn-writing-banner-optimized.png");
  background-position: center center;
}

.hero-about {
  background-image:
    linear-gradient(90deg, rgba(24, 22, 17, 0.78), rgba(24, 22, 17, 0.2)),
    url("../images/about-hero-optimized.png");
  background-position: center center;
}

.hero-schedule {
  background-image:
    linear-gradient(90deg, rgba(24, 22, 17, 0.78), rgba(24, 22, 17, 0.2)),
    var(--schedule-hero-image, url("../images/schedule-hero-optimized.png"));
  background-position: center center;
}

.hero-archive {
  --schedule-hero-image: url("../images/archive-hero-optimized.png");
}

.hero-contact {
  background-image:
    linear-gradient(90deg, rgba(24, 22, 17, 0.78), rgba(24, 22, 17, 0.2)),
    url("../images/contact-hero-optimized.png");
  background-position: center center;
}


.hero-privacy {
  background-image:
    linear-gradient(90deg, rgba(24, 22, 17, 0.78), rgba(24, 22, 17, 0.2)),
    url("../images/contact-hero-optimized.png");
  background-position: center center;
}
.hero-confirmed {
  background-image:
    linear-gradient(90deg, rgba(24, 22, 17, 0.78), rgba(24, 22, 17, 0.2)),
    url("../images/confirmed-hero-optimized.png");
  background-position: center center;
}

.hero-preferences {
  background-image:
    linear-gradient(90deg, rgba(24, 22, 17, 0.78), rgba(24, 22, 17, 0.2)),
    url("../images/preferences-hero-optimized.png");
  background-position: center center;
}

.hero-unsubscribed {
  background-image:
    linear-gradient(90deg, rgba(24, 22, 17, 0.78), rgba(24, 22, 17, 0.2)),
    url("../images/unsubscribed-hero-optimized.png");
  background-position: center center;
}

.hero-about,
.hero-confirmed,
.hero-unsubscribed {
  min-height: clamp(220px, 34vw, 300px);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.hero-about .hero-copy,
.hero-confirmed .hero-copy,
.hero-unsubscribed .hero-copy {
  padding-top: clamp(22px, 4vw, 32px);
  padding-bottom: clamp(22px, 4vw, 32px);
}

/* Keep the main interior-page heroes aligned on desktop. */
@media (min-width: 701px) {
  .hero-about,
  .hero-schedule,
  .hero-archive,
  .hero-contact {
    height: 380px;
    min-height: 380px;
  }
}

.hero-copy {
  padding: 54px 28px;
  color: #fff;
  max-width: 700px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 700 0.72rem/1.3 Arial, sans-serif;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  margin: 0.35rem 0 0.75rem;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin: 0;
  max-width: 610px;
}

.button {
  display: inline-block;
  border: 1px solid var(--forest);
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font: 700 0.82rem Arial, sans-serif;
  cursor: pointer;
}

.button-primary {
  background: var(--forest);
  color: #fff;
}

.button-primary:hover {
  background: var(--forest-dark);
}

/* NEW — Disabled button */
.button[disabled],
.button-primary[disabled] {
  background: var(--line);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.6;
}

.section {
  max-width: var(--max);
  margin: auto;
  padding: 30px 18px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.65rem;
  color: var(--forest-dark);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
}

.newsletter-reasons {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.reasons-inner {
  max-width: var(--max);
  margin: auto;
  padding: 18px;
}

.reasons-inner h2 {
  font-size: 1.45rem;
  margin: 0 0 15px;
}

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

.reason {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 4px 15px;
  border-left: 1px solid var(--line);
}

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

.reason-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--forest);
  font-weight: 700;
}

.reason h3 {
  font-size: 0.92rem;
  margin: 0 0 3px;
  line-height: 1.15;
}

.reason p {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.newsletter-strip {
  background: var(--strip-bg);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid #c8d6c4;
}

.newsletter-inner {
  max-width: var(--max);
  margin: auto;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 12px 20px;
  align-items: center;
}

#newsletter-message {
  grid-column: 2;
  margin: 0;
}

#newsletter-message.success,
#newsletter-message.error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font: 0.82rem/1.4 Arial, sans-serif;
}

#newsletter-message.success {
  background: var(--success-bg);
  color: var(--forest-dark);
  border: 1px solid var(--success-border);
  border-left: 3px solid var(--forest);
}

#newsletter-message.success::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

#newsletter-message.error {
  background: var(--error-bg);
  color: #6b2a2a;
  border: 1px solid var(--error-border);
  border-left: 3px solid #a94444;
}

.newsletter-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaf-mark {
  font-size: 2.5rem;
  color: var(--forest);
}

.newsletter-copy h2 {
  margin: 0;
  font-size: 1.4rem;
}

.newsletter-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 8px;
  align-items: end;
}

.newsletter-form label {
  font: 600 0.68rem Arial, sans-serif;
  display: block;
  margin-bottom: 3px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font: 14px Georgia, serif;
}

/* NEW — Disabled inputs + textarea */
.contact-form input[disabled],
.contact-form textarea[disabled],
.contact-form button[disabled] {
  background: var(--mint);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.6;
}

.newsletter-option {
  grid-column: 1 / -1;
  font: 12px Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-panels {
  padding-top: 22px;
  padding-bottom: 40px;
}

.home-panel h2 {
  font-size: 1.3rem;
  margin: 0 0 7px;
  color: var(--forest-dark);
}

.home-panel p {
  font-size: 0.83rem;
  margin: 0 0 8px;
}

.meta {
  font-size: 0.8rem;
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.meta strong {
  display: block;
  color: var(--forest-dark);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
}

.checks li:before {
  content: "✓";
  color: var(--forest);
  font-weight: 700;
  margin-right: 8px;
}

.page-content {
  max-width: var(--max);
  margin: auto;
  padding: 20px 18px 0;
}

.welcome-section {
  padding: 0 18px 40px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 18px;
}

.glance {
  background: var(--mint);
  border: 1px solid #d1dfcf;
  padding: 20px;
}

.glance h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.glance-row {
  padding: 10px 0;
  border-bottom: 1px solid #cbd8c8;
  font-size: 0.8rem;
}

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

.events {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.8rem;
}

.events th,
.events td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.events th {
  background: #e3eee2;
  color: var(--forest-dark);
}

.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 18px;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
}

.step {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--forest);
  font-weight: 700;
  flex-shrink: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--forest);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font: 600 0.8rem Arial, sans-serif;
  display: block;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

main {
  flex: 1;
}

.site-footer {
  background: var(--forest-dark);
  color: #fff;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: auto;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-inner nav a {
  white-space: nowrap;
  text-underline-offset: 3px;
}

.footer-inner p {
  margin: 0;
}

.form-helper,
.form-checksum {
  display: none;
}

.form-message {
  font: 13px Arial, sans-serif;
  padding: 9px 12px;
  border-radius: 6px;
  margin-top: 8px;
  display: none;
}

.form-message.success {
  display: block;
  background: var(--success-bg);
  color: var(--forest-dark);
  border: 1px solid var(--success-border);
  border-left: 3px solid var(--forest);
}

.form-message.error {
  display: block;
  background: var(--error-bg);
  color: #6b2a2a;
  border: 1px solid var(--error-border);
  border-left: 3px solid #a94444;
}

.simple-page {
  min-height: max(220px, 30vh);
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vw, 40px) 18px clamp(30px, 5vw, 52px);
}

.simple-card {
  width: min(650px, 100%);
  max-width: 650px;
  margin: auto;
}

/* =========================================================
   Responsive layout
   ========================================================= */

/* Tablet / smaller desktop */
@media (max-width: 900px) {
  .site-nav {
    gap: 16px;
  }

  .header-inner {
    min-height: 76px;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  #newsletter-message {
    grid-column: 1;
  }

  .newsletter-form {
    grid-template-columns: 1fr 1fr auto;
  }

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

  .reason:nth-child(3) {
    border-left: 0;
  }

  .about-layout,
  .schedule-layout,
  .contact-layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* Phones */
@media (max-width: 700px) {
  .header-inner {
    min-height: 70px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-brand img {
    width: min(235px, 72vw);
  }

  .nav-toggle {
    display: block;
    padding: 8px 2px;
    cursor: pointer;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 8px 18px rgba(18, 43, 35, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero-home {
    min-height: 420px;
    background-position: 65% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(4, 43, 34, 0.08),
        rgba(4, 43, 34, 0.75)
      ),
      url("../images/autumn-writing-banner-optimized.png");
  }

  .hero-about {
    background-position: 68% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(24, 22, 17, 0.08),
        rgba(24, 22, 17, 0.75)
      ),
      url("../images/about-hero-optimized.png");
  }

  .hero-schedule {
    background-position: 68% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(24, 22, 17, 0.08),
        rgba(24, 22, 17, 0.75)
      ),
      var(--schedule-hero-image, url("../images/schedule-hero-optimized.png"));
  }

  .hero-contact {
    background-position: 68% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(24, 22, 17, 0.08),
        rgba(24, 22, 17, 0.75)
      ),
      url("../images/contact-hero-optimized.png");
  }

  .hero-confirmed {
    background-position: 68% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(24, 22, 17, 0.08),
        rgba(24, 22, 17, 0.75)
      ),
      url("../images/confirmed-hero-optimized.png");
  }

  .hero-preferences {
    background-position: 68% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(24, 22, 17, 0.08),
        rgba(24, 22, 17, 0.75)
      ),
      url("../images/preferences-hero-optimized.png");
  }

  .hero-unsubscribed {
    background-position: 68% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(24, 22, 17, 0.08),
        rgba(24, 22, 17, 0.75)
      ),
      url("../images/unsubscribed-hero-optimized.png");
  }

  .hero-copy {
    padding: 38px 18px;
  }

  .hero-about .hero-copy,
  .hero-confirmed .hero-copy,
  .hero-unsubscribed .hero-copy {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .section,
  .page-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .welcome-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel {
    padding: 18px;
  }

  .newsletter-inner {
    padding: 14px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-option {
    grid-column: auto;
    align-items: flex-start;
  }

  #newsletter-message {
    grid-column: 1;
  }

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

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

  .reason,
  .reason:first-child,
  .reason:nth-child(3) {
    border-left: 0;
  }

  .reason:nth-child(odd) {
    border-left: 0;
  }

  .reason:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .reason:nth-child(3) {
    padding-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .events {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .timeline-row {
    grid-template-columns: 42px 1fr;
  }

  .step {
    width: 42px;
    height: 42px;
  }

  .contact-form {
    padding: 16px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .site-brand img {
    width: min(205px, 68vw);
  }

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

  .reason,
  .reason:first-child,
  .reason:nth-child(3),
  .reason:nth-child(n + 3) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0;
  }

  .reason:first-child {
    border-top: 0;
  }

  .reason:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-home {
    min-height: 400px;
    background-position: 68% center;
  }

  .hero-about,
  .hero-schedule,
  .hero-contact,
  .hero-privacy,
  .hero-confirmed,
  .hero-preferences,
  .hero-unsubscribed {
    background-position: 72% center;
  }

  .hero-copy {
    padding-left: 14px;
    padding-right: 14px;
  }

  .events {
    font-size: 0.72rem;
  }

  .events th,
  .events td {
    padding: 7px;
  }

  .simple-page {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* =========================================================
   KCW event-driven homepage and schedule
   Built on the repaired stylesheet without changing the
   existing colour palette or image assets.
   ========================================================= */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.8);
}

.button-light:hover {
  background: rgba(255,255,255,.18);
}

.featured-section {
  padding-top: 26px;
  padding-bottom: 18px;
}

.featured-event {
  display: grid;
  grid-template-columns: minmax(230px, .55fr) 1.45fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-event-art,
.event-card-art,
.visitor-art {
  background: linear-gradient(135deg, var(--mint), var(--cream));
  color: var(--forest-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.featured-event-art {
  min-height: 300px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.large-book-icon {
  font-size: 4.8rem;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--forest);
}

.featured-event-art strong {
  font-size: 1.25rem;
  max-width: 220px;
}

.featured-event-art span:last-child {
  margin-top: 5px;
  color: var(--muted);
  font: 600 .78rem Arial, sans-serif;
}

.featured-event-content {
  padding: 30px 32px;
}

.featured-event-content h2 {
  margin: 9px 0 10px;
  color: var(--forest-dark);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.05;
}

.featured-event-description {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 1rem;
}

.event-type {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--forest);
  color: #fff;
  font: 700 .68rem Arial, sans-serif;
  letter-spacing: .02em;
}

.event-type-guest-speaker { background: var(--forest); }
.event-type-craft-workshop { background: #4d7667; }
.event-type-special-event { background: #765b88; }
.event-type-writing-night { background: #5f7952; }
.event-type-holiday { background: #7c6b43; }
.event-type-other { background: var(--muted); }

.event-meta,
.schedule-details {
  display: grid;
  gap: 11px;
  margin: 18px 0;
  font: .84rem/1.45 Arial, sans-serif;
}

.event-meta strong,
.schedule-details strong {
  display: block;
  color: var(--forest-dark);
  margin-bottom: 2px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.event-actions .button:not(.button-primary) {
  background: var(--paper);
}

.empty-event {
  grid-column: 1 / -1;
  padding: 34px;
}

.learning-section {
  padding-top: 18px;
}

.section-heading-centered {
  text-align: center;
  margin-bottom: 22px;
}

.section-heading-centered h2,
.section-heading-row h2 {
  margin: 4px 0 0;
  color: var(--forest-dark);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

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

.learning-card {
  text-align: center;
  padding: 8px 10px 18px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--mint);
  color: var(--forest);
  font-size: 1.45rem;
  font-weight: 700;
}

.learning-card h3 {
  margin: 11px 0 6px;
  font-size: 1.05rem;
  color: var(--forest-dark);
}

.learning-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.outcomes-section {
  padding-top: 18px;
  padding-bottom: 22px;
}

.outcomes-panel,
.visitor-panel {
  background: var(--mint);
  border: 1px solid #d1dfcf;
  padding: 24px;
}

.outcomes-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.outcomes-heading h2 {
  margin: 2px 0 2px;
  color: var(--forest-dark);
  font-size: 1.55rem;
}

.outcomes-heading p { margin: 0; color: var(--muted); }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.outcomes-grid > div {
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.outcomes-grid > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.outcomes-grid h3 {
  margin: 0 0 6px;
  font-size: .92rem;
  color: var(--forest-dark);
}

.outcomes-grid p { margin: 0; font-size: .82rem; color: var(--muted); }

.upcoming-section { padding-top: 18px; }

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

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

.event-grid > .empty-state {
  grid-column: 1 / -1;
  min-width: 0;
}

.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: 120px 1fr;
  overflow: hidden;
}

.event-card-featured { border-color: #a8bda4; box-shadow: var(--shadow); }

.event-card-art {
  min-height: 120px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.book-icon { font-size: 2.3rem; color: var(--forest); }
.event-card-art span:last-child { font: 700 .62rem Arial, sans-serif; letter-spacing: .14em; margin-top: 4px; }

.event-card-body { padding: 16px; }
.event-card-photo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 8px;
}
.event-card h3 { margin: 9px 0 5px; color: var(--forest-dark); font-size: 1.08rem; line-height: 1.15; }
.event-card p { margin: 5px 0; font-size: .79rem; color: var(--muted); }
.event-speaker { color: var(--ink) !important; }
.event-card-meta { margin-top: 10px; font: 700 .72rem Arial, sans-serif; color: var(--forest-dark); }

.visitor-section { padding-top: 12px; padding-bottom: 30px; }

.visitor-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: stretch;
}

.visitor-art {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
}

.visitor-art span { font: 700 .7rem Arial, sans-serif; letter-spacing: .18em; color: var(--forest); }
.visitor-art strong { font-size: 1.7rem; line-height: 1.05; margin: 12px 0; color: var(--forest-dark); }
.visitor-art small { color: var(--muted); }

.visitor-panel h2 { margin: 3px 0 7px; color: var(--forest-dark); font-size: 1.8rem; }
.visitor-panel > div:last-child > p:not(.eyebrow) { max-width: 800px; margin-top: 0; }
.visitor-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 25px; margin: 10px 0 16px; }
.visitor-list .checks { margin: 0; }

.schedule-calendar { margin-top: 28px; min-width: 0; }
.schedule-layout > div { min-width: 0; }
.schedule-layout .schedule-calendar { margin-top: 0; }
.schedule-events[hidden] { display: none; }
.schedule-calendar-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.schedule-calendar-heading h2 { margin-bottom: 0; }
.schedule-calendar [hidden] { display: none; }
.schedule-calendar-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.schedule-calendar-table-wrap:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
.schedule-calendar-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
.schedule-calendar-table th { background: var(--forest); color: white; font: 700 .8rem Arial, sans-serif; letter-spacing: .04em; }
.schedule-calendar-table th, .schedule-calendar-table td { padding: 16px; vertical-align: top; }
.schedule-calendar-table td { border-top: 1px solid var(--line); }
.schedule-calendar-table tbody tr:nth-child(even) { background: var(--mint); }
.schedule-calendar-table td:first-child { min-width: 145px; }
.schedule-calendar-table td:nth-child(2) { min-width: 140px; }
.schedule-calendar-table td:nth-child(3) { min-width: 220px; overflow-wrap: anywhere; }
.schedule-calendar-table strong { color: var(--forest-dark); }
.schedule-calendar-table details { margin-top: 8px; }
.schedule-calendar-table summary { color: var(--forest); cursor: pointer; }
.schedule-calendar-table details p { white-space: pre-line; font-size: .9rem; }
.schedule-calendar [data-calendar-status] { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
  .schedule-calendar-table-wrap { overflow: visible; border: 0; }
  .schedule-calendar-table,
  .schedule-calendar-table tbody { display: block; }
  .schedule-calendar-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .schedule-calendar-table tbody tr { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
  .schedule-calendar-table tbody tr + tr { margin-top: 12px; }
  .schedule-calendar-table tbody td:nth-child(n) { display: block; min-width: 0; width: 100%; border: 0; padding: 0; overflow-wrap: anywhere; }
  .schedule-calendar-table tbody td + td { margin-top: 12px; }
  .schedule-calendar-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font: 700 .75rem Arial, sans-serif; letter-spacing: .04em; }
}
.schedule-events { display: grid; gap: 14px; }

.schedule-event {
  display: grid;
  grid-template-columns: 96px 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
}

.schedule-event-date {
  background: var(--mint);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 8px;
  color: var(--forest-dark);
}

.schedule-event-date span { text-transform: uppercase; font: 700 .72rem Arial, sans-serif; letter-spacing: .1em; }
.schedule-event-date strong { font-size: 2.4rem; line-height: 1; }
.schedule-event-date small { font: .72rem Arial, sans-serif; }
.schedule-event-main { padding: 22px; }
.schedule-event-main h2 { margin: 8px 0 4px; color: var(--forest-dark); font-size: 1.5rem; }
.schedule-event-main > p { margin: 7px 0; }
.schedule-details { grid-template-columns: repeat(3, 1fr); padding-top: 12px; border-top: 1px solid var(--line); }

.empty-state { padding: 25px; color: var(--muted); }

.announcement-stack { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.announcement { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px 14px; background: var(--mint); border: 1px solid var(--line); color: var(--forest-dark); font: .82rem Arial, sans-serif; }
.announcement strong { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }

@media (max-width: 900px) {
  .learning-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-event { grid-template-columns: 1fr; }
  .featured-event-art { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .visitor-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero-actions .button { width: 100%; text-align: center; }
  .featured-event-content { padding: 22px 18px; }
  .outcomes-grid { grid-template-columns: 1fr; gap: 14px; }
  .outcomes-grid > div, .outcomes-grid > div:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
  .outcomes-grid > div:first-child { border-top: 0; padding-top: 0; }
  .event-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .visitor-list { grid-template-columns: 1fr; }
  .schedule-event { grid-template-columns: 72px 1fr; }
  .schedule-event-main { padding: 18px 15px; }
  .schedule-details { grid-template-columns: 1fr; }
  .announcement-stack { padding: 0 14px; }
}

@media (max-width: 480px) {
  .learning-grid { grid-template-columns: 1fr; }
  .featured-event-art { min-height: 160px; }
  .featured-event-content h2 { font-size: 1.65rem; }
  .event-actions .button { width: 100%; text-align: center; }
  .outcomes-panel, .visitor-panel { padding: 18px; }
}

/* Featured event refinement: avoid an empty portrait placeholder when no speaker photo exists. */
.featured-event {
  display: block;
}

.featured-event-content {
  padding: clamp(24px, 4vw, 38px);
}

.featured-event-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.featured-event-heading h2 {
  max-width: 820px;
  margin-bottom: 8px;
}

.featured-speaker {
  margin: 0;
  color: var(--muted);
  font: 600 .9rem/1.4 Arial, sans-serif;
}

.featured-event-mark {
  width: 86px;
  height: 86px;
  border: 1px solid #cbd8c8;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.featured-event-mark span {
  font-size: 2.4rem;
  line-height: 1;
}

.featured-event .event-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.featured-event .event-meta > div {
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.featured-event .event-meta > div:first-child {
  padding-left: 0;
  border-left: 0;
}

@media (max-width: 700px) {
  .featured-event-heading {
    grid-template-columns: 1fr;
  }

  .featured-event-mark {
    display: none;
  }

  .featured-event .event-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .featured-event .event-meta > div,
  .featured-event .event-meta > div:first-child {
    padding: 0;
    border-left: 0;
  }
}

/* =========================================================
   KCW homepage event cleanup
   Content-first, image-optional event presentation.
   ========================================================= */
.featured-event {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-event-date,
.event-card-date {
  background: var(--mint);
  color: var(--forest-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--line);
}

.featured-event-date span,
.event-card-date span {
  font: 700 .76rem/1 Arial, sans-serif;
  letter-spacing: .14em;
}

.featured-event-date strong {
  font-size: 3.8rem;
  line-height: .95;
  margin: 8px 0 5px;
}

.featured-event-date small,
.event-card-date small {
  font: 700 .72rem Arial, sans-serif;
  color: var(--muted);
}

.featured-event-content {
  padding: clamp(24px, 4vw, 38px);
}

.featured-event-content h2 {
  max-width: 820px;
  margin: 4px 0 10px;
  color: var(--forest-dark);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.featured-speaker {
  margin: 14px 0 0;
  color: var(--forest-dark);
  font: 600 1rem/1.35 Arial, sans-serif;
}

.featured-speaker strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.featured-speaker span {
  color: var(--muted);
  font-size: .82rem;
}

.featured-speaker a,
.event-speaker a {
  color: inherit;
  text-underline-offset: 3px;
}

.featured-event-description {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 1rem;
}

.featured-event-mark { display: none; }

.event-card {
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: none;
  min-height: 210px;
}

.event-card-date {
  min-height: 100%;
  border-bottom: 0;
}

.event-card-date strong {
  font-size: 2rem;
  line-height: 1;
  margin: 7px 0 4px;
}

.event-card-body { padding: 18px; }
.event-card-art { display: none; }

.outcomes-heading { display: block; }
.outcomes-heading h2 { font-size: 1.65rem; }

[hidden] { display: none !important; }

@media (max-width: 700px) {
  .featured-event {
    grid-template-columns: 1fr;
  }

  .featured-event-date {
    min-height: 0;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
  }

  .featured-event-date strong {
    font-size: 1rem;
    margin: 0;
  }

  .featured-event-date small { margin-left: -3px; }

  .event-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}


/* ==========================================================
   KCW HOMEPAGE — APPROVED PROPORTION PASS
   Full-bleed hero/backgrounds, 1080px body grid,
   1000px featured event, restrained spacing.
========================================================== */

.home-band {
  width: 100%;
  margin: 0;
}

.home-inner {
  width: min(calc(100% - 48px), 1080px);
  margin-inline: auto;
}

.home-inner--event {
  width: min(calc(100% - 48px), 1000px);
}

.home-band--white { background: #fff; }
.home-band--cream { background: var(--cream); }
.home-band--sage  { background: #edf3eb; }

/* Hero image remains full bleed; copy aligns to the 1080px grid. */
.hero-home {
  padding-inline: max(24px, calc((100% - 1080px) / 2));
}

.hero-home .hero-copy {
  width: min(650px, 100%);
  padding: 44px 0 42px;
}

/* Featured event */
.featured-section {
  padding: 22px 0;
}

.featured-section .featured-event {
  width: 100%;
  margin: 0;
  grid-template-columns: 88px minmax(0, 1fr);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.featured-section .featured-event-date {
  border-right: 1px solid var(--line);
  background: transparent;
  min-height: 0;
  justify-content: flex-start;
  padding-top: 12px;
}

.featured-section .featured-event-date strong {
  font-size: 2.6rem;
}

.featured-section .featured-event-content {
  padding: 0 0 0 22px;
}

.featured-section .featured-event-content h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  margin-bottom: 8px;
}

.featured-section .featured-event-content > p {
  max-width: 700px;
}

.featured-section .event-meta {
  margin-top: 14px;
  padding: 10px 0;
}

.featured-section .event-actions {
  margin-top: 12px;
}

/* Learning section */
.featured-event-intro--with-image {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.featured-event-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 45% center;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .featured-event-intro--with-image {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .featured-event-photo {
    max-width: 72px;
  }
}

.learning-section {
  padding: 38px 0 42px;
}

.learning-section .section-heading-centered {
  margin-bottom: 24px;
}

.learning-section .section-heading-centered h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.25rem);
}

.learning-section .learning-grid {
  gap: 30px;
}

.learning-section .learning-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.learning-section .feature-icon {
  width: 42px;
  height: 42px;
}

.learning-section .learning-card h3 {
  margin: 10px 0 6px;
}

.learning-section .learning-card p {
  max-width: 235px;
  margin: 0 auto;
}

/* Learning outcomes: section tint, no inset panel. */
.outcomes-section {
  padding: 30px 0 34px;
}

.outcomes-section .outcomes-heading {
  display: block;
  margin: 0 0 18px;
}

.outcomes-section .outcomes-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
}

.outcomes-section .outcomes-grid {
  margin-top: 0;
}

.outcomes-section .outcomes-grid > div {
  padding: 0 28px;
}

.outcomes-section .outcomes-grid > div:first-child { padding-left: 0; }
.outcomes-section .outcomes-grid > div:last-child { padding-right: 0; }

/* Upcoming section is hidden by events.js when there are no additional real events. */
.upcoming-section {
  padding: 34px 0 38px;
}

/* First-time visitor section: flat, white, two-column. */
.visitor-section {
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
}

.visitor-simple {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.4fr);
  gap: 52px;
  align-items: center;
}

.visitor-intro h2 {
  margin: 4px 0 8px;
  color: var(--forest-dark);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
}

.visitor-intro p {
  margin-bottom: 16px;
}

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

/* Newsletter remains the strong dark closing band. */
.newsletter-strip {
  margin-top: 0;
}

/* Tablet */
@media (max-width: 900px) {
  .home-inner,
  .home-inner--event {
    width: min(calc(100% - 40px), 1080px);
  }

  .learning-section .learning-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visitor-simple {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .home-inner,
  .home-inner--event {
    width: min(calc(100% - 30px), 1080px);
  }

  .hero-home {
    padding-inline: 15px;
  }

  .featured-section,
  .learning-section,
  .visitor-section {
    padding-block: 28px;
  }

  .outcomes-section {
    padding-block: 26px;
  }

  .featured-section .featured-event {
    grid-template-columns: 1fr;
  }

  .featured-section .featured-event-date {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
    margin-bottom: 12px;
  }

  .featured-section .featured-event-date strong {
    font-size: 1rem;
  }

  .featured-section .featured-event-content {
    padding-left: 0;
  }

  .learning-section .learning-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .learning-section .learning-card {
    padding: 18px 0;
  }

  .learning-section .learning-card + .learning-card {
    border-top: 1px solid var(--line);
  }

  .outcomes-section .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .outcomes-section .outcomes-grid > div,
  .outcomes-section .outcomes-grid > div:first-child,
  .outcomes-section .outcomes-grid > div:last-child {
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .outcomes-section .outcomes-grid > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .visitor-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* Keep the bot trap out of sight and keyboard navigation. */
.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
