/* Living Pages (public/living.html, living.js): the timeline's colors, fonts and card style (styles.css). */
.lp { max-width: 980px; margin: 0 auto; padding: 22px max(16px, 4vw) 60px; }
.lp-head h2 { margin: 0; font: 500 34px/1.15 var(--serif); letter-spacing: -.02em; }
.lp-dates { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--warm); }
.lp-scope { margin: 8px 0 0; color: var(--ink-2); max-width: 70ch; }
.lp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.lp-refresh[disabled] { opacity: .6; cursor: default; }
.ev.lp-card { margin: 0; padding: 14px 16px 12px; } /* styles.css zeroes .ev padding for the timeline's collapsible cards */
.lp-card-title { margin: 0 0 4px; font: 500 20px/1.3 var(--serif); }
.lp-card .lp-note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.lp-day { margin: 14px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--warm); }
.lp-entry { display: grid; grid-template-columns: 84px 1fr; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.lp-entry:first-of-type { border-top: 0; }
.lp-entry .t { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.lp-entry .what { font-weight: 500; }
.lp-entry .place, .lp-entry .detail { font-size: 13.5px; color: var(--ink-2); }
.lp-entry.canceled .what, .lp-fact.canceled .v { text-decoration: line-through; color: var(--muted); }
.lp-fact { padding: 9px 0; border-top: 1px solid var(--line); }
.lp-fact:first-of-type { border-top: 0; }
.lp-fact .k { font-size: 12.5px; color: var(--muted); }
.lp-fact .v { font-size: 16px; font-weight: 500; }
.lp-fact .v.empty, .lp-entry .what.empty { color: var(--muted); font-weight: 400; font-style: italic; }
.lp-src { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.lp-badge { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .03em; vertical-align: 2px; border: 1px solid var(--line); color: var(--ink-2); }
.lp-badge.confirmed { background: color-mix(in srgb, #2f7d4f 16%, var(--surface)); border-color: color-mix(in srgb, #2f7d4f 40%, var(--line)); color: color-mix(in srgb, #2f7d4f 80%, var(--ink)); }
.lp-badge.planned { border-style: dashed; }
.lp-badge.canceled { background: var(--warm-soft); color: var(--warm); }
.lp-badge.stale { background: var(--warm-soft); color: var(--warm); border-color: transparent; }
.lp-wx { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lp-wx caption { text-align: left; font-weight: 600; padding: 10px 0 4px; }
.lp-wx td { padding: 4px 6px 4px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.lp-wx td.c { white-space: normal; color: var(--ink-2); width: 100%; }
.lp-wx .hi { font-weight: 600; }
.lp-wx .lo { color: var(--muted); }
.lp-links li, .lp-sources li, .lp-attention li { margin: 6px 0; }
.lp-links a, .lp-sources a { color: var(--accent); }
.lp-attention, .lp-sources { margin-top: 28px; }
.lp-attention h3, .lp-sources h3 { margin: 18px 0 6px; font: 500 18px var(--serif); }
.lp-attention ul, .lp-sources ul, .lp-links ul { margin: 0; padding-left: 18px; font-size: 14px; }
.lp-hint { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.lp-sources .when { color: var(--muted); font-size: 12.5px; }

/* ---- Agent-designed layout (lib/living-pages.ts: layout.sections, theme) ---- */
/* Themes: presets only. paper follows the site (and its dark mode); the others set their own colors. */
body.theme-night { --bg: #0f141b; --surface: #17202a; --surface-2: #1f2a36; --ink: #ece8df; --ink-2: #bcc3cc; --muted: #8b949e; --line: #2a3440; --accent: #9dc3e6; --accent-ink: #0d1d2b; --warm: #e8a979; --warm-soft: #3b2b20; }
body.theme-sea { --bg: #eef4f6; --surface: #fbfdfe; --surface-2: #dfeaee; --ink: #10303d; --ink-2: #3f5d69; --muted: #6f8791; --line: #cfdde2; --accent: #0f6a80; --accent-ink: #fff; --warm: #c0623a; --warm-soft: #f6e1d6; }
body.theme-forest { --bg: #f1f2ea; --surface: #fcfcf7; --surface-2: #e3e6d6; --ink: #1d2b1f; --ink-2: #4b5a4c; --muted: #7a857a; --line: #d8dcc9; --accent: #2f5d3a; --accent-ink: #fff; --warm: #a8622b; --warm-soft: #f1e2cf; }
body.theme-studio { --bg: #161616; --surface: #202020; --surface-2: #2a2a2a; --ink: #f2efe9; --ink-2: #c7c2b9; --muted: #918b82; --line: #333; --accent: #f0b44c; --accent-ink: #161616; --warm: #f0b44c; --warm-soft: #3a2f1c; }
body.theme-rose { --bg: #f8f1f0; --surface: #fffbfa; --surface-2: #f0e2df; --ink: #3a1f24; --ink-2: #6a4a4f; --muted: #93787b; --line: #ead8d5; --accent: #9b3a4d; --accent-ink: #fff; --warm: #b4563f; --warm-soft: #f6dfd7; }
body.type-clean .lp-head h2, body.type-clean .lp-card-title, body.type-clean .lp-section-title { font-family: var(--sans); letter-spacing: -.01em; font-weight: 600; }
body.type-mono { --serif: ui-monospace, "SF Mono", Menlo, monospace; }
body.type-mono .lp-head h2 { letter-spacing: -.03em; }
body.density-airy .lp-section-body { gap: 22px; }
body.density-airy .ev.lp-card { padding: 20px 22px 18px; }
body.density-compact .lp-section-body { gap: 10px; }
body.density-compact .ev.lp-card { padding: 10px 12px 8px; }
body.density-compact { font-size: 14px; }

.lp-cards { margin-top: 22px; }
.lp-section { margin: 0 0 30px; }
.lp-section-title { margin: 0 0 4px; font: 500 24px/1.2 var(--serif); letter-spacing: -.01em; }
.lp-section-intro { margin: 0 0 12px; color: var(--ink-2); max-width: 70ch; }
.lp-section-body { display: grid; gap: 16px; align-items: start; }
.style-stack .lp-section-body { grid-template-columns: 1fr; }
.style-grid .lp-section-body { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.style-columns .lp-section-body { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.style-columns.cols-1 { --cols: 1; } .style-columns.cols-2 { --cols: 2; } .style-columns.cols-3 { --cols: 3; } .style-columns.cols-4 { --cols: 4; }
.style-feature .lp-section-body { grid-template-columns: 2fr 1fr; }
.style-feature .lp-section-body > :first-child { grid-row: span 3; }
.lp-section-body > .wide { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .style-columns .lp-section-body, .style-feature .lp-section-body { grid-template-columns: 1fr; }
  .style-feature .lp-section-body > :first-child { grid-row: auto; }
  .lp-head h2 { font-size: 28px; }
}
.lp-card-title { margin: 0 0 4px; font: 500 20px/1.3 var(--serif); }
.lp-card.em-lead { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow), inset 4px 0 0 var(--accent); }
.lp-card.em-lead .lp-card-title { font-size: 24px; }
.lp-card.em-quiet { background: transparent; box-shadow: none; }
.lp-card.em-quiet .lp-card-title { font-size: 16px; color: var(--ink-2); }

.lp-text p { margin: 0 0 10px; max-width: 72ch; }
.lp-text ul { margin: 0 0 10px; padding-left: 20px; }
.lp-group { margin: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--warm); }
.lp-group:first-of-type { margin-top: 4px; }
.lp-items { list-style: none; margin: 0; padding: 0; }
.lp-item { padding: 8px 0; border-top: 1px solid var(--line); }
.lp-item:first-child { border-top: 0; }
.lp-item-text { font-weight: 500; }
a.lp-item-text, .lp-tile figcaption a { color: var(--accent); }
.lp-item-detail { font-size: 13.5px; color: var(--ink-2); }
.lp-item.canceled .lp-item-text { text-decoration: line-through; color: var(--muted); }
.lp-badge.tag { background: var(--surface-2); border-color: transparent; }
.lp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.lp-tile { margin: 0; }
.lp-tile img, .lp-tile-ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.lp-tile-ph { display: grid; place-items: center; font: 500 34px var(--serif); color: var(--muted); }
.lp-tile figcaption { margin-top: 6px; font-size: 14px; font-weight: 500; }
.lp-quote { margin: 10px 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); }
.lp-quote p { margin: 0 0 4px; }
.lp-quote cite { font-size: 12.5px; font-style: normal; color: var(--muted); }

/* ---- sharing (owner) and notes (guest) ---- */
.lp-guest, .lp-share { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lp-guest h3, .lp-share h3 { margin: 0 0 6px; font: 500 18px var(--serif); }
.lp-guest textarea, .lp-share input, .lp-share-link input { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.lp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.lp-share .lp-row input { flex: 1 1 220px; width: auto; }
.chip.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lp-guests { margin: 4px 0 6px; padding-left: 18px; font-size: 14px; }
.lp-guests li { margin: 6px 0; }
.lp-share-link { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-share-link p { flex-basis: 100%; margin: 0; font-size: 14px; }
.lp-share-link input { flex: 1 1 260px; width: auto; }
.lp-preview-bar { position: sticky; top: 0; z-index: 5; margin: -6px 0 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--warm-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warm) 40%, var(--line)); font-size: 14px; }
.lp-warn { margin-top: 8px; }
.lp-warn ul { margin: 6px 0 0; padding-left: 18px; }
.lp-warn li { margin: 5px 0; }
.lp-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The guest host's sign-in and "not shared" pages (lib/living-html.ts guestNotice). */
.lp-gate { max-width: 520px; margin: 12vh auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.lp-gate h2 { margin: 0 0 8px; font: 500 26px var(--serif); }
.lp-gate p { color: var(--ink-2); }
.lp-note-list { margin-top: 14px; }
.lp [hidden], .lp-preview-bar[hidden] { display: none !important; }
@media (max-width: 720px) { .lp-tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
/* The guest host's public About, Privacy and Terms pages (public/about.html, privacy.html, terms.html). */
.lp-legal { max-width: 720px; }
.lp-legal h2 { margin: 6px 0 10px; font: 500 32px/1.2 var(--serif); }
.lp-legal h3 { margin: 22px 0 6px; font: 500 19px var(--serif); }
.lp-legal p, .lp-legal li { max-width: 68ch; }
.lp-legal a { color: var(--accent); }
