/* Storybook Adventure — an illustrated old adventure map: warm parchment with burned edges, a sea with a
   galleon, a hilltop castle, a big unrolled title scroll, a brass compass countdown, inked parchment pages.
   Art lives in /img/themes/storybook-adventure/. */
[data-trip-theme="storybook-adventure"] {
  --sb-ink: #3B2210;
  --sb-ink-2: #5A3A1C;
  --sb-maroon: #6E1C0E;
  --sb-parch: #F6E6BF;
  --sb-parch-2: #EDD4A0;
  --sb-paper: #FCF2D8;
  --sb-tan: #E2C48A;
  --sb-green: #1D5A4C;
  --sb-gold: #E0B85A;
  --sb-gold-dk: #8A6420;
  --sb-coral: #AE3E26;

  --t-bg: var(--sb-tan);
  --t-bg-image:
    url("/img/themes/storybook-adventure/map-tile.svg"),
    url("/img/themes/storybook-adventure/grain.svg"),
    radial-gradient(ellipse at 50% 20%, rgba(246, 226, 180, .7), transparent 65%),
    linear-gradient(180deg, #E6CA90, #D8B574);
  --t-bg-size: 640px 640px, 320px 320px, 100% 100%, 100% 100%;
  --t-ink: var(--sb-ink);
  --t-muted: var(--sb-ink-2);
  --t-surface: #FFF8E6;
  --t-surface-2: #F1DCAB;
  --t-border: #8A6438;
  --t-border-w: 2px;
  --t-primary: var(--sb-green);   --t-on-primary: #FFF3D6;
  --t-secondary: #22675A;         --t-on-secondary: #FFF3D6;
  --t-accent: var(--sb-coral);    --t-on-accent: #FFF3D6;
  --t-btn-border: var(--sb-gold);
  --t-link: var(--sb-green);
  --t-focus: #1E50C2;
  --t-warn-bg: #F7D98C;           --t-warn-ink: #3F2406;
  --t-shadow: 0 6px 14px rgba(40, 20, 4, .3);
  --t-shadow-btn: none;
  --t-radius-card: 8px;
  --t-radius-btn: 999px;
  --t-font-display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --t-font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-font-num: "IM Fell English", Georgia, serif;
  --sb-font-sc: "Alegreya SC", "IM Fell English", Georgia, serif;
  --t-title-size: clamp(2.3rem, 4.3cqi + .8rem, 4.6rem);
  --t-title-weight: 400;
  --t-title-ink: var(--sb-maroon);
  --t-title-shadow: 0 1px 0 rgba(255, 248, 226, .85), 0 0 1px rgba(80, 20, 6, .9);
  --t-hero-bg: transparent;
  --t-hero-ink: var(--sb-ink);
  --t-hero-muted: var(--sb-ink-2);
  --t-hero-border: transparent;
  --t-eyebrow-ink: #7A3418;
  --t-count-bg: transparent;
  --t-count-ink: var(--sb-ink);
  --t-count-border: transparent;
  --t-card-bg: var(--sb-parch);
  --t-card-ink: var(--sb-ink);
  --t-card-muted: var(--sb-ink-2);
  --t-card-border: var(--sb-ink);
  --t-card-head-bg: transparent;
  --t-card-head-ink: var(--sb-ink);
  --t-home-bg: var(--sb-parch);
  --t-home-ink: var(--sb-ink);
  --t-page-ink: var(--sb-ink);
  --t-page-muted: #4A2E14;
  --t-sheet-bg: #F8EACA;
  --choice-on-bg: #E2EEDC;
  --choice-on-border: var(--sb-green);
  --field-bg: #FFF8E6;
  --field-border: #8A6438;

  /* antique map inks for park + day accents (white text still reads on all of them) */
  --park-mk: #2B5A9E;
  --park-ep: #6B3C9A;
  --park-hs: #A8342A;
  --park-ak: #3B6E2E;
  --park-water: #1E7380;
  --park-springs: #9A5A16;
  --kind-travel: #1E6A78;
  --kind-event: #AE4E16;
  --kind-rest: #A23C5C;
  --kind-open: #6A5C48;
}

/* ---------- the map: a scene up top, map texture all the way down, burned page edges ---------- */
[data-trip-theme="storybook-adventure"] .ts-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1600px;
  height: 820px;
  margin-left: -800px;
  background: url("/img/themes/storybook-adventure/scene.svg") center top / 1600px 820px no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
[data-trip-theme="storybook-adventure"] .ts-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("/img/themes/storybook-adventure/corner-l.svg") left bottom / 300px 225px no-repeat,
    url("/img/themes/storybook-adventure/corner-r.svg") right bottom / 300px 225px no-repeat;
  box-shadow:
    inset 0 0 0 2px rgba(60, 28, 6, .55),
    inset 0 0 26px 4px rgba(96, 46, 10, .55),
    inset 0 0 110px 24px rgba(130, 70, 20, .38);
}

