/* Field notes: article layer on top of htc.css. Keep small. */
.note { padding-top: 40px; max-width: 1040px; }
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; font-weight: 500; }
.crumbs li { color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--mute); }
.crumbs a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--blue-hover); }
.note-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.note-title { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.chip-status { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-ink); }
.note-hero { margin: 32px 0 0; }
/* Hero: one fixed 2:1 box for every post, whatever shape the organiser's image is. hero.fit "contain" keeps a wide banner whole on a blurred copy of itself. */
.note-hero-box { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg-soft); }
.note-hero-box img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.is-contain .note-hero-box::before { content: ""; position: absolute; inset: -40px; background: var(--hero-bg) center / cover no-repeat; filter: blur(28px) saturate(1.1) brightness(.85); }
.is-contain .note-hero-box img { object-fit: contain; }
.note-fig img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg-soft); }
.note-purpose { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--blue-tint); border-radius: 0 var(--radius-btn) var(--radius-btn) 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 760px; }
.note-purpose-k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--blue-ink); white-space: nowrap; }
figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
figcaption a { color: var(--mute); text-decoration: underline; }
.note-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; margin-top: 40px; align-items: start; }
.note-body p, .note-body li { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.note-body h2, .sources h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.people { padding-left: 18px; }
.people li { margin-bottom: 10px; }
.note-fig { margin: 0 0 20px; max-width: 420px; }
.factbox { position: sticky; top: 80px; background: var(--bg-soft); border-radius: var(--radius-md); padding: 22px 22px 24px; }
.factbox h2 { margin: 0 0 4px; text-transform: uppercase; }
.factbox .fact-row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 11px 0; font-size: 14.5px; line-height: 1.4; align-items: baseline; }
.factbox .fact-row .k { font-size: 13.5px; }
.factbox .fact-row .v { overflow-wrap: anywhere; }
.factbox-cal { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; background: #fff; }
.cal-btn:hover .cal-ico { color: #fff; }
.cal-alt { margin: 0; font-size: 13px; line-height: 1.45; color: var(--mute); text-align: center; }
.cal-alt a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.factbox-cta { margin-top: 20px; width: 100%; }
.sources { border-top: 1px solid var(--line); margin-top: 48px; }
.sources li { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.back { margin: 32px 0 0; }
.back .btn-outline { display: inline-block; }
@media (max-width: 860px) {
  .note-grid { grid-template-columns: 1fr; gap: 8px; }
  .factbox { position: static; order: -1; }
  .note { padding-top: 24px; }
}

.factbox-chat{margin-top:16px;padding-top:14px;border-top:1px solid rgba(0,0,0,.1)}.factbox-chat .chat-q{font-weight:600;margin:0 0 4px}.factbox-chat .chat-t{margin:0;font-size:.9em}

/* Index page */
.notes-index { padding-top: 56px; max-width: 1040px; }
.ix-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.ix-h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 16px; }
.ix-upcoming { margin-top: 48px; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: stretch; }
.up-chip { display: flex; }
/* Every chip the same size: fixed min-height that fits a 2-line name, 1-line venue and status; content centred */
.up-chip a { flex: 1; display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 14px; align-content: center; align-items: center; min-height: 104px; box-sizing: border-box; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.up-chip a:hover { border-color: var(--ink); color: var(--ink); }
.up-date { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-ink); line-height: 1; }
.up-date .d { font-size: 22px; font-weight: 600; }
.up-date .m { font-family: var(--mono); font-size: 12px; text-transform: uppercase; margin-top: 3px; }
.up-date:has(.w) { height: 64px; }
.up-date .w { font-family: var(--mono); font-size: 11px; text-transform: uppercase; margin-bottom: 3px; }
.up-txt { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.up-txt strong { line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-txt span { color: var(--mute); font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-chip .chip-status { justify-self: start; font-size: 12px; padding: 2px 10px; }
.up-chip { position: relative; }
.up-chip a.up-cal { position: absolute; right: 14px; bottom: 18px; display: inline-flex; flex: none; min-height: 0; padding: 0; border: 0; border-radius: 0; color: var(--blue); }
.up-chip a.up-cal:hover { color: var(--blue-hover); }
.ix-empty { color: var(--mute); font-size: 15px; margin: 0; }
.up-list:has(li) + .up-empty, .feed:has(li) ~ .feed-empty { display: none; }
.ix-feed { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.ix-feed-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.ix-filters { display: flex; flex-direction: column; gap: 10px; }
.fbtn { font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.fbtn:hover { border-color: var(--ink); }
.fbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fbtn-tag { font-size: 12px; padding: 3px 10px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
.feed > .card { display: flex; }
.feed > .card[hidden] { display: none; }
.feed > .card > article { flex: 1; align-items: center; }
.card article { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
/* Cards: every image sits in the same 16:9 box (organiser images are hotlinked and vary in shape, so CSS crops them) */
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .2s; }
.card:hover .card-img img { transform: scale(1.02); }
/* Clamped slots (2-line title, 1-line meta, up to 2-line purpose, 2-line summary, 1-line tags); .feed rows are equal height (grid-auto-rows: 1fr), spare space falls at the bottom */
.card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-title { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--blue); }
.card-meta { margin: 0; display: flex; align-items: center; gap: 14px; min-height: 18px; font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--mute); }
.card-cal { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-family: var(--font, inherit); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.card-cal:hover { color: var(--blue-hover); }
.card-why { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-why-k { font-weight: 600; color: var(--ink); }
.card-sum { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; line-height: 18px; color: var(--mute); max-height: 18px; overflow: hidden; }
.card-tags li::before { content: "#"; }
/* Notes without an event (no date, no purpose): drop the empty slots and give the summary a third line */
.card-meta:empty, .card-why:empty { display: none; }
.card-body:has(.card-why:empty) .card-sum { -webkit-line-clamp: 3; }
@media (max-width: 900px) { .card article { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; } .card-title { font-size: 20px; } }
@media (max-width: 760px) {
  .card article { grid-template-columns: 1fr; gap: 14px; }
  .notes-index { padding-top: 32px; }
  .card-title { -webkit-line-clamp: 3; }
  .feed { grid-auto-rows: auto; }
  .feed > .card > article { align-items: start; }
}
@media (max-width: 860px) { .note-hero { margin-top: 24px; } .note-purpose { font-size: 15px; } }
.ix-filters[hidden] { display: none; }

/* Field note video embed (YouTube Short, 9:16) */
.note-video { margin: 0 auto 28px; max-width: 360px; }
.note-video-box { position: relative; aspect-ratio: 9 / 16; width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.note-video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note-video figcaption { margin-top: 8px; font-size: 14px; }

/* Dated update at the top of a note (22 Oct 2026) */
.note-update { margin: 28px 0 0; max-width: 760px; box-sizing: border-box; padding: 18px 20px 16px; border-left: 3px solid var(--blue); background: var(--blue-tint); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.note-update .note-update-h { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.note-update-k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--blue-ink); margin-right: 6px; vertical-align: 2px; }
.note-update p { margin: 0 0 10px; }
.otw-photos { display: grid; grid-template-columns: 75fr 75fr 119fr; gap: 10px; margin-top: 14px; }
.otw-photos figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); }
.otw-photos figure.otw-wide { aspect-ratio: 1600 / 1345; }
.otw-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.note-update .otw-cap { margin: 8px 0 0; font-size: 13px; color: var(--mute); }
@media (max-width: 560px) { .otw-photos { grid-template-columns: 1fr 1fr; } .otw-photos figure.otw-wide { grid-column: 1 / -1; } }
