/* 12 Months of Memories pages. Uses the colours from styles.css. */

.mem-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px 80px; }
.mem-title { margin-bottom: 8px; }
.mem-hero { width: 100%; border-radius: 20px; margin-bottom: 24px; box-shadow: var(--shadow-lg); display: block; }

.mem-price-card { background: var(--warm-light); border-radius: 20px; padding: 28px; margin-bottom: 20px; }
.mem-price-card__title { font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.mem-price-card__sub { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.mem-price-card__price { font-size: 36px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.mem-price-card__each { font-size: 13px; color: var(--text-light); }

.mem-gift-fields { background: var(--warm-light); border-radius: 14px; padding: 18px; margin: 16px 0; }
.mem-steps { grid-template-columns: repeat(4, 1fr); max-width: 1100px; }
.mem-error { color: var(--danger); font-size: 14px; margin-top: 10px; min-height: 1px; }
.mem-small { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-top: 12px; }
.mem-small a { color: var(--brand); }

/* Narrow single-column pages: thanks, activate, upload */
.mem-narrow { max-width: 560px; margin: 0 auto; padding: 48px 20px 80px; text-align: center; }
.mem-narrow--wide { max-width: 760px; }
.mem-lead { font-size: 17px; color: var(--text-light); line-height: 1.6; margin-bottom: 24px; }
.mem-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px; text-align: left; margin-bottom: 24px; }
.mem-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 32px; line-height: 64px; margin: 0 auto 20px; text-align: center; }
.mem-code-input { font-size: 24px; letter-spacing: 4px; text-align: center; font-family: Menlo, Consolas, monospace; text-transform: uppercase; }

.mem-gift-note { background: var(--warm); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.mem-gift-note__to { font-weight: 600; margin-bottom: 6px; }
.mem-gift-note__msg { font-family: 'DM Serif Display', Georgia, serif; font-size: 19px; line-height: 1.4; margin-bottom: 6px; }
.mem-gift-note__from { color: var(--text-light); font-size: 14px; }

/* Upload page month grid */
.mem-upload-title { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.mem-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; text-align: left; }
.mem-month { background: var(--white); border: 2px solid var(--cream); border-radius: 14px; padding: 10px; cursor: pointer; font-family: inherit; text-align: left; transition: border-color .2s; }
.mem-month:disabled { cursor: default; }
.mem-month.is-chosen { border-color: var(--brand); }
.mem-month__pic { aspect-ratio: 107 / 73.5; border-radius: 8px; background: var(--cream) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', Georgia, serif; font-size: 28px; color: rgba(81,124,99,.35); margin-bottom: 8px; }
.mem-month__name { font-size: 13px; font-weight: 600; }
.mem-month__state { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.mem-month--open, .mem-month--late { border-color: var(--brand-light); }
.mem-month--open .mem-month__state, .mem-month--late .mem-month__state { color: var(--brand); font-weight: 600; }
.mem-month--late .mem-month__state { color: var(--accent); }
.mem-month--sent .mem-month__state { color: var(--success); }
.mem-month--future, .mem-month--closed { opacity: .55; }

@media (max-width: 768px) {
  .mem-wrap { padding: 0 16px 60px; }
  .mem-steps { grid-template-columns: 1fr; }
  .mem-months { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mem-card { padding: 20px; }
}
@media (max-width: 420px) {
  .mem-months { grid-template-columns: repeat(2, 1fr); }
}

/* ── Printable gift card ─────────────────────────────────────────────────── */
.gc-body { margin: 0; background: #F5F3EE; font-family: 'DM Sans', sans-serif; color: #222; }
.gc-tools { max-width: 720px; margin: 0 auto; padding: 24px 16px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; color: #6B6B6B; }
.gc-print { background: #517C63; color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.gc-sheet { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
/* Folded card: two A6 panels side by side = A5 landscape (210 x 148mm) */
.gc-card { display: grid; grid-template-columns: 1fr auto 1fr; background: #fff; box-shadow: 0 8px 32px rgba(34,34,34,.1); aspect-ratio: 210 / 148; }
.gc-fold { width: 0; border-left: 1px dashed #c8c6c0; }
.gc-front { background: #517C63; color: #fff; padding: 8% 8%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gc-logo { width: 46%; max-width: 140px; filter: brightness(0) invert(1); margin-bottom: 10%; }
.gc-eyebrow { font-size: clamp(10px, 1.8vw, 13px); letter-spacing: 2px; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.gc-title { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(24px, 5.2vw, 38px); line-height: 1.05; margin-bottom: 10px; }
.gc-sub { font-size: clamp(10px, 1.8vw, 13px); opacity: .9; }
.gc-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 9%; width: 60%; }
.gc-dots span { aspect-ratio: 107 / 73.5; background: rgba(255,255,255,.22); border-radius: 3px; }
.gc-dots span:first-child { background: #C4956A; }
.gc-inside { padding: 7% 7%; display: flex; flex-direction: column; justify-content: space-between; }
.gc-message { text-align: center; }
.gc-to { font-weight: 600; font-size: clamp(11px, 1.9vw, 14px); margin-bottom: 4px; }
.gc-msg { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(13px, 2.4vw, 18px); line-height: 1.35; margin-bottom: 4px; }
.gc-from { color: #6B6B6B; font-size: clamp(11px, 1.8vw, 13px); }
.gc-start { display: flex; gap: 6%; align-items: center; }
.gc-qr { flex: 0 0 auto; width: clamp(64px, 14vw, 112px); }
.gc-qr img, .gc-qr canvas { width: 100% !important; height: auto !important; display: block; }
.gc-how { font-size: clamp(10px, 1.7vw, 12px); color: #6B6B6B; line-height: 1.4; margin-bottom: 8px; }
.gc-how strong { color: #222; }
.gc-code-label { font-size: clamp(9px, 1.4vw, 10px); letter-spacing: 1.5px; text-transform: uppercase; color: #6B6B6B; }
.gc-code { font-family: Menlo, Consolas, monospace; font-weight: 700; font-size: clamp(16px, 3vw, 22px); letter-spacing: 2px; }
.gc-steps { font-size: clamp(10px, 1.6vw, 12px); color: #6B6B6B; line-height: 1.5; text-align: center; border-top: 1px solid #F5F3EE; padding-top: 8px; }

@media print {
  @page { size: A5 landscape; margin: 0; }
  .gc-body { background: #fff; }
  .gc-tools { display: none; }
  .gc-sheet { padding: 0; max-width: none; }
  .gc-card { box-shadow: none; width: 210mm; height: 148mm; aspect-ratio: auto; }
  .gc-front { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gc-dots span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