/* ---------- hero: ship + castle | the title scroll | compass countdown ---------- */
[data-trip-theme="storybook-adventure"] .ts-hero {
  position: relative;
  isolation: isolate;
  gap: 22px;
  margin-bottom: 40px;
}
/* compass rose peeking out behind the countdown */
[data-trip-theme="storybook-adventure"] .ts-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22px;
  right: 136px;
  width: 196px;
  height: 196px;
  pointer-events: none;
  background: url("/img/themes/storybook-adventure/compass.svg") center / contain no-repeat;
  transform: rotate(-14deg);
  filter: drop-shadow(0 3px 3px rgba(40, 20, 4, .3));
}
[data-trip-theme="storybook-adventure"] .ts-masthead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 6px 0 4px 232px;
}
[data-trip-theme="storybook-adventure"] .ts-deco {
  display: block;
  position: absolute;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 4px rgba(40, 20, 4, .3));
}
/* galleon on the sea */
[data-trip-theme="storybook-adventure"] .ts-deco-2 {
  z-index: 0;
  top: -30px;
  left: -12px;
  width: 222px;
  height: 196px;
  background-image: url("/img/themes/storybook-adventure/ship.svg");
}
/* castle on its hill */
[data-trip-theme="storybook-adventure"] .ts-deco-1 {
  z-index: 1;
  bottom: -30px;
  left: 30px;
  width: 204px;
  height: 192px;
  background-image: url("/img/themes/storybook-adventure/castle.svg");
}

/* the scroll: 9-slice so the rolled ends never stretch */
[data-trip-theme="storybook-adventure"] .ts-frame {
  z-index: 2;
  padding: 12px 14px 4px;
  background: none;
  border-style: solid;
  border-width: 40px 60px;
  border-image: url("/img/themes/storybook-adventure/scroll.svg") 44 66 fill / 40px 60px / 0 stretch;
  border-radius: 0;
}
[data-trip-theme="storybook-adventure"] .ts-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
  font-family: var(--t-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.22rem;
  letter-spacing: .02em;
  text-transform: none;
}
[data-trip-theme="storybook-adventure"] .ts-eyebrow::before,
[data-trip-theme="storybook-adventure"] .ts-eyebrow::after {
  content: "";
  flex: none;
  width: 58px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 14'%3E%3Cpath d='M2 7H34C38 7 40 2 45 2C50 2 52 7 48 9C45 11 42 8 44 6' fill='none' stroke='%235A3A1C' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M50 7l3.5-3 3.5 3-3.5 3z' fill='%237A2414'/%3E%3Ccircle cx='2.5' cy='7' r='1.6' fill='%235A3A1C'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-trip-theme="storybook-adventure"] .ts-eyebrow::after { transform: scaleX(-1); }
