/* Flamingo editorial system: blog index and article templates */
:root {
  --blog-ink: var(--brand-ink, #12242e);
  --blog-ocean: var(--brand-ocean, #063b47);
  --blog-primary: var(--brand-primary, #2f5a69);
  --blog-accent: var(--brand-accent, #c33040);
  --blog-cream: var(--brand-secondary, #f5f2ea);
  --blog-muted: var(--brand-muted-foreground, #566a72);
  --blog-border: var(--brand-border, #e1e5e5);
  --blog-shadow: 0 16px 42px rgba(18, 36, 46, .09);
  --blog-container: var(--brand-container, 1152px);
  --blog-display: var(--brand-font-display);
  --blog-body: var(--brand-font-body);
}

.blog-page,
.blog-article-page {
  overflow: clip;
  color: var(--blog-ink);
  background: #fff;
  font-family: var(--blog-body);
}

.blog-wrap {
  width: 100%;
  max-width: var(--blog-container);
  margin-inline: auto;
  padding-inline: 40px;
}

.blog-kicker {
  margin: 0 0 12px;
  color: var(--blog-accent);
  font-family: var(--blog-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.blog-page h1,
.blog-page h2,
.blog-page h3,
.blog-article-page h1,
.blog-article-page h2,
.blog-article-page h3,
.blog-article-page h4 {
  margin-top: 0;
  color: var(--blog-ink);
  font-family: var(--blog-display);
  font-weight: 600;
  letter-spacing: -.018em;
  text-transform: uppercase;
  text-wrap: balance;
}

.blog-page a,
.blog-article-page a { text-underline-offset: 3px; }

.blog-index-hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 90, 105, .10), transparent 35%),
    var(--blog-cream);
  border-bottom: 1px solid rgba(18, 36, 46, .07);
}

.blog-index-hero__grid {
  min-height: clamp(420px, 56vh, 590px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: clamp(46px, 7vw, 86px);
  padding-block: clamp(48px, 6.5vw, 82px);
}

.blog-index-hero h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(48px, 6vw, 74px);
  line-height: .98;
}

.blog-index-hero__intro {
  max-width: 630px;
  margin: 0;
  color: var(--blog-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.blog-index-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.blog-link-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--blog-ocean);
  border-radius: 999px;
  color: var(--blog-ocean);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.blog-link-button--primary {
  color: #fff;
  background: var(--blog-accent);
  border-color: var(--blog-accent);
}

.blog-link-button:hover,
.blog-link-button:focus-visible {
  color: #fff;
  background: var(--blog-ocean);
  border-color: var(--blog-ocean);
  text-decoration: none;
  transform: translateY(-1px);
}

.blog-index-hero__mosaic {
  min-height: 370px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.blog-index-hero__mosaic picture,
.blog-index-hero__mosaic img {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-index-hero__mosaic picture:first-child { grid-row: 1 / 3; }

.blog-index-hero__mosaic img {
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--blog-shadow);
}

.blog-featured {
  padding-block: clamp(64px, 8vw, 96px);
}

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

.blog-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.blog-section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--blog-muted);
  font-size: 16px;
  line-height: 1.55;
}

.blog-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(360px, .87fr);
  overflow: hidden;
  border: 1px solid var(--blog-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--blog-shadow);
}

.blog-feature-card__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--blog-cream);
}

.blog-feature-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.blog-feature-card:hover .blog-feature-card__media img { transform: scale(1.02); }

.blog-feature-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 58px);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--blog-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.blog-card-meta__topic {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blog-ocean);
  background: #eaf3f2;
  font-weight: 700;
}

.blog-feature-card h3 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
}

.blog-feature-card h3 a,
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-feature-card h3 a::after,
.blog-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.blog-feature-card__body > p {
  margin: 0 0 24px;
  color: var(--blog-muted);
  font-size: 17px;
  line-height: 1.62;
}

.blog-feature-card,
.blog-card { position: relative; }

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--blog-accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.blog-library {
  padding-block: clamp(68px, 8vw, 100px);
  background: #fbfaf7;
  border-top: 1px solid rgba(18, 36, 46, .06);
}

.blog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.blog-filter-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.blog-filter-list::-webkit-scrollbar { display: none; }

.blog-filter-button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  color: var(--blog-muted);
  background: #fff;
  font: 700 14px/20px var(--blog-body);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.blog-filter-button:hover,
.blog-filter-button:focus-visible,
.blog-filter-button[aria-pressed="true"] {
  color: #fff;
  background: var(--blog-ocean);
  border-color: var(--blog-ocean);
}

.blog-search {
  position: relative;
}

.blog-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--blog-muted);
  stroke-width: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.blog-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  color: var(--blog-ink);
  background: #fff;
  font: 500 15px/22px var(--blog-body);
  outline: none;
}

.blog-search input:focus {
  border-color: var(--blog-primary);
  box-shadow: 0 0 0 3px rgba(47, 90, 105, .14);
}

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

.blog-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(18, 36, 46, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(47, 90, 105, .35);
  box-shadow: 0 16px 38px rgba(18, 36, 46, .10);
}

