:root {
  --paper: #f7f4ea;
  --paper-warm: #f3efe5;
  --paper-deep: #ece6d8;
  --card: #fdfbf6;
  --ink: #22211e;
  --muted: #6f6a60;
  --pine: #2c4034;
  --pine-dark: #203127;
  --gold: #b08d4f;
  --gold-soft: #eadec5;
  --ruby: #7c2d23;
  --amber: #8a5614;
  --border: rgba(34, 33, 30, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(176, 141, 79, 0.08), transparent),
    radial-gradient(circle at 12% 18%, rgba(44, 64, 52, 0.04) 0, transparent 420px);
}

a {
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

/* Gentle visible snowflakes above the calendar board */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  overflow: hidden;
}

.snow span {
  position: absolute;
  top: -14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 252, 244, 0.86);
  box-shadow: 0 0 5px rgba(176, 141, 79, 0.55);
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-12px) translateX(0);
    opacity: 0;
  }

  12% {
    opacity: 0.9;
  }

  88% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(104vh) translateX(18px);
    opacity: 0;
  }
}

/* Sticky top navigation bar */
.topwrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
}

.brand b {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: var(--pine);
}

.brand small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.back-museum {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.back-museum:hover {
  border-color: var(--gold);
  color: var(--pine);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Preview/localhost-only date simulator */
.simDate {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: var(--card);
  border: 1px dashed var(--gold);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.simDate.visible {
  display: flex;
}

.simDate input {
  border: none;
  background: transparent;
  font-size: 0.76rem;
  color: var(--ink);
  cursor: pointer;
}

.sim-presets {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: 0.2rem;
}

.sim-presets button {
  border: 1px solid var(--border);
  background: var(--paper-warm);
  color: var(--pine);
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 0.1rem 0.42rem;
  cursor: pointer;
}

.sim-presets button:hover {
  border-color: var(--gold);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

.lang button {
  background: transparent;
  border: none;
  padding: 0.34rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}

.lang button.on {
  background: var(--pine);
  color: #fff;
}

/* Hero header */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1.4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.88rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(176, 141, 79, 0.45);
  color: var(--pine);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
  line-height: 1.09;
  margin: 0.75rem 0 0.6rem;
  color: var(--pine);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 58ch;
  margin: 0 auto 1.05rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-outline-pill {
  background: var(--card);
  border: 1px solid rgba(44, 64, 52, 0.25);
  color: var(--pine);
  border-radius: 999px;
  padding: 0.48rem 0.98rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline-pill:hover {
  border-color: var(--gold);
  background: var(--paper-warm);
}

/* Advent 24-door grid */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem 3.4rem;
  position: relative;
  z-index: 2;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 820px) {
  .board {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.72rem;
  }
}

@media (max-width: 600px) {
  .board {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.78rem;
  }
}

.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  perspective: 1100px;
}

.tile.mega {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 290px;
}

@media (max-width: 600px) {
  .tile.mega {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
    min-height: 210px;
  }
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 3px 14px rgba(34, 33, 30, 0.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tile:not(.locked) .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(34, 33, 30, 0.11);
}

/* Underneath reveal interior */
.inside {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  background: #23201b;
  color: #fff;
}

.inside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.84) contrast(1.03);
  transition: transform 0.55s ease, filter 0.35s ease;
}

.tile.expired .inside img {
  filter: grayscale(0.55) sepia(0.28) brightness(0.66);
}

.card:hover .inside img {
  transform: scale(1.04);
}

.inside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(16, 15, 13, 0.88) 0%,
      rgba(16, 15, 13, 0.36) 52%,
      rgba(16, 15, 13, 0.14) 100%);
  pointer-events: none;
}

.inside>* {
  position: relative;
  z-index: 2;
}

