/*
 * KSAFISH PUBLIC STYLESHEET — one static file, same origin, no script.
 *
 * The public pages link this file with a content-hash query string (`ks_css()`), so a deploy that
 * changes one byte of it gets a new address and the 7-day nginx cache for *.css can never serve a
 * stale copy. The catalogue of every class below, with a minimal example of each, is
 * docs/design/PUBLIC-DESIGN-SYSTEM.md. Add to the catalogue in the same commit as the class.
 *
 * SECTIONS
 *   1  fonts            both families, both editions, unicode-range, font-display:swap
 *   2  tokens           the approved palette as custom properties
 *   3  base             reset, body, links, headings, focus, .sr-only, .skip
 *   4  page             .w (the main column), .page-head, .section, .prose, .crumbs
 *   5  components       card, card-grid, kpis, entries, chips, ribbon, filters, pager, empty, deflist, plate
 *   5b editorial        founder hero + portrait, aims, units; citation cards; reference entries
 *   6  header           .ph*  (utility bar, brand row, navigation, explore menu, search bar)
 *   7  footer           .hw-foot*
 *   8  home             .home-hero, .sea-tiles
 *   9  legacy           the page bodies that predate the system (compare, sources, crustaceans, review blocks)
 *   9b list pages       letter bar, letter tiles, segmented toggle, status bars, plate tiles (indexes stream)
 *   9B  record pages    species, family, species index, family index, search (cards, plates, names, measurements)
 *  10  responsive       breakpoints 1320 / 1179 / 719 of the approved design, plus the stacked tables at 820
 *
 * RTL AND LTR FROM THE SAME RULES: logical properties only (inline-start/end, inset-inline), so the
 * Arabic edition mirrors by itself. Editions are told apart by html[lang], never by a second sheet.
 */

/* =========================================================== 1  FONTS
 * Declared for BOTH editions. unicode-range means a face is fetched only when a page really sets a
 * character in it: an Arabic page loads the two Tajawal Arabic faces for its text and a Chakra Petch
 * face only when it prints a numeral, a code or a scientific name in it (the approved design sets
 * those, and only those, in Chakra Petch); an English page does the same the other way round for an
 * Arabic island. Files are in /fonts; both families are SIL OFL 1.1 and their licence texts sit
 * beside them, which is a licence condition. `swap`: a failed request shows the system face at once.
 */
@font-face{font-family:'Tajawal';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/tajawal-400-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/tajawal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2122,U+2212}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/tajawal-500-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/tajawal-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2122,U+2212}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/tajawal-700-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/tajawal-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2122,U+2212}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/chakra-petch-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2122,U+2212}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/chakra-petch-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/chakra-petch-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2122,U+2212}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/chakra-petch-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+2C60-2C7F,U+A720-A7FF}