.blog-card[hidden] { display: none !important; }

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blog-cream);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease;
}

.blog-card:hover .blog-card__media img { transform: scale(1.025); }

.blog-card__body {
  min-height: 270px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.blog-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.08;
}

.blog-card__excerpt {
  margin: 0 0 20px;
  color: var(--blog-muted);
  font-size: 15px;
  line-height: 1.55;
}

.blog-card .blog-read-link { margin-top: auto; }

.blog-empty {
  margin: 28px 0 0;
  padding: 24px;
  border: 1px dashed var(--blog-border);
  border-radius: 12px;
  color: var(--blog-muted);
  background: #fff;
  text-align: center;
}

.blog-empty[hidden] { display: none !important; }

.blog-index-cta {
  padding-block: clamp(58px, 7vw, 82px);
  color: #fff;
  background: var(--blog-ocean);
}

.blog-index-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.blog-index-cta h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1;
}

.blog-index-cta p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 17px;
  line-height: 1.55;
}

/* Article template */
.blog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.blog-reading-progress span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--blog-accent);
  transition: width .08s linear;
}

.blog-article-hero {
  padding-block: clamp(38px, 5vw, 68px) clamp(58px, 7vw, 88px);
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 90, 105, .10), transparent 34%),
    var(--blog-cream);
  border-bottom: 1px solid rgba(18, 36, 46, .07);
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  color: var(--blog-muted);
  font-size: 14px;
  line-height: 20px;
}

.blog-breadcrumb a {
  color: var(--blog-primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-breadcrumb a:hover,
.blog-breadcrumb a:focus-visible { text-decoration: underline; }

.blog-article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .88fr);
  align-items: center;
  gap: clamp(42px, 6vw, 76px);
}

.blog-article-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(43px, 5.6vw, 66px);
  line-height: .99;
}

.blog-article-hero__dek {
  max-width: 690px;
  margin: 0;
  color: var(--blog-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  margin-top: 24px;
  color: var(--blog-muted);
  font-size: 14px;
  line-height: 20px;
}

.blog-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-article-meta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--blog-primary);
  stroke-width: 1.8;
}

.blog-hero-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #e5e8e7;
  box-shadow: var(--blog-shadow);
}

.blog-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: inherit;
  pointer-events: none;
}

.blog-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 750px) minmax(240px, 278px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(42px, 6vw, 74px);
  padding-block: clamp(62px, 8vw, 98px);
}

.blog-article__content {
  min-width: 0;
  color: #435961;
  font-size: 18px;
  line-height: 1.74;
}

.blog-article__content > :first-child { margin-top: 0 !important; }

.blog-article__content p {
  margin: 0 0 1.35em;
}

.blog-article__content > p:first-of-type {
  color: #314b55;
  font-size: 20px;
  line-height: 1.7;
}

.blog-article__content h2 {
  margin: 2.05em 0 .62em;
  padding-top: 6px;
  font-size: clamp(34px, 4.1vw, 46px);
  line-height: 1.07;
  scroll-margin-top: 118px;
}

.blog-article__content h3 {
  margin: 1.7em 0 .55em;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
  scroll-margin-top: 118px;
}

.blog-article__content h4 {
  margin: 1.55em 0 .5em;
  font-size: 22px;
  line-height: 1.15;
  scroll-margin-top: 118px;
}

.blog-article__content a {
  color: var(--blog-accent);
  font-weight: 650;
  text-decoration-thickness: 1px;
}

.blog-article__content a:hover,
.blog-article__content a:focus-visible { color: var(--blog-ocean); }

.blog-article__content strong { color: #243e48; }

.blog-article__content ul:not(.editorial-points),
.blog-article__content ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}

.blog-article__content ul:not(.editorial-points) > li,
.blog-article__content ol > li { margin-bottom: .55em; }

.blog-article__content ul:not(.editorial-points) > li::marker,
.blog-article__content ol > li::marker {
  color: var(--blog-accent);
  font-weight: 700;
}

.blog-article__content blockquote {
  margin: 2em 0;
  padding: 24px 26px;
  border-left: 4px solid var(--blog-accent);
  border-radius: 0 12px 12px 0;
  color: #314b55;
  background: var(--blog-cream);
}

.blog-article__content blockquote > :last-child { margin-bottom: 0; }

.blog-article__content figure {
  margin: 2em 0;
}

.blog-article__content figure.article-figure {
  overflow: hidden;
  border-radius: 14px;
  background: var(--blog-cream);
}

.blog-article__content figure.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-article__content figcaption {
  padding: 11px 14px 13px;
  color: var(--blog-muted);
  background: var(--blog-cream);
  font-size: 14px;
  line-height: 1.45;
}

.blog-article__content > img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
  border-radius: 14px;
}

.article-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  background: #fff;
}

.article-table-scroll table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.article-table-scroll th,
.article-table-scroll td {
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--blog-border);
  border-bottom: 1px solid var(--blog-border);
  text-align: left;
  vertical-align: top;
}

.article-table-scroll th:last-child,
.article-table-scroll td:last-child { border-right: 0; }

