/* Advent calendar page + home strip (inc/advent.php, template-advent.php) */

.neh-advent { padding-top: 28px; padding-bottom: 56px; }

.neh-advent-hero { max-width: 760px; margin-bottom: 26px; }
.neh-advent-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #d6336c; }
.neh-advent-hero h1 { font-family: var(--font-family-secondary); font-size: clamp(32px, 5vw, 52px); line-height: 1.05; color: var(--primary-color); margin: 0 0 12px; }
.neh-advent-lead { font-size: 17px; color: var(--muted, #6b7390); margin: 0 0 12px; }
.neh-advent-status { margin: 0; font-size: 16px; color: var(--primary-color); }
.neh-advent-preview { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #fff3bf; font-size: 13px; }

.neh-advent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .08) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .06) 0 1.5px, transparent 2.5px) 0 0 / 34px 34px,
    linear-gradient(160deg, var(--primary-color, #0d1640), #1d2f7a);
}

.neh-door { position: relative; aspect-ratio: 4 / 5; perspective: 900px; }
.neh-door-front,
.neh-door-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.neh-door-front {
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .22);
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  color: #fff;
  font: inherit;
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.3, .7, .2, 1), box-shadow .2s ease, border-color .2s ease;
  backface-visibility: hidden;
}
.neh-door-front b { font-family: var(--font-family-secondary); font-size: clamp(34px, 5vw, 46px); line-height: 1; }
.neh-door-front small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }

.neh-door.is-locked .neh-door-front { opacity: .55; cursor: default; }
.neh-door.is-open .neh-door-front { cursor: pointer; }
.neh-door.is-open .neh-door-front:hover { border-color: var(--accent-color-yellow, #ffd23f); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.neh-door.is-open .neh-door-front:focus-visible { outline: 3px solid var(--accent-color-yellow, #ffd23f); outline-offset: 2px; }
.neh-door.is-today .neh-door-front { background: linear-gradient(150deg, #d6336c, #a61e4d); border-color: var(--accent-color-yellow, #ffd23f); animation: neh-door-pulse 2.2s ease-in-out infinite; }
.neh-door.is-today .neh-door-front small { opacity: 1; }
@keyframes neh-door-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .55); } 50% { box-shadow: 0 0 0 10px rgba(255, 210, 63, 0); } }

.neh-door.is-revealed .neh-door-front { transform: rotateY(-108deg); pointer-events: none; box-shadow: none; animation: none; }

.neh-door-back {
  z-index: 1;
  gap: 5px;
  padding: 12px 12px 12px 14px;
  background: #fff;
  border-left: 5px solid var(--c, #d6336c);
  overflow: hidden;
  visibility: hidden;
}
.neh-door.is-revealed .neh-door-back { visibility: visible; }
.neh-door-day { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6b7390); }
.neh-door-cat { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1f3f9; color: var(--primary-color); }
.neh-door-title {
  font-family: var(--font-family-secondary);
  font-size: 16px;
  line-height: 1.2;
  color: var(--primary-color) !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
a.neh-door-title:hover { text-decoration: underline; }
.neh-door-meta { font-size: 12.5px; color: var(--muted, #6b7390); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.neh-door-more { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--accent-color-bright-blue, #2f6fed) !important; }

.neh-advent-after { margin-top: 22px; }
.neh-advent-after a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .neh-door-front { transition: none; }
  .neh-door.is-today .neh-door-front { animation: none; }
}

/* ─── Home strip ─── */
.neh-advent-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, #a61e4d, #d6336c 60%, #e8590c);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(166, 30, 77, .25);
}
.neh-advent-strip:hover { filter: brightness(1.05); }
.neh-advent-strip-badge {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  border: 2px solid var(--accent-color-yellow, #ffd23f);
  font-family: var(--font-family-secondary);
  font-size: 24px;
  line-height: 1;
}
.neh-advent-strip-badge small { font-family: var(--font-family-primary); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.neh-advent-strip.is-teaser .neh-advent-strip-badge { font-size: 11px; font-family: var(--font-family-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.neh-advent-strip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.neh-advent-strip-main b { font-size: 17px; line-height: 1.25; }
.neh-advent-strip-main small { font-size: 13.5px; opacity: .9; }
.neh-advent-strip-go { flex: none; font-weight: 700; color: var(--accent-color-yellow, #ffd23f); }
@media (max-width: 575px) { .neh-advent-strip-go { display: none; } }

/* theme colours <b>/<small> — keep the door labels white */
.neh-door-front b, .neh-door-front small { color: #fff !important; }
.neh-door.is-locked .neh-door-front { opacity: .62; }
.neh-advent-strip { margin-bottom: 18px; }

/* "More holiday ideas" tiles under the calendar */
.neh-advent-after { margin-top: 34px; }
.neh-advent-more { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)) !important; }
.neh-advent-more .neh-tile-lead { font-size: 13px; color: var(--muted, #6b7390); line-height: 1.35; }

/* title on one line on desktop: only the text below it is width-limited */
.neh-advent-hero { max-width: none; }
.neh-advent-hero .neh-advent-lead, .neh-advent-hero .neh-advent-status { max-width: 760px; }
.neh-advent-hero h1 { font-size: clamp(30px, 4.6vw, 52px); }

.neh-advent-hero .neh-advent-lead, .neh-advent-hero .neh-advent-status { max-width: none; }

/* same scale as the other page titles */
.neh-advent-hero h1 { font-size: clamp(28px, 4.2vw, 44px) !important; line-height: 1.1; }
