/* Rocket Logbook - public page. Colours follow the theme (currentColor) so it fits light and dark themes. */
.rlb-log { --rlb-line: rgba(127, 135, 145, .28); --rlb-soft: rgba(127, 135, 145, .08); --rlb-accent: #c2410c; font-variant-numeric: tabular-nums; }
.rlb-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2rem; }
.rlb-chips a { padding: .3rem .75rem; border: 1px solid var(--rlb-line); border-radius: 999px; text-decoration: none; font-size: .9em; white-space: nowrap; }
.rlb-chips a:hover, .rlb-chips a:focus-visible { border-color: var(--rlb-accent); color: var(--rlb-accent); }
.rlb-rocket { margin: 0 0 3rem; scroll-margin-top: 90px; }
.rlb-head { display: flex; gap: 1.25rem; align-items: flex-start; margin: 0 0 1rem; }
.rlb-hero { flex: 0 0 150px; display: block; border-radius: 8px; overflow: hidden; background: var(--rlb-soft); }
.rlb-hero img { display: block; width: 150px; height: 200px; object-fit: cover; }
.rlb-headtext h3 { margin: 0 0 .35rem; line-height: 1.2; }
.rlb-badge { display: inline-block; vertical-align: middle; font-size: .55em; font-weight: 600; letter-spacing: .02em; padding: .2em .6em; border-radius: 999px; background: var(--rlb-accent); color: #fff; }
.rlb-summary { margin: 0 0 .3rem; }
.rlb-specs, .rlb-count { margin: 0 0 .2rem; font-size: .9em; opacity: .75; }
.rlb-table-wrap { overflow-x: auto; }
.rlb-flights { width: 100%; border-collapse: collapse; font-size: .92em; }
.rlb-flights th { text-align: left; font-weight: 600; padding: .45rem .6rem; border-bottom: 2px solid var(--rlb-line); white-space: nowrap; }
.rlb-flights td { padding: .5rem .6rem; border-bottom: 1px solid var(--rlb-line); vertical-align: top; }
.rlb-flights td.num, .rlb-flights td:first-child { white-space: nowrap; }
.rlb-flights td:nth-child(6) { min-width: 12rem; }
.rlb-row { cursor: pointer; }
.rlb-row:hover td { background: var(--rlb-soft); }
.rlb-flight.open .rlb-row td { background: var(--rlb-soft); border-bottom-color: transparent; }
.rlb-toggle-cell { width: 2.2rem; text-align: right; }
.rlb-toggle { background: none; border: 1px solid var(--rlb-line); border-radius: 50%; width: 1.8rem; height: 1.8rem; line-height: 1; cursor: pointer; color: inherit; padding: 0; transition: transform .15s; }
.rlb-flight.open .rlb-toggle { transform: rotate(90deg); border-color: var(--rlb-accent); color: var(--rlb-accent); }
.rlb-toggle:focus-visible { outline: 2px solid var(--rlb-accent); outline-offset: 2px; }
.rlb-flights .rlb-detail[hidden] { display: none !important; }
.rlb-detail > td { background: var(--rlb-soft); padding: .9rem 1rem 1.1rem; white-space: normal !important; }
.rlb-flights td, .rlb-flights th { box-sizing: border-box; }
.rlb-dgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .5rem 1.5rem; margin: 0 0 .8rem; }
.rlb-dgroup { min-width: 0; }
.rlb-dgroup dd, .rlb-dgroup dt { overflow-wrap: anywhere; white-space: normal; }
.rlb-dgroup dt { max-width: 11rem; }
.rlb-dgroup h4 { margin: 0 0 .3rem; font-size: .78em; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.rlb-dgroup dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .15rem .8rem; margin: 0; }
.rlb-dgroup dt { opacity: .75; }
.rlb-dgroup dd { margin: 0; }
.rlb-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .8rem; }
.rlb-photo img { display: block; height: 120px; width: auto; border-radius: 6px; }
.rlb-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .75rem; margin: 0 0 .8rem; }
.rlb-video iframe, .rlb-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.rlb-notes p { margin: 0 0 .6rem; }
.rlb-analysis { margin: .4rem 0 0; font-weight: 600; }
.rlb-rnotes { margin: .8rem 0 0; }
.rlb-rnotes summary { cursor: pointer; font-weight: 600; }
.rlb-empty { opacity: .7; margin: 0; }
.rlb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rlb-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.rlb-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.rlb-lightbox img { display: block; max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.rlb-lightbox button { position: fixed; background: rgba(0, 0, 0, .5); color: #fff; border: 0; font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.rlb-lb-close { top: 1rem; right: 1rem; }
.rlb-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.rlb-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .rlb-head { gap: .9rem; }
  .rlb-hero { flex-basis: 96px; }
  .rlb-hero img { width: 96px; height: 128px; }
  .rlb-flights thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rlb-flights, .rlb-flights tbody, .rlb-flights tr, .rlb-flights td { display: block; width: 100%; }
  .rlb-flight { border: 1px solid var(--rlb-line); border-radius: 8px; margin: 0 0 .6rem; overflow: hidden; }
  .rlb-row { position: relative; padding: .4rem 0; }
  .rlb-row td { border: 0; padding: .15rem .8rem; display: grid; grid-template-columns: 6.5rem 1fr; }
  .rlb-row td::before { content: attr(data-label); opacity: .65; }
  .rlb-row td.rlb-toggle-cell { position: absolute; top: .4rem; right: .5rem; width: auto; display: block; padding: 0; }
  .rlb-row td.rlb-toggle-cell::before { content: none; }
  .rlb-detail > td { display: block; }
  .rlb-flights td:nth-child(6) { min-width: 0; }
  .rlb-videos { grid-template-columns: 1fr; }
}
