:root {
  --primary-color: #174c39; /* Evergreen text */
  --primary-light: #246b50;
  --accent-color: #d4b466; /* Christmas gold */
  --background-color: #eaf2e7; /* Soft green page background */
  --hover-bg: #d7e7d3;
  --text-light: #fff8e7;
  --border-radius: 10px;
  --box-shadow-color: rgba(23, 76, 57, 0.18);
  --box-shadow-hover: rgba(23, 76, 57, 0.28);

  /* Variables consumed by the shared site header, footer and buttons. */
  --primary-bg: var(--primary-color);
  --primary-text: var(--text-light);
  --primary-hover: var(--accent-color);
  --success-text: #174c39;
  --success-bg: #d7e7d3;
  --error-text: #922431;
  --error-bg: #f8e2e4;
}

body {
  background-color: var(--background-color) !important;
}

/* CrownDaisy Christmas resource page. Scoped to avoid affecting other pages. */
.christmas-page {
  margin: 0;
  background: var(--background-color);
  color: #283b32;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
}
.christmas-resources {
  --red: #a52632;
  --green: #174c39;
  --gold: #b58935;
  max-width: 1200px;
  margin: auto;
  padding: 32px 24px 64px;
}
.christmas-resources * {
  box-sizing: border-box;
}
.christmas-resources .christmas-hero {
  position: relative;
  padding: clamp(32px, 6vw, 72px);
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(125deg, #721c28, #a52632);
  color: var(--text-light);
  border-bottom: 6px solid var(--accent-color);
}
.christmas-resources .eyebrow {
  color: #f4db9b;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
}
.christmas-resources h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.15;
  max-width: 850px;
  margin: 0;
}
.christmas-resources .hero-decoration {
  display: block;
  color: #f4db9b;
  font-size: 1.8rem;
  margin-top: 24px;
  letter-spacing: 0.4em;
}
.christmas-resources > p {
  max-width: 95ch;
  font-size: 1.05rem;
}
.christmas-resources h2 {
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d9c89f;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
}
.christmas-resources h3 {
  margin: 30px 0 18px;
  color: var(--red);
  font-size: 1.22rem;
  line-height: 1.4;
}
.christmas-resources .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 22px 0 32px;
}
.christmas-resources .resource-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5dfd1;
  border-top: 4px solid var(--red);
  border-radius: 16px;
  box-shadow: 0 5px 18px #173e2c08;
}
.christmas-resources .resource-card:nth-child(3n + 2) {
  border-top-color: var(--green);
}
.christmas-resources .resource-card:nth-child(3n) {
  border-top-color: var(--gold);
}
.christmas-resources .resource-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .christmas-resources .resource-card:hover {
    transform: translateY(-5px) scale(1.025);
    box-shadow: 0 12px 28px var(--box-shadow-color);
  }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-resources .resource-card {
    transition: none;
  }

  .christmas-resources .resource-card:hover {
    transform: none;
  }
}
.christmas-resources .resource-card h4 {
  color: var(--green);
  font-size: 1.14rem;
  line-height: 1.4;
  margin: 0 0 12px;
}
.christmas-resources .resource-card p {
  margin: 0 0 22px;
}
.christmas-resources .resource-card-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  width: 100%;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid #e4e5db;
  border-radius: 10px;
  background: #f3f5ed;
}
.christmas-resources .preview-placeholder {
  text-align: center;
  padding: 20px;
  color: #52634f;
  font-weight: 650;
}
.christmas-resources .preview-placeholder small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 8px;
}
.christmas-resources .resource-product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
  padding: 8px;
}
.christmas-resources .resource-card-image:has(img) .preview-placeholder {
  visibility: hidden;
}
.christmas-resources .resource-actions {
  margin-top: 20px;
}
.christmas-resources .configured-link ~ .fallback-link {
  display: none;
}
.christmas-resources a {
  color: var(--red);
  text-underline-offset: 4px;
}
.christmas-resources a:hover {
  color: var(--green);
}
.christmas-resources a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
  border-radius: 2px;
}
.christmas-resources .resource-link {
  display: block;
  font-weight: 700;
  line-height: 1.5;
}
.christmas-resources ul {
  padding-left: 26px;
}
.christmas-resources li {
  margin-bottom: 8px;
}
@media (max-width: 1000px) {
  .christmas-resources .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .christmas-resources {
    padding: 16px 16px 40px;
  }
  .christmas-resources .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .christmas-resources .resource-card {
    padding: 20px;
  }
  .christmas-resources h2 {
    margin-top: 40px;
  }
}
@media print {
  .christmas-page {
    background: white;
  }
  .christmas-resources .resource-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .christmas-resources .christmas-hero {
    background: white;
    color: #174c39;
  }
}
