/* Home page only (index.html): home watch, and the guides with the labeled house.
   Colors, fonts and the shared pieces come from css/styles.css. */

/* A dark blue band, like the footer: the guides */
.section.navy { background: var(--blue-dark); color: #FFFFFF; }
.section.navy .eyebrow { color: var(--accent-light); }
.section.navy .section-intro { color: var(--light-text); }
.section.navy :focus-visible { outline-color: #FFFFFF; }

/* Home watch on the home page */
.watch-home h2 { text-wrap: balance; }
.watch-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; }
.watch-facts li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.watch-facts li:last-child { border-bottom: 1px solid var(--line); }
.watch-facts .fact-label { color: var(--blue); font-size: 1.375rem; }

/* Guides: a drawing of the finished house whose labels open the guides, then every guide by group.
   The labels are drawn in the page (the <svg> after the picture), like the labeled pictures in the guides.
   On phones the labels turn into numbered dots with the links listed below the drawing. */
.house-fig { margin: 8px 0 40px; }
.hf-frame { position: relative; aspect-ratio: 1640 / 800; }
.hf-frame > picture > img { position: absolute; left: 23.171%; top: 5%; width: 53.659%; height: auto; }
.hf-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hf-m, .hf-key { display: none; }
.hf-lead { stroke: rgba(238,241,240,0.75); stroke-width: 2; }
.hf-dot { fill: var(--accent); stroke: var(--blue-dark); stroke-width: 4; }
.hf-text { font-family: 'Source Sans 3', 'Source Sans 3 Fallback', Helvetica, sans-serif; font-weight: 600; font-size: 27px; fill: #FFFFFF; }
.hf-d a { text-decoration: none; }
.hf-hit { fill: none; pointer-events: all; }   /* makes the whole label easy to click or tap, not just its letters */
.hf-d a:hover .hf-text, .hf-d a:focus-visible .hf-text { fill: var(--accent-light); text-decoration: underline; }
.hf-d a:hover .hf-lead, .hf-d a:focus-visible .hf-lead { stroke: var(--accent-light); }
.guide-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 28px 40px; }
.guide-list { border-top: 3px solid var(--accent); padding-top: 16px; min-width: 0; }
.guide-list h3 { font-weight: 800; font-size: 1.375rem; margin: 0 0 10px; }
.guide-list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.guide-list a { font-weight: 600; text-decoration: none; color: var(--light-text); }
.guide-list a:hover { color: #FFFFFF; text-decoration: underline; }
@media (max-width: 900px) {
  .hf-frame { aspect-ratio: 880 / 720; }
  .hf-frame > picture > img { left: 0; top: 0; width: 100%; }
  .hf-d { display: none; }
  .hf-m { display: block; }
  .hf-mdot { fill: var(--accent); stroke: var(--blue-dark); stroke-width: 5; }
  .hf-mnum { font-family: 'Archivo', 'Archivo Fallback', Helvetica, sans-serif; font-weight: 800; font-size: 30px; fill: var(--blue-dark); }
  .hf-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 10px 24px; list-style: none; margin: 20px 0 0; padding: 0; counter-reset: hf; }
  .hf-key li { counter-increment: hf; display: flex; align-items: center; gap: 12px; min-height: 44px; }
  .hf-key li::before {
    content: counter(hf); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--blue-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Archivo', 'Archivo Fallback', Helvetica, sans-serif; font-weight: 800; font-size: 0.9375rem;
  }
  .hf-key a { color: #FFFFFF; font-weight: 600; }
}
@media (max-width: 640px) {
  .watch-facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
