:root {
  --ivory: #FBFAF7;
  --paper: #F4F3EF;
  --blue: #0000C9;   /* primary */
  --navy: #10104F;   /* headings, hover, shadows */
  --sky: #BED9EB;
  --ink: #1E1B20;    /* body text */
  --text: #464448;
  --muted: #6A696C;
  --line: rgba(16, 16, 79, 0.14);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.eyebrow {
  display: block;
  margin: 0 0 .8rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header: global nav + sticky local nav ---------- */
.site-header {
  position: relative;
  z-index: 30;
  background: rgba(251, 250, 247, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(16, 16, 79, .06);
}
.site-header .inner,
.local-nav .inner {
  max-width: calc(76rem + 2 * clamp(1.25rem, 5vw, 5rem));
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .inner { height: 76px; }
.brand { display: flex; align-items: center; }
.logo { display: block; width: clamp(120px, 12vw, 164px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3.4vw, 2.75rem); }
.nav a {
  font: 400 .98rem/1 var(--sans);
  letter-spacing: -.005em;
  text-transform: none;
  color: rgba(16, 16, 79, .72);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 500; }
.nav .pill { padding: .45rem .9rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 500; }
.nav .pill:hover { background: var(--navy); color: #fff; }

.local-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(251, 250, 247, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(16, 16, 79, .1);
}
.local-nav .inner { height: 60px; }
.local-left { display: flex; align-items: center; min-width: 0; }
.local-title {
  font: 600 1.6rem/1 var(--serif);
  letter-spacing: -.01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.local-sub {
  margin-left: .9rem;
  padding-left: .9rem;
  border-left: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.local-actions { display: flex; align-items: center; gap: 1.4rem; flex: none; }
.local-actions a { font-size: .95rem; color: rgba(16, 16, 79, .72); text-decoration: none; transition: color .2s; }
.local-actions a:hover { color: var(--navy); }
.local-actions .local-cta {
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  transition: background .2s;
}
.local-actions .local-cta:hover { background: var(--navy); color: #fff; }
@media (max-width: 740px) {
  .site-header .hide-sm, .local-nav .hide-sm, .local-sub { display: none; }
  .site-header .inner { height: 64px; }
  .local-nav .inner { height: 56px; }
  .local-title { font-size: 1.4rem; }
}


/* ---------- Top bar: links left, logo centred, actions right ---------- */
.site-header.home-bar {
  position: sticky; top: 0; z-index: 30;
  /* frosted glass: translucent white, strong blur, light edge + soft shadow */
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 1px 0 rgba(16, 16, 79, .07), 0 10px 30px -20px rgba(16, 16, 79, .3);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.home-bar { background: rgba(255, 255, 255, .95); }
}
.site-header.home-bar .inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  height: auto; max-width: calc(84rem + 2 * var(--gutter)); margin: 0 auto;
  padding: 1rem var(--gutter);
}
.home-bar .brand { display: block; justify-self: center; }
.home-bar .logo { display: block; width: clamp(118px, 10vw, 148px); height: auto; }
.home-bar .navlinks, .home-bar .topnav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2rem); }
.home-bar .topnav { justify-content: flex-end; }
.home-bar .navlinks a, .home-bar .topnav > a {
  padding: .5rem 0;
  border: 0; border-radius: 0; background: none;
  font: 500 .92rem/1 var(--sans); letter-spacing: -.005em; text-transform: none;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.home-bar .navlinks a:hover, .home-bar .topnav > a:hover,
.home-bar .navlinks a[aria-current="page"], .home-bar .topnav > a[aria-current="page"] { color: var(--blue); }
.home-bar .topnav .topnav-cta { color: var(--blue); }
.home-bar .topnav .topnav-cta:hover { color: var(--navy); }
.home-bar .lang-switch summary { padding: .5rem 0; border: 0; background: none; font-size: .92rem; letter-spacing: 0; color: var(--ink); }
.home-bar .lang-switch summary:hover, .home-bar .lang-switch[open] summary { color: var(--blue); }
.home-bar .read-progress { background: var(--blue); }
@media (max-width: 740px) {
  .home-bar .hide-sm { display: none; }
  .site-header.home-bar .inner { display: flex; gap: 1.1rem; padding: .85rem 1.25rem; }
  .home-bar .brand { order: -1; margin-right: auto; }
  .home-bar .logo { width: 108px; }
  .home-bar .navlinks a, .home-bar .topnav > a { font-size: .88rem; }
  .home-bar .navlinks, .home-bar .topnav { gap: 1.1rem; }
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Blog index ---------- */
.blog-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  max-width: 80rem;
  margin: 0 auto;
}
.blog-hero h1,
.article-head h1 {
  margin: 1rem 0 1.25rem;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.04em;
}
.blog-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.05; max-width: 17ch; }
.blog-hero h1 em { font-style: normal; color: inherit; }
.blog-hero p:not(.eyebrow) { max-width: 40rem; margin: 0; font-size: 1.1rem; font-weight: 400; line-height: 1.8; color: var(--muted); }

.post-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem);
  max-width: 80rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.post-card { height: 100%; }
.post-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  text-decoration: none;
}
.post-card a:hover h2, .post-card a:hover h3 { color: var(--blue); }
.post-card.featured, .post-card.wide { grid-column: span 2; }
.post-card.featured h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.card-img { display: block; aspect-ratio: 1672 / 941; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card a:hover .card-img img { transform: none; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 0 0; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.num { font: 500 .74rem var(--sans); letter-spacing: .05em; color: var(--muted); }
.cat { font: 500 .74rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.post-card h2 {
  margin: 0 0 .6rem;
  font: 500 clamp(1.1rem, 1.4vw, 1.28rem)/1.25 var(--sans);
  letter-spacing: -.02em;
  color: var(--ink);
  transition: color .2s;
}
.post-card p { margin: 0 0 1.1rem; font-size: .94rem; line-height: 1.55; color: var(--text); }
.post-card .meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--muted);
}
.post-card .meta span:last-child::after { content: " →"; }

/* ---------- Article ---------- */
.article-wrap { padding: 0; }
.article-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(7.5rem, 23vw, 18rem);
}
.article-head { max-width: 50rem; margin: 0 auto; text-align: center; }
.article-head .crumbs { justify-content: center; margin-bottom: 2.25rem; }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.12; margin: 1.25rem 0; }
.dek { max-width: 38rem; margin: 0 auto 2rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.7; color: var(--muted); }
.byline { display: inline-flex; align-items: center; gap: .85rem; text-align: left; }
.byline img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.byline strong { display: block; font-size: .92rem; font-weight: 600; color: var(--navy); }
.byline span { font-size: .84rem; color: var(--muted); }

.article-cover {
  max-width: calc(68rem + 2 * var(--gutter));
  margin: calc(-1 * clamp(5rem, 20vw, 15rem)) auto clamp(3rem, 6vw, 4.5rem);
  padding: 0 var(--gutter);
}
.cover-img { display: block; aspect-ratio: 1672 / 941; border-radius: 18px; overflow: hidden; background: var(--ivory); border: 1px solid var(--line); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; }

.article-layout {
  max-width: calc(68rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 14rem minmax(0, 44rem);
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.read-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.toc {
  position: sticky;
  top: 6.5rem;
  font-size: .85rem;
}
.toc-title {
  margin: 0 0 1rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a {
  display: block;
  padding: .45rem 0 .45rem 1rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s, border-color .3s;
}
.toc li a:hover, .toc li a.active { color: var(--blue); border-left-color: var(--blue); }

.prose { font-size: 1.125rem; line-height: 1.8; color: var(--ink); }
.prose > p:first-of-type { font-size: 1.25rem; line-height: 1.7; color: var(--navy); }
.prose p { margin: 0 0 1.4rem; }
.prose h2 {
  margin: 3rem 0 1.1rem;
  font: 500 clamp(1.5rem, 2.3vw, 1.95rem)/1.2 var(--sans);
  letter-spacing: -.03em;
  color: var(--ink);
  scroll-margin-top: 6.5rem;
}
.prose a {
  color: var(--blue);
  text-decoration-color: rgba(0, 0, 201, .4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--blue); }
.prose a[target="_blank"]::after { content: " ↗"; font-size: .8em; }

.cta {
  margin: 3.5rem 0 0;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: 24px;
  background: var(--blue);
  color: #CEE2F0;
}
.cta .eyebrow { color: #fff; }
.cta p { margin: 1rem 0 1.5rem; font-family: var(--serif); font-size: 1.55rem; line-height: 1.35; color: #fff; }
.btn {
  display: inline-block;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--blue);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.cta .btn:focus-visible { outline-color: var(--sky); }

/* ---------- Launch offer card (10% off the first order) ---------- */
.offer-card {
  container-type: inline-size;
  width: 100%;
  max-width: 60rem;
  margin: 3.5rem auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 6.5rem;
}
.oc-inner { display: grid; grid-template-columns: 1.2fr 1fr; }
.oc-left { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 5cqi, 3.5rem); }
.oc-logo { display: none; } /* the page already carries the logo */
.prose .offer-card p { margin: 0; }
.offer-card .oc-eyebrow { margin: 0; font: 500 .78rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.offer-card .oc-title {
  margin: .8rem 0 .9rem; padding: 0; border: 0;
  font: 500 clamp(1.8rem, 4.2cqi, 2.7rem)/1.06 var(--sans);
  letter-spacing: -.035em; color: var(--ink);
}
.prose .offer-card .oc-text, .offer-card .oc-text { max-width: 30ch; margin: 0 0 1.5rem; font: 400 clamp(.98rem, 1.5cqi, 1.05rem)/1.6 var(--sans); color: var(--text); }
.nf-hp { display: none; }
.nf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.offer-card .nf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; max-width: 30rem; }
.oc-field {
  display: flex; align-items: center; gap: .7rem;
  min-height: 52px; padding: 0 1rem;
  border: 1px solid rgba(30, 27, 32, .2); border-radius: 6px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.oc-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 0, 201, .12); }
.oc-field svg { width: 19px; height: auto; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; }
.oc-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .9rem 0; font: 400 .98rem var(--sans); color: var(--ink); }
.oc-field input::placeholder { color: #8E8C90; }
.offer-card .nf-btn {
  min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 0 1.35rem; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--blue); color: #fff;
  font: 500 .95rem var(--sans); letter-spacing: 0; text-transform: none; white-space: nowrap;
  transition: background .2s;
}
.offer-card .nf-btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.offer-card .nf-btn:hover { background: var(--navy); }
.offer-card .nf-btn:hover svg { transform: translateX(3px); }
.offer-card .nf-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.offer-card .nf-btn[disabled] { opacity: .6; cursor: wait; }
.prose .offer-card .nf-note, .offer-card .nf-note { grid-column: 1 / -1; margin: .35rem 0 0; font: 400 .82rem/1.5 var(--sans); color: var(--muted); }
.offer-card .nf-note.ok { color: #2f7050; }
.offer-card .nf-note.err { color: #a33a3a; }

/* right panel: gradient is colour-matched to the offer-panel artwork */
.oc-right { position: relative; aspect-ratio: 800 / 931; background: linear-gradient(165deg, #d0e2f8 0%, #d6e4f8 60%, #e0e0f6 100%); }
.oc-right picture, .oc-right img { position: absolute; inset: 0; width: 100%; height: 100%; }
.oc-right img { object-fit: cover; object-position: 50% 45%; }

@container (min-width: 1100px) {
  .oc-inner { grid-template-columns: 1.9fr 1fr; }
}
@container (max-width: 860px) {
  .offer-card .nf { grid-template-columns: 1fr; }
}
@container (max-width: 680px) {
  .oc-inner { grid-template-columns: 1fr; }
  .oc-right { order: -1; height: 280px; aspect-ratio: auto; background: linear-gradient(90deg, rgb(206,225,243) 0%, rgb(214,227,245) 50%, rgb(222,226,245) 100%); }
  .oc-right img { object-fit: contain; object-position: 50% 100%; padding-top: 10px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent 100%); }
  .offer-card .oc-text { max-width: none; }
  .offer-card .nf { max-width: none; }
}

.journal-article .article-signup .offer-card { margin: 0 auto; }
.notify-wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem); }
.notify-wrap .offer-card { margin-top: 0; }

.note {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--muted);
}

.related {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.related-head { max-width: 80rem; margin: 0 auto 2.25rem; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.related-head h2 { margin: .9rem 0 0; font: 500 clamp(1.7rem, 2.8vw, 2.4rem)/1.1 var(--sans); letter-spacing: -.035em; color: var(--ink); }
.related-head a { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.related .post-grid { padding-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
}
.site-footer img { width: 110px; height: auto; }
.site-footer p { margin: 0; }
.social { display: flex; align-items: center; gap: .9rem; }
.social-label { font-size: .82rem; font-weight: 500; color: var(--muted); }
.social-links { display: flex; gap: .55rem; }
.social-links a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(16, 16, 79, .16);
  background: #fff; color: var(--blue);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.social-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.social-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.social-links svg { width: 19px; height: 19px; }
@media (max-width: 640px) { .social { flex-direction: column; gap: .6rem; } }

.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--blue); }

/* ---------- Footer: brand + link columns ---------- */
.lux-footer {
  position: relative;
  display: block;
  padding: clamp(2.75rem, 5vw, 4rem) var(--gutter) 2rem;
  text-align: left;
  font-size: .95rem;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  max-width: 72rem; margin: 0 auto;
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.lux-footer .foot-logo { display: inline-block; }
.lux-footer .foot-logo img { width: clamp(150px, 14vw, 190px); height: auto; opacity: 1; }
.lux-footer .social { flex-direction: row; justify-content: flex-start; gap: 0; }
.lux-footer .social-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lux-footer .social-links { gap: .2rem; margin-left: -.55rem; }
.lux-footer .social-links a { width: 36px; height: 36px; border: 0; background: none; color: var(--ink); }
.lux-footer .social-links a:hover { background: none; color: var(--blue); transform: none; }
.lux-footer .social-links svg { width: 17px; height: 17px; }
.lux-footer .foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.lux-footer .foot-head { margin: .6rem 0 .9rem; font-size: .8rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lux-footer .foot-col a { padding: .36rem 0; font-size: .98rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.lux-footer .foot-col a:hover { color: var(--blue); }
.lux-footer .foot-langs { justify-content: flex-start; max-width: 72rem; margin: 2.25rem auto -1rem; padding-left: 0; }
.lux-footer .foot-langs a:first-child { margin-left: -.7rem; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  max-width: 72rem; margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.foot-bottom p { margin: 0; }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .foot-bottom { flex-direction: column; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.wide { grid-column: auto; }
  .article-layout { grid-template-columns: minmax(0, 44rem); justify-content: center; }
  .toc { position: static; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured, .post-card.wide { grid-column: auto; }
  .eyebrow { letter-spacing: .16em; }
  .article-meta span + span::before { content: none; }
  .nav .hide-sm { display: none; }
  .prose { font-size: 1.06rem; }
  .prose > p:first-of-type { font-size: 1.15rem; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(16px); animation: rise 1s var(--ease) forwards; }
  .d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* Images never zoom on hover */
a:hover img, a:hover picture img, .guide-tag:hover img, .life-card:hover img, .jr-card a:hover img, .jr-feature:hover img, .post-card a:hover img { transform: none !important; scale: 1 !important; }


/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  font: 500 .76rem/1 var(--sans, "DM Sans", system-ui, sans-serif); letter-spacing: .08em; color: var(--navy, #10104F);
  padding: .66rem 1rem; border: 1px solid rgba(16,16,79,.14); border-radius: 999px; background: rgba(251,250,247,.7);
  transition: border-color .3s; white-space: nowrap;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--blue, #0000C9); }
.lang-switch summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 11rem; margin: 0; padding: .4rem;
  list-style: none; background: #FDFCFB; border-radius: 16px; box-shadow: 0 24px 50px -24px rgba(16,16,79,.45), inset 0 0 0 1px rgba(16,16,79,.08);
}
.lang-switch li a { display: block; padding: .6rem .8rem; border-radius: 10px; font: 500 .95rem/1.2 var(--sans, "DM Sans", system-ui, sans-serif);
  letter-spacing: 0 !important; text-transform: none !important; color: var(--navy, #10104F); text-decoration: none; border: 0 !important; background: none !important; }
.lang-switch li a:hover { background: #ECF4F9 !important; }
.lang-switch li a[aria-current] { color: var(--blue); font-weight: 600; }
.foot-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .6rem; margin: 0 auto 1.4rem; font-size: .86rem; color: var(--muted, #6A696C); }
.foot-langs a { color: var(--navy, #10104F); text-decoration: none; }
.foot-langs a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 740px) { .lang-switch summary { padding: .58rem .7rem; } .lang-switch summary span { display: none; } }

/* tap-target sizing (accessibility) */
.foot-langs { gap: .55rem .35rem; }
.foot-langs a { display: inline-block; padding: .55rem .7rem; border-radius: 999px; line-height: 1.2; }
.foot-langs a:hover { background: #ECF4F9; text-decoration: none; }
.lang-switch li a { min-height: 44px; display: flex; align-items: center; }
