/*
Theme Name: Romano Uroandrologia
Theme URI: https://andrologourologonapoli.it
Author: Studio Romano
Description: Tema su misura per lo studio di urologia e andrologia del Dr. Felice Romano a Napoli.
Version: 1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: romano
*/

:root {
  --ink: #142131;
  --brand: #27456e;
  --brand-900: #152a46;
  --brand-600: #35598a;
  --brand-050: #eef2f7;
  --teal: #3f8c86;
  --teal-700: #2b6762;
  --teal-800: #235451;
  --teal-050: #eef5f4;
  --mist: #f3f6f7;
  --paper: #ffffff;
  --line: #dbe3e7;
  --line-soft: #e8eef0;
  --muted: #556773;
  --warm: #fbf8f2;
  --amber-700: #8a5a12;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec-y: clamp(3.25rem, 6vw, 6.25rem);
  --radius: 14px;
  --radius-sm: 8px;

  --font-display: "Outfit", "Trebuchet MS", sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--teal-050); color: var(--brand-900); }

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

html { scrollbar-color: #b7c6cc var(--mist); }

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

a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-800); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-900);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.3rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem); line-height: 1.16; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.26; }
h4 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 600; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-900);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.topbar {
  background: var(--brand-900);
  color: #c7d4e4;
  font-size: 0.8125rem;
  letter-spacing: 0.005em;
}
.topbar__in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-block: 0.35rem;
}
.topbar a { color: #e7eef7; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.topbar svg { width: 15px; height: 15px; flex: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 220ms var(--ease-out);
}
.masthead.is-stuck { box-shadow: 0 8px 26px -18px rgba(20, 33, 49, 0.55); }

.masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 0.9rem;
  flex-wrap: nowrap;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: auto; max-height: 56px; }
.brand__text { display: block; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--brand-900);
  line-height: 1.15;
}
.brand__role {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-800);
  line-height: 1.4;
}

.masthead__actions { display: flex; align-items: center; gap: 1.25rem; }

.phoneblock { text-align: right; line-height: 1.25; }
.phoneblock__label { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.phoneblock a {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-900);
  text-decoration: none;
}
.phoneblock a:hover { color: var(--teal-800); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.92rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms var(--ease-out);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--teal-700); color: #fff; }
.btn--primary:hover { background: var(--teal-800); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand); background: var(--brand-050); }
.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: var(--brand-050); color: var(--brand-900); }
.btn:active { transform: translateY(1px); }

.nav { border-top: 1px solid var(--line-soft); }
.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list > li { position: relative; }
.nav__list > li > a {
  display: block;
  padding: 1rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.55rem;
  height: 2px;
  background: var(--teal-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-out);
}
.nav__list > li > a:hover,
.nav__list > li.current-menu-item > a,
.nav__list > li.current-menu-ancestor > a { color: var(--brand-900); }
.nav__list > li > a:hover::after,
.nav__list > li.current-menu-item > a::after,
.nav__list > li.current-menu-ancestor > a::after { transform: scaleX(1); }

.nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -24px rgba(20, 33, 49, 0.6);
  z-index: 20;
}
@keyframes romano-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.nav .sub-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.925rem;
  color: var(--ink);
  text-decoration: none;
}
.nav .sub-menu a:hover { background: var(--brand-050); color: var(--brand); }
.nav__list > li:hover > .sub-menu,
.nav__list > li:focus-within > .sub-menu {
  display: block;
  animation: romano-drop 170ms var(--ease-out) both;
}
.nav__list > li:nth-last-child(-n+3) .sub-menu { left: auto; right: 0; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-900);
  cursor: pointer;
}
.nav__toggle svg { width: 18px; height: 18px; }

.hero {
  background: linear-gradient(180deg, var(--mist) 0%, var(--mist) 72%, var(--paper) 72%);
}
.hero__in {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4.5rem);
}
.hero__title { margin-bottom: 0.5em; }
.hero__lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: #2d3f4d;
  max-width: 34ch;
  margin-bottom: 1.8rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
.hero__media img { width: 100%; }

