/* ==========================================================================
   AELMIORA — shared styles
   All design values come from css/theme.css (loaded first). Edit the theme,
   not this file, to change colours, fonts, sizes or spacing.
   Grouping is done with whitespace and hairlines, not cards and shadows.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); scroll-padding-bottom: var(--s6); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
  margin: 0 0 var(--s4);
}
h1 { font-size: var(--fs-h1); color: var(--color-primary); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
li + li { margin-top: var(--s1); }
strong { font-weight: var(--weight-strong); }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--ease), text-decoration-color var(--ease); }
a:hover { color: var(--color-primary-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--s2) var(--s4);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s3); color: var(--color-on-primary); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s4);
}
@media (min-width: 768px) { .container { padding-inline: var(--s6); } }

.measure { max-width: var(--measure); }
.muted { color: var(--color-muted); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--color-muted); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: var(--rule-thin) solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--s4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  color: var(--color-primary);
  padding-block: var(--s2);
}
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s3);
  border: var(--rule-thin) solid var(--color-border);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-bg);
  border-bottom: var(--rule-thin) solid var(--color-border);
  display: none;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: var(--s2) var(--s4) var(--s4); }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block;
  padding: var(--s3) 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: var(--rule-thin) solid var(--color-border);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }
.site-nav a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 3px; height: 1em;
  background: var(--color-accent);
  margin-right: var(--s3);
  vertical-align: -0.12em;
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    max-height: none;
    overflow: visible;
  }
  .site-nav ul { display: flex; gap: var(--s5); padding: 0; }
  .site-nav a {
    border: 0;
    padding: var(--s2) 0;
    min-height: 0;
    font-size: 0.95rem;
    box-shadow: inset 0 -2px 0 transparent;
    transition: box-shadow var(--ease), color var(--ease);
  }
  .site-nav a:hover { box-shadow: inset 0 -2px 0 var(--color-border); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-accent); }
  .site-nav a[aria-current="page"]::before { display: none; }
}

/* ---------- Buttons: one primary treatment + text links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color var(--ease);
}
.btn:hover { background: var(--color-primary-dark); color: var(--color-on-primary); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  font-weight: 600;
  color: var(--color-primary);
}
.text-link::after { content: "\2192"; transition: transform var(--ease); }
.text-link:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .text-link:hover::after { transform: none; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }

/* ---------- Sections ---------- */
.section { padding-block: var(--s8); }
@media (min-width: 768px) { .section { padding-block: var(--s9); } }
.section + .section { border-top: var(--rule-thin) solid var(--color-border); }
.section--surface { background: var(--color-surface); border-top: 0 !important; }
.section--surface + .section { border-top: 0; }
.section + .hero { border-top: var(--rule-thin) solid var(--color-border); }

.page-head { padding-block: var(--s7) var(--s6); }
@media (min-width: 768px) { .page-head { padding-block: var(--s8) var(--s7); } }
.page-head h1 { max-width: 22ch; }
.page-head .lead { max-width: 60ch; margin-bottom: 0; }
.page-head + .section { border-top: var(--rule-thin) solid var(--color-border); }

.label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: var(--s2);
}

/* Two-column layout: heading/intro column + content column */
.cols { display: grid; gap: var(--s6); }
@media (min-width: 900px) {
  .cols { grid-template-columns: 4fr 7fr; gap: var(--s8); }
  .cols--even { grid-template-columns: 1fr 1fr; }
  .cols--media { grid-template-columns: 6fr 5fr; align-items: center; }
  .cols--media-left { grid-template-columns: 5fr 6fr; align-items: center; }
}
.cols > * { min-width: 0; }

/* ---------- Home hero ---------- */
.hero { padding-block: var(--s7) var(--s8); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) {
  .hero { padding-block: var(--s8) var(--s9); }
  .hero-grid { grid-template-columns: 6fr 5fr; gap: var(--s8); }
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 46ch; }
.hero-motto {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-accent-text);
  margin-bottom: var(--s4);
}
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 540 / 344; object-fit: cover; }

