:root {
  --jyc-d-ink: #172027;
  --jyc-d-muted: #5b6569;
  --jyc-d-paper: #fffdf8;
  --jyc-d-cream: #f6eee1;
  --jyc-d-line: #dfd2c2;
  --jyc-d-red: #a83f22;
  --jyc-d-red-dark: #7b2b18;
  --jyc-d-green: #173f3c;
  --jyc-d-focus: #0868d7;
}

.jyc-d-guide-page .entry-header { display: none !important; }
.jyc-d-guide-page .entry-content { max-width: none; padding: 0; }
.jyc-d-guide,
.jyc-d-guide-index {
  width: min(100% - 28px, 960px);
  margin: 24px auto 72px;
  color: var(--jyc-d-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}
.jyc-d-guide a,
.jyc-d-guide-index a,
.jyc-d-event-module a { color: #07516b; text-underline-offset: 3px; }
.jyc-d-guide a:focus-visible,
.jyc-d-guide-index a:focus-visible,
.jyc-d-event-module a:focus-visible,
.jyc-d-guide input:focus-visible,
.jyc-d-guide button:focus-visible {
  outline: 3px solid var(--jyc-d-focus);
  outline-offset: 3px;
}
.jyc-d-guide-hero,
.jyc-d-guide-section,
.jyc-d-takeaway,
.jyc-d-tie-in,
.jyc-d-guide-index {
  margin-bottom: 18px;
  padding: clamp(22px, 5vw, 48px);
  background: var(--jyc-d-paper);
  border: 1px solid var(--jyc-d-line);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(23,32,39,.1);
}
.jyc-d-guide-hero { background: linear-gradient(145deg, #fffdf8, #f3e7d6); }
.jyc-d-eyebrow,
.jyc-d-event-eyebrow,
.jyc-calendar-label {
  margin: 0 0 7px;
  color: #86351f;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.jyc-d-guide h1,
.jyc-d-guide h2,
.jyc-d-guide-index h1,
.jyc-d-event-card h3 {
  margin-top: 0;
  color: var(--jyc-d-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.jyc-d-guide h1,
.jyc-d-guide-index h1 { font-size: clamp(2.45rem, 8vw, 4.5rem); }
.jyc-d-guide h2 { font-size: clamp(1.75rem, 5vw, 2.8rem); }
.jyc-d-guide-hero > :last-child { max-width: 62ch; margin-bottom: 0; color: var(--jyc-d-muted); font-size: 1.08rem; }
.jyc-d-guide-section p { max-width: 72ch; }
.jyc-d-takeaway { color: #fff; background: var(--jyc-d-green); border-color: var(--jyc-d-green); }
.jyc-d-takeaway .jyc-d-eyebrow { color: #f4c6ad; }
.jyc-d-takeaway h2 { color: #fff; }
.jyc-d-takeaway p:last-child { margin-bottom: 0; font-size: 1.08rem; }

.jyc-d-date-module { margin-bottom: 18px; }
.jyc-d-date-module .jyc-calendar-module {
  padding: clamp(20px, 4vw, 36px);
  background: #eef5f3;
  border: 1px solid #bfd1cd;
  border-radius: 20px;
}
.jyc-d-date-module .jyc-calendar-module h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
.jyc-calendar-details { margin: 18px 0; }
.jyc-calendar-detail { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid #cbd9d6; }
.jyc-calendar-detail dt { font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.jyc-calendar-detail dd { margin: 0; font-weight: 720; }
.jyc-calendar-notice { padding: 12px 14px; background: #fff3cd; border-left: 4px solid #8a6500; }
.jyc-calendar-attribution { margin-bottom: 0; color: var(--jyc-d-muted); font-size: .84rem; }

.jyc-d-event-module { margin-top: 20px; }
.jyc-d-event-card {
  padding: clamp(18px, 4vw, 32px);
  background: #fff;
  border: 1px solid var(--jyc-d-line);
  border-top: 6px solid var(--jyc-d-red);
  border-radius: 18px;
}
.jyc-d-event-card h3 { margin-bottom: 10px; font-size: clamp(1.75rem, 5vw, 2.55rem); }
.jyc-d-event-card h3 a { color: var(--jyc-d-ink); text-decoration: none; }
.jyc-d-event-datetime { margin: 0 0 18px; color: #6b2e21; font-weight: 850; }
.jyc-d-event-facts { margin: 0 0 18px; }
.jyc-d-event-facts > div { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--jyc-d-line); }
.jyc-d-event-facts dt { color: #653026; font-size: .76rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.jyc-d-event-facts dd { margin: 0; font-weight: 700; }
.jyc-d-event-description { max-width: 68ch; }
.jyc-d-event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jyc-d-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 18px; border: 2px solid var(--jyc-d-red); border-radius: 999px; font-weight: 850; text-decoration: none; }
.jyc-d-button--primary { color: #fff !important; background: var(--jyc-d-red); }
.jyc-d-button--primary:hover { background: var(--jyc-d-red-dark); border-color: var(--jyc-d-red-dark); }
.jyc-d-button--secondary { color: var(--jyc-d-red) !important; background: #fff; }
.jyc-d-event-tertiary { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 7px; font-size: .92rem; font-weight: 760; }
.jyc-d-event-tertiary a { display: inline-flex; min-height: 44px; align-items: center; }
.jyc-d-event-fallback { margin: 10px 4px 0; color: var(--jyc-d-muted); font-size: .92rem; }
.jyc-d-event-fallback-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 5px 4px 0; font-size: .9rem; font-weight: 760; }
.jyc-d-event-all { margin: 8px 4px 0; font-size: .92rem; font-weight: 820; }
.jyc-d-event-all a { display: inline-flex; min-height: 44px; align-items: center; }

.jyc-d-tie-in--empty { background: #f7f3eb; }
.jyc-d-email-capture label { display: block; margin-bottom: 6px; font-weight: 820; }
.jyc-d-email-capture > div:first-of-type { display: flex; gap: 8px; }
.jyc-d-email-capture input[type=email] { min-width: 0; min-height: 50px; flex: 1; padding: 10px 12px; border: 1px solid #9b9b9b; border-radius: 9px; }
.jyc-d-email-capture button { min-height: 50px; padding: 10px 17px; color: #fff; background: var(--jyc-d-red); border: 0; border-radius: 9px; font-weight: 850; cursor: pointer; }
.jyc-d-honeypot { position: absolute; left: -5000px; }
.jyc-d-privacy { color: var(--jyc-d-muted); font-size: .84rem; }
.jyc-d-support-link { font-weight: 820; }

.jyc-d-guide-index ul { display: grid; gap: 12px; padding: 0; list-style: none; }
.jyc-d-guide-index li a { display: block; padding: 16px; background: var(--jyc-d-cream); border-radius: 12px; font-weight: 820; }

body.home .jyc-d-event-module { margin: 0; }
body.home .jyc-d-event-card { box-shadow: 0 14px 36px rgba(23,32,39,.12); }
body.home .jyc-d-event-fallback { margin-bottom: 18px; }

@media (max-width: 560px) {
  .jyc-d-guide,
  .jyc-d-guide-index { width: min(100% - 20px, 960px); margin-top: 14px; }
  .jyc-d-guide-hero,
  .jyc-d-guide-section,
  .jyc-d-takeaway,
  .jyc-d-tie-in,
  .jyc-d-guide-index { padding: 20px 17px; border-radius: 18px; }
  .jyc-calendar-detail,
  .jyc-d-event-facts > div { grid-template-columns: 92px minmax(0,1fr); gap: 10px; }
  .jyc-d-event-actions,
  .jyc-d-email-capture > div:first-of-type { flex-direction: column; }
  .jyc-d-button { width: 100%; }
}
