/*
Theme Name: Best Creatine
Theme URI: https://bestcreatine.blog/
Author: Best Creatine Editorial Team
Author URI: https://bestcreatine.blog/about/
Description: A premium classic WordPress theme for an independent creatine science publication and research intelligence platform.
Version: 2.0.1
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bestcreatine-theme
Tags: science, education, accessibility-ready, custom-logo, custom-menu, featured-images, translation-ready, full-width-template, block-styles, wide-blocks
*/

/*
 * Best Creatine design system
 * --------------------------------
 * Native system fonts only. No CDN, tracking, or third-party UI dependency.
 */

:root {
  --bc-ink: #102a2e;
  --bc-ink-2: #183b3f;
  --bc-ink-soft: #43565a;
  --bc-paper: #f4f0e7;
  --bc-paper-deep: #ebe5da;
  --bc-surface: #fffdf8;
  --bc-line: #d7d8d1;
  --bc-line-dark: #b8c0bb;
  --bc-teal: #0b6b63;
  --bc-teal-dark: #074d49;
  --bc-teal-bright: #8ce0cd;
  --bc-mint: #dcece5;
  --bc-mint-pale: #edf6f1;
  --bc-warm: #eadbca;
  --bc-coral: #a94631;
  --bc-coral-pale: #f7e7e1;
  --bc-gold: #c18b20;
  --bc-gold-pale: #f6edcf;
  --bc-white: #ffffff;
  --bc-black: #080d0e;

  --bc-font-serif: "Iowan Old Style", Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;
  --bc-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bc-space-1: 0.25rem;
  --bc-space-2: 0.5rem;
  --bc-space-3: 0.75rem;
  --bc-space-4: 1rem;
  --bc-space-5: 1.5rem;
  --bc-space-6: 2rem;
  --bc-space-7: 3rem;
  --bc-space-8: 4rem;
  --bc-space-9: 6rem;

  --bc-radius-sm: 4px;
  --bc-radius: 10px;
  --bc-radius-lg: 16px;
  --bc-shadow: 0 18px 48px rgba(16, 42, 46, 0.09);
  --bc-shadow-lift: 0 12px 28px rgba(16, 42, 46, 0.12);
  --bc-ring: 0 0 0 3px rgba(193, 139, 32, 0.62);

  --bc-max: 1200px;
  --bc-reading: 72ch;
  --bc-header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bc-header-height) + 1.5rem);
}