/* =========================================================== 2  TOKENS */
:root{
  /* surfaces and ink */
  --paper:#f4f1e9;--card:#fffdf7;--ink:#14202a;--ink-2:#26313b;--ink-3:#3c4650;
  --muted:#5c5545;      /* 6.55:1 on --paper, 7.27:1 on --card */
  --gap:#6b6453;        /* the muted token for absences and hints: 5.21:1 on --paper, 5.78:1 on --card */
  /* hairlines */
  --line:#dcd5c5;--line-soft:#ece6d8;--line-strong:#cfc7b3;--row:#f0ebdf;
  /* the navy, and the one accent */
  --deep:#0e2431;--deep-hover:#123241;--deep-line:#1c3a4a;
  --accent:#a8422c;     /* white on it 6.03:1; on --paper 5.35:1 */
  --accent-hover:#8c3421; /* white on it 7.99:1 */
  /* the gold of the header and of the search button */
  --gold:#f0c26a;--gold-hover:#f6d089;
  /* status colours: each is always printed with a word, never colour alone */
  --green:#2f6b4a;--teal:#2f6b78;--amber:#c8791e;--danger:#8c1d18;--slate:#7a7365;--coral:#e0755c;
  --amber-bg:#fdf9ef;--amber-line:#e0cf9c;--amber-ink:#6b5320;--danger-bg:#fdf4f1;--fill:#f0ebdf;
  /* the family stacks */
  --font-ar:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-latin:'Chakra Petch',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:var(--font-ar);
}
html[lang="en"]{--font-body:'Chakra Petch','Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif}

/* =========================================================== 3  BASE */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);line-height:1.7;font-family:var(--font-body);-webkit-font-smoothing:antialiased}
::selection{background:#a8422c22}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover);text-decoration:underline}
img{max-width:100%}
/* Arabic text inside the English edition is set in Tajawal, as in the approved English document. */
html[lang="en"] :lang(ar){font-family:var(--font-ar)}
h1{font-size:clamp(30px,5vw,46px);font-weight:600;margin:0 0 8px;line-height:1.2}
h2{font-size:clamp(19px,2.2vw,24px);font-weight:600;margin:30px 0 10px;line-height:1.3}
h3{font-size:17px;font-weight:600;margin:18px 0 8px;line-height:1.35}
.sci{font-style:italic;font-family:var(--font-latin)}
/* Latin letters, codes and numerals inside Arabic text: the approved design sets exactly these in Chakra Petch. */
.latin,.num{font-family:var(--font-latin);direction:ltr;unicode-bidi:isolate}
.kicker{display:block;font-family:var(--font-latin);unicode-bidi:isolate;font-size:11.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);margin:0 0 8px}
.gap{color:var(--gap)}
.gap.none{font-size:12px;font-style:italic}
.note{font-size:13.5px;line-height:1.75;color:var(--muted);margin-top:9px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Off-screen until focused, then a real target at the top of the page. First focusable thing in the document. */
.skip{position:absolute;inset-inline-start:-9999px;top:0;z-index:100;background:var(--gold);color:var(--deep);font-weight:700;font-size:14px;padding:10px 16px;border-radius:0 0 4px 4px}
.skip:focus{inset-inline-start:12px;color:var(--deep)}

/* =========================================================== 4  PAGE */
/* The main column. 1240px, the same column the header and the footer use, so everything lines up. */
.w{max-width:1240px;margin:0 auto;padding:24px 28px 70px}
.prose{max-width:78ch}
.prose p,.prose li{font-size:15.5px;line-height:2}
.prose h2{margin:28px 0 6px;font-size:22px;font-weight:700}
.prose ul{padding-inline-start:22px}
nav.crumbs{font-size:12.5px;color:var(--muted);margin-bottom:14px}
nav.crumbs a{color:var(--muted)}
nav.crumbs a:hover{color:var(--accent)}
.page-head{padding:10px 0 18px;max-width:78ch}
.page-head h1{font-size:clamp(27px,4.2vw,42px);font-weight:700;line-height:1.2;margin:0 0 10px}
.page-head .lead{margin:0 0 10px}
.page-head .note{margin-top:0}
.lead{font-size:16.5px;line-height:2;color:var(--ink-2);max-width:78ch;margin:0 0 14px}
.scope-note{font-size:13.5px;line-height:1.9;color:var(--muted);max-width:78ch;margin:0 0 30px}
.page-meta{font-size:12.5px;color:var(--muted);margin:0}
.section{padding:34px 0 8px}
.section-head{display:flex;align-items:baseline;gap:14px;margin-bottom:20px}
.section-head h2{margin:0;font-size:clamp(22px,2.4vw,28px);font-weight:700}
.section-head .rule{flex:1;height:1px;background:var(--line)}
.section-head a{font-size:13px;white-space:nowrap}
footer.attribution{border-top:1px solid var(--line);margin-top:34px;padding-top:16px;font-size:12.5px;color:var(--muted)}

/* =========================================================== 5  COMPONENTS */
/* ---- card and card grid: square corners, no shadow, hover = accent border ---- */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--card-min,230px),1fr));gap:14px;margin:0}
.card-grid--sm{--card-min:180px;gap:12px}
.card-grid--md{--card-min:216px;gap:13px}
.card-grid--lg{--card-min:272px}
.card{display:block;background:var(--card);border:1px solid var(--line);color:inherit;min-width:0}
a.card:hover{border-color:var(--accent);color:inherit;text-decoration:none}
.card-media{background:#fff;aspect-ratio:16/9;overflow:hidden;border-bottom:1px solid var(--line-soft);margin:0}
.card-media--3x2{aspect-ratio:3/2}
.card-media img{display:block;width:100%;height:100%;object-fit:contain}
.card-body{padding:14px 16px}
.card-kicker{display:block;font-family:var(--font-latin);direction:ltr;unicode-bidi:isolate;font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-bottom:4px}
.card-title{display:block;font-size:20px;font-weight:700;line-height:1.25;color:var(--ink)}
.card-meta{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.card--row{display:flex;gap:12px;align-items:center;padding:13px 15px}
/* ---- KPI strip: a hairline grid of figures, each with the word that says what is counted ---- */
/* flex, not grid: a wrapped last row stretches to fill the strip instead of leaving empty cells in the hairline colour */
.kpis{display:flex;flex-wrap:wrap;gap:1px;background:var(--line);border:1px solid var(--line);margin:0 0 34px}
.kpis>div{flex:1 1 150px;background:var(--card);padding:20px 22px;min-width:0}
.kpis b{display:block;font-family:var(--font-latin);unicode-bidi:isolate;font-size:32px;line-height:1;font-weight:400;color:var(--deep)}
.kpis .is-accent b{color:var(--accent)}
.kpis span{display:block;font-size:12.5px;line-height:1.5;color:var(--muted);margin-top:6px}
/* ---- entry cards: a list of destinations, not a dashboard ---- */
.entries{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin:0 0 26px}
.entry{display:block;padding:22px 24px;background:var(--card);border:1px solid var(--line);color:inherit;min-width:0}
.entry:hover{border-color:var(--accent);color:inherit;text-decoration:none}
.entry strong{display:block;font-size:21px;font-weight:700;line-height:1.3;color:var(--ink);margin-bottom:7px}
.entry span{display:block;font-size:13.5px;line-height:1.8;color:var(--ink-3)}
/* ---- list rows ---- */
.rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.rows li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 14px;padding:10px 2px;border-bottom:1px solid var(--row)}
.rows .meta{font-size:12.5px;color:var(--muted)}
ul.cols{columns:2 280px;column-gap:28px;padding-inline-start:20px}
ul.cols li{break-inside:avoid;margin-bottom:5px}
ul.plain{list-style:none;margin:0;padding:0}
ul.plain li{padding:3px 0;font-size:14.5px;line-height:1.8;overflow-wrap:anywhere}
/* ---- chips and status badges: the word is always printed, colour only reinforces it ---- */
.tag,.chip{display:inline-block;white-space:nowrap;font-size:11.5px;line-height:1.7;padding:2px 9px;border:1px solid var(--line);background:var(--card);color:var(--muted)}
.chip--approved{background:var(--deep);border-color:var(--deep);color:#f4f1e9}
.chip--verified{background:var(--green);border-color:var(--green);color:#fff}
.chip--review{background:var(--teal);border-color:var(--teal);color:#fff}
.chip--draft{background:var(--slate);border-color:var(--slate);color:#fff}
.chip--rejected{background:var(--danger);border-color:var(--danger);color:#fff}
.chip--local{background:var(--amber-bg);border-color:var(--amber-line);color:var(--amber-ink)}
/* ---- ribbon: a banner that states a state. .box is the same thing under its first name ---- */
.box,.ribbon{background:var(--card);border:1px solid var(--line);border-inline-start:3px solid var(--amber);padding:16px 20px;margin:20px 0 0;font-size:14px;line-height:1.95}
.ribbon{margin-block:20px}
.ribbon-title{display:block;font-weight:700;margin-bottom:4px}
.ribbon--notice{background:var(--amber-bg);border-color:var(--amber-line);border-inline-start-color:#c08a1e;color:var(--amber-ink)}
.ribbon--info{background:var(--deep);border-color:var(--deep);border-inline-start-color:var(--coral);color:#c8d8de}
.ribbon--info .ribbon-title{color:#f4f1e9}
.ribbon--review{background:#fffaf0;border:1px dashed #b08a3e;border-inline-start-width:1px}
.ribbon--danger{background:var(--danger-bg);border-color:#e8c9c1;border-inline-start-color:var(--danger);color:var(--accent-hover)}
/* ---- filter bar: a GET form, so every filter is a link someone can share ---- */
.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 18px;padding:16px 18px;margin:16px 0;background:var(--card);border:1px solid var(--line)}
.filters .field{display:flex;flex-direction:column;gap:5px;min-width:0}
.filters label,.filters .field-label{font-size:12.5px;font-weight:600;color:var(--muted)}
.filters select,.filters input[type=search],.filters input[type=text],.filters input[type=number]{min-height:40px;padding:8px 11px;border:1px solid var(--line-strong);border-radius:0;background:#fff;color:var(--ink);font:inherit;font-size:14px}
.filters input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}
.filters .check{display:flex;align-items:center;gap:8px;font-size:13.5px;min-height:40px}
.filters .actions{display:flex;gap:10px;margin-inline-start:auto;align-items:center}
.filters .reset{font-size:13px;color:var(--accent-hover)}
/* ---- pager: previous / state / next, plain links so a crawler without script reaches every page ---- */
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:26px 0 6px;font-size:14px}
.pager a,.pager .is-off{display:inline-flex;align-items:center;min-height:40px;padding:8px 15px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink)}
.pager a:hover{border-color:var(--accent);color:var(--ink);text-decoration:none}
.pager .is-off{color:var(--gap);border-style:dashed}
.pager .state{font-size:13px;color:var(--muted)}
/* ---- empty state: says what is absent and why, never a blank ---- */
.empty{border:1px dashed var(--line-strong);background:var(--card);padding:28px 22px;text-align:center;font-size:14.5px;line-height:1.9;color:var(--muted);margin:16px 0}
.empty strong{display:block;color:var(--ink);margin-bottom:4px}
/* ---- definition list: a label column and a value column, one row per fact ---- */
.deflist{display:grid;grid-template-columns:minmax(110px,38%) minmax(0,1fr);margin:0;border-top:1px solid var(--row)}
.deflist dt,.deflist dd{margin:0;padding:9px 0;border-bottom:1px solid var(--row);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.deflist dt{font-size:12.5px;font-weight:600;color:var(--muted);padding-inline-end:14px}
/* ---- image figure with its rights note: a plate is never cropped, filtered or rounded ---- */
.plate{margin:0;background:var(--card);border:1px solid var(--line)}
.plate-box{background:#fff;aspect-ratio:3/2;overflow:hidden;border-bottom:1px solid var(--line-soft)}
.plate-box img{display:block;width:100%;height:100%;object-fit:contain}
.plate figcaption{padding:9px 12px 11px;font-size:12.5px;line-height:1.7;color:var(--muted)}
.plate .plate-rights{display:block;font-size:11.5px;color:var(--gap);margin-top:2px}
/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 20px;border:1px solid transparent;border-radius:0;background:none;color:inherit;font:inherit;font-size:14px;line-height:1.4;cursor:pointer;text-decoration:none}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--deep);border-color:var(--deep);color:#f4f1e9}
.btn-primary:hover{background:var(--deep-hover);color:#f4f1e9}
.btn-secondary{background:var(--card);border-color:var(--line-strong);color:var(--ink)}
.btn-secondary:hover{border-color:var(--accent);color:var(--ink)}
/* The accent button: the one primary call to action, and the observer's "register" button.
 * White on #a8422c is 6.03:1, on the hover #8c3421 7.99:1 (WCAG AA needs 4.5:1). */
.btn-accent{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}
.btn-accent:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
/* The ghost variant: same shape, no fill. On the cream page it is accent-on-paper 5.35:1. */
.btn-ghost{border-color:var(--accent);color:var(--accent)}
.btn-ghost:hover{background:#a8422c14;color:var(--accent-hover);border-color:var(--accent-hover)}
.btn-sm{min-height:30px;padding:3px 12px;font-size:12.5px}
.cta-row{display:flex;flex-wrap:wrap;gap:10px}
/* The primary search form of a page body, and its button (legacy name, same accent). */
form.search{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
form.search input{flex:1 1 240px;min-height:44px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:0;background:var(--card);color:var(--ink);font:inherit}
form.search button{min-height:44px;padding:13px 24px;border:0;background:var(--accent);color:#fff;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer}
form.search button:hover{background:var(--accent-hover)}
.field-hint{flex:1 1 100%;margin:0;font-size:13px;line-height:1.7;color:var(--muted)}

/* =========================================================== 5b  EDITORIAL PAGES
 * The introduction pages: the founder, the citation guide and the references. The about and contact pages are built
 * from the classes above (prose, ribbon, entries, deflist, chips). Every colour is a token; logical properties only.
 */
/* ---- the founder page: one hero (name, title line, two short paragraphs) with the approved portrait; nothing follows it ---- */
.founder-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px 44px;align-items:center;padding:6px 0 10px}
.founder-hero h1{font-size:clamp(30px,4.6vw,50px);font-weight:700;line-height:1.15;margin:0 0 10px}
.founder-hero:not(:has(.portrait)){grid-template-columns:minmax(0,1fr)}
.founder-title{font-size:clamp(16px,2vw,20px);font-weight:500;line-height:1.5;color:var(--accent);margin:0 0 18px}
.founder-hero .lead{max-width:60ch;margin:0 0 14px}
.founder-hero .lead:last-child{margin-bottom:0}
.portrait{margin:0;width:100%;max-width:360px;justify-self:end}
.portrait-box{background:#fff;border:1px solid var(--line);padding:9px}
.portrait-box img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
/* ---- a contact channel: an `.entry` whose value is an address or a number, printed large in the accent colour ---- */
.entry span.latin{font-size:18px;line-height:1.5;color:var(--accent);overflow-wrap:anywhere}
/* ---- the citation guide: one card per citation ---- */
.cite-card{max-width:88ch;margin:0 0 14px;padding:20px 24px;background:var(--card);border:1px solid var(--line)}
.cite-card h2{margin:0 0 12px;font-size:19px;font-weight:700;line-height:1.4}
.cite-line{margin:0 0 8px;font-size:14.5px;line-height:1.95;color:var(--ink);overflow-wrap:anywhere}
.cite-body{margin:0 0 8px;font-size:14.5px;line-height:1.95;color:var(--ink-3)}
.cite-list{margin:0 0 8px;padding-inline-start:22px;font-size:14.5px;line-height:1.95}
.cite-card .note{margin-top:6px}
/* ---- the references: one entry per registered work ---- */
.ref-work{margin:0 0 26px}
.ref-work h3{margin:0 0 6px;font-size:20px;font-weight:700;line-height:1.5}
ul.refs{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ref{margin:0;padding:18px 22px;background:var(--card);border:1px solid var(--line);min-width:0}
.ref-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-bottom:4px}
.ref-no{font-family:var(--font-latin);unicode-bidi:isolate;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
html[lang="ar"] .ref-no{letter-spacing:0;font-family:var(--font-ar);font-size:13px;font-weight:700}
.ref-title{margin:0 0 6px;font-size:17px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
.ref-line{margin:0 0 4px;font-size:13.5px;line-height:1.85;color:var(--ink-3);overflow-wrap:anywhere}
.ref-line.gap{color:var(--gap)}
.ref-label{font-weight:600;color:var(--muted);margin-inline-end:4px}
.ref-use{margin:8px 0 0;padding-top:8px;border-top:1px solid var(--row);font-size:13px;line-height:1.8;color:var(--muted)}
details.refs-more>summary{cursor:pointer;display:inline-block;margin-bottom:14px;padding:9px 15px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);font-size:14px}
details.refs-more>summary:hover{border-color:var(--accent)}
details.refs-more[open]>summary{border-color:var(--accent)}
@media (max-width:719px){
  .founder-hero{grid-template-columns:1fr}
  .founder-hero .portrait{order:-1}
  .portrait{justify-self:start;max-width:300px}
  .cite-card{padding:16px 16px}
  .ref{padding:16px 16px}
}

/* =========================================================== 6  HEADER
 * Three bands in one navy block: the utility bar, the brand row with the navigation, and the gold
 * pill search bar. The block is not sticky. No script: the Explore menu and the phone menu are one
 * <details>; its summary is the button, and a fixed transparent layer behind the open panel makes a
 * click anywhere else close it. (Escape does not close a <details>; the summary toggles it.)
 */
.ph{position:relative;color:#f4f1e9;background:linear-gradient(180deg,#0f2837 0%,#0c202e 54%,#081a26 100%);border-bottom:1px solid rgba(240,194,106,.26)}
.ph::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.55;background-repeat:repeat-x;background-position:bottom center;background-size:1200px 150px;background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1200'%20height='150'%20fill='none'%20stroke='%2385c3d8'%20stroke-opacity='.16'%3E%3Cpath%20d='M0%2096c150-34%20300-34%20450%200s300%2034%20450%200%20150-24%20300-6'/%3E%3Cpath%20d='M0%20120c150-30%20300-30%20450%200s300%2030%20450%200%20150-20%20300-4'/%3E%3Cpath%20d='M0%20142c150-26%20300-26%20450%200s300%2026%20450%200%20150-18%20300-2'/%3E%3C/svg%3E")}
.ph::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(900px 210px at 50% -40%,rgba(94,178,208,.20),rgba(94,178,208,0) 72%)}
.ph a{color:inherit;text-decoration:none}
.ph a:hover{text-decoration:none}
.ph :focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}
.ph-wrap{width:100%;max-width:1240px;margin:0 auto;padding-inline:28px}
.ph-ico{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
/* utility bar */
.ph-util{border-bottom:1px solid rgba(127,168,180,.16)}
.ph-util-in{position:relative;z-index:1;display:flex;align-items:center;gap:14px;min-height:38px;font-size:12.5px;line-height:1.7}
.ph-util-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ph-ulink{position:relative;color:#9fb9c2;padding-block:3px}
.ph .ph-ulink:hover{color:#f4f1e9}
.ph-ulink[aria-current="page"]{color:var(--gold);font-weight:700}
.ph-ulink[aria-current="page"]::after{content:"";position:absolute;inset-inline:0;bottom:0;height:2px;background:var(--gold);border-radius:2px}
.ph-dot{color:#3d5f70}
/* Arabic only, by decision. The design sets #7fa8b4 at .75 opacity (3.98:1 on the band); this is #a9c6d0 at
 * full opacity (8.0:1). The English edition omits the line and closes the gap rather than printing a translation nobody approved. */
.ph-tagline{flex:1;text-align:center;color:#a9c6d0;font-size:12px}
.ph-actions{display:flex;align-items:center;gap:8px}
.ph-actions:empty{display:none}
.ph-actions--panel{display:none}
.ph-actions:not(:empty){margin-inline-start:auto}
.ph-lang{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-inline-start:auto}
.ph-actions:not(:empty)+.ph-lang{margin-inline-start:0}
.ph-globe{width:15px;height:15px;color:#7fa8b4}
.ph-lang-cur,.ph-lang-alt{position:relative;display:inline-flex;align-items:center;font-size:12.5px;min-height:24px;padding-block:3px}
.ph-lang-cur{color:var(--gold);font-weight:700}
.ph-lang-cur::after{content:"";position:absolute;inset-inline:0;bottom:1px;height:2px;background:var(--gold);border-radius:2px}
.ph-lang-alt{color:#9fb9c2}
.ph .ph-lang-alt:hover{color:#f4f1e9}
.ph-lang-sep{color:#3d5f70}
.ph-lang [lang="en"],.ph-panel [lang="en"]{font-family:var(--font-latin);letter-spacing:.14em}
.ph-lang [lang="ar"],.ph-panel [lang="ar"]{font-family:var(--font-ar)}
/* brand row */
.ph-main{position:relative;z-index:70}
.ph-main-in{display:flex;align-items:center;gap:24px;min-height:86px;padding-block:14px}
.ph-brand{position:relative;z-index:6;display:flex;align-items:center;gap:14px;flex:0 0 auto;min-width:0}
/* The HUWAT mark is the approved file, unmodified. It is a wide word set in the middle of a square with wide margins, so at 50px it
   drew about 28px of mark. The chip now crops the file's own empty margin (overflow) and scales it uniformly: same pixels, same
   colours, same proportions, about 80px of mark in a 92x56 chip. */
.ph-mark{position:relative;overflow:hidden;width:92px;height:56px;background:#fff;border-radius:7px;flex:0 0 auto;box-shadow:0 2px 14px rgba(0,0,0,.3)}
.ph-mark img{position:absolute;left:50%;top:50%;display:block;width:140px;height:140px;max-width:none;transform:translate(-50%,-50%)}
.ph-brand-text{display:flex;flex-direction:column;gap:6px;min-width:0}
.ph-word{color:rgba(255,255,255,.88);font-family:var(--font-latin);font-size:12px;font-weight:600;letter-spacing:.2em;line-height:1}
.ph-title{color:var(--gold);font-size:26px;font-weight:700;line-height:1.05}
.ph-sub{color:#8fc7d8;font-size:13px;font-weight:400;line-height:1}
.ph-brand:hover .ph-title{color:var(--gold-hover)}
html[lang="en"] .ph-title{font-size:24px;font-weight:600;letter-spacing:.01em}
html[lang="en"] .ph-sub{font-size:12.5px}
.ph-nav{display:flex;align-items:center;justify-content:center;gap:22px;flex:1 1 auto;min-width:0}
.ph-link{position:relative;display:inline-flex;align-items:center;min-height:40px;color:#cfe0e6;font-family:inherit;font-size:15px;line-height:1.2;padding-block:9px;padding-inline:0;white-space:nowrap;background:none;border:0;cursor:pointer}
.ph .ph-link:hover{color:#f4f1e9}
.ph-link[aria-current="page"],.ph-menu[data-active="true"]>summary{color:var(--gold);font-weight:700}
.ph-link[aria-current="page"]::after,.ph-menu[data-active="true"]>summary::after{content:"";position:absolute;inset-inline:0;bottom:2px;height:2px;background:var(--gold);border-radius:2px}
/* The Explore menu / phone menu: one <details>. */
.ph-menu{display:block}
.ph-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;position:relative;z-index:5;min-height:40px;color:#cfe0e6;font-size:15px;line-height:1.2;padding-block:9px;cursor:pointer;-webkit-user-select:none;user-select:none}
.ph-menu>summary::-webkit-details-marker{display:none}
.ph .ph-menu>summary:hover{color:#f4f1e9}
/* A fixed, transparent layer under the open panel: a click anywhere outside the menu lands on the summary and closes it. */
.ph-menu[open]>summary::before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(3,12,18,.55);cursor:default}
.ph-chev{width:14px;height:14px;transition:transform .18s ease}
.ph-menu[open] .ph-chev{transform:rotate(180deg)}
.ph-ico-burger,.ph-ico-close,.ph-lbl-menu{display:none}
/* the panel: a mega-menu on wide screens, a stacked menu under the brand row on phones */
.ph-panel{position:absolute;inset-inline:0;top:100%;z-index:6;background:linear-gradient(180deg,#0c2131 0%,#081a26 100%);color:#f4f1e9;border-top:2px solid var(--gold);box-shadow:0 26px 52px rgba(0,0,0,.45);animation:ph-drop .18s ease-out}
.ph-panel-in{padding-block:38px 40px}
@keyframes ph-drop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.ph-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:22px 34px}
.ph-group-title{color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.11em;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid rgba(127,168,180,.22)}
.ph-group-links{display:flex;flex-direction:column;gap:1px}
.ph-group--wide{grid-column:span 2}
.ph-group--wide .ph-group-links{display:grid;grid-auto-flow:column;grid-template-rows:repeat(4,auto);column-gap:22px;align-content:start}
.ph-mlink{position:relative;display:block;color:#cfe0e6;font-size:14.5px;line-height:1.5;padding:9px 10px;padding-inline-start:14px;border-radius:8px}
.ph .ph-mlink:hover{background:rgba(127,190,212,.10);color:#f4f1e9}
.ph-mlink[aria-current="page"]{color:var(--gold);font-weight:700}
.ph-mlink[aria-current="page"]::before{content:"";position:absolute;inset-inline-start:0;top:9px;bottom:9px;width:2px;background:var(--gold);border-radius:2px}
.ph-drawer-nav,.ph-drawer-util{display:none}
/* search bar */
.ph-search{border-top:1px solid rgba(127,168,180,.14)}
.ph-search-in{position:relative;z-index:1;display:flex;justify-content:center;padding-block:16px 18px}
.ph-field{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:6px;padding-inline-start:18px;border:1px solid rgba(120,190,214,.34);border-radius:999px;background:rgba(6,20,30,.72);box-shadow:0 0 22px rgba(60,160,195,.14),inset 0 1px 0 rgba(255,255,255,.04)}
.ph-field:focus-within{border-color:rgba(160,215,235,.7);box-shadow:0 0 0 1px rgba(160,215,235,.25),0 0 28px rgba(80,180,215,.3);outline:2px solid var(--gold);outline-offset:2px}
.ph-field-ico{width:18px;height:18px;color:#7fa8b4}
.ph-input{flex:1;min-width:0;background:transparent;border:0;outline:none;color:#f4f1e9;font-family:inherit;font-size:15px;padding-block:12px;padding-inline:2px;-webkit-appearance:none;appearance:none}
.ph-input::placeholder{color:#7d9aa6;opacity:1}
.ph-input::-webkit-search-cancel-button{-webkit-appearance:none}
.ph-go{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:11px 20px;border:0;border-radius:999px;background:linear-gradient(180deg,#f3cd7a 0%,#d9a441 100%);color:var(--deep);font-family:inherit;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer}
.ph-go:hover{background:linear-gradient(180deg,#f7d78f 0%,#e0ac4c 100%)}
.ph-go .ph-ico{width:17px;height:17px;stroke-width:2.2}
/* the observer slot, inside the dark header: the same buttons, set for a dark ground */
.ph .btn-accent{border-color:rgba(255,255,255,.28)}
.ph .btn-ghost{border-color:rgba(207,224,230,.55);color:#cfe0e6}
.ph .btn-ghost:hover{background:rgba(244,241,233,.1);border-color:#f4f1e9;color:#f4f1e9}
.ph .btn-sm{min-height:28px}

/* =========================================================== 7  FOOTER
 * The approved global footer (V3), as the owner's reference shows it: the marine gradient #0b2439 > #071a2c > #05121f
 * with the six bathymetric lines, the parent-brand lockup and the two taglines, ONE link column (Explore), the five
 * HUWAT ecosystem cards, and a darker lower bar. 1140px measure, 42px mark, hairlines at 9% white.
 * No script: the groups are <details>, forced open on a desktop and a real accordion on a phone.
 * Fonts are the two the page already serves from /fonts (CSP font-src 'self'); the stack is the page's own, so the
 * English edition sets Latin in Chakra Petch and any Arabic string in Tajawal, and the Arabic edition the reverse.
 *
 * THE BOX OF THE REFERENCE. The footer the owner approved (and production serves) was drawn inside the old layout, whose
 * generic `footer{border-top:1px solid var(--line);padding-top:16px;font-size:12.5px}` rule also reached it: a 1px top
 * border, 16px of top padding and a 12.5px base size (so 20px line boxes in the lists). That is part of the pixels of the
 * reference, so it is stated here on .hw-foot itself instead of relying on a selector that no longer matches it
 * (the attribution line keeps its own, `footer.attribution`).
 */
.hw-foot{position:relative;overflow:hidden;margin-top:48px;border-top:1px solid var(--line);padding-top:16px;background:linear-gradient(180deg,#0b2439 0%,#071a2c 46%,#05121f 100%);color:rgba(255,255,255,.92);font-size:12.5px;line-height:1.6;font-family:var(--font-body)}
.hw-foot::before{content:"";position:absolute;top:0;inset-inline:0;height:1px;background:linear-gradient(to right,rgba(143,195,232,0),rgba(143,195,232,.38),rgba(143,195,232,0))}
.hw-foot-depth{position:absolute;inset:0;pointer-events:none}
.hw-foot-depth svg{position:absolute;inset:0;width:100%;height:100%}
.hw-foot a{color:inherit;text-decoration:none}
.hw-foot a:hover{color:#fff;text-decoration:none}
.hw-foot-in{position:relative;max-width:1140px;margin:0 auto;padding:44px 22px 0}
/* the lockup and the taglines */
.hw-foot-top{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:20px 48px;align-items:start;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.09)}
.hw-lockup{display:flex;align-items:center;gap:18px}
.hw-mark{background:#f4f1e9;padding:5px;display:flex;flex:none}
.hw-mark img{display:block;width:42px;height:42px;object-fit:contain}
.hw-rule{width:1px;align-self:stretch;background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.22),rgba(255,255,255,0))}
.hw-names{display:flex;flex-direction:column;gap:3px;min-width:0}
.hw-product{font-size:19px;font-weight:600;letter-spacing:.05em;color:#fff;line-height:1.15}
.hw-descriptor{font-size:14px;font-weight:500;color:rgba(255,255,255,.88)}
.hw-descriptor-alt{grid-column:1;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.hw-taglines{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;gap:16px;align-items:flex-end;text-align:end}
.hw-tagline{font-size:17px;font-weight:500;color:#cfe4f5;line-height:1.7}
.hw-tagline-alt{font-size:13px;color:rgba(255,255,255,.62);margin-top:-10px}
.hw-reach{display:flex;align-items:center;gap:14px}
.hw-socials{display:flex;align-items:center;gap:2px;margin:0;padding:0;list-style:none}
.hw-socials a{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:3px;color:rgba(255,255,255,.55)}
.hw-socials a:hover{color:#fff;background:rgba(255,255,255,.07)}
.hw-reach-rule{width:1px;height:18px;background:rgba(255,255,255,.14)}
.hw-domain{font-size:13px;color:rgba(255,255,255,.72);letter-spacing:.02em}
.hw-domain:hover{color:#8fc3e8}
/* the link groups: today one, Explore */
.hw-groups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px;padding:32px 0 36px}
.hw-group summary{list-style:none;display:flex;flex-direction:column;gap:3px;cursor:pointer}
.hw-group summary::-webkit-details-marker{display:none}
.hw-group-title{font-size:13px;font-weight:600;color:#fff;line-height:1.45}
.hw-group-alt{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.58)}
.hw-chevron{display:none;color:rgba(255,255,255,.58);flex:none}
.hw-group nav ul{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.hw-group nav a{font-size:13px;line-height:1.55;color:rgba(255,255,255,.68);width:fit-content;border-bottom:1px solid transparent}
.hw-group nav a:hover{color:#fff;border-bottom-color:#4a9ad4}
.hw-off{font-size:13px;line-height:1.55;color:rgba(255,255,255,.42);cursor:default}
.hw-state{font-size:10px;letter-spacing:.05em;padding:1px 6px;border:1px solid rgba(255,255,255,.18);border-radius:999px;color:rgba(255,255,255,.55);white-space:nowrap}
/* the ecosystem */
.hw-eco{border-top:1px solid rgba(255,255,255,.09);padding:28px 0 40px;display:flex;flex-direction:column;gap:16px}
.hw-eco-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0}
.hw-eco-title{font-size:13px;font-weight:600;color:#fff}
.hw-eco-alt{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.58)}
.hw-eco-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.hw-eco-cards a,.hw-eco-cards .hw-off{display:flex;flex-direction:column;gap:10px;padding:15px 16px 14px;border-radius:8px;background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.10);height:100%}
.hw-eco-cards a:hover{background:rgba(143,195,232,.07);border-color:rgba(143,195,232,.34)}
.hw-eco-icon{color:#8fc3e8;display:flex}
.hw-eco-name{font-size:13px;font-weight:500;color:#fff;line-height:1.4}
.hw-eco-status{font-size:11px;color:rgba(255,255,255,.6);line-height:1.4}
/* In the English edition the second title of a block is Arabic: letter-spacing would pull its joined letters apart. */
.hw-foot[dir="ltr"] .hw-group-alt,.hw-foot[dir="ltr"] .hw-eco-alt{letter-spacing:0;text-transform:none}
/* the lower bar */
.hw-foot-bar{position:relative;border-top:1px solid rgba(255,255,255,.09);background:rgba(4,14,24,.55)}
.hw-foot-bar-in{max-width:1140px;margin:0 auto;padding:22px 22px 28px;display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:36px;align-items:center}
.hw-founder{display:flex;align-items:center;gap:14px}
.hw-founder-rule{width:2px;align-self:stretch;min-height:38px;background:linear-gradient(to bottom,rgba(143,195,232,.55),rgba(143,195,232,.12))}
.hw-founder-names{display:flex;flex-direction:column;gap:2px}
.hw-founder-name{font-size:14px;font-weight:600;color:#fff;line-height:1.45}
.hw-founder-title{font-size:12px;color:rgba(255,255,255,.62);line-height:1.5}
.hw-legal{display:flex;flex-direction:column;gap:8px;align-items:flex-end;text-align:end}
.hw-legal ul{display:flex;flex-wrap:wrap;gap:6px 20px;align-items:center;margin:0;padding:0;list-style:none}
.hw-legal a{font-size:12px;color:rgba(255,255,255,.66);border-bottom:1px solid transparent}
.hw-legal a:hover{color:#fff;border-bottom-color:#4a9ad4}
.hw-copyright{font-size:12px;color:rgba(255,255,255,.7)}
.hw-rights{font-size:11px;color:rgba(255,255,255,.52);line-height:1.7;max-width:78ch}
/* the roadmap: off in production and in the reference; quieter than the links, wraps at any width */
.hw-roadmap{margin-top:20px;padding-top:15px;border-top:1px solid rgba(255,255,255,.10);font-size:12.5px;line-height:1.75}
.hw-roadmap-title{display:block;font-weight:700;letter-spacing:.02em;opacity:.9;margin-bottom:7px}
.hw-roadmap ul{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.hw-roadmap li{opacity:.66;display:flex;flex-wrap:wrap;gap:4px 10px}
.hw-roadmap li strong{font-weight:600;opacity:.9;flex:0 0 auto}
.hw-roadmap li span{flex:1 1 16rem;min-width:0}
/* focus, for a keyboard */
.hw-foot a:focus-visible,.hw-foot summary:focus-visible{outline:2px solid #8fc3e8;outline-offset:3px;border-radius:2px}
/* desktop: the groups are a row, and the summary is a heading rather than a control */
@media (min-width:861px){
  .hw-group:not([open]) > nav{display:block}
  .hw-group summary{cursor:default;pointer-events:none}
}
/* below 861px: the accordion becomes real, the ecosystem two columns, the lower bar one */
@media (max-width:860px){
  .hw-foot-in{padding:32px 18px 0}
  .hw-foot-top{grid-template-columns:minmax(0,1fr);gap:16px}
  .hw-taglines{grid-column:1;grid-row:auto;align-items:flex-start;text-align:start}
  .hw-tagline-alt{margin-top:-12px}
  .hw-groups{display:flex;flex-direction:column;gap:0;padding:8px 0 0;border-top:1px solid rgba(255,255,255,.09);margin-top:20px}
  .hw-group{border-bottom:1px solid rgba(255,255,255,.09)}
  .hw-group summary{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:10px 0;flex-wrap:wrap}
  .hw-group summary .hw-group-title{font-size:15px;flex:1 1 auto}
  .hw-group summary .hw-group-alt{flex:1 1 100%;order:3}
  .hw-chevron{display:block;transition:transform 200ms cubic-bezier(.2,0,.2,1)}
  .hw-group[open] .hw-chevron{transform:rotate(180deg)}
  .hw-group nav ul{margin:0 0 10px;gap:0}
  .hw-group nav li{display:flex}
  .hw-group nav a,.hw-group nav .hw-off{font-size:14px;min-height:44px;display:flex;align-items:center;gap:8px;padding-inline-start:12px;border-inline-start:1px solid rgba(255,255,255,.10);width:100%}
  .hw-eco-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hw-foot-bar-in{grid-template-columns:minmax(0,1fr);gap:18px;padding:22px 18px 28px}
  .hw-legal{align-items:flex-start;text-align:start}
  .hw-legal ul{flex-direction:column;gap:0;align-items:stretch}
  .hw-legal li{display:flex}
  .hw-legal a,.hw-legal .hw-off{font-size:14px;min-height:44px;display:flex;align-items:center;gap:8px}
}
@media (max-width:640px){.hw-roadmap{font-size:12px}}
@media (max-width:420px){
  .hw-eco-cards{grid-template-columns:minmax(0,1fr)}
  .hw-tagline{font-size:16px}
}

/* =========================================================== 8  HOME */
.home-hero{padding:28px 0 40px;border-bottom:1px solid var(--line)}
.home-hero h1{font-size:clamp(30px,4.6vw,52px);font-weight:700;line-height:1.2;margin:0 0 16px;max-width:30ch}
html[lang="en"] .home-hero h1{font-weight:600;font-size:clamp(30px,4.6vw,50px);max-width:28ch}
.home-hero .lead{margin-bottom:14px}
.sea-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin:0 0 26px}
.sea-tile{display:block;padding:24px 26px;color:var(--ink);background:var(--card);border:1px solid var(--line);min-width:0}
.sea-tile:hover{border-color:var(--accent);color:var(--ink);text-decoration:none}
.sea-tile strong{display:block;font-size:24px;font-weight:700;line-height:1.3;margin-bottom:6px}
.sea-tile span{display:block;font-size:13px;line-height:1.8;color:var(--muted)}
.sea-tile--navy{background:var(--deep);border-color:var(--deep);color:#f4f1e9}
.sea-tile--navy:hover{background:var(--deep-hover);border-color:var(--deep-hover);color:#f4f1e9}
.sea-tile--navy span{color:#9fb9c2}
.ex-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:12px;margin:14px 0 26px}
.ex-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);color:inherit;overflow:hidden}
.ex-card:hover{border-color:var(--accent);color:inherit;text-decoration:none}
.ex-card img{display:block;width:100%;aspect-ratio:16/7;object-fit:contain;background:#eef2f3;border-block-end:1px solid var(--line)}
.ex-card-body{display:flex;flex-direction:column;gap:2px;padding:12px 15px 14px;min-width:0}
.ex-card-lead{font-size:17px;font-weight:600;line-height:1.5;color:var(--accent);overflow-wrap:break-word}
.ex-card-sci{font-size:13.5px;font-style:italic;font-family:var(--font-latin);color:var(--muted);unicode-bidi:isolate}
.ex-card-note{font-size:11px;line-height:1.55;color:var(--gap)}

/* =========================================================== 9  LEGACY PAGE BODIES
 * The page bodies below were written against the previous layout and are restyled by the stream that
 * owns each page. They are here unchanged so every page still renders correctly inside the new chrome.
 */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:18px 0}
.grid div{background:var(--card);border:1px solid var(--line);padding:18px 20px}
.grid b{font-size:21px;line-height:1.25;display:block;font-weight:600}
.grid b.t{font-size:15px;letter-spacing:.03em}
.grid span{font-size:12px;color:var(--muted)}
table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);font-size:13.5px}
th{background:var(--deep);color:var(--paper);text-align:start;padding:10px 12px;font-size:12px;font-weight:600}
td{padding:9px 12px;border-bottom:1px solid var(--row);vertical-align:top}
.wrap{overflow-x:auto}
.held-name{display:block}
.review-block{border:1px dashed #b08a3e;background:#fffaf0;padding:16px 20px;margin-top:22px}
.review-block h2{margin-top:0}
.review-block h1{font-size:clamp(19px,2.2vw,24px);font-weight:600;margin:0 0 10px;line-height:1.3}
.review-chip{display:inline-block;font-size:11.5px;font-weight:600;line-height:1.7;padding:2px 10px;border:1px solid #b08a3e;background:#fff;color:#8a6a24;vertical-align:middle;margin-inline-start:8px;white-space:nowrap}
.review-list{padding-inline-start:20px;margin:10px 0 0}
.review-list li{margin-bottom:11px;line-height:1.85}
.review-value{display:block}
.review-meta{display:block;font-size:11.5px;line-height:1.6;color:var(--gap);margin-top:2px}
.review-warn{display:block;color:#8a3a24;font-weight:600;font-size:11.5px;line-height:1.6;margin-top:3px}
.review-value[lang]{display:block}
.measure-note{display:inline-block;font-size:11px;color:var(--gap);margin-inline-start:6px}
.match-why{display:block;font-size:11.5px;line-height:1.55;color:var(--muted);margin-top:3px}
.held-flag{display:block;font-size:11px;line-height:1.55;color:var(--gap);margin-top:3px}
.held-scope{display:block;font-size:11px;line-height:1.55;color:var(--muted);margin-top:1px;font-style:italic}
.approved-flag{display:block;font-size:11px;line-height:1.55;color:var(--muted);margin-top:3px}
.lat{letter-spacing:.24em;font-size:11.5px;color:var(--accent);margin-bottom:8px;text-transform:uppercase}
td.res-thumb{width:84px;padding:7px 12px}
td.res-thumb img{display:block;width:64px;height:40px;object-fit:contain;background:#eef2f3;border:1px solid var(--line)}
.compare-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 14px;align-items:end;margin:16px 0 4px}
.compare-pick .pick{display:flex;flex-direction:column;gap:5px;min-width:0}
.compare-pick label{font-size:12.5px;font-weight:600;color:var(--muted)}
.compare-pick .pick-field{position:relative;display:block}
/* The arrow's POSITION is logical and its SHAPE is physical: the corner is drawn with right/bottom so it always points down. */
.compare-pick .pick-field::after{content:"";position:absolute;inset-inline-end:14px;top:50%;width:8px;height:8px;margin-top:-6px;pointer-events:none;transform:rotate(45deg);border-right:2px solid var(--muted);border-bottom:2px solid var(--muted)}
.compare-pick select{text-overflow:ellipsis;white-space:nowrap;appearance:none;-webkit-appearance:none;width:100%;min-height:44px;padding-block:10px;padding-inline:12px 34px;border:1px solid var(--line);border-radius:0;background:var(--card);color:var(--ink);font:inherit;cursor:pointer}
.compare-pick button{min-height:44px;padding:13px 24px;border:0;background:var(--accent);color:#fff;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer}
.compare-pick button:hover{background:var(--accent-hover)}
/* ---- table and section pages (stream pgtables: compare, sources layers, orders, foundation) ----
 * Each class is catalogued in docs/design/PUBLIC-DESIGN-SYSTEM.md section 17. Direction: logical properties only. */
:root{--violet:#7a4b8c}
/* compare: two records, a column that says in words how each row compares, and the cell that says why it is empty */
table.compare{table-layout:fixed}
table.compare thead th{vertical-align:bottom;line-height:1.5}
table.compare thead th:first-child{width:15%}
table.compare thead th:nth-child(4){width:16%}
table.compare thead th a{color:#f4f1e9}
table.compare thead th a:hover{color:var(--gold)}
table.compare tbody th{background:var(--card);color:var(--ink);font-size:13px;font-weight:600;vertical-align:top;border-bottom:1px solid var(--row);overflow-wrap:anywhere}
table.compare td{overflow-wrap:anywhere}
.cmp-ord{display:block;font-size:10.5px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
html[lang="ar"] .cmp-ord{letter-spacing:0;font-size:12px}
.cmp-code{display:block;font-size:11.5px;font-weight:400;color:#c8d8de}
/* .latin isolates the run as LTR, so `start` would mean left: the identifier is aligned with the Arabic heading above it (a physical value, on purpose) */
html[lang="ar"] .cmp-code{text-align:right}
.cmp-items{list-style:none;margin:0;padding:0}
.cmp-items li{margin:0 0 7px;line-height:1.65}
.cmp-items li:last-child{margin-bottom:0}
.cmp-note{display:block;font-size:11.5px;line-height:1.6;color:var(--gap);margin-top:2px}
th .cmp-note{font-weight:400}
.cmp-warn{color:#8a3a24;font-weight:600}
.cmp-plate img{display:block;width:auto;max-width:100%;height:auto;max-height:150px;object-fit:contain;border:1px solid var(--line);background:#fff}
.cmp-mark{display:inline-block;max-width:100%;font-size:12.5px;font-weight:600;line-height:1.55;padding:3px 10px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink-3)}
.cmp-mark--same{border-color:var(--green);color:var(--green)}
.cmp-mark--differs{border-color:var(--accent);color:var(--accent-hover)}
.cmp-mark--only_a,.cmp-mark--only_b{border-color:#c08a1e;background:var(--amber-bg);color:var(--amber-ink)}
.cmp-mark--none{border-style:dashed;color:var(--gap)}
.cmp-mark--each{color:var(--muted)}
.cmp-row--differs>th{border-inline-start:3px solid var(--accent)}
.cmp-row--same>th{border-inline-start:3px solid var(--green)}
.cmp-row--only_a>th,.cmp-row--only_b>th{border-inline-start:3px solid #c08a1e}
.cmp-tally{margin:0 0 14px}
.cmp-legend dt{padding-inline-end:12px}
.cmp-chosen{max-width:420px;margin:0 0 14px}
/* sources: the five layers of the register, one card each, a coloured edge that only reinforces the word */
.layer-grid{--card-min:215px}
.layer-card{border-inline-start:3px solid var(--layer,var(--deep))}
.layer-card--fao{--layer:var(--green)}
.layer-card--iucn{--layer:var(--teal)}
.layer-card--national{--layer:var(--amber)}
.layer-card--science{--layer:var(--violet)}
.layer-card--hawat{--layer:var(--slate)}
.layer-card .card-title{font-size:17px;line-height:1.5}
.layer-state{margin:10px 0 0;font-size:13.5px;line-height:1.8;color:var(--ink-3)}
.layer-state .chip{margin-bottom:4px;white-space:normal}
.refs-held .chip{margin-inline-start:6px;font-size:10.5px}
/* orders and the foundation page: a row of in-page anchors, and an order as a card */
.order-jump,.toc{margin:0 0 8px}
.order-jump ul,.toc ul{display:flex;flex-wrap:wrap;gap:6px 8px}
.order-jump ul.plain li,.toc ul.plain li{padding:0}
.order-jump a,.toc a{display:inline-block;padding:4px 12px;border:1px solid var(--line-strong);background:var(--card);font-size:13px;line-height:1.7;color:var(--ink)}
.order-jump a:hover,.toc a:hover{border-color:var(--accent);color:var(--ink);text-decoration:none}
.section-head--band{padding:14px 20px;margin-bottom:12px;background:var(--deep);color:#f4f1e9}
.section-head--band h2{color:#f4f1e9}
.section-head--band .gap{color:#a9c6d0}
.section-head--band .rule{display:none}
.order-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));gap:14px;align-items:start}
.order-card--wide{grid-column:1/-1}
.order-card{scroll-margin-top:16px}
.order-card .card-title{margin:2px 0 4px;font-size:21px}
.order-name{margin-inline-start:8px;font-size:17px;font-weight:400;color:var(--muted)}
.order-families{margin:12px 0 0}
.prose h2{scroll-margin-top:16px}
/* (the species detail rules live in section 9B below) */

/* =========================================================== 9B  RECORD PAGES
 * The species page, the family page, the two indexes and the search: the pages that show ONE record or a LIST
 * of records. Built from the catalogue (cards, chips, ribbons, filters, pager, empty states, plates) plus the
 * classes below, each documented in docs/design/PUBLIC-DESIGN-SYSTEM.md section 17. Square corners, no
 * shadow, a plate never cropped, and every state said in words (colour only reinforces).
 */
:root{--font-mixed:'Chakra Petch','Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif}
/* ---- chips that wrap, so a status fits a 216px card ---- */
.chip--wrap{white-space:normal}
.chip--sm{font-size:10.5px;line-height:1.6;padding:1px 7px}
.chip-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
/* ---- the headline block of a record ---- */
.rec h2{display:flex;align-items:baseline;gap:14px;margin:40px 0 16px;font-size:clamp(21px,2.3vw,27px);font-weight:700;line-height:1.3}
.rec h2::after{content:"";flex:1;min-width:24px;height:1px;background:var(--line)}
.rec .review-block h2{display:block;font-size:clamp(19px,2.2vw,24px);margin:0 0 10px}
.rec .review-block h2::after{content:none}
.rec h3.sub{margin:22px 0 4px;font-size:15px;font-weight:700}
.lat{font-family:var(--font-latin);font-size:11.5px;letter-spacing:.22em;unicode-bidi:isolate;margin:0 0 8px}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);grid-template-rows:auto auto;gap:0 34px;align-items:start;margin:4px 0 6px}
.hero-media{grid-column:1;grid-row:1/span 2;min-width:0;margin:0}
.hero-naming{grid-column:2;grid-row:1;min-width:0}
.hero-identity{grid-column:2;grid-row:2;min-width:0}
.hero-naming h1{margin:2px 0 6px;font-size:clamp(28px,4vw,40px);font-weight:700;line-height:1.2;overflow-wrap:break-word}
.hero-naming h1 .sci{font-weight:500}
.sci-line{margin:0 0 2px;font-size:clamp(18px,2.1vw,23px);overflow-wrap:break-word}
.authority{display:block;margin:0 0 8px;font-size:clamp(13px,1.5vw,15px);line-height:1.6;color:var(--muted);unicode-bidi:isolate;text-align:start}
.alt-name{margin:0 0 6px;font-size:16px;color:var(--muted)}
.hero-local-label{margin:14px 0 2px;font-size:12.5px;font-weight:700;color:var(--muted)}
.hero-local{margin:2px 0 0;font-size:19px;font-weight:700;line-height:1.9}
.hero-local-scope{margin:2px 0 0;font-size:12.5px}
.hero-local .gap{font-size:12px;font-weight:400}
.hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:14px 0 0;font-size:13.5px;color:var(--muted)}
/* the plate: contained on white, never cropped; a small master is shown at its own size, never enlarged */
.hero-media.plate{background:var(--card);border:1px solid var(--line)}
.hero-media .plate-box{display:flex;align-items:center;justify-content:center}
.hero-media .plate-box img{display:block;width:100%;height:100%;object-fit:contain;border:0;background:none}
.hero-media--small .plate-box,.hero-media--very-small .plate-box{padding:14px}
.hero-media--very-small .plate-box{padding:26px}
.hero-media--small .plate-box img,.hero-media--very-small .plate-box img{width:auto;height:auto;max-width:100%;max-height:100%}
.hero-media figcaption{display:block;padding:10px 14px 12px;font-size:12.5px;line-height:1.75;color:var(--muted)}
.plate-rights{display:block;font-size:11.5px;color:var(--gap);margin-top:2px}
/* An English credit or study note in an Arabic page is set left-to-right, so its full stops and its (c) sign stay where the English puts them. */
html[dir="rtl"] :is(p,div,li,dd,td)[lang="en"]{direction:ltr;text-align:left}
html[dir="rtl"] :is(.plate-rights,.cmp-note){unicode-bidi:plaintext;text-align:start}
/* no plate may be shown: a plain statement with its reason, never a stand-in picture */
.hero-media.plate--none{background:none;border:0}
.plate-none{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:230px;padding:26px 22px;text-align:center;background:var(--card);border:1px dashed var(--line-strong);color:var(--muted)}
.plate-none strong{display:block;font-size:15px;color:var(--ink)}
.plate-none span{font-size:13px;line-height:1.8;max-width:34ch}
/* ---- the headline figures: a hairline strip, each with the word that says what it is ---- */
.quick{list-style:none;display:flex;flex-wrap:wrap;gap:1px;margin:24px 0 0;padding:0;background:var(--line);border:1px solid var(--line)}
.quick li{flex:1 1 168px;min-width:0;display:flex;flex-direction:column;gap:3px;padding:16px 20px;background:var(--card);border:0}
.quick-label{font-size:12px;letter-spacing:0;color:var(--muted)}
.quick-value{font-family:var(--font-mixed);font-size:clamp(18px,2.2vw,24px);font-weight:600;line-height:1.3;overflow-wrap:anywhere;color:var(--deep)}
.quick-unit{font-size:13px;font-weight:400;color:var(--muted)}
.quick-note{font-size:12px;line-height:1.7;color:var(--gap)}
/* ---- naming evidence, per sea ---- */
.saudi-scopes{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin:12px 0 4px}
.saudi-scope{padding:14px 18px;background:var(--card);border:1px solid var(--line);border-inline-start:3px solid var(--deep)}
.saudi-scope strong{display:block;margin-bottom:4px;font-size:12.5px;font-weight:700;color:var(--muted)}
.saudi-scope span{font-size:17px;line-height:1.9}
/* ---- a measurement is a card: what was measured, the value, the unit, and where it came from ---- */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin:12px 0}
.fact{min-width:0;padding:18px 20px;background:var(--card);border:1px solid var(--line)}
.fact-label{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 6px;font-size:13px;font-weight:700;color:var(--muted)}
.fact-scope{font-size:11.5px;font-weight:400;color:var(--gap)}
.fact-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:0;font-family:var(--font-mixed);font-size:27px;font-weight:600;line-height:1.3;color:var(--deep);overflow-wrap:anywhere}
.fact-unit{font-size:14px;font-weight:400;color:var(--muted)}
.fact-term{font-size:16px;font-weight:600;line-height:1.7}
.fact-source{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:14px 0 0;padding-top:24px;border-top:1px solid var(--line-soft);font-size:13px;line-height:1.8;color:var(--muted)}
.fact-source::before{position:absolute;inset-inline-start:0;top:7px;font-family:var(--font-latin);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--gap)}
html[lang="ar"] .fact-source::before{content:"بطاقة المصدر";font-family:var(--font-ar);letter-spacing:0;font-size:11px;text-transform:none}
html[lang="en"] .fact-source::before{content:"Source card"}
/* ---- the names of a record ---- */
.names{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin:12px 0}
.name-group{min-width:0;padding:15px 18px;background:var(--card);border:1px solid var(--line)}
.name-group h3{margin:0 0 8px;font-size:12.5px;font-weight:700;color:var(--muted)}
.name-group p{margin:0;font-size:17px;line-height:1.9;overflow-wrap:anywhere}
.name-group ul.plain li{padding:5px 0;font-size:16px;border-bottom:1px solid var(--row)}
.name-group ul.plain li:last-child{border-bottom:0}
.name-group .chip{margin-inline-start:6px;vertical-align:middle}
.lineage{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:6px 0 0;font-size:14px}
.rank-label{margin-inline-start:5px;font-size:11.5px;color:var(--gap)}
details.more{margin-top:14px;padding:10px 16px;background:var(--card);border:1px solid var(--line)}
details.more summary{cursor:pointer;font-size:13.5px;font-weight:600}
details.more[open] summary{margin-bottom:8px}
/* ---- relatives (the same family): text cards, no resemblance implied ---- */
.siblings{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin:12px 0 0;padding:0}
.siblings li{background:var(--card);border:1px solid var(--line)}
.siblings li:hover{border-color:var(--accent)}
.siblings a{display:flex;flex-direction:column;gap:2px;padding:12px 15px;color:var(--ink);overflow-wrap:anywhere}
.siblings a:hover{background:none;text-decoration:none}
.sibling-name{font-size:15px;font-weight:700}
.siblings .sci{font-size:13px;color:var(--muted)}
.gaps{margin:10px 0 0;padding-inline-start:20px;columns:2 210px;column-gap:26px;font-size:14.5px;line-height:1.75;color:var(--muted)}
.gaps li{break-inside:avoid;margin-bottom:4px}
.source{margin-top:11px;line-height:1.95}
/* back links and the language note, under the headline of a record */
.rec-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:0 0 18px;font-size:13px}
.rec-nav a{display:inline-flex;align-items:center;gap:.3em;min-height:32px}
.rec-nav .grow{flex:1}
/* ---- list pages: the count line, the cards, the foot of a card ---- */
.list-count{margin:0 0 14px;font-size:14px;line-height:1.9;color:var(--ink-2)}
.list-count strong{font-family:var(--font-latin);font-weight:600;color:var(--deep)}
.filters-note{margin:-6px 0 14px;font-size:12.5px;line-height:1.8;color:var(--muted)}
.filters .field.grow{flex:1 1 240px}
.filters .field.grow input{width:100%}
.filters select{max-width:100%}
.sp-card{display:flex;flex-direction:column}
.sp-card .card-body{display:flex;flex:1;flex-direction:column;gap:3px}
.card-sci{display:block;font-family:var(--font-latin);font-size:14px;font-style:italic;line-height:1.4;color:var(--ink);unicode-bidi:isolate;overflow-wrap:anywhere}
.card-name{display:block;margin-top:2px;font-size:16.5px;font-weight:700;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.card-sub{display:block;font-size:12.5px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.card-state{display:block;margin-top:3px}
.card-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;margin-top:auto;padding-top:9px;border-top:1px solid var(--line-soft);font-size:11.5px;color:var(--muted)}
.card-foot .latin,.card-foot .num{font-size:11.5px}
.card--row{align-items:center}
.card-thumb{display:flex;flex:0 0 74px;width:74px;height:56px;background:#fff;border:1px solid var(--line-soft)}
.card-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.card--row .card-main{flex:1;min-width:0}
.card-count{flex:0 0 auto;padding-inline-start:10px;border-inline-start:1px solid var(--line-soft);text-align:center;font-size:10.5px;line-height:1.4;color:var(--muted)}
.card-count b{display:block;font-family:var(--font-latin);font-size:18px;font-weight:600;color:var(--deep)}
.card-plate-of{display:block;margin-top:2px;font-size:11px;line-height:1.5;color:var(--gap)}
/* ---- search results ---- */
.res-names{display:block;line-height:1.6}
.res-family{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
.res-codes{display:block;margin-top:2px;font-size:11.5px;color:var(--muted)}
.empty .cta-row{justify-content:center;margin-top:14px}
.search-steps{margin:8px 0 0;padding-inline-start:20px;font-size:14px;line-height:2;color:var(--ink-2)}
/* ---- printing a record: the page itself, with its sources, and nothing that only works on a screen ---- */
@media print{
  .rec-nav,.filters,.pager{display:none!important}
  .hero{grid-template-columns:1fr 1fr}
  .rec h2,.rec h3{break-after:avoid}
  .fact,.name-group,.saudi-scope,.card,.siblings li,.quick li,.review-block{break-inside:avoid}
  .quick,.fact,.name-group,.saudi-scope,.card,.plate{border-color:#999}
  .hero-media .plate-box img{max-height:9cm}
  details.more>*{display:block}
}
@media (max-width:820px){
  .hero{grid-template-columns:1fr;gap:16px}
  .hero-media,.hero-naming,.hero-identity{grid-column:1;grid-row:auto}
  .hero-media--small .plate-box{padding:8px}
  .hero-media--very-small .plate-box{padding:16px}
  .plate-none{min-height:0;padding:20px 16px}
  .facts{grid-template-columns:1fr}
  .quick li{flex-basis:140px;padding:13px 16px}
}
/* a long Latin name (a family such as POMACENTRIDAE) in the headline strip must never be cut mid-word: below 1000px the cells that carry one take a whole row. Measured: at 768px the cell content is 130px and the word needs 156px. */
@media (max-width:1000px){
  .quick li:has(.sci){flex-basis:100%}
}
@media (max-width:560px){
  /* a filter bar on a phone: selects in pairs, the text field and the ticks full width, nothing taller than it has to be */
  .filters{gap:10px 12px;padding:14px}
  .filters .field{flex:1 1 calc(50% - 8px)}
  .filters .field.grow,.filters .check,.filters .field-hint{flex:1 1 100%}
  .filters select{width:100%;min-height:44px}
  .filters .check{min-height:34px}
  .filters .actions{flex:1 1 100%;margin-inline-start:0}
  .rec .kpis>div{flex:1 1 110px;padding:14px 16px}
  .rec .kpis b{font-size:28px}
}
@media (max-width:420px){
  .rec h2{gap:10px}
  .card-name{font-size:15.5px}
  .quick li{flex-basis:120px}
}

/* =========================================================== 9b  REGISTER PAGES: sea, taxonomy, graph
 * Classes added by the sea / taxonomy / knowledge-graph build stream (documented in docs/design/PUBLIC-DESIGN-SYSTEM.md section 17).
 * Everything else on those pages is the catalogue above: page-head, kpis, ribbon, filters, pager, empty, card-grid, rows, entries.
 */
/* ---- a record card on a sea page: a plain card whose title and family are links ---- */
a.card-media{display:block}
.sea-card .card-body{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.sea-card a.card-title{color:var(--ink);font-size:17px;overflow-wrap:anywhere}
.sea-card a.card-title:hover{color:var(--accent);text-decoration:none}
.sea-card a.card-kicker:hover{color:var(--accent-hover)}
.sea-card .card-meta{margin-top:0}
.sea-card .chip{white-space:normal;line-height:1.5;padding:2px 8px}
.sea-names{margin:2px 0 4px}
.sea-names li{font-size:18px;line-height:1.7;padding:0}
/* ---- the taxonomy tree: a navy class header, a row per order, a chip per family (nested lists) ---- */
.tax-class-block{margin:0 0 28px;border:1px solid var(--line);background:var(--card)}
.tax-class{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;padding:16px 20px;background:var(--deep);color:#f4f1e9}
.tax-class h2{margin:0;font-size:20px;font-weight:600;color:inherit}
.tax-class .tax-name{color:#9fb9c2}
.tax-count{margin-inline-start:auto;font-size:12px;color:#9fb9c2}
.tax-name{margin-inline-start:8px;font-size:14px;color:var(--muted)}
.tax-orders{list-style:none;margin:0;padding:0}
.tax-order{padding:15px 20px;border-top:1px solid var(--line)}
.tax-class+.tax-orders>.tax-order:first-child{border-top:0}
.tax-order-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:10px}
.tax-order-head>a{font-size:15px;letter-spacing:.04em}
.tax-families{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:7px}
.tax-fam{display:inline-flex;align-items:baseline;gap:7px;padding:6px 11px;background:var(--paper);border:1px solid var(--line-soft);color:inherit;font-size:12.5px}
.tax-fam:hover{border-color:var(--accent);color:inherit;text-decoration:none}
.tax-fam-name{color:var(--muted)}
/* ---- the knowledge graph: one server-made SVG of three rings; colour comes from tokens here, never from the markup ---- */
.kg{margin:18px 0 8px;padding:10px;background:var(--card);border:1px solid var(--line)}
.kg-svg{display:block;width:100%;max-width:780px;height:auto;margin:0 auto;direction:ltr}
.kg figcaption{padding:8px 8px 4px;font-size:12.5px;line-height:1.8;color:var(--muted)}
.kg-svg path{stroke:var(--paper);stroke-width:1}
.kg-class--0{fill:var(--deep)}
.kg-class--1{fill:var(--ink-3)}
.kg-order--0{fill:var(--teal)}
.kg-order--1{fill:var(--green)}
.kg-family{fill:var(--amber)}
.kg-svg a:hover path,.kg-svg a:focus path{fill:var(--accent)}
.kg-core circle{fill:var(--paper);stroke:var(--line-strong)}
.kg-core-num{font-family:var(--font-latin);font-size:28px;fill:var(--deep)}
.kg-core-lbl{font-size:11px;fill:var(--muted)}
.kg-label{font-family:var(--font-latin);font-size:11px;fill:var(--ink)}
.kg-label--end{text-anchor:end}
.kg-legend{display:flex;flex-wrap:wrap;gap:6px 24px;margin:8px 0 18px;padding:0;list-style:none;font-size:13px}
.kg-swatch{display:inline-block;width:12px;height:12px;margin-inline-end:6px;vertical-align:-1px}
.kg-swatch--0{background:var(--deep)}
.kg-swatch--1{background:var(--ink-3)}
@media (max-width:560px){
  .tax-class{padding:14px 16px}
  .tax-order{padding:13px 16px}
  .tax-count{margin-inline-start:0;flex:1 1 100%}
  .kg{padding:6px}
}
@media print{
  .tax-class{background:none;color:#000;border-bottom:2px solid #000}
  .tax-class .tax-name,.tax-count{color:#000}
  .kg-svg a path{stroke:#000}
}
/* ---- 9b  LIST PAGES (indexes stream): scientific A-Z, Arabic names, codes, gallery, data status ----
 * Every class below is catalogued in docs/design/PUBLIC-DESIGN-SYSTEM.md section 17. Logical properties only; no script; each target is 44px high. */
.letterbar{margin:18px 0 22px}
.letterbar ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.letterbar a,.letterbar .is-off{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:44px;min-height:44px;padding:4px 8px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);line-height:1.2}
.letterbar a:hover{border-color:var(--accent);color:var(--ink);text-decoration:none}
.letterbar a[aria-current="page"]{background:var(--deep);border-color:var(--deep);color:#f4f1e9;box-shadow:inset 0 -3px 0 var(--gold)}
.letterbar b{font-size:18px;font-weight:600}
.letterbar:not([lang="ar"]) b{font-family:var(--font-latin)}
/* the Latin alphabet reads left to right even on an Arabic page, and hugs the edge the page starts from */
html[dir="rtl"] .letterbar[lang="la"] ul{justify-content:flex-end}
.letterbar .num{font-size:11px;color:var(--muted)}
.letterbar a[aria-current="page"] .num{color:#c8d8de}
.letterbar .is-off{color:var(--gap);border-style:dashed;background:none}
.letter-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.letter-tile{display:flex;flex-direction:column;gap:2px;padding:14px 16px;background:var(--card);border:1px solid var(--line);color:inherit;min-width:0}
.letter-tile:hover{border-color:var(--accent);color:inherit;text-decoration:none}
.letter-tile b{font-size:36px;line-height:1.1;font-weight:400;color:var(--accent)}
.letter-tile span{font-size:12.5px;color:var(--muted)}
.seg{display:inline-flex;flex-wrap:wrap;gap:1px;margin:6px 0 4px;background:var(--line-strong);border:1px solid var(--line-strong)}
.seg a{display:inline-flex;align-items:center;min-height:44px;padding:9px 16px;background:var(--card);color:var(--muted);font-size:13.5px}
.seg a:hover{color:var(--ink);text-decoration:none}
.seg a[aria-current="page"]{background:var(--deep);color:#f4f1e9;font-weight:600;box-shadow:inset 0 -3px 0 var(--gold)}
.chip--wrap{white-space:normal}
.plate-tile .card-title--sci{font-size:15px;font-weight:600;font-style:italic;font-family:var(--font-latin);direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere}
.plate-tile .plate-credit{font-size:11.5px;line-height:1.6}
.plate-grid .card{display:flex;flex-direction:column}
svg.bar{display:block;width:100%;max-width:220px;height:6px;margin-top:6px}
html[dir="rtl"] svg.bar{transform:scaleX(-1)}
svg.bar .bar-track{fill:var(--line-soft)}
svg.bar .bar-fill{fill:var(--line-strong)}
svg.bar--high .bar-fill{fill:var(--green)}
svg.bar--mid .bar-fill{fill:var(--amber)}
svg.bar--low .bar-fill{fill:var(--accent)}
svg.bar--none .bar-fill{fill:none}
@media (max-width:820px){
  .letterbar a,.letterbar .is-off{min-width:40px}
  .letter-tiles{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
  .letter-tile{padding:9px 12px}
  .letter-tile b{font-size:28px}
  svg.bar{max-width:none}
}

/* =========================================================== 10  RESPONSIVE */
@media (max-width:1320px){
  .ph-nav{gap:17px}
  .ph-link,.ph-menu>summary{font-size:14.5px}
  .ph-title{font-size:24px}
}
@media (max-width:1179px){
  /* the inline navigation and the tagline fold into the menu; its summary becomes the burger */
  .ph-tagline{display:none}
  .ph-nav{flex:0 0 auto;margin-inline-start:auto;gap:0}
  .ph-nav>.ph-link{display:none}
  .ph-menu>summary{gap:9px;min-height:44px;padding:10px 14px;background:rgba(244,241,233,.06);border:1px solid rgba(127,168,180,.35);border-radius:9px;color:#e6eef1;font-size:14px}
  .ph .ph-menu>summary:hover{background:rgba(244,241,233,.12)}
  .ph-menu[data-active="true"]>summary::after{display:none}
  .ph-menu[data-active="true"]>summary{font-weight:400;color:#e6eef1}
  .ph-menu .ph-chev,.ph-lbl-explore{display:none}
  .ph-ico-burger{display:block;width:20px;height:20px}
  .ph-menu[open] .ph-ico-burger{display:none}
  .ph-menu[open] .ph-ico-close{display:block;width:20px;height:20px}
  .ph-lbl-menu{display:inline}
  .ph-panel{max-height:calc(100vh - 110px);overflow-y:auto;overscroll-behavior:contain}
  .ph-panel-in{padding-block:18px 24px}
  .ph-groups{grid-template-columns:1fr;gap:18px}
  .ph-group--wide{grid-column:auto}
  .ph-group--wide .ph-group-links{display:flex}
  .ph-drawer-nav{display:flex;flex-direction:column;gap:2px;margin-bottom:20px}
  .ph-drow{position:relative;display:flex;align-items:center;min-height:44px;color:#e6eef1;font-size:16px;padding:10px 12px;border-radius:9px}
  .ph .ph-drow:hover{background:rgba(127,190,212,.10)}
  .ph-drow[aria-current="page"]{color:var(--gold);font-weight:700;background:rgba(240,194,106,.08)}
  .ph-drawer-util{display:flex;flex-direction:column;gap:2px;margin-top:20px;padding-top:14px;border-top:1px solid rgba(127,168,180,.2)}
  .ph-drawer-lang{display:flex;align-items:center;gap:8px;padding:10px 12px;margin-top:6px}
}
@media (max-width:719px){
  .ph-wrap{padding-inline:16px}
  .ph-util{display:none}
  .ph-main-in{min-height:0;gap:12px;padding-block:12px}
  /* The design lets the brand keep its full width and overflows the page at 320px; here it shrinks and the title wraps. */
  .ph-brand{flex:0 1 auto}
  .ph-title{overflow-wrap:break-word}
  .ph-mark{width:68px;height:42px;border-radius:6px}
  .ph-mark img{width:104px;height:104px}
  .ph-title{font-size:19px}
  .ph-sub{font-size:11.5px}
  html[lang="en"] .ph-title{font-size:18px}
  .ph-menu>summary{padding:10px 12px}
  .ph-lbl-menu{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ph-search-in{padding-block:0 14px}
  .ph-field{padding-inline-start:14px}
  .ph-input{padding-block:11px}
  .ph-go{padding:11px 14px}
  .ph-go-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ph-actions--panel{display:flex;flex-wrap:wrap;padding:12px;margin:0}
  .w{padding-inline:16px}
  .home-hero{padding-top:14px}
}
@media (prefers-reduced-motion:reduce){
  .ph-panel{animation:none}
  .ph-chev{transition:none}
}
/* Mobile tables: at 820px and below each row of a table.stack becomes a card. Nothing is dropped.
 * The column heading moves INTO each cell as a visible label read from the cell's own data-label;
 * the header row is clipped the way .sr-only is, not display:none, so assistive technology keeps it.
 * The scientific-name cell carries no data-label (tests match its markup), so its label is set here by what it contains. */
@media (max-width:820px){
  table.stack,table.stack tbody{display:block;border:0;background:none}
  table.stack thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  table.stack tr{display:block;margin-block-end:12px;background:var(--card);border:1px solid var(--line);border-inline-start:3px solid var(--deep)}
  table.stack td{display:block;padding:8px 14px;border-bottom:1px solid var(--row);overflow-wrap:break-word}
  table.stack td:last-child{border-bottom:0}
  table.stack tbody th{display:block;padding:8px 14px}
  table.stack td::before{display:block;margin-block-end:2px;font-size:12px;font-weight:600;line-height:1.5;color:var(--muted)}
  table.stack td[data-label]::before{content:attr(data-label)}
  html[lang="ar"] table.stack td:has(> a:first-child > .sci)::before{content:"الاسم العلمي"}
  html[lang="en"] table.stack td:has(> a:first-child > .sci)::before{content:"Scientific name"}
  /* a comparison row is a card whose heading is the field name; each side keeps its own labelled cell */
  table.compare.stack tbody th{background:var(--deep);color:var(--paper);padding:9px 14px;border-bottom:0}
  table.compare.stack tbody th .cmp-note{color:#c8d8de}
  table.stack td.res-thumb{width:auto;padding:0;border-bottom:0}
  table.stack td.res-thumb img{width:64px;height:40px;margin-block:12px 2px;margin-inline:14px}
}
@media (max-width:560px){
  td.res-thumb{width:60px;padding:6px 8px}
  td.res-thumb img{width:48px;height:32px}
  .compare-pick{grid-template-columns:1fr}
  .compare-pick button{width:100%}
  .deflist{grid-template-columns:1fr}
  .deflist dt{padding-bottom:0;border-bottom:0}
}
@media print{
  .ph,.hw-foot,.skip,.pager,.filters{display:none!important}
  body{background:#fff}
  a{color:var(--ink)!important;text-decoration:none!important}
}

/* =========================================================== 11  OBSERVER
 * The observer's pages (/observer, registration, sign-in, recovery, account, observations): forms, the
 * registration steps, the SIMULATION banner, the code field, the draft list. Built from the tokens above and the
 * existing .btn / .chip / .ribbon / .empty / .deflist classes; only what has no equivalent is added here.
 * Documented in docs/design/PUBLIC-DESIGN-SYSTEM.md section 17. No script is needed by anything below.
 */
/* a page of the journey: the form, and what it means beside it */
.obs-grid{display:grid;grid-template-columns:minmax(0,44rem) minmax(0,26rem);gap:26px 34px;align-items:start}
.obs-aside{background:var(--card);border:1px solid var(--line);padding:18px 20px;font-size:14px;line-height:1.9;color:var(--ink-3)}
.obs-aside h2{margin:0 0 6px;font-size:17px;font-weight:700;color:var(--ink)}
.obs-aside p{margin:0 0 12px}
.obs-aside ul{margin:0 0 12px;padding-inline-start:20px}
.obs-aside :last-child{margin-bottom:0}
/* the registration steps: a numbered line, the current one marked by a word-weight and a filled number, not by colour alone */
.obs-steps{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13.5px;color:var(--muted)}
.obs-steps li{display:flex;align-items:center;gap:8px}
.obs-steps .n{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid var(--line-strong);background:var(--card);font-family:var(--font-latin);font-size:12.5px;color:var(--ink-3)}
.obs-steps [aria-current="step"]{color:var(--ink);font-weight:700}
.obs-steps [aria-current="step"] .n{background:var(--deep);border-color:var(--deep);color:#f4f1e9}
.obs-steps .is-done .n{background:var(--green);border-color:var(--green);color:#fff}
/* the form card */
.obs-form{background:var(--card);border:1px solid var(--line);padding:22px 24px;margin:0 0 18px}
.obs-form fieldset{border:0;margin:0 0 18px;padding:0;min-width:0}
.obs-form legend{padding:0;margin:0 0 8px;font-size:13.5px;font-weight:700;color:var(--ink-2)}
.f-field{display:flex;flex-direction:column;gap:6px;margin:0 0 18px;min-width:0}
.f-field>label,.f-label{font-size:13.5px;font-weight:700;color:var(--ink-2)}
.f-field .opt{font-weight:400;color:var(--muted)}
.f-input{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:0;background:#fff;color:var(--ink);font:inherit;font-size:15px;line-height:1.6}
textarea.f-input{min-height:140px;line-height:1.9;resize:vertical}
select.f-input{appearance:none;-webkit-appearance:none;padding-inline-end:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235c5545' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
html[dir="rtl"] select.f-input{background-position:left 12px center}
.f-input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.f-input[aria-invalid="true"]{border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger)}
/* a number, a code, an address: always left-to-right whatever the edition */
.f-input--ltr{direction:ltr;text-align:start;font-family:var(--font-latin)}
html[dir="rtl"] .f-input--ltr{text-align:right}
.f-hint{margin:0;font-size:12.5px;line-height:1.75;color:var(--muted)}
.f-error{margin:0;font-size:13px;font-weight:700;line-height:1.7;color:var(--danger)}
.f-error::before{content:"✕ ";font-weight:400}
.f-choices{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(11.5rem,1fr))}
.f-choice{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 14px;border:1px solid var(--line-strong);background:#fff;font-size:14.5px;cursor:pointer}
.f-choice:hover{border-color:var(--accent)}
.f-choice:has(input:checked){border-color:var(--accent);background:#fff7f3;box-shadow:inset 0 0 0 1px var(--accent)}
.f-choice input,.f-check input{width:18px;height:18px;margin:0;accent-color:var(--accent);flex:0 0 auto}
.f-check{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;font-size:14px;line-height:1.8}
.f-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:6px}
.f-actions .btn{min-width:9rem}
.f-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 0;font-size:13.5px}
/* the six-digit code: large, spaced, left-to-right, one field */
.f-code{max-width:16rem;text-align:center;font-family:var(--font-latin);direction:ltr;font-size:28px;letter-spacing:.42em;padding-inline-start:calc(12px + .42em)}
/* the error summary at the top of a refused form, and the notice after a step that worked */
.obs-alert{margin:0 0 18px;padding:14px 18px;border:1px solid #e8c9c1;border-inline-start:4px solid var(--danger);background:var(--danger-bg);color:var(--ink);font-size:14.5px;line-height:1.9}
.obs-alert strong{display:block;color:var(--danger)}
.obs-alert ul{margin:6px 0 0;padding-inline-start:20px}
.obs-ok{margin:0 0 18px;padding:14px 18px;border:1px solid #bfd6c8;border-inline-start:4px solid var(--green);background:#f3f9f5;color:var(--ink);font-size:14.5px;line-height:1.9}
/* THE SIMULATION BANNER: loud on purpose. No real message was sent; the page must never read as if one was. */
.ribbon--sim{background:#fff6dc;border:2px dashed #a16a0a;border-inline-start-width:2px;color:#4f3504;padding:16px 20px}
.ribbon--sim .ribbon-title{font-size:16px;color:#4f3504}
/* a count or a figure of one's own, in the list of observations and on the account page */
.obs-meta{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0 0 16px;font-size:13.5px;color:var(--muted)}
.obs-meta b{font-family:var(--font-latin);font-weight:400;color:var(--ink)}
.chip--action{background:var(--amber-bg);border-color:var(--amber-line);color:var(--amber-ink)}
table.obs-table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);font-size:14px}
table.obs-table th{padding:10px 14px;text-align:start;font-size:12.5px;font-weight:700;color:#f4f1e9;background:var(--deep)}
table.obs-table td{padding:11px 14px;border-top:1px solid var(--row);vertical-align:top;overflow-wrap:anywhere}
.obs-table .code{font-family:var(--font-latin);direction:ltr;unicode-bidi:isolate;font-size:13px}
/* the signed-in header: the sign-out form sits in the row of buttons like one of them; a row of four buttons may wrap rather than push the page sideways */
.ph-logout{display:inline-flex;margin:0}
.ph-util-in,.ph-actions{flex-wrap:wrap}
.ph-logout .btn{font-family:inherit}
/* ON A PHONE: form fields at 16px (a smaller size makes iOS zoom the page when a field is focused) and the observer buttons at a 44px tap target, in the
   header and in the menu drawer alike; the call-to-action row of a page is as tall. Wider screens keep the compact buttons. */
@media (max-width:719px){
  .f-input{font-size:16px}
  .ph .btn-sm,.ph-actions .btn-sm,.ph-actions--panel .btn-sm{min-height:44px;padding-inline:16px;font-size:14px}
  .cta-row .btn{min-height:46px}
}
/* the species picker's results and the chosen species */
.pick-list{list-style:none;margin:0 0 14px;padding:0;border-top:1px solid var(--line)}
.pick-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;padding:11px 2px;border-bottom:1px solid var(--row)}
.pick-list .who{display:flex;flex-direction:column;gap:2px;min-width:0}
.pick-list .meta{font-size:12.5px;color:var(--muted)}
.chosen{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:12px 16px;margin:0 0 18px;border:1px solid var(--line-strong);border-inline-start:4px solid var(--green);background:#fff}
.chosen .sci{font-size:17px}
@media (max-width:980px){
  .obs-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .obs-form{padding:18px 16px}
  .f-choices{grid-template-columns:1fr}
  .f-actions .btn{width:100%}
  .f-code{font-size:24px;max-width:100%}
}
/* =========================================================== 12  OPTIONAL MESSAGES (owner decision D-24)
 * The optional-messages fieldset of the registration form and the per-channel rows of the messages page: a dashed card inside the form card,
 * so a person can see at a glance that it is a separate, optional choice, apart from accepting the privacy notice and from the older tick about
 * notifications on their own observations. Built from the observer tokens above; no script is needed by anything here.
 */
.obs-form fieldset.obs-comms{border:1px dashed var(--line-strong);background:#fbf8f0;padding:16px 18px;margin:0 0 18px}
.obs-comms legend{padding:0 6px;font-size:14px}
.obs-comms .f-hint{margin:0 0 12px}
.obs-comms .f-check{margin:0 0 10px}
.obs-form fieldset legend .chip{margin-inline-start:8px;vertical-align:middle}
/* ---- «الصيد والمواسم / Fishing and seasons» (D-28 / NOW-38). Read from the registry; logical properties only. ---- */
.fishing{margin-top:26px}
.fishing h3{font-size:15px;font-weight:600;margin:20px 0 8px;color:var(--ink-2)}
.fishing-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.fishing-item{background:var(--card);border:1px solid var(--line);border-inline-start:3px solid var(--line-strong);padding:11px 14px}
.fishing-item.firm{border-inline-start-color:var(--accent)}
.fishing-item .fi-text{display:block;line-height:1.85}
.fishing-item .fi-tags{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:7px;font-size:11.5px;line-height:1.6;color:var(--muted)}
.fishing-item .fi-tag{border:1px solid var(--line-strong);background:var(--paper);padding:0 8px}
.fishing-item .fi-tag.class{font-weight:600;color:var(--ink-2)}
.fishing-item .fi-tag.draft{border-color:#b08a3e;background:#fff;color:#8a6a24;font-weight:600}
.fishing-item .fi-tag.infer{border-color:#8a3a24;color:#8a3a24}
.fishing-item details{margin-top:6px;font-size:12px;line-height:1.7;color:var(--muted)}
.fishing-item summary{cursor:pointer;color:var(--accent)}
.fishing-item details p{margin:5px 0 0}
.fishing-missing{margin:16px 0 0;padding-inline-start:20px;font-size:13px;color:var(--gap);line-height:1.8}
@media (max-width:560px){.fishing-item{padding:10px 11px}}
/* ---- «الصيد والمواسم / Fishing and seasons» (D-28 / NOW-38). Read from the registry; logical properties only. ---- */
.fishing{margin-top:26px}
.fishing h3{font-size:15px;font-weight:600;margin:20px 0 8px;color:var(--ink-2)}
.fishing-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.fishing-item{background:var(--card);border:1px solid var(--line);border-inline-start:3px solid var(--line-strong);padding:11px 14px}
.fishing-item.firm{border-inline-start-color:var(--accent)}
.fishing-item .fi-text{display:block;line-height:1.85}
.fishing-item .fi-tags{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:7px;font-size:11.5px;line-height:1.6;color:var(--muted)}
.fishing-item .fi-tag{border:1px solid var(--line-strong);background:var(--paper);padding:0 8px}
.fishing-item .fi-tag.class{font-weight:600;color:var(--ink-2)}
.fishing-item .fi-tag.draft{border-color:#b08a3e;background:#fff;color:#8a6a24;font-weight:600}
.fishing-item .fi-tag.infer{border-color:#8a3a24;color:#8a3a24}
.fishing-item details{margin-top:6px;font-size:12px;line-height:1.7;color:var(--muted)}
.fishing-item summary{cursor:pointer;color:var(--accent)}
.fishing-item details p{margin:5px 0 0}
.fishing-missing{margin:16px 0 0;padding-inline-start:20px;font-size:13px;color:var(--gap);line-height:1.8}
@media (max-width:560px){.fishing-item{padding:10px 11px}}
