/* =====================================================================
   home-page.css
   Home page only. Keep selectors scoped under .home-page so these styles
   cannot affect other Astrohead pages.
   ===================================================================== */

/* Home-only visual scaffolding. Uses the site's familiar blue border treatment. */
.home-page { --home-box-gap: 15px; }
/* Footer sits at the bottom of the window on tall screens and follows the cards on short ones. */
.home-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.home-page .home-main { flex: 1 0 auto; }
.home-page .home-footer { flex: none; }
.home-page .home-main { width: min(960px, calc(100% - 36px)); margin: 0 auto; padding: 20px 0 34px; }
.home-page .home-intro { margin: 0 2px 18px; }
.home-page .home-kicker { margin: 0 0 5px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-page .home-title { margin: 0; color: var(--ink); font-size: clamp(24px, 4vw, 32px); line-height: 1.2; white-space: normal; }
.home-page .home-deck { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.home-page .home-card--summary .home-deck { width: 100%; max-width: none; margin: 0 0 10px; color: #fff; font-size: 14px; line-height: 1.6; }
.home-page .home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--home-box-gap); }
.home-page .home-column { display: flex; flex-direction: column; align-items: stretch; gap: var(--home-box-gap); min-width: 0; }
.home-page .home-column--left { grid-column: 1; }
.home-page .home-column--right { grid-column: 2; }
.home-page .home-card { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 16, 27, .82); box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
.home-page .home-card--summary { grid-column: 1 / -1; border-color: rgba(244, 163, 74, .34); background: rgba(10, 16, 27, .82); }
.home-page .home-card--summary .home-title--inside-card { margin: 0; }
.home-page .home-card--summary .home-summary-heading { display: flex; align-items: center; gap: var(--logo-gap); margin: 0 0 12px; }
.home-page .home-card--summary .home-summary-logo-link { display: block; flex: 0 0 auto; line-height: 0; }
.home-page .home-card--summary .home-summary-logo { display: block; width: auto; height: auto; max-width: 150px; max-height: 68px; object-fit: contain; object-position: left center; }

.home-page .home-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.home-page .home-card-mark { display: grid; order: 2; place-items: center; flex: 0 0 22.5px; width: 22.5px; height: 22.5px; border: 1px solid rgba(145, 203, 238, .3); border-radius: 7px; color: var(--blue); background: rgba(145, 203, 238, .08); font-size: 15px; }
.home-page .home-card h2 { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-size: 16px; line-height: 1.3; }
.home-page .home-card--moon h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.home-page .home-card--moon .home-card-subtitle { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
.home-page .home-card p { margin: 0; color: #c2ccda; font-size: 13px; line-height: 1.65; }
.home-page .home-card .home-placeholder { color: var(--muted); }
.home-page .home-quote { color: #e8edf5 !important; font-size: 17px !important; line-height: 1.55 !important; }
.home-page .home-attribution { margin-top: 10px !important; color: var(--blue) !important; font-size: 11px !important; }
.home-page .home-card-meta { margin-top: 13px !important; color: var(--muted) !important; font-size: 11px !important; }
.home-page .home-media-placeholder { display: grid; place-items: center; min-height: 128px; margin: 0 0 13px; border: 1px dashed rgba(145, 203, 238, .28); border-radius: 9px; color: rgba(199, 229, 247, .75); background: linear-gradient(135deg, rgba(145, 203, 238, .08), rgba(255, 255, 255, .015)); font-size: 12px; letter-spacing: .04em; text-align: center; }
.home-page .home-label { margin: 0 0 6px !important; color: var(--blue) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-page .home-footer { padding: 0 12px 12px; color: rgba(231, 237, 247, .72); font-size: 11px; text-align: center; }

@media (max-width: 620px) {
  .home-page { --home-box-gap: 11px; }
  .home-page .home-main { width: calc(100% - 30px); padding: 15px 0 26px; }
  .home-page .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-page .home-card--summary { grid-column: auto; }
  .home-page .home-column--left, .home-page .home-column--right { grid-column: auto; }
  
  .home-page .home-card { padding: 9px; border-radius: 12px; }
  .home-page .home-card--summary .home-summary-heading { gap: 10px; }
  .home-page .home-card--summary .home-summary-logo { max-width: 88px; max-height: 30px; }
  .home-page .home-card--summary .home-title--inside-card { min-width: 0; font-size: clamp(18px, 5vw, 24px); }
  .home-page .home-media-placeholder { min-height: 110px; }
}

/* Latest News lead-in: the card itself links to the full news page. */
.home-page a.home-card--news { display:block; color:inherit; text-decoration:none; transition:border-color .18s ease, background-color .18s ease; }
.home-page a.home-card--news:hover, .home-page a.home-card--news:focus-visible { border-color:rgba(145,203,238,.62); background-color:rgba(18,30,46,.96); }
.home-page a.home-card--news .home-card-head h2,
.home-page a.home-card--prediction .home-card-head h2 { transition:color .18s ease; }
.home-page a.home-card--news:hover .home-card-head h2,
.home-page a.home-card--news:focus-visible .home-card-head h2,
.home-page a.home-card--prediction:hover .home-card-head h2,
.home-page a.home-card--prediction:focus-visible .home-card-head h2 { color:var(--orange); }
.home-page a.home-card--prediction { display:block; color:inherit; text-decoration:none; transition:border-color .18s ease, background-color .18s ease; }
.home-page a.home-card--prediction:hover,
.home-page a.home-card--prediction:focus-visible { border-color:rgba(145,203,238,.62); background-color:rgba(18,30,46,.96); }
.home-page a.home-card--news:focus-visible,
.home-page a.home-card--prediction:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.home-page .home-news-list { display:grid; gap:4px; margin:0; padding:0; list-style:none; }
.home-page .home-news-item { display:flex; align-items:baseline; min-width:0; color:#c2ccda; font-size:12px; line-height:1.35; }
.home-page .home-news-date-group { display:inline-flex; flex:0 0 auto; align-items:baseline; white-space:nowrap; }
.home-page .home-news-item time { display:inline-block; flex:0 0 auto; color:var(--blue); font-size:11px; white-space:nowrap; }
.home-page .home-news-separator { margin:0 5px; color:var(--muted); }
.home-page .home-news-title { flex:1 1 auto; min-width:0; }
.home-page .home-news-status { color:var(--muted); font-size:12px; line-height:1.55; }

.home-page .home-prediction-image { display:block; width:100%; height:auto; border-radius:9px; }


@media (max-width: 620px) {
  .home-page .home-news-item { font-size:11px; line-height:1.5; }
  .home-page .home-news-item time { font-size:11px; }
  .home-page .home-news-separator { font-size:10px; }
  .home-page .home-news-status { font-size:11px; }
}

/* Featured Video cards (Mind, World, Universe): the shared listing row, resized to fit the homepage card. */
.home-page .home-card:has(.home-featured .video-row) { transition:border-color .18s ease, background-color .18s ease; }
.home-page .home-card:has(.home-featured .video-row):hover, .home-page .home-card:has(.home-featured .video-row):focus-within { border-color:rgba(145,203,238,.62); background-color:rgba(18,30,46,.96); }
.home-page .home-card:has(.home-featured .video-row) .home-card-head h2 { transition:color .18s ease; }
.home-page .home-card:has(.home-featured .video-row):hover .home-card-head h2, .home-page .home-card:has(.home-featured .video-row):focus-within .home-card-head h2 { color:var(--orange); }
.home-page .home-featured .video-row { grid-template-columns:minmax(0, 40%) minmax(0, 1fr); gap:12px; padding:0; border:0; }
.home-page .home-featured .home-featured-thumbnail-column { display:flex; min-width:0; flex-direction:column; align-items:flex-start; gap:4px; }
.home-page .home-featured .video-preview { width:100%; margin-top:0; }
.home-page .home-featured .home-featured-date,
.home-page .home-featured .home-featured-category { font-size:11px; line-height:1.35; }
.home-page .home-featured .home-featured-date { color:var(--muted); }
.home-page .home-featured .home-featured-category { color:var(--blue); }
.home-page .home-featured .video-title { font-size:14px; line-height:1.35; }
.home-page .home-featured .video-meta { gap:4px 8px; font-size:11px; }
.home-page .home-featured .video-description { margin-top:7px; font-size:12px; line-height:1.5; }
.home-page .home-featured-status { color:var(--muted) !important; font-size:12px !important; }
@media (max-width:620px) {
  .home-page .home-featured .video-row { grid-template-columns:1fr; gap:8px; }
  .home-page .home-featured .video-preview { max-height:190px; }
  .home-page .home-featured .video-title { font-size:13px; }
  .home-page .home-featured .video-description { font-size:11px; }
}
/* Masters and Contributors: simple CSS-drawn profile thumbnail placeholders. */
.home-page .home-contributors-intro { margin: -4px 0 10px !important; color: var(--muted) !important; font-size: 11px !important; }
.home-page .home-contributors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.home-page .home-contributor { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 10px; line-height: 1.3; text-align: center; }
.home-page .home-contributor strong { max-width: 100%; overflow-wrap: anywhere; color: #dce5f1; font-size: 11px; font-weight: 600; }
.home-page .home-contributor-thumb { position: relative; display: grid; place-items: center; width: 100%; max-width: 92px; aspect-ratio: 1.35; overflow: hidden; border: 1px dashed rgba(145, 203, 238, .28); border-radius: 9px; color: rgba(199, 229, 247, .82); background: radial-gradient(ellipse at 50% 43%, rgba(145, 203, 238, .2) 0 17%, transparent 18%), radial-gradient(ellipse at 50% 112%, rgba(145, 203, 238, .18) 0 38%, transparent 39%), linear-gradient(135deg, rgba(145, 203, 238, .1), rgba(255, 255, 255, .015)); }
.home-page .home-contributor-thumb span { position: relative; z-index: 1; font-size: 12px; text-shadow: 0 1px 5px rgba(0, 0, 0, .7); }
.home-page .home-contributors-note { margin-top: 10px !important; color: var(--muted) !important; font-size: 10px !important; font-style: italic; }

/* Audio card: whole-box hover highlight; preserve the player's own hover response. */
.home-page .home-card--audio-day { padding:9px; transition:border-color .18s ease, background-color .18s ease; }
.home-page .home-card--audio-day:hover,
.home-page .home-card--audio-day:focus-within { border-color:rgba(145,203,238,.62); background-color:rgba(18,30,46,.96); }
.home-page .home-card--audio-day .home-card-head h2 { transition:color .18s ease; }
.home-page .home-card--audio-day:hover .home-card-head h2,
.home-page .home-card--audio-day:focus-within .home-card-head h2 { color:var(--orange); }
.home-page .home-card--audio-day .home-card-head { margin-bottom:4px; }
.home-page .home-card--audio-day .home-audio-row { grid-template-columns:32px minmax(0,1fr); gap:10px; padding:5px 2px; border-bottom:0; }
.home-page .home-card--audio-day .home-audio-row .track-title { white-space:normal; overflow:visible; text-overflow:clip; }
.home-page .home-card--audio-day .home-audio-row .track-desc { display:block; overflow:visible; margin-top:3px; -webkit-line-clamp:unset; line-clamp:unset; }
.home-page .home-audio-status { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }


/* Lunar Dial card: whole-box hover highlight and gold title. */
.home-page .home-card--moon { transition:border-color .18s ease, background-color .18s ease; }
.home-page .home-card--moon:hover,
.home-page .home-card--moon:focus-within { border-color:rgba(145,203,238,.62); background-color:rgba(18,30,46,.96); }
.home-page .home-card--moon .home-card-head h2 { transition:color .18s ease; }
.home-page .home-card--moon:hover .home-card-head h2,
.home-page .home-card--moon:focus-within .home-card-head h2 { color:var(--orange); }

/* Full Video Collection link card */
.home-page a.home-card--videos { display:block; color:inherit; text-decoration:none; transition:border-color .18s ease, background-color .18s ease; }
.home-page a.home-card--videos:hover, .home-page a.home-card--videos:focus-visible { border-color:rgba(145,203,238,.62); background-color:rgba(18,30,46,.96); }
.home-page a.home-card--videos:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.home-page a.home-card--videos .home-card-head h2 { transition:color .18s ease; }
.home-page a.home-card--videos:hover .home-card-head h2, .home-page a.home-card--videos:focus-visible .home-card-head h2 { color:var(--orange); }
.home-page .home-card--videos .home-card-link { margin-top:8px; color:var(--blue); font-size:12px; font-weight:700; }