body {
  margin: 0;
  color: var(--bc-ink);
  background: var(--bc-paper);
  font-family: var(--bc-font-sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

figure {
  margin-block: 1.5rem;
}

a {
  color: var(--bc-teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bc-teal);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[type="button"],
[type="submit"],
summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--bc-gold);
  outline-offset: 3px;
}

::selection {
  color: var(--bc-white);
  background: var(--bc-teal);
}

.skip-link {
  position: fixed;
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  color: var(--bc-white);
  background: var(--bc-ink);
  border-radius: var(--bc-radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  color: var(--bc-white);
  transform: translateY(0);
}

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  display: flex;
  min-height: 70vh;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.container {
  width: min(calc(100% - 2rem), var(--bc-max));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 860px);
  margin-inline: auto;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography and editorial primitives */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  text-wrap: balance;
}

h1,
h2,
h3 {
  font-family: var(--bc-font-serif);
}

p,
li {
  text-wrap: pretty;
}

.eyebrow,
.kicker,
.article-type,
.card-kicker {
  margin: 0 0 0.65rem;
  color: var(--bc-teal);
  font-family: var(--bc-font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow-light,
.section-dark .eyebrow,
.site-footer .eyebrow {
  color: var(--bc-teal-bright);
}

.deck,
.article-deck,
.hero-lead,
.section-intro {
  color: var(--bc-ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.6;
}

.section {
  padding-block: clamp(3.75rem, 8vw, 7rem);
}

.section-compact {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.section-tinted {
  background: var(--bc-mint);
}

.section-paper {
  background: var(--bc-paper-deep);
}

.section-dark {
  color: var(--bc-white);
  background: var(--bc-ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-heading h2 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.section-heading p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0.85rem 0 0;
  color: var(--bc-ink-soft);
}

.section-dark .section-heading p:not(.eyebrow) {
  color: #c7d9d7;
}

.section-index {
  color: var(--bc-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.4rem;
  color: var(--bc-teal-dark);
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.button,
.wp-block-button__link,
button[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  color: var(--bc-white);
  background: var(--bc-teal);
  border: 2px solid var(--bc-teal);
  border-radius: var(--bc-radius-sm);
  box-shadow: none;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
  color: var(--bc-white);
  background: var(--bc-teal-dark);
  border-color: var(--bc-teal-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--bc-teal-dark);
  background: transparent;
  border-color: var(--bc-teal);
}

.button-secondary:hover {
  color: var(--bc-white);
  background: var(--bc-teal);
}

.button-light {
  color: var(--bc-ink);
  background: var(--bc-white);
  border-color: var(--bc-white);
}

.button-light:hover {
  color: var(--bc-ink);
  background: var(--bc-teal-bright);
  border-color: var(--bc-teal-bright);
}

.button-ghost-light {
  color: var(--bc-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
}

.button-ghost-light:hover {
  color: var(--bc-ink);
  background: var(--bc-white);
  border-color: var(--bc-white);
}

.tag,
.evidence-badge,
.evidence-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  color: var(--bc-teal-dark);
  background: var(--bc-mint);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.topic-chip,
.source-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  color: var(--bc-teal-dark);
  background: var(--bc-mint);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.evidence-badge {
  background: var(--bc-mint-pale);
  border-color: #b9d9cd;
}

.evidence-label {
  color: var(--bc-ink);
  background: var(--bc-gold-pale);
  border-color: #dfc77d;
}

.topic-chip:hover,
.source-chip:hover {
  color: var(--bc-teal-dark);
  background: var(--bc-white);
  border-color: var(--bc-teal);
}

.source-chip {
  color: var(--bc-ink-soft);
  background: transparent;
  border-color: var(--bc-line-dark);
}

/* Header and no-JavaScript navigation */

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--bc-line);
  background: rgba(244, 240, 231, 0.97);
}

.site-header.sticky-header {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 18px rgba(16, 42, 46, 0.06);
}

.utility-bar {
  color: #d8e7e4;
  background: var(--bc-ink);
  font-size: 0.74rem;
  letter-spacing: 0.035em;
}

.utility-bar .container {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-bar strong {
  color: var(--bc-teal-bright);
  font-weight: 750;
}

.site-header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: var(--bc-header-height);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-branding {
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.7rem;
  color: var(--bc-ink);
  font-family: var(--bc-font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-brand:hover {
  color: var(--bc-teal-dark);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--bc-white);
  background: var(--bc-teal);
  border-radius: 50%;
  font-family: var(--bc-font-sans);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 0.42rem;
  height: 0.42rem;
  top: -0.12rem;
  right: 0.08rem;
  background: var(--bc-teal-bright);
  border: 2px solid var(--bc-paper);
  border-radius: 50%;
}

.site-description {
  margin: 0.2rem 0 0;
  color: var(--bc-ink-soft);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.primary-navigation {
  justify-self: center;
}

.primary-navigation ul,
.footer-menu,
.mobile-navigation ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation > ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.primary-navigation li {
  position: relative;
}

.primary-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.68rem;
  color: var(--bc-ink);
  border-bottom: 2px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: var(--bc-teal-dark);
  border-bottom-color: var(--bc-teal);
}

.primary-navigation .sub-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% - 4px);
  left: 0;
  min-width: 13rem;
  padding: 0.45rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-lift);
}

.primary-navigation .sub-menu a {
  width: 100%;
  border-bottom: 0;
  border-radius: var(--bc-radius-sm);
}

.primary-navigation .sub-menu a:hover {
  background: var(--bc-mint-pale);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-navigation {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  color: var(--bc-ink);
  background: transparent;
  border: 1px solid var(--bc-ink);
  border-radius: var(--bc-radius-sm);
  font-size: 0.84rem;
  font-weight: 750;
  list-style: none;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle::marker {
  content: "";
}

.menu-toggle::marker {
  content: "";
}

.menu-toggle-icon {
  position: relative;
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.menu-toggle-icon::before {
  top: -0.32rem;
}

.menu-toggle-icon::after {
  top: 0.32rem;
}

/* Homepage science-lab portal */

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: var(--bc-white);
  background: var(--bc-ink);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 40rem;
  height: 40rem;
  top: -25rem;
  left: -15rem;
  border: 1px solid rgba(140, 224, 205, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 6rem rgba(140, 224, 205, 0.025), 0 0 0 12rem rgba(140, 224, 205, 0.018);
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
  align-items: stretch;
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem) 0;
}

.home-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.1rem, 6.8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.home-hero .eyebrow {
  color: var(--bc-teal-bright);
}

.home-hero .hero-lead {
  max-width: 60ch;
  margin: 1.5rem 0 0;
  color: #d3e4e1;
}

.home-hero .hero-lead strong {
  color: var(--bc-white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-principle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  color: #c9dcd9;
  font-size: 0.82rem;
}

.hero-principle::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--bc-teal-bright);
}

.home-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #0b2529;
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, var(--bc-ink) 0, rgba(16, 42, 46, 0.72) 19%, rgba(16, 42, 46, 0.08) 65%), linear-gradient(0deg, rgba(16, 42, 46, 0.6), transparent 55%);
}

.home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-evidence-panel {
  position: relative;
  z-index: 3;
  max-width: 32rem;
  margin: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--bc-ink);
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow);
}

.hero-evidence-panel h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.hero-evidence-panel .eyebrow {
  color: var(--bc-teal-dark);
}

.hero-evidence-panel ul {
  padding-left: 1.2rem;
}

.hero-figure-caption {
  position: absolute;
  z-index: 3;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: 25rem;
  padding: 0.8rem 1rem;
  color: #dce9e7;
  background: rgba(8, 13, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--bc-radius);
  font-size: 0.72rem;
  line-height: 1.5;
}

.lab-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.lab-note:first-of-type {
  border-top: 0;
}

.lab-note-index {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--bc-ink);
  background: var(--bc-teal-bright);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 850;
}

.lab-note strong {
  display: block;
  color: var(--bc-white);
  font-size: 0.87rem;
}

.lab-note span {
  color: #b9cecb;
  font-size: 0.78rem;
  line-height: 1.5;
}

.research-highlights {
  background: var(--bc-surface);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card-grid-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card,
.research-card,
.article-card,
.topic-portal,
.tool-card,
.evidence-standard {
  overflow: hidden;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-lg);
  box-shadow: 0 6px 20px rgba(16, 42, 46, 0.04);
}

.card,
.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.card h2,
.card h3,
.article-card h2,
.article-card h3 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.card h2 a,
.card h3 a,
.article-card h2 a,
.article-card h3 a,
.research-body h3 a,
.topic-portal h3 a,
.tool-card h3 a,
.story-list h3 a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--bc-ink);
  text-decoration: none;
}