/* ---------- Ruled lists (replace card grids) ---------- */
.ruled { list-style: none; padding: 0; margin: 0; border-top: var(--rule-thin) solid var(--color-border); }
.ruled > li { margin: 0; padding-block: var(--s5); border-bottom: var(--rule-thin) solid var(--color-border); }
.ruled h3 { margin-bottom: var(--s1); }
.ruled p { margin: 0; color: var(--color-muted); }
.ruled .status {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}
.ruled .status--now { color: var(--color-primary); }
@media (min-width: 640px) {
  .ruled--status > li { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s6); align-items: baseline; }
  .ruled--status .status { grid-column: 2; grid-row: 1; }
}

/* Definition grid: term + description, no boxes */
.defs { display: grid; gap: var(--s5) var(--s7); margin: 0; }
@media (min-width: 700px) { .defs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .defs--3 { grid-template-columns: repeat(3, 1fr); } }
.defs div { border-top: var(--rule-accent) solid var(--color-accent); padding-top: var(--s3); }
.defs dt { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--s1); }
.defs dd { margin: 0; color: var(--color-muted); }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0 var(--s7); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li {
  counter-increment: step;
  margin: 0;
  padding: var(--s5) 0 var(--s5) 3rem;
  border-top: var(--rule-thin) solid var(--color-border);
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: var(--s5);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-accent-text);
  line-height: 1.5;
}
.steps h3 { margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--color-muted); }

/* Short cycle (Remember → Remind → Deliver → Repeat) */
.cycle { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5) var(--s4); align-content: start; align-self: start; }
@media (min-width: 600px) { .cycle { grid-template-columns: repeat(2, 1fr); } }
.cycle li { margin: 0; padding-left: var(--s4); border-left: var(--rule-accent) solid var(--color-accent); }
.cycle strong { display: block; font-family: var(--font-display); font-size: var(--fs-h3); color: var(--color-primary); }
.cycle span { color: var(--color-muted); }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.55em;
  width: 0.7rem; height: 0.4rem;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}
.checklist--2 { columns: 1; }
@media (min-width: 700px) { .checklist--2 { columns: 2; column-gap: var(--s7); } .checklist--2 li { break-inside: avoid; } }

.inline-list { color: var(--color-muted); }

/* Pull statement */
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.45;
  color: var(--color-primary);
  border-left: var(--rule-accent) solid var(--color-accent);
  padding-left: var(--s5);
  margin: var(--s6) 0;
  max-width: 40ch;
}
.pull p { margin: 0; }

/* Notes (safety / availability) */
.note {
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  padding: var(--s4) var(--s5);
  font-size: 0.95rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--measure);
}
.note p { margin: 0; }
.note p + p { margin-top: var(--s2); }

.disclaimer {
  font-size: var(--fs-small);
  color: var(--color-muted);
  max-width: 80ch;
  margin: 0;
}

/* ---------- Images ---------- */
.figure { margin: 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { font-size: var(--fs-small); color: var(--color-muted); margin-top: var(--s2); }
.cutout img { width: 100%; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); background: var(--color-surface); }

