/* v2-p13: Museum & Archive. Parchment, ink, oxblood and brass. Cormorant Garamond display, Inter for small UI. */
@font-face { font-family: "Inter"; src: url(fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-Bold.woff2) format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/CormorantGaramond-Medium.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/CormorantGaramond-SemiBold.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
html.v2.p12.p13 {
  --bg: #f3ead8; --paper: #fbf6ea; --paper-2: #efe4cd; --ink: #2a2118; --muted: #7b6c58; --line: #d8c9ab;
  --accent: #2A2DB0; --accent-soft: #ead6cf; --select: #f0e2c6; --select-edge: #2A2DB0; --pop: #2A2DB0;
  --brass: #a7843f; --brass-2: #c9a65c; --oxblood: #2A2DB0; --gold: #a7843f; --hx-indigo: #2A2DB0;
  --display: "Cormorant Garamond", "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --serif: var(--display);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --r-card: 6px; --r-mid: 4px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260'%3E%3Cg fill='none' stroke='%23a7843f' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M-10 200c60-40 110-10 170-40s90-90 160-70 90 40 120 30'/%3E%3Cpath d='M-10 220c70-40 120-10 180-38s95-92 170-72 85 42 110 34'/%3E%3Cpath d='M-10 240c80-40 130-10 190-36s100-94 180-74 80 44 100 38'/%3E%3Cpath d='M40 40c30-20 70-10 90 10s50 30 80 10' stroke-dasharray='4 5'/%3E%3C/g%3E%3Cg transform='translate(352 62)' fill='none' stroke='%23a7843f' stroke-opacity='.35'%3E%3Ccircle r='26'/%3E%3Ccircle r='20' stroke-dasharray='1 3'/%3E%3Cpath d='M0-34L5 0 0 34-5 0z' fill='%23a7843f' fill-opacity='.18'/%3E%3Cpath d='M-34 0L0 4 34 0 0-4z'/%3E%3C/g%3E%3C/svg%3E");
}
html.v2.p12.p13[data-theme="dark"] {
  --bg: #1c1612; --paper: #261e18; --paper-2: #2f251d; --ink: #eadfc8; --muted: #a8977b; --line: #43362a;
  --accent: #d1a95a; --accent-soft: #3a2a20; --select: #33281f; --select-edge: #d1a95a; --pop: #d1a95a; --brass: #c9a65c; --brass-2: #e0c07a; --oxblood: #b04a4f; --hx-indigo: #d1a95a;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .8 0 0 0 0 .6 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.v2.p13 body { background-color: var(--bg); background-image: var(--noise); }
html.v2.p13 h1, html.v2.p13 h2, html.v2.p13 h3, html.v2.p13 .hx-greet, html.v2.p13 .p12-card-t strong, html.v2.p13 .v2-sheet-head h2 { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
html.v2.p13 .reading h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 8vw, 2.8rem); }
html.v2.p13 .hx-eyebrow, html.v2.p13 .v2-eyebrow, html.v2.p13 .p13-catalog, html.v2.p13 .p11-k { font-family: var(--sans); font-size: 10.5px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--brass) !important; font-weight: 600; }
/* cards: thin-ruled frames on paper */
html.v2.p13 :is(.v2-today, .p10-recap, .hx-xlist, .v2-pace, .p11-pc, .p11-when, .p11-pbg, .hx-pick, .p12-votd, .v2-st-story, .v2-intro, .p12-day, .v2-rt-card, .hx-tile, .hx-mini) {
  background: var(--paper) !important; border-radius: var(--r-card) !important; box-shadow: 0 0 0 1px var(--line), 0 0 0 4px var(--paper), 0 0 0 5px var(--line), 0 14px 26px -22px rgba(60,40,20,.45) !important; border: 0 !important; }
