/* =================================================================
   Modern Expat Magazine — global styles
   Editorial magazine aesthetic: cream paper, heavy condensed display
   type, black ink, generous grids.
   ================================================================= */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --paper:      #ffffff;   /* page background  */
  --paper-soft: #f4efe7;   /* card panels (warm beige) */
  --ink:        #161616;   /* near-black text  */
  --ink-soft:   #565248;   /* secondary text   */
  --line:       #e6e1d6;   /* hairline borders */
  --dark:       #141414;   /* dark feature panel */
  --dark-soft:  #232323;
  --accent:     #161616;   /* buttons          */
  --white:      #ffffff;

  --maxw: 1600px;          /* wider content for more text room */
  --pad: clamp(24px, 4vw, 64px);  /* body side padding */
  --gap: 24px;

  --display: "Anton", "Archivo Black", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* stop iOS bumping text on rotate */
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* fallback for browsers without overflow: clip */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

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

/* prevent long display words from overflowing on narrow screens */
h1, h2, h3, h4 { overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* full-bleed helper: break an element out of the padded container to span
   the entire viewport width */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- display type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 22px;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* =================================================================
   Header / nav
   ================================================================= */
/* Reserve the header slot's height so the JS-injected nav never shifts the
   page down on load or navigation (matches .nav height below). */
#header-slot { min-height: 64px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 22px; }

/* clickable text logo → home : M [E] M with the E boxed and centered */
.nav-logo { display: flex; align-items: center; gap: 7px; }
.nav-logo-letter {
  font-family: var(--display); font-size: 18px; line-height: 1;
  color: var(--ink); text-transform: uppercase;
}
.nav-logo-mark {
  width: 28px; height: 28px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 18px; line-height: 1;
}

.nav-toggle {
  background: none; border: none; cursor: pointer;
  display: none;               /* hidden on desktop — shown only on mobile */
  flex-direction: column; gap: 4px; padding: 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links li { position: relative; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--ink); }
.nav-item--dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-caret {
  width: 12px;
  height: 12px;
  transition: transform .2s ease;
}
.nav-item--dropdown:hover .nav-caret,
.nav-item--dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 208px;
  padding: 10px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  z-index: 60;
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-bottom: 0;
  white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: var(--paper-soft);
}

/* City Guides uses a larger desktop dropdown. Keep it out of the document
   flow until the parent link is hovered or reached with the keyboard. */