/* Product packs: shown whole, framed by a hairline */
.products { display: grid; gap: var(--s6); }
@media (min-width: 600px) { .products { grid-template-columns: repeat(2, minmax(0, 340px)); } }
.products figure { margin: 0; }
.products img { border: var(--rule-thin) solid var(--color-border); border-radius: var(--radius); }
.products figcaption { margin-top: var(--s3); }
.products h3 { margin-bottom: var(--s1); }
.products p { margin: 0; color: var(--color-muted); font-size: 0.95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
th, td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: var(--rule-thin) solid var(--color-border); }
thead th { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); border-bottom: var(--rule-accent) solid var(--color-accent); }
tbody th { font-weight: 600; color: var(--color-muted); width: 32%; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; gap: var(--s6) var(--s7); }
@media (min-width: 900px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }
.roadmap section { border-top: var(--rule-accent) solid var(--color-accent); padding-top: var(--s4); }
.roadmap .when { font-size: var(--fs-small); font-weight: 600; color: var(--color-accent-text); margin-bottom: var(--s1); }
.roadmap h3 { margin-bottom: var(--s3); }
.roadmap h4 { font-size: var(--fs-small); font-weight: 600; margin: var(--s4) 0 var(--s1); color: var(--color-text); }
.roadmap ul { font-size: 0.95rem; color: var(--color-muted); padding-left: 1.1rem; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .founder { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s8); align-items: start; } }
.founder-photo { margin: 0; max-width: 300px; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); background: var(--color-photo-bg); }
.founder-photo figcaption { margin-top: var(--s4); font-size: 0.95rem; color: var(--color-muted); line-height: 1.55; }
.founder-photo figcaption strong { display: block; color: var(--color-text); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.letter { max-width: 64ch; font-size: 1.125rem; line-height: 1.8; }
.letter h2 { font-size: 1.35rem; margin-top: var(--s7); }
.letter .salutation { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-primary); margin-bottom: var(--s5); }
.signature { margin-top: var(--s6); font-family: var(--font-display); }
.signature span { display: block; font-family: var(--font-body); font-size: 0.95rem; color: var(--color-muted); }

.home-founder { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 800px) { .home-founder { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s8); } }
.home-founder .portrait { max-width: 280px; }
.home-founder blockquote { margin: 0 0 var(--s4); font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.4; color: var(--color-primary); }

/* ---------- Knowledge Centre ---------- */
.topic-nav { border-bottom: var(--rule-thin) solid var(--color-border); background: var(--color-bg); }
.topic-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--s2) 0;
  display: flex;
  gap: var(--s1) var(--s5);
  flex-wrap: wrap;
}
.topic-nav li + li { margin-top: 0; }
.topic-nav a { display: inline-block; padding-block: var(--s2); font-size: 0.95rem; }
.topic { scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.topic .label { font-variant-numeric: tabular-nums; }
.infographic-link { font-size: 0.95rem; margin-top: var(--s4); }

details.guide { border-bottom: var(--rule-thin) solid var(--color-border); }
details.guide:first-of-type { border-top: var(--rule-thin) solid var(--color-border); }
details.guide summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s5) 2.5rem var(--s5) 0;
  position: relative;
}
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary::after {
  content: "";
  position: absolute;
  right: 0.5rem; top: 50%;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--ease);
}
details.guide[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.guide summary h3 { margin: 0; font-size: 1.25rem; }
details.guide summary p { margin: var(--s1) 0 0; font-size: 0.95rem; color: var(--color-muted); }
details.guide summary:hover h3 { color: var(--color-primary); }
.guide-body { padding-bottom: var(--s6); max-width: var(--measure); }
.guide-body h4 { font-size: 1rem; font-weight: 600; margin: var(--s5) 0 var(--s2); }
.guide-body dl { margin: 0 0 var(--s4); }
.guide-body dt { font-weight: 600; }
.guide-body dd { margin: 0 0 var(--s3); color: var(--color-muted); }

.myths { list-style: none; padding: 0; margin: 0; }
.myths li { margin: 0; padding-block: var(--s4); border-top: var(--rule-thin) solid var(--color-border); }
.myths .myth-q { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: var(--s1); }
.myths .myth-q span { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; color: var(--color-accent-text); margin-right: var(--s2); }
.myths p:last-child { margin: 0; color: var(--color-muted); }

/* ---------- Contact ---------- */
.contact-details { margin: 0; }
.contact-details div { padding-block: var(--s4); border-top: var(--rule-thin) solid var(--color-border); }
.contact-details div:last-child { border-bottom: var(--rule-thin) solid var(--color-border); }
.contact-details dt { font-size: var(--fs-small); font-weight: 600; color: var(--color-muted); }
.contact-details dd { margin: 0; font-size: 1.1rem; }

/* ---------- Final CTA (home only) ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 26ch; margin-inline: auto; }
.cta p { max-width: 48ch; margin-inline: auto; color: var(--color-muted); }
.cta .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-block: var(--s8) var(--s5);
  font-size: 0.95rem;
}
.site-footer :focus-visible { outline-color: var(--color-focus-on-dark); }
.site-footer a { color: var(--color-footer-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--color-footer-link-hover); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer-brand { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s3); }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-footer-link-hover); letter-spacing: 0.08em; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; color: var(--color-footer-heading); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer li a { display: inline-block; padding-block: 0.3rem; }
.footer-bottom {
  border-top: var(--rule-thin) solid var(--color-footer-rule);
  margin-top: var(--s7);
  padding-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  justify-content: space-between;
  font-size: var(--fs-small);
}

/* ---------- 404 ---------- */
.not-found { padding-block: var(--s9); }
.not-found img { width: 72px; margin-bottom: var(--s5); }

/* ---------- Contact details in footer and contact page ---------- */
.footer-contact, .contact-details address { font-style: normal; }
.footer-contact a { display: inline-block; padding-block: 0.3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1.3fr 1fr; } }

