/* home.css
   Home page only (index.html). Everything is scoped under .home-page so it cannot touch other pages.
   Load after theme.css, video-row.css, audio-row.css and play-marks.css.
   Phone rules are in the one block at the end. */

/* ---------- Page frame ---------- */
.home-page { --home-box-gap: 15px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.home-page .home-main { flex: 1 0 auto; width: min(960px, calc(100% - 36px)); margin: 0 auto; padding: 20px 0 34px; }
.home-page .home-footer { flex: none; padding: 0 12px 12px; color: rgba(231, 237, 247, .72); font-size: 11px; text-align: center; }

/* ---------- Grid and cards ---------- */
.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; gap: var(--home-box-gap); min-width: 0; }
.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); transition: border-color .18s ease, background-color .18s ease; }
.home-page .home-card--summary { grid-column: 1 / -1; border-color: rgba(244, 163, 74, .34); }

/* Every card except the summary lights up on hover or focus and its title turns gold */
.home-page .home-card:not(.home-card--summary):hover,
.home-page .home-card:not(.home-card--summary):focus-within { border-color: rgba(145, 203, 238, .62); background-color: rgba(18, 30, 46, .96); }
.home-page .home-card:not(.home-card--summary):hover .home-card-head h2,
.home-page .home-card:not(.home-card--summary):focus-within .home-card-head h2 { color: var(--orange); }

/* Cards that are one big link: news, videos, radio, predictions */
.home-page a.home-card--link { display: block; color: inherit; text-decoration: none; }
.home-page a.home-card--link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.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; transition: color .18s ease; }
.home-page .home-card p { margin: 0; color: #c2ccda; font-size: 13px; line-height: 1.65; }

/* ---------- Summary card ---------- */
.home-page .home-summary-heading { display: flex; align-items: center; gap: var(--logo-gap); margin: 0 0 12px; }
.home-page .home-summary-logo-link { display: block; flex: 0 0 auto; line-height: 0; }
.home-page .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-title { margin: 0; color: var(--ink); font-size: clamp(24px, 4vw, 32px); line-height: 1.2; }
.home-page .home-card .home-label { margin: 0 0 6px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-page .home-card--summary .home-deck { width: 100%; margin: 0 0 10px; color: #fff; font-size: 14px; line-height: 1.6; }

/* ---------- Picture cards: videos, radio, predictions ---------- */
.home-page .home-tile-image { display: block; width: 100%; height: auto; border-radius: 9px; }

/* ---------- Recent news ---------- */
.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; }

/* ---------- Featured video: the shared video row, resized for the card ---------- */
.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-card .home-featured-status { color: var(--muted); font-size: 12px; }

/* ---------- Daily Deep Thought: the shared audio row, resized for the card ---------- */
.home-page .home-card--audio-day .home-card-head { margin-bottom: 4px; }
.home-page .home-audio-row { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 5px 2px; border-bottom: 0; }
.home-page .home-audio-row .track-title { overflow: visible; text-overflow: clip; white-space: normal; }
.home-page .home-audio-row .track-desc { display: block; margin-top: 3px; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; }
.home-page .home-card .home-audio-status { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- Lunar Dial: title and subtitle share a line and wrap together ---------- */
.home-page .home-card-titles { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 0 5px; min-width: 0; }
.home-page .home-card-titles h2 { flex: 0 0 auto; }
.home-page .home-card .home-card-subtitle { color: var(--muted); font-size: 12px; line-height: 1.35; }

/* ==========================================================================
   PHONE (620px and down). One block only.
   ========================================================================== */
@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 { border-radius: 12px; }
  .home-page .home-summary-heading { gap: 10px; }
  .home-page .home-summary-logo { max-width: 88px; max-height: 30px; }
  .home-page .home-title { min-width: 0; font-size: clamp(18px, 5vw, 24px); }
  .home-page .home-news-item { font-size: 11px; line-height: 1.5; }
  .home-page .home-news-separator { font-size: 10px; }
  .home-page .home-news-status { font-size: 11px; }
  .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; }
}
