/* ============================================================================
   AVAVA Radio — Blog post (entry 148)
   The page loads blog.css first: the three-column frame and both sidebars are
   the journal's own. This file only adds the entry and the replies.

   01. The entry: head, level graph, photo
   02. The timeline of the night
   03. Totals, tags, neighbours
   04. The replies and the form
   05. Responsive ≤1100px / ≤760px
   ========================================================================= */

/* --------------------------------------------------- 01. the entry ----- */
.bp-col { display: flex; flex-direction: column; gap: clamp(26px, 3vw, 44px); min-width: 0; }
.bp-entry { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.bp-head { display: flex; flex-direction: column; gap: 13px; }
.bp-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.bp-no { font: 800 20px / 1 Orbitron, sans-serif; color: var(--accent); }
.bp-by { font-size: 16px; line-height: 1.2; color: var(--i6); }
.bp-t { margin: 0; font: 700 clamp(28px, 3.8vw, 52px) / .96 'Bricolage Grotesque', sans-serif; letter-spacing: -.045em; text-transform: uppercase; }
.bp-lede { font: 400 clamp(18px, 2vw, 25px) / 1.4 'Instrument Serif', serif; font-style: italic; max-width: 760px; text-wrap: pretty; }

.bp-level { display: flex; flex-direction: column; gap: 9px; padding: 18px; border: 1px solid var(--i16); }
.bp-level-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
/* the level file of the hour: the six flat bars are the eleven minutes */
.bp-levels { display: flex; align-items: flex-end; gap: 2px; height: 76px; }
.bp-lv { flex: 1; background: var(--i28); }
.bp-lv.is-flat { background: var(--accent); }
.bp-level-t { display: flex; justify-content: space-between; }

/* the photograph ships with the template; the hatching stays as its backing */
.bp-photo { position: relative; aspect-ratio: 21 / 9; background: repeating-linear-gradient(135deg, var(--i10) 0 9px, var(--i16) 9px 18px); }
.bp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.bp-p { font: 400 17px / 1.75 Archivo, sans-serif; color: var(--i7); text-wrap: pretty; }

/* --------------------------------------- 02. the timeline of the night - */
.bp-nodes { list-style: none; }
.bp-node { display: grid; grid-template-columns: clamp(96px, 11%, 128px) 22px minmax(0, 1fr); gap: clamp(12px, 1.6vw, 22px); padding-bottom: 22px; }
.bp-node--last { padding-bottom: 0; }
.bp-when { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.bp-time { font-size: 13px; color: var(--i7); }
.bp-status { color: var(--i5); }
.bp-node--on .bp-time, .bp-node--on .bp-status { color: var(--accent); }
.bp-node--head .bp-h { color: var(--accent); }   /* only the first node carries an ember heading */

/* the rail runs through every node; the last one stops at its own dot */
.bp-rail { position: relative; display: flex; justify-content: center; }
.bp-line { position: absolute; top: 8px; bottom: -22px; width: 2px; background: var(--i22); }
.bp-node--on .bp-line { background: var(--accent); }
.bp-node--last .bp-line { bottom: auto; height: 22px; }
.bp-dot { position: relative; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--i55); }
.bp-node--on .bp-dot { width: 12px; height: 12px; margin-top: 4px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }

.bp-node-b { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
/* the prototype leaves the browser's own margin on these headings (0.83em),
   and the whole timeline is built around that air — kept as it draws it */
.bp-h { margin: .83em 0; font: 700 clamp(19px, 2vw, 26px) / 1 'Bricolage Grotesque', sans-serif; letter-spacing: -.045em; text-transform: uppercase; }

.bp-quote { display: flex; gap: 14px; padding: 16px 18px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); font: 400 clamp(17px, 1.9vw, 23px) / 1.35 'Instrument Serif', serif; font-style: italic; text-wrap: pretty; }

/* the hairlines of the part table are the grid's own background */
.bp-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--i14); list-style: none; }
.bp-part { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; background: var(--paper); }
.bp-part-v { font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; line-height: normal; }