.card h2 a:hover,
.card h3 a:hover,
.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--bc-teal);
}

.card p,
.article-card p {
  margin: 0 0 1rem;
  color: var(--bc-ink-soft);
}

.card-meta,
.entry-meta {
  color: var(--bc-ink-soft);
  font-size: 0.78rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--bc-line);
}

.card-image-link {
  display: block;
  overflow: hidden;
  margin: calc(clamp(1.25rem, 2.5vw, 1.75rem) * -1) calc(clamp(1.25rem, 2.5vw, 1.75rem) * -1) 1.25rem;
  background: var(--bc-mint);
}

.card-image-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms ease;
}

.card:hover .card-image-link img {
  transform: scale(1.02);
}

.card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.research-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.research-card-visual {
  position: relative;
  overflow: hidden;
  min-height: 8.5rem;
  padding: 1.25rem;
  color: var(--bc-white);
  background: var(--bc-ink);
}

.research-card-visual::before {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  top: -6rem;
  right: -3rem;
  border: 1px solid rgba(140, 224, 205, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 2.2rem rgba(140, 224, 205, 0.04), 0 0 0 4.4rem rgba(140, 224, 205, 0.025);
}

.research-type {
  position: relative;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-year {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  color: var(--bc-teal-bright);
  font-family: var(--bc-font-serif);
  font-size: 1.35rem;
}

.research-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.research-body h3 {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.research-body h3 a {
  color: var(--bc-ink);
  text-decoration: none;
}

.research-findings {
  margin: 0 0 1rem;
  color: var(--bc-ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.research-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  margin: 0 0 1rem;
  border-block: 1px solid var(--bc-line);
}

.research-data div {
  min-width: 0;
}

.research-data dt {
  color: var(--bc-ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.research-data dd {
  overflow-wrap: anywhere;
  margin: 0.18rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.topic-portals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.topic-portal {
  position: relative;
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  padding: 1.4rem;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.topic-portal::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 8rem;
  height: 8rem;
  top: -4rem;
  right: -3.5rem;
  border: 1px solid var(--bc-portal-line, #b9d9cd);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem var(--bc-portal-wash, rgba(11, 107, 99, 0.04));
}

.topic-portal:hover {
  border-color: var(--bc-portal-accent, var(--bc-teal));
  box-shadow: var(--bc-shadow-lift);
  transform: translateY(-3px);
}

.topic-portal-index {
  color: var(--bc-portal-accent, var(--bc-teal));
  font-family: var(--bc-font-serif);
  font-size: 0.88rem;
  font-weight: 700;
}

.topic-portal h3 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.topic-portal p {
  margin: 0 0 1.2rem;
  color: var(--bc-ink-soft);
  font-size: 0.88rem;
}

.topic-portal-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--bc-line);
}

.topic-portal .topic-chip {
  margin: 0.15rem 0.25rem 0.15rem 0;
}

.topic-portal:nth-child(4n + 1) {
  --bc-portal-accent: #0b6b63;
  --bc-portal-wash: rgba(11, 107, 99, 0.07);
  --bc-portal-line: #a9d4c8;
}

.topic-portal:nth-child(4n + 2) {
  --bc-portal-accent: #a94631;
  --bc-portal-wash: rgba(169, 70, 49, 0.06);
  --bc-portal-line: #e0b7aa;
}

.topic-portal:nth-child(4n + 3) {
  --bc-portal-accent: #355f7a;
  --bc-portal-wash: rgba(53, 95, 122, 0.06);
  --bc-portal-line: #afc4d2;
}

.topic-portal:nth-child(4n + 4) {
  --bc-portal-accent: #7b5b18;
  --bc-portal-wash: rgba(193, 139, 32, 0.08);
  --bc-portal-line: #dfc77d;
}

.topic-portal:nth-child(1) {
  --bc-portal-accent: #0b6b63;
  --bc-portal-wash: rgba(11, 107, 99, 0.08);
  --bc-portal-line: #8fcbbb;
}

.topic-portal:nth-child(2) {
  --bc-portal-accent: #355f7a;
  --bc-portal-wash: rgba(53, 95, 122, 0.07);
  --bc-portal-line: #a9c1d2;
}

.topic-portal:nth-child(3) {
  --bc-portal-accent: #6e4f82;
  --bc-portal-wash: rgba(110, 79, 130, 0.07);
  --bc-portal-line: #c6b4d1;
}

.topic-portal:nth-child(4) {
  --bc-portal-accent: #a94631;
  --bc-portal-wash: rgba(169, 70, 49, 0.07);
  --bc-portal-line: #dfb3a5;
}

.topic-portal:nth-child(5) {
  --bc-portal-accent: #8a4b70;
  --bc-portal-wash: rgba(138, 75, 112, 0.07);
  --bc-portal-line: #d9b9ca;
}

.topic-portal:nth-child(6) {
  --bc-portal-accent: #7b5b18;
  --bc-portal-wash: rgba(193, 139, 32, 0.09);
  --bc-portal-line: #dfc77d;
}

.topic-portal:nth-child(7) {
  --bc-portal-accent: #276c78;
  --bc-portal-wash: rgba(39, 108, 120, 0.07);
  --bc-portal-line: #a6cbd0;
}

.topic-portal:nth-child(8) {
  --bc-portal-accent: #4b6652;
  --bc-portal-wash: rgba(75, 102, 82, 0.07);
  --bc-portal-line: #bac9be;
}

.explained-grid .article-card {
  min-height: 22rem;
}

.article-card-number {
  color: var(--bc-teal);
  font-family: var(--bc-font-serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.lab-section {
  position: relative;
  overflow: hidden;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.tool-card {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  padding: 1.25rem;
}

.tool-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: var(--bc-teal-dark);
  background: var(--bc-mint);
  border: 1px solid #b8d8cd;
  border-radius: 50%;
  font-family: var(--bc-font-serif);
  font-weight: 800;
}

.tool-card h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1.3rem;
  line-height: 1.18;
}

.tool-card p {
  margin: 0 0 1rem;
  color: var(--bc-ink-soft);
  font-size: 0.87rem;
}

.tool-card .text-link {
  margin-top: auto;
}

.latest-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.latest-panel {
  min-width: 0;
}

.latest-panel + .latest-panel {
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid var(--bc-line);
}

.story-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--bc-line);
}

.story-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.story-list h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.25rem;
  line-height: 1.22;
}

.story-list h3 a {
  color: var(--bc-ink);
  text-decoration: none;
}

.story-list h3 a:hover {
  color: var(--bc-teal);
}

.story-list p {
  margin: 0;
  color: var(--bc-ink-soft);
  font-size: 0.88rem;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.evidence-standard {
  padding: 1.4rem;
  background: rgba(255, 253, 248, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.evidence-standard .standard-number {
  color: var(--bc-teal-bright);
  font-family: var(--bc-font-serif);
  font-size: 0.9rem;
}

.evidence-standard h3 {
  margin: 1rem 0 0.6rem;
  color: var(--bc-white);
  font-size: 1.3rem;
}

.evidence-standard p {
  margin: 0;
  color: #bfd3d0;
  font-size: 0.86rem;
}

.evidence-map {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.evidence-map h3 {
  margin: 0;
  font-family: var(--bc-font-serif);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.chart-panel {
  position: relative;
  padding: 1.5rem;
  color: var(--bc-ink);
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow);
}

.chart-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--bc-line);
}

.chart-panel-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.chart-panel-header p {
  margin: 0;
  color: var(--bc-ink-soft);
  font-size: 0.75rem;
}

.evidence-ladder {
  display: grid;
  gap: 0.55rem;
}

.evidence-ladder-item {
  display: grid;
  grid-template-columns: minmax(7rem, 0.38fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  color: var(--bc-ink);
  background: var(--bc-mint-pale);
  border-left: 4px solid var(--bc-teal);
  border-radius: var(--bc-radius-sm);
  font-size: 0.82rem;
}

.evidence-ladder-item:nth-child(2) {
  background: var(--bc-gold-pale);
  border-left-color: var(--bc-gold);
}

.evidence-ladder-item:nth-child(3) {
  background: var(--bc-paper);
  border-left-color: var(--bc-ink-soft);
}

.evidence-ladder-item:nth-child(4) {
  background: var(--bc-coral-pale);
  border-left-color: var(--bc-coral);
}

.evidence-ladder-item strong {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.evidence-ladder-item span {
  color: var(--bc-ink-soft);
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.7rem, 4vw, 3.2rem);
  background: var(--bc-ink);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow);
}

.newsletter h2 {
  margin: 0;
  color: var(--bc-white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.newsletter p {
  margin: 0;
  color: #c7d9d7;
}

.newsletter .provider-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--bc-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.newsletter .provider-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: currentColor;
  border-radius: 50%;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
}

.newsletter-form label {
  width: 100%;
  font-weight: 700;
}

.newsletter-form label span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bc-white);
  font-size: 0.78rem;
}

.newsletter-form input,
.search-field,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  color: var(--bc-ink);
  background: var(--bc-white);
  border: 1px solid var(--bc-line-dark);
  border-radius: var(--bc-radius-sm);
}

.newsletter-form input:focus,
.search-field:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--bc-teal);
  box-shadow: var(--bc-ring);
  outline: 0;
}

.form-message {
  padding: 0.8rem;
  margin-top: 0.8rem;
  color: var(--bc-ink);
  background: var(--bc-mint);
  border-radius: var(--bc-radius-sm);
  font-size: 0.82rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.about-grid h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.about-grid p {
  color: var(--bc-ink-soft);
}

.principle-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.principle-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
}

.principle-list li::before {
  content: "✓";
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: var(--bc-white);
  background: var(--bc-teal);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 850;
}

/* Archive, taxonomy, author and 404 publication hierarchy */

.breadcrumbs {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--bc-line);
  font-size: 0.78rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #7b8c8d;
}

.breadcrumbs a {
  text-decoration: none;
}

.page-header {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.75rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bc-surface);
  border-bottom: 1px solid var(--bc-line);
}

