/* p7.css (fishtank.cam pass 7, 2026-10-23 evening, his list). Loaded last on the public pages. README section 60. */

/* ---- type: big, thick, in the Nine Sixteen barbershop style (Sora 800, upper case, tight); chum blue stays the accent */
@font-face { font-family: "Sora"; src: url("/fonts/sora-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; src: url("/fonts/sora-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF; }
:root { --p7-display: "Sora", "Avenir Next", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif; --p7-red: #E5484D; }
.p7-display, html.p7 .intro-title, html.p7 .ch-head h2, html.p7 .sc-h, html.p7 .bw-hero h1, html.p7 .bw-step h2,
html.p7 .tale > p:first-child, html.p7 .fs-steps > li b, html.p7 .fs-steps > li h3, html.p7 .lv-head h1 {
  font-family: var(--p7-display) !important; font-weight: 800 !important; letter-spacing: -.035em !important; }
html.p7 .intro-title, html.p7 .ch-head h2, html.p7 .sc-h, html.p7 .bw-hero h1, html.p7 .p7-sp-intro .p7-display, .ab h1.p7-display {
  text-transform: uppercase; line-height: .95 !important; letter-spacing: -.045em !important; word-spacing: .04em; }
html.p7 .intro-title { font-size: clamp(2.6rem, 9.5vw, 7.5rem) !important; }
html.p7 .intro-sub { font-family: var(--p7-display); font-weight: 600; letter-spacing: -.01em; }
html.p7 .intro-msgs p { font-family: var(--p7-display); font-weight: 800; letter-spacing: -.03em; }
html.p7 .ch-head h2 { font-size: clamp(2.4rem, 8vw, 6rem) !important; }
html.p7 .sc-h { font-size: clamp(2.2rem, 7vw, 5rem) !important; }
html.p7 .sc-h em, html.p7 .intro-title em, html.p7 .tale em { font-style: normal; color: #248FD3; }
html.p7 .tale > p:first-child { font-size: clamp(1.7rem, 4.6vw, 3.25rem) !important; line-height: 1.02 !important; }
.p7-kicker { margin: 0 0 .6rem; font: 700 .75rem/1 var(--p7-display); letter-spacing: .16em; text-transform: uppercase; color: #248FD3; }
/* the long story lines read better in normal case; the short heads shout */
html.p7 .fs-steps > li b, html.p7 .fs-steps > li h3 { font-size: clamp(1.5rem, 4.4vw, 2.6rem) !important; line-height: 1.02 !important; }

/* ---- the clock: a fixed corner piece, bottom right */
.p7-clock { position: fixed; z-index: 44; right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); width: 9.5rem; margin: 0 !important;
  border-radius: 10px; box-shadow: 0 8px 28px rgb(0 0 0 / 45%); pointer-events: none; }
.p7-clock canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; padding: 3%; box-sizing: border-box; border-radius: 10px; background: #0a0b0d; }
@media (min-width: 64rem) { .p7-clock { width: 12rem; right: 20px; bottom: 20px; } }
/* the old in-page clocks are gone; the dock and the floating camera sit above the clock */
.p6-clock:not(.p7-clock) { display: none !important; }
html.p7-hasclock .v3dock { bottom: calc(12px + 2.4rem + 12px + env(safe-area-inset-bottom)) !important; }
@media (min-width: 64rem) { html.p7-hasclock .v3dock { bottom: calc(20px + 3rem + 12px) !important; } }
html.p7-hasclock .sc-marker, html.p7-hasclock .scmark { margin-bottom: 0; }

/* ---- 1 to 5: always visible, the camera tank in red */
html.p7 .p6-tk a:first-child { color: var(--p7-red); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--p7-red) 70%, transparent); }
html.p7 .p6-tk a:first-child[aria-current] { background: var(--p7-red); color: #fff; box-shadow: none; }
html.p7 .p6-tk a:first-child::after { content: ""; position: absolute; width: 6px; height: 6px; margin: -20px 0 0 20px; border-radius: 50%; background: var(--p7-red); box-shadow: 0 0 0 2px var(--bg, #000); }
html.p7 .p6-tk a { position: relative; }
/* the bar on the tank pages: 1 to 5, then the menu, at the same spot as on all other pages */
@media (min-width: 48rem) {
  html.p7 header.top { padding-right: max(8px, env(safe-area-inset-right)) !important; }
  html.p7 header.top .p6-tk { position: absolute; right: calc(max(8px, env(safe-area-inset-right)) + 2.75rem + .5rem); top: 50%; translate: 0 -50%; margin: 0; z-index: 3; }
  html.p7 header.top .menu-btn { position: absolute !important; right: max(8px, env(safe-area-inset-right)) !important; top: 50% !important; translate: 0 -50%; transform: none !important; margin: 0 !important; width: 2.75rem !important; height: 2.75rem !important; padding: 0 .8rem !important; }
  html.p7 header.bw-top .p6-tk { margin: 0 .5rem 0 0; }
}

/* ---- the jump bar on the bowl pages (the tank pages have the chapter bar): numbered, scrolls sideways */
.p7-jump { position: fixed; z-index: 49; top: var(--barh, 56px); left: 0; right: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding: .45rem max(12px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg, #000) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  font: 600 .8125rem/1 var(--sans, -apple-system, system-ui, sans-serif); justify-content: safe center; }
.p7-jump::-webkit-scrollbar { display: none; }
.p7-jump a { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: 0 .8rem; border-radius: 99px; color: var(--grey, #8e8e93); text-decoration: none; white-space: nowrap; }
.p7-jump a:hover { color: var(--strong, #fff); }
.p7-jump a[aria-current] { background: color-mix(in srgb, #248FD3 22%, transparent); color: var(--strong, #fff); }
.p7-n { font: 700 .6875rem/1 var(--p7-display); letter-spacing: .04em; color: #248FD3; font-variant-numeric: tabular-nums; }
.chtab .p7-n { margin-right: .35rem; }
.p7-all { border: 1px solid color-mix(in srgb, var(--grey, #8e8e93) 40%, transparent); color: var(--strong, #fff) !important; }
#chnav .p7-all, .tabbar .p7-all { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 .8rem; margin-left: .5rem; border-radius: 99px; font-size: .8125rem; text-decoration: none; white-space: nowrap; }
html.p7 .bw-intro { margin-top: 2.9rem; }

/* ---- the five tanks: drawn tiles, full width */
.p7-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(100%, 92rem); margin: 0 auto; }
@media (min-width: 48rem) { .p7-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 47.99rem) { .p7-tiles .p7-tile:first-child { grid-column: 1 / -1; } }
.p7-tile { position: relative; display: grid; gap: .6rem; padding: 12px 12px 14px; border-radius: 20px; text-decoration: none; color: var(--strong, #fff);
  background: color-mix(in srgb, var(--grey, #8e8e93) 10%, transparent); transition: background-color .25s, transform .5s cubic-bezier(.16, 1, .3, 1), opacity .5s; }
.p7-tile:hover { background: color-mix(in srgb, #248FD3 16%, transparent); }
.p7-tile.is-here { box-shadow: inset 0 0 0 1.5px #248FD3; }
.p7-tile.is-cam.is-here { box-shadow: inset 0 0 0 1.5px var(--p7-red); }
.p7-tile-art svg { display: block; width: 100%; height: auto; }
.p7-tile-t { display: grid; gap: .15rem; }
.p7-tile-t b { font: 800 clamp(1rem, 1.4vw, 1.2rem)/1.05 var(--p7-display); letter-spacing: -.03em; text-transform: uppercase; }
.p7-tile-t small { color: var(--grey, #8e8e93); font-size: .8125rem; }
.p7-camdot { display: inline-flex; align-items: center; gap: .35rem; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--p7-red); }
.p7-camdot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .p7-tiles.p7-wait .p7-tile { opacity: 0; transform: translateY(24px) scale(.96); }
  .p7-tiles.p7-in .p7-tile { transition-delay: calc(var(--i) * 70ms); }
  .p7-tiles.p7-in .p7-tile:hover { transition-delay: 0s; }
}
#others .wrap, #s-tanks, .ab-tanks { max-width: none !important; }
#others .lede { text-align: center; }
html.p7 .nx-pic svg { display: block; width: 100%; height: auto; }

/* ---- the swap */
.p7-veil { position: fixed; inset: 0; z-index: 2147482999; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.p7-fx { position: fixed; z-index: 2147483000; pointer-events: none; transition: left .56s cubic-bezier(.16, 1, .3, 1), top .56s cubic-bezier(.16, 1, .3, 1), width .56s cubic-bezier(.16, 1, .3, 1), height .56s cubic-bezier(.16, 1, .3, 1), opacity .3s; }
.p7-fx svg { display: block; width: 100%; height: 100%; }

/* ---- the betta cubes on one stand, one fish each */
.p7-pair { position: relative; width: min(100%, 52rem); margin: 1rem auto 0; }
.p7-pair > svg { display: block; width: 100%; height: auto; }
.p7-pair-fish { position: absolute; width: 11%; height: auto; pointer-events: none; filter: drop-shadow(0 3px 6px rgb(0 0 0 / 35%)); }
.p7-pf0 { left: 18%; top: 44%; } .p7-pf1 { left: 66%; top: 41%; }
@media (prefers-reduced-motion: no-preference) { html:not(.flat) .p7-pair-fish { animation: p7bob 6s ease-in-out infinite; } html:not(.flat) .p7-pf1 { animation-delay: -3s; } }
@keyframes p7bob { 0%, 100% { translate: 0 0; } 25% { translate: 6% -6%; } 50% { translate: 12% 2%; } 75% { translate: 5% 5%; } }
.p7-pair-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .9rem; }
.p7-pair-a { display: grid; justify-items: center; gap: .2rem; padding: .7rem; border-radius: 14px; text-decoration: none; color: var(--strong, #fff); }
.p7-pair-a small { color: var(--grey, #8e8e93); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.p7-pair-a b { font: 800 1.1rem/1 var(--p7-display); text-transform: uppercase; letter-spacing: -.03em; }
.p7-pair-a[aria-current] { background: color-mix(in srgb, #248FD3 16%, transparent); }

/* ---- livestock: one held stop per animal */
.p7-stock .wrap { max-width: none !important; }
article.p7-sp { margin: 0 0 4svh; }
.p7-sp-pic { margin: 0; }
.p7-sp-stage { position: relative; width: min(100%, 44rem, calc((100svh - 10rem) * 1)); margin: 0 auto; border-radius: 24px; overflow: hidden; background: #071923; }
@media (max-width: 63.99rem) { .p7-sp-stage { width: min(100%, calc((50svh - 2rem) * .95)); } }
.p7-sp-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.p7-an { position: absolute; display: block; height: auto; translate: -50% -60%; scale: var(--face, 1) 1; transition: scale .35s ease; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 40%)); will-change: left, top; }
.p7-shr { translate: -45% -70%; }
.p7-shr svg { display: block; width: 100%; height: auto; overflow: visible; }
.p7-sp-steps h4 { margin: 0 0 .4rem; font: 800 clamp(1.25rem, 3.6vw, 2rem)/1.05 var(--p7-display); letter-spacing: -.03em; color: var(--strong, #fff); text-transform: uppercase; }
.p7-sp-intro .p7-display { margin: 0; font-size: clamp(2.4rem, 7vw, 5rem) !important; color: var(--strong, #fff); }
.p7-sci { margin: .5rem 0 1rem !important; font-style: italic; color: #5AB0EA !important; }
.p7-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; margin: .4rem 0 .8rem; max-width: 36rem; }
.p7-facts div { padding: .7rem .8rem; border-radius: 14px; background: color-mix(in srgb, var(--grey, #8e8e93) 12%, transparent); }
.p7-facts dt { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5AB0EA; }
.p7-facts dd { margin: .25rem 0 0; color: var(--strong, #fff); font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.p7-src { font-size: .8125rem !important; color: var(--grey, #8e8e93) !important; }
.p7-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.p7-sp-flat .p7-sp-steps { list-style: none; padding: 0; display: grid; gap: 1.4rem; max-width: 44rem; margin: 1.5rem auto 0; }
.scene.p7-stock { max-width: none; }

/* ---- Setup: the automation list passes the drawn tank and its dial */
.p7-autofig { margin: 0; } .p7-autofig .ds-tank { margin: 0 auto; width: min(100%, 44rem); }
.p7-auto .fs-steps > li b { text-transform: none; }

/* ---- High tech: the numbers as three full-width cards, each on its scale and coloured */
html.p7 .ctx { max-width: none; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 2rem 0 1rem; }
@media (min-width: 48rem) { html.p7 .ctx { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
html.p7 .ctx > * { margin: 0; padding: 1.4rem 1.4rem 1.2rem; border-radius: 22px; background: color-mix(in srgb, var(--grey, #8e8e93) 10%, transparent); }
html.p7 .ctx-k { margin: 0 0 .3rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey, #8e8e93); }
html.p7 .ctx-big { display: block; margin: 0 0 2.2rem; font: 800 clamp(2.2rem, 4.2vw, 3.6rem)/1 var(--p7-display); letter-spacing: -.04em; }
html.p7 .ctx-co2 .ctx-big { color: #4CC38A; } html.p7 .ctx-light .ctx-big { color: #F5B83D; } html.p7 .ctx-grow .ctx-big { color: #5AB0EA; }
html.p7 .ctx-bar { height: 14px; }
html.p7 .ctx-line { display: grid; align-content: start; color: var(--grey, #8e8e93); }
html.p7 .ctx-line .ctx-sub { margin: 0; font-size: 1rem; color: var(--text, #e8e8ed); }

/* ---- full width: the water and the numbers ("looks so goofy") */
@media (min-width: 48rem) {
  html.p7 #c-water .band > .wrap, html.p7 #hightech > .wrap, html.p7 #c-warm .band > .wrap, html.p7 #c-life .band > .wrap, html.p7 #c-gear .band > .wrap, html.p7 #c-tanks .band > .wrap,
  html.p7 #c-tech .band > .wrap { max-width: min(100% - 64px, 88rem) !important; width: 100%; }
  html.p7 #vials { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 16px; max-width: none !important; }
  html.p7 #vials > * { margin: 0 !important; padding: 1.3rem 1.4rem; border-radius: 22px; background: color-mix(in srgb, var(--grey, #8e8e93) 10%, transparent); max-width: none !important; }
  html.p7 #data .lede, html.p7 #water-changes .lede { max-width: 48rem; margin-left: auto; margin-right: auto; }
  html.p7 #changes, html.p7 #changes > * { max-width: none !important; }
}

/* ---- Grow: the tank from the front, the part being read lit */
.p7-front { margin: 0; width: min(100%, 60rem); }
.p7-front svg { display: block; width: 100%; height: auto; }
.p7-front svg g { transition: opacity .45s ease; }
.p7-front figcaption { margin-top: .5rem; text-align: center; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey, #8e8e93); }
.fs-scape .fs-art > .p7-front { width: min(100%, 60rem, calc((50svh - 3rem) * 1.72)); }
@media (min-width: 64rem) { .fs-scape .fs-art > .p7-front { width: min(100%, 60rem, calc((100vh - 14rem) * 1.72)); } }

/* ---- High tech: algae as a soft film and fine threads, not dots */
.tk-algae7 .tk-film { fill: rgb(96 118 48 / 45%); }
.tk-algae7 .tk-hair { fill: none; stroke: rgb(124 150 64 / 75%); stroke-width: .7; stroke-linecap: round; }
.tk-p7 { overflow: visible; }

/* ---- the gear, by tank, at the bottom */
.p7-gearby { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 auto 1.5rem; width: min(100% - 32px, 72rem); }
.p7-gearby a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 99px; font-weight: 600; font-size: .875rem; text-decoration: none;
  color: var(--strong, #fff); background: color-mix(in srgb, var(--grey, #8e8e93) 12%, transparent); }
.p7-gearby a[aria-current] { background: #248FD3; color: #fff; }
.p7-gearfold { margin: 1rem auto 0; }
.p7-gearlist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 10px; }
.p7-gearlist li { display: grid; gap: .2rem; padding: .9rem 1rem; border-radius: 16px; background: color-mix(in srgb, var(--grey, #8e8e93) 10%, transparent); }
.p7-gearlist b { color: var(--strong, #fff); } .p7-gearlist span { color: var(--grey, #8e8e93); font-size: .9rem; }

/* ---- the where-are-the-fish bridge after the cameras */
html.p7 .wherefish-x .wf-h, html.p7 .wherefish-x .wf-h2 { font-family: var(--p7-display); font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; color: var(--strong, #fff); }
html.p7 .wherefish-x .wf-h { font-size: clamp(2rem, 6vw, 4.2rem); line-height: .95; margin: 0 0 .5rem; }
html.p7 .wherefish-x .wf-h2 { font-size: clamp(1.3rem, 3.6vw, 2.4rem); line-height: 1; color: #248FD3; margin: 0 0 1rem; }

/* ---- full width on a computer (his words: "everything full width") */
@media (min-width: 64rem) {
  html.p7 main section.chapter { max-width: none !important; padding-left: clamp(24px, 3vw, 56px) !important; padding-right: clamp(24px, 3vw, 56px) !important; }
  html.p7 main section.chapter > .band { max-width: none !important; }
  html.p7 main section.chapter .lede { max-width: 52rem; margin-left: auto; margin-right: auto; }
}
html.p7 #vials .tw-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 14px; padding: 0; margin: 0; max-width: none; }
html.p7 #vials .tw-list > li { margin: 0 !important; padding: 1.2rem 1.3rem !important; border-radius: 22px; background: color-mix(in srgb, var(--grey, #8e8e93) 10%, transparent); border: 0 !important; }
html.p7 #vials, html.p7 #vials > * { max-width: none !important; background: none; padding: 0; box-shadow: none; }
html.p7 #vials .tw-top h3 { font: 800 1.1rem/1 var(--p7-display); text-transform: uppercase; letter-spacing: -.02em; }
html.p7 #vials .tw-n { font: 800 2rem/1 var(--p7-display); letter-spacing: -.04em; }
/* the old scene marker counted from the second chapter; the numbered chapter bar replaces it */
html.p7 .sc-hud { display: none !important; }
.chstrip .p7-n { margin-right: .3rem; }
.chstrip .p7-all { margin-left: .5rem; padding: .25rem .7rem; border-radius: 99px; font-size: .75rem; font-weight: 600; text-decoration: none; white-space: nowrap; align-self: center; }

/* ---- the bowl pages' bar: 1 to 5 and the menu at the same spot as on the tank pages */
@media (min-width: 48rem) {
  html.p7 header.bw-top { grid-template-columns: 2.75rem 1fr 2.75rem; }
  html.p7 header.bw-top .bw-brand { grid-column: 2; justify-self: center; }
  html.p7 header.bw-top .p6-tk { position: absolute; right: calc(max(8px, env(safe-area-inset-right)) + 2.75rem + .5rem); top: 50%; translate: 0 -50%; margin: 0; }
  html.p7 header.bw-top .bw-burger { position: absolute; right: max(8px, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; }
  html.p7 header.p6-bar .p6-burger { position: absolute; right: max(8px, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; }
  html.p7 header.p6-bar .p6-tk { position: absolute; right: calc(max(8px, env(safe-area-inset-right)) + 2.75rem + .5rem); top: 50%; translate: 0 -50%; }
}
@media (max-width: 47.99rem) { .p7-clock { width: 7.5rem; } html.p7-hasclock .v3dock { bottom: calc(12px + 1.9rem + 10px + env(safe-area-inset-bottom)) !important; } }
@media (min-width: 48rem) { html.p7 header.p6-bar .p6-brand { position: absolute; left: 50%; top: 50%; translate: -50% -50%; } }
html.p7 .p6-tk a:not(:first-child):not([aria-current]) { color: var(--grey, #8e8e93) !important; }
html.p7 .p6-tk a:not(:first-child):not([aria-current]):hover { color: var(--strong, #fff) !important; }
/* the live page: the chat's send box sits bottom right, so the clock sits bottom left there */
html:has(main.lv) .p7-clock { right: auto; left: max(12px, env(safe-area-inset-left)); }
@media (min-width: 64rem) { html:has(main.lv) .p7-clock { left: 20px; } }