.nav-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: -72px;
  width: min(780px, calc(100vw - 2 * var(--pad)));
  max-height: calc(100vh - 82px);
  overflow-y: auto;
  padding: 22px;
  background: var(--paper);
  border: 0;
  box-shadow: none;
  z-index: 60;
}
.nav-item--mega:hover .nav-mega,
.nav-item--mega:focus-within .nav-mega {
  display: block;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 26px;
}
.nav-mega details {
  min-width: 0;
}
.nav-mega summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding-right: 20px;
}
.nav-mega summary::-webkit-details-marker {
  display: none;
}
.nav-mega summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.nav-mega details[open] > summary::after {
  content: "−";
}
.nav-mega-region > summary {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}
.nav-mega-country {
  border-bottom: 1px solid var(--line);
}
.nav-mega-country > summary {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.nav-mega-cities {
  list-style: none;
  padding: 0 0 8px;
}
.nav-links .nav-mega a {
  display: block;
  padding: 6px 8px;
  border: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
.nav-links .nav-mega a:hover,
.nav-links .nav-mega a.active,
.nav-mega summary:hover,
.nav-mega summary.active {
  color: var(--ink);
  background: transparent;
}
.nav-links .nav-mega .nav-mega-country-link {
  font-weight: 700;
}

.nav-divider { width: 1px; height: 18px; background: var(--line); }
.nav-icon { background: none; border: none; cursor: pointer; display: flex; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-meta { display: flex; align-items: center; gap: 18px; }
.nav-meta a { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.site-search-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  width: min(520px, calc(100vw - 2 * var(--pad)));
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.12);
  z-index: 70;
}
.site-search-mobile {
  display: none;
  padding-top: 12px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
}
.site-search-surface { display: grid; gap: 12px; }
.site-search-form { display: grid; gap: 8px; }
.site-search-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-search-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.site-search-input-wrap svg { width: 18px; height: 18px; color: var(--ink-soft); }
.site-search-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.site-search-input-wrap input::placeholder { color: #8a867c; }
.site-search-close {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  color: var(--ink-soft);
}
.site-search-body { display: grid; gap: 12px; }
.site-search-body[hidden] { display: none; }
.site-search-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-search-filters::-webkit-scrollbar { display: none; }
.site-search-filter {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
}
.site-search-filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.site-search-feedback {
  font-size: 13px;
  color: var(--ink-soft);
}
.site-search-results {
  display: grid;
  max-height: 360px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.site-search-result {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.site-search-result:hover strong { text-decoration: underline; }
.site-search-result-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-search-result strong {
  font-size: 16px;
  line-height: 1.35;
}
.site-search-result span:last-child {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.site-search-skeleton {
  display: grid;
  gap: 12px;
  padding: 16px 0;
}
.site-search-skeleton span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20,20,20,.08), rgba(20,20,20,.16), rgba(20,20,20,.08));
  background-size: 220% 100%;
  animation: mem-skeleton-shimmer 1.2s ease-in-out infinite;
}
.site-search-skeleton span:nth-child(2) { width: 82%; }
.site-search-skeleton span:nth-child(3) { width: 64%; }
@keyframes mem-skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-search-skeleton span { animation: none; }
}
@supports (content-visibility: auto) {
  .article-body.city-guide-body > .city-section,
  .article-sources,
  .guide-related,
  .article-faq {
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
  }
}

/* mobile menu */
.nav-mobile {
  display: none;
  position: absolute;
  left: 0; right: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; padding: 12px 0; }
.nav-mobile a {
  display: block; padding: 12px 28px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-mobile a:hover { background: var(--paper-soft); }
.nav-mobile-group > a {
  display: block;
  padding-bottom: 8px;
}
.nav-mobile-submenu {
  list-style: none;
  margin: 0 0 4px;
  padding: 0 0 6px 14px;
}
.nav-mobile-submenu a {
  padding: 10px 28px 10px 42px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.nav-mobile-submenu a.active {
  color: var(--ink);
}

/* =================================================================
   Hero / masthead
   ================================================================= */
.hero {
  /* full-bleed: span the entire viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) 1.5fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  padding: 10px 0 56px;
  /* align the masthead with the padded body below, image bleeds to the right edge */
  padding-left: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
}
.masthead { align-self: center; }
.masthead .display {
  font-size: clamp(64px, 9.5vw, 150px);
}
.masthead-title {
  display: grid;
  gap: 10px;
}
.masthead-subtitle {
  font-family: var(--body);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* "MAGAZINE" set vertically (rotated 90deg clockwise), running down the
   right side of the T in EXPAT, bottom sitting on the EXPAT baseline. */
.mast-expat { position: relative; display: inline-block; }
.mast-mag {
  position: absolute;
  left: 100%;
  top: 0.13em;
  margin-left: 0.04em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.15em;
  letter-spacing: 0.07em;
  line-height: 1;
  color: var(--ink);
}
.masthead-edition {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 18px;
}
.masthead-edition svg { width: 14px; height: 14px; }
.masthead p.lede {
  margin: 22px 0 28px;
  font-size: 16px; color: var(--ink-soft); max-width: 320px;
}

.hero-feature {
  position: relative;
  min-height: clamp(440px, 58vh, 640px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  color: var(--white);
  text-decoration: none;
}
.hero-feature img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-feature picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-feature::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
}
.hero-feature-body { position: relative; z-index: 2; padding: 34px; max-width: 460px; }
.hero-feature-body .eyebrow { color: rgba(255,255,255,.85); }
.hero-feature-body h2 {
  font-family: var(--display); font-weight: 400; line-height: 0.98;
  font-size: clamp(26px, 3vw, 36px); text-transform: none; margin: 14px 0 12px;
  letter-spacing: 0;
  color: var(--white);
}
.hero-feature-body p { font-size: 14px; color: rgba(255,255,255,.82); margin-bottom: 18px; max-width: 360px; }
.hero-feature-body .link-arrow { color: var(--white); }

/* =================================================================
   Section scaffolding
   ================================================================= */
section { padding: 18px 0; }
.section-rule { border: 0; border-top: 1px solid var(--line); margin: 8px 0 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.section-head h2.display { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 14px; color: var(--ink-soft); max-width: 220px; margin-top: 14px; }
.section-head--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.section-head--stack p { max-width: 560px; margin-top: 0; font-size: 15px; }

/* ---------- homepage YouTube feature ---------- */
.watch-feature {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.6fr);
  background: var(--dark);
  color: var(--white);
  margin: 6px 0 42px;
  padding: 0;
}
.watch-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 58px);
}
.watch-feature .eyebrow { color: rgba(255,255,255,.62); }
.watch-feature h2 {
  font-size: clamp(44px, 4.5vw, 64px);
  overflow-wrap: normal;
  word-break: normal;
  margin: 14px 0 20px;
}
.watch-feature-copy > p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
  max-width: 38ch;
}
.watch-feature-copy h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-top: 28px;
  max-width: 32ch;
}
.watch-feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.watch-subscribe {
  background: var(--white);
  color: var(--ink);
}
.watch-subscribe:hover {
  background: var(--paper-soft);
  color: var(--ink);
}
.watch-subscribe svg { width: 20px; }
.watch-feature .link-arrow { color: var(--white); }
.watch-player {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: #000;
  align-self: center;
}
.watch-player-launch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.watch-player-launch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.watch-player-launch:hover img { transform: scale(1.025); }
.watch-player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.68), transparent 48%);
}
.watch-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(62px, 7vw, 92px);
  height: clamp(62px, 7vw, 92px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background .2s ease;
}
.watch-player-launch:hover .watch-play {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.06);
}
.watch-play svg { width: 36%; margin-left: 5%; }
.watch-player-label {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.watch-player-label strong { font-size: 13px; }
.watch-player-label span { color: rgba(255,255,255,.72); }
.watch-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Instagram preview ---------- */
.instagram-preview {
  margin: 0 0 42px;
  padding: 0;
}
.instagram-preview-shell {
  padding: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.05), transparent 34%),
    linear-gradient(180deg, #181818 0%, #0f0f10 100%);
  border: 1px solid rgba(22,22,22,.12);
  box-shadow: 0 26px 60px rgba(0,0,0,.12);
  color: #fff;
}
.instagram-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.instagram-preview-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.instagram-preview-avatar {
  display: block;
  width: clamp(68px, 7vw, 92px);
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  background: #f4efe7;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
  flex: 0 0 auto;
}
.instagram-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instagram-preview-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.instagram-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}
.instagram-preview-name {
  display: block;
  font-family: var(--body);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #fff;
}
.instagram-preview-handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
}
.instagram-preview-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.instagram-preview-follow:hover {
  background: rgba(255,255,255,.08);
  border-color: #fff;
  transform: translateY(-1px);
}
.instagram-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 28px;
}
.instagram-card {
  min-width: 0;
}
.instagram-card-link {
  display: block;
  color: #fff;
}
.instagram-card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #181818;
}
.instagram-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .2s ease;
}
.instagram-card:hover .instagram-card-media img {
  transform: scale(1.025);
  filter: saturate(1.05);
}
.instagram-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: linear-gradient(160deg, #333 0%, #111 100%);
}
.instagram-card-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15,15,15,.48);
  color: #fff;
  backdrop-filter: blur(8px);
}
.instagram-card-badge svg {
  width: 14px;
  height: 14px;
}
.instagram-card-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.46) 100%);
  opacity: 0;
  transition: opacity .18s ease;
}
.instagram-card:hover .instagram-card-hover,
.instagram-card-link:focus-visible .instagram-card-hover {
  opacity: 1;
}
.instagram-card-hover span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
[data-instagram-feed][data-loading="true"] .instagram-preview-grid {
  min-height: 220px;
}
[data-instagram-feed][data-loading="true"] .instagram-preview-shell {
  opacity: 0.92;
}

/* ---------- stories grid ---------- */
.stories {
  display: grid;
  grid-template-columns: 0.8fr repeat(4, 1fr);
  gap: 26px;
  align-items: start;
}
.stories .intro h2 { margin-bottom: 20px; line-height: 1; }
.stories .intro p { line-height: 1.6; }
.card-article figure { position: relative; overflow: hidden; aspect-ratio: 16/11; margin-bottom: 14px; }
.card-article img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-article:hover img { transform: scale(1.04); }
.card-tag {
  position: absolute; left: 0; bottom: 0;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 9px;
}
.card-article h3 {
  font-size: 16px; font-weight: 700; line-height: 1.25; margin-bottom: 8px;
}
.card-article p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.stories .card-article {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.stories .card-article figure {
  flex: 0 0 auto;
}
.stories .card-article h3,
.stories .card-article p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.stories .card-article h3 {
  -webkit-line-clamp: 2;
}
.stories .card-article p {
  -webkit-line-clamp: 3;
  flex: 1 1 auto;
}
.stories .card-article .link-arrow {
  margin-top: auto;
}
[data-max-posts="4"] > .card-article:nth-of-type(n + 5) {
  display: none;
}

/* ---------- destination article rails ---------- */
.article-rail {
  padding: 42px 0 52px;
  border-top: 1px solid var(--line);
}
.rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.rail-head h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 48px);
  line-height: .95;
}
.rail-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 2px 2px 16px;
}
.rail-track .card-article {
  min-width: 0;
}
.rail-track .card-article figure {
  aspect-ratio: 16 / 10;
}
@media (max-width: 760px) {
  .rail-head {
    align-items: start;
    flex-direction: column;
  }
  .rail-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(78vw, 1fr);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .rail-track .card-article {
    scroll-snap-align: start;
  }
}

