/* ============================================================
   The blog in the light design (owner, 2026-11-09: "the blog page look is
   not good, redesign the whole page: the shape of the cards, the whole
   look"). Loaded last for the blog family (after the light skin and the
   inner-page motion), so this is the blog's look; _fluttergo-blog.css keeps
   the post reader and the structure underneath.

   Index: a centred head (title, line, then the category pills, a search
   field and Subscribe in one row), the featured post as one wide card, then
   every other post as a card in a three-column grid (two on tablets, one on
   phones), opening on twelve and growing behind "Show more articles", and
   the closing offer as a soft colour panel. Posts: the same cards under
   "Read next", the same panel at the end.
   ============================================================ */

html.nf-page .fb-page {
  --fbl-ink: #111318;
  --fbl-muted: #4A505E;
  --fbl-meta: #5B6170;
  --fbl-line: rgba(17, 19, 24, 0.08);
  --fbl-shadow: 0 1px 2px rgba(17, 19, 24, 0.04), 0 14px 34px -26px rgba(17, 19, 24, 0.32);
  --fbl-shadow-hi: 0 1px 2px rgba(17, 19, 24, 0.05), 0 30px 60px -32px rgba(17, 19, 24, 0.46);
}

/* ---- Index head: centred, the controls in one row ---------------------- */
html.nf-page .fb-page:not(.fb-post) .fb-col { width: min(100% - 40px, 1200px); }
html.nf-page body.fgs--blog .fb-page:not(.fb-post) #blog-hero.fb-head {
  padding-top: clamp(40px, 6vw, 84px);
  text-align: center;
}
html.nf-page .fb-page .fb-tagline {
  max-width: 34em;
  margin: 14px auto 0;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.55;
  color: var(--fbl-muted);
}
html.nf-page .fb-page .fb-toolbar {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  border-bottom: 0;
}
html.nf-page .fb-page .fb-tabs {
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px var(--fbl-line), 0 1px 2px rgba(17, 19, 24, 0.04);
}
html.nf-page .fb-page .fb-tabs a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--fbl-muted);
}
html.nf-page .fb-page .fb-tabs a:hover { color: var(--fbl-ink); background: rgba(17, 19, 24, 0.05); }
html.nf-page .fb-page .fb-tabs a[aria-pressed="true"] { color: #FFFFFF; background: var(--fbl-ink); }
html.nf-page .fb-page .fb-tabs-sep { display: none; }

html.nf-page .fb-page .fb-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 100%);
  height: 44px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.1), 0 1px 2px rgba(17, 19, 24, 0.04);
  color: var(--fbl-meta);
  cursor: text;
}
html.nf-page .fb-page .fb-search:focus-within {
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.24), 0 0 0 4px rgba(55, 185, 248, 0.14);
}
html.nf-page .fb-page .fb-search svg { flex: none; }
html.nf-page .fb-page .fb-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--fbl-ink);
  -webkit-appearance: none;
  appearance: none;
}
html.nf-page .fb-page .fb-search input::placeholder { color: #6B7180; opacity: 1; }
html.nf-page .fb-page .fb-search kbd {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  background: #F3F3F1;
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.08);
  font: 600 12px/1 var(--fb-sans);
  color: var(--fbl-meta);
}
html.nf-page .fb-page .fb-subscribe {
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.1), 0 1px 2px rgba(17, 19, 24, 0.04);
  font-weight: 600;
  color: var(--fbl-ink);
}
html.nf-page .fb-page .fb-subscribe:hover { color: var(--fbl-ink); background: #F7F6F3; }

/* ---- The feed: every post a card, three to a row ----------------------- */
html.nf-page .fb-page:not(.fb-post) .fb-list { padding: clamp(32px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
html.nf-page .fb-page .fb-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
html.nf-page .fb-page .fb-item--list { grid-column: auto; }
html.nf-page .fb-page .fb-item--featured { grid-column: 1 / -1; }

/* A card: a white tile with the picture set inside it, its own corners. */
html.nf-page .fb-page .fb-card,
html.nf-page .fb-page :is(.fb-card--grid, .fb-card--list) {
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 8px;
  border: 0;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: var(--fbl-shadow), inset 0 0 0 1px var(--fbl-line);
  color: var(--fbl-ink);
}
html.nf-page .fb-page .fb-card .fb-media,
html.nf-page .fb-page :is(.fb-card--grid, .fb-card--list) .fb-media {
  align-self: stretch;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 17px;
  background: #F1F0EC;
  isolation: isolate;
}
html.nf-page .fb-page .fb-card-body { gap: 0; padding: 16px 12px 12px; }
html.nf-page .fb-page .fb-card-cat {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.08);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #1F4FD1;
}
html.nf-page .fb-page .fb-card[data-blog-post="engineering"] .fb-card-cat { background: rgba(124, 77, 255, 0.09); color: #5B2FD6; }
html.nf-page .fb-page .fb-card[data-blog-post="product"] .fb-card-cat { background: rgba(255, 79, 160, 0.09); color: #B0246A; }
html.nf-page .fb-page .fb-card[data-blog-post="company"] .fb-card-cat { background: rgba(232, 120, 40, 0.1); color: #94450F; }
html.nf-page .fb-page .fb-card-title,
html.nf-page .fb-page :is(.fb-card--grid, .fb-card--list) .fb-card-title {
  display: -webkit-box;
  margin: 12px 0 8px;
  overflow: hidden;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--fbl-ink);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
html.nf-page .fb-page .fb-card-sum,
html.nf-page .fb-page :is(.fb-card--grid, .fb-card--list) .fb-card-sum {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fbl-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* The meta: the avatar beside two lines, the name over the date and read time. */
html.nf-page .fb-page .fb-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 1px;
  margin-top: auto;
  font-size: 13px;
  line-height: 1.35;
  color: var(--fbl-meta);
}
html.nf-page .fb-page .fb-meta .fb-authors { display: contents; }
html.nf-page .fb-page .fb-meta .fb-avatar { grid-row: 1 / span 2; }
html.nf-page .fb-page .fb-meta .fb-authors b { grid-column: 2; font-weight: 600; color: var(--fbl-ink); }
html.nf-page .fb-page .fb-meta .fb-when { grid-column: 2; }
html.nf-page .fb-page .fb-meta:not(:has(.fb-authors)) .fb-when { grid-column: 1 / -1; }
html.nf-page .fb-page .fb-avatar { width: 32px; height: 32px; font-size: 11px; color: #1F4FD1; background: rgba(47, 107, 255, 0.1); }

/* The featured post: one wide card, the picture on the left. */
html.nf-page .fb-page .fb-card--featured {
  flex-direction: row;
  align-items: center;
  padding: 10px;
  border-radius: 30px;
  border-bottom: 0;
}
html.nf-page .fb-page .fb-card--featured .fb-media { width: 58%; aspect-ratio: 16 / 10; border-radius: 22px; }
html.nf-page .fb-page .fb-card--featured .fb-card-body { justify-content: center; padding: clamp(20px, 3vw, 40px); }
html.nf-page .fb-page .fb-card--featured .fb-card-title {
  margin: 16px 0 12px;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  -webkit-line-clamp: 4;
}
html.nf-page .fb-page .fb-card--featured .fb-card-sum { margin-bottom: 22px; font-size: 16px; -webkit-line-clamp: 3; }
html.nf-page .fb-page .fb-card--featured .fb-meta { margin-top: 0; }
html.nf-page .fb-page .fb-card-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  height: 44px;
  margin-top: 26px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--fbl-ink);
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
}

@media (hover: hover) {
  html.nf-page .fb-page .fb-card:hover .fb-card-title { text-decoration: none; }
  html.nf-page .fb-page .fb-card:hover { background: #FFFFFF; box-shadow: var(--fbl-shadow-hi), inset 0 0 0 1px rgba(17, 19, 24, 0.1); }
}

/* ---- More, the empty note, the closing panel --------------------------- */
html.nf-page .fb-page .fb-more-row { display: flex; justify-content: center; margin-top: 40px; }
html.nf-page .fb-page .fb-more-btn {
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: var(--fbl-shadow), inset 0 0 0 1px rgba(17, 19, 24, 0.12);
  font: 600 15px/1 var(--fb-sans);
  color: var(--fbl-ink);
  cursor: pointer;
}
html.nf-page .fb-page .fb-more-btn:hover { box-shadow: var(--fbl-shadow-hi), inset 0 0 0 1px rgba(17, 19, 24, 0.18); }
html.nf-page .fb-page .fb-more-btn[hidden] { display: none; }
html.nf-page .fb-page:not(.fb-post) .fb-status { text-align: center; }

html.nf-page .fb-page .fb-cta { padding: 0 0 clamp(56px, 8vw, 104px); border-top: 0; background: none; }
html.nf-page .fb-page .fb-cta-in {
  width: min(100% - 40px, 1200px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 60%),
    linear-gradient(115deg, #DCE6FF 0%, #CCD8FF 32%, #E3D5FF 60%, #FFD6EE 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.06), 0 30px 70px -42px rgba(124, 77, 255, 0.45);
}
html.nf-page .fb-page.fb-post .fb-cta-in { width: min(100% - 40px, 896px); }
html.nf-page .fb-page .fb-cta h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 650; letter-spacing: -0.03em; color: var(--fbl-ink); }
html.nf-page .fb-page .fb-cta p { color: #2B303B; }
html.nf-page .fb-page .fb-cta .fgd-btn--ember { background: var(--fbl-ink) !important; color: #FFFFFF !important; box-shadow: none !important; }
html.nf-page .fb-page .fb-cta .fgd-btn--ghost { background: rgba(255, 255, 255, 0.75) !important; color: var(--fbl-ink) !important; }

/* ---- A post's "Read next": two cards ---------------------------------- */
html.nf-page .fb-page.fb-post .fb-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Tablets and phones ------------------------------------------------- */
@media (max-width: 1080px) {
  html.nf-page .fb-page:not(.fb-post) .fb-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html.nf-page .fb-page .fb-card--featured { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 24px; }
  html.nf-page .fb-page .fb-card--featured .fb-media { width: 100%; border-radius: 17px; }
  html.nf-page .fb-page .fb-card--featured .fb-card-body { padding: 16px 12px 12px; }
  html.nf-page .fb-page .fb-card--featured .fb-card-title { font-size: 24px; }
  html.nf-page .fb-page .fb-cta-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  html.nf-page .fb-page:not(.fb-post) .fb-feed,
  html.nf-page .fb-page.fb-post .fb-feed { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html.nf-page .fb-page .fb-toolbar { gap: 8px; }
  html.nf-page .fb-page .fb-search { order: 3; width: 100%; }
  html.nf-page .fb-page .fb-tabs { overflow-x: auto; }
}

/* ---- Motion: cards lift, their picture leans in, a light sweep passes -- */
@media (prefers-reduced-motion: no-preference) {
  html.nf-page .fb-page .fb-card {
    transition: translate var(--dur-glide) var(--ease-out), box-shadow var(--dur-glide) var(--ease-out);
  }
  html.nf-page .fb-page .fb-card:is(:hover, :focus-visible) { translate: 0 -4px; }
  html.nf-page .fb-page .fb-card .fb-media img { transition: scale 700ms var(--ease-out); }
  html.nf-page .fb-page .fb-card:is(:hover, :focus-visible) .fb-media img { scale: 1.05; }
  html.nf-page .fb-page .fb-card .fb-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.4) 47%, rgba(255, 255, 255, 0) 64%);
    translate: -110% 0;
  }
  html.nf-page .fb-page .fb-card:hover .fb-media::after { translate: 110% 0; transition: translate 1000ms var(--ease-out); }
  html.nf-page .fb-page .fb-card-more svg { transition: translate var(--dur-glide) var(--ease-out); }
  html.nf-page .fb-page .fb-card:hover .fb-card-more svg { translate: 3px 0; }
  html.nf-page .fb-page .fb-more-btn { transition: translate var(--dur-glide) var(--ease-out), box-shadow var(--dur-glide) var(--ease-out); }
  html.nf-page .fb-page .fb-more-btn:hover { translate: 0 -2px; }
  html.nf-page .fb-page .fb-more-btn:active { translate: 0 0; scale: var(--lift-press); }
}

.blog-sticky-build { transition: opacity var(--dur-enter, 200ms) var(--ease-out, ease-out), visibility var(--dur-enter, 200ms); }
.blog-sticky-build.is-waiting { opacity: 0; visibility: hidden; pointer-events: none; }
