/* Mozalina – modernised port of the TWS Affiliate Modern theme */

@font-face {
  font-family: "Hubot Sans";
  src: url("/fonts/hubot-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hubot Sans";
  src: url("/fonts/hubot-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --aqua: #28d8e0;
  --aqua-soft: #ccf6f7;
  --aqua-tint: #effcfc;
  --teal: #0b7c85;
  --teal-dark: #075d64;
  --ink: #0d2328;
  --ink-2: #3a5157;
  --muted: #5c7176;
  --line: #dcebec;
  --surface: #ffffff;
  --bg: #f5fafa;
  --night: #062026;
  --good: #11875d;
  --bad: #c2414b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(13 35 40 / 0.05), 0 8px 24px -12px rgb(13 35 40 / 0.18);
  --shadow-lg: 0 2px 4px rgb(13 35 40 / 0.04), 0 24px 48px -20px rgb(11 124 133 / 0.35);
  --container: 1180px;
  --read: 760px;
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Hubot Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size-adjust: from-font;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-stretch: 108%;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 680; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, translate 0.2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, #0e939c 100%);
  box-shadow: 0 8px 20px -10px rgb(11 124 133 / 0.8);
}
.btn-primary:hover { color: #fff; background: var(--teal-dark); translate: 0 -1px; }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { color: var(--teal-dark); border-color: var(--teal); }

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.86);
  border-bottom: 1px solid rgb(13 35 40 / 0.07);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgb(255 255 255 / 0.72); backdrop-filter: blur(14px) saturate(170%); }
}
.header-inner {
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-logo { display: block; }
.site-logo img { height: 40px; width: auto; }

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.95rem; cursor: pointer;
}
.menu-button:hover { border-color: var(--teal); }

.site-menu {
  list-style: none; margin: 0; padding: 0.5rem;
  position: fixed; inset: auto;
  inset-block-start: calc(var(--header-h) + 0.25rem);
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(86dvw, 22rem);
  max-block-size: calc(100dvh - 6rem);
  margin-block-start: 0.5rem;
  overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
@supports not selector(:popover-open) {
  .site-menu[popover]:not(.\:popover-open) { display: none; }
}
.site-menu a {
  display: block; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 550;
}
.site-menu a:hover { background: var(--aqua-tint); color: var(--teal-dark); }
.site-menu a[aria-current="page"] { color: var(--teal-dark); background: var(--aqua-tint); box-shadow: inset 3px 0 0 var(--teal); }
.menu-search { padding: 0.4rem; }

.header-search { position: relative; display: flex; align-items: center; }
.header-search input {
  inline-size: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.55rem 2.6rem 0.55rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
}
.header-search input:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; background: #fff; }
.header-search button {
  position: absolute; inset-inline-end: 0.3rem; inline-size: 2.1rem; block-size: 2.1rem;
  display: grid; place-items: center; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.header-search button:hover { color: var(--teal); background: var(--aqua-tint); }

.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: 0.15rem;
  inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none;
  overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.97rem; }
.site-header.is-wide .site-menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 999px 999px 4px 4px; }
.site-header.is-wide .menu-search { padding: 0 0 0 0.6rem; }
.site-header.is-wide .header-search input { inline-size: 12.5rem; }
.site-header.is-measuring * { transition: none !important; }

/* ---------- Breadcrumb ---------- */

.breadcrumb { margin: 1.4rem 0 0; font-size: 0.88rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-inline-start: 0.35rem; color: #9fb3b6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Home ---------- */

.hero { position: relative; overflow: clip; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  background:
    radial-gradient(40rem 26rem at 8% -10%, rgb(40 216 224 / 0.28), transparent 70%),
    radial-gradient(34rem 24rem at 100% 110%, rgb(103 232 249 / 0.22), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-inner { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.35fr 1fr; } }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.1rem; padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  font-size: 0.86rem; font-weight: 600; color: var(--teal-dark);
  background: rgb(255 255 255 / 0.8); border: 1px solid var(--aqua-soft); border-radius: 999px;
}
.kicker::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgb(40 216 224 / 0.2); }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem); font-stretch: 112%; margin-bottom: 0.4em; }
.hero-text { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }

.hero-card {
  position: relative; padding: 1.8rem;
  background: rgb(255 255 255 / 0.85); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgb(40 216 224 / 0.5), transparent 40%) border-box;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  border: 1px solid transparent;
}
.hero-card-label { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.hero-card-title { margin: 0 0 1.1rem; font-size: 1.5rem; font-weight: 720; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.2; }
.hero-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0.85rem; }
.hero-steps li { counter-increment: step; display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.8rem; align-items: center; line-height: 1.45; color: var(--ink-2); }
.hero-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  font-weight: 700; font-size: 0.9rem; color: var(--teal-dark); background: var(--aqua-soft);
}