/* =================================================================
   Events + Join split
   ================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 26px 0;
}
.split--partners-services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 8px;
  align-items: stretch;
}

.panel {
  background: var(--paper-soft);
  padding: 30px;
}
.split--partners-services .panel {
  padding: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.panel-head h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.panel-head--events {
  align-items: flex-end;
  gap: 18px;
}
.panel-head--events > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.panel-note {
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 460px;
}
.events-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 220px;
}
.events-date-field {
  display: grid;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.events-date-field input {
  width: 100%;
  min-width: 220px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
}
.events-clear {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.events-clear:hover { background: var(--ink); color: var(--white); }
.events-clear[hidden] { display: none; }
.events-list-shell {
  max-height: min(640px, 88vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 8px;
  margin-right: -8px;
}

/* event rows (rendered by events.js) */
.event-row {
  display: grid;
  grid-template-columns: 54px 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.event-row:first-of-type { border-top: 0; }
.event-date {
  text-align: center; line-height: 1;
}
.event-date .m { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.event-date .d { font-family: var(--display); font-size: 30px; }
.event-thumb { width: 64px; height: 46px; object-fit: cover; }
.event-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.event-info .meta { font-size: 12px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 12px; }
.event-info .meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-info .meta svg { width: 12px; height: 12px; }
.event-cta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap;
}
.events-status {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 14px 0 0;
}
.events-status:empty { display: none; }

/* Join SocialGryd dark card */
.join {
  background: var(--dark);
  color: var(--white);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.join--events {
  align-content: start;
  align-self: start;
}
.join .eyebrow { color: rgba(255,255,255,.6); }
.join h3 { font-family: var(--display); font-weight: 400; font-size: 38px; margin: 12px 0 14px; }
.join > div > p { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 18px; max-width: 240px; }
.join ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.join li { font-size: 13px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); }
.join li svg { width: 15px; height: 15px; color: #fff; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
/* clean, readable buttons (replaces the low-contrast official badges) */
.store-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--ink); border-radius: 8px; text-decoration: none;
  padding: 11px 18px; transition: background .2s ease, transform .15s ease;
}
.store-badge:hover { background: #ececec; transform: translateY(-1px); }
.store-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-badge .s { display: none; }   /* drop the tiny unreadable "download on the" line */
.store-badge .b { font-size: 14px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
/* never let the article-body link styles add an underline / beige hover to buttons */
.article-body .store-badge { text-decoration: none; }
.article-body .store-badge:hover { background: #ececec; }

/* real app screenshot in a contained phone frame, centred with even padding */
.phone-mock {
  align-self: center;
  justify-self: center;
  width: 168px;
  border: 7px solid #161616;
  border-radius: 28px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.phone-shot { width: 100%; display: block; }

/* Meetups join: original 2-col size, content distributed to fill the tall box.
   Text + stat row stack in the left column (top and bottom); phone stays small,
   centred in the right column. */
.join--meetups {
  align-content: space-between;
  row-gap: 24px;
}
.join--meetups .join-top { grid-column: 1; }
.join--meetups .join-meta {
  grid-column: 1;
  display: flex; flex-wrap: wrap; gap: 24px 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.join--meetups .jm { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.35; }
.join--meetups .jm strong {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: 25px; color: #fff; letter-spacing: 0.01em; margin-bottom: 2px;
}
.join--meetups .phone-mock {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
}

/* =================================================================
   Guides + Explore
   ================================================================= */
.guide-card figure { aspect-ratio: 16/11; overflow: hidden; margin-bottom: 12px; }
.guide-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.guide-card:hover img { transform: scale(1.04); }
.guide-card .eyebrow { font-size: 10px; }
.guide-card h3,
.guide-card h4 { font-size: 15px; font-weight: 700; margin: 7px 0 6px; line-height: 1.25; }
.guide-card p { font-size: 12px; color: var(--ink-soft); }
.guide-card-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.guide-card-brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.guide-card-brand-strip img {
  display: block;
  width: auto;
  height: 18px;
  max-width: 82px;
  object-fit: contain;
}

.col-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.col-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.city-guides-home { align-items: start; }

.city-card figure { aspect-ratio: 16/11; overflow: hidden; margin-bottom: 12px; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.city-card:hover img { transform: scale(1.04); }
.city-card h4 { font-family: var(--display); font-weight: 400; font-size: 22px; }
.city-card span { font-size: 12px; color: var(--ink-soft); }

.community-groups { margin-top: 10px; }
.community-card {
  display: block;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.community-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 22, 22, 0.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.community-card .eyebrow { display: inline-block; margin-bottom: 10px; }
.community-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 0.96;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.community-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 30ch;
}
.community-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.community-action::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* =================================================================
   Newsletter strip + footer
   ================================================================= */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 40px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 40px; align-items: start;
  padding-bottom: 40px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-mark { gap: 6px; margin-top: 2px; }
.footer-mark .nav-logo-letter, .footer-mark .nav-logo-mark { font-size: 22px; }
.footer-mark .nav-logo-mark { width: 32px; height: 32px; }
.footer-brand h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand p { font-size: 13px; color: var(--ink-soft); margin-top: 6px; max-width: 220px; }

.footer-news h5 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.footer-news p { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.footer-consent {
  max-width: 340px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.footer-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-form { display: flex; max-width: 340px; }
.news-form input {
  flex: 1; border: 1px solid var(--line); background: var(--white);
  padding: 12px 14px; font-size: 13px; font-family: var(--body);
}
.news-form button {
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  padding: 0 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(229, 255, 111, 0.18), transparent 28%),
    rgba(22, 22, 22, 0.98);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
.cookie-banner p {
  max-width: 820px;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner strong {
  color: #fff;
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}
.cookie-banner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;
}
.cookie-banner-actions button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cookie-banner-accept {
  background: #e5ff6f !important;
  color: #111 !important;
  border-color: #e5ff6f !important;
  box-shadow: 0 12px 28px rgba(229, 255, 111, 0.22);
  padding: 13px 18px !important;
}
.cookie-banner-reject {
  color: rgba(255, 255, 255, 0.62) !important;
  border-color: transparent !important;
}
.cookie-banner-reject:hover,
.cookie-banner-accept:hover {
  transform: translateY(-1px);
}
.form-consent {
  margin-top: 12px;
  max-width: 640px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.form-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-social { display: flex; gap: 14px; justify-content: flex-end; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }

.footer-bar {
  background: var(--ink); color: rgba(255,255,255,.7);
  margin-top: 6px;
}
.footer-bar .container { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.footer-bar p { font-size: 12px; }
.footer-bar nav { display: flex; gap: 22px; }
.footer-bar nav a { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.footer-bar nav a:hover { color: #fff; }

/* =================================================================
   Interior page header band
   ================================================================= */
.page-band { padding: 40px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.page-band .eyebrow { margin-bottom: 14px; display: block; }
.page-band h1.display { font-size: clamp(48px, 7vw, 92px); }
.page-band p { font-size: 16px; color: var(--ink-soft); max-width: 540px; margin-top: 18px; }
.page-band--compact { padding-bottom: 20px; margin-bottom: 24px; }
.page-band--partners {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: end;
}
.policy-page { max-width: 920px; }
.policy-body {
  font-size: 16px;
  line-height: 1.75;
  color: #24221d;
  padding-bottom: 64px;
}
.policy-body > p:first-of-type::first-letter {
  float: none;
  font: inherit;
  line-height: inherit;
  padding: 0;
  color: inherit;
}
.policy-body h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.05;
  margin: 42px 0 14px;
}
.policy-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.policy-body p {
  margin-bottom: 18px;
}
.policy-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policy-body .callout {
  margin: 28px 0;
}
.policy-cookie-list {
  margin-left: 22px;
}
.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* Keep policy pages aligned with the editorial article template. */
.policy-page .article-head,
.policy-page .article-body {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.partners-hero-summary {
  display: grid;
  gap: 12px;
}
.hero-stat {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 18px 20px;
}
.hero-stat span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.hero-stat strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 40px; }
.article-grid .card-article figure { aspect-ratio: 16/11; }

/* ---------- country article archive ---------- */
.article-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  padding-bottom: 40px;
}
.article-archive-grid .card-article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}
.article-archive-grid .card-article[hidden] {
  display: none;
}
.article-archive-grid .card-article figure {
  aspect-ratio: 16 / 11;
  margin-bottom: 12px;
}

.interview-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 260px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #171717 0%, #39332d 55%, #bd9161 100%);
}

.interview-placeholder div {
  display: grid;
  gap: 10px;
}

.interview-placeholder span:first-child {
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 700;
}

.interview-placeholder strong {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(30px, 5vw, 54px);
  line-height: .88;
  letter-spacing: .02em;
}
.article-archive-grid .card-article h3 {
  font-size: 15px;
  line-height: 1.25;
}
.article-archive-grid .card-article p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  flex: 1 1 auto;
}
.article-archive-grid .card-article .link-arrow {
  margin-top: auto;
}

.feature-lead {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px;
  align-items: center; margin-bottom: 44px;
}
.feature-lead figure { aspect-ratio: 16/10; overflow: hidden; }
.feature-lead img { width: 100%; height: 100%; object-fit: cover; }
.feature-lead h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px,4vw,46px); line-height: 0.96; margin-bottom: 16px; }
.feature-lead p { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }

/* =================================================================
   Article / blog post  —  standard editorial template
   ================================================================= */
.article { max-width: 800px; margin: 0 auto; padding: 8px 0 64px; }

.article-back { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px; color: var(--ink-soft); }
.article-back:hover { color: var(--ink); }
.article-back svg { width: 15px; height: 15px; }

.article-jump-links {
  display: grid;
  gap: 14px;
  margin: 26px 0 34px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%);
}
.article-jump-links-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.article-jump-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-jump-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1.25;
}
.article-jump-links a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* header — centred, magazine masthead feel */
.article-head { text-align: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.article-head .eyebrow { display: block; margin-bottom: 18px; }
.article-head h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 0.94; letter-spacing: -0.01em;
}
.article-standfirst { font-size: 19px; line-height: 1.5; color: var(--ink-soft); max-width: 600px; margin: 18px auto 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.article-meta .by { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.byline-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); opacity: .5; }
.article-refresh {
  max-width: 620px;
  margin: 12px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.article-hero { margin: 0 0 36px; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-hero picture { height: auto; aspect-ratio: 16/9; overflow: hidden; }
.article-hero picture img { display: block; width: 100%; height: 100%; }
.article-hero figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 9px; text-align: center; }

/* body prose */
.article-body { font-size: 19px; line-height: 1.72; color: #24221d; }
.article-body > p { margin-bottom: 24px; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 400; float: left;
  font-size: 64px; line-height: 0.8; padding: 6px 12px 0 0; color: var(--ink);
}
.article-body h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.01em; line-height: 1.05;
  margin: 44px 0 16px;
}
.article-body h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 24px 22px; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body a:hover { background: var(--paper-soft); }
.article-body strong { font-weight: 700; }

/* pull quote — editorial, not a code blockquote */
.article-body blockquote {
  margin: 36px 0; padding-top: 22px; border-top: 2px solid var(--ink); text-align: center;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.32; font-weight: 500; color: var(--ink);
}

/* sidebar callout */
.article-body .callout {
  background: var(--paper-soft); padding: 24px 26px; margin: 32px 0; font-size: 16px; line-height: 1.62;
  border-left: 3px solid var(--ink);
}
.article-body .callout strong { display: block; margin-bottom: 7px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

.article-body .cost-table-wrap {
  margin: 22px 0 10px;
}
.article-body .cost-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.article-body .cost-table th,
.article-body .cost-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body .cost-table th {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.article-body .cost-table td:nth-child(n + 2),
.article-body .cost-table th:nth-child(n + 2) {
  text-align: right;
}
.article-body .cost-table tbody tr:last-child td { border-bottom: 0; }
.article-body .cost-note {
  margin: 8px 0 24px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.article-body .cost-table td,
.article-body .cost-table th {
  overflow-wrap: anywhere;
  word-break: normal;
}
.article-body .cost-table td:first-child,
.article-body .cost-table th:first-child {
  width: 18%;
}
.article-body .cost-table td:nth-child(2),
.article-body .cost-table th:nth-child(2) {
  width: 17%;
}
.article-body .cost-table td:nth-child(3),
.article-body .cost-table th:nth-child(3) {
  width: 20%;
}
.article-body .cost-table td:nth-child(4),
.article-body .cost-table th:nth-child(4),
.article-body .cost-table td:nth-child(5),
.article-body .cost-table th:nth-child(5) {
  width: 22.5%;
}
@media (max-width: 680px) {
  .article-body .cost-table {
    font-size: 14px;
  }
  .article-body .cost-table th,
  .article-body .cost-table td {
    padding: 12px 9px;
  }
}
@media (max-width: 560px) {
  .article-body .cost-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .article-body .cost-table {
    min-width: 540px;
    table-layout: auto;
  }
  .article-body .cost-table th,
  .article-body .cost-table td {
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* interview Q&A */
.article-body .iv-q {
  font-weight: 700; font-size: 21px; line-height: 1.32; color: var(--ink);
  margin: 42px 0 14px; padding-top: 28px; border-top: 1px solid var(--line);
}
.article-body .iv-q::before {
  content: "Q"; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin: 0 12px 2px 0; vertical-align: middle;
  font-family: var(--display); font-weight: 400; font-size: 14px;
  background: var(--ink); color: #fff; border-radius: 50%;
}
/* inline article images */
.article-body .article-figure { margin: 36px 0; }
.article-body .article-figure img { width: 100%; display: block; object-fit: cover; aspect-ratio: 3/2; }
.article-body .article-figure figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 9px; text-align: center; }
.article-body .article-figure--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.article-body .article-figure--row img { aspect-ratio: 4/5; }
.article-body .article-figure--row figcaption { grid-column: 1 / -1; }
@media (max-width: 560px) { .article-body .article-figure--row { grid-template-columns: 1fr; } }

.article-body .logo-strip {
  display: block;
  background: linear-gradient(180deg, #faf8f2 0%, #f4efe7 100%);
  border: 1px solid var(--line);
  padding: 18px;
}
.article-body .logo-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.article-body .logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.article-body .logo-card img {
  width: 100%;
  max-width: 220px;
  height: 56px;
  display: block;
  object-fit: contain;
  aspect-ratio: auto;
}
.article-body .tool-card {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
  min-height: auto;
  text-align: left;
}
.article-body .tool-card img {
  width: 44px;
  height: 44px;
  max-width: none;
}
.article-body .tool-card-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
  margin-bottom: 4px;
}
.article-body .tool-card-copy p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.article-body .tool-card-links {
  display: grid;
  gap: 6px;
}
.article-body .tool-card .link-arrow {
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.11em;
}
.article-body .brand-strip .tool-card img {
  width: auto;
  height: 42px;
  max-width: 180px;
}
.article-body .video-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}
.article-body .video-card-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
@media (max-width: 560px) {
  .article-body .logo-strip-grid { grid-template-columns: 1fr; }
  .article-body .logo-strip { padding: 14px; }
  .article-body .logo-card { min-height: 104px; }
  .article-body .logo-card img { max-width: 180px; height: 50px; }
  .article-body .tool-card img { width: 40px; height: 40px; }
  .article-body .tool-card-copy strong { font-size: 17px; }
  .article-body .brand-strip .tool-card img {
    width: auto;
    height: 36px;
    max-width: 150px;
  }
  .article-body .video-card-media {
    aspect-ratio: 16 / 10;
  }
}

.article-body .stack-board {
  margin: 38px 0 12px;
}
.article-body .stack-board-head h2 {
  margin-top: 0;
  margin-bottom: 0;
}
.article-body .stack-board-head p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
}
.article-body .stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.article-body .stack-card {
  --accent: var(--ink);
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.article-body .stack-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.article-body .stack-card-head img {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.article-body .stack-card-head strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
}
.article-body .stack-card-head span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.article-body .stack-mockup {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  min-height: 132px;
  margin-bottom: 12px;
  background:
    linear-gradient(180deg, #fcfaf5 0%, #fff 100%);
}
.article-body .stack-mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.article-body .stack-mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(20,20,20,.16);
}
.article-body .stack-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(20,20,20,.10);
  margin-bottom: 8px;
}
.article-body .stack-line--lg { width: 82%; }
.article-body .stack-line--md { width: 62%; }
.article-body .stack-line--sm { width: 44%; }
.article-body .stack-gridlines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.article-body .stack-gridlines span {
  min-height: 36px;
  border: 1px solid rgba(20,20,20,.08);
  border-radius: 10px;
  background: rgba(20,20,20,.04);
}
.article-body .stack-mockup-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(100px, .65fr);
  gap: 10px;
}
.article-body .stack-mockup-canvas {
  position: relative;
  min-height: 96px;
  border: 1px solid rgba(20,20,20,.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.98) 100%),
    linear-gradient(135deg, rgba(0,196,204,.12), rgba(0,196,204,.03));
}
.article-body .stack-mockup-canvas::before,
.article-body .stack-mockup-canvas::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  border-radius: 10px;
  background: rgba(20,20,20,.08);
}
.article-body .stack-mockup-canvas::before {
  top: 14px;
  height: 14px;
}
.article-body .stack-mockup-canvas::after {
  bottom: 14px;
  height: 38px;
  background: rgba(20,20,20,.06);
}
.article-body .stack-mockup-sidebar {
  display: grid;
  gap: 8px;
  align-content: start;
}
.article-body .stack-mockup-sidebar span {
  display: block;
  height: 18px;
  border-radius: 8px;
  background: rgba(20,20,20,.08);
}
.article-body .stack-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.article-body .stack-pipeline span {
  min-height: 44px;
  border: 1px solid rgba(20,20,20,.08);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(20,20,20,.04);
}
.article-body .stack-card p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.article-body .stack-card .link-arrow {
  text-decoration: none;
  font-size: 11px;
}
.article-body .tool-strip .logo-strip-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (max-width: 760px) {
  .article-body .stack-grid { grid-template-columns: 1fr; }
}

.article-faq { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 32px; }
.article-faq h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; margin-bottom: 18px; }
.article-faq details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.article-faq summary { font-weight: 700; cursor: pointer; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.article-faq summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.article-faq details[open] summary::after { content: "\2013"; }
.article-faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.62; }

.article-answer {
  margin: 26px 0 8px;
  padding: 18px 20px;
  border-left: 4px solid var(--lime);
  background: var(--beige);
}
.article-answer > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-answer p { margin: 0; font-size: 17px; line-height: 1.6; }

.article-sources {
  margin-top: 42px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
}
.article-sources h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
}
.article-sources > p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.article-sources ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.article-sources li { padding-left: 4px; font-size: 14px; line-height: 1.45; }
.article-sources li a { color: var(--ink); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-sources li span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }

@media (max-width: 640px) {
  .article-answer { padding: 16px; }
  .article-sources { padding: 20px 18px; }
}

.article-author-card {
  margin-top: 34px;
  padding: 24px 26px;
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}
.article-author-card .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.article-author-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-soft);
}
.article-author-card strong,
.article-author-card a {
  color: var(--ink);
}
.article-author-card a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-related {
  margin-top: 34px;
  padding-top: 4px;
}
.article-related .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.article-related h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1;
  margin-bottom: 16px;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.article-related-grid a {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%);
  color: var(--ink);
  text-decoration: none;
}
.article-related-grid a:hover {
  border-color: var(--ink);
}
.article-related-grid strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}
.article-related-grid span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .article-related-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   CTA blocks (reusable across articles) + lead forms → Firestore
   ================================================================= */