.badge-row {
  position: absolute;
  top: 0.62rem;
  left: 0.65rem;
  right: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.daynum {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1;
  background: rgba(253, 251, 246, 0.94);
  color: var(--pine);
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
}

.state-pill {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.24rem 0.54rem;
  border-radius: 999px;
  background: rgba(44, 64, 52, 0.92);
  color: #fff;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.state-pill.yesterday {
  background: rgba(154, 92, 16, 0.95);
}

.state-pill.expired {
  background: rgba(34, 33, 30, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.state-pill.today {
  background: var(--gold);
  color: #1f1b13;
}

.gtitle {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.18;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.tile.mega .gtitle {
  font-size: 1.55rem;
}

.gsub {
  font-size: 0.72rem;
  opacity: 0.88;
  margin-top: 0.14rem;
}

/* Closed forest-pine paper door (hinged left) */
.door {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(157deg, #3c5947 0%, #2b4235 60%, #203127 100%);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.38s ease;
  backface-visibility: hidden;
  border: 1px solid rgba(32, 49, 39, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.door::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(240, 217, 167, 0.34);
  border-radius: 9px;
  pointer-events: none;
}

.door-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.35rem;
  line-height: 1;
  color: #f6e7c3;
}

.tile.mega .door-num {
  font-size: 3.45rem;
}

.door-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 231, 195, 0.78);
  margin-top: 0.22rem;
}

.door-tag {
  margin-top: 0.48rem;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.door-tag.now {
  background: var(--gold);
  color: #1f1b13;
}

.door-tag.soon {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(246, 231, 195, 0.86);
}

.tile.today-glow .door {
  background: linear-gradient(157deg, #46664f 0%, #2b4235 60%, #22352b 100%);
}

.tile.today-glow .card {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(176, 141, 79, 0.42), 0 8px 22px rgba(176, 141, 79, 0.18);
  animation: halo 2.6s ease-in-out infinite;
}

@keyframes halo {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(176, 141, 79, 0.28), 0 8px 20px rgba(176, 141, 79, 0.14);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(176, 141, 79, 0.48), 0 12px 28px rgba(176, 141, 79, 0.28);
  }
}

/* Door 24 centerpiece: deep festive burgundy/crimson gradient */
.tile.mega .door {
  background: linear-gradient(157deg, #8f3f31 0%, #5e2a22 64%, #43201a 100%);
  color: #fff;
  border-color: #3c1d18;
}

.tile.mega .door::before {
  border-color: rgba(240, 217, 167, 0.36);
}

.tile.mega.today-glow .card {
  border-color: #f0d9a7;
  box-shadow: 0 0 0 3px #f3d79b, 0 12px 30px rgba(143, 63, 49, 0.42);
}

.tile.mega .door .door-num {
  color: #f6e7c3;
}

.tile.mega .door .door-sub {
  color: rgba(240, 217, 167, 0.82);
}

.tile.mega .door .door-tag.now {
  background: #f0d9a7;
  color: #3c1d18;
}

.tile.mega .door .door-tag.soon {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(246, 231, 195, 0.85);
}

.tile.is-open .door {
  transform: perspective(900px) rotateY(-108deg);
  opacity: 0;
  pointer-events: none;
}

.tile.locked .door {
  cursor: not-allowed;
  filter: saturate(0.74) brightness(0.92);
}

.tile.locked .card:hover {
  transform: none;
}

.tile.shake .card {
  animation: doorShake 0.42s ease;
}

@keyframes doorShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px) rotate(-0.8deg);
  }

  45% {
    transform: translateX(5px) rotate(0.8deg);
  }

  70% {
    transform: translateX(-3px);
  }
}

/* Sparkle burst on today door reveal */
.sparkle-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.sparkle-burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: sparkFly 0.68s cubic-bezier(0.16, 0.88, 0.34, 1) forwards;
}

@keyframes sparkFly {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
    opacity: 0;
  }
}

/* 28th slot: symmetrical @tracemuseum community/guide card */
.tile.share-tile .card {
  background: linear-gradient(155deg, var(--pine) 0%, var(--pine-dark) 100%);
  color: #f7f4ea;
  border-color: rgba(176, 141, 79, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  text-align: left;
  cursor: default;
}

.tile.share-tile .card:hover {
  transform: none;
  box-shadow: 0 3px 14px rgba(34, 33, 30, 0.08);
}

.share-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e6c98e;
}

