/* Travel Strategy Group — traveltsg.com */
/* Light, joyful travel palette · sky, sea & sun */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Syne:wght@400;500;600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Syne", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 4.75rem;
  --max: 1120px;
  --gutter: clamp(1rem, 4vw, 1.75rem);
  --transition: 0.25s ease;
  /* Sky · lagoon · sunshine (tuned a step darker) */
  --bg: #c9dfe4;
  --bg-elevated: #e8f2f5;
  --bg-card: #f4fafb;
  --text: #0f3844;
  --text-muted: #4a6b76;
  --border: rgba(15, 56, 68, 0.14);
  --accent: #0d9488;
  --accent-2: #f59e0b;
  --accent-hover: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.14);
  --gold: #ea580c;
  --gold-soft: rgba(251, 146, 60, 0.2);
  --hero-gradient: linear-gradient(155deg, #6bb8d9 0%, #4ecdc0 30%, #d4b84a 68%, #d4956a 100%);
  --hero-text: #0c3532;
  --hero-text-soft: rgba(12, 53, 50, 0.82);
  --card-hover: rgba(13, 148, 136, 0.1);
  --shadow: 0 6px 28px rgba(12, 56, 68, 0.11);
  --shadow-lg: 0 18px 48px rgba(12, 56, 68, 0.15);
}

body {
  position: relative;
  margin: 0;
  padding: 0;
  min-width: 360px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ——— Global background: particles + pattern + floating icons ——— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 90% 55% at 12% 18%, rgba(45, 160, 200, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse 75% 50% at 88% 78%, rgba(212, 160, 40, 0.14) 0%, transparent 48%),
    linear-gradient(rgba(15, 90, 100, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 90, 100, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 52px 52px, 52px 52px;
  animation: pattern-drift 80s linear infinite;
}

@keyframes pattern-drift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 0 0, 52px 52px, 52px 52px;
  }
}

.floating-icons--global {
  position: absolute;
  inset: 0;
}

.floating-icon {
  position: absolute;
  left: var(--fx, 10%);
  top: var(--fy, 20%);
  font-size: clamp(1.25rem, 3.5vw, 2.75rem);
  color: #0d9488;
  opacity: 0.26;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.35);
  animation: icon-orbit var(--fdur, 14s) ease-in-out infinite;
  animation-delay: var(--fdelay, 0s);
}

.floating-icon--mint {
  color: #d97706;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.3);
}

@keyframes icon-orbit {
  0%,
  100% {
    transform: translate(0, 0) rotate(-8deg) scale(1);
    opacity: 0.1;
  }
  25% {
    transform: translate(18px, -22px) rotate(6deg) scale(1.08);
    opacity: 0.28;
  }
  50% {
    transform: translate(-12px, 14px) rotate(-4deg) scale(0.95);
    opacity: 0.16;
  }
  75% {
    transform: translate(10px, 8px) rotate(10deg) scale(1.02);
    opacity: 0.24;
  }
}

@keyframes icon-spin-drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-30px, 40px) rotate(360deg);
  }
}

.floating-icon--slow {
  animation-name: icon-spin-drift;
  animation-duration: var(--fdur, 120s);
  animation-timing-function: linear;
  opacity: 0.14;
}

/* Skip-link: absolute. Header: own z-index/sticky — do not flatten to z-index:1 or hero covers the mobile menu. */
body > *:not(.page-bg):not(.skip-link):not(.site-header) {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 300;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ——— Site shell ——— */
.site-header {
  position: sticky;
  top: 0;
  margin-top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(12px);
  overflow: visible;
}

.site-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: clamp(1.12rem, 2.8vw, 1.38rem);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.logo__mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0e7490 0%, #14b8a6 45%, #fbbf24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(14, 116, 144, 0.28);
}

.logo__mark img,
.logo__mark svg {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3.5vw, 1.85rem);
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle__bars,
.nav-toggle__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: inline-flex;
}

@media (max-width: 767px) {
  :root {
    --header-h: 3.75rem;
  }

  .logo__mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .logo__mark img,
  .logo__mark svg {
    width: 26px;
    height: 26px;
  }

  .logo {
    font-size: clamp(0.88rem, 3.5vw, 1.02rem);
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
  }

  .logo__wordmark {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(52vw, 13rem);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 201;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0.35rem 0 0.85rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    padding: 0.8rem var(--gutter);
    border-top: 1px solid var(--border);
    font-size: 1.05rem;
  }

  .nav-main a:first-child {
    border-top: none;
  }
}