.article-cta { padding: 34px; margin: 46px 0 0; text-align: center; }
.article-cta .eyebrow { display: block; margin-bottom: 12px; }
.article-cta h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 10px; line-height: 1; }
.article-cta p { font-size: 15px; margin: 0 auto 20px; max-width: 460px; line-height: 1.55; }

.article-cta--dark { background: var(--dark); color: #fff; }
.article-cta--dark .eyebrow { color: rgba(255,255,255,.55); }
.article-cta--dark p { color: rgba(255,255,255,.78); }
.article-cta--dark .btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid #fff;
}
.article-cta--dark .btn:hover {
  background: var(--paper-soft);
  color: var(--ink);
}
.article-cta--dark .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.72);
}
.article-cta--dark .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.article-cta--dark .btn:focus-visible {
  outline: 3px solid #e5ff6f;
  outline-offset: 4px;
}

.remote-work-cta {
  margin-top: 22px;
  padding: clamp(32px, 4vw, 44px);
}
.remote-work-cta h3 {
  max-width: 15ch;
  margin-left: auto;
  margin-right: auto;
}
.remote-work-cta p {
  max-width: 620px;
  margin-bottom: 22px;
}
.remote-work-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.remote-work-community {
  max-width: 920px;
  padding-top: 22px;
  padding-bottom: 0;
}
.remote-work-community-head {
  margin-bottom: 24px;
}
.remote-work-community-head p {
  max-width: 660px;
}

