/* Aquarium Arcanum — article, species profile and static page styles */

.article__header { padding: 1.25rem 0 0; }
.article__title { font-size: var(--step-4); max-width: 24ch; margin-bottom: .35em; }
.article__standfirst { font-size: var(--step-1); color: var(--ink-soft); max-width: 62ch; line-height: 1.5; margin-bottom: 1rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; font-family: var(--font-ui); font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.article__meta a { color: var(--navy); font-weight: 500; }
.article__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article__hero { margin: 0 auto 2rem; }
.article__hero picture { display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-lg); background: var(--mist); }
.article__hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.article__hero picture .article__hero-img { border-radius: 0; }
.article__hero figcaption, .species__hero figcaption, .article-figure figcaption, .gallery__item figcaption { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); padding: .5rem .25rem 0; }
.credit { color: var(--muted); }
.article__layout { display: grid; gap: 2.5rem; padding-bottom: 2rem; }
.article__main { min-width: 0; max-width: var(--measure); }
.article__sidebar { display: none; }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.25rem; }
@media (min-width: 1100px) {
  .article__layout { grid-template-columns: minmax(0, var(--measure)) var(--sidebar); justify-content: space-between; }
  .article__sidebar { display: block; }
}
.sidebar-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; font-family: var(--font-ui); }
.sidebar-block__title { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .75rem; font-weight: 600; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.link-list a { text-decoration: none; color: var(--navy); font-size: .95rem; }
.link-list a:hover { color: var(--teal-dark); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mini-list a { display: grid; grid-template-columns: 56px 1fr; gap: .75rem; align-items: center; text-decoration: none; color: var(--navy); }
.mini-list__img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-list em { display: block; color: var(--muted); font-size: .82rem; font-family: var(--font-body); }

/* TOC */
.toc { font-family: var(--font-ui); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; background: var(--mist); margin: 0 0 2rem; }
.toc--sidebar { background: #fff; margin: 0; max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; }
.toc__heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 0 0 .6rem; }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; counter-reset: toc; }
.toc__item--l3 { padding-left: 1rem; }
.toc__item a { color: var(--navy); text-decoration: none; font-size: .95rem; display: block; padding: .15rem .5rem; margin-left: -.5rem; border-left: 2px solid transparent; border-radius: 2px; }
.toc__item a:hover { color: var(--teal-dark); }
.toc__item a.is-active { border-left-color: var(--teal); color: var(--teal-dark); }
@media (min-width: 1100px) { .toc--inline { display: none; } }

/* ---- article body typography ---- */
.article-body { font-size: var(--step-0); line-height: 1.75; }
.article-body--page { max-width: var(--measure); }
.article-body > * + * { margin-top: 1.25em; }
.article-body p { margin: 0; }
.article-body .lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.article-body h2 { font-size: var(--step-3); margin: 2em 0 .5em; scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body h3 { font-size: var(--step-2); margin: 1.6em 0 .4em; scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body h4 { font-size: var(--step-1); margin: 1.4em 0 .3em; }
.article-body h2 + *, .article-body h3 + *, .article-body h4 + * { margin-top: 0; }
.article-body a { color: var(--teal-dark); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0; }
.article-body li { margin: .35em 0; padding-left: .2em; }
.article-body li::marker { color: var(--teal); font-weight: 600; }
.article-body blockquote { margin: 0; padding: .75rem 1.25rem; border-left: 4px solid var(--turquoise); background: var(--mist); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--ink-soft); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.article-body img { border-radius: var(--radius); }
.article-body figure { margin: 2em 0; }
.article-body figure img { width: 100%; }
.article-body code { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: .9em; background: var(--mist); padding: .1em .35em; border-radius: 4px; }
.article-body pre { background: var(--navy-deep); color: #fff; padding: 1rem 1.25rem; border-radius: var(--radius); overflow: auto; font-size: .9rem; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body sup a { text-decoration: none; }
.article-body iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }

/* tables */
.table-scroll { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; }
.article-body table, .params__table, .review-box__specs { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .95rem; background: #fff; }
.article-body table caption, .params__table caption, .review-box__specs caption { text-align: left; font-weight: 600; color: var(--navy); padding: 0 0 .5rem; caption-side: top; font-size: 1.05rem; }
.article-body th, .article-body td, .params__table th, .params__table td, .review-box__specs th, .review-box__specs td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body thead th { background: var(--navy); color: #fff; border-bottom: 3px solid var(--turquoise); font-weight: 500; }
.article-body tbody tr:nth-child(even) { background: var(--sand); }
.article-body tbody th, .params__table th, .review-box__specs th { font-weight: 600; color: var(--navy); width: 38%; background: var(--mist); }
.params__table td .u-secondary, .glance dd .u-secondary { color: var(--muted); }
.params__note { display: block; font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* editorial modules */
.aa-module { border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 2em 0; font-family: var(--font-body); border: 1px solid var(--line); background: #fff; }
.aa-module > :first-child { margin-top: 0; }
.aa-module > :last-child { margin-bottom: 0; }
.aa-module__label, .aa-module > p:first-child strong:only-child, .aa-module > h3:first-child, .aa-module > h4:first-child { font-family: var(--font-ui); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--teal-dark); margin: 0 0 .5rem; display: block; }
.aa-module--tip { background: #E6F6F3; border-color: #BDE6DD; }
.aa-module--tip .aa-module__label, .aa-module--tip > h3:first-child, .aa-module--tip > h4:first-child { color: #0B5B45; }
.aa-module--note { background: var(--mist); border-color: var(--mist-2); }
.aa-module--note .aa-module__label, .aa-module--note > h3:first-child, .aa-module--note > h4:first-child { color: var(--marine); }
.aa-module--warning { background: #FDF3E7; border-color: #F3D9B7; }
.aa-module--warning .aa-module__label, .aa-module--warning > h3:first-child, .aa-module--warning > h4:first-child { color: #8A4B00; }
.aa-module--takeaways { background: var(--navy); color: #fff; border-color: var(--navy); }
.aa-module--takeaways .aa-module__label, .aa-module--takeaways > h3:first-child, .aa-module--takeaways > h4:first-child { color: var(--turquoise); }
.aa-module--takeaways li::marker { color: var(--turquoise); }
.aa-module--takeaways a { color: #fff; }
.aa-module--expert { border-left: 4px solid var(--gold); }
.aa-module--expert .aa-module__label, .aa-module--expert > h3:first-child, .aa-module--expert > h4:first-child { color: #8A6A00; }
.aa-module--further-reading ul { list-style: none; padding: 0; }
.aa-module--further-reading li { padding-left: 1.4em; position: relative; }
.aa-module--further-reading li::before { content: "→"; position: absolute; left: 0; color: var(--teal); }
.aa-module--quick-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1.5rem; margin: 0; }
.aa-module--quick-facts dt { font-family: var(--font-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.aa-module--quick-facts dd { margin: 0; font-weight: 600; color: var(--navy); font-family: var(--font-ui); }
.aa-steps { counter-reset: step; list-style: none; padding: 0; margin: 2em 0; }
.aa-steps > li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.25rem; margin: 0; }
.aa-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 600; }
.aa-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.5rem; bottom: .25rem; border-left: 2px solid var(--line); }
.aa-steps > li > strong:first-child, .aa-steps > li > p:first-child > strong:first-child { font-family: var(--font-ui); color: var(--navy); display: block; margin-bottom: .2rem; }
.pros-cons { display: grid; gap: 1rem; margin: 1.5em 0; }
.pros-cons__col { border-radius: var(--radius); padding: 1rem 1.25rem; font-family: var(--font-body); }
.pros-cons__col h3 { font-size: 1rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.pros-cons__col ul { margin: 0; padding-left: 1.2em; }
.pros-cons__col--pros { background: #E6F6F3; } .pros-cons__col--pros h3 { color: #0B5B45; }
.pros-cons__col--cons { background: #FBECEB; } .pros-cons__col--cons h3 { color: #8A1C1C; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.article-faq { margin: 2.5em 0; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; background: #fff; }
.faq-item summary { cursor: pointer; padding: .9rem 1.1rem; font-family: var(--font-heading); font-weight: 500; color: var(--navy); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 1.1rem 1rem; }
.faq-answer p { margin: 0 0 .75em; }

/* references, tags, share, author */
.references { margin: 2.5em 0; font-size: .95rem; }
.references__list { padding-left: 1.4em; }
.references__list li { margin: .4em 0; }
.references__pub, .references__accessed, .references__note { color: var(--muted); }
.series-nav { margin: 2.5em 0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.25rem; font-family: var(--font-ui); }
.series-nav__label { margin: 0 0 .75rem; color: var(--muted); font-size: .9rem; }
.series-nav__links { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.series-nav__links a { text-decoration: none; color: var(--navy); font-weight: 500; }
.series-nav__links a span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); }
.series-nav__next { text-align: right; }
.tag-list { list-style: none; margin: 2em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--font-ui); }
.tag-list a { font-size: .85rem; text-decoration: none; color: var(--navy); background: var(--mist); padding: .3rem .75rem; border-radius: 999px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2em 0; font-family: var(--font-ui); font-size: .9rem; }
.share__label { color: var(--muted); margin-right: .25rem; }
.share a, .share__copy { text-decoration: none; color: var(--navy); border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .9rem; background: #fff; cursor: pointer; }
.share a:hover, .share__copy:hover { border-color: var(--navy); }
.author-box { display: grid; gap: 1.25rem; grid-template-columns: auto 1fr; align-items: start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; margin: 2.5em 0; }
.author-box__img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-box__eyebrow { font-family: var(--font-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .2rem; }
.author-box__name { font-size: 1.25rem; margin-bottom: .4rem; }
.author-box__name a { text-decoration: none; color: var(--navy); }
.author-box__role { font-family: var(--font-ui); font-size: .9rem; color: var(--teal-dark); font-weight: 400; }
.author-box__review { font-family: var(--font-ui); font-size: .88rem; color: var(--muted); margin: .5rem 0 0; }
.gallery { margin: 2.5em 0; }
.gallery__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery__item { margin: 0; }
.gallery__item img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.related { margin-top: 2rem; }

/* review box */
.review-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin: 0 0 2rem; background: var(--sand); }
.review-box__eyebrow { font-family: var(--font-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-dark); font-weight: 600; margin-bottom: .25rem; }
.review-box h2 { font-size: var(--step-2); margin-bottom: .25rem; }
.review-box__sub { font-family: var(--font-ui); color: var(--muted); margin-bottom: .75rem; }
.review-box__basis { font-size: .95rem; color: var(--ink-soft); background: #fff; border-radius: var(--radius-sm); padding: .75rem 1rem; }
.review-box__specs th { width: 42%; }
.review-box__best, .review-box__alts, .review-box__price { margin: 1em 0 0; }

/* ---- species profile ---- */
.species__sci { font-size: var(--step-1); color: var(--ink-soft); margin-bottom: .75rem; }
.species__family { font-family: var(--font-ui); font-size: .9rem; color: var(--muted); }
.species__top { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.species__hero { margin: 0; }
.species__hero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.glance { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem 1.25rem; background: var(--mist); font-family: var(--font-ui); }
.glance__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.glance__head h2 { font-size: 1.1rem; margin: 0; }
.glance__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .9rem 1rem; margin: 0; }
.glance__item dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.glance__item dd { margin: .1rem 0 0; font-weight: 600; color: var(--navy); font-size: 1rem; }
.glance__item dd .u-secondary { font-weight: 400; font-size: .85rem; display: block; }
.units-toggle { font-family: var(--font-ui); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: .35rem .8rem; cursor: pointer; color: var(--navy); white-space: nowrap; }
.units-toggle:hover { border-color: var(--navy); }
html.units-imperial .u-primary:has(+ .u-secondary) { display: none; } html.units-imperial .u-secondary { display: inline; color: var(--navy); }
html.units-imperial .glance__item dd .u-secondary { font-weight: 600; font-size: 1rem; display: block; }
.params { margin: 2.5em 0; }
.params .glance__head { margin-bottom: .5rem; }
.params .glance__head h2 { font-size: var(--step-3); }
.params__disclaimer { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); }
.species__section { margin: 2em 0; }
.tri { font-family: var(--font-ui); font-weight: 600; padding: .15rem .6rem; border-radius: 999px; font-size: .85rem; }
.tri--yes { background: #DDF5EE; color: #0B5B45; } .tri--with_caution { background: #FBE9D0; color: #8A4B00; } .tri--no { background: #F7DADA; color: #8A1C1C; }
@media (min-width: 720px) { .species__top { grid-template-columns: 1.1fr .9fr; align-items: start; } }

/* static pages */
.page .article__header { padding-top: 1.5rem; }
.contact { margin: 2.5rem 0 3rem; max-width: var(--measure); }

/* ---- library video clips (VideoService::player; behaviour in site.js) ---- */
.article-video__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep, #0D1B2A); }
.article-video__media { display: block; width: 100%; height: auto; cursor: pointer; }
.article-video__toggle { position: absolute; left: .75rem; bottom: .75rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: rgba(13, 27, 42, .72); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.article-video__toggle::before { content: ""; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.article-video__toggle.is-playing::before { width: 12px; height: 15px; margin-left: 0; border: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.article-video__toggle:hover { background: rgba(13, 27, 42, .9); }
.article-video__toggle:focus-visible { outline: 3px solid var(--turquoise, #40CFC4); outline-offset: 2px; }
.theme-shoal .article-video__frame { border-radius: 0; }

/* Affiliate disclosure: shown at the top of the content only when the page carries affiliate links. */
.affiliate-note { margin: 0 0 1.75em; padding: .75rem 1rem; border-left: 3px solid var(--line, #d8dde3); background: var(--surface-2, #f5f7f9); font-family: var(--font-ui, inherit); font-size: .9375rem; line-height: 1.5; color: var(--muted, #5b6672); }
.affiliate-note p { margin: 0; }
