/* ==========================================================================
   Coduri Poștale România — static site stylesheet
   Hand-written, dependency-free, optimized for Cloudflare Pages.
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-soft: #1f2a37;
  --paper: #fbfaf7;
  --paper-2: #f3f0e9;
  --card: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b2b2a;
  --teal-soft: #d7f3ee;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --muted: #5b6776;
  --line: #e3dfd5;
  --line-strong: #cfc9bb;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 4px 14px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 12px 40px rgba(11, 18, 32, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 40px, 860px);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons, chips, eyebrow
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  font-size: 0.94rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-accent {
  background: var(--amber);
  color: #211500;
}

.btn-accent:hover {
  background: #ffb01f;
  color: #211500;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.chip--amber {
  background: var(--amber-soft);
  color: #7c4a03;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(227, 223, 213, 0.8);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-dark);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav > a,
.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.main-nav > a:hover,
.nav-dropdown > button:hover,
.main-nav > a.is-active {
  background: var(--paper-2);
  color: var(--teal);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: block;
}

.dropdown-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-decoration: none;
}

.dropdown-panel a:hover {
  background: var(--paper-2);
  color: var(--teal);
}

.dropdown-panel .count {
  color: var(--muted);
  font-size: 0.72rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 85% -10%, rgba(15, 118, 110, 0.16), transparent 65%),
    radial-gradient(520px 300px at 5% 105%, rgba(245, 158, 11, 0.14), transparent 60%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  max-width: 15ch;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.2vw, 4.1rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--teal);
  font-style: italic;
  font-weight: 600;
}

.hero .lead {
  max-width: 58ch;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.7;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  padding: 7px 7px 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.search-form svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-form input::placeholder {
  color: #8a93a0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-stats strong {
  color: var(--ink);
}

.hero-stats .tick {
  color: var(--teal);
  font-weight: 800;
}

.postal-card {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(20, 184, 166, 0.25), transparent 60%),
    var(--teal-dark);
  color: var(--paper);
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}

.postal-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(251, 250, 247, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.postal-card > * {
  position: relative;
  z-index: 1;
}

.postal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  color: #b9e6e0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.postal-stamp {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.postal-digits {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: 0.24em;
}

.postal-card p {
  color: #cfe9e5;
  font-size: 0.94rem;
}

.postal-card .btn {
  width: 100%;
  margin-top: 16px;
}

.postal-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(251, 250, 247, 0.16);
  list-style: none;
  color: #b9e6e0;
  font-size: 0.72rem;
  text-align: center;
}

.postal-features li::before {
  content: "✓";
  display: block;
  margin-bottom: 3px;
  color: var(--amber);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 76px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--alt {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-head p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.link-arrow {
  flex: 0 0 auto;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.trust-icon svg {
  width: 21px;
  height: 21px;
}

.trust-item strong {
  display: block;
  font-size: 0.92rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Cards / article grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
}

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

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

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: #cbc4b5;
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-media img {
  transform: scale(1.035);
}

.card-media .chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(251, 250, 247, 0.94);
  color: var(--teal-dark);
  backdrop-filter: blur(6px);
}

.card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

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

.card-body h3 a:hover {
  color: var(--teal);
}

.card-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.76rem;
}

.card-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.featured-media {
  position: relative;
  display: block;
  min-height: 330px;
  overflow: hidden;
  background: var(--teal-dark);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.featured-body h3 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.featured-body h3 a:hover {
  color: var(--teal);
}

.featured-body p {
  margin: 0 0 22px;
  color: var(--muted);
}

.featured-body .card-meta {
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Category cards
   -------------------------------------------------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent, var(--teal));
}

.category-card:hover {
  transform: translateY(-3px);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.category-card strong {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.category-card span {
  color: var(--muted);
  font-size: 0.83rem;
}

.category-card .count {
  margin-top: 8px;
  color: var(--accent, var(--teal));
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Split section, address mockup, FAQ, CTA
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.split h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.split p {
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 15px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.checklist .check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.address-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), transparent 55%),
    var(--card);
  box-shadow: var(--shadow-md);
}

.address-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 66px;
  border: 2px dashed var(--line-strong);
  border-radius: 6px;
}

.address-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.address-line {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.address-line dt {
  color: var(--muted);
}

.address-line dd {
  margin: 0;
  font-weight: 600;
}

.address-line dd.mono {
  font-family: var(--mono);
  letter-spacing: 0.16em;
}

.address-card .stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--teal-dark);
  color: #b9e6e0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.faq-item .faq-answer p {
  margin: 0;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 52px 46px;
  border-radius: 24px;
  background:
    radial-gradient(520px 280px at 95% 0%, rgba(20, 184, 166, 0.3), transparent 60%),
    var(--teal-dark);
  color: var(--paper);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 280px;
  height: 280px;
  border: 2px dashed rgba(251, 250, 247, 0.16);
  border-radius: 50%;
}

.cta-band h2 {
  position: relative;
  z-index: 1;
  max-width: 20ch;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.cta-band p {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: 0 0 24px;
  color: #cfe9e5;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Page hero / breadcrumbs / blog index
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 46px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(15, 118, 110, 0.12), transparent 60%),
    var(--paper);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.page-hero h1 {
  max-width: 22ch;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-hero .lead {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  max-width: 420px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
}

.filter-search svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.filter-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
}

.filter-chip {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-chip.is-active {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: var(--paper);
}

.filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
}

.empty-state {
  display: none;
  padding: 54px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.article-header {
  padding: 44px 0 0;
}

.article-header h1 {
  max-width: 24ch;
  margin: 16px 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4.4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.article-header .summary {
  max-width: 68ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.8rem;
}

.article-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 600;
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--amber);
  font-family: var(--serif);
  font-size: 0.8rem;
}

.article-cover {
  margin: 0 0 42px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 20px;
}

.toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 20px 0 0 20px;
  border-left: 2px solid var(--line);
  scrollbar-width: thin;
}

.toc-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc a:hover,
.toc a.is-active {
  color: var(--teal);
}

.toc a.is-active {
  font-weight: 650;
}

.toc .toc-h3 a {
  padding-left: 12px;
  font-size: 0.78rem;
}

.article-body {
  min-width: 0;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.055rem;
  line-height: 1.8;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.25em;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}

.prose h2 {
  margin: 2.2em 0 0.75em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
  font-size: 1.7rem;
}

.prose h3 {
  margin: 1.9em 0 0.6em;
  font-size: 1.32rem;
}

.prose h4 {
  margin: 1.6em 0 0.5em;
  font-size: 1.1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--teal);
  font-weight: 700;
}

.prose a {
  font-weight: 600;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-style: italic;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  margin: 1.7em 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--teal-dark);
  color: var(--paper);
  font-weight: 650;
}

.prose tr:nth-child(even) td {
  background: #faf8f3;
}

.prose hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img {
  margin: 1.7em 0;
  border-radius: 12px;
}

.article-footer {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.share-row span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.author-box {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.author-box .avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
}

.author-box strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.author-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.article-faq {
  margin-top: 46px;
}

.article-faq h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Legal / generic page
   -------------------------------------------------------------------------- */

