/* v2-p12: travel-app look. Light gray canvas, white rounded cards, near-black pills, image cards, floating dark tab bar.
   Sans for UI, serif only for Scripture. Loaded last. */
html.v2.p12 {
  --bg: #f1f1f3; --paper: #ffffff; --paper-2: #f4f4f6; --ink: #17171a; --muted: #85858c; --line: #e7e7ea;
  --accent: #17171a; --accent-soft: #ececef; --select: #efeff2; --select-edge: #17171a; --pop: #17171a;
  --hx-indigo: #17171a; --gold: #c9a14a;
  --scripture: "Iowan Old Style", "Charter", "Source Serif 4", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --r-card: 28px; --r-mid: 20px;
}
html.v2.p12[data-theme="dark"] { --bg: #0e0e10; --paper: #1b1b1f; --paper-2: #232328; --ink: #f2f2f4; --muted: #9a9aa2; --line: #2b2b31; --accent: #f2f2f4; --accent-soft: #2b2b31; --select: #26262b; --select-edge: #f2f2f4; --hx-indigo: #f2f2f4; }
html.v2.p12 .reading .verse, html.v2.p12 blockquote, html.v2.p12 .v2-votd blockquote, html.v2.p12 .phrase-quote, html.v2.p12 .p11-pt { font-family: var(--scripture); }
html.v2.p12 h1, html.v2.p12 h2, html.v2.p12 h3 { letter-spacing: -.02em; }
html.v2.p12 .reading h2 { font-weight: 700; }
/* buttons + pills: near-black */
html.v2.p12 .v2-ov-start, html.v2.p12 .v2-read-now, html.v2.p12 .v2-dp-go { background: var(--ink); color: var(--bg); border-radius: 999px; border: 0; }
html.v2.p12 .v2-lib-chips button, html.v2.p12 .p12-chips button, html.v2.p12 .v2-map-chips button, html.v2.p12 .v2-pace-chips button { border-radius: 999px; background: var(--paper); border: 0; box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink); }
html.v2.p12 [aria-pressed="true"]:is(.v2-lib-chips button, .p12-chips button, .v2-map-chips button, .v2-pace-chips button) { background: var(--ink); color: var(--bg); box-shadow: none; }
/* cards: white, very rounded, soft */
html.v2.p12 :is(.v2-today, .p10-recap, .hx-xlist, .v2-pace, .p11-pc, .p11-when, .p11-pbg, .hx-pick, .v2-dp-choices, .p12-votd, .v2-st-story) { background: var(--paper); border: 0; border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 10px 30px -22px rgba(0,0,0,.25); }
html.v2.p12 .hx-xfeat { background: var(--ink); color: var(--bg); border-radius: var(--r-card); }
html.v2.p12 .hx-xfeat .hx-eyebrow { color: var(--gold); }
html.v2.p12 .hx-xrow-ic, html.v2.p12 .v2-st-dn { background: var(--paper-2); color: var(--ink); border-radius: 14px; }
html.v2.p12 .hx-xfind, html.v2.p12 .v2-input { border-radius: 999px; background: var(--paper); border: 0; box-shadow: 0 0 0 1px var(--line) inset; }
/* floating dark pill tab bar, icon-only, active in a white circle with a bouncy indicator */
html.v2.p12 .v2-tabs { left: 50%; right: auto; bottom: calc(14px + var(--sab)); width: min(330px, calc(100% - 40px)); transform: translateX(-50%); padding: 8px; border: 0; border-radius: 999px; background: #17171a; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); grid-template-columns: repeat(5, 1fr); }
html.v2.p12[data-theme="dark"] .v2-tabs { background: #2a2a30; }
html.v2.p12 .v2-tabs button { position: relative; z-index: 1; min-height: 44px; padding: 0; color: rgba(255,255,255,.7); border-radius: 999px; transition: color .25s; }
html.v2.p12 .v2-tabs button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.v2.p12 .v2-tabs svg { width: 22px; height: 22px; }
html.v2.p12 .v2-tabs button[aria-current="page"] { color: #17171a; }
html.v2.p12 .v2-tabs button:active { background: none; }
.p12-tabdot { position: absolute; left: 0; top: 0; z-index: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; transition: transform .55s cubic-bezier(.3,1.6,.45,1), opacity .2s; pointer-events: none; }
html.v2.p12 main, html.v2.p12 #v2-home-view { padding-bottom: calc(110px + var(--sab)); }
@media (min-width: 960px) {
  html.v2.p12 .v2-tabs { top: 50%; bottom: auto; left: 18px; width: 64px; transform: translateY(-50%); grid-template-columns: 1fr; grid-auto-rows: 52px; padding: 10px; }
  html.v2.p12 body { padding-left: 100px; }
}
/* sheets: very rounded, lighter scrim */
html.v2.p12 .v2-sheet { border-radius: 32px 32px 0 0; background: var(--bg); }
/* ---------- Home ---------- */
html.v2.p12 .p12-head { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 0; height: auto; padding: calc(var(--sat) + 18px) 22px 6px; background: none; color: var(--ink); overflow: visible; }
html.v2.p12 .p12-head .hx-greet { margin: 0; font-size: 28px; font-weight: 700; color: var(--ink); text-shadow: none; }
html.v2.p12 .p12-head .hx-date { margin: 2px 0 0; color: var(--muted); font-size: 14px; text-shadow: none; opacity: 1; }
.p12-avatar { width: 48px; height: 48px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #c9a14a, #8a5a3c); color: #fff; font-size: 19px; font-weight: 700; box-shadow: 0 0 0 3px var(--paper), 0 6px 16px -8px rgba(0,0,0,.5); cursor: pointer; }
.p12-searchrow { display: flex; gap: 10px; padding: 12px 22px 4px; }
.p12-search { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--paper); color: var(--muted); font: inherit; font-size: 16px; text-align: left; cursor: pointer; box-shadow: 0 8px 24px -20px rgba(0,0,0,.4); }
.p12-search-ic { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; position: relative; } .p12-search-ic::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--ink); right: -6px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
.p12-filter { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; display: grid; place-items: center; }
.p12-filter-ic { width: 20px; height: 14px; background: linear-gradient(var(--bg), var(--bg)) 0 0/100% 2px no-repeat, linear-gradient(var(--bg), var(--bg)) 0 6px/100% 2px no-repeat, linear-gradient(var(--bg), var(--bg)) 0 12px/100% 2px no-repeat; position: relative; }
.p12-filter-ic::before, .p12-filter-ic::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--bg); top: -2px; left: 4px; } .p12-filter-ic::after { top: 10px; left: 11px; }
html.v2.p12 .hx-body { padding-top: 6px; }
html.v2.p12 .hx-sec-h h2 { font-family: var(--sans); font-size: 21px; font-weight: 700; }
html.v2.p12 .hx-see { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.p12-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -22px 14px; padding: 2px 22px; scrollbar-width: none; touch-action: pan-x pan-y; }
.p12-chips::-webkit-scrollbar { display: none; }
.p12-chips button { flex: 0 0 auto; min-height: 42px; padding: 0 18px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.p12-chips button:active { transform: scale(.95); }
/* big image cards */
html.v2.p12 .p12-car { gap: 14px; scroll-snap-type: x mandatory; padding-bottom: 18px; }
.p12-card { position: relative; flex: 0 0 auto; width: min(78vw, 320px); height: 400px; border-radius: var(--r-card); overflow: hidden; scroll-snap-align: start; cursor: pointer; color: #fff; background: #2a2a2e; isolation: isolate;
  transform: perspective(700px) scale(var(--fs, 1)) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); opacity: var(--fo, 1); transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .3s; box-shadow: 0 22px 40px -28px rgba(0,0,0,.6); }