.article-table-scroll tr:last-child td { border-bottom: 0; }

.article-table-scroll th {
  color: var(--blog-ink);
  background: var(--blog-cream);
  font-weight: 700;
}

.blog-article-aside {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 18px;
}

.blog-aside-card {
  overflow: hidden;
  border: 1px solid var(--blog-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(18, 36, 46, .06);
}

.blog-toc summary {
  padding: 17px 18px;
  color: var(--blog-ink);
  background: var(--blog-cream);
  font-family: var(--blog-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.blog-toc summary::-webkit-details-marker { display: none; }

.blog-toc summary::after {
  content: "+";
  float: right;
  color: var(--blog-accent);
  font-family: var(--blog-body);
}

.blog-toc[open] summary::after { content: "−"; }

.blog-toc nav {
  display: grid;
  gap: 2px;
  padding: 12px;
}

.blog-toc a {
  display: block;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--blog-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.blog-toc a:hover,
.blog-toc a:focus-visible {
  color: var(--blog-ocean);
  background: var(--blog-cream);
}

.blog-plan-card {
  padding: 22px;
  color: #fff;
  background: var(--blog-ocean);
}

.blog-plan-card .blog-kicker {
  margin-bottom: 9px;
  color: #fff;
  opacity: .7;
}

.blog-plan-card h2 {
  margin-bottom: 11px;
  color: #fff;
  font-size: 28px;
  line-height: 1.03;
}

.blog-plan-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.5;
}

.blog-plan-card .blog-link-button {
  width: 100%;
  color: #fff;
  background: var(--blog-accent);
  border-color: var(--blog-accent);
}

.blog-plan-card__phone {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.blog-related {
  padding-block: clamp(62px, 8vw, 92px);
  background: #fbfaf7;
  border-top: 1px solid rgba(18, 36, 46, .06);
}

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

.blog-related .blog-card__body { min-height: 220px; }

.blog-article-cta {
  padding-block: clamp(60px, 7vw, 84px);
  color: #fff;
  background: var(--blog-ocean);
}

.blog-article-cta__inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.blog-article-cta h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1;
}

.blog-article-cta p {
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, .74);
  font-size: 17px;
  line-height: 1.55;
}

.blog-article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.blog-article-cta .blog-link-button:not(.blog-link-button--primary) {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

@media (max-width: 980px) {
  .blog-index-hero__grid,
  .blog-article-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 38px;
  }

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

  .blog-article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 38px;
  }
}

@media (max-width: 760px) {
  .blog-wrap { padding-inline: 20px; }

  .blog-index-hero__grid,
  .blog-article-hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 42px 52px;
  }

  .blog-index-hero h1 {
    max-width: 12ch;
    margin-bottom: 16px;
    font-size: clamp(42px, 13.5vw, 58px);
  }

  .blog-index-hero__mosaic { min-height: 300px; }

  .blog-feature-card { grid-template-columns: 1fr; }
  .blog-feature-card__media { min-height: 280px; }
  .blog-feature-card__body { padding: 28px 24px 30px; }

  .blog-section-heading {
    display: block;
    margin-bottom: 22px;
  }

  .blog-section-heading > p { margin-top: 10px; }

  .blog-controls {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-grid,
  .blog-related .blog-grid { grid-template-columns: 1fr; }

  .blog-card__body { min-height: 0; }

  .blog-index-cta__inner { grid-template-columns: 1fr; }

  .blog-article-hero {
    padding-block: 30px 52px;
  }

  .blog-breadcrumb { margin-bottom: 24px; }

  .blog-article-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(40px, 12vw, 56px);
  }

  .blog-hero-media { aspect-ratio: 16 / 11; }

  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 48px 64px;
  }

  .blog-article-aside {
    position: static;
    order: -1;
  }

  .blog-plan-card { display: none; }

  .blog-article__content { font-size: 17px; }
  .blog-article__content > p:first-of-type { font-size: 18px; }

  .blog-article__content h2 {
    margin-top: 1.75em;
    font-size: clamp(32px, 10vw, 42px);
  }

  .blog-article__content h3 { font-size: 27px; }
}

@media (max-width: 460px) {
  .blog-wrap { padding-inline: 16px; }

  .blog-index-hero__mosaic {
    min-height: 260px;
    grid-template-columns: 1.2fr .8fr;
    gap: 8px;
  }

  .blog-index-hero__mosaic img { border-radius: 11px; }

  .blog-index-hero__actions,
  .blog-article-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .blog-link-button { width: 100%; }
  .blog-feature-card__media { min-height: 230px; }
  .blog-card__body { padding: 19px; }
  .blog-card h3 { font-size: 24px; }

  .blog-article-meta { gap: 7px 14px; }
  .blog-article__content blockquote { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-link-button,
  .blog-card,
  .blog-card img,
  .blog-feature-card img,
  .blog-reading-progress span { transition: none !important; }
}

.blog-card__excerpt{font-size:16px;line-height:1.6;}

/* Planning-card copy is actionable body text, not a caption. */
.blog-plan-card p{font-size:16px!important;line-height:1.6;}
