/* Premium pass (tp-v79): one accent per trip, calm surfaces, serif headings, flat timeline.
   Loaded after sunset.*.css and planner.css, so it only overrides. */
:root { --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
body { --acc: #a8782a; --acc-ink: #7a5414; --acc-soft: rgba(168,120,42,.12); }
body[data-trip="india"] { --acc: #b4531a; --acc-ink: #8a3d10; --acc-soft: rgba(180,83,26,.11); }
body[data-trip="sri-lanka"] { --acc: #0f766e; --acc-ink: #0b5650; --acc-soft: rgba(15,118,110,.11); }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) body { --acc: #d4a752; --acc-ink: #e6c27c; --acc-soft: rgba(212,167,82,.14); }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) body[data-trip="india"] { --acc: #e08a4f; --acc-ink: #f0ad7c; --acc-soft: rgba(224,138,79,.14); }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) body[data-trip="sri-lanka"] { --acc: #3fb5a8; --acc-ink: #7fd3c9; --acc-soft: rgba(63,181,168,.14); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body { --acc: #a8782a; --acc-ink: #7a5414; --acc-soft: rgba(168,120,42,.12); }
  :root:not([data-theme="dark"]) body[data-trip="india"] { --acc: #b4531a; --acc-ink: #8a3d10; --acc-soft: rgba(180,83,26,.11); }
  :root:not([data-theme="dark"]) body[data-trip="sri-lanka"] { --acc: #0f766e; --acc-ink: #0b5650; --acc-soft: rgba(15,118,110,.11); }
}
:root[data-theme="light"] body { --acc: #a8782a; --acc-ink: #7a5414; --acc-soft: rgba(168,120,42,.12); }
:root[data-theme="light"] body[data-trip="india"] { --acc: #b4531a; --acc-ink: #8a3d10; --acc-soft: rgba(180,83,26,.11); }
:root[data-theme="light"] body[data-trip="sri-lanka"] { --acc: #0f766e; --acc-ink: #0b5650; --acc-soft: rgba(15,118,110,.11); }
body { --active-grad: var(--acc); --sunset-deep: var(--acc); --chip-active-border: var(--acc); --tab-line: var(--line); --next-eyebrow: var(--acc-ink); --next-border: transparent; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --cream: #faf7f2; --line: #ebe3d8; --ink: #231a14; --muted: #6a5d53; } }
:root[data-theme="light"] { --cream: #faf7f2; --line: #ebe3d8; --ink: #231a14; --muted: #6a5d53; }

/* Type: serif display headings, quieter weights */
.hero h1, .sec-head h2, .group h3, .day-title h3, .wmain h4, .lock-dialog h1, .sign, .tab[data-tab="map"] .section-head h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
.sec-head h2 { font-size: 1.75rem; }
.group h3 { font-size: 1.3rem; }
.todo-title strong, details.panel > summary, .q b, .pills a b { font-weight: 700; }
.eyebrow, .q span, .next small, .dayk { letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

/* Top bar and trip switcher */
.topbar { border-bottom: 1px solid rgba(255,255,255,.12); }
.brand span { color: var(--acc); }
.trips a[aria-current] { background: transparent; box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; color: #fff; }
.tools button { border: 1px solid rgba(255,255,255,.3); border-radius: .6rem; font-weight: 600; }

/* Hero: name on its own line, dates on one line, no split colour */
.hero { border-bottom: 0 !important; background: linear-gradient(180deg, rgba(10,8,6,.15), rgba(10,8,6,.82)), var(--photo) center 40%/cover !important; }
.hero h1 { display: block; font-size: clamp(2.6rem, 11vw, 3.8rem); margin: .15rem 0 .1rem; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero h1 em { color: inherit; }
.dates { display: block; white-space: nowrap; font-weight: 600; font-size: 1rem; opacity: .95; }
.eyebrow { color: #f3dcb4; font-size: .72rem; }
.chips li { background: rgba(0,0,0,.28) !important; border: 1px solid rgba(255,255,255,.35) !important; font-weight: 600; }
.count .num { color: #fff !important; font-family: var(--serif); font-weight: 600; }
.count .lbl { font-weight: 600; opacity: .9; }
.next { border: 0; border-left: 3px solid var(--acc); border-radius: .5rem; font-weight: 600; }

/* Quick facts: uniform, hairline */
.q { border-top: 0 !important; border: 1px solid var(--line) !important; box-shadow: none; }
.q span { color: var(--acc-ink); font-size: .62rem; }

/* Tab bar: line icons, accent underline instead of gradient blocks */
.tabs { border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.tabs button { font-weight: 600; }
.tabs button[aria-selected="true"] { background: transparent; color: var(--acc-ink); box-shadow: inset 0 3px 0 var(--acc); }
.tabs button i { font-size: 0 !important; width: 1.35rem; height: 1.35rem; background: currentColor; -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.tabs em { background: var(--acc) !important; color: #fff !important; }
@media (min-width: 900px) { .tabs { border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.06); } .tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--acc); } }
[data-tab-btn="days"] i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E"); }
[data-tab-btn="do"] i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E"); }
[data-tab-btn="wallet"] i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M16.5 15h2M6 6l9-3 1.5 3'/%3E%3C/svg%3E"); }
[data-tab-btn="map"] i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4L3 6.5v13.5l6-2.5 6 2.5 6-2.5V4l-6 2.5z'/%3E%3Cpath d='M9 4v13.5M15 6.5V20'/%3E%3C/svg%3E"); }
[data-tab-btn="guides"] i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 4.8 7 4.5 3 5v14c4-.5 7-.2 9 1.5 2-1.7 5-2 9-1.5V5c-4-.5-7-.2-9 1.5zM12 6.5v14'/%3E%3C/svg%3E"); }
[data-tab-btn="shop"] i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12.5H6z'/%3E%3Cpath d='M9 10V6.5a3 3 0 0 1 6 0V10'/%3E%3C/svg%3E"); }

/* Colour key: one compact line of dots */
.legend { flex-wrap: nowrap; overflow-x: auto; gap: .9rem; margin: .5rem 0 0; padding-bottom: .2rem; scrollbar-width: none; }
.legend li { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; font-size: .72rem; white-space: nowrap; }
.legend li i { font-size: 0; width: .55rem; height: .55rem; border-radius: 50%; background: var(--k); display: inline-block; }

/* Day pills */
.pills a { border: 1px solid var(--line); border-radius: .7rem; }
.pills a b { font-family: var(--serif); font-weight: 600; }
.pills a.on { background: var(--acc); border-color: var(--acc); }

/* Day card: photo header with a dark veil, no colour bars */
.day { border-top: 0 !important; border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06); }
.day-head, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .day-head { background: linear-gradient(180deg, rgba(10,8,6,.12) 0%, rgba(10,8,6,.55) 55%, rgba(10,8,6,.85) 100%), var(--photo) center/cover; padding-right: 1rem !important; min-height: 9.5rem; }
.day-head::after { display: none; }
.day-num b { font-family: var(--serif); font-weight: 600; }
.dayk { background: rgba(255,255,255,.92); color: #231a14; font-size: .66rem; padding: .15rem .65rem; }
.day.today { outline: 2px solid var(--acc); }

/* Timeline steps: hairline spine, small kind dot, no gradient fades */
.step, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .step { background: none; border-left: 1px solid var(--line); border-radius: 0; margin: 0 0 0 .45rem; padding: .6rem .2rem .6rem 1rem; }
.step .when { color: var(--acc-ink); font-weight: 700; font-size: .85rem; letter-spacing: .01em; }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -.33rem; top: 1.05rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 3px var(--card); }
.kico { display: none; }
.step.pending, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .step.pending { background: none; outline: 0; border-left: 1px solid var(--line); }
.tobook { background: none !important; color: #b91c1c; border: 1px solid currentColor; font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .tobook { color: #f87171; }
.step.prep { font-style: normal; color: var(--muted); }
.who { background: var(--acc-soft) !important; color: var(--acc-ink); font-weight: 700; }
.day-links a, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .day-links a { background: none; border: 1px solid var(--line); color: var(--acc-ink); font-weight: 600; }
details.refs { border: 1px solid var(--line); border-radius: .7rem; background: transparent; }
details.refs summary em { background: var(--acc-soft); color: var(--acc-ink); }
.ref b { color: var(--acc-ink); }

/* Badges: quiet */
.badge { font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }

/* Do now, wallet, guides: hairline cards, thin accents */
.todo { border-left-width: 3px; box-shadow: none; border: 1px solid var(--line); border-left: 3px solid var(--k); }
.box { border-width: 2px; border-radius: .45rem; border-color: var(--acc) !important; }
.todo input:checked + .box { background: var(--acc); }
.qlist { display: grid; gap: .25rem; margin-top: .4rem; font-size: .9rem; }
.qlist span { padding-left: .2rem; }
.wcard { border: 1px solid var(--line); border-left: 3px solid var(--acc); box-shadow: none; }
.wico { display: none !important; }
details.panel { box-shadow: none; border: 1px solid var(--line); border-left: 1px solid var(--line) !important; }
details.panel > summary::before { color: var(--acc); }
.group.acc > h3 { border-left: 0; padding-left: 0; color: var(--ink); }
.clean-list li strong, .wdate { color: var(--acc-ink); }
.link-grid a { border-width: 1px; font-weight: 600; }
.link-grid a:hover, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .link-grid a:hover { border-color: var(--acc); }

/* Footer */
.foot { border-top: 1px solid rgba(255,255,255,.12); }
.sign { color: var(--acc); font-size: 1.5rem; }

/* Lock screen */
.lock-row button { background: var(--acc); }
.lock-dialog .eyebrow { color: var(--acc-ink) !important; text-shadow: none; }

/* Refs boxes follow the page surface in both themes */
details.refs { background: transparent !important; border-color: var(--line) !important; }
.ref { background: var(--card) !important; border-color: var(--line) !important; }

/* Cards: hairline borders in both themes (the base dark rules otherwise win in light mode too) */
.todo { border: 1px solid var(--line) !important; border-left: 3px solid var(--k) !important; }
.wcard { border: 1px solid var(--line) !important; border-left: 3px solid var(--acc) !important; }
details.panel, .raw .panel { border: 1px solid var(--line) !important; }
.who-tag { background: var(--acc-soft) !important; color: var(--acc-ink) !important; }
.lock-links a { color: var(--acc-ink); }
:focus-visible { outline-color: var(--acc) !important; }
.freeband { background: var(--acc-soft) !important; border: 1px solid var(--acc) !important; color: var(--ink) !important; }