.hero--inner { background: var(--brand-900); color: #dde6f1; }
.hero--inner .hero__in { display: block; padding-block: clamp(2.25rem, 4vw, 3.75rem); }
.hero--inner h1 { color: #fff; max-width: 20ch; }
.hero--inner .hero__lead { color: #c3d2e3; max-width: 62ch; margin-bottom: 0; }

.crumbs { font-size: 0.85rem; margin-bottom: 1.1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.6rem; color: inherit; }
.crumbs li + li::before { content: "›"; opacity: 0.6; }
.hero--inner .crumbs { color: #a9bdd4; }
.hero--inner .crumbs a { color: #d7e3f1; }

.section { padding-block: var(--sec-y); }
.section--mist { background: var(--mist); }
.section--warm { background: var(--warm); }
.section--navy { background: var(--brand-900); color: #d7e1ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #cfe0f2; }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }

.section__head { max-width: 58ch; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.section--navy .section__head p { color: #b9c8da; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); margin-block: 1.6rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6rem;
  font-size: 0.97rem;
}
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.75rem; text-align: left; }
.prose th { font-family: var(--font-display); font-weight: 600; color: var(--brand-900); }
.prose blockquote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--teal-050);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.lead { font-size: 1.16rem; line-height: 1.62; color: #2d3f4d; }

.layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.aside { display: grid; gap: 1.1rem; position: sticky; top: 150px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  background: var(--paper);
}
.panel h3 { font-size: 1.05rem; margin-bottom: 0.7rem; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel--mist { background: var(--mist); border-color: transparent; }
.panel--teal { background: var(--teal-050); border-color: transparent; }
.panel--warm { background: var(--warm); border-color: #efe4cd; }
.panel--warm h3 { color: var(--amber-700); }

.datalist { list-style: none; margin: 0; padding: 0; font-size: 0.97rem; }
.datalist li { display: flex; gap: 0.7rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.datalist li:last-child { border-bottom: 0; }
.datalist__k { color: var(--muted); flex: none; width: 6.6rem; }
.datalist__v { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
dl.datalist { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0 0.7rem; }
dl.datalist dt,
dl.datalist dd { margin: 0; padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); }
dl.datalist dt { color: var(--muted); }
dl.datalist dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
dl.datalist dt:last-of-type,
dl.datalist dd:last-of-type { border-bottom: 0; }

.cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--c1 { grid-template-columns: minmax(0, 360px); }
.cards--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  transition: border-color 180ms ease, transform 180ms var(--ease-out);
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.card__link { position: absolute; inset: 0; border-radius: var(--radius); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}
.card__more {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-800);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card__more svg { width: 15px; height: 15px; transition: transform 180ms var(--ease-out); }
.card__icon { color: var(--teal-700); margin-bottom: 1rem; }
.card__icon svg { width: 30px; height: 30px; }
.card--flat { border-color: transparent; background: var(--mist); }
.card--media { padding: 0; overflow: hidden; }
.card--media .card__body { padding: 1.35rem 1.4rem 1.5rem; }
.card--media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--brand-600); transform: translateY(-2px); }
  .card--flat:hover { border-color: transparent; background: var(--brand-050); }
  .card:hover .card__more svg { transform: translateX(3px); }
}

.linkgrid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.linkgrid li { margin: 0; }
.linkgrid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 160ms ease, color 160ms ease;
}
.linkgrid a:hover { border-color: var(--brand-600); color: var(--brand); }
.linkgrid svg { width: 16px; height: 16px; flex: none; color: var(--teal-700); }
.section--mist .linkgrid a { background: var(--paper); }

.split {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: start;
}
.split--rev { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.split__media { border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; }

.figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.figure img { width: 100%; }
.figure figcaption { font-size: 0.85rem; color: var(--muted); padding: 0.65rem 0.9rem; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

.map--gated { background: var(--mist); line-height: 1.6; }
.map__ask {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 2rem var(--gutter);
}
.map__ask p { margin: 0; }
.map__ask-icon { width: 34px; height: 34px; color: var(--teal-700); margin-bottom: 0.4rem; }
.map__ask-text { max-width: 44ch; color: var(--muted); font-size: 0.95rem; }
.map__ask .btn { margin: 0.6rem 0 0.2rem; }
.map__ask-link { font-size: 0.875rem; color: var(--muted); }

.consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 60;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(20, 33, 49, 0.18);
}
.consent__in {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
}
.consent__text { margin: 0; font-size: 0.9rem; color: var(--muted); }
.consent__text b { color: var(--ink); }
.consent__act { margin: 0; flex: 0 0 auto; }

@media (max-width: 760px) {
  .consent__in { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .consent__act .btn { width: 100%; justify-content: center; }
  .map__ask { min-height: 300px; }
}

.quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.02rem; color: #22333f; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote__meta { font-size: 0.875rem; color: var(--muted); }
.quote__who { font-weight: 600; color: var(--ink); display: block; }
.stars { display: flex; gap: 2px; color: #d99a21; margin-bottom: 0.9rem; }
.stars svg { width: 16px; height: 16px; }
.stars:empty::before { content: "\2605\2605\2605\2605\2605"; letter-spacing: 2px; font-size: 1rem; line-height: 1; }

.toc {
  margin: 2rem 0 0;
  padding: 1.15rem 1.45rem 1.3rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-700);
  border-radius: var(--radius);
  font-size: 0.96rem;
  scroll-margin-top: 9.5rem;
}
.toc__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ol { counter-reset: toc; }
.toc > ol > li {
  counter-increment: toc;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
}
.toc > ol > li:last-child { margin-bottom: 0; }
.toc > ol > li::before {
  content: counter(toc) ".";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.5rem;
  text-align: right;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-800);
}
.toc a { color: var(--brand-900); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover, .toc a:focus-visible { border-bottom-color: var(--teal-700); }
.toc ol ol { margin: 0.4rem 0 0.7rem; }
.toc ol ol li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.3rem;
  font-size: 0.93rem;
}
.toc ol ol li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 1px;
  background: var(--teal-700);
}
.toc ol ol a { color: var(--muted); }
.toc ol ol a:hover, .toc ol ol a:focus-visible { color: var(--brand-900); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 9.5rem; }

@media (max-width: 760px) {
  .toc { padding: 1rem 1.1rem 1.1rem; }
  .prose h2[id], .prose h3[id] { scroll-margin-top: 5rem; }
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 1.45rem;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  transform: rotate(45deg);
  transition: transform 180ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding-bottom: 1.2rem; max-width: 72ch; }
.faq__body p:last-child { margin-bottom: 0; }

.pricetable { overflow-x: auto; }
.pricetable table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.pricetable th, .pricetable td { padding: 0.62rem 0.55rem; border-bottom: 1px solid var(--line); text-align: right; }
.pricetable th:first-child, .pricetable td:first-child { text-align: left; }
.pricetable thead th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--brand-900);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.pricetable tbody tr:nth-child(odd) { background: var(--mist); }
.pricetable caption { caption-side: bottom; font-size: 0.85rem; color: var(--muted); text-align: left; padding-top: 0.8rem; }

.drug-head {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}
.drug-head > div:only-child { grid-column: 1 / -1; }
.drug-shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.drug-shot img { max-width: 100%; height: auto; object-fit: contain; }
.drug-shot figcaption { margin-top: 0.7rem; font-size: 0.8rem; line-height: 1.45; color: var(--muted); text-align: center; }
.drug-facts {
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  font-size: 0.97rem;
}
.drug-facts dt { margin: 0; color: var(--muted); }
.drug-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pillrow { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.pill a { color: inherit; text-decoration: none; }
.pill a:hover { text-decoration: underline; }
.pill {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand);
}
.pill--rx { background: #fbeee2; color: var(--amber-700); }
.pill--otc { background: var(--teal-050); color: var(--teal-800); }


.updated-line { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }

.notice {
  background: var(--warm);
  border: 1px solid #efe4cd;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  font-size: 0.95rem;
}
.notice h3 { font-size: 1rem; color: var(--amber-700); margin-bottom: 0.5rem; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

.archive-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.sources { font-size: 0.9rem; color: var(--muted); }
.sources ul { padding-left: 1.1rem; }

.authorbox {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.authorbox b { color: var(--ink); }
.authorbox a { color: inherit; }
.authorbox > svg { flex: 0 0 auto; width: 30px; height: 30px; color: var(--teal-700); margin-top: 0.1rem; }
.authorbox p { margin: 0; }

.formnote {
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}
.formnote b { display: block; margin-bottom: 0.2rem; }
.formnote--ok { background: var(--teal-050); border-color: #c9e0dd; color: var(--teal-800); }
.formnote--ko { background: var(--warm); border-color: #efe4cd; color: var(--amber-700); }

.catbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.catbar a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.catbar a:hover, .catbar a[aria-current="page"] { border-color: var(--brand-600); background: var(--brand-050); color: var(--brand); }

.prodcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: border-color 180ms ease, transform 180ms var(--ease-out); }
.prodcard__shot { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 0.9rem; background: var(--mist); }
.prodcard__shot img { max-height: 100%; width: auto; object-fit: contain; }
.prodcard__shot--text { background: var(--brand-900); }
.prodcard__shot--text span { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; color: #e8eef6; text-align: center; }
.prodcard__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.prodcard__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--brand-900); letter-spacing: -0.015em; }
.prodcard__inn { font-size: 0.875rem; color: var(--muted); }
.prodcard__form { margin-top: auto; padding-top: 0.6rem; font-size: 0.86rem; color: var(--muted); }
.prodcard__link { position: absolute; inset: 0; border-radius: var(--radius); }
.prodrow { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
.prodrow a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.prodrow span { font-size: 0.9rem; color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .prodcard:hover { border-color: var(--brand-600); transform: translateY(-2px); }
}

.cta-band { background: var(--brand-900); color: #d7e1ee; }
.cta-band__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; max-width: 24ch; }
.cta-band p { color: #b9c8da; margin-bottom: 0; max-width: 46ch; }
.cta-band__act { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.footer { background: var(--ink); color: #aebbc6; font-size: 0.95rem; }
.footer a { color: #dce5ec; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
}
.footer h3,
.footer__h {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.footer address { font-style: normal; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer__brand img { max-height: 54px; width: auto; margin-bottom: 1rem; background: #fff; border-radius: 6px; padding: 6px 10px; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid #2e3c49;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.footer__social a:hover { border-color: var(--teal); background: rgba(63, 140, 134, 0.16); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid #27333e;
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer__legal a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.footer__legal a:hover { border-bottom-color: currentColor; }

.form { display: grid; gap: 1rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__hint { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--brand-900); }
.form input, .form textarea, .form select {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--brand-600); }
.form textarea { min-height: 150px; resize: vertical; }
.form .form__check { display: flex; align-items: flex-start; gap: 0.6rem; }
.form .form__check input { width: auto; flex: none; margin-top: 0.3rem; }
.form .form__check label { font-weight: 400; font-size: 0.95rem; margin-bottom: 0; }
.form button { align-self: start; }
.prose .form { margin: 1.8rem 0 0; max-width: 540px; }

.anchorlist { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.anchorlist a { font-size: 0.9rem; color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.anchorlist a:hover { border-color: var(--teal-700); }

.archive-block { margin-bottom: 2.6rem; }
.archive-block > h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); }
.archive-block:last-child { margin-bottom: 0; }

@media (max-width: 1040px) {
  .cards--4, .cards--c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--c3 { grid-template-columns: minmax(0, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -28px rgba(20, 33, 49, 0.7); max-height: 75vh; overflow-y: auto; }
  .nav__toggle { display: inline-flex; }
  .nav__list { display: block; }
  .nav__list > li > a { padding: 0.85rem var(--gutter); border-bottom: 1px solid var(--line-soft); }
  .nav__list > li > a::after { display: none; }
  .nav .sub-menu {
    display: block;
    position: static;
    animation: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: var(--mist);
    padding: 0;
  }
  .nav .sub-menu a { padding: 0.75rem var(--gutter) 0.75rem calc(var(--gutter) + 1rem); border-bottom: 1px solid var(--line-soft); }
  .masthead { position: relative; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero:not(.hero--inner) { background: linear-gradient(180deg, var(--mist) 0%, var(--mist) 86%, var(--paper) 86%); }
  .split, .split--rev { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split__media { order: -1; }
  .drug-head { grid-template-columns: minmax(0, 1fr); }
  .drug-shot { max-width: 300px; }
  .phoneblock { display: none; }
}

@media (max-width: 860px) {
  .brand__text { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 1rem; }
  body { font-size: 1rem; }
  .topbar { font-size: 0.78rem; }
  .topbar__in { justify-content: flex-start; }
  .masthead__actions { gap: 0.6rem; }
  .masthead__actions .btn { padding: 0.72rem 0.9rem; font-size: 0.75rem; letter-spacing: 0.04em; }
  .nav__toggle { padding: 0.55rem 0.7rem; font-size: 0.75rem; }
  .brand img { max-height: 40px; }
  .hero__media { max-width: 100%; justify-self: stretch; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .drug-facts { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .drug-facts dt { margin-top: 0.5rem; }
  .drug-facts dt:first-child { margin-top: 0; }
  .datalist li { flex-direction: column; gap: 0.1rem; }
  dl.datalist { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dl.datalist dt { padding-bottom: 0; border-bottom: 0; }
  dl.datalist dd { padding-top: 0.1rem; }
  .pricetable table { font-size: 0.76rem; }
  .pricetable th, .pricetable td { padding: 0.55rem 0.45rem; }
  .pricetable th:first-child, .pricetable td:first-child { white-space: nowrap; }
  .cards--4, .cards--c4, .cards--c2, .cards--c1 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .pricetable table { font-size: 0.72rem; }
  .pricetable th, .pricetable td { padding: 0.5rem 0.42rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover, .prodcard:hover { transform: none; }
}

.tablewrap { overflow-x: auto; margin-bottom: 1.6rem; -webkit-overflow-scrolling: touch; }
.tablewrap table { margin-bottom: 0; }
.pricetable > .tablewrap { overflow-x: visible; }
@media (max-width: 680px) {
  .prose .tablewrap table { min-width: 0; width: 100%; font-size: 0.84rem; }
  .prose .tablewrap th, .prose .tablewrap td { padding: 0.5rem 0.4rem; overflow-wrap: break-word; }
  .prose .tablewrap a { overflow-wrap: anywhere; }
}