.page-header::after {
  content: "";
  position: absolute;
  width: 25rem;
  height: 25rem;
  top: -18rem;
  right: -8rem;
  border: 1px solid #b8d8cd;
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(11, 107, 99, 0.025);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.page-header .archive-description {
  max-width: 74ch;
  margin: 1.2rem 0 0;
  color: var(--bc-ink-soft);
  font-size: 1.08rem;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 7rem);
}

.content-list > .card,
.content-list > .research-card,
.content-list > .article-card {
  margin-bottom: 1rem;
}

.content-list > .card:last-child,
.content-list > .research-card:last-child,
.content-list > .article-card:last-child {
  margin-bottom: 0;
}

.widget {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
}

.widget-title {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.widget ul {
  padding-left: 1.1rem;
}

.widget li {
  margin-block: 0.45rem;
}

.widget a {
  text-decoration: none;
}

.taxonomy-grid,
.author-grid,
.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.tool-archive-item {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-lg);
}

.author-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.author-hero h1 {
  margin-bottom: 0;
}

.author-card {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  background: var(--bc-mint);
  border-radius: 50%;
}

.author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 0.8rem;
}

.author-meta span {
  color: var(--bc-ink-soft);
  font-size: 0.8rem;
}

.error-page {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--bc-ink);
  color: var(--bc-white);
}

