/* ===========================================================
   The Anheiers — shared styles
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f7f1;
  --bg-alt: #e8eee1;
  --surface: #ffffff;
  --text: #1e2a1c;
  --text-muted: #5c6b56;
  --accent: #2f5233;
  --accent-soft: #dde8da;
  --border: #dbe4d4;
  --lock: #74836d;
  --shadow: 0 1px 2px rgba(20, 30, 18, 0.05), 0 8px 24px rgba(20, 30, 18, 0.07);
  --radius: 14px;
  --max-width: 1080px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10160e;
    --bg-alt: #161f12;
    --surface: #1a2416;
    --text: #edf2e9;
    --text-muted: #a3b39c;
    --accent: #7cbf80;
    --accent-soft: #22301c;
    --border: #2a3523;
    --lock: #8b9884;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Deters casual saving of photos (right-click, drag, iOS long-press).
   Not real protection — screenshots and dev tools always work. */
.ig-item img,
.lightbox-media img,
.feed-media img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 640px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(16, 22, 14, 0.88); }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-links .lock-icon { opacity: 0.7; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 12px 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.badge.locked { background: #eee7dc; color: var(--lock); }

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-header p { max-width: 640px; font-size: 1.05rem; }

/* ---------- Instagram-style photo grid ---------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .ig-grid { gap: 6px; }
}

.ig-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  border: none;
  padding: 0;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ig-item:hover img { transform: scale(1.05); }

.ig-item .ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ig-item:hover .ig-overlay,
.ig-item:focus-visible .ig-overlay { opacity: 1; }

.ig-overlay-caption {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-overlay-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* Play triangle on video / YouTube grid tiles */
.ig-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 12, 10, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ig-play-badge svg { width: 22px; height: 22px; margin-left: 2px; }

.ig-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-stack-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 12, 10, 0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.4;
}

.ig-stack-badge svg { width: 11px; height: 11px; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 780px) {
  .lightbox-inner {
    max-width: 920px;
    flex-direction: row;
  }
  .lightbox-media { flex: 1 1 55%; }
  .lightbox-sidebar {
    flex: 1 1 45%;
    border-left: 1px solid var(--border);
  }
}

/* Photo-only lightbox (no caption/comments sidebar) — stay a normal
   single-image size instead of the two-column caption+comments width. */
.simple-lightbox-inner,
.simple-lightbox-inner .lightbox-media {
  max-width: 700px;
}

.lightbox-media {
  position: relative;
  flex-shrink: 0;
  background: #0b0a09;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 90vh;
  overflow: hidden;
}

.lightbox-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.lightbox-inner img,
.lightbox-media video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.lightbox-image-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.lightbox-image-counter[hidden] { display: none; }

.lightbox-caption {
  padding: 16px 20px;
}

.lightbox-caption p { margin: 0 0 4px; color: var(--text); font-size: 0.95rem; line-height: 1.4; }
.lightbox-caption .caption-avatar {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 7px;
}
.lightbox-caption .caption-author {
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}
.lightbox-caption .lightbox-date { font-size: 0.8rem; color: var(--text-muted); }

.caption-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
}