.section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-header { margin-bottom: 1.6rem; }
.section-header h2 { margin-bottom: 0.25rem; }
.section-header p { margin: 0; color: var(--muted); }

.category-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.category-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
  padding: 1.2rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: translate 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.category-card:hover { translate: 0 -2px; box-shadow: var(--shadow-lg); border-color: #bfe6e8; }
.category-icon {
  grid-row: span 2; width: 3.5rem; height: 3.5rem; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 750; color: var(--teal-dark);
  background: linear-gradient(135deg, var(--aqua-soft), #e2fbfb);
}
.category-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-title { margin: 0; font-size: 1.1rem; }
.category-title a { color: var(--ink); text-decoration: none; }
.category-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.category-count { margin: 0; font-size: 0.88rem; color: var(--muted); }
.category-link { display: none; }

.home-text { max-width: var(--read); }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: translate 0.2s, box-shadow 0.2s;
}
.card:hover { translate: 0 -3px; box-shadow: var(--shadow-lg); }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--aqua-tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.4s; }
.card:hover .card-media img { scale: 1.03; }
.card-media-fallback { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 750; color: var(--aqua); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.3rem 1.3rem; }
.card-kicker { margin: 0 0 0.35rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.card-title { font-size: 1.18rem; margin: 0 0 0.45rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--teal-dark); }
.card-excerpt { color: var(--ink-2); font-size: 0.97rem; line-height: 1.6; margin-bottom: 0.9rem; }
.card-meta { margin: auto 0 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Page header / prose ---------- */

.page-header { padding: clamp(1.4rem, 3vw, 2.4rem) 0 1.4rem; max-width: var(--read); }
.page-header h1 { margin-bottom: 0.35em; }
.page-lead { font-size: 1.18rem; color: var(--ink-2); margin: 0; }
.info-page { padding-bottom: 3rem; }
.info-page .prose { margin-top: 1.2rem; }
.empty { color: var(--muted); padding: 2rem 0; }
.category-text { margin-top: 3rem; }

.prose { max-width: var(--read); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.45em; padding-inline-start: 0.2rem; }
.prose ul li::marker { color: var(--teal); }
.prose ol li::marker { color: var(--teal); font-weight: 700; }
.prose .lead { font-size: 1.2rem; color: var(--ink-2); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); }
figcaption { margin-top: 0.6rem; font-size: 0.86rem; color: var(--muted); }
blockquote {
  margin: 2rem 0; padding: 1.2rem 1.5rem; border-inline-start: 4px solid var(--aqua);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.1rem;
}
blockquote p { margin: 0; }
blockquote footer { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.note {
  margin: 1.8rem 0; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--aqua-tint); border: 1px solid var(--aqua-soft);
}
.note p { margin: 0; }
.note-title { font-weight: 700; margin-bottom: 0.25rem !important; }

.table-wrap { margin: 1.8rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: start; padding: 0.8rem 1rem 0; font-weight: 650; }
th, td { padding: 0.75rem 1rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--aqua-tint); font-weight: 650; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }

/* ---------- Article / centred reading column ---------- */