.error-page .container {
  position: relative;
  z-index: 1;
}

.error-code {
  margin: 0;
  color: var(--bc-teal-bright);
  font-family: var(--bc-font-serif);
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 0.8;
}

.error-page h1 {
  max-width: 16ch;
  margin: 1.5rem 0 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.error-page p {
  max-width: 60ch;
  color: #c8dcda;
}

.search-form {
  max-width: 44rem;
  margin-top: 1.5rem;
}

.search-form > label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.search-form .newsletter-form {
  align-items: stretch;
}

.search-form .newsletter-form label {
  flex: 1 1 auto;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.popular-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Single articles and research */

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 7rem);
}

.article-header {
  max-width: 900px;
  margin-bottom: 2rem;
}

.article-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.048em;
}

.article-deck {
  max-width: 70ch;
  margin: 1.3rem 0;
}

.article-header > figure {
  overflow: hidden;
  margin: 2rem 0 0;
  background: var(--bc-mint);
  border-radius: var(--bc-radius-lg);
}

.article-header > figure img {
  width: 100%;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  margin-top: 1.3rem;
  border-block: 1px solid var(--bc-line);
  color: var(--bc-ink-soft);
  font-size: 0.82rem;
}

.article-byline strong {
  color: var(--bc-ink);
}

.evidence-ledger {
  margin: 0 0 2rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-top: 4px solid var(--bc-teal);
  border-radius: var(--bc-radius);
  box-shadow: 0 7px 24px rgba(16, 42, 46, 0.05);
}

