/* Fish Health Check, Lab polish (Nov 26 2026). Added to the built /fish-health/ page by
   tools/apply-fish-health-links.mjs, after the guide's own stylesheet, so site/fish-health/ stays as synced. */

/* 1. Tab bar: wraps instead of running off the page. */
.fhl .masthead{flex-wrap:wrap;row-gap:8px}
.fhl .masthead .main-tabs{flex:0 1 auto;flex-wrap:wrap;gap:2px;min-width:0;max-width:100%}
@media (min-width:701px){.fhl .masthead .main-tabs .nav-tab{flex:0 0 auto;padding:10px 8px}}

/* 2. Shorter openings on the library, medicine and prevention views, so the first control is on the first screen. */
.fhl .inner-view{padding-top:26px}
.fhl .inner-view h1{font-size:clamp(30px,3.6vw,46px);margin-bottom:10px}
.fhl .inner-view>.lead{margin-bottom:0}

/* 3 and 4. Medicine check: smaller medicine cards, and on wide screens the answer stays beside the three steps. */
.fhl .med-list{grid-template-columns:repeat(auto-fill,minmax(188px,1fr));gap:8px}
.fhl .med-card{padding:10px 12px}
@media (min-width:900px){
  .fhl #medicine-view:not([hidden]){display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);column-gap:22px;align-items:start}
  .fhl #medicine-view>*{grid-column:1/-1}
  .fhl #medicine-view>.med-steps{grid-column:1}
  .fhl #medicine-view>#med-result{grid-column:2;position:sticky;top:84px;margin-top:0;max-height:calc(100vh - 100px);overflow:auto}
}

/* 5 and 6. Prevention: numbered steps, rows that fill, and a jump menu. (The store's pages already keep
   scrolled-to items clear of the menu bar, so no scroll margins are set here.) */
