/* Libro de firmas de XV (item 1098): Rosa's look (docs/stores/mexico/xv) as store tokens on the page root, parts prefixed xv-; gold text darkened for 4.5:1, Large & clear takes the L&C accent. */
@font-face { font-family: Italiana; src: url(/fonts/xv/Italiana-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Lora; src: url(/fonts/xv/Lora-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Lora; font-weight: 700; src: url(/fonts/xv/Lora-Bold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: XvHand; src: url(/fonts/xv/NothingYouCouldDo-Regular.woff2) format("woff2"); font-display: swap; }
body.xvp, body.xvo { --xv-paper: #fff8f1; --xv-ink: #3b1f2b; --xv-soft: #7a5563; --xv-rosa: #c8106e; --xv-oro: #8a6118; --xv-line: #ead8cc; --xv-card: #fff; --xv-on: #fff;
  margin: 0; background: var(--xv-paper); color: var(--xv-ink); font: 17px/1.5 Lora, Georgia, serif; -webkit-tap-highlight-color: transparent; }
@media (prefers-color-scheme: dark) {
  body.xvp, body.xvo { --xv-paper: #1d1216; --xv-ink: #f6e9ee; --xv-soft: #c9a9b6; --xv-rosa: #ff5fae; --xv-oro: #e2b55a; --xv-line: #3d2a31; --xv-card: #2a1b21; --xv-on: #2a0716; }
}
[data-theme="large"] body.xvp, [data-theme="large"] body.xvo { --xv-rosa: #98241c; --xv-oro: #98241c; --xv-soft: #4a2f3a; font-size: 19px; }
@media (prefers-color-scheme: dark) { [data-theme="large"] body.xvp, [data-theme="large"] body.xvo { --xv-rosa: #ff8475; --xv-oro: #ff8475; --xv-soft: #ead6de; --xv-on: #2a0716; } }
.xv-main { max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 0 22px calc(32px + env(safe-area-inset-bottom)); }
.xv-main * { box-sizing: border-box; }
.xv-main p { margin: 0; }
.xv-picado { display: block; width: calc(100% + 44px); max-width: none; height: 64px; margin: 0 -22px; }
.xv-kick { font: 400 17px/1.3 Lora, serif; letter-spacing: .3em; text-transform: uppercase; text-align: center; color: var(--xv-rosa); margin: 18px 0 8px; overflow-wrap: anywhere; }
.xv-planner { font: 600 15px/1.3 Lora, serif; text-align: center; color: var(--xv-rosa); margin: 14px 0 0; overflow-wrap: anywhere; }
.xv-hello { font-size: 19px; letter-spacing: .2em; }
.xv-name { font: 400 44px/1.05 Italiana, serif; text-align: center; letter-spacing: .02em; margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.xv-h2 { font: 400 32px/1.15 Italiana, serif; margin: 10px 0 4px; overflow-wrap: anywhere; }
.xv-when { text-align: center; color: var(--xv-soft); margin: 10px 0 18px !important; }
.xv-when b { display: block; color: var(--xv-ink); font-size: 19px; }
.xv-when b::first-letter { text-transform: uppercase; }
.xv-place { font-size: 17px; margin: 4px 0 !important; }
.xv-rule { height: 1px; background: var(--xv-line); margin: 18px 0; }
.xv-lbl { font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: var(--xv-oro); margin-bottom: 6px !important; }
.xv-pl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 17px; }
.xv-pl p { overflow-wrap: anywhere; }
.xv-pl span { color: var(--xv-soft); display: block; font-size: 17px; }
.xv-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; border-radius: 14px; padding: 12px 16px; margin-top: 16px;
  font: 700 17px Lora, serif; text-align: center; text-decoration: none; background: var(--xv-rosa); color: var(--xv-on); cursor: pointer; touch-action: manipulation; }
.xv-btn.s { background: transparent; color: var(--xv-ink); border: 1.5px solid var(--xv-line); }
.xv-btn:disabled { opacity: .6; }
.xv-btn[aria-pressed="true"] { border-color: var(--xv-rosa); }
[data-theme="large"] .xv-btn { min-height: 56px; font-size: 19px; }
[data-theme="large"] .xv-btn.s { border-color: var(--xv-ink); }
.xv-row { display: flex; gap: 10px; }
.xv-row .xv-btn { flex: 1; }
.xv-row select { flex: 1; min-width: 0; min-height: 48px; appearance: none; -webkit-appearance: none; padding: 13px 8px; text-overflow: ellipsis; }
.xv-row select:first-child { flex: .8; }
.xv-row select:nth-child(2) { flex: 1.6; }
.xv-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--xv-rosa); font-size: 17px; }
.xv-f { display: block; margin: 14px 0 0; }
.xv-f span { display: block; font-size: 17px; color: var(--xv-soft); margin-bottom: 6px; }
.xv-f input, .xv-f textarea, .xv-f select { width: 100%; border: 1.5px solid var(--xv-line); background: var(--xv-card); color: var(--xv-ink); border-radius: 14px; padding: 13px; font: 17px Lora, serif; }
[data-theme="large"] .xv-f input, [data-theme="large"] .xv-f textarea, [data-theme="large"] .xv-f select { border-color: var(--xv-soft); font-size: 19px; }
.xv-f textarea.xv-hand { min-height: 196px; }
.xv-hand { font: 22px/1.35 XvHand, cursive; overflow-wrap: anywhere; white-space: pre-wrap; }
[data-theme="large"] .xv-hand { font-size: 24px; }
.xv-sub { color: var(--xv-soft); font-size: 17px; }
.xv-center { text-align: center; }
.xv-err { color: var(--xv-rosa); font-weight: 700; margin-top: 12px !important; }
/* the family's link: the invitation, then the message (#escribe) */
.xv-write { display: none; }
.xv-write:target { display: block; }
.xv-main:has(.xv-write:target) .xv-inv { display: none; }
.xv-back { display: flex; align-items: center; gap: 10px; min-height: 52px; padding-top: 6px; color: var(--xv-soft); text-decoration: none; font-size: 17px; }
.xv-back b { color: var(--xv-ink); font-size: 17px; }
.xv-media { flex-wrap: wrap; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border: 1.5px solid var(--xv-line); border-radius: 14px; background: var(--xv-card); font-size: 17px; }
.xv-media[hidden], .xv-done[hidden], .xv-form[hidden], .xv-toast[hidden], .xv-err[hidden] { display: none; }
.xv-media img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.xv-media .xv-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--xv-rosa); }
.xv-media span { flex: 1; }
.xv-media button { all: unset; cursor: pointer; color: var(--xv-rosa); min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
/* 2061: each photo is shown whole with Girar and Quitar under it (one photo 200 px, several 140 px each) */
.xv-media .xv-pf { flex: 1 0 100%; display: flex; flex-direction: column; gap: 10px; }
.xv-media .xv-pf img { width: 100%; height: 200px; object-fit: contain; border-radius: 10px; background: var(--xv-card); }
.xv-media[data-many] .xv-pf img { height: 140px; }
.xv-media .xv-pvb { display: flex; gap: 10px; }
.xv-media .xv-pvb button { flex: 1; justify-content: center; min-height: 48px; border: 1.5px solid var(--xv-line); border-radius: 12px; color: var(--xv-ink); }
.xv-media .xv-pvb button[data-a="turn"] { border-color: var(--xv-rosa); color: var(--xv-rosa); }
@media (max-height: 500px) { .xv-media .xv-pf img { height: 180px; } .xv-media[data-many] .xv-pf img { height: 120px; } }
.xv-done { padding-top: 24px; }
.xv-next { display: block; margin-top: 28px; padding: 16px; border: 1.5px solid var(--xv-line); border-radius: 14px; color: var(--xv-ink); text-decoration: none; font-weight: 700; }
/* Valentina's link: sealed, then the book */
.xv-env { position: relative; margin: 28px auto 8px; width: min(280px, 100%); height: 190px; background: var(--xv-card); border: 1.5px solid var(--xv-line); border-radius: 10px; overflow: hidden; }
.xv-env::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(to bottom right, transparent 49.5%, var(--xv-line) 50%, transparent 51%), linear-gradient(to bottom left, transparent 49.5%, var(--xv-line) 50%, transparent 51%); }
.xv-seal { position: absolute; left: 50%; top: 92px; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: var(--xv-rosa); color: var(--xv-on); display: grid; place-items: center; font: 400 26px Italiana, serif; box-shadow: 0 0 0 5px color-mix(in srgb, var(--xv-rosa) 30%, transparent); }
.xv-count { text-align: center; font: 600 56px/1 Lora, Georgia, serif; font-variant-numeric: lining-nums; color: var(--xv-rosa); margin-top: 18px !important; }
.xv-c { text-align: center; }
.xv-msg { background: var(--xv-card); border: 1.5px solid var(--xv-line); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.xv-who { font-size: 17px; color: var(--xv-oro); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.xv-msg .xv-hand { margin-top: 6px !important; }
.xv-msg audio { width: 100%; margin-top: 8px; }
.xv-ph { display: block; width: 100%; height: auto; border-radius: 10px; margin-top: 8px; }
.xv-toast { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 398px; margin: 0 auto; padding: 12px 16px; border-radius: 14px; background: var(--xv-ink); color: var(--xv-paper); }
@media (min-width: 700px) { .xv-main { padding-top: 24px; } .xv-picado { width: 100%; margin: 0; } }
@media (max-width: 340px) { .xv-pl { grid-template-columns: 1fr; } }
[data-theme="large"] .xv-pl { grid-template-columns: 1fr; }
/* the site bar with Rosa's band (start page) and the madre's own page (1090's organiser parts) speak Rosa's look through the shared tokens */
body.xvp, body.xvo { --bg: var(--xv-paper); --surface: var(--xv-card); --ink: var(--xv-ink); --muted: var(--xv-soft); --accent: var(--xv-rosa); --on-accent: var(--xv-on); --rule: var(--xv-line); --line: var(--xv-line);
  --display: Italiana, Georgia, serif; --body: Lora, Georgia, serif; }
body.xvo { margin: 0; background: var(--xv-paper); color: var(--xv-ink); font: 17px/1.5 Lora, Georgia, serif; }
body.xvo .lv-main { padding-top: 0; }
body.xvo .lv-main > .xv-picado { width: calc(100% + 32px); margin: 0 -16px; }
body.xvo h1 { font: 400 2rem/1.15 Italiana, Georgia, serif; }
body.xvo .lv-big { font: 600 3rem/1 Lora, Georgia, serif; font-variant-numeric: lining-nums; color: var(--xv-rosa); }
body.xvo .lv-signed summary { font-weight: 400; }
@media (min-width: 700px) { body.xvo .lv-main > .xv-picado { width: 100%; margin: 0; } }
body.xvo .lv-ghost { white-space: nowrap; }

.xv-vid { width: 100%; max-height: 70dvh; border-radius: 14px; background: #000; margin-top: 10px; }
.xv-prog { font-size: 17px; margin: 12px 0; }
.xv-row { flex-wrap: wrap; }
.xv-prog[hidden], .xv-done [hidden] { display: none; }
.xv-link[hidden] { display: none; }
.xv-done button.xv-link { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.xv-remind { margin-top: 20px; display: grid; gap: 12px; }
.xv-remind .xv-sub { margin: 0; }

/* 2346: after her day, the family link: a quiet way to write under the count; the writer's own message stands out when the book reopens at it */
.xv-late { display: block; text-align: center; margin: 4px 0 14px; color: var(--xv-rosa); font-weight: 600; text-decoration: none; }
.xv-first { margin: 12px 0 18px; }
.xv-msg:target { border-color: var(--xv-rosa); }

/* 1928: the book's loop (thank-you, party photos, the book to print) */
.lp-card { background: var(--xv-card, transparent); border: 1px solid var(--xv-line, currentColor); border-radius: 16px; padding: 16px; margin: 14px 0; }
.lp-ok { margin: 0 0 8px; font-size: 17px; }
.lp-hand { font-family: XvHand, cursive; font-size: 26px; line-height: 1.3; overflow-wrap: anywhere; margin: 0; }
.lp-from { text-align: end; margin: 6px 0 0; }
.lp-form { margin-top: 12px; }
.lp-form textarea { width: 100%; min-height: 96px; box-sizing: border-box; margin-bottom: 10px; }
.lp-book { display: block; text-align: center; text-decoration: none; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.lp-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.lp-fiesta { margin: 18px 0; }
/* 2451: una pregunta al día - the question over the form, chips for earlier questions, the chapter on her day */
.xq-q { text-align: center; margin: 6px 0 10px; overflow-wrap: anywhere; }
.xq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.xq-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--xv-line); border-radius: 999px; color: var(--xv-ink); text-decoration: none; background: var(--xv-card); }
.xq-others { margin: 18px 0; }
.xq-chapter { margin: 22px 0; }
.xq-qh { font: 600 18px/1.35 Lora, serif; color: var(--xv-oro); margin: 20px 0 8px; overflow-wrap: anywhere; }

/* 2509: the cover chooser (picture docs/design/sketches/2509-picture.md, option A): her photo and name in every look, a tap chooses. */
@font-face { font-family: "Pinyon Script"; src: url(/fonts/xv/PinyonScript-Regular.woff2) format("woff2"); font-display: swap; }
.dc { margin-top: 22px; scroll-margin-top: 72px; }
.dc-grid { scroll-margin-top: 72px; }
.dc-h { font: 400 26px/1.2 Italiana, serif; margin: 0 0 4px; }
.dc-sub, .dc-note { color: var(--xv-soft); font-size: 17px; margin: 0 0 4px !important; }
.dc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; align-items: stretch; }
.dc-tile { display: flex; flex-direction: column; padding: 0; background: var(--xv-card); border: 2px solid var(--xv-line); border-radius: 14px; overflow: hidden; color: var(--xv-ink); font: inherit; text-align: start; cursor: pointer; min-height: 44px; }
.dc-tile.on { border-color: var(--xv-rosa); }
.dc-art { display: block; aspect-ratio: 4 / 5; }
.dc-art svg { display: block; width: 100%; height: 100%; }
.dc-cap { display: block; flex: 1; padding: 8px 10px; font-size: 17px; overflow-wrap: anywhere; }
.dc-on { display: block; font-style: normal; color: var(--xv-rosa); }
.dc-on:empty { display: none; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dc-chip { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--xv-line); border-radius: 22px; background: transparent; color: var(--xv-ink); font: inherit; }
.dc-chip.on { border-color: var(--xv-rosa); color: var(--xv-rosa); }
/* 2669 (picture option C): the start page shows one big cover and the six as a strip, before her photo */
.dc.c .dc-big { position: relative; width: min(100%, 340px); margin: 14px auto 12px; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--xv-card); }
.dc.c .dc-big .dc-art { height: 100%; }
.dc.c .dc-photo { display: flex; width: min(100%, 340px); margin-inline: auto; justify-content: center; }
.dc.c .dc-grid, .xv-main .dc.c:not(.lv-box) .dc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dc.c .dc-cap { font-size: 15px; padding: 6px 8px; min-height: 0; }
.dc.c .dc-on { display: none; }
.dc-stand { position: absolute; transform: translate(-50%, -50%); padding: 6px 14px; border-radius: 999px; background: var(--xv-card); color: var(--xv-ink); font-size: 17px; font-weight: 600; line-height: 1.2; font-style: normal; white-space: nowrap; pointer-events: none; }
.dc-cover { margin: 14px auto 0; max-width: 340px; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
.dc-cover svg { display: block; width: 100%; height: 100%; }
.xv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dc-now { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; min-height: 44px; }
.dc-now a { color: var(--xv-rosa); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 820px) { .xv-main .dc:not(.lv-box) { width: min(760px, calc(100vw - 48px)); margin-inline-start: 50%; transform: translateX(-50%); } .xv-main .dc:not(.lv-box) .dc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .dc-cap { min-height: calc(2.6em + 16px); } }
/* 2678: a phone turned sideways shows the chosen cover beside the date, the places and Escríbele, not only the cover's top */
@media (orientation: landscape) and (max-height: 520px) {
  .xv-inv:has(> .dc-cover) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .xv-inv:has(> .dc-cover) > * { grid-column: 2; }
  .xv-inv:has(> .dc-cover) > .xv-picado { grid-column: 1 / -1; grid-row: 1; }
  .xv-inv:has(> .dc-cover) > .dc-cover { grid-column: 1; grid-row: 2 / span 20; height: calc(100svh - 120px); width: auto; max-width: none; margin: 8px 0 0; }
}

/* 2216 live review 3: Enviar stays on screen (picture: sticky bar with the Voz/Fotos/Video row above it; sideways the page scrolls under it) */
.xv-bar { position: sticky; bottom: 0; z-index: 3; background: var(--xv-paper); margin: 0 -22px; padding: 6px 22px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--xv-line); }
.xv-bar .xv-btn { margin-top: 8px; }
.xv-bar .xv-row .xv-btn { margin-top: 0; }
@media (max-height: 500px) and (orientation: landscape) { .xv-bar .xv-btn { min-height: 44px; } .xv-bar .xv-row { flex-wrap: nowrap; } .xv-bar .xv-row .xv-btn { padding-inline: 8px; } }
.xv-main > [hidden] { display: none; }
