/* Tank Mate Checker (/tank-mates/). The page sits inside the Help Center frame (tools/build-tank-mates.mjs);
   this sheet styles only the tool, fenced under .tm. Deep-ocean panels, aqua lines, Georgia headings,
   8px corners, as on the Help Center and the Aquarium Toolbox. */
.tm{--tm-aqua:#40d9ff;--tm-green:#72d389;--tm-orange:#ff7b32;--tm-amber:#ffb27a;--tm-red:#ff8a80;--tm-ink:#f0fbff;--tm-muted:#b9d9e7;--tm-line:rgba(116,205,235,.3);--tm-tile:rgba(10,44,70,.72);--tm-tile-hover:rgba(16,70,104,.85);--tm-well:rgba(2,14,26,.62);color:var(--tm-ink);color-scheme:dark}
.tm [hidden]{display:none!important}
.tm button{font:inherit;cursor:pointer}
.tm a{color:#7fe3f5;text-decoration:underline;text-underline-offset:3px}
.tm button:focus-visible,.tm a:focus-visible,.tm input:focus-visible,.tm summary:focus-visible{outline:3px solid var(--tm-orange);outline-offset:2px}
/* The heading on the left and the showdown picture on the right (Jez, Nov 13 2026). The picture is dark at its
   left edge and fades into the panel; under 900px it sits below the text. */
.tm .tm-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(16px,2.5vw,32px);align-items:center;overflow:hidden}
.tm .tm-hero h1{max-width:18ch}
.tm .tm-hero p{max-width:72ch}
.tm-hero__art{display:block;width:100%;height:100%;min-height:220px;max-height:340px;object-fit:cover;object-position:62% 50%;border-radius:8px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 22%);mask-image:linear-gradient(90deg,transparent,#000 22%)}
@media (max-width:900px){.tm .tm-hero{grid-template-columns:1fr}.tm-hero__art{height:auto;min-height:0;max-height:none;aspect-ratio:1983/793;object-position:50% 50%;-webkit-mask-image:none;mask-image:none}}
.tm-guide{font-weight:700;white-space:nowrap}
.tm-guides details{margin-top:10px}
.tm-guides summary{color:#7fe3f5;font-weight:800;cursor:pointer}
.tm-guides h3{margin:14px 0 4px;font-size:15px;color:var(--tm-green);letter-spacing:.04em;text-transform:uppercase}
.tm-guides details p{margin:6px 0;font-size:14px;line-height:1.7}
.tm-examples{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px!important}
.tm-examples span{color:var(--tm-green);font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.tm-examples button,.tm-actions button,.tm-groups button,.tm-presets button{min-height:40px;padding:8px 12px;border:1px solid var(--tm-line);border-radius:8px;background:var(--tm-tile);color:#eaf9ff;font-size:14px;font-weight:700}
.tm-examples button:hover,.tm-actions button:hover,.tm-groups button:hover,.tm-presets button:hover{background:var(--tm-tile-hover);border-color:var(--tm-aqua)}
.tm button[aria-pressed="true"]{background:rgba(64,217,255,.2);border-color:var(--tm-aqua);color:#fff;box-shadow:inset 0 0 0 1px rgba(64,217,255,.55)}
.tm-noscript{margin:16px 0;padding:14px;border:1px solid var(--tm-line);border-radius:8px;background:#071a27}

.tm-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:18px;align-items:start;margin-top:18px}
.tm-col{display:grid;gap:18px;min-width:0}
.tm-panel{padding:18px;border:1px solid rgba(116,205,235,.22);border-radius:8px;background:radial-gradient(circle at 100% 0%,rgba(114,211,137,.1),transparent 36%),#071a27;box-shadow:0 16px 34px rgba(0,0,0,.22);min-width:0}
.tm-panel>h2{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:24px;line-height:1.1}
.tm-panel>h2 span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--tm-aqua);color:#03202f;font:800 15px/1 Inter,ui-sans-serif,system-ui,sans-serif}
.tm-label{display:block;margin:14px 0 6px;color:var(--tm-green);font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.tm input[type=number],.tm input[type=search]{width:100%;height:46px;padding:0 12px;border:1px solid var(--tm-line);border-radius:8px;background:var(--tm-well);color:#fff;font:600 16px/1 inherit}
.tm input::placeholder{color:#8fb4c4;font-weight:500}
.tm-water{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tm-water button{min-height:46px;border:1px solid var(--tm-line);border-radius:8px;background:var(--tm-tile);color:#eaf9ff;font-size:15px;font-weight:800}
.tm-size{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:start}
.tm-presets,.tm-groups{display:flex;flex-wrap:wrap;gap:6px}
.tm-presets button{min-width:46px;padding:8px 10px}
.tm-groups{margin-top:10px}
.tm-groups button{min-height:36px;padding:6px 10px;font-size:13px}
.tm-hint,.tm-check{margin:10px 0 0;color:var(--tm-muted);font-size:13px}
.tm-check label{display:flex;gap:8px;align-items:center;color:#eaf9ff;font-size:15px;font-weight:700}
.tm-check input{width:20px;height:20px;accent-color:var(--tm-aqua)}

.tm-species{list-style:none;margin:12px 0 0;padding:0 4px 0 0;display:grid;gap:6px;max-height:560px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#58b9cf #052536}
.tm-species button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;width:100%;min-height:52px;padding:8px 12px;border:1px solid rgba(116,205,235,.18);border-radius:8px;background:var(--tm-well);color:var(--tm-ink);text-align:left}
.tm-species button:hover{background:var(--tm-tile-hover);border-color:var(--tm-aqua)}
.tm-species strong{font-size:15px;line-height:1.25}
.tm-species small{grid-column:1;color:var(--tm-muted);font-size:12px}
.tm-species span{grid-row:1/span 2;grid-column:2;padding:6px 10px;border-radius:999px;background:var(--tm-aqua);color:#03202f;font-size:12px;font-weight:800}
.tm-species button[data-in-tank] span{background:rgba(114,211,137,.2);color:#b9f0c6}
.tm-none{padding:12px;color:var(--tm-muted);font-size:14px;line-height:1.5}
.tm-added{margin:8px 0 0;min-height:1.3em;color:var(--tm-green);font-size:13px}

.tm-empty{margin:0;color:var(--tm-muted);line-height:1.5}
.tm-stock{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tm-stock li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid rgba(116,205,235,.18);border-radius:8px;background:var(--tm-well)}
.tm-stock strong{display:block;font-size:15px;line-height:1.25}
.tm-stock small{color:var(--tm-muted);font-size:12px}
.tm-qty{display:grid;grid-template-columns:40px 56px 40px;gap:4px}
.tm-qty button{height:40px;border:1px solid var(--tm-line);border-radius:8px;background:var(--tm-tile);color:#fff;font-size:20px;font-weight:700;line-height:1}
.tm-qty input{height:40px!important;padding:0 4px!important;text-align:center;-moz-appearance:textfield}
.tm-qty input::-webkit-outer-spin-button,.tm-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tm-remove{min-height:40px;padding:0 10px;border:0;background:transparent;color:#9fd9ea;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.tm-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}

/* Result */
.tm-result{border-width:2px}
.tm-result[data-verdict=good]{border-color:rgba(114,211,137,.7)}
.tm-result[data-verdict=care],.tm-result[data-verdict=incomplete]{border-color:rgba(255,178,122,.75)}
.tm-result[data-verdict=bad]{border-color:rgba(255,138,128,.8)}
.tm-verdict{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center}
.tm-verdict h2{margin:0 0 4px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1.08}
.tm-verdict p{margin:0;color:#e2f4fa;line-height:1.5}
.tm-verdict__mark{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--tm-tile);font:800 24px/1 Inter,ui-sans-serif,system-ui,sans-serif;color:#03202f}
.tm-verdict__mark::before{content:"?";color:#bfefff}
.tm-result[data-verdict=good] .tm-verdict__mark{background:var(--tm-green)}
.tm-result[data-verdict=good] .tm-verdict__mark::before{content:"✓";color:#03202f}
.tm-result[data-verdict=care] .tm-verdict__mark{background:var(--tm-amber)}
.tm-result[data-verdict=care] .tm-verdict__mark::before{content:"!";color:#2b1405}
.tm-result[data-verdict=bad] .tm-verdict__mark{background:var(--tm-red)}
.tm-result[data-verdict=bad] .tm-verdict__mark::before{content:"✕";color:#2b0705}
.tm-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.tm-fact{padding:12px;border:1px solid rgba(116,205,235,.18);border-radius:8px;background:var(--tm-well)}
.tm-fact>span{display:block;color:var(--tm-green);font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.tm-fact>strong{display:block;margin:5px 0 4px;color:#fff;font-size:20px;line-height:1.15}
.tm-fact>strong small{margin-left:4px;color:var(--tm-muted);font-size:13px;font-weight:700}
.tm-fact>small{color:var(--tm-muted);font-size:12px;line-height:1.4}
.tm-bar{position:relative;height:10px;margin:8px 0;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}
.tm-bar i{display:block;height:100%;border-radius:999px;background:var(--tm-green)}
.tm-bar[data-band=care] i{background:var(--tm-amber)}
.tm-bar[data-band=bad] i{background:var(--tm-red)}
.tm-bar b{position:absolute;top:0;bottom:0;left:62.5%;width:2px;background:#fff;opacity:.75}
.tm-issues{margin-top:18px}
.tm-issues h3{margin:0 0 8px;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.tm-issues h3 small{margin-left:4px;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px}
.tm-issues[data-level=bad] h3{color:var(--tm-red)}
.tm-issues[data-level=care] h3{color:var(--tm-amber)}
.tm-issues[data-level=info] h3{color:var(--tm-aqua)}
.tm-issues ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tm-issues li{padding:11px 12px 11px 14px;border-left:4px solid currentColor;border-radius:0 8px 8px 0;background:var(--tm-well)}
.tm-issues[data-level=bad] li{color:var(--tm-red)}
.tm-issues[data-level=care] li{color:var(--tm-amber)}
.tm-issues[data-level=info] li{color:var(--tm-aqua)}
.tm-issues li strong{display:block;color:#fff;font-size:15px;line-height:1.3}
.tm-issues li p{margin:4px 0 0;color:#dcf1f8;font-size:14px;line-height:1.5}
.tm-care{margin-top:18px;border-top:1px solid rgba(116,205,235,.18);padding-top:12px}
.tm-care summary{color:#7fe3f5;font-weight:800;cursor:pointer}
.tm-table{overflow-x:auto;margin-top:10px}
.tm-table table{width:100%;min-width:520px;border-collapse:collapse;font-size:13px}
.tm-table th,.tm-table td{padding:8px 10px;border-bottom:1px solid rgba(116,205,235,.14);text-align:left;vertical-align:top}
.tm-table thead th{color:var(--tm-green);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.tm-table tbody th{color:#fff;font-weight:700}
.tm-table small{display:block;margin-top:2px;color:var(--tm-muted);font-weight:400;line-height:1.4}
.tm-about h2,.tm-guides h2{margin:0 0 8px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:24px}
.tm-about p,.tm-guides>p{margin:0 0 10px;color:#e6f6fb;line-height:1.55;max-width:85ch}

@media (max-width:900px){.tm-grid{grid-template-columns:1fr}}
@media (max-width:560px){
  .tm-panel{padding:14px}
  .tm-size{grid-template-columns:1fr}
  .tm-facts{grid-template-columns:1fr}
  .tm-stock li{grid-template-columns:minmax(0,1fr) auto}
  .tm-remove{grid-column:1/-1;justify-self:start;min-height:32px;padding:0}
  .tm-species{max-height:340px}
  .tm-verdict h2{font-size:24px}
}

/* Round 2: photos, fixes, ideas, length, credits, print. */
.tm-label span{color:var(--tm-muted);font-weight:600;letter-spacing:0;text-transform:none}
.tm-photo{display:block;border-radius:6px;object-fit:cover;background:#0a2c46;flex:none}
.tm-photo--none{border:1px dashed rgba(116,205,235,.25)}
.tm-species button{grid-template-columns:auto minmax(0,1fr) auto}
.tm-species .tm-photo{grid-row:1/span 2;grid-column:1}
.tm-species strong,.tm-species small{grid-column:2}
.tm-species span{grid-column:3}
.tm-stock li{grid-template-columns:auto minmax(0,1fr) auto auto}
.tm-fixes{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px!important}
.tm-fixes button,.tm-more{min-height:36px;padding:6px 11px;border:1px solid var(--tm-line);border-radius:8px;background:var(--tm-tile);color:#eaf9ff;font-size:13px;font-weight:700}
.tm-fixes button:hover,.tm-more:hover{background:var(--tm-tile-hover);border-color:var(--tm-aqua)}
.tm-ideas,.tm-credits{margin-top:18px;border-top:1px solid rgba(116,205,235,.18);padding-top:12px}
.tm-ideas summary,.tm-credits summary{color:#7fe3f5;font-weight:800;cursor:pointer}
.tm-ideas summary small{margin-left:6px;padding:2px 8px;border-radius:999px;background:rgba(114,211,137,.2);color:#b9f0c6;font-size:12px}
.tm-ideas__lead,.tm-ideas__none{margin:8px 0 0;color:var(--tm-muted);font-size:13px;line-height:1.5}
.tm-ideas h4{margin:14px 0 0;color:var(--tm-amber);font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.tm-species--ideas{max-height:none;overflow:visible}
.tm-credits ul{margin:8px 0 0;padding-left:18px;color:var(--tm-muted);font-size:12px;line-height:1.6}
.tm-print-head{display:none}
@media (max-width:560px){
  .tm-stock li{grid-template-columns:auto minmax(0,1fr) auto}
  .tm-stock .tm-remove{grid-column:2/-1}
}
@media print{
  html:root.has-reef-background:not(#_),html,html body,html body main.page{background:#fff!important;background-image:none!important;color:#000!important}
  html body .lab-ocean:not(#_),html::before,html::after,body::before,body::after,main.page::before,main.page::after{display:none!important}
  .tm-col{display:flex;flex-direction:column}.tm-col>.tm-print-head{order:-1}
  html body main.page>:not(.tm):not(#_):not(#__),.reef-background,.tm-hero,.tm-about,.tm-guides,.tm-col:first-child,.tm-actions,.tm-fixes,.tm-ideas,.tm-qty button,.tm-remove,.tm-credits,.tm-bar,.tm-noscript{display:none!important}
  .tm,.tm *{color:#000!important;background:none!important;box-shadow:none!important;border-color:#999!important}
  .tm-grid{display:block;margin:0}
  .tm-panel{border:0;padding:0;margin:0 0 14px}
  .tm-print-head{display:grid;gap:4px;margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid #000;font-size:12px}
  .tm-print-head strong{font-size:18px}
  .tm-stock li{break-inside:avoid;padding:4px 0;border:0;border-bottom:1px solid #ccc}
  .tm-qty{display:block}.tm-qty input{border:0;width:40px;font-weight:700}
  .tm-issues li{break-inside:avoid;border-left:3px solid #000}
  .tm-table table{min-width:0;font-size:11px}
  .tm a{text-decoration:none}
}
/* Nov 10 2026 (Jez): photos large enough to recognise the fish; a fish in the tank is marked and taps out again. */
.tm-species .tm-photo{width:112px;height:84px}
.tm-species button{min-height:100px;gap:4px 14px}
.tm-species strong{font-size:17px;align-self:end}
.tm-species small{font-size:13px;align-self:start}
.tm-species button .tm-photo--none{padding:0;border-radius:6px;background:#0a2c46;grid-row:1/span 2;grid-column:1}
.tm-species button[data-in-tank]{border-color:#72d389;background:rgba(114,211,137,.1)}
.tm-species button[data-in-tank] span:not(.tm-photo){background:rgba(114,211,137,.22);color:#b9f0c6}
.tm-species{max-height:720px}
.tm-species--ideas{max-height:none}
.tm-stock .tm-photo{width:88px;height:66px}
@media (max-width:520px){
  .tm-species .tm-photo{width:96px;height:72px}
  .tm-species button{grid-template-columns:auto minmax(0,1fr);min-height:88px}
  .tm-species button>span:not(.tm-photo){grid-row:3;grid-column:1/-1;justify-self:start}
  .tm-species{max-height:520px}
  .tm-species--ideas{max-height:none}
  .tm-stock .tm-photo{width:72px;height:54px}
}
@media print{.tm-stock .tm-photo{width:56px;height:42px}}
.tm-wrong{margin:16px 0 0;color:var(--tm-muted);font-size:13px}
@media print{.tm-wrong{display:none}}
