/* The Moon story's own parts, in the site's light style (tokens from site.css). */

/* the section index ("flight log") */
.log { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin: 0 auto var(--space-6); }
.log a { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-row); padding: 12px 14px 14px; text-decoration: none; display: grid; gap: 3px; color: var(--ink); transition: box-shadow var(--motion) var(--ease), transform var(--motion) var(--ease); }
.log a:hover { box-shadow: var(--elevation-2); transform: translateY(-2px); color: var(--ink); }
.log .t { font-family: var(--font-mono); font-size: .72rem; color: var(--orange-text); }
.log .n { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.15; color: var(--navy); }
.log .s { font-size: .82rem; color: var(--muted); }

/* the note about the run */
.run { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 16px 20px; color: var(--ink-2); max-width: 780px; box-shadow: var(--elevation-1); }
.run b { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sage-text); display: block; margin-bottom: 4px; }

/* lending status */
.avail { display: grid; gap: var(--space-3); }
.book { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 16px 18px; }
.book h3 { font-size: 1.2rem; line-height: 1.2; }
.book p { color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.pill.open { color: #2f5d40; border-color: #9cc2a6; background: #eef5ef; }
.pill.loan { color: var(--orange-text); border-color: #e2b49c; background: var(--orange-light); }

/* the Apollo 11 photograph */
.photo { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 12px; box-shadow: var(--elevation-1); }
.photo img { width: 100%; border-radius: 6px; }
.photo .tag { position: absolute; top: 24px; left: 24px; font-family: var(--font-mono); font-size: .72rem; color: #fff; background: rgba(13,34,64,.78); padding: 3px 9px; border-radius: var(--radius-pill); z-index: 1; }
.photo figcaption { color: var(--ink-2); font-size: .9rem; margin-top: 12px; max-width: 66ch; }
.photo figcaption q { color: var(--ink); }

/* NASA subtitles, larger than a transcript */
.moon-srt { gap: 22px; }
.moon-srt .big-cue { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.2; color: var(--navy); font-weight: 500; }
.moon-srt .small-cue { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; color: var(--ink-2); }

/* TV programs */
.list { display: grid; gap: 4px; font-size: .92rem; color: var(--ink-2); padding: 0; margin: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px solid var(--soft); padding: 7px 0; }
.list li span:last-child { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }

@media (max-width: 900px) {
  .log { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .log { grid-template-columns: 1fr; }
}