.page-layout {
  max-width: 820px;
  padding: 42px 0 30px;
}

.page-layout .prose {
  font-size: 1.02rem;
}

.page-updated {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 44px;
  align-items: start;
  margin-top: 34px;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.contact-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 0.8rem;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.85rem;
}

.form-status.is-visible {
  display: block;
}

.contact-aside {
  display: grid;
  gap: 14px;
}

.contact-aside .info-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.info-card strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 1rem;
}

.info-card p,
.info-card a {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.error-page {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 70px 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--teal);
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.error-page h1 {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.error-page p {
  max-width: 52ch;
  margin: 0 auto 24px;
  color: var(--muted);
}

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

.site-footer {
  margin-top: 10px;
  padding: 56px 0 26px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(20, 184, 166, 0.12), transparent 60%),
    var(--ink);
  color: #cfd8e3;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: 42px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand:hover {
  color: #fff;
}

.site-footer .brand-mark {
  background: var(--paper);
  color: var(--teal-dark);
}

.footer-brand p {
  max-width: 34ch;
  margin: 16px 0 18px;
  color: #9fb0c3;
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #b9e6e0;
  font-size: 0.72rem;
  text-decoration: none;
}

.footer-badge:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.footer-col h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: #9fb0c3;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  color: #8194a9;
  font-size: 0.76rem;
}

.footer-bottom a {
  color: #b9c7d6;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-md);
  }

  .site-header.is-open .main-nav > a,
  .site-header.is-open .nav-dropdown > button {
    justify-content: flex-start;
    width: 100%;
    padding: 11px 12px;
  }

  .site-header.is-open .nav-dropdown {
    width: 100%;
  }

  .site-header.is-open .dropdown-panel {
    position: static;
    display: block;
    width: 100%;
    margin: 2px 0 6px;
    border: 0;
    box-shadow: none;
    background: var(--paper-2);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .postal-card {
    max-width: 460px;
    transform: none;
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
  }

  .toc ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 18px;
  }

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero {
    padding: 46px 0 42px;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .search-form {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 12px;
  }

  .search-form svg {
    display: none;
  }

  .search-form input {
    flex: 1 1 100%;
    padding: 6px 4px;
  }

  .search-form .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .trust-grid,
  .grid--2,
  .grid--3,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

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

  .featured-media {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .featured-body {
    padding: 26px;
  }

  .cta-band {
    padding: 36px 26px;
  }

  .article-header h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .article-cover {
    margin-bottom: 30px;
    border-radius: 14px;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .filter-count {
    margin-left: 0;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .share-row,
  .cta-band,
  .back-to-top,
  .reading-progress {
    display: none !important;
  }

  .article-layout {
    display: block;
  }

  body {
    background: #fff;
  }
}