.fhl .fhp-jump{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0 6px}
.fhl .fhp-jump span{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-right:4px}
.fhl .fhp-jump button{min-height:36px;padding:6px 14px;border:1px solid rgba(116,205,235,.4);border-radius:999px;background:rgba(10,44,70,.72);color:#dff8ff;font-size:14px;font-weight:600;cursor:pointer}
.fhl .fhp-jump button:hover,.fhl .fhp-jump button:focus-visible{border-color:#69edff;color:#fff}
.fhl .prevent-cards{counter-reset:fhp}
.fhl .prevent-card{counter-increment:fhp;position:relative}
.fhl .prevent-card::before{content:counter(fhp);position:absolute;top:10px;left:10px;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(3,32,47,.92);border:1px solid rgba(105,237,255,.75);color:#69edff;font-size:14px;font-weight:800}
.fhl .prevent-cards:has(>:only-child) .prevent-card::before{display:none}
@media (min-width:900px){
  .fhl .prevent-cards:has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
  .fhl .prevent-cards:has(>:nth-child(2):last-child),.fhl .prevent-cards:has(>:only-child){grid-template-columns:repeat(2,minmax(0,1fr))}
  .fhl .prevent-cards:has(>:only-child){grid-template-columns:1fr}
  .fhl .prevent-cards:has(>:nth-child(2):last-child) .prevent-card,.fhl .prevent-cards:has(>:only-child) .prevent-card{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);align-items:center}
  .fhl .prevent-cards:has(>:nth-child(2):last-child) .prevent-card img,.fhl .prevent-cards:has(>:only-child) .prevent-card img{width:100%;height:100%;min-height:150px;max-height:210px;object-fit:cover}
  .fhl .prevent-cards:has(>:only-child) .prevent-card{max-width:760px}
}
@media (max-width:700px){.fhl .fhp-jump button{min-height:44px}}
@media (max-width:700px){.fhl .masthead .main-tabs{justify-content:flex-start;gap:4px 14px}}

/* 8 and 9. Reference library: one compact row per entry, so six or more show at once. The three small
   pictures are still in the entry itself. */
.fhl .library-grid{gap:12px}
.fhl .library-grid .visual-card{display:grid;grid-template-columns:172px minmax(0,1fr);flex-direction:initial}
.fhl .library-grid .visual-card .card-image{height:100%;min-height:132px;padding:0;position:relative;overflow:hidden}
.fhl .library-grid .visual-card .card-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fhl .library-grid .visual-card .card-slot-strip{display:none}
.fhl .library-grid .visual-card .condition-body{padding:11px 14px 10px;min-width:0}
.fhl .library-grid .visual-card h3{font-size:19px;line-height:1.2;margin-bottom:3px;cursor:pointer}
.fhl .library-grid .visual-card h3:hover{text-decoration:underline;text-underline-offset:3px}
.fhl .library-grid .visual-card .sci-name{font-size:12px;margin:0 0 6px}
.fhl .library-grid .visual-card .urgency-badge{align-self:start;margin:0}
.fhl .library-grid .visual-card .condition-body>p:not(.sci-name){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:6px 0 0;font-size:13px}
.fhl .library-grid .visual-card .card-actions{margin-top:auto;padding-top:8px}
@media (max-width:700px){
  .fhl .library-grid .visual-card{grid-template-columns:104px minmax(0,1fr)}
  .fhl .library-grid .visual-card .card-image{min-height:104px;height:100%}
  .fhl .library-grid .visual-card h3{font-size:17px}
}

/* ---- Second round (Nov 26 2026) ---- */

/* Header stack: the crumbs already lead back to the Help Center, so the separate back button goes; on phones the
   guide's own title goes too (the crumbs name it), leaving the tab bar. */
.hc-back{display:none}
@media (max-width:700px){.fhl .masthead .brand{display:none}.fhl .masthead{padding-top:8px}}

/* Start screen: a smaller heading, the emergency line above everything, picture buttons, symptom pictures. */
.fhl #guide-view:not([hidden]){display:flex;flex-direction:column}
.fhl #guide-view>.help-line{order:-1;margin:0 0 12px}
.fhl #welcome h1{font-size:clamp(30px,3.6vw,46px);margin-bottom:10px}
.fhl #welcome .needs-help{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fhl #welcome .help-tile.fhp-tile{display:grid;grid-template-columns:52px minmax(0,1fr) 26px;grid-template-rows:auto auto;column-gap:12px;row-gap:2px;align-items:center;align-content:center;justify-items:start;text-align:left;padding:10px 12px;border:1px solid rgba(116,205,235,.5);border-radius:8px;background:linear-gradient(180deg,rgba(22,84,122,.92),rgba(10,50,80,.92));box-shadow:0 3px 0 rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)}
.fhl #welcome .help-tile.fhp-tile:hover,.fhl #welcome .help-tile.fhp-tile:focus-visible{background:linear-gradient(180deg,rgba(30,106,150,.96),rgba(14,64,100,.96));border-color:#69edff}
.fhl .fhp-tile__pic{grid-row:1/3;width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid rgba(105,237,255,.6)}
.fhl .fhp-tile strong{grid-column:2;align-self:end;font-size:16px;color:#fff}
.fhl .fhp-tile small{grid-column:2;align-self:start;font-size:12.5px;line-height:1.35;color:#c5e6f2}
.fhl .fhp-tile__go{grid-column:3;grid-row:1/3;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgba(105,237,255,.16);color:#69edff;font-weight:900}
.fhl .fhp-tile:hover .fhp-tile__go,.fhl .fhp-tile:focus-visible .fhp-tile__go{background:#69edff;color:#03202f}
.fhl .start-art.fhp-art>:not(.fhp-signs){display:none}
.fhl .start-art.fhp-art{padding:10px;align-self:stretch;display:flex}
.fhl .fhp-signs{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto minmax(0,1fr) minmax(0,1fr) auto;gap:8px}
.fhl .fhp-signs__lead{grid-column:1/-1;margin:0 2px 2px;color:#dff8ff;font-size:14px;font-weight:700}
.fhl .fhp-signs__note{grid-column:1/-1;color:var(--muted);font-size:11px;margin:0 2px}
.fhl .fhp-signs button{position:relative;display:block;min-height:120px;padding:0;border-radius:6px;overflow:hidden;border:1px solid rgba(116,205,235,.3);background:#06243b;cursor:pointer}
.fhl .fhp-signs button:hover,.fhl .fhp-signs button:focus-visible{border-color:#69edff}
.fhl .fhp-signs button img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fhl .fhp-signs button span{position:absolute;left:0;right:0;bottom:0;padding:22px 8px 7px;background:linear-gradient(180deg,transparent,rgba(2,14,26,.92) 58%);color:#fff;font-size:13.5px;font-weight:800;line-height:1.2;text-align:left}
@media (max-width:700px){.fhl #welcome .needs-help{grid-template-columns:1fr}.fhl .fhp-signs button{min-height:0;aspect-ratio:1}.fhl .fhp-signs button span{font-size:12.5px}}

/* Reference library: the appearance filter as a row of small chips. */
.fhl .library-filter-drawer .pattern-grid{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 6px}
.fhl .library-filter-drawer .pattern-filter{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:34px;padding:4px 12px 4px 6px;border-radius:999px}
.fhl .library-filter-drawer .pattern-filter>span{width:24px;height:24px;flex:0 0 24px;border-radius:50%;overflow:hidden}
.fhl .library-filter-drawer .pattern-filter>span svg,.fhl .library-filter-drawer .pattern-filter>span img{width:100%;height:100%}
.fhl .library-filter-drawer .pattern-filter strong{font-size:13px;font-weight:600}
@media (max-width:700px){.fhl .library-filter-drawer .pattern-filter{min-height:40px}}

/* Prevention: "What you need, from the store" as a row of small pills (asked for, Nov 26 2026; elsewhere in the
   guide shop links stay quiet text links). */
.fhl .prevent-shop{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:0}
.fhl .prevent-shop>span{font-size:13px;margin-right:2px}
.fhl .prevent-shop a.shop-link{display:inline-flex;align-items:center;min-height:32px;padding:3px 12px;border:1px solid rgba(116,205,235,.38);border-radius:999px;font-size:13.5px;text-decoration:none;border-bottom-width:1px}
.fhl .prevent-shop a.shop-link:hover,.fhl .prevent-shop a.shop-link:focus-visible{border-color:#69edff;color:#fff}
@media (max-width:700px){.fhl .prevent-shop a.shop-link{min-height:44px;padding:6px 14px}}