.share-tile-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 0.25rem 0;
  color: #fff;
}

.share-tile-desc {
  font-size: 0.74rem;
  color: rgba(247, 244, 234, 0.8);
  margin: 0;
}

.share-tile-link {
  align-self: flex-start;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1f1b13;
  background: #e6c98e;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.share-tile-link:hover {
  background: #f3dcab;
}

/* Legend & Footer */
.legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
  font-size: 0.79rem;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.foot {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.9rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.foot a {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(20, 19, 17, 0.64);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  animation: pop 0.24s ease;
  max-height: 92vh;
}

.sheet.compact {
  max-width: 490px;
  grid-template-columns: 1fr;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .sheet {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
}

.m-art {
  background: #23201b;
  min-height: 240px;
  position: relative;
}

.m-art>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-goodie-box {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.62rem 0.45rem 0.45rem;
  border-radius: 11px;
  background: rgba(253, 251, 246, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(176, 141, 79, 0.58);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.m-goodie-box[hidden] {
  display: none;
}

.m-goodie-box:hover {
  transform: translateY(-2px);
  border-color: var(--pine);
}

.m-goodie-box img {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.m-goodie-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.m-goodie-meta strong {
  font-size: 0.78rem;
  color: var(--pine);
  line-height: 1.2;
}

.m-goodie-meta small {
  font-size: 0.7rem;
  color: var(--muted);
}

.m-body {
  padding: 1.5rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  overflow-y: auto;
}

.m-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  color: var(--ink);
}

.m-day {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.m-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.16;
  margin: 0;
  color: var(--pine);
}

.m-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.m-deadline {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
  background: #fbf3e4;
  border: 1px solid #ead4a8;
  border-radius: 8px;
  padding: 0.42rem 0.65rem;
}

/* Gift Print Format Pickers */
.m-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.68rem 0.78rem;
  border-radius: 10px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
}

.opt-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 160px;
}

.opt-label {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.seg-pills {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
  width: fit-content;
}

.seg-pills button {
  border: none;
  background: transparent;
  padding: 0.34rem 0.7rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.seg-pills button.active {
  background: var(--pine);
  color: #fff;
}

.opt-group-full {
  flex: 1 1 100%;
}

.m-craft-notes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: rgba(176, 141, 79, 0.11);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.4;
}

.r2-file-note {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.m-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--pine);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.78rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s;
}

.btn:hover {
  background: var(--pine-dark);
}

.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.btn-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--pine);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-link-secondary:hover {
  border-color: var(--gold);
  background: var(--paper-warm);
}

/* Social share encouragement box */
.m-social {
  margin-top: 0.15rem;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(44, 64, 52, 0.06), rgba(176, 141, 79, 0.11));
  border: 1px dashed rgba(176, 141, 79, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.m-social p {
  font-size: 0.79rem;
  color: var(--ink);
  line-height: 1.42;
}

.m-social-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-share-sm {
  border: 1px solid rgba(44, 64, 52, 0.25);
  background: var(--card);
  color: var(--pine);
  border-radius: 7px;
  padding: 0.34rem 0.68rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-share-sm:hover {
  border-color: var(--gold);
}

/* Brevo Catch-up Email Form */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 0.74rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 33, 30, 0.25);
  background: #fff;
  font-size: 0.92rem;
  color: var(--ink);
}

.email-form input[type="email"]:focus {
  outline: 2px solid rgba(176, 141, 79, 0.45);
  border-color: var(--gold);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.52rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
}

.consent-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--pine);
}

.consent-check.secondary {
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.turnstile-slot {
  min-height: 0;
}

.form-status {
  min-height: 1.15rem;
  font-size: 0.82rem;
  color: var(--pine);
  font-weight: 600;
}

.form-status.error {
  color: var(--ruby);
}

/* Toast notifications */
.notices {
  position: fixed;
  bottom: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: min(92vw, 480px);
}

.notice {
  background: var(--pine);
  color: #fff;
  padding: 0.58rem 1.05rem;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  text-align: center;
}