[data-trip-theme="storybook-adventure"] .ts-title {
  line-height: 1;
  letter-spacing: .005em;
  -webkit-text-stroke: .6px var(--sb-maroon);
}
/* dates on their own little parchment banner, pinned over the scroll's lower edge */
[data-trip-theme="storybook-adventure"] .ts-dates {
  display: inline-block;
  margin: 14px 0 -38px;
  padding: 7px 24px 8px;
  font-family: var(--sb-font-sc);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.2;
  color: var(--sb-ink);
  background: url("/img/themes/storybook-adventure/grain.svg"), linear-gradient(180deg, #FDF3D8, #EDD3A0);
  border: 2px solid var(--sb-ink);
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px #FBEFD0, inset 0 0 0 4px rgba(59, 34, 16, .45), 0 4px 8px rgba(40, 20, 4, .35);
}
[data-trip-theme="storybook-adventure"] .ts-dot { color: #8A2E16; }

/* countdown inside a brass compass medallion */
[data-trip-theme="storybook-adventure"] .ts-side { width: 214px; align-items: center; gap: 14px; }
[data-trip-theme="storybook-adventure"] .ts-actions { align-self: stretch; }
[data-trip-theme="storybook-adventure"] .ts-count {
  width: 188px;
  height: 188px;
  min-height: 0;
  padding: 0 0 4px;
  gap: 0;
  border: 0;
  border-radius: 50%;
  background: url("/img/themes/storybook-adventure/medallion.svg") center / contain no-repeat;
  filter: drop-shadow(0 6px 6px rgba(40, 20, 4, .35));
}
[data-trip-theme="storybook-adventure"] .ts-count-n {
  font-family: var(--t-font-num);
  font-weight: 400;
  font-size: 3.5rem;
  line-height: .95;
  color: var(--sb-ink);
  -webkit-text-stroke: .8px var(--sb-ink);
}
[data-trip-theme="storybook-adventure"] .ts-count-l {
  max-width: 6.4em;
  font-family: var(--sb-font-sc);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .03em;
  line-height: 1.05;
  text-transform: none;
  color: var(--sb-maroon);
}
[data-trip-theme="storybook-adventure"] .ts-count-pre { color: var(--sb-ink-2); font-size: .82rem; }
[data-trip-theme="storybook-adventure"] .ts-count-after .ts-count-n { font-size: 2.6rem; color: var(--sb-green); -webkit-text-stroke: 0; }

/* forest-green pills with gold rims; Share is the coral call to action */
[data-trip-theme="storybook-adventure"] .ts-btn {
  padding: 9px 18px 10px;
  font-family: var(--sb-font-sc);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: .02em;
  color: #FFF3D6;
  background: linear-gradient(180deg, #2E7B6A 0%, #1D5A4C 52%, #123F34 100%);
  border: 2.5px solid var(--sb-gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -3px 0 rgba(0, 0, 0, .22),
    0 0 0 2px var(--sb-ink),
    0 4px 0 2px var(--sb-ink),
    0 9px 14px rgba(40, 20, 4, .35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}
[data-trip-theme="storybook-adventure"] .ts-btn-1 { background: linear-gradient(180deg, #C9573A 0%, var(--sb-coral) 52%, #842A16 100%); }
[data-trip-theme="storybook-adventure"] .ts-btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 2px var(--sb-ink), 0 1px 0 2px var(--sb-ink); }

/* ---------- day cards: inked parchment pages laid out on the map ---------- */
[data-trip-theme="storybook-adventure"] .ts-days { position: relative; }
[data-trip-theme="storybook-adventure"] .ts-days::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16px -12px;
  pointer-events: none;
  border-radius: 16px;
  background:
    url("/img/themes/storybook-adventure/grain.svg"),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(30, 14, 2, .16) 46px 48px),
    radial-gradient(ellipse at 50% 100%, rgba(84, 110, 40, .55), transparent 70%),
    linear-gradient(180deg, #9C6E36, #82582A 60%, #6E4820);
  box-shadow: inset 0 0 0 2px #3A2008, inset 0 0 0 5px rgba(232, 196, 104, .6), inset 0 0 0 7px #3A2008, inset 0 0 30px rgba(30, 12, 0, .45), 0 8px 18px rgba(40, 20, 4, .3);
}
[data-trip-theme="storybook-adventure"] .ts-day-grid { gap: 14px; }
[data-trip-theme="storybook-adventure"] .day-card {
  min-height: 248px;
  background: none;
  border: 8px solid transparent;
  border-image: url("/img/themes/storybook-adventure/card.svg") 36 fill / 30px stretch;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  filter: drop-shadow(0 5px 5px rgba(20, 8, 0, .45));
}
[data-trip-theme="storybook-adventure"] .day-card:hover { transform: translateY(-4px) rotate(-.6deg); }
[data-trip-theme="storybook-adventure"] .dc-head {
  gap: 0;
  padding: 12px 6px 14px;
  color: var(--sb-ink);
  background: linear-gradient(90deg, transparent, var(--sb-ink) 22% 40%, transparent 40% 60%, var(--sb-ink) 60% 78%, transparent) center bottom 5px / 74px 1px no-repeat;
}
[data-trip-theme="storybook-adventure"] .dc-head::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 9px);
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: color-mix(in srgb, var(--accent) 75%, var(--sb-ink));
  border: 1px solid var(--sb-ink);
  transform: rotate(45deg);
}
[data-trip-theme="storybook-adventure"] .dc-head { position: relative; }
[data-trip-theme="storybook-adventure"] .dc-dow {
  font-family: var(--sb-font-sc);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-transform: none;
  line-height: 1.1;
}
[data-trip-theme="storybook-adventure"] .dc-date { font-size: 1.12rem; color: #7A2414; }
[data-trip-theme="storybook-adventure"] .dc-body { padding: 12px 8px 4px; gap: 5px; }
[data-trip-theme="storybook-adventure"] .dc-icon { font-size: 3rem; filter: drop-shadow(0 3px 2px rgba(59, 34, 16, .35)); }
[data-trip-theme="storybook-adventure"] .dc-title { font-weight: 400; font-size: 1.24rem; line-height: 1.08; color: var(--sb-ink); }
[data-trip-theme="storybook-adventure"] .dc-sub { font-weight: 600; font-size: .84rem; color: var(--sb-ink-2); }
[data-trip-theme="storybook-adventure"] .dc-foot { padding: 4px 8px 12px; }
[data-trip-theme="storybook-adventure"] .dc-warn { border: 1px solid #7A4A10; }
[data-trip-theme="storybook-adventure"] .wx { color: var(--sb-ink); background: rgba(237, 212, 160, .95); border: 1px solid rgba(59, 34, 16, .45); }

/* ---------- info cards: framed parchment ---------- */
[data-trip-theme="storybook-adventure"] .ts-info { gap: 20px; margin-top: 40px; }
[data-trip-theme="storybook-adventure"] .info-card {
  padding: 18px 22px 20px;
  background: none;
  border: 8px solid transparent;
  border-image: url("/img/themes/storybook-adventure/card.svg") 36 fill / 34px stretch;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 7px rgba(40, 20, 4, .35));
}
[data-trip-theme="storybook-adventure"] .ic-title { font-weight: 400; font-size: 1.6rem; color: var(--sb-maroon); }
[data-trip-theme="storybook-adventure"] .ic-kicker {
  opacity: 1;
  font-family: var(--t-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--sb-ink-2);
}
[data-trip-theme="storybook-adventure"] .ic-line b,
[data-trip-theme="storybook-adventure"] .leg-head { color: var(--sb-ink); }
[data-trip-theme="storybook-adventure"] .leg + .leg { border-top: 1px dashed rgba(59, 34, 16, .55); }
[data-trip-theme="storybook-adventure"] .home-card { gap: 22px; padding: 16px 22px 18px 16px; }
[data-trip-theme="storybook-adventure"] .home-card .ic-title { font-size: 2rem; }
[data-trip-theme="storybook-adventure"] .home-card .ic-art {
  width: 236px;
  height: 154px;
  font-size: 0;
  border-radius: 0;
  background: url("/img/themes/storybook-adventure/cottage.svg") center bottom / contain no-repeat;
  filter: drop-shadow(0 3px 2px rgba(40, 20, 4, .25));
}
/* parchment pills with inked borders for the map links */
[data-trip-theme="storybook-adventure"] .ic-links { gap: 12px; }
[data-trip-theme="storybook-adventure"] .ic-links a.ts-btn {
  justify-content: flex-start;
  min-width: 196px;
  padding: 8px 18px 9px;
  font-size: 1.02rem;
  color: var(--sb-ink);
  background: url("/img/themes/storybook-adventure/grain.svg"), linear-gradient(180deg, #FDF4DC, #EBD09C);
  border: 2px solid var(--sb-ink);
  box-shadow: inset 0 0 0 2px #FBEFD0, inset 0 0 0 3px rgba(59, 34, 16, .35), 0 3px 0 var(--sb-ink), 0 7px 10px rgba(40, 20, 4, .25);
  text-shadow: none;
}
[data-trip-theme="storybook-adventure"] .trip-site .reveal,
[data-trip-theme="storybook-adventure"] .reveal { background: #FBEFD0; border-color: var(--sb-ink-2); }
[data-trip-theme="storybook-adventure"] .pc-chip { background: rgba(237, 212, 160, .9); border: 1.5px solid rgba(59, 34, 16, .5); }
[data-trip-theme="storybook-adventure"] .pc-emoji { background: #FDF4DC; border: 1.5px solid rgba(59, 34, 16, .5); }
[data-trip-theme="storybook-adventure"] .ts-nudge {
  background: url("/img/themes/storybook-adventure/grain.svg"), var(--sb-parch);
  border: 2px dashed var(--sb-ink);
  box-shadow: var(--t-shadow);
}
[data-trip-theme="storybook-adventure"] .nudge-meter { background: #E2C690; border: 1px solid var(--sb-ink-2); }
[data-trip-theme="storybook-adventure"] .ts-banner { border: 2px solid var(--sb-ink); box-shadow: 0 4px 10px rgba(40, 20, 4, .25); }
[data-trip-theme="storybook-adventure"] .ts-footer p {
  display: inline-block;
  margin: 0;
  padding: 6px 18px;
  font-weight: 600;
  color: var(--sb-ink);
  background: rgba(252, 240, 212, .82);
  border: 1px solid rgba(59, 34, 16, .35);
  border-radius: 999px;
}

/* ---------- themed dialogs ---------- */
[data-trip-theme="storybook-adventure"] .sheet-inner {
  background:
    url("/img/themes/storybook-adventure/grain.svg"),
    radial-gradient(ellipse at 50% 25%, #FDF3DA 0%, #F3DFB0 70%, #E4C486 100%);
  border: 3px solid var(--sb-ink);
  box-shadow:
    inset 0 0 0 4px #F8E8C0,
    inset 0 0 0 5.5px rgba(59, 34, 16, .7),
    inset 0 0 44px rgba(150, 86, 30, .35),
    0 30px 80px rgba(30, 14, 0, .5);
}
[data-trip-theme="storybook-adventure"] .sheet-head { border-bottom: 1.5px dashed rgba(59, 34, 16, .55); }
[data-trip-theme="storybook-adventure"] .sheet-title { font-weight: 400; font-size: 1.7rem; color: var(--sb-maroon); }
[data-trip-theme="storybook-adventure"] .ds-chip,
[data-trip-theme="storybook-adventure"] .day-sheet .wx { background: rgba(237, 212, 160, .95); border: 1px solid rgba(59, 34, 16, .4); }
[data-trip-theme="storybook-adventure"] .tl-item {
  background: #FFF8E6;
  border: 1.5px solid rgba(59, 34, 16, .45);
  border-left: 7px solid var(--accent);
  box-shadow: 0 2px 4px rgba(40, 20, 4, .12);
}
[data-trip-theme="storybook-adventure"] .tl-title { font-family: var(--t-font-display); font-weight: 400; font-size: 1.18rem; }
[data-trip-theme="storybook-adventure"] .tl-tag { font-family: var(--sb-font-sc); font-size: .82rem; letter-spacing: .04em; text-transform: none; color: var(--sb-ink-2); }
[data-trip-theme="storybook-adventure"] .tl-edit,
[data-trip-theme="storybook-adventure"] .ds-add-btn { background: #F6E4B8; border: 1.5px solid rgba(59, 34, 16, .5); color: var(--sb-ink); }
[data-trip-theme="storybook-adventure"] .ds-add-btn:hover { border-color: var(--sb-green); background: #FBEFD0; }
[data-trip-theme="storybook-adventure"] .ds-add { border-top: 1.5px dashed rgba(59, 34, 16, .5); }
[data-trip-theme="storybook-adventure"] .ds-add-h { font-family: var(--t-font-display); font-weight: 400; font-size: 1.3rem; color: var(--sb-maroon); }
[data-trip-theme="storybook-adventure"] .ds-empty { background: rgba(237, 212, 160, .7); border: 1.5px dashed rgba(59, 34, 16, .45); color: var(--sb-ink-2); }

/* ---------- tablet: hero stacks; the ship + castle shrink beside the scroll ---------- */
@container trip (max-width: 899px) {
  [data-trip-theme="storybook-adventure"] .ts-masthead { min-height: 250px; padding-left: 168px; }
  [data-trip-theme="storybook-adventure"] .ts-deco-2 { width: 176px; height: 156px; top: -10px; left: -8px; }
  [data-trip-theme="storybook-adventure"] .ts-deco-1 { width: 178px; height: 168px; left: 4px; bottom: -14px; }
  [data-trip-theme="storybook-adventure"] .ts-hero::after { display: none; }
  [data-trip-theme="storybook-adventure"] .ts-side { width: auto; gap: 18px; }
  [data-trip-theme="storybook-adventure"] .ts-actions { align-self: center; }
  [data-trip-theme="storybook-adventure"] .ts-count { width: 156px; height: 156px; min-width: 0; }
  [data-trip-theme="storybook-adventure"] .ts-count-n { font-size: 2.9rem; }
}

/* ---------- phone: ship + castle vignette above the scroll, sideways pages ---------- */
@container trip (max-width: 599px) {
  [data-trip-theme="storybook-adventure"] .ts-backdrop::before {
    left: 0;
    width: 960px;
    height: 492px;
    margin-left: -150px;
    background-size: 960px 492px;
  }
  [data-trip-theme="storybook-adventure"] .ts-backdrop::after {
    background-size: 160px 120px, 160px 120px;
    box-shadow: inset 0 0 0 2px rgba(60, 28, 6, .55), inset 0 0 18px 2px rgba(96, 46, 10, .5), inset 0 0 50px 8px rgba(130, 70, 20, .3);
  }
  [data-trip-theme="storybook-adventure"] .ts-hero::after { display: none; }
  [data-trip-theme="storybook-adventure"] .ts-masthead { min-height: 0; padding: 104px 0 0; }
  [data-trip-theme="storybook-adventure"] .ts-deco-2 { top: -10px; left: -6px; width: 138px; height: 122px; }
  [data-trip-theme="storybook-adventure"] .ts-deco-1 { top: -14px; bottom: auto; left: auto; right: -4px; width: 136px; height: 128px; }
  [data-trip-theme="storybook-adventure"] .ts-frame {
    padding: 2px 4px 0;
    border-width: 30px 40px;
    border-image-width: 30px 40px;
  }
  [data-trip-theme="storybook-adventure"] .ts-eyebrow { font-size: 1.05rem; gap: 6px; }
  [data-trip-theme="storybook-adventure"] .ts-eyebrow::before,
  [data-trip-theme="storybook-adventure"] .ts-eyebrow::after { width: 36px; }
  [data-trip-theme="storybook-adventure"] .ts-dates { margin: 12px 0 -29px; padding: 5px 14px 6px; font-size: .92rem; }
  [data-trip-theme="storybook-adventure"] .ts-dates .ts-dot,
  [data-trip-theme="storybook-adventure"] .ts-dates .ts-dest { display: none; }
  [data-trip-theme="storybook-adventure"] .ts-side { flex-wrap: nowrap; gap: 14px; }
  [data-trip-theme="storybook-adventure"] .ts-count { flex: none; flex-direction: column; gap: 0; width: 136px; height: 136px; padding: 0 0 3px; }
  [data-trip-theme="storybook-adventure"] .ts-count-n { font-size: 2.6rem; }
  [data-trip-theme="storybook-adventure"] .ts-count-l { font-size: .8rem; }
  [data-trip-theme="storybook-adventure"] .ts-actions { flex: 1 1 auto; flex-direction: column; align-self: center; gap: 12px; max-width: 200px; }
  [data-trip-theme="storybook-adventure"] .ts-actions .ts-btn { padding: 8px 14px 9px; font-size: 1rem; }

  [data-trip-theme="storybook-adventure"] .ts-days::before { inset: -12px -8px; border-radius: 12px; }
  [data-trip-theme="storybook-adventure"] .ts-day-grid { gap: 10px; }
  [data-trip-theme="storybook-adventure"] .day-card { min-height: 96px; border-width: 6px; border-image-width: 24px; }
  [data-trip-theme="storybook-adventure"] .day-card:hover { transform: none; }
  [data-trip-theme="storybook-adventure"] .dc-head {
    width: 82px;
    margin: 8px 0;
    padding: 2px 4px;
    background: none;
    border-right: 1.5px dashed rgba(59, 34, 16, .5);
  }
  [data-trip-theme="storybook-adventure"] .dc-head::after { display: none; }
  [data-trip-theme="storybook-adventure"] .dc-dow { font-size: 1.02rem; }
  [data-trip-theme="storybook-adventure"] .dc-date { font-size: 1.04rem; }
  [data-trip-theme="storybook-adventure"] .dc-body { padding: 8px 6px 8px 12px; }
  [data-trip-theme="storybook-adventure"] .dc-icon { font-size: 2.2rem; }
  [data-trip-theme="storybook-adventure"] .dc-title { font-size: 1.16rem; }
  [data-trip-theme="storybook-adventure"] .dc-foot { padding: 8px 10px 8px 0; }

  [data-trip-theme="storybook-adventure"] .info-card { padding: 14px 14px 16px; border-image-width: 28px; }
  [data-trip-theme="storybook-adventure"] .home-card { gap: 10px 12px; padding: 12px 14px 16px; }
  [data-trip-theme="storybook-adventure"] .home-card .ic-art { width: 112px; height: 74px; }
  [data-trip-theme="storybook-adventure"] .home-card .ic-title { font-size: 1.5rem; }
  [data-trip-theme="storybook-adventure"] .ic-links a.ts-btn { min-width: 0; justify-content: center; padding: 8px 12px; font-size: .95rem; }
  [data-trip-theme="storybook-adventure"] .ic-title { font-size: 1.4rem; }
}


/* ---------- resort postcard frame: inked edge on parchment ---------- */
[data-trip-theme="storybook-adventure"] .home-card { --resort-frame: 3px solid var(--sb-ink); --resort-shadow: 3px 4px 0 rgba(59, 34, 16, .28); --resort-radius: 8px; }

/* ---------- print: plain ink, no parchment art ---------- */
@media print {
  [data-trip-theme="storybook-adventure"] .ts-masthead { min-height: 0 !important; }
  [data-trip-theme="storybook-adventure"] .ts-frame,
  [data-trip-theme="storybook-adventure"] .info-card,
  [data-trip-theme="storybook-adventure"] .day-card { border-image: none !important; filter: none !important; }
  [data-trip-theme="storybook-adventure"] .ts-title,
  [data-trip-theme="storybook-adventure"] .ts-count-n { -webkit-text-stroke: 0; }
  [data-trip-theme="storybook-adventure"] .ts-count { width: auto !important; height: auto !important; filter: none !important; }
  [data-trip-theme="storybook-adventure"] .ts-dates { margin: 6px 0 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
  [data-trip-theme="storybook-adventure"] .ts-count-l,
  [data-trip-theme="storybook-adventure"] .ic-title,
  [data-trip-theme="storybook-adventure"] .ic-kicker { color: #000 !important; }
  [data-trip-theme="storybook-adventure"] .ts-footer p,
  [data-trip-theme="storybook-adventure"] .pc-chip,
  [data-trip-theme="storybook-adventure"] .pc-emoji { background: none !important; border: 0 !important; }
}