.lightbox-prev[hidden],
.lightbox-next[hidden] { display: none; }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 640px) {
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Comments (in the lightbox) ---------- */

.comments {
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
}

.comments h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.comment-loading {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.comment-loading[hidden] { display: none; }

.comment-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.comment-empty[hidden] { display: none; }

.comment-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.comment-list li {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px 14px;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 6px;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-body {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.comment-form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.comment-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.comment-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.comment-error {
  font-size: 0.82rem;
  color: #c0392b;
  margin: 0;
}
.comment-error[hidden] { display: none; }

/* ---------- Timeline (house progress) ---------- */

.progress-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
  margin: 8px 0 4px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.house-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.year-nav button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.year-nav button:hover { background: var(--bg-alt); color: var(--text); }

.house-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.house-search input[type="search"] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  width: 220px;
  max-width: 60vw;
}

.house-search input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.house-search-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-item.search-hidden { display: none; }

.timeline {
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}

.timeline-item.done::before { background: var(--accent); }
.timeline-item.current::before {
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-item h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.timeline-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-title-row .share-btn { flex-shrink: 0; margin-top: 2px; }

.timeline-item .status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.timeline-item.done .status { background: var(--accent-soft); color: var(--accent); }
.timeline-item.current .status { background: var(--accent); color: #fff; }

.timeline-item .date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }

.house-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.house-photo-grid img {
  border-radius: 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.house-photo-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.house-photo-story[hidden] { display: none; }

.house-photo-story p {
  max-width: 480px;
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.house-photo {
  margin: 10px 0;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.house-photo img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.house-photo figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
}

.house-video {
  max-width: 480px;
  width: 100%;
  margin: 10px 0;
}

.house-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.house-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.post-preview[hidden] { display: none; }

.preview-photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preview-photos img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
}

.preview-text {
  width: 100%;
  max-width: 480px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.expand-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.expand-btn:hover { text-decoration: underline; }

/* ---------- Travel / itinerary ---------- */

.private-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 36px;
  font-size: 0.9rem;
  color: var(--text);
}

.trip-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.trip-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--text-muted);
}

.trip-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.trip-panel { display: none; }
.trip-panel.active { display: block; }

.trip-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.trip-meta strong { color: var(--text); }

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.day-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.day-card .day-num {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.day-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.day-card li { margin-bottom: 6px; }

/* ---------- Travel: sub-nav ---------- */

.travel-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.travel-subnav a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
}

.travel-subnav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Travel: overview page ---------- */

.trip-title-block {
  margin-bottom: 32px;
}

.trip-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.trip-title-block h1 { margin-bottom: 6px; }

.trip-dates {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.tz-note {
  display: flex;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 20px 0 36px;
}

.quicklink-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

@media (max-width: 720px) {
  .quicklink-grid { grid-template-columns: 1fr; }
}

.quicklink-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}

.quicklink-card .qc-icon { font-size: 1.6rem; margin-bottom: 8px; }
.quicklink-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.quicklink-card p { font-size: 0.88rem; margin: 0; }

.todo-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.todo-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.92rem;
}

.todo-list li::before {
  content: '';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 4px;
  border: 2px solid var(--accent);
}

.guest-note {
  display: flex;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

/* ---------- Travel: day-by-day itinerary ---------- */

.section-divider {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 48px 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.section-divider h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-divider .tz-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.day-head h3 { font-size: 1.15rem; margin: 0; }

.weather-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.entry {
  display: flex;
  gap: 16px;
  padding: 10px 0;
}

.entry + .entry { border-top: 1px dashed var(--border); }

.entry-time {
  flex: 0 0 90px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.entry-time-sea {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.entry-content { flex: 1; min-width: 0; }

.entry-title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 8px;
  border-radius: 999px;
}

.entry-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.free-block {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-top: 1px dashed var(--border);
}

.tip {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.tip-title {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin: 0 0 4px;
}

.tip p:last-child { margin: 0; color: var(--text-muted); }

.day-note {
  display: flex;
  gap: 10px;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text);
}

.open-day {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0 16px;
}

/* ---------- Travel: logistics tables & directory ---------- */

.table-scroll { overflow-x: auto; margin-bottom: 40px; }

.bags-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 640px;
}

.bags-table th,
.bags-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.bags-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 600;
}

.bags-table td:first-child { font-weight: 600; white-space: nowrap; }
.bags-table .muted { color: var(--text-muted); }

.jetlag-step {
  margin-bottom: 28px;
}

.jetlag-step h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.jetlag-step .step-num {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
}

.jetlag-step ul {
  padding-left: 20px;
  color: var(--text-muted);
}

.jetlag-step li { margin-bottom: 6px; }

.note-section { margin-bottom: 40px; }
.note-section h3 { font-size: 1.05rem; margin-bottom: 8px; }
.note-section ul { padding-left: 20px; color: var(--text-muted); }
.note-section li { margin-bottom: 6px; }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .directory-grid { grid-template-columns: 1fr; }
}

.directory-group h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.directory-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}

.directory-group li strong { color: var(--text); }

.source-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

/* ---------- Here & There feed ---------- */

.feed {
  border-top: 1px solid var(--border);
  padding-bottom: 64px;
}

.feed-loading {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
}

.feed-post {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.feed-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.feed-avatar img { width: 100%; height: 100%; object-fit: cover; }

.feed-body { flex: 1; min-width: 0; }

.feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.feed-meta .share-btn { margin-left: auto; }

.feed-author { font-weight: 700; color: var(--text); }
.feed-time { font-size: 0.85rem; color: var(--text-muted); }

.feed-text {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.feed-location:hover { text-decoration: underline; }
.feed-location svg { width: 14px; height: 14px; flex-shrink: 0; }

.feed-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}

.feed-media img {
  width: 100%;
  border-radius: 12px;
  max-height: 420px;
  object-fit: cover;
}

/* ---------- Share button, toast, deep-link highlight ---------- */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.share-btn:hover { background: var(--bg-alt); color: var(--text); }

.share-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.share-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes share-flash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  20% { box-shadow: 0 0 0 4px var(--accent); }
}

.share-highlight { animation: share-flash 2.2s ease; border-radius: var(--radius); }

/* ---------- Post-photo (phone upload) form ---------- */

.post-photo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.post-photo-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
}

