/**
 * Bond Priori - The Daybook (V76)
 * Only what the newspaper kit lacks. Tokens only — no hardcoded colours.
 */

/* ── Compose ── */

.bp-dbk-compose-note { color: var(--bp-ink-muted); margin: 6px 0 16px; }

.bp-dbk-fields { display: flex; flex-direction: column; gap: 22px; }

.bp-dbk-movement {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--bp-rule);
}
.bp-dbk-movement:first-child { padding-top: 0; border-top: 0; }

.bp-dbk-field textarea { min-height: 54px; resize: vertical; }

.bp-dbk-compose-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--bp-rule-strong);
}

/* ── A printed entry ── */

.bp-dbk-entry { display: flex; flex-direction: column; gap: 2px; }

.bp-dbk-mv {
  margin-top: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bp-rule);
}
.bp-dbk-entry > .bp-dbk-mv:first-child { margin-top: 0; }

.bp-dbk-qa { padding: 12px 0; border-bottom: 1px solid var(--bp-rule); }
.bp-dbk-qa:last-of-type { border-bottom: 0; }

.bp-dbk-q { color: var(--bp-ink-muted); margin-bottom: 4px; }
.bp-dbk-a { white-space: pre-wrap; }

.bp-dbk-act {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 2px solid var(--bp-rule-strong);
}
.bp-dbk-act button.is-on { color: var(--bp-copper-ink); }

/* ── Replies ── */

.bp-dbk-replies {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--bp-rule);
  background: var(--bp-paper-tint);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-dbk-reply { position: relative; }

.bp-dbk-reply-del {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 6px;
  cursor: pointer;
  font-family: var(--bp-font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bp-copper-ink);
}

.bp-dbk-reply-form { margin-top: 4px; }
.bp-dbk-reply-form textarea { min-height: 54px; resize: vertical; }

/* ── Back issues ── */

.bp-dbk-back { display: flex; flex-direction: column; }

.bp-dbk-back-item { border-bottom: 1px solid var(--bp-rule); }

.bp-dbk-back-head {
  width: 100%;
  display: grid;
  grid-template-columns: 96px 88px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--bp-ink);
}
.bp-dbk-back-head:hover,
.bp-dbk-back-head:focus-visible { color: var(--bp-copper-ink); }

.bp-dbk-back-open { color: var(--bp-ink-muted); }

.bp-dbk-back-arrow { font-family: var(--bp-font-label); font-size: 14px; }

.bp-dbk-back-head[aria-expanded="true"] .bp-dbk-back-arrow { transform: rotate(90deg); }

.bp-dbk-back-body { padding: 4px 0 18px; }

/* ── Aside: seven days of weather ── */

.bp-dbk-weather {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  border: 1px solid var(--bp-rule);
  padding: 10px 6px;
}

.bp-dbk-wx {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  min-width: 0;
}
.bp-dbk-wx-glyph { display: inline-flex; color: var(--bp-ink); }

/* ── Aside: lately ── */

.bp-dbk-lately { display: flex; flex-direction: column; }

.bp-dbk-late {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--bp-rule);
  text-decoration: none;
}
.bp-dbk-late:last-child { border-bottom: 0; }
.bp-dbk-late .cap { color: var(--bp-ink-muted); }

/* ── Aside: the byline ── */

.bp-dbk-byline { display: flex; flex-direction: column; gap: 10px; }

.bp-dbk-byline-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--bp-rule);
}

.bp-dbk-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.bp-dbk-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1.5px solid var(--bp-ink);
  border-radius: var(--bp-radius-pill);
  font-family: var(--bp-font-label);
  font-size: 11px;
  font-weight: 700;
  color: var(--bp-ink);
}

/* ── Mobile ── */

@media (max-width: 720px) {
  .bp-dbk-back-head {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }
  /* The opening line spans the full width on its own row rather than vanishing. */
  .bp-dbk-back-open { grid-column: 1 / -1; }

  .bp-dbk-weather { grid-template-columns: repeat(4, 1fr); gap: 8px 4px; }

  .bp-dbk-late { grid-template-columns: 1fr; gap: 2px; }
}