html.v2.p13 .hx-xfeat { background: var(--oxblood) !important; color: #f6ecd8 !important; border-radius: var(--r-card) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 0 5px var(--oxblood), inset 0 0 0 6px rgba(201,166,92,.6) !important; background-image: var(--contour) !important; background-size: cover !important; }
html.v2.p13 .hx-xfeat .hx-eyebrow { color: var(--brass-2) !important; }
html.v2.p13 .hx-xrow-ic, html.v2.p13 .v2-st-dn { background: transparent !important; color: var(--oxblood); box-shadow: inset 0 0 0 1px var(--brass); border-radius: 50% !important; }
html.v2.p13 .hx-xgroup > h2, html.v2.p13 .hx-xgroup h3, html.v2.p13 .p13-divider { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
html.v2.p13 .p13-divider::after, html.v2.p13 .hx-xgroup > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--brass), transparent); }
/* pills and chips: oxblood + brass */
html.v2.p13 .v2-ov-start, html.v2.p13 .v2-read-now, html.v2.p13 .v2-dp-go, html.v2.p13 .p13-pill-dark, html.v2.p13 .p12-votd .hx-pill { background: var(--oxblood) !important; color: #f6ecd8 !important; border-radius: 4px !important; box-shadow: inset 0 0 0 1px rgba(201,166,92,.7), 0 8px 18px -12px rgba(42,45,176,.8) !important; font-family: var(--sans); letter-spacing: .04em; }
html.v2.p13[data-theme="dark"] :is(.v2-ov-start, .v2-read-now, .p13-pill-dark, .p12-votd .hx-pill) { color: #1c1612 !important; background: var(--brass) !important; }
html.v2.p13 :is(.v2-lib-chips button, .p12-chips button, .v2-map-chips button, .v2-pace-chips button) { border-radius: 3px !important; background: transparent !important; box-shadow: inset 0 0 0 1px var(--line) !important; font-size: 13px; letter-spacing: .03em; }
html.v2.p13 [aria-pressed="true"]:is(.v2-lib-chips button, .p12-chips button, .v2-map-chips button, .v2-pace-chips button) { background: var(--ink) !important; color: var(--bg) !important; box-shadow: inset 0 -3px 0 var(--brass) !important; }
/* tab bar: parchment, engraved icons, brass indicator */
html.v2.p12.p13 .v2-tabs { left: 0; right: 0; bottom: 0; width: auto; transform: none; border-radius: 0; padding: 4px 6px calc(4px + var(--sab)); background: color-mix(in srgb, var(--paper) 94%, transparent); background-image: var(--noise); box-shadow: 0 -1px 0 var(--line), 0 -4px 0 -3px var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html.v2.p12.p13[data-theme="dark"] .v2-tabs { background: color-mix(in srgb, var(--paper) 94%, transparent); }
html.v2.p12.p13 .v2-tabs button { color: var(--muted); min-height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
html.v2.p12.p13 .v2-tabs button span { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-family: var(--sans); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
html.v2.p12.p13 .v2-tabs svg { stroke-width: 1.3; filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
html.v2.p12.p13 .v2-tabs button[aria-current="page"] { color: var(--oxblood); }
html.v2.p12.p13[data-theme="dark"] .v2-tabs button[aria-current="page"] { color: var(--brass-2); }
html.v2.p13 .p12-tabdot { width: 30px !important; height: 3px !important; border-radius: 2px; background: var(--brass); margin-top: -6px; }
html.v2.p12.p13 main, html.v2.p12.p13 #v2-home-view { padding-bottom: calc(90px + var(--sab)); }
@media (min-width: 960px) { html.v2.p12.p13 .v2-tabs { top: 0; bottom: 0; left: 0; width: 88px; transform: none; border-radius: 0; box-shadow: 1px 0 0 var(--line); grid-auto-rows: 72px; padding-top: calc(var(--barh) + 1rem); } html.v2.p12.p13 body { padding-left: 88px; } }
html.v2.p13 .v2-bar { background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 0 1px 0 var(--line); }
/* sheets: drawer of an archive cabinet */
html.v2.p13 .v2-sheet { border-radius: 10px 10px 0 0 !important; background: var(--bg); background-image: var(--noise); box-shadow: 0 -1px 0 var(--brass), 0 -20px 40px -20px rgba(40,25,10,.5); }
html.v2.p13 .v2-grab { background: var(--brass); opacity: .7; width: 54px; }
/* ---------- Home ---------- */
html.v2.p13 .hx { background-image: var(--contour); background-repeat: no-repeat; background-position: right -40px top -10px; }
html.v2.p13 .p12-head .hx-greet { font-size: 36px; font-weight: 600; }
html.v2.p13 .p12-head .hx-date { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.p13-head-actions { display: flex; align-items: center; gap: 8px; }
.p13-iconbtn, .p13-theme { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; }
.p13-iconbtn svg, .p13-theme svg { width: 21px; height: 21px; }
.p13-theme span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .35s; }
.p13-theme .p13-moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
.p13-theme[aria-pressed="true"] .p13-sun { transform: rotate(90deg) scale(.4); opacity: 0; } .p13-theme[aria-pressed="true"] .p13-moon { transform: none; opacity: 1; }
.v2-bar .p13-theme, .v2-bar .p13-savedbtn { box-shadow: none; width: 40px; height: 40px; }
.v2-bar .p13-savedbtn svg { width: 22px; height: 22px; }
html.p13-themeswap body, html.p13-themeswap .v2-tabs, html.p13-themeswap .v2-bar { transition: background-color .5s, color .5s; }
html.v2.p13 .p13-seal, html.v2.p13 .p12-avatar { background: radial-gradient(circle at 35% 30%, #9a3a3f, #2A2DB0 60%, #4d1418) !important; color: #f6dfb0 !important; font-family: var(--display); font-weight: 700; box-shadow: 0 0 0 2px rgba(42,45,176,.25), inset 0 0 0 3px rgba(0,0,0,.15), inset 0 0 0 5px rgba(246,223,176,.25) !important; border-radius: 50% 47% 52% 49% !important; display: grid; place-items: center; }
html.v2.p13 .p12-avatar { width: 44px; height: 44px; font-size: 22px; }
html.v2.p13 .p12-search { border-radius: 4px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--display); font-size: 19px; font-style: italic; color: var(--muted); min-height: 50px; }
html.v2.p13 .p12-filter { border-radius: 4px; background: var(--oxblood); width: 50px; height: 50px; box-shadow: inset 0 0 0 1px rgba(201,166,92,.7); }
html.v2.p13 .p12-filter-ic { --bg: #f6ecd8; } html.v2.p13 .p12-filter-ic::before, html.v2.p13 .p12-filter-ic::after { background: var(--oxblood); box-shadow: 0 0 0 2px #f6ecd8; }
html.v2.p13 .hx-sec-h h2 { font-family: var(--display) !important; font-size: 27px !important; font-weight: 600; }
html.v2.p13 .hx-see { color: var(--oxblood); font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
/* gallery cards: framed artwork + museum placard */
html.v2.p13 .p12-card { height: auto; width: min(74vw, 300px); background: var(--paper); color: var(--ink); border-radius: 4px; padding: 12px 12px 0; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -22px rgba(60,40,20,.55); isolation: auto; }
html.v2.p13 .p12-card .p12-img { position: relative; inset: auto; display: block; height: 250px; width: 100%; z-index: 0; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 0 7px #f8f1e2, 0 0 0 8px var(--brass); }
html.v2.p13[data-theme="dark"] .p12-card .p12-img { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 0 7px #3a2e24, 0 0 0 8px var(--brass); }
html.v2.p13 .p12-card .p12-shade { display: none; }
html.v2.p13 .p12-card-t { position: static; padding: 20px 4px 12px; gap: 3px; }
html.v2.p13 .p12-eyebrow { font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); opacity: 1; }
html.v2.p13 .p12-card-t strong { font-size: 25px; line-height: 1.08; }
html.v2.p13 .p12-card-t small { color: var(--muted); opacity: 1; font-size: 13.5px; }
.p13-credit { font-style: italic; font-family: var(--display); font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; display: block; }
html.v2.p13 .p12-more { position: static; height: 44px; margin: 0 -12px; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 1px solid var(--line); color: var(--oxblood); justify-content: space-between; padding: 0 16px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
html.v2.p13[data-theme="dark"] .p12-more { color: var(--brass-2); }
html.v2.p13 .p12-arrow { position: static; width: 28px; height: 28px; background: none; box-shadow: inset 0 0 0 1px currentColor; }
html.v2.p13 .p12-arrow::after { left: 8px; top: 10px; width: 7px; height: 7px; border-color: currentColor; }
html.v2.p13 .p12-heart { top: 20px; right: 20px; width: 38px; height: 38px; background: rgba(251,246,234,.92); box-shadow: inset 0 0 0 1px var(--brass); }
html.v2.p13 .p12-heart.on::before { background: var(--oxblood); }
html.v2.p13 .p12-burst { background: var(--brass); }
html.v2.p13 .p12-votd blockquote { font-family: var(--display) !important; font-size: 24px !important; line-height: 1.35 !important; font-style: italic; }
html.v2.p13 .p12-votd { background-image: var(--contour) !important; background-size: 140% !important; background-position: right bottom !important; }
/* archive row */
.p13-archive-row { gap: 16px; padding-bottom: 16px; }
.p13-artcard { flex: 0 0 auto; width: 170px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--ink); scroll-snap-align: start; }
.p13-frame { display: block; padding: 10px; background: #1f1a15; box-shadow: inset 0 0 0 1px #4a3c2c, inset 0 0 0 4px #1f1a15, inset 0 0 0 5px var(--brass), 0 14px 22px -16px rgba(0,0,0,.7); border-radius: 2px; }
.p13-frame img { display: block; width: 100%; height: 150px; object-fit: cover; }
.p13-placard { display: grid; gap: 2px; margin-top: 10px; padding: 8px 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-radius: 2px; font-size: 12.5px; color: var(--muted); }
.p13-placard strong { font-family: var(--display); font-size: 17px; line-height: 1.1; color: var(--ink); }
.p13-placard em { font-family: var(--display); font-size: 14px; }
.p13-placard-lg { margin: -30px 22px 0; position: relative; z-index: 2; padding: 14px 16px; } .p13-placard-lg strong { font-size: 26px; }
.p13-art-d { font-family: var(--display); font-size: 20px; line-height: 1.45; padding: 16px 22px 4px; margin: 0; }
.p13-refs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 22px 18px; }
.p13-chip { border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--brass); border-radius: 3px; padding: 7px 11px; font: 600 13px var(--sans); color: var(--oxblood); cursor: pointer; }
html.v2.p13[data-theme="dark"] .p13-chip { color: var(--brass-2); }
/* plans library + detail */
html.v2.p13 .v2-st-art { border-radius: 2px !important; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 0 6px var(--paper), 0 0 0 7px var(--brass) !important; margin: 7px; height: 210px !important; }
html.v2.p13 .v2-st-card { width: 196px; }
html.v2.p13 .v2-st-card strong, html.v2.p13 .v2-st-card h3 { font-family: var(--display); font-size: 20px; font-weight: 600; }
html.v2.p13 .p12-hero { border-radius: 0; }
html.v2.p13 .v2-st-sum, html.v2.p13 .p13-herosheet .v2-ov > :not(.p12-hero):first-of-type { background: var(--bg); background-image: var(--noise); border-radius: 12px 12px 0 0; box-shadow: 0 -1px 0 var(--brass); font-family: var(--display); font-size: 20px; line-height: 1.45; }
html.v2.p13 .p12-thumb { border-radius: 2px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--brass); }
html.v2.p13 .p12-day summary strong { font-family: var(--display); font-size: 19px; }
html.v2.p13 .v2-st-go { border-radius: 4px !important; }
/* detail hero sheets: floating back + heart, sheet overlaps image */
html.v2.p13 #v2-sheet.p13-herosheet .v2-sheet-head { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); }
html.v2.p13 #v2-sheet.p13-herosheet .v2-grab { position: absolute; z-index: 6; left: 50%; top: 8px; transform: translateX(-50%); background: #fff; opacity: .9; }
html.v2.p13 #v2-sheet.p13-herosheet .v2-sheet-body { padding-top: 0; }
html.v2.p13 #v2-sheet.p13-herosheet .p12-hero, html.v2.p13 #v2-sheet.p13-herosheet .p12-ovimg { margin-top: 0; }
.p13-back { position: absolute; z-index: 6; top: 18px; left: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251,246,234,.94); color: #2a2118; box-shadow: inset 0 0 0 1px var(--brass), 0 6px 16px -8px rgba(0,0,0,.6); display: grid; place-items: center; cursor: pointer; }
.p13-back svg { width: 22px; height: 22px; }
html.v2.p13 #v2-sheet.p13-herosheet .p12-hero .p12-heart { top: 18px; right: 16px; width: 44px; height: 44px; }
.p13-phero { height: 280px !important; margin: 0 -20px -24px !important; }
html.v2.p13 .p13-art-hero { height: 320px; margin: 0 -20px 0 !important; background: #1f1a15; } html.v2.p13 .p13-art-hero img { object-fit: contain; }
/* wax-seal badges */
html.v2.p13 .p11-badge, .p13-wax { display: inline-grid; place-items: center; min-width: 58px; padding: 6px 10px; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; font: 700 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #f6dfb0 !important; background: radial-gradient(circle at 35% 30%, #a2424a, #2A2DB0 65%, #4d1418) !important; box-shadow: inset 0 0 0 2px rgba(0,0,0,.18), inset 0 0 0 4px rgba(246,223,176,.22), 0 2px 4px -1px rgba(60,20,20,.5); font-style: normal; }
html.v2.p13 .p11-badge.partly, .p13-wax-seasonal { background: radial-gradient(circle at 35% 30%, #d7b56a, #a7843f 65%, #7d6029) !important; color: #2a2118 !important; }
html.v2.p13 .p11-badge.await, .p13-wax-traveling { background: radial-gradient(circle at 35% 30%, #5a6a5a, #34423a 65%, #222c26) !important; }
/* welcome + forms */
.p13-welcome { position: fixed; inset: 0; z-index: 300; background: var(--bg); background-image: var(--noise); display: flex; flex-direction: column; opacity: 0; transition: opacity .4s; overflow-y: auto; }
.p13-welcome.on { opacity: 1; }
.p13-wel-hero { position: relative; margin: 0; padding: calc(env(safe-area-inset-top, 0px) + 22px) 26px 0; flex: 0 0 auto; }
.p13-wel-hero img { display: block; width: 100%; height: 34vh; max-height: 300px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 0 0 9px #f8f1e2, 0 0 0 10px var(--brass), 0 24px 40px -24px rgba(0,0,0,.6); }
html[data-theme="dark"] .p13-wel-hero img { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 0 9px #3a2e24, 0 0 0 10px var(--brass); }
.p13-wel-hero .p13-placard { position: absolute; right: 40px; bottom: -20px; transform: rotate(-1.5deg); }
.p13-wel-sheet { flex: 1; margin-top: 30px; padding: 20px 26px calc(30px + env(safe-area-inset-bottom, 0px)); transform: translateY(30px); opacity: 0; transition: transform .6s cubic-bezier(.2,.9,.3,1) .1s, opacity .5s .1s; }
.p13-welcome.on .p13-wel-sheet { transform: none; opacity: 1; }
.p13-grab { display: none; }
.p13-wel-t { font-family: var(--display); font-size: 40px; line-height: 1.02; font-weight: 600; margin: 8px 0 10px; color: var(--ink); }
.p13-wel-s { font-family: var(--display); font-size: 20px; color: var(--muted); margin: 0 0 22px; line-height: 1.35; }
.p13-wel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p13-pill { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font: 600 15px var(--sans); letter-spacing: .03em; cursor: pointer; margin-top: 10px; }
.p13-wel-actions .p13-pill { margin-top: 0; }
.p13-sso { box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.p13-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: var(--muted); font: 600 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; } .p13-or::before, .p13-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.p13-guest { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--oxblood); font: 600 14px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
html[data-theme="dark"] .p13-guest { color: var(--brass-2); }
.p13-msg { min-height: 1.2em; margin: 10px 0 0; color: var(--oxblood); font-size: 14px; }
.p13-fine { font-family: var(--display); font-style: italic; color: var(--muted); font-size: 15px; text-align: center; margin: 18px 0 0; }
.p13-wel-back { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); display: grid; place-items: center; cursor: pointer; margin-bottom: 8px; } .p13-wel-back svg { width: 22px; height: 22px; }
.p13-form { display: grid; gap: 4px; }
.p13-field { display: grid; gap: 6px; margin: 8px 0; font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.p13-field input { font: 400 17px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--paper); border: 0; border-bottom: 1.5px solid var(--brass); border-radius: 2px 2px 0 0; padding: 12px 12px; min-height: 48px; }
.p13-field input:focus { outline: none; border-bottom-color: var(--oxblood); background: var(--select); }
/* profile + saved */
.p13-prof { padding: 4px 2px 20px; }
.p13-prof-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; } .p13-prof-head strong { font-family: var(--display); font-size: 26px; display: block; } .p13-prof-head small { color: var(--muted); }
.p13-avatar-lg { width: 64px; height: 64px; font-size: 32px; flex: 0 0 auto; }
.p13-prof-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.p13-row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 16px 4px; font: 500 16px var(--sans); color: var(--ink); cursor: pointer; }
.p13-row::after { content: "›"; float: right; color: var(--brass); }
.p13-danger { color: var(--oxblood); }
.p13-saved { padding-bottom: 20px; }
.p13-srow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); transition: transform .25s, opacity .25s; }
.p13-srow.out { transform: translateX(40px); opacity: 0; }
.p13-srow-open { flex: 1; display: flex; gap: 12px; align-items: center; border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; padding: 0; }
.p13-srow-open img, .p13-srow-open .p13-seal { width: 58px; height: 58px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--brass); flex: 0 0 auto; }
.p13-srow-open strong { display: block; font-family: var(--display); font-size: 19px; line-height: 1.15; } .p13-srow-open small { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.p13-remove { border: 0; background: none; color: var(--oxblood); font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 10px; cursor: pointer; }
.p13-empty { text-align: center; padding: 40px 10px; font-family: var(--display); font-size: 19px; color: var(--muted); }
.p13-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 400; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 4px; font: 600 14px var(--sans); transition: transform .3s, opacity .3s; }
.p13-toast.on { transform: translate(-50%, 0); opacity: 1; }
/* places to visit */
.p13-intro { font-family: var(--display); font-size: 18px; color: var(--muted); margin: 0 0 12px; }
.p13-mapbox { background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 0 0 4px var(--paper), 0 0 0 5px var(--brass); padding: 8px; margin: 6px 4px 18px; border-radius: 2px; background-image: var(--contour); background-size: cover; }
.p13-usmap { display: block; width: 100%; height: auto; }
.p13-us { fill: color-mix(in srgb, var(--paper-2) 80%, transparent); stroke: var(--brass); stroke-width: 1.2; stroke-dasharray: 1 0; }
.p13-dot { fill: var(--oxblood); stroke: var(--paper); stroke-width: 2; cursor: pointer; } .p13-dot.p13-st-seasonal { fill: var(--brass); } .p13-dot.p13-st-traveling { fill: #34423a; }
.p13-home circle { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 2; } .p13-home text { font: 600 12px var(--sans); fill: var(--ink); }
.p13-filter { margin: 0 -20px 8px !important; padding: 2px 20px !important; }
.p13-count { font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 10px 0; }
.p13-visit { background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 12px 24px -20px rgba(60,40,20,.5); border-radius: 3px; padding: 14px; margin: 0 0 14px; transition: box-shadow .3s; }
.p13-visit .p13-placard { margin: 0; box-shadow: none; padding: 0; background: none; } .p13-visit .p13-placard strong { font-size: 22px; }
.p13-visit .p13-wax { justify-self: start; margin-top: 6px; }
.p13-visit-s { font-size: 15px; line-height: 1.5; margin: 10px 0 6px; } .p13-visit-h { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.p13-visit .p13-refs { padding: 6px 0; }
.p13-link { display: inline-block; margin-top: 4px; color: var(--oxblood); font: 600 12.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--brass); }
html[data-theme="dark"] .p13-link { color: var(--brass-2); }
.p13-flash { box-shadow: 0 0 0 2px var(--brass), 0 12px 24px -20px rgba(60,40,20,.5); }
/* motion: drawer slide, placard slide-in, ink reveal, page turn */
html.v2.p13 .p12-enter { animation: p13placard .55s cubic-bezier(.2,.9,.3,1) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes p13placard { from { opacity: 0; transform: translateX(-18px); } }
html.v2.p13 .hx-sec-h h2, html.v2.p13 .p13-wel-t, html.v2.p13 .p12-head .hx-greet { animation: p13ink .9s ease-out backwards; }
@keyframes p13ink { from { opacity: 0; transform: translateY(4px); filter: blur(3px); } }
html.v2.p13 #v2-sheet.open { animation: p13drawer .5s cubic-bezier(.2,.9,.25,1); }
@keyframes p13drawer { from { transform: translateY(40%) perspective(900px) rotateX(6deg); opacity: .4; } }
html.v2.p13 .reading { transform-origin: 0 50%; }
@media (prefers-reduced-motion: reduce) {
  html.v2.p13 .p12-enter, html.v2.p13 .hx-sec-h h2, html.v2.p13 .p13-wel-t, html.v2.p13 .p12-head .hx-greet, html.v2.p13 #v2-sheet.open { animation: none !important; }
  .p13-theme span, .p13-welcome, .p13-wel-sheet, .p13-srow, .p13-toast { transition: none !important; }
}
/* The Law */
.p13-law-sec { margin: 22px 0; }
.p13-law-intro { font-size: 19px; line-height: 1.5; color: var(--ink); }
.p13-card, .p13-lawcat { background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-radius: 3px; padding: 14px; margin: 0 0 12px; }
.p13-card strong, .p13-lawcat strong { font-family: var(--display); font-size: 21px; line-height: 1.15; display: block; }
.p13-card p, .p13-lawcat p { font-size: 15px; line-height: 1.55; margin: 8px 0; }
.p13-muted { color: var(--muted); }
.p13-lawcat-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.p13-refs-in { padding: 6px 0 0 !important; }
.p13-acc summary { cursor: pointer; font: 600 14px var(--sans); color: var(--oxblood); list-style: none; padding: 4px 0; }
html[data-theme="dark"] .p13-acc summary { color: var(--brass-2); }
.p13-card.p13-acc summary { font-family: var(--display); font-size: 19px; color: var(--ink); }
.p13-acc summary::-webkit-details-marker { display: none; }
.p13-acc summary::after { content: " +"; color: var(--brass); } .p13-acc[open] > summary::after { content: " –"; }
.p13-ex { padding: 8px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.p13-tablets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.p13-tablet { background: linear-gradient(180deg, color-mix(in srgb, var(--paper-2) 70%, var(--paper)), var(--paper)); border-radius: 26px 26px 4px 4px; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line); padding: 12px 14px; }
.p13-tablet summary { display: flex; gap: 14px; align-items: center; cursor: pointer; list-style: none; }
.p13-tablet summary::-webkit-details-marker { display: none; }
.p13-roman { flex: 0 0 44px; height: 44px; display: grid; place-items: center; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--oxblood); box-shadow: inset 0 0 0 1px var(--brass); border-radius: 50%; }
html[data-theme="dark"] .p13-roman { color: var(--brass-2); }
.p13-tab-t strong { font-family: var(--display); font-size: 19px; line-height: 1.2; display: block; } .p13-tab-t small { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.p13-tab-b { padding: 10px 2px 2px 58px; font-size: 15px; line-height: 1.5; } .p13-tab-b p { margin: 8px 0; }
.p13-note { font-size: 14px; font-style: italic; margin-top: 12px; }
.p13-tabs { display: flex; gap: 0; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 12px; overflow-x: auto; }
.p13-tabs button { flex: 1 0 auto; border: 0; background: none; padding: 12px 10px; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: 6px 6px 0 0; }
.p13-tabs button[aria-selected="true"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), inset 0 3px 0 var(--brass); }
.p13-critique { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
html.v2.p13 .p12-card { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; height: auto !important; min-height: 0 !important; }
html.v2.p13 .p12-card > * { order: 0; }
html.v2.p13 .p12-card .p12-img { flex: 0 0 250px; }
html.v2.p13 .p12-card .p12-more { margin-top: auto; }
html.v2.p13 .v2-st-hero.p12-hero > h2 { display: block !important; top: auto; bottom: 46px; color: #fbf3e2; font-family: var(--display); font-size: 34px; line-height: 1.05; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
html.v2.p13 .v2-st-hero.p12-hero > .v2-eyebrow { display: block !important; top: auto; bottom: 92px; color: var(--brass-2) !important; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
html.v2.p13 .v2-st-hero.p12-hero::after { z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 35%, rgba(20,10,5,.7)) !important; }
html.v2.p13 .v2-st-hero.p12-hero > .p12-heart { z-index: 2; }
html.v2.p12.v2-home-on:not(.hx-scrolled) header.top { pointer-events: none; }
.p13-wordmark { margin: 0 0 2px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 17px; letter-spacing: .04em; color: var(--oxblood); } html[data-theme="dark"] .p13-wordmark { color: var(--brass-2); }
.p13-wordmark { display: flex; align-items: center; gap: 8px; } .p13-wordmark img { width: 26px; height: 26px; border-radius: 3px; }
html[data-theme="dark"] .p13-wordmark img { filter: invert(1); }
.p13-wel-logo { display: block; width: 168px; height: auto; margin: 0 0 14px; border-radius: 2px; box-shadow: 0 10px 20px -14px rgba(0,0,0,.6); }
/* welcome: clean, no photo */
.p13-welcome { justify-content: center; }
.p13-wel-sheet { flex: 0 0 auto; width: 100%; max-width: 440px; margin: 0 auto; padding-top: calc(env(safe-area-inset-top, 0px) + 48px); text-align: center; }
.p13-wel-logo { width: 132px; height: 132px; margin: 0 auto 36px; border-radius: 4px; box-shadow: none; }
html[data-theme="dark"] .p13-wel-logo { filter: invert(1); }
.p13-wel-sheet .p13-wel-t { margin-top: 12px; } .p13-wel-sheet .p13-wel-s { margin-bottom: 36px; }
.p13-wel-sheet .p13-form, .p13-wel-sheet .p13-field { text-align: left; }
.p13-wel-back { margin-left: 0; }