@media (min-width: 768px) {
  .nav-main {
    display: flex !important;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  color: var(--hero-text);
  padding: clamp(2.5rem, 8vw, 5rem) var(--gutter);
  background: var(--hero-gradient);
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1920&q=80") center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.hero__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__fx .floating-icon {
  font-size: clamp(1.5rem, 5vw, 3.25rem);
  opacity: 0.35;
  color: rgba(13, 148, 136, 0.55);
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
}

.hero__fx .floating-icon--mint {
  color: rgba(217, 119, 6, 0.5);
  text-shadow: 0 2px 18px rgba(255, 251, 235, 0.9);
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hero-text-soft);
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 20ch;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 2.5vw, 1.22rem);
  max-width: 44ch;
  color: var(--hero-text-soft);
  margin: 0 0 1.5rem;
  line-height: 1.58;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, #0d9488 0%, #0e7490 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.38);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--hero-text);
  border: 2px solid rgba(15, 61, 58, 0.25);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: rgba(255, 255, 255, 0.85);
}

/* ——— Home: full-width news / alerts ticker ——— */
.news-ticker {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(90deg, #0f766e 0%, #0e7490 42%, #0d9488 100%);
  color: #f0fdfa;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(15, 56, 68, 0.2);
  overflow: hidden;
}

.news-ticker__inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 2.75rem;
}

.news-ticker__badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0 1rem;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.22);
  color: #fef9c3;
  font-family: var(--font-sans);
}

.news-ticker__badge i {
  font-size: 0.85rem;
  color: #fde68a;
}

.news-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 1.25%, #000 98.75%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25%, #000 98.75%, transparent);
}

.news-ticker__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  animation: news-ticker-marquee 55s linear infinite;
  will-change: transform;
}

.news-ticker:hover .news-ticker__track {
  animation-play-state: paused;
}

.news-ticker__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.news-ticker__list li {
  display: inline-flex;
  align-items: center;
  padding: 0 1.35rem;
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  font-weight: 500;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.news-ticker a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 2px;
}

.news-ticker a:hover {
  text-decoration-color: #fff;
}

@keyframes news-ticker-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
    padding: 0.5rem 0;
    will-change: auto;
  }

  .news-ticker__list {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    padding: 0.35rem 1rem;
  }

  .news-ticker__list[aria-hidden="true"] {
    display: none;
  }

  .news-ticker__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ——— Ad slots ——— */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.ad-slot--leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
}

.ad-slot--skyscraper {
  width: 100%;
  max-width: 160px;
  min-height: 600px;
}

.ad-slot--rectangle {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
}

/* Revive Async JS inserts */
.my-ad-ins {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sidebar__ads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ad-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
}

/* ——— Layout sections ——— */
.section {
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-optical-sizing: auto;
}

.section__intro {
  font-family: var(--font-serif);
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 0 2rem;
  font-size: 1.08rem;
}

