/* ============================================================
   InterAction — one screen at a time
   ------------------------------------------------------------
   js/page-router.js sets <html data-view="..."> before the page
   paints. Each rule below hides one section unless it is the
   current screen. Nothing is removed from the page; the section
   is simply not displayed.

   If the router script ever fails to load, there is no data-view
   attribute, none of these selectors match, and the full long page
   shows as before. That is deliberate: the failure mode is "too
   much page", never "blank page".
   ============================================================ */

html[data-view]:not([data-view="home"])           #home           { display: none; }
html[data-view]:not([data-view="about"])          #about          { display: none; }
html[data-view]:not([data-view="methods"])        #methods        { display: none; }
html[data-view]:not([data-view="tutorials"])      #tutorials      { display: none; }
html[data-view]:not([data-view="videos"])         #videos         { display: none; }
html[data-view]:not([data-view="hydraulics"])     #hydraulics     { display: none; }
html[data-view]:not([data-view="best-practices"]) #best-practices { display: none; }
html[data-view]:not([data-view="maintenance"])    #maintenance    { display: none; }
html[data-view]:not([data-view="conservation"])   #conservation   { display: none; }
html[data-view]:not([data-view="pricing"])        #pricing        { display: none; }
html[data-view]:not([data-view="resources"])      #resources      { display: none; }
html[data-view]:not([data-view="contact"])        #contact        { display: none; }

/* The search box only makes sense where there are cards to filter:
   it is hidden on the welcome screen, About, Pricing and Contact. */
html[data-view="home"]    .search-section,
html[data-view="about"]   .search-section,
html[data-view="pricing"] .search-section,
html[data-view="contact"] .search-section {
    display: none;
}

/* About cards: "<icon> <strong>Title</strong> - description".
   The original rule made each <li> a flex row, which turned the bold
   title and the description into two separate narrow columns. Keep the
   icon in its own gutter and let the title and description flow as one
   line of text. */
.about-list li {
    display: block;
    position: relative;
    padding-left: 2rem;
}

.about-list li > i {
    position: absolute;
    left: 0;
    top: 0.3em;
}

/* Brand mark is now a link home; show it is clickable and focusable. */
.nav-brand:focus-visible {
    outline: 2px solid #f0a22e;
    outline-offset: 4px;
    border-radius: 6px;
}

/* On every screen except the welcome page the content starts right
   under the sticky header, so give it room to breathe. */
html[data-view]:not([data-view="home"]) main,
html[data-view]:not([data-view="home"]) .about-section,
html[data-view]:not([data-view="home"]) .methods-section,
html[data-view]:not([data-view="home"]) .tutorials-section,
html[data-view]:not([data-view="home"]) .video-section,
html[data-view]:not([data-view="home"]) .hydraulics-section,
html[data-view]:not([data-view="home"]) .best-practices-section,
html[data-view]:not([data-view="home"]) .maintenance-section,
html[data-view]:not([data-view="home"]) .conservation-section,
html[data-view]:not([data-view="home"]) .pricing-section,
html[data-view]:not([data-view="home"]) .resources-section,
html[data-view]:not([data-view="home"]) .contact-section {
    min-height: 60vh;
}