.article-cta--beige { background: var(--paper-soft); color: var(--ink); }
.article-cta--beige p { color: var(--ink-soft); }
.article-cta .cta-disclosure {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.article-cta--jenny { text-align: left; }
.article-cta--jenny .jenny-promo-banner {
  display: grid;
  grid-template-columns: minmax(340px, 1.3fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: center;
}
.article-cta--jenny .jenny-promo-banner img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 14px 30px rgba(23, 23, 23, 0.12);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.article-cta--jenny .jenny-promo-copy .eyebrow { margin-bottom: 12px; }
.article-cta--jenny .jenny-promo-copy h3 { text-align: left; }
.article-cta--jenny .jenny-promo-copy p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.article-cta--jenny .jenny-promo-copy .link-arrow { display: inline-flex; }

/* lead-capture form (contact / insurance quote / etc.) */
.cta-form { max-width: 460px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.cta-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: inherit; opacity: .8; margin-bottom: 4px; display: block; }
.cta-form input, .cta-form textarea, .cta-form select {
  width: 100%; font-family: var(--body); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0;
}
.form-honeypot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.select-field { position: relative; }
.select-field::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  opacity: .85;
}
.cta-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 48px;
  padding-right: 44px;
  background: #fff;
}
.article-cta--dark .cta-form input, .article-cta--dark .cta-form textarea, .article-cta--dark .cta-form select { border-color: #3a3a3a; background: #1e1e1e; color: #fff; }
.article-cta--dark .cta-form select {
  background: #1e1e1e !important;
  color-scheme: dark;
}
.article-cta--dark .select-field::after { color: #fff; }
.cta-form textarea { min-height: 90px; resize: vertical; }
.cta-form button {
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 15px 22px;
}
.article-cta--dark .cta-form button { background: #fff; color: var(--ink); }
.cta-form button:hover { opacity: .9; }
.cta-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.45; opacity: .85; }
.cta-consent input { width: auto; margin-top: 2px; }
.cta-note { font-size: 12px; opacity: .7; margin-top: 4px; }
@media (max-width: 560px) { .cta-form .row2 { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .article-cta--jenny .jenny-promo-banner { grid-template-columns: 1fr; }
  .remote-work-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .remote-work-cta-actions .btn,
  .remote-work-cta-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}
.portfolio-proof { display: grid; gap: 12px; margin: 0 0 22px; text-align: left; }
.portfolio-proof-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.portfolio-proof-head strong { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.portfolio-proof-head a { color: rgba(255,255,255,.78); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.portfolio-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.portfolio-proof-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-decoration: none; color: #fff; padding: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); min-height: 100%; }
.portfolio-proof-item:hover { background: rgba(255,255,255,.07); }
.portfolio-proof-item img { width: 100%; aspect-ratio: 16/11; object-fit: cover; display: block; }
.portfolio-proof-copy small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.56); margin-bottom: 4px; }
.portfolio-proof-copy strong { display: block; font-size: 15px; line-height: 1.2; margin-bottom: 4px; }
.portfolio-proof-copy span { display: block; font-size: 13px; color: rgba(255,255,255,.74); line-height: 1.35; }
.portfolio-proof-copy .portfolio-proof-stat { display: inline-flex; width: fit-content; margin-top: 6px; padding: 6px 9px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.services-showcase { margin: 0 0 22px; }
.services-showcase img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.partners-service-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 0.98; margin: 10px 0 14px; }
.partners-service-title--main { margin-top: 10px; }
.partners-service-title--tight { margin-top: 22px; }
.partners-service-body { font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.55; }
.partners-panel-foot { margin-top: auto; font-size: 15px; color: var(--ink-soft); padding-top: 18px; }
.partners-contact { margin: 8px 0 34px; }
.partners-contact .cta-form { max-width: none; }
@media (max-width: 560px) {
  .portfolio-proof-grid { grid-template-columns: 1fr; }
  .portfolio-proof-item { grid-template-columns: 82px 1fr; gap: 10px; }
  .partners-service-title { font-size: 28px; }
  .partners-service-body, .partners-panel-foot { font-size: 15px; }
  .partners-service-title--main { margin-top: 10px; }
  .partners-service-title--tight { margin-top: 16px; }
}

/* slim inline app banner — drop in mid-article */
.app-inline {
  display: flex; align-items: center; gap: 22px;
  background: var(--dark); color: #fff; padding: 22px 26px; margin: 40px 0; flex-wrap: wrap;
}
.app-inline-icon { width: 52px; height: 52px; flex-shrink: 0; display: block; border-radius: 12px; background: #F7F3EA; }

/* SocialGryd app icon beside the heading (Join cards + article CTAs) */
.join-icon { width: 64px; height: 64px; border-radius: 15px; display: block; flex-shrink: 0; background: #F7F3EA; }
.article-cta .cta-app-icon { width: 56px; height: 56px; border-radius: 13px; display: block; flex-shrink: 0; background: #F7F3EA; }
.join-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.join-head > div h3 { margin: 0; line-height: 1; }
.join-head > div .eyebrow { display: block; margin-top: 9px; }
.cta-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; text-align: left; }
.cta-head > div h3 { margin: 0; line-height: 1; }
.cta-head > div .eyebrow { display: block; margin-bottom: 6px; }
.app-inline-txt { flex: 1 1 260px; }
.app-inline-kicker { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 5px; }
.app-inline-txt p { font-size: 15px; line-height: 1.45; margin: 0; color: rgba(255,255,255,.9); }
.app-inline-txt strong { font-weight: 700; color: #fff; }
.app-inline .store-badges { flex-wrap: wrap; align-self: center; }

.hot-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  background: #e5ff6f;
  color: #141414;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
@keyframes hotPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.card-article[data-hot-rank="1"] .hot-badge { animation: hotPulse 2.8s ease-in-out infinite; }

@media (max-width: 640px) {
  .app-inline { gap: 16px; padding: 20px; }
  .app-inline-icon { display: none; }
}

/* article cards that carry a real thumbnail + meta on listings */
.card-article .card-meta { font-size: 11px; color: var(--ink-soft); margin-top: 8px; letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 560px) {
  .article-body { font-size: 16px; }
}

/* =================================================================
   Article filter chips (Articles hub)
   ================================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.filter-bar .chip { cursor: pointer; font-family: var(--body); -webkit-appearance: none; appearance: none; transition: background .15s, color .15s, border-color .15s; }
.filter-bar .chip.is-active { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.filter-bar .chip-ghost:hover { border-color: var(--ink); }
.filter-empty { text-align: center; color: var(--ink-soft); font-size: 15px; padding: 30px 0 10px; }
.filter-empty a { color: var(--ink); font-weight: 600; }

/* =================================================================
   Meetups feature (Communities page)
   ================================================================= */
.meetup-steps { display: grid; gap: 16px; margin: 4px 0 24px; }
.meetup-step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.meetup-step .n {
  width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.meetup-step h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.meetup-step p { font-size: 13.5px; color: var(--ink-soft); }

.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar { background: var(--paper-soft); padding: 18px; }
.pillar h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.pillar p { font-size: 12.5px; color: var(--ink-soft); }

.meetup-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 8px 13px; border-radius: 100px;
}
.chip-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1280px) {
  .instagram-preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  #header-slot { min-height: 130px; }
  .site-header.scrolled .site-search-mobile { display: none; }
  .hero { grid-template-columns: 1fr; padding-left: var(--pad); padding-right: var(--pad); gap: 28px; }
  .masthead { align-self: start; }
  .hero-feature { min-height: 420px; }
  .watch-feature { grid-template-columns: 1fr; }
  .watch-feature-copy { padding: 34px; }
  .watch-feature-copy h3 { max-width: 42ch; }
  .instagram-preview-head { flex-direction: column; align-items: flex-start; }
  .instagram-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stories { grid-template-columns: repeat(2, 1fr); }
  .stories .intro { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .page-band--partners { grid-template-columns: 1fr; gap: 16px; }
  .join { grid-template-columns: 1fr; }
  .phone-mock { display: none; }
  .col-4 { grid-template-columns: repeat(2, 1fr); }
  .col-3 { grid-template-columns: 1fr; }
  .city-guides-home { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-social { justify-content: flex-start; }
  .article-grid { grid-template-columns: 1fr; }
  .article-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-lead { grid-template-columns: 1fr; }
  .nav-links, .nav-meta { display: none; }
  .nav-toggle { display: flex; }     /* hamburger appears on mobile */
  .nav-icon--search,
  .nav-divider { display: none; }
  .site-search-mobile { display: block; }
  .site-search-panel { display: none !important; }
  .panel-head--events { flex-direction: column; align-items: stretch; }
  .events-tools { justify-items: stretch; min-width: 0; width: 100%; }
  .events-date-field input { min-width: 0; }
}
@media (max-width: 560px) {
  #header-slot { min-height: 168px; }
  .masthead .display { font-size: clamp(70px, 18vw, 76px); line-height: .92; }
  .watch-feature { margin-bottom: 30px; }
  .watch-feature-copy { padding: 28px 22px 30px; }
  .watch-feature h2 { font-size: clamp(44px, 14vw, 64px); }
  .watch-feature-actions { align-items: flex-start; flex-direction: column; }
  .instagram-preview { margin-bottom: 30px; }
  .instagram-preview-shell { padding: 24px var(--pad); }
  .instagram-preview-head { gap: 18px; }
  .instagram-preview-profile { align-items: flex-start; gap: 14px; }
  .instagram-preview-meta { gap: 6px; }
  .instagram-preview-avatar { width: 64px; }
  .instagram-preview-name { font-size: 20px; }
  .instagram-preview-handle { font-size: 16px; }
  .instagram-preview-follow {
    width: 100%;
    min-height: 48px;
  }
  .instagram-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    gap: 8px;
    margin-top: 22px;
    padding-bottom: 0;
  }
  .instagram-card-badge {
    right: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
  }
  .instagram-card-badge svg { width: 12px; height: 12px; }
  .watch-player-label { left: 18px; bottom: 16px; }
  .stories { grid-template-columns: 1fr; }
  .article-archive-grid { grid-template-columns: 1fr; }
  .col-4 { grid-template-columns: 1fr 1fr; }     /* keep city cards two-up */
  .pillar-grid { grid-template-columns: 1fr; }   /* meetup pillars stack */
  .event-row { grid-template-columns: 48px 1fr; }
  .event-thumb, .event-cta { display: none; }
  /* stack section headers so title + intro don't squash side by side */
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head p { max-width: none; margin-top: 0; }
  /* tighter padding inside panels / cards on small screens */
  .panel, .join { padding: 22px; }
  .page-band h1.display {
    font-size: clamp(44px, 13vw, 58px);
    overflow-wrap: normal;
    word-break: normal;
  }
  .page-band p {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
  }
  .events-list-shell {
    max-height: min(66vh, 640px);
    padding-right: 4px;
    margin-right: -4px;
  }
  .hero-feature-body { padding: 22px; }
  .community-card { padding: 22px; }
  .footer-grid {
    gap: 28px;
    padding-bottom: 32px;
  }
  .footer-brand p,
  .footer-news p,
  .footer-consent {
    max-width: none;
  }
  .news-form {
    max-width: none;
    flex-direction: column;
    gap: 10px;
  }
  .news-form button {
    min-height: 46px;
  }
  .footer-social {
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-bar {
    margin-top: 0;
  }
  .footer-bar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    width: 100%;
    max-width: none;
    justify-content: stretch;
    white-space: normal;
    overflow: visible;
    padding-bottom: 0;
  }
  .footer-bar nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 10px;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-align: left;
  }
  .footer-bar .container {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 14px;
    padding: 16px var(--pad) 20px;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .cookie-banner p {
    max-width: none;
    font-size: 13px;
  }
  .cookie-banner strong { font-size: 15px; }
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-banner-actions button { width: 100%; }
  .cookie-banner-accept { order: -1; }
}
@media (max-width: 360px) {
  .footer-bar nav { grid-template-columns: 1fr; }
}

/* =================================================================
   Welcome modal (SEO-safe: intent-triggered, once per 30 days)
   ================================================================= */
.promo-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.promo-modal.open { display: flex; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(12,12,12,.55); }
.promo-card {
  position: relative; z-index: 1;
  background: var(--paper); color: var(--ink);
  width: 100%; max-width: 410px;
  padding: 38px 32px 30px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.promo-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--ink-soft);
}
.promo-close svg { width: 20px; height: 20px; }
.promo-close:hover { color: var(--ink); }
.promo-icon { width: 58px; height: 58px; border-radius: 14px; display: block; margin: 0 auto 16px; background: #F7F3EA; }
.promo-card .eyebrow { color: var(--ink-soft); }
.promo-card h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 4.4vw, 34px); line-height: 0.95; margin: 8px 0 12px;
}
.promo-card > p { font-size: 15px; color: var(--ink-soft); line-height: 1.5; margin: 0 auto 20px; max-width: 320px; }
.promo-form { display: flex; gap: 8px; }
.promo-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15px;
}
.promo-form input:focus { outline: none; border-color: var(--ink); }
.promo-form button {
  height: 46px; padding: 0 20px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em; white-space: nowrap;
}
.promo-form button:hover { background: #000; }
.promo-or {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin: 18px 0 14px;
}
.promo-or::before, .promo-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.promo-badges { justify-content: center; }
.promo-sub { font-size: 13px; color: var(--ink-soft); margin: 0 auto 12px; max-width: 300px; }
.promo-badges .store-badge { background: #fff; border: 1px solid var(--ink); }
.promo-badges .store-badge:hover { background: var(--paper-soft); }

@media (max-width: 560px) {
  .store-badges {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .store-badge {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .promo-modal { align-items: flex-end; padding: 0; }
  .promo-card { max-width: none; padding: 26px 20px 24px; }
  .promo-form { flex-direction: column; }
  .promo-form input,
  .promo-form button {
    width: 100%;
  }
  .promo-form button { width: 100%; }
}

/* =================================================================
   Key takeaways (answer-first summary for AEO / GEO / featured snippets)
   ================================================================= */
.article-body .key-takeaways {
  background: var(--paper-soft);
  border-left: 3px solid var(--ink);
  padding: 22px 26px;
  margin: 0 0 32px;
}
.article-body .key-takeaways h2 {
  font-family: var(--body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 14px;
}
.article-body .key-takeaways ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; list-style: disc; }
.article-body .key-takeaways li { font-size: 15px; line-height: 1.55; color: var(--ink); }

/* small end-of-article disclaimer for legal / financial guides */
.article-body .article-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 14px;
}
.article-body .article-note a { color: var(--ink); font-weight: 600; }

/* =================================================================
   Shared SocialGryd app banner (injected site-wide by components.js)
   ================================================================= */
.app-cta {
  background: var(--dark);
  color: #fff;
  padding: 32px clamp(22px, 4vw, 40px);
  margin: 48px 0 8px;
}
.app-cta-inner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  max-width: 1000px; margin: 0 auto;
}
.app-cta-icon { width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0; display: block; background: #F7F3EA; }
.app-cta-text { flex: 1 1 320px; }
.app-cta-text .eyebrow { display: block; margin-bottom: 6px; color: rgba(255,255,255,.55); }
.app-cta-text h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 32px); line-height: 1; margin: 9px 0 9px;
}
.app-cta-text p { font-size: 14px; color: rgba(255,255,255,.82); margin: 0; max-width: 470px; }
.app-cta-badges { flex-shrink: 0; align-self: center; }
.article-body .app-cta { margin-left: 0; margin-right: 0; }
@media (max-width: 640px) {
  .app-cta-icon { display: none; }
  .app-cta { padding: 24px 20px; }
}

/* ---- City guides ---- */
.city-guide-body { font-size: 16px; }
.city-guide-body > p:first-of-type::first-letter { font-family: var(--body); font-size: inherit; float: none; line-height: inherit; padding: 0; margin: 0; }
.city-guide-body > p { font-size: 16px; line-height: 1.65; margin-bottom: 20px; }
.city-section { margin: 0 0 44px; }
.city-section h2 { font-family: var(--body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 11px; margin: 0 0 20px; }
.city-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 48px; }
.city-list li { font-size: 15px; line-height: 1.45; }
.city-list li strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
.city-list li span { font-size: 13px; color: var(--ink-soft); line-height: 1.4; display: block; }
.city-note { font-size: 14px; color: var(--ink-soft); font-style: italic; margin: -10px 0 28px; }
@media (max-width: 620px) { .city-list { grid-template-columns: 1fr; gap: 12px; } }
.guides-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 26px 0 60px; }
.guides-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper-soft); transition: box-shadow .2s; }
.guides-tile:hover { box-shadow: 0 6px 32px rgba(0,0,0,.1); }
.guides-tile figure { aspect-ratio: 3/2; overflow: hidden; }
.guides-tile figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.guides-tile:hover figure img { transform: scale(1.03); }
.guides-tile-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.guides-tile-body .eyebrow { display: block; margin-bottom: 14px; }
.guides-tile-body h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 4vw, 58px); line-height: 1; margin-bottom: 14px; }
.guides-tile-body p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 24px; flex: 1; }
.guides-tile-body .link-arrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.guides-tile-body .link-arrow svg { width: 14px; height: 14px; }
.hub-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}
.hub-overview .panel {
  height: 100%;
}
.hub-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hub-jump-links a {
  text-decoration: none;
}
.hub-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 52px;
}
.hub-topic {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 22px 24px;
  scroll-margin-top: 92px;
}
.hub-topic .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.hub-topic h2,
.hub-topic h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 0.98;
  margin-bottom: 12px;
}
.hub-topic p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.hub-topic-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.hub-topic-links a {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.hub-topic-links a:first-child {
  padding-top: 0;
  border-top: 0;
}
.hub-topic-links strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}
.hub-topic-links span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hub-topic-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
@media (max-width: 980px) {
  .hub-overview,
  .hub-topic-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .guides-hub {
    grid-template-columns: 1fr;
  }
  .hub-overview {
    gap: 18px;
    margin-bottom: 22px;
  }
  .hub-overview .panel {
    min-width: 0;
  }
  .hub-overview .panel h2.display {
    font-size: clamp(38px, 11vw, 48px) !important;
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hub-jump-links {
    gap: 8px;
  }
  .hub-jump-links .chip {
    font-size: 10px;
    padding: 8px 11px;
  }
  .hub-topic-grid {
    gap: 14px;
    padding-bottom: 38px;
  }
  .hub-topic {
    padding: 20px;
  }
}
.page-band--compact { padding-bottom: 28px; }

.article-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 60px;
}
.article-section-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 22px 24px 24px;
  min-height: 210px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-section-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 22, 22, 0.22);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.article-section-card h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.95;
  margin: 8px 0 10px;
}
.article-section-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 34ch;
}
.article-section-card .link-arrow {
  margin-top: 18px;
}
@media (max-width: 760px) {
  .article-sections { grid-template-columns: 1fr; }
}

.section-back { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 8px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section-back svg { width: 16px; height: 16px; }
.city-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.city-nav a { text-decoration: none; cursor: pointer; font-family: var(--body); transition: background .15s, color .15s, border-color .15s; }
.city-nav a:hover { border-color: var(--ink); background: var(--paper-soft); }

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.guide-breadcrumb a { color: inherit; text-underline-offset: 3px; }
.guide-breadcrumb a:hover { color: var(--ink); }
.guide-breadcrumb span[aria-hidden="true"] { opacity: .45; }
.article-meta .by a { color: inherit; text-underline-offset: 3px; }
.guide-related {
  margin-top: 46px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.guide-related > .eyebrow { display: block; margin-bottom: 10px; }
.guide-related h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  margin-bottom: 20px;
}
.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guide-related-card {
  display: block;
  padding: 17px 18px 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.guide-related-card:hover { border-color: var(--ink); background: var(--paper-soft); }
.guide-related-card strong { display: block; font-size: 15px; line-height: 1.35; }
.guide-related-card span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
@media (max-width: 620px) {
  .guide-related-grid { grid-template-columns: 1fr; }
}
