/* Map, passport ("You") and Year in wine. Same world as style.css: slate, chalk caps, one yellow. */

.row.pulse .ph { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* inline link to a bottle */
.ref { border: 0; background: none; padding: 0; color: inherit; text-align: left; font: inherit;
  text-decoration: underline; text-decoration-color: var(--chalk-3); text-underline-offset: 3px; }
.ref:hover { text-decoration-color: var(--yellow); }
.muted { color: var(--chalk-2); }

/* ---- map ---- */
.map-tab { position: fixed; left: 0; right: 0; top: calc(65px + env(safe-area-inset-top)); bottom: calc(66px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.map-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 640px; margin: 0 auto; padding: 6px 16px; }
#map { flex: 1; background: #0e1311; }
.tab[hidden] { display: none !important; }
.map-tiles { filter: invert(1) hue-rotate(180deg) saturate(.35) brightness(.85) contrast(.9); }
.leaflet-container { font: 14px/1.4 var(--ui); background: #0e1311; }
.leaflet-bar a { background: var(--slate-2); color: var(--chalk); border-color: var(--rule); }
.leaflet-bar a:hover { background: var(--slate-3); color: var(--chalk); }
.leaflet-control-attribution { background: rgba(14, 19, 17, .75) !important; color: var(--chalk-3); font-size: 10px; }
.leaflet-control-attribution a { color: var(--chalk-2); }
.pin-pop .leaflet-popup-content-wrapper, .pin-pop .leaflet-popup-tip { background: var(--slate-2); color: var(--chalk); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.pin-pop .leaflet-popup-content-wrapper { border-radius: 14px; }
.pin-pop .leaflet-popup-content { margin: 14px 16px; }
.pin-pop a.leaflet-popup-close-button { color: var(--chalk-3); }
.pp-title { margin: 0 24px 0 0; font: 800 22px/1 var(--display); text-transform: uppercase; }
.pp-meta { margin: 4px 0 0; color: var(--chalk-3); font-size: 13px; }
.pp-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pp-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---- You: passport ---- */
#you { padding-top: 4px; }
.you-sec { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.you-sec:last-child { border-bottom: 0; }
.sec-title { margin: 0 0 14px; font: 800 32px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }

/* the passport reads like the bar's board: label ....... number */
.boardlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bl { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 10px; }
.bl-label { font: 600 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--chalk-2); }
.bl-dots { border-bottom: 2px dotted var(--rule); translate: 0 -6px; }
.bl-value { font: 800 44px/.85 var(--display); font-variant-numeric: tabular-nums; }
.bl-note { grid-column: 1 / -1; margin-top: 6px; font-size: 13px; color: var(--chalk-3); }

.streak { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.streak .sec-title { margin-bottom: 8px; }
.streak .muted { margin: 0; font-size: 14px; max-width: 34ch; }
.big-num { margin: 0; font: 800 72px/.85 var(--display); text-align: right; color: var(--chalk-3); font-variant-numeric: tabular-nums; }
.streak.live .big-num { color: var(--yellow); }
.big-num small { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--chalk-2); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.tick { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--chalk-3); color: transparent; }
.tick svg { width: 16px; height: 16px; stroke-width: 3; }
.checks .done .tick { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }

.records { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.records li { display: grid; gap: 3px; }
.rec-k, .f-kind, .yc-sub { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--chalk-3); }
.rec-v { font: 800 30px/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.rec-s { font-size: 14px; color: var(--chalk-2); }
.hint { font-size: 14px; }

.firsts { list-style: none; margin: 0; padding: 0; }
.firsts li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.firsts li:first-child { border-top: 0; padding-top: 0; }
.f-kind { grid-column: 1 / -1; }
.f-name { font: 800 24px/1.05 var(--display); text-transform: uppercase; }
.f-date { align-self: end; font-size: 13px; color: var(--chalk-3); font-variant-numeric: tabular-nums; }

.stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.stamp { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--chalk-3); border-radius: 999px;
  font: 600 18px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.stamp b { font-size: 14px; font-weight: 800; color: var(--yellow); }

.years { display: flex; flex-wrap: wrap; gap: 8px; }
.year-btn { min-height: 48px; padding: 0 20px; border: 1.5px solid var(--yellow); border-radius: 999px; background: none; color: var(--yellow); font: 800 24px/1 var(--display); }
.year-btn:hover { background: var(--yellow); color: var(--yellow-ink); }

/* ---- Year in wine: a card made to screenshot ---- */
#year { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; overflow: auto; background: #0d110f; }
#year[hidden] { display: none; }
#year-card { width: min(100% - 32px, 420px); margin: 8px auto 32px; padding: 28px 24px; border-radius: 22px; background: var(--slate); border: 1px solid var(--rule); }
.yc-brand { margin: 0; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.yc-title { margin: 14px 0 22px; font: 800 76px/.86 var(--display); text-transform: uppercase; }
.yc-lines { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 6px; font: 600 28px/1.05 var(--display); text-transform: uppercase; color: var(--chalk-2); }
.yc-lines b { font-weight: 800; color: var(--chalk); }
.yc-bar { display: flex; gap: 2px; height: 14px; margin-bottom: 24px; border-radius: 999px; overflow: hidden; }
.yc-sub { margin: 0 0 10px; }
.yc-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.yc-top li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 800 22px/1.05 var(--display); text-transform: uppercase; }
.yc-foot { margin: 22px 0 0; font-size: 15px; color: var(--chalk-2); }
.pp-name { margin-top: 12px; min-height: 40px; width: 100%; border: 1.5px solid var(--yellow); border-radius: 999px; background: none; color: var(--yellow); font: 700 14px var(--ui); }