.p12-card[hidden] { display: none; }
.p12-card.p12-press { --rx: var(--tx); --ry: var(--ty); transform: perspective(700px) scale(calc(var(--fs, 1) * .97)) rotateX(var(--rx)) rotateY(var(--ry)); }
.p12-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.p12-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.78)); }
.p12-card-t { position: absolute; left: 20px; right: 20px; bottom: 86px; display: grid; gap: 4px; }
.p12-eyebrow { font-size: 13px; font-weight: 600; opacity: .85; }
.p12-card-t strong { font-size: 25px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p12-card-t small { font-size: 13.5px; opacity: .85; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p12-more { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 58px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px;
  background: rgba(30,30,34,.55); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.p12-arrow { position: absolute; right: 6px; top: 6px; width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.p12-arrow::after { content: ""; position: absolute; left: 15px; top: 17px; width: 10px; height: 10px; border-top: 2.2px solid #17171a; border-right: 2.2px solid #17171a; transform: rotate(45deg); }
/* save heart */
.p12-heart { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.p12-heart::before { content: ""; width: 18px; height: 16px; background: #17171a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-9-5.6-9-12A5 5 0 0 1 12 6a5 5 0 0 1 9 3c0 6.4-9 12-9 12z' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-9-5.6-9-12A5 5 0 0 1 12 6a5 5 0 0 1 9 3c0 6.4-9 12-9 12z' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center/contain no-repeat; }
.p12-heart.on::before { background: #e0475b; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-9-5.6-9-12A5 5 0 0 1 12 6a5 5 0 0 1 9 3c0 6.4-9 12-9 12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-9-5.6-9-12A5 5 0 0 1 12 6a5 5 0 0 1 9 3c0 6.4-9 12-9 12z'/%3E%3C/svg%3E"); }
.p12-heart.on { animation: p12pop .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes p12pop { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.p12-burst { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #e0475b; transform: rotate(var(--a)) translateY(0); animation: p12burst .6s ease-out forwards; }
@keyframes p12burst { to { transform: rotate(var(--a)) translateY(-30px) scale(.3); opacity: 0; } }
/* verse of the day */
html.v2.p12 .p12-votd { margin-top: 14px; padding: 20px; color: var(--ink); }
html.v2.p12 .p12-votd blockquote { margin: 6px 0 12px; font-size: 20px; line-height: 1.5; color: var(--ink); }
html.v2.p12 .p12-votd .hx-eyebrow { color: var(--muted); }
html.v2.p12 .p12-votd .hx-pill { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; min-height: 40px; padding: 0 16px; font-weight: 600; }
html.v2.p12 .hx-pick { padding: 6px; }
html.v2.p12 .hx-tile, html.v2.p12 .hx-mini { background: var(--paper); border-radius: 22px; border: 0; box-shadow: 0 8px 24px -22px rgba(0,0,0,.4); }
html.v2.p12 .hx-tile [class*="ic"], html.v2.p12 .hx-mini [class*="ic"] { background: var(--paper-2); color: var(--ink); }
/* ---------- Plans library + detail ---------- */
html.v2.p12 .v2-st-card { width: 200px; }
html.v2.p12 .v2-st-art { position: relative; height: 230px; border-radius: 24px; overflow: hidden; background: #2a2a2e; transform: scale(var(--fs, 1)); transition: transform .3s; }
html.v2.p12 .v2-st-art .p12-heart { width: 36px; height: 36px; top: 10px; right: 10px; } html.v2.p12 .v2-st-art .p12-heart::before { width: 15px; height: 13px; }
html.v2.p12 .v2-st-card.p12-press .v2-st-art { transform: perspective(600px) scale(.97) rotateX(var(--tx)) rotateY(var(--ty)); }
html.v2.p12 .v2-rt-card { background: var(--paper); border-radius: 24px; box-shadow: 0 8px 24px -20px rgba(0,0,0,.4); }
html.v2.p12 .p12-hero { position: relative; margin: -8px -20px -34px; height: 300px; border-radius: 0; overflow: hidden; padding: 0; display: block; background: #2a2a2e; }
html.v2.p12 .p12-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 100%; }
html.v2.p12 .v2-st-hero.p12-hero { color: #fff; }
html.v2.p12 .v2-st-hero.p12-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 40%, rgba(0,0,0,.35)); }
html.v2.p12 .v2-st-hero.p12-hero > .v2-eyebrow, html.v2.p12 .v2-st-hero.p12-hero > h2 { position: absolute; z-index: 1; left: 22px; right: 22px; display: none; }
html.v2.p12 .v2-st-detail { position: relative; }
html.v2.p12 .v2-st-detail > :not(.p12-hero):not(.v2-st-go) { position: relative; z-index: 1; }
html.v2.p12 .v2-st-sum { margin: 0; padding: 26px 22px 6px; background: var(--bg); border-radius: 30px 30px 0 0; }
html.v2.p12 .v2-st-sum::before { content: attr(data-t); }
.p12-day { margin: 0 0 10px; border-radius: 24px; background: var(--paper); box-shadow: 0 8px 24px -22px rgba(0,0,0,.4); overflow: hidden; }
.p12-day summary { display: grid; grid-template-columns: 64px 1fr 18px; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; cursor: pointer; list-style: none; }
.p12-day summary::-webkit-details-marker { display: none; }
.p12-day summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .3s; justify-self: center; margin-top: -4px; }
.p12-day[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.p12-thumb { width: 64px; height: 56px; border-radius: 16px; object-fit: cover; }
.p12-day summary small { display: block; color: var(--muted); font-size: 12.5px; } .p12-day summary strong { font-size: 15.5px; line-height: 1.3; }
.p12-day-b { padding: 0 16px 14px; display: grid; gap: 8px; } .p12-day-b p { margin: 0; line-height: 1.5; font-size: 15px; }
.p12-k { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
html.v2.p12 .v2-st-go { position: sticky; bottom: calc(10px + var(--sab)); z-index: 3; min-height: 58px; font-size: 17px; box-shadow: 0 16px 30px -16px rgba(0,0,0,.55); }
html.v2.p12 .p12-ovimg { height: 220px; margin: -8px -20px 16px; border-radius: 0 0 28px 28px; }
/* shared-element ghost */
.p12-ghost { position: fixed; z-index: 200; object-fit: cover; border-radius: 28px; pointer-events: none; transform-origin: 0 0; }
.p12-ghost.go { transition: transform .48s cubic-bezier(.2,.9,.25,1), border-radius .48s; border-radius: 0; }
.p12-ghost.out { opacity: 0; transition: opacity .2s; }
/* staggered entrances */
.p12-enter { animation: p12in .5s cubic-bezier(.2,.9,.3,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes p12in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
html.v2.p12 .hx-xrow.p12-press, html.v2.p12 .v2-rt-card.p12-press, html.v2.p12 .hx-xfeat.p12-press { transform: scale(.98); transition: transform .12s; }
@media (prefers-reduced-motion: reduce) {
  .p12-card, .p12-tabdot, .p12-heart, .v2-st-art { transition: none !important; }
  .p12-enter, .p12-heart.on { animation: none !important; }
}
/* iteration 1 */
html.v2.p12.v2-home-on .v2-bar { opacity: 0; pointer-events: none; transform: translateY(-100%); }
html.v2.p12.v2-home-on.hx-scrolled .v2-bar { opacity: 1; pointer-events: auto; transform: none; transition: transform .3s, opacity .3s; }
html.v2.p12 .p12-head .hx-date { text-transform: none; letter-spacing: 0; font-weight: 500; }
html.v2.p12 .v2-intro { background: var(--paper); border: 0; border-radius: var(--r-card); box-shadow: 0 10px 30px -24px rgba(0,0,0,.35); }
html.v2.p12 .v2-intro .v2-eyebrow, html.v2.p12 .p11-k, html.v2.p12 .v2-ts-k { color: var(--muted); }
@media (max-width: 899px) { html.v2.p12 .p11-rrail { bottom: calc(92px + var(--sab)); right: 16px; opacity: .85; } }
html.v2.p12 .v2-bar { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 0; }
html.v2.p12 .v2-brand img, html.v2.p12 .v2-brand { border-radius: 14px; }
html.v2.p12 .v2-ref, html.v2.p12 #v2-ref { background: var(--paper); border-radius: 999px; }
html.v2.p12 .v2-tabs button { display: grid; place-items: center; gap: 0; }
html.v2.p12 .hx .p12-head { padding: calc(var(--sat) + 18px) 22px 6px !important; max-width: 720px; margin: 0 auto; }
html.v2.p12 .p12-searchrow { max-width: 720px; margin: 0 auto; }
html.v2.p12 .hx-votd.p12-votd, html.v2.p12 .p12-votd blockquote { color: var(--ink) !important; text-shadow: none !important; background: var(--paper) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.v2.p12 .p12-votd blockquote { background: none !important; }
html.v2.p12 .p12-votd .hx-pill { color: var(--bg) !important; }
html.v2.p12 .hx-votd.p12-votd { margin: 14px 20px 0 !important; width: auto !important; max-width: none !important; border-radius: var(--r-card) !important; padding: 20px !important; box-shadow: 0 10px 30px -24px rgba(0,0,0,.35) !important; }
html.v2.p12 .p12-votd blockquote { font-family: var(--scripture) !important; font-size: 20px !important; }
html.v2.p12 .v2-st-days { list-style: none; padding: 0; } html.v2.p12 .p12-li { display: block; padding: 0; border: 0; background: none; }