.post-photo-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.post-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-photo-previews img,
.post-photo-previews video {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.youtube-field {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface);
}

.youtube-field summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.youtube-field input[type="url"] {
  width: 100%;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.youtube-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.post-photo-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
}

.post-photo-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.post-photo-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.post-photo-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.post-photo-status { font-size: 0.9rem; margin: 0; }
.post-photo-status.success { color: var(--accent); }
.post-photo-status.error { color: #c0392b; }

/* ---------- Manage posts (owner-only) ---------- */

.manage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.manage-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }

.manage-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.manage-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.manage-thumb {
  position: relative;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}

.manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-thumb.is-cover { border-color: var(--accent); cursor: default; }
.manage-thumb:disabled { opacity: 0.5; }

.manage-thumb-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.manage-cover-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 0;
}

.manage-caption {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
}

.manage-caption:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.manage-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.manage-save,
.manage-delete {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.manage-save { background: var(--accent); color: #fff; }
.manage-delete { background: none; color: #c0392b; border: 1px solid var(--border); }
.manage-save:disabled, .manage-delete:disabled { opacity: 0.6; cursor: default; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* --- manage: add / remove media --------------------------------------- */
.manage-thumb-wrap { position: relative; }

.manage-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.manage-thumb-remove:hover { background: #a33; }
.manage-thumb-remove:disabled { opacity: 0.5; cursor: default; }

.manage-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 26px;
  cursor: pointer;
}
.manage-add:hover { border-color: var(--accent); color: var(--accent); }
.manage-add.is-busy { cursor: progress; }
.manage-add input { display: none; }

/* --- new post: where does this go? ------------------------------------ */
.section-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.section-choice {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.section-choice:hover { border-color: rgba(255, 255, 255, 0.3); }
.section-choice input { position: absolute; opacity: 0; pointer-events: none; }
.section-choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}
.section-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.section-choice-name { display: block; font-weight: 600; }
.section-choice-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  opacity: 0.65;
}

.post-title-input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: var(--bg-alt);
  color: inherit;
  font: inherit;
}
.post-title-input:focus { border-color: var(--accent); outline: none; }

/* The picker sets these with [hidden]; .post-title-input has no display
   rule of its own, but be explicit so nothing later overrides it. */
.post-photo-form [hidden] { display: none !important; }

/* --- manage: which section am I editing? ------------------------------ */
.manage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.manage-tab {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.manage-tab:hover { border-color: rgba(255, 255, 255, 0.35); }
.manage-tab.is-active { border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }

/* --- manage: when did this happen? ------------------------------------ */
.manage-date-input {
  display: block;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: var(--bg-alt);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  color-scheme: dark; /* so the native picker isn't a white box */
}
.manage-date-input:focus { border-color: var(--accent); outline: none; }

/* --- check-in inside the Moments lightbox ----------------------------- */
.lightbox-location {
  margin: 6px 0 10px;
}

/* --- where visitors come from ----------------------------------------- */
.traffic-month {
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
}
.traffic-month > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}
.traffic-month h3 {
  margin: 18px 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.traffic-note {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.traffic-note h2 { margin: 0 0 10px; font-size: 1.05rem; }
.traffic-note p { margin: 0 0 10px; line-height: 1.6; }

.traffic-examples {
  margin: 0 0 12px;
  padding-left: 20px;
}
.traffic-examples li { margin-bottom: 5px; }
.traffic-examples code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9em;
}

/* --- comments under feed posts ---------------------------------------- */
.feed-comments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-toggle {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.comments-toggle:hover { border-color: var(--accent); color: var(--accent); }

.comments-panel { margin-top: 12px; }

.comments-panel .comment-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.comments-panel .comment-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.comments-panel .comment-author { font-weight: 600; margin-right: 8px; }
.comments-panel .comment-time { font-size: 0.78rem; opacity: 0.55; }
.comments-panel .comment-body { margin: 4px 0 0; line-height: 1.55; white-space: pre-wrap; }

.comments-panel .comment-empty,
.comments-panel .comment-loading,
.comments-panel .comment-error {
  margin: 0 0 10px;
  font-size: 0.88rem;
  opacity: 0.7;
}
.comments-panel .comment-error { color: #e88; opacity: 1; }

.comments-panel .comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comments-panel .comment-form input[type="text"],
.comments-panel .comment-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: var(--bg-alt);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
}
.comments-panel .comment-form input[type="text"]:focus,
.comments-panel .comment-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.comments-panel .comment-form button {
  align-self: flex-start;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #08160f;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.comments-panel .comment-form button:disabled { opacity: 0.6; cursor: progress; }

/* =====================================================================
   The house explorer at the top of Lava's Launch Pad.
   Prefixed .h3- so nothing here collides with the timeline below it.
   ===================================================================== */
.house-explorer { margin-bottom: 42px; }

.h3-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) { .h3-layout { grid-template-columns: 1fr; } }

.h3-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.h3-side { min-width: 0; }

/* --- headline numbers --- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px;
  margin: 0 0 20px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.figures > div { padding: 14px 16px; background: var(--surface); }
.figures dt {
  margin: 0 0 5px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.figures dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.figures dd small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* --- part chips --- */
.parts-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.parts-row button {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.77rem;
  cursor: pointer;
}
.parts-row button:hover { border-color: var(--accent); color: var(--accent); }
.parts-row button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.parts-row button b { font-weight: 600; margin-left: 4px; opacity: 0.75; }

/* --- the stage --- */
.h3-stage {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(to bottom, #cfe0ee, #eef3ea);
}
@media (prefers-color-scheme: dark) {
  .h3-stage { background: linear-gradient(to bottom, #16211c, #0e140d); }
}
#h3-scene { display: block; width: 100%; height: 440px; touch-action: none; cursor: grab; }
#h3-scene.grabbing { cursor: grabbing; }
#h3-scene.over-part { cursor: pointer; }
@media (max-width: 700px) { #h3-scene { height: 320px; } }

.h3-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.h3-tool {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(20, 30, 18, 0.12);
}
.h3-tool:hover { border-color: var(--accent); color: var(--accent); }
.h3-tool[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.h3-tip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(16, 22, 14, 0.86);
  color: #f2f6f0;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s;
}
.h3-tip.on { opacity: 1; }

.h3-note {
  position: absolute;
  left: 13px;
  bottom: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.71rem;
  color: var(--text-muted);
  background: var(--surface);
  opacity: 0.85;
}

.h3-wip {
  position: absolute;
  top: 12px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--lock);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.h3-wip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lock);
}

/* --- phase scrubber --- */
.h3-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.h3-track::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 13px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.h3-fill {
  position: absolute;
  left: 6%;
  top: 13px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.h3-stop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}
.h3-stop i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  z-index: 2;
}
.h3-stop.done i { border-color: var(--accent); background: var(--accent); }
.h3-stop.now i { border-color: var(--accent); background: var(--accent); transform: scale(1.35); }
.h3-stop b { font-size: 0.78rem; font-weight: 500; text-align: center; line-height: 1.25; }
.h3-stop.now b, .h3-stop.done b { color: var(--text); }
.h3-stop.now b { font-weight: 600; }
.h3-stop small { font-size: 0.66rem; font-variant-numeric: tabular-nums; opacity: 0.75; }
@media (max-width: 640px) {
  .h3-stop b { font-size: 0.68rem; }
  .h3-stop small { display: none; }
}

/* --- post grid under the model --- */
.h3-posts {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.h3-posts-head { padding: 14px 17px 12px; border-bottom: 1px solid var(--border); }
.h3-posts-head p {
  margin: 0 0 3px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.h3-posts-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 600;
}

.post-grid {
  list-style: none;
  margin: 0;
  padding: 15px 17px 17px;
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  max-height: 520px;
  overflow-y: auto;
}
.post-grid button {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, transform 0.16s;
}
.post-grid button:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-grid img {
  display: block;
  width: 100%;
  height: 116px;
  object-fit: cover;
  background: var(--accent-soft);
}
.post-grid .no-img { width: 100%; height: 116px; background: var(--accent-soft); }
.post-grid .meta { padding: 9px 11px 11px; }
.post-grid .when {
  display: block;
  margin-bottom: 3px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.post-grid .name { font-size: 0.88rem; font-weight: 500; line-height: 1.34; }
.post-grid .counts {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.post-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px 2px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- the heatmap, in its side column --- */
.h3-block {
  padding: 15px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.h3-side-head {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.h3-heat-wrap { overflow-x: auto; }

/* Months down, years across — five narrow columns fit a side column
   where twelve never would. */
.h3-heat {
  border-collapse: separate;
  border-spacing: 3px;
  font-variant-numeric: tabular-nums;
  margin: 0 auto;
}
.h3-heat th {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 3px;
}
.h3-heat th.row-head { text-align: right; padding-right: 5px; }
.h3-heat th.col-head {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0;
}
.h3-heat td { padding: 0; }
.h3-heat i {
  display: block;
  width: 30px;
  height: 15px;
  border-radius: 3px;
  background: var(--bg-alt);
  transition: transform 0.14s;
}
.h3-heat i[data-n="1"] { background: #c3d6bd; }
.h3-heat i[data-n="2"] { background: #8fb388; }
.h3-heat i[data-n="3"] { background: #5b8757; }
.h3-heat i[data-n="4"] { background: #2f5233; }
@media (prefers-color-scheme: dark) {
  .h3-heat i[data-n="1"] { background: #33512f; }
  .h3-heat i[data-n="2"] { background: #4d7a48; }
  .h3-heat i[data-n="3"] { background: #67a35f; }
  .h3-heat i[data-n="4"] { background: #8fd08a; }
}
.h3-heat i[data-key][tabindex="0"] { cursor: pointer; }
.h3-heat i[data-key][tabindex="0"]:hover { transform: scale(1.18); }
.h3-heat i.in-phase { outline: 2px solid var(--accent); outline-offset: 1px; }
.h3-heat i.picked {
  outline: 2px solid var(--lock);
  outline-offset: 1px;
  transform: scale(1.18);
}
.h3-heat i:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.h3-key {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.h3-key i { display: block; width: 13px; height: 12px; border-radius: 3px; background: var(--bg-alt); }
.h3-key i[data-n="1"] { background: #c3d6bd; }
.h3-key i[data-n="2"] { background: #8fb388; }
.h3-key i[data-n="3"] { background: #5b8757; }
.h3-key i[data-n="4"] { background: #2f5233; }
@media (prefers-color-scheme: dark) {
  .h3-key i[data-n="1"] { background: #33512f; }
  .h3-key i[data-n="2"] { background: #4d7a48; }
  .h3-key i[data-n="3"] { background: #67a35f; }
  .h3-key i[data-n="4"] { background: #8fd08a; }
}

.h3-side-note { margin: 9px 0 0; font-size: 0.7rem; line-height: 1.45; color: var(--text-muted); }

/* --- manage: tagging a post to a part of the house -------------------- */
.manage-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.manage-tag > span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.manage-tag select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-alt);
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}
.manage-tag select:focus { border-color: var(--accent); outline: none; }
.manage-tag select:disabled { opacity: 0.6; cursor: progress; }
.manage-tag-state {
  font-size: 0.76rem;
  font-style: normal;
  color: var(--accent);
}

.manage-archived-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}
.manage-archived {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- the post reader ---------------------------------------------------
   Posts open over the explorer rather than on a page of their own, so the
   model stays where you left it. */
.h3-scrim {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 11, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 60;
}
.h3-scrim.open { opacity: 1; pointer-events: auto; }

body.h3-locked { overflow: hidden; }

.h3-reader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(101%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 70;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.h3-reader.open { transform: none; }

.h3-reader-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 14px 0 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.h3-reader-close:hover { border-color: var(--accent); color: var(--accent); }

.h3-reader-inner { padding: 22px 26px 44px; }
@media (max-width: 560px) { .h3-reader-inner { padding: 18px 18px 40px; } }

.h3-reader-date {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.h3-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.h3-reader-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 600;
  line-height: 1.16;
  text-wrap: balance;
}
.h3-reader-share { flex: none; }

.h3-reader-body p {
  margin: 0 0 16px;
  font-size: 0.97rem;
  line-height: 1.72;
}
.h3-reader-body .house-photo { margin: 0 0 18px; }
.h3-reader-body .house-photo img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.h3-reader-body .house-photo figcaption {
  margin-top: 7px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.h3-reader-body .house-video { margin: 0 0 18px; }

.h3-reader-comments {
  margin-top: 26px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* A tag you invented has no matching geometry on the model, so it reads
   as an outline rather than a solid chip. */
.parts-row button.is-custom { border-style: dashed; }

/* revealed by "+ Write my own…" in the dropdown beside it */
.manage-tag-custom {
  min-width: 210px;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--bg-alt);
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
}
.manage-tag-custom:focus { outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.manage-tag-custom:disabled { opacity: 0.6; cursor: progress; }
.manage-tag-custom[hidden] { display: none; }

.traffic-hint {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- view counts: make the ordering legible --------------------------- */
.stats-note {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.bags-table th.sorted-by { color: var(--accent); white-space: nowrap; }

/* =====================================================================
   HOME
   A blog landing shape: photo-led cards with the title underneath, a
   family block with a round portrait, rounded section tiles, and room to
   breathe between each. Prefixed .ck- so nothing collides.
   ===================================================================== */
/* the tagline used to carry the rule under the header; now the header does */
.site-header.ck-head .brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.site-header.ck-head .nav-links a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ck { padding-bottom: 20px; }
.ck-block { padding: 54px 0 0; }

.ck-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.ck-h h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.ck-h a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.ck-h a:hover { text-decoration: underline; }

/* --- cards: photograph first, words underneath ------------------------ */
.ck-cards {
  display: grid;
  gap: 26px 22px;
  grid-template-columns: repeat(4, 1fr);
}
.ck-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
/* The newest post takes two columns and two rows — a front page should
   have a lead item rather than four things of identical weight. */
.ck-card.is-tall { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) {
  .ck-cards { grid-template-columns: repeat(2, 1fr); }
  .ck-card.is-tall { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 520px) { .ck-cards { grid-template-columns: 1fr; } }

.ck-card-img {
  margin-bottom: 13px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}
.ck-card.is-tall .ck-card-img { aspect-ratio: 4 / 3.4; }
.ck-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ck-card:hover .ck-card-img img { transform: scale(1.04); }

.ck-tag {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}
.ck-card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.008em;
}
.ck-card.is-tall h3 { font-size: 1.42rem; }
.ck-card:hover h3 { color: var(--accent); }
.ck-date { font-size: 0.76rem; color: var(--text-muted); }

/* --- the family ------------------------------------------------------- */
.ck-hello {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 66px;
  padding: 38px 40px;
  border-radius: 20px;
  background: var(--bg-alt);
}
@media (max-width: 700px) {
  .ck-hello {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 24px;
    text-align: center;
  }
}
.ck-portrait {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  box-shadow: 0 0 0 6px var(--bg);
}
.ck-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ck-kicker {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.ck-hello h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.ck-hello p {
  margin: 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-muted);
}
@media (max-width: 700px) { .ck-hello p { margin: 0 auto; } }

/* --- rounded section tiles -------------------------------------------- */
.ck-tiles {
  display: grid;
  /* Three sections for a public visitor. The owner's fourth tile, added by
     private-nav.js after confirming an Access session, switches this to
     four rather than leaving the layout at three with a tile hanging off. */
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ck-tiles.has-private-tile { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .ck-tiles.has-private-tile { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .ck-tiles.has-private-tile { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .ck-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .ck-tiles { grid-template-columns: 1fr; } }

.ck-tile {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.ck-tile-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 15px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--accent-soft);
}
.ck-tile-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ck-tile:hover .ck-tile-img img { transform: scale(1.05); }

.ck-tile-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.ck-tile-lock svg { width: 34px; height: 34px; }

.ck-tile-name {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ck-tile:hover .ck-tile-name { color: var(--accent); }
.ck-tile-desc {
  display: block;
  margin: 0 auto;
  max-width: 26ch;
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.ck [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .ck-card-img img, .ck-tile-img img { transition: none; }
}

/* =====================================================================
   DESKTOP
   Everything above only adapts up to 780px, so a 1440px laptop was
   getting the same layout as a small tablet — three big squares in the
   photo grid, a 640px reading column adrift in the middle of the screen,
   and 1080px of content whatever the width.

   These tiers use the extra room for density rather than scale: more
   columns, wider media, more of the page in view. Type sizes stay put.
   ===================================================================== */
@media (min-width: 1180px) {
  :root { --max-width: 1200px; }

  /* Reading columns stay readable — a wider screen is not a reason for
     longer lines — but 640px looked stranded, so give it a little more. */
  .container-narrow { max-width: 720px; }

  /* Four across instead of three: the squares were becoming enormous. */
  .ig-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }

  .feed-media img { max-height: 460px; }

  /* Room for the sidebar without squeezing the model. */
  .h3-layout { grid-template-columns: minmax(0, 1fr) 288px; gap: 26px; }
  #h3-scene { height: 500px; }

  .post-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }

  /* Home: the container grew, so the cards do too. */
  .ck-cards { gap: 30px 24px; }
  .ck-tiles { gap: 26px; }
  .ck-hello { padding: 44px 48px; }

  .page-header p, .hero p.lead { max-width: 680px; }

  /* A wide table on a wide screen has no reason to scroll inside a box. */
  .table-scroll { overflow-x: visible; }
}

@media (min-width: 1500px) {
  :root { --max-width: 1320px; }

  .ig-grid { grid-template-columns: repeat(5, 1fr); }

  .h3-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  #h3-scene { height: 540px; }

  .post-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* =====================================================================
   TRIP DECK — the itinerary as travel documents, one day per stub.
   Its own warm palette rather than the site's green: this is a stack of
   tickets, and the two flags share navy / white / red, so one scheme
   covers both cities.
   ===================================================================== */
:root {
  --tk-bg: #e7e3d9;
  --tk-stub: #fbf9f4;
  --tk-ink: #171a1f;
  --tk-soft: #5d6470;
  --tk-faint: #9aa0aa;
  --tk-rule: #d6d1c4;
  --tk-lon: #012169;
  --tk-par: #c8102e;
  --tk-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tk-bg: #15171a;
    --tk-stub: #20242a;
    --tk-ink: #eef1f5;
    --tk-soft: #a3abb8;
    --tk-faint: #6d7480;
    --tk-rule: #31363e;
    --tk-lon: #8fb2ff;
    --tk-par: #ff8896;
  }
}
:root[data-theme="dark"] {
  --tk-bg: #15171a;
  --tk-stub: #20242a;
  --tk-ink: #eef1f5;
  --tk-soft: #a3abb8;
  --tk-faint: #6d7480;
  --tk-rule: #31363e;
  --tk-lon: #8fb2ff;
  --tk-par: #ff8896;
}

.tk-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 26px auto 10px;
  padding: 0 20px;
  font-family: var(--tk-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tk-hint { opacity: 0.7; }

/* The deck runs full-bleed so a stub can sit centred on a phone with its
   neighbours just showing at the edges. */
.tk-deck {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 14px 30px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tk-deck::-webkit-scrollbar { display: none; }
@media (min-width: 700px) {
  .tk-deck { padding-left: max(14px, calc(50vw - var(--max-width) / 2)); }
}

.tk-stub {
  flex: none;
  width: min(88vw, 420px);
  scroll-snap-align: center;
  background: var(--tk-stub);
  color: var(--tk-ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 26px rgba(0, 0, 0, 0.1);
}

.tk-top { position: relative; padding: 16px 18px 14px; }
.tk-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--tk-rule) 0 6px, transparent 6px 12px);
}

/* the notches that make a stub read as torn from a book */
.tk-tear { position: relative; height: 16px; background: var(--tk-stub); }
.tk-tear::before,
.tk-tear::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
}
.tk-tear::before { left: -8px; }
.tk-tear::after { right: -8px; }

.tk-route { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tk-code {
  font-family: var(--tk-mono);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tk-code[data-city="London"] { color: var(--tk-lon); }
.tk-code[data-city="Paris"] { color: var(--tk-par); }

.tk-arrow { flex: 1; height: 1px; background: var(--tk-rule); position: relative; }
.tk-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border-left: 6px solid var(--tk-rule);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}

.tk-meta {
  display: flex;
  gap: 20px;
  font-family: var(--tk-mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tk-faint);
}
.tk-meta b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tk-ink);
}

.tk-stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  transform: rotate(-11deg);
  padding: 4px 9px;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-family: var(--tk-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}
.tk-stamp[data-city="London"] { color: var(--tk-lon); }
.tk-stamp[data-city="Paris"] { color: var(--tk-par); }

.tk-body { padding: 4px 18px 20px; max-height: 58vh; overflow-y: auto; }
.tk-line { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--tk-rule); }
.tk-line:last-child { border-bottom: none; }
.tk-line-t {
  flex: none;
  width: 74px;
  padding-top: 2px;
  font-family: var(--tk-mono);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--tk-soft);
}
.tk-line-t span { color: var(--tk-faint); }
.tk-line-b { min-width: 0; flex: 1; }
.tk-line-b b { display: block; margin-bottom: 3px; font-size: 0.93rem; font-weight: 600; line-height: 1.3; }
.tk-line-b > span { display: block; font-size: 0.78rem; line-height: 1.5; color: var(--tk-soft); }

.tk-chip {
  display: inline-block !important;
  width: auto !important;
  margin-top: 5px;
  padding: 2px 7px;
  border: 1px solid var(--tk-rule);
  border-radius: 4px;
  font-family: var(--tk-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tk-soft);
}

.tk-free { padding: 40px 20px; text-align: center; color: var(--tk-soft); font-size: 0.9rem; line-height: 1.6; }
.tk-free b { display: block; margin-bottom: 6px; font-size: 1.05rem; color: var(--tk-ink); }

.tk-oops { padding: 30px 20px; color: var(--text-muted); font-size: 0.9rem; }
.tk-foot { margin: 6px 0 50px; font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); }