.evidence-ledger-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bc-line);
}

.evidence-ledger-header h2 {
  margin: 0;
  font-family: var(--bc-font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.evidence-ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
}

.evidence-ledger-item dt {
  color: var(--bc-ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.evidence-ledger-item dd {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.evidence-ledger-item dd p {
  margin: 0;
}

.evidence-limitations {
  padding: 1.1rem 1.25rem;
  background: var(--bc-coral-pale);
  border-top: 1px solid #e8c8bd;
}

.evidence-limitations h3 {
  margin: 0 0 0.35rem;
  color: #743323;
  font-family: var(--bc-font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-limitations p {
  margin: 0;
  color: #66382d;
  font-size: 0.87rem;
}

.entry-content {
  max-width: var(--bc-reading);
}

.entry-content > * {
  margin-block: 1.35rem;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.25em;
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.entry-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
}

.entry-content h3 {
  font-size: 1.5rem;
}

.entry-content a {
  font-weight: 650;
}

.entry-content img,
.entry-content figure {
  border-radius: var(--bc-radius);
}

.entry-content blockquote {
  padding: 1.2rem 1.5rem;
  margin-left: 0;
  color: var(--bc-ink-soft);
  background: var(--bc-mint);
  border-left: 4px solid var(--bc-teal);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35rem;
}

.entry-content li + li {
  margin-top: 0.45rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--bc-line);
}

.entry-content th {
  background: var(--bc-mint);
}

.entry-footer {
  max-width: var(--bc-reading);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--bc-line);
}

.author-box {
  padding: 1.35rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
}

.author-box h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.author-box .avatar {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 50%;
}

.author-box p {
  color: var(--bc-ink-soft);
  font-size: 0.86rem;
}

.author-credential {
  color: var(--bc-ink);
  font-weight: 700;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation a {
  display: block;
  min-height: 44px;
  padding: 1rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  text-decoration: none;
}

.post-navigation span {
  display: block;
  color: var(--bc-ink-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.related-articles {
  background: var(--bc-paper-deep);
}

/* Research components, citations, data tables and FAQ */

.component {
  max-width: var(--bc-reading);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-block: 2rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-lg);
}

.component-title {
  margin: 0 0 1rem;
  font-size: 1.55rem;
}

.component .research-data {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.study-summary {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--bc-mint-pale);
  border-left: 4px solid var(--bc-teal);
  border-radius: var(--bc-radius-sm);
}

.study-summary h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.study-summary p {
  margin: 0;
  color: var(--bc-ink-soft);
}

.citation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  margin-block: 0.7rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
}

.citation-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--bc-white);
  background: var(--bc-teal);
  border-radius: 50%;
  font-weight: 800;
}

.citation p {
  margin: 0;
}

.citation-title {
  font-weight: 700;
}

.citation + .citation {
  margin-top: 0.7rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--bc-radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table caption {
  padding: 0 0 0.7rem;
  color: var(--bc-ink-soft);
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.8rem;
  border: 1px solid var(--bc-line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  color: var(--bc-white);
  background: var(--bc-ink);
}

.data-table tbody tr:nth-child(even) {
  background: var(--bc-paper);
}

.faq-item {
  border-bottom: 1px solid var(--bc-line);
}

.faq-item summary,
.question-item summary {
  min-height: 44px;
  padding: 1rem 2rem 1rem 0;
  font-weight: 750;
}

.faq-item > div,
.question-item .answer {
  padding: 0 0 1rem;
  color: var(--bc-ink-soft);
}

.comments-area {
  max-width: var(--bc-reading);
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--bc-line);
}

.comment-list {
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.comment-list .children {
  padding-left: clamp(1rem, 4vw, 2.5rem);
  list-style: none;
}

.comment-body {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--bc-line);
}

.comment-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.comment-author img {
  border-radius: 50%;
}

.comment-form label {
  display: block;
  font-weight: 700;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
}

.form-submit .submit {
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  color: var(--bc-white);
  background: var(--bc-teal);
  border: 2px solid var(--bc-teal);
  border-radius: var(--bc-radius-sm);
  font-weight: 750;
}

/* Pagination and footer */

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--bc-line);
}

.pagination .page-numbers,
.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-sm);
}