.article { padding-bottom: 3rem; }
.article > .breadcrumb, .article-header, .article-body, .article > .author-box,
.narrow > .breadcrumb, .narrow .page-header, .narrow .prose { margin-inline: auto; max-width: var(--read); }
.article-header { padding: 1.6rem 0 1.4rem; }
.badge { margin: 0 0 0.9rem; }
.badge a {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 650; text-decoration: none;
  color: var(--teal-dark); background: var(--aqua-soft);
}
.badge a:hover { background: #b5f0f2; }
.article-subtitle { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; font-size: 0.9rem; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.article-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); }
.disclosure { margin: 1.1rem 0 0; padding: 0.7rem 1rem; font-size: 0.86rem; line-height: 1.5; color: var(--ink-2); background: var(--surface); border: 1px dashed #c4dfe1; border-radius: var(--radius-sm); }
.article-hero { margin: 0 auto 2.2rem; max-width: 960px; }
.article-hero img { border-radius: var(--radius); width: 100%; }

/* Affiliate product box */
.product-box {
  display: grid; gap: 1.4rem; margin: 2.2rem 0; padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
@media (min-width: 760px) {
  .product-box { padding: 1.6rem; }
  .product-box.has-media { grid-template-columns: 220px 1fr; }
}
.product-media { align-self: start; width: 100%; max-width: 240px; border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 0.6rem; }
.product-badge {
  display: inline-block; margin: 0 0 0.6rem; padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--teal-dark); background: var(--aqua-soft);
}
.prose .product-title { margin: 0 0 0.4rem; font-size: 1.35rem; }
.product-description { color: var(--ink-2); margin-bottom: 1rem; }
.product-grid { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
@media (min-width: 560px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-list-title { margin: 0 0 0.4rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.prose .product-list { list-style: none; padding: 0; margin: 0; }
.prose .product-list li { position: relative; padding-inline-start: 1.6rem; margin-bottom: 0.4em; font-size: 0.97rem; line-height: 1.5; }
.product-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.2em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 0.7rem;
}
.product-list.pros li::before { background-color: #dcf5ea; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%2311875d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.product-list.cons li::before { background-color: #fbe4e6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%23c2414b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.product-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.product-actions .btn { text-decoration: none; }

/* FAQ (native details) */
.faq { margin: 2.6rem 0; }
.faq-subtitle { color: var(--muted); }
.faq details {
  margin-bottom: 0.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: #b9e5e8; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.15rem; font-weight: 650; line-height: 1.4; cursor: pointer; border-radius: inherit;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; inline-size: 1.4rem; block-size: 1.4rem; flex-shrink: 0; border-radius: 50%;
  background: var(--aqua-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23075d64' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 0.95rem;
  rotate: -90deg;
}
.faq details[open] > summary::before { rotate: 0deg; }
.faq summary:hover { color: var(--teal-dark); }
.faq-answer { padding: 0 1.15rem 1rem 3.25rem; color: var(--ink-2); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: rotate 0.2s; }
  .faq details::details-content {
    transition: block-size, content-visibility;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* Author box */
.author-box {
  max-width: var(--read); display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  margin-top: 3rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.author-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.author-avatar-fallback { display: grid; place-items: center; font-size: 2rem; font-weight: 750; color: var(--teal-dark); background: var(--aqua-soft); }
.author-kicker { margin: 0 0 0.15rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.author-name { margin: 0 0 0.4rem; font-size: 1.3rem; }
.author-name a { color: var(--ink); text-decoration: none; }
.author-bio { color: var(--ink-2); margin-bottom: 0.8rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { padding: 0.25rem 0.7rem; font-size: 0.82rem; border-radius: 999px; background: var(--aqua-tint); border: 1px solid var(--aqua-soft); color: var(--teal-dark); }

/* ---------- Search / 404 ---------- */

.search-form { display: flex; gap: 0.6rem; max-width: 36rem; margin-bottom: 2rem; }
.search-form input {
  flex: 1; min-width: 0; font: inherit; padding: 0.75rem 1.1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.search-results { max-width: var(--read); padding-bottom: 3rem; }
.search-results ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.search-results li { padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.search-results h2 { font-size: 1.12rem; margin: 0 0 0.25rem; }
.search-results h2 a { color: var(--ink); text-decoration: none; }
.search-results h2 a:hover { color: var(--teal-dark); text-decoration: underline; }
.search-results p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.search-results .result-cat { font-size: 0.8rem; font-weight: 650; color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }

.not-found { max-width: 36rem; padding: 4rem 0; }
.not-found-code { margin: 0; font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; font-stretch: 120%; line-height: 1; color: transparent; background: linear-gradient(135deg, var(--aqua), var(--teal)); background-clip: text; -webkit-background-clip: text; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 3rem; color: #c3d6d9; background: var(--night); }
.site-footer a { color: #e9f6f7; text-decoration: none; }
.site-footer a:hover { color: var(--aqua); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--aqua); }
.footer-inner {
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  display: grid; gap: 2rem; padding: 3.2rem 0 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
@media (min-width: 960px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand-title { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 750; font-stretch: 112%; color: #fff; letter-spacing: -0.02em; }
.footer-brand-title::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: 0.5rem; border-radius: 3px; background: var(--aqua); }
.footer-brand-text { max-width: 26em; }
.footer-affiliate { font-size: 0.86rem; color: #8fa9ad; max-width: 30em; }
.footer-title { margin: 0 0 0.8rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-contact dl { margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.footer-contact dt { font-size: 0.82rem; color: #8fa9ad; }
.footer-contact dd { margin: 0; color: #e9f6f7; }
.footer-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; border: 1px solid rgb(40 216 224 / 0.5);
}
.footer-chip:hover { background: rgb(40 216 224 / 0.12); text-decoration: none !important; }
.footer-bottom {
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 1.2rem 0 1.6rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.85rem; color: #8fa9ad;
}
.footer-bottom p { margin: 0; }

@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { text-decoration: underline; }
  .btn { border: 1px solid; }
}