.bp-changes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; list-style: none; }
.bp-change { display: flex; flex-direction: column; gap: 7px; padding: 14px; border: 1px solid var(--i18); }
.bp-change .mono { color: var(--i45); }
.bp-change--on { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.bp-change--on .mono { color: var(--accent); }
.bp-change-x { font: 400 14px / 1.5 Archivo, sans-serif; color: var(--i7); }

/* ------------------------------------- 03. totals, tags, neighbours ---- */
/* the hairlines between the totals are the grid's own background */
.bp-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--i14); border-top: 2px solid var(--ink); list-style: none; }
.bp-total { display: flex; flex-direction: column; gap: 5px; padding: 15px 16px; background: var(--paper); }
.bp-total-n { font: 800 24px / 1 Orbitron, sans-serif; }
.bp-total--on .bp-total-n { color: var(--accent); }

.bp-tagged { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid var(--i16); }

.bp-near-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(12px, 1.6vw, 24px); list-style: none; }
.bp-near { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 15px; border: 1px solid var(--i16); }
.bp-near:hover { border-color: var(--accent); }
.bp-near-t { display: block; min-width: 0; font: 600 clamp(15px, 1.5vw, 18px) / 1.3 Archivo, sans-serif; color: var(--ink); text-wrap: pretty; }

/* ------------------------------------------ 04. replies and the form --- */
.bp-comments { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 26px); min-width: 0; padding-top: clamp(20px, 2.4vw, 34px); border-top: 2px solid var(--ink); }
.bp-cm-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
.bp-cm-n { font: 700 clamp(20px, 2.2vw, 30px) / 1 'Bricolage Grotesque', sans-serif; letter-spacing: -.04em; text-transform: uppercase; }

.bp-cms { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 22px); }
.bp-cms ul { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 22px); list-style: none; }
.bp-cm { display: grid; grid-template-columns: clamp(38px, 4vw, 52px) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 18px); padding-bottom: clamp(14px, 1.8vw, 20px); border-bottom: 1px solid var(--i14); }
/* a reply to a reply steps to the right */
.bp-cm--in { margin-left: clamp(20px, 4vw, 56px); }
/* the avatars ship with the template; the hatching stays as their backing */
.bp-face { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: repeating-linear-gradient(135deg, var(--i10) 0 6px, var(--i16) 6px 12px); }
.bp-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bp-cm-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bp-cm-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 11px; }
.bp-who { font: 600 15px / 1.2 Archivo, sans-serif; }
.bp-who--host { color: var(--accent); }
.bp-badge { padding: 3px 7px; background: var(--accent); color: #fff; font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; line-height: normal; }
.bp-cm-x { font: 400 15px / 1.6 Archivo, sans-serif; color: var(--i6); text-wrap: pretty; }
.bp-cm-f { display: flex; align-items: center; gap: 14px; }
.bp-reply { border: 0; background: none; font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; line-height: normal; color: var(--i45); cursor: pointer; }
.bp-reply:hover { color: var(--accent); }
.bp-more { border: 0; background: none; text-align: left; cursor: pointer; }

.bp-form { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 18px); padding: clamp(18px, 2.2vw, 28px); border: 1px solid var(--i16); }
.bp-form-x { font: 400 15px / 1.5 Archivo, sans-serif; color: var(--i6); text-wrap: pretty; }
.bp-form-row { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 20px); }
.bp-field { display: flex; flex-direction: column; gap: 7px; flex: 1 1 200px; min-width: 0; }
.bp-form > .bp-field { flex: none; }
/* the journal's fields are a shade larger than the site default */
.bp-form .rq { padding: 12px 0; font-size: 17px; border-bottom-color: var(--i45); }
.bp-area { resize: vertical; }
.bp-form-f { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.bp-post { padding: 14px 22px; letter-spacing: .2em; line-height: normal; }
.bp-post:hover { background: var(--shell); color: #fff; }

/* ------------------------------------------------- 05. responsive ------ */
@media (max-width: 1100px) {
  .bp-col { order: 2; }
}

@media (max-width: 760px) {
  .bp-node { grid-template-columns: 22px minmax(0, 1fr); }
  /* the time moves above the text, so the rail keeps its place */
  .bp-when { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 10px; text-align: left; }
  .bp-cm--in { margin-left: 16px; }
}