.pagination .current,
.pagination .page-numbers.current {
  color: var(--bc-white);
  background: var(--bc-teal);
  border-color: var(--bc-teal);
}

.site-footer {
  padding: clamp(3.5rem, 7vw, 6rem) 0 1.5rem;
  color: #c7d9d7;
  background: #091c20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-grid .site-brand {
  color: var(--bc-white);
}

.footer-grid .site-brand:hover {
  color: var(--bc-teal-bright);
}

.footer-brand > p {
  max-width: 38ch;
  margin: 1rem 0 0;
  color: #b9cfcc;
  font-size: 0.88rem;
}

.footer-tagline {
  color: var(--bc-teal-bright) !important;
  font-family: var(--bc-font-serif);
  font-size: 1.1rem !important;
}

.site-footer h2 {
  margin: 0 0 0.9rem;
  color: var(--bc-white);
  font-family: var(--bc-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li {
  margin-block: 0.45rem;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #d8e7e4;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--bc-white);
  text-decoration: underline;
}

.footer-principle {
  padding: 1rem;
  margin-top: 1.25rem;
  background: rgba(140, 224, 205, 0.06);
  border: 1px solid rgba(140, 224, 205, 0.18);
  border-radius: var(--bc-radius);
}

.footer-principle strong {
  display: block;
  color: var(--bc-white);
}

.footer-principle span {
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.76rem;
}

.editor-note {
  padding: 1rem 1.2rem;
  margin-block: 1.5rem;
  background: var(--bc-gold-pale);
  border-left: 4px solid var(--bc-gold);
}

/* Responsive layout */

@media (max-width: 1080px) {
  .primary-navigation a {
    padding-inline: 0.5rem;
    font-size: 0.8rem;
  }

  .site-description {
    display: none;
  }

  .topic-portals,
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header-main {
    grid-template-columns: 1fr auto;
  }

  .primary-navigation,
  .header-actions {
    display: none;
  }

  .mobile-navigation {
    display: block;
    justify-self: end;
  }

  .mobile-navigation > summary {
    list-style: none;
  }

  .mobile-navigation > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-navigation[open] > summary {
    color: var(--bc-teal-dark);
    border-color: var(--bc-teal);
  }

  .mobile-navigation-panel {
    position: absolute;
    z-index: 30;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.65rem 1rem 1rem;
    background: var(--bc-surface);
    border-bottom: 1px solid var(--bc-line);
    box-shadow: var(--bc-shadow-lift);
  }

  .mobile-navigation ul {
    display: grid;
    gap: 0.15rem;
  }

  .mobile-navigation a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0.6rem 0.75rem;
    color: var(--bc-ink);
    border-bottom: 1px solid var(--bc-line);
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-navigation a:hover {
    color: var(--bc-teal-dark);
    background: var(--bc-mint-pale);
  }

  .mobile-navigation .sub-menu {
    padding-left: 0.8rem;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    padding-right: 0;
  }

  .home-hero-visual {
    min-height: 420px;
  }

  .home-hero-visual::before {
    background: linear-gradient(0deg, var(--bc-ink) 0, rgba(16, 42, 46, 0.12) 60%);
  }

  .card-grid,
  .taxonomy-grid,
  .author-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-layout,
  .single-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .widget {
    margin-bottom: 0;
  }

  .latest-split,
  .newsletter,
  .evidence-map,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .latest-panel + .latest-panel {
    padding-top: 2rem;
    padding-left: 0;
    border-top: 1px solid var(--bc-line);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .utility-bar .container span:last-child {
    display: none;
  }

  .site-header-main {
    min-height: 68px;
  }

  .site-brand {
    font-size: 1.25rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-heading .text-link {
    justify-self: start;
  }

  .card-grid,
  .card-grid-wide,
  .taxonomy-grid,
  .author-grid,
  .search-grid,
  .topic-portals,
  .standards-grid,
  .lab-grid,
  .evidence-ledger-grid {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .home-hero-visual {
    min-height: 330px;
  }

  .hero-figure-caption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .author-hero {
    grid-template-columns: 1fr;
  }

  .post-navigation,
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .container,
  .narrow {
    width: min(calc(100% - 1.25rem), var(--bc-max));
  }

  .card,
  .article-card,
  .topic-portal,
  .tool-card {
    border-radius: var(--bc-radius);
  }

  .research-data,
  .component .research-data {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .newsletter,
  .post-navigation,
  .breadcrumbs,
  .sidebar,
  .related-articles,
  .home-hero-visual,
  .button,
  .text-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }

  .single-layout,
  .archive-layout {
    display: block;
  }

  .entry-content {
    max-width: none;
  }

  .component,
  .evidence-ledger {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Phase 4 — verified topic imagery */
.topic-portal-image { margin: 0 0 0.35rem; }
.topic-portal-image img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 10px; background: var(--bc-surface, #f4f6f5); }
.topic-portal { min-height: 20rem; }
@media (max-width: 760px) {
  .topic-portal-image img { height: 130px; }
}

.topic-image-credit,
.wp-caption .image-credit,
figure > figcaption.image-credit {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--bc-muted, #64706c);
}