/* ——— Prose (home article) ——— */
.prose {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.pull-stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 600px) {
  .pull-stat {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pull-stat__item {
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.pull-stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.pull-stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ——— RSS / feed blocks ——— */
.feed-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.feed-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.feed-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.feed-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.feed-card__rss {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 8rem;
}

.feed-card__rss .rss-item {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
}

.feed-card__rss .rss-item:last-child {
  border-bottom: none;
}

.feed-card__rss .rss-item:hover {
  color: var(--accent);
}

.feed-card__rss .rss-item h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  color: inherit;
}

.feed-card__rss .rss-item p {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.feed-card__rss .rss-item .meta {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-card__rss .rss-item-icon {
  font-size: 0.65rem;
  margin-left: 0.2rem;
  opacity: 0.85;
}

.feed-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.feed-card__list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.45;
}

.feed-card__list li:last-child {
  border-bottom: none;
}

.feed-card__list a {
  color: var(--text);
  text-decoration: none;
  display: block;
}

.feed-card__list a:hover {
  color: var(--accent);
}

.feed-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.feed-card__footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.feed-card__footer a {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ——— Footer ——— */
.site-footer {
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #d8eaee 0%, #c5dde3 100%);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ——— Insights / blog listing ——— */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  background: var(--hero-gradient);
  color: var(--hero-text);
  text-align: center;
}

.page-banner__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-banner__fx .floating-icon {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  opacity: 0.32;
  color: rgba(13, 148, 136, 0.45);
}

.page-banner__fx .floating-icon--mint {
  color: rgba(217, 119, 6, 0.42);
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  font-optical-sizing: auto;
}

.page-banner p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 40ch;
  color: var(--hero-text-soft);
  font-size: 1.06rem;
  font-family: var(--font-serif);
}

.blog-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter);
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.blog-card a {
  color: inherit;
  text-decoration: none;
}

.blog-card__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.blog-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.blog-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.blog-card__excerpt {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar__block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sidebar__block h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.search-form button {
  min-height: 44px;
  padding: 0 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0d9488, #0891b2);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.25);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
}

.category-list li:last-child a {
  border-bottom: none;
}

.category-list a:hover {
  color: var(--accent);
  padding-left: 0.25rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.pagination a {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .is-current {
  background: linear-gradient(135deg, #0d9488, #0891b2);
  color: #fff;
  border: 1px solid transparent;
}

.related-strip {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-strip h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.related-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}

.related-card a {
  text-decoration: none;
  color: inherit;
}

.related-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.related-card__body {
  padding: 0.85rem;
}

.related-card__body h3 {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.35;
}

/* ——— Case study pages only: 3 random RSS cards (#case-study-related-rss) ——— */
.article-shell .case-study-rss {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.case-study-rss h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.case-study-rss__intro {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 1.35rem;
  line-height: 1.55;
}

.case-study-rss__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .case-study-rss__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.case-study-rss-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 18px rgba(15, 76, 92, 0.06);
  overflow: hidden;
  min-height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-study-rss-card:hover {
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 12px 32px rgba(15, 76, 92, 0.1);
}

.case-study-rss-card__link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.case-study-rss-card__thumb {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  min-height: 5.5rem;
  background: linear-gradient(145deg, #ecfdf5, #e0f2fe);
  overflow: hidden;
}

.case-study-rss-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-study-rss-card__thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: rgba(13, 148, 136, 0.4);
}

.case-study-rss-card__content {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
}

.case-study-rss-card__meta {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.case-study-rss-card__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.case-study-rss-card__link:hover .case-study-rss-card__title {
  color: var(--accent);
}

.case-study-rss-card__excerpt {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-study-rss-card__cta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: auto;
}

.case-study-rss-card__cta .fa-arrow-up-right-from-square {
  font-size: 0.6rem;
  margin-left: 0.2rem;
  opacity: 0.85;
}

.case-study-rss-card--empty {
  opacity: 0.95;
}

.case-study-rss-card--empty .case-study-rss-card__link--internal .case-study-rss-card__title {
  color: var(--accent);
}

@media (max-width: 479px) {
  .case-study-rss-card__link {
    flex-direction: column;
  }

  .case-study-rss-card__thumb {
    flex: none;
    width: 100%;
    min-height: 6rem;
    max-height: 7rem;
  }
}

/* ——— Insights listing only: 6 random RSS under #insights-depth-rss-six ——— */
.insights-depth-rss__intro {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 68ch;
  line-height: 1.55;
}

.insights-depth-rss__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .insights-depth-rss__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .insights-depth-rss__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.insights-depth-rss-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 18px rgba(15, 76, 92, 0.06);
  overflow: hidden;
  min-height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.insights-depth-rss-card:hover {
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 12px 32px rgba(15, 76, 92, 0.1);
}

.insights-depth-rss-card__link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.insights-depth-rss-card__thumb {
  flex: 0 0 5.25rem;
  width: 5.25rem;
  min-height: 5.25rem;
  background: linear-gradient(145deg, #ecfdf5, #e0f2fe);
  overflow: hidden;
}

.insights-depth-rss-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insights-depth-rss-card__thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgba(13, 148, 136, 0.4);
}

.insights-depth-rss-card__content {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
}

.insights-depth-rss-card__meta {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}

.insights-depth-rss-card__title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.insights-depth-rss-card__link:hover .insights-depth-rss-card__title {
  color: var(--accent);
}

.insights-depth-rss-card__excerpt {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0 0 0.45rem;
  line-height: 1.42;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insights-depth-rss-card__cta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: auto;
}

.insights-depth-rss-card__cta .fa-arrow-up-right-from-square {
  font-size: 0.58rem;
  margin-left: 0.2rem;
  opacity: 0.85;
}

.insights-depth-rss-card--empty {
  opacity: 0.95;
}

.insights-depth-rss-card--empty .insights-depth-rss-card__link--internal .insights-depth-rss-card__title {
  color: var(--accent);
}

@media (max-width: 479px) {
  .insights-depth-rss-card__link {
    flex-direction: column;
  }

  .insights-depth-rss-card__thumb {
    flex: none;
    width: 100%;
    min-height: 5.5rem;
    max-height: 6.5rem;
  }
}

/* ——— Insights listing only: “Related depth reads” RSS mosaic ——— */
.insights-rss-wall__intro {
  margin-bottom: 1.35rem;
  max-width: 68ch;
}

.insights-rss-mosaic {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 600px) {
  .insights-rss-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .insights-rss-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.insights-rss-card {
  --irss-accent: #0d9488;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 11.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, var(--bg-card) 55%, #eef6f7 100%);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 76, 92, 0.08);
}

.insights-rss-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--irss-accent), #0f766e);
  opacity: 0.92;
  border-radius: 14px 0 0 14px;
}

.insights-rss-card--a {
  --irss-accent: #0d9488;
}

.insights-rss-card--b {
  --irss-accent: #d97706;
}

.insights-rss-card--b::before {
  background: linear-gradient(180deg, #d97706, #b45309);
}

.insights-rss-card--c {
  --irss-accent: #2563eb;
}

.insights-rss-card--c::before {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.insights-rss-card--d {
  --irss-accent: #059669;
}

.insights-rss-card--d::before {
  background: linear-gradient(180deg, #059669, #047857);
}

.insights-rss-card--e {
  --irss-accent: #7c3aed;
}

.insights-rss-card--e::before {
  background: linear-gradient(180deg, #7c3aed, #6d28d9);
}

.insights-rss-card--f {
  --irss-accent: #db2777;
}

.insights-rss-card--f::before {
  background: linear-gradient(180deg, #db2777, #be185d);
}

.insights-rss-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.6rem 1.2rem;
  border-bottom: 1px dashed rgba(15, 76, 92, 0.15);
}

.insights-rss-card__label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
  line-height: 1.25;
}

.insights-rss-card__tag {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--irss-accent);
  border: 1px solid rgba(15, 76, 92, 0.18);
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.insights-rss-card__body {
  flex: 1;
  padding: 0.35rem 1rem 0.5rem 1.2rem;
  min-height: 7rem;
}

.insights-rss-card__foot {
  margin-top: auto;
  padding: 0.6rem 1rem 0.8rem 1.2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.insights-rss-card__foot a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--irss-accent);
}

.insights-rss-card__foot a:hover {
  text-decoration: underline;
}

.insights-rss-mosaic .insights-rss-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 76, 92, 0.1);
  transition: color 0.15s ease;
}

.insights-rss-mosaic .insights-rss-item:last-child {
  border-bottom: none;
}

.insights-rss-mosaic .insights-rss-item:hover .insights-rss-item__title {
  color: var(--accent);
}

.insights-rss-mosaic .insights-rss-item__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.38;
  margin: 0 0 0.28rem;
  color: var(--text);
}

.insights-rss-mosaic .insights-rss-item__meta {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
}

.insights-rss-mosaic .insights-rss-item__icon {
  font-size: 0.55rem;
  margin-left: 0.15rem;
  opacity: 0.8;
}

.insights-rss-mosaic .insights-rss-item--empty .insights-rss-item__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
  -webkit-line-clamp: 3;
}

/* ——— Article + ads layout ——— */
.article-hero-img {
  width: 100%;
  max-height: min(420px, 50vh);
  object-fit: cover;
}

.article-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
}

.article-meta {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.article-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 1.5rem;
  font-optical-sizing: auto;
}

.article-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr 180px;
    align-items: start;
  }
}

.article-main .prose {
  max-width: 42rem;
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .article-aside {
    align-items: center;
  }
}

@media (max-width: 959px) {
  .article-aside {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ad-slot--skyscraper {
    min-height: 280px;
    max-width: 100%;
  }

  .ad-slot--rectangle {
    max-width: 100%;
  }
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-row a {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bg-pattern {
    animation: none;
  }

  .floating-icon,
  .floating-icon--slow {
    animation: none !important;
  }
}