/* ---------- Knowledge Centre infographics ---------- */
.infographic { margin: var(--s5) 0 0; }
.infographic-thumb {
  display: block;
  border: var(--rule-thin) solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--ease);
}
.infographic-thumb:hover { border-color: var(--color-accent); }
.infographic-thumb img { width: 100%; }
.infographic + .disclaimer { margin-top: var(--s6); }

/* Infographic viewer (dialog built by js/main.js) */
html.viewer-open { overflow: hidden; }
.viewer {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-viewer-bg);
  color: var(--color-footer-text);
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: var(--color-viewer-bg); }
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) var(--s4);
  background: var(--color-bg);
  color: var(--color-text);
  border-bottom: var(--rule-thin) solid var(--color-border);
}
.viewer-title {
  margin: 0;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--weight-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewer-tools { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.viewer-tools button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--s3);
  background: transparent;
  color: var(--color-primary);
  border: var(--rule-thin) solid var(--color-border);
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--ease);
}
.viewer-tools button:hover { border-color: var(--color-primary); }
.viewer-tools button[data-act="reset"] { font-size: var(--fs-small); font-weight: var(--weight-strong); }
.viewer-tools button[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.viewer-tools button[aria-disabled="true"]:hover { border-color: var(--color-border); }
.viewer-level { min-width: 3.4em; text-align: center; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.viewer-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  touch-action: none;
  cursor: zoom-in;
  scrollbar-width: thin;
}
.viewer-stage:focus-visible { outline-color: var(--color-focus-on-dark); outline-offset: -4px; }
.viewer-stage.is-zoomed { cursor: grab; }
.viewer-stage.is-dragging { cursor: grabbing; }
.viewer-img { margin: auto; flex-shrink: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.viewer-hint { margin: 0; padding: var(--s2) var(--s4); font-size: var(--fs-small); text-align: center; }
@media (max-width: 599px) {
  .viewer-title { display: none; }
  .viewer-bar { justify-content: center; }
}

/* ---------- Contact page: veterinary advice (MYPET-OPD) ---------- */
.vet-advice {
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: var(--rule-thin) solid var(--color-border);
}
.vet-advice h2 { font-size: var(--fs-h3); font-weight: var(--weight-strong); margin-bottom: var(--s3); }
.vet-advice h3 { font-family: var(--font-body); font-size: var(--fs-body); margin: var(--s5) 0 var(--s2); }
.vet-advice .btn { margin-top: var(--s2); }
.vet-advice .note { margin-top: var(--s5); }
