/*
Theme Name: Zero ppm Club
Theme URI: https://0ppm.org/
Author: Travis Edson
Description: Shrimp news, tank logs and the Zero ppm Club shop.
Version: 1.5.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zeroppm
*/

:root {
  --ink: #0E2A33;
  --ink-2: #3E555C;
  --ink-3: #4A5F66;
  --ground: #EEF3F1;
  --card: #FFFFFF;
  --line: #E3EAE8;
  --teal: #1E8C7E;
  --teal-dark: #1E6E64;
  --aqua: #5FD3C0;
  --coral: #E8774A;
  --warn: #F2B48F;
  --deep: #0E2A33;
  --header-line: #D5DEDB;
  --input: #FFFFFF;
  --display: 'Archivo Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 18px; padding-right: 18px; } }

/* Hairline zero */
.zero { display: inline-block; width: .6em; height: .7em; vertical-align: baseline; overflow: visible; margin-right: .06em; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--header-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { width: 46px; height: 30px; flex: 0 0 auto; align-self: center; color: var(--coral); margin-right: 2px; overflow: visible; }
.brand-name { font-family: var(--display); font-size: 24px; line-height: 1.1; color: var(--ink); }
.brand-url { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 600; padding-bottom: 2px; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { border-bottom: 2px solid var(--teal); }
.main-nav .nav-shop > a, .main-nav a.nav-shop { padding: 10px 18px; border-radius: 999px; background: var(--deep); color: #fff; border: 0; }
.main-nav .nav-shop > a:hover, .main-nav a.nav-shop:hover { background: var(--teal); color: #fff; }

/* Layout */
.layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 64px; }
.layout > main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.layout > aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h1, .section-head h2 { margin: 0; font-family: var(--display); font-weight: 400; }
.section-head h1 { font-size: 34px; }
.section-head h2 { font-size: 28px; }
.section-head .note { font-size: 14px; color: var(--ink-3); }
.section-head a { font-weight: 600; font-size: 15px; }

/* Post cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { text-decoration: none; background: var(--card); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { height: 200px; background: #D5E6E1; display: block; }
.card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.kicker { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; color: var(--teal-dark); text-transform: uppercase; }
.card-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-3 .card-title { font-size: 18px; }
.cards-3 .card-img, .cards-3 .card-img img { height: 150px; }
.card-featured { background: var(--deep); color: #EEF3F1; }
.card-featured .kicker { color: var(--aqua); }
.card-featured .card-text { color: #B9CBCF; }
.card-featured { position: relative; }
.card-featured .card-body { padding-bottom: 48px; }
.featured-tag { position: absolute; right: 16px; bottom: 16px; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #F4C45A; color: #0E2A33; }
section:has(> .cards-3) { container-type: inline-size; }
@container (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }
.card-empty { background: var(--card); border-radius: 16px; padding: 28px; color: var(--ink-2); }

/* Feed */
.feed { background: var(--card); border-radius: 16px; padding: 8px 24px; }
.feed-item { text-decoration: none; display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feed-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; color: #0E2A33; }
.tag-reddit { background: #F6D9C9; } .tag-forum { background: #D5E6E1; } .tag-video { background: #E9DDC4; } .tag-blog { background: #DCE2EE; }
.feed-time { font-size: 13px; color: var(--ink-3); }
.feed-title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.feed-excerpt { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.feed-thumb { flex: 0 0 160px; width: 160px; height: 90px; border-radius: 10px; object-fit: cover; background: #E9DDC4; }
@media (max-width: 600px) { .feed-item { flex-direction: column; } .feed-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; flex-basis: auto; } }

/* Sidebar boxes */
.box { background: var(--card); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.box h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; }
.box p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.box-dark { background: var(--deep); color: #EEF3F1; }
.box-dark p, .box-dark .muted { color: #B9CBCF; }
.box-dark a { color: var(--aqua); font-weight: 600; font-size: 14px; }
.tank-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tank-date { font-family: var(--mono); font-size: 12px; color: #B9CBCF; }
.tank-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid #24434D; }
.tank-row .label { color: #B9CBCF; }
.tank-row .value { font-weight: 700; color: var(--aqua); }
.tank-row .value.warn { color: var(--warn); }
.mini-tees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-tee { text-decoration: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mini-tee .pic { background: var(--ground); border-radius: 12px; height: 120px; display: flex; align-items: center; justify-content: center; }
.mini-tee strong { line-height: 1.3; }
.mini-tee span { color: var(--ink-3); }
.ship-note { font-family: var(--mono); font-size: 12px; color: var(--teal-dark); }
.btn { display: inline-block; text-align: center; padding: 12px 18px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn:hover { background: var(--deep); color: #fff; }
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sources li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }

/* Newsletter + footer */
.signup { background: var(--deep); color: #EEF3F1; padding: 48px 32px; }
.signup form { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.signup h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.signup p { margin: 0; color: #B9CBCF; }
.signup .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.signup input[type=email] { flex: 1 1 260px; max-width: 360px; padding: 14px 16px; border-radius: 999px; border: 0; font-size: 16px; }
.signup button { padding: 14px 24px; border-radius: 999px; border: 0; background: var(--coral); color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--ink-3); }

/* Posts and pages */
.entry { background: var(--card); border-radius: 16px; padding: 40px; }
@media (max-width: 600px) { .entry { padding: 24px; } }
.entry-title { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.15; margin: 8px 0 16px; }
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content h2, .entry-content h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; }
.entry-content img { border-radius: 12px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Water test tables in tank logs */
.entry-content table.readings { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.entry-content table.readings th { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.entry-content table.readings td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.entry-content table.readings td:nth-child(2) { font-family: var(--mono); font-weight: 700; color: var(--ink); white-space: nowrap; }
.entry-content table.readings td:nth-child(3) { color: var(--ink-3); font-size: 14px; }

/* Shop (WooCommerce) */
.shop-wrap { padding-top: 40px; padding-bottom: 64px; }
.shop-wrap .page-title, .shop-wrap .product_title { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.15; margin: 0 0 16px; }
.shop-wrap .woocommerce-breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; float: none; margin: 0; background: var(--card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.woocommerce ul.products li.product img { border-radius: 12px; margin: 0 0 4px; background: var(--ground); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--body); font-size: 17px; font-weight: 600; padding: 0; }
.woocommerce .price { font-family: var(--mono); font-weight: 700; color: var(--ink) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--teal); color: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 600; font-family: var(--body); }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--deep); color: #fff; }
.woocommerce div.product { background: var(--card); border-radius: 16px; padding: 32px; }
@media (max-width: 600px) { .woocommerce div.product { padding: 18px; } }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 10px 10px 0 0; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--teal); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--teal); }
.woocommerce table.shop_table { border-radius: 12px; background: var(--card); }
.woocommerce-cart .shop-wrap, .woocommerce-checkout .shop-wrap { max-width: 1000px; }
/* Override WooCommerce's float-based column widths so cards fill the grid */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product { width: auto !important; float: none !important; margin: 0 !important; clear: none !important; }
.woocommerce ul.products li.product a.button { align-self: flex-start; margin-top: auto; white-space: nowrap; }
.woocommerce ul.products li.product a img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* Dark mode switch: vertical, up = light, down = dark */
.header-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme-toggle { position: relative; flex: 0 0 24px; width: 24px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: #F4C45A; cursor: pointer; transition: background-color .25s ease; }
.theme-toggle::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s ease, background-color .25s ease; }
.theme-toggle svg { position: absolute; left: 6px; width: 12px; height: 12px; z-index: 1; pointer-events: none; transition: color .25s ease; }
.theme-toggle .icon-sun { top: 6px; color: #D97B1E; }
.theme-toggle .icon-moon { bottom: 6px; color: #9A7420; }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[data-theme="dark"] .theme-toggle { background: #2C4270; }
[data-theme="dark"] .theme-toggle::before { transform: translateY(20px); background: #E6EFEC; }
[data-theme="dark"] .theme-toggle .icon-sun { color: #8FA4CC; }
[data-theme="dark"] .theme-toggle .icon-moon { color: #2C4270; }
@media (prefers-reduced-motion: reduce) { .theme-toggle, .theme-toggle::before, .theme-toggle svg { transition: none; } }

/* Dark mode colours */
[data-theme="dark"] {
  --ink: #E6EFEC;
  --ink-2: #B9CBCF;
  --ink-3: #9DB2B6;
  --ground: #0A1A1F;
  --card: #12262D;
  --line: #22404A;
  --header-line: #1C3640;
  --deep: #0F3B45;
  --teal: #1A7F72;
  --teal-dark: #5FD3C0;
  --input: #0E2128;
  color-scheme: dark;
}
[data-theme="dark"] .card-img { background: #1A353D; }
[data-theme="dark"] .main-nav .nav-shop > a, [data-theme="dark"] .main-nav a.nav-shop { background: var(--teal); }
[data-theme="dark"] .entry-content a, [data-theme="dark"] .section-head a { color: var(--aqua); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: var(--input); color: var(--ink); border: 1px solid var(--line); }
[data-theme="dark"] .signup input[type=email] { background: #fff; color: #0E2A33; border: 0; }
[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--ground); border-color: var(--line); }
[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--card); }
[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a,
[data-theme="dark"] .woocommerce div.product p.price, [data-theme="dark"] .woocommerce div.product span.price { color: var(--ink); }
[data-theme="dark"] .woocommerce-message, [data-theme="dark"] .woocommerce-info, [data-theme="dark"] .woocommerce-error { background: var(--card); color: var(--ink); }
[data-theme="dark"] .woocommerce table.shop_table, [data-theme="dark"] .woocommerce table.shop_table td, [data-theme="dark"] .woocommerce table.shop_table th { border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .woocommerce form .form-row input.input-text, [data-theme="dark"] .woocommerce form .form-row textarea { background: var(--input); color: var(--ink); }
[data-theme="dark"] .woocommerce-breadcrumb a { color: var(--ink-2); }
[data-theme="dark"] .woocommerce ul.products li.product img { background: #1A353D; }

/* Add to cart before a size/colour is chosen: teal, faded, not WooCommerce purple */
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled],
.woocommerce button.button.alt.disabled:hover, .woocommerce button.button.alt:disabled:hover { background: var(--teal); color: #fff; opacity: .5; }
.woocommerce div.product form.cart .button { background: var(--teal); }
/* Printful products have no SKU, so the line only ever says N/A */
.product_meta .sku_wrapper { display: none; }

/* Real shop photos in the sidebar */
.mini-tee .pic { overflow: hidden; }
.mini-tee .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-tee span .woocommerce-Price-amount { font-family: var(--mono); color: var(--ink-3); }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-3); }
.footer-links a:hover { color: var(--teal); }

/* Shop pill with a round cart button tucked into its right end */
.main-nav li.nav-shop { display: flex; align-items: center; gap: 2px; background: var(--deep); border-radius: 999px; padding: 4px 5px 4px 0; }
[data-theme="dark"] .main-nav li.nav-shop { background: var(--teal); }
.main-nav .nav-shop > a.nav-shop-link, .main-nav .nav-shop > a.nav-cart, [data-theme="dark"] .main-nav .nav-shop > a.nav-shop-link { background: transparent; border: 0; color: #fff; }
.main-nav .nav-shop > a.nav-shop-link { padding: 6px 10px 6px 18px; border-radius: 999px; }
.main-nav .nav-shop > a.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.main-nav .nav-shop > a.nav-cart:hover { background: rgba(255, 255, 255, .3); }
.main-nav .nav-shop > a.nav-cart svg { width: 16px; height: 16px; }
.main-nav .nav-cart-only { padding: 4px; }
.zppm-cart-count { position: absolute; top: -6px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--coral); color: #0E2A33; font: 700 10px/17px var(--mono); text-align: center; box-shadow: 0 0 0 2px var(--card); }
.zppm-cart-count.is-empty { display: none; }

/* Dark mode: WooCommerce block cart/checkout fields (their own styles are very specific, hence !important) */
[data-theme="dark"] .wc-block-components-text-input input,
[data-theme="dark"] .wc-block-components-textarea,
[data-theme="dark"] .wc-blocks-components-select .wc-blocks-components-select__select,
[data-theme="dark"] .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
[data-theme="dark"] .wc-block-components-form .wc-block-components-text-input input {
  background-color: var(--input) !important;
  color: var(--ink) !important;
  border-color: #3A5A64 !important;
}
[data-theme="dark"] .wc-block-components-text-input label,
[data-theme="dark"] .wc-blocks-components-select .wc-blocks-components-select__label,
[data-theme="dark"] .wc-block-components-combobox .wc-block-components-combobox-control label,
[data-theme="dark"] .wc-block-components-text-input input::placeholder {
  color: var(--ink-2) !important;
  opacity: 1;
}
[data-theme="dark"] .wc-blocks-components-select .wc-blocks-components-select__expand { fill: var(--ink-2) !important; }
[data-theme="dark"] .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { background: var(--input) !important; border-color: #3A5A64 !important; }
[data-theme="dark"] .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--ink) !important; }
[data-theme="dark"] .wc-block-components-radio-control__input { background: var(--input) !important; border-color: #3A5A64 !important; }
[data-theme="dark"] .wc-block-components-text-input input:focus,
[data-theme="dark"] .wc-blocks-components-select .wc-blocks-components-select__select:focus { border-color: var(--aqua) !important; box-shadow: 0 0 0 1px var(--aqua) !important; }
[data-theme="dark"] .wc-block-components-validation-error p { color: #FF9C8A !important; }

/* Phones: keep the menu and the light switch on one row */
@media (max-width: 600px) {
  .site-header .wrap { row-gap: 10px; }
  .header-tools { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
  .main-nav ul { gap: 14px; flex-wrap: nowrap; }
  .main-nav a { white-space: nowrap; }
}
@media (max-width: 380px) {
  .main-nav ul { gap: 10px; }
  .main-nav a { font-size: 14px; }
  .main-nav .nav-shop > a.nav-shop-link { padding-left: 14px; padding-right: 8px; }
}

/* Tank page */
.tank-page { padding-top: 40px; padding-bottom: 64px; }
.tank-page main { display: flex; flex-direction: column; gap: 44px; }
.tank-hero h1 { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.1; margin: 6px 0 10px; }
.tank-sub { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 640px; }
.tank-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat { background: var(--card); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.stat-label { font-size: 14px; color: var(--ink-3); }
.stat-warn { box-shadow: inset 0 0 0 2px var(--warn); }
.stat-good { box-shadow: inset 0 0 0 2px var(--aqua); }
.tank-latest { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.latest-item { background: var(--card); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.latest-label { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.latest-value { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--teal-dark); }
.latest-item.warn .latest-value, .chart-last.warn { color: var(--coral); }
.tank-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tank-charts { container-type: inline-size; }
@media (max-width: 960px) { .tank-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tank-charts { grid-template-columns: 1fr; } .tank-hero h1 { font-size: 34px; } }
.chart-card { margin: 0; background: var(--card); border-radius: 16px; padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.chart-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart-title { font-weight: 700; font-size: 16px; }
.chart-last { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--teal-dark); }
.chart-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.tank-chart { width: 100%; height: auto; display: block; overflow: visible; }
.tank-chart .grid { stroke: var(--line); stroke-width: 1; }
.tank-chart .mark { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }
.tank-chart .ylab, .tank-chart .xlab { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); }
.tank-chart .line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
[data-theme="dark"] .tank-chart .line { stroke: var(--aqua); }
.tank-chart .dot { fill: var(--card); stroke: var(--teal); stroke-width: 2; }
[data-theme="dark"] .tank-chart .dot { stroke: var(--aqua); }
.tank-chart .dot.warn { stroke: var(--coral); }
.tank-chart .dot.last { fill: var(--teal); }
[data-theme="dark"] .tank-chart .dot.last { fill: var(--aqua); }
.tank-chart .dot.last.warn { fill: var(--coral); }
.tank-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .tank-split { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 8px 24px; background: var(--card); border-radius: 16px; }
.tl-day { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-dark); padding: 16px 0 6px; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.tl-item:last-child { border-bottom: 0; }
.tl-kind { font-size: 13px; color: var(--ink-3); padding-top: 1px; }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; gap: 2px; } }
.residents h3 { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-dark); }
.residents ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.residents li { font-size: 15px; }
.res-name { font-weight: 600; }
.res-count { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.res-sci { display: block; font-style: italic; font-size: 13px; color: var(--ink-3); }
.res-planned .res-name { font-weight: 400; color: var(--ink-2); }
.tank-more { font-size: 15px; color: var(--ink-2); }
