/* ==========================================================================
   D68 (2026-05-24) — marketing-nav critical CSS shim.
   --------------------------------------------------------------------------
   The marketing site's `.mobile-nav-bottom` + `.language-switcher` styles
   live INLINE inside `public/index.html` (lines 188-260). They are not in
   any external stylesheet. Blog pages load `styles.css` + `main.css` +
   `blog.css` but NOT the inline marketing styles, so without this shim
   `.mobile-nav-bottom` falls back to default `display: block`, which
   stacks the language switcher above the My Gid CTA on every screen size.
   We mirror the marketing rules verbatim, scoped under `.thefloor-blog` so
   they only ever apply on /blog pages. NEVER modify these without diffing
   against the marketing inline block.
   ========================================================================== */
.thefloor-blog .mobile-nav-bottom { display: contents; }

.thefloor-blog .language-switcher {
  display: flex;
  align-items: center;
  background: #f8fafc;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  border: 1px solid #e2e8f0;
}

.thefloor-blog .language-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: #64748b;
}

.thefloor-blog .language-link.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.thefloor-blog .language-link:not(.active):hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

.thefloor-blog .language-flag {
  font-size: 1.1em;
  line-height: 1;
}

@media (max-width: 768px) {
  .thefloor-blog .mobile-nav-bottom {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
  }
  .thefloor-blog .language-switcher {
    margin-left: 0;
    width: 100%;
    margin-bottom: 2rem;
    justify-content: space-between;
    padding: 6px;
  }
  .thefloor-blog .language-link {
    flex: 1;
    padding: 1rem 1rem;
    font-size: 1rem;
  }
}

/* ==========================================================================
   The Floor — Gid editorial blog (D62, 2026-05-23)
   ---------------------------------------------------------------------------
   Scope: ONLY served on /blog/* via the g8BlogRenderer Cloud Function.
   Every selector is namespaced under `.thefloor-*` to guarantee zero leak
   into the marketing site. Inherits ALL design tokens from
   public/assets/css/main.css (--color-primary, --text-*, --space-*, etc.).
   ========================================================================== */

/* ---- Local tokens ------------------------------------------------------- */
.thefloor-blog {
  /* editorial reading typography */
  --thefloor-body-font: "Newsreader", Georgia, "Times New Roman", serif;
  --thefloor-ui-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --thefloor-measure: 68ch;
  --thefloor-body-size: 19px;
  --thefloor-body-leading: 1.65;
  --thefloor-progress-height: 3px;
  --thefloor-card-radius: 14px;
  --thefloor-image-radius: 10px;
  --thefloor-chip-radius: 999px;
}

/* ---- Cluster accent palette (D64) -------------------------------------- */
/* Each cluster gets its own accent dot so the eyebrows have visual rhythm
   across a magazine page. All derived from the brand palette (orange +
   amber + indigo + violet) so the look stays cohesive — never neon. */
.thefloor-cluster__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--thefloor-cluster-color, #f17619);
  vertical-align: middle;
  margin-right: 0.5rem;
  position: relative;
  top: -1px;
}

.thefloor-cluster--floor_operations       { --thefloor-cluster-color: #f17619; } /* brand orange */
.thefloor-cluster--hiring_retention       { --thefloor-cluster-color: #d97706; } /* amber-700 */
.thefloor-cluster--scheduling             { --thefloor-cluster-color: #6366f1; } /* indigo-500 */
.thefloor-cluster--training               { --thefloor-cluster-color: #10b981; } /* emerald-500 */
.thefloor-cluster--allergies_food_safety  { --thefloor-cluster-color: #ef4444; } /* red-500 */
.thefloor-cluster--evaluations_feedback   { --thefloor-cluster-color: #8b5cf6; } /* violet-500 */
.thefloor-cluster--manager_workload       { --thefloor-cluster-color: #0ea5e9; } /* sky-500 */
.thefloor-cluster--tech_stack             { --thefloor-cluster-color: #14b8a6; } /* teal-500 */
.thefloor-cluster--ai_in_hospitality      { --thefloor-cluster-color: #a855f7; } /* purple-500 */
.thefloor-cluster--build_in_public        { --thefloor-cluster-color: #f59e0b; } /* amber-500 */
.thefloor-cluster--industry_trends        { --thefloor-cluster-color: #3b82f6; } /* blue-500 */
.thefloor-cluster--hospitality_umbrella   { --thefloor-cluster-color: #f17619; }
.thefloor-cluster--employee_engagement    { --thefloor-cluster-color: #ec4899; } /* pink-500 */
.thefloor-cluster--leadership_principles  { --thefloor-cluster-color: #6366f1; }
.thefloor-cluster--recognition_systems    { --thefloor-cluster-color: #d97706; }
.thefloor-cluster--hospitality_culture    { --thefloor-cluster-color: #f17619; }
.thefloor-cluster--payments_ops           { --thefloor-cluster-color: #06b6d4; } /* cyan-500 */

/* ---- Entrance reveal (D64) -------------------------------------------- */
/* JS adds `.is-visible` via Intersection Observer when the section enters
   the viewport. Pure CSS fallback shows everything if JS is off. */
.thefloor-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.js .thefloor-reveal {
  opacity: 0;
  transform: translateY(12px);
}
.js .thefloor-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .thefloor-reveal,
  .thefloor-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- Container --------------------------------------------------------- */
.thefloor-blog {
  background: #ffffff;
  color: var(--color-gray-900);
}

.thefloor-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.thefloor-reading-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

/* ---- Pull the page below the fixed marketing nav ----------------------- */
.thefloor-page {
  padding-top: 90px; /* clears the .main-nav fixed header (~70px on mobile, 80px desktop) */
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* ==========================================================================
   1. LANDING — "The Floor"
   ========================================================================== */

/* ---- Publication header ------------------------------------------------ */
.thefloor-publication {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
}

.thefloor-publication__name {
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--color-gray-900);
  line-height: 1.05;
}

.thefloor-publication__tagline {
  font-family: var(--thefloor-body-font);
  font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  color: var(--color-gray-600);
  margin: 0;
  max-width: 56ch;
  line-height: 1.5;
}

.thefloor-publication__rule {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 1.5rem;
  border: none;
  border-radius: 2px;
}

/* ---- Featured hero (today's article) ----------------------------------- */
.thefloor-featured {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 1024px) {
  .thefloor-featured {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
  .thefloor-featured__body { order: 1; }
  .thefloor-featured__media { order: 2; }
}

.thefloor-featured__issue {
  font-family: var(--thefloor-ui-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin: 0 0 1rem;
}

.thefloor-featured__issue time {
  color: var(--color-gray-700);
}

.thefloor-featured__eyebrow {
  font-family: var(--thefloor-ui-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thefloor-cluster-color, var(--color-primary));
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
}

.thefloor-featured__title {
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  /* D64: bumped — magazine-cover scale on desktop */
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  color: var(--color-gray-900);
}

.thefloor-featured__title a:hover {
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 3px;
  padding-bottom: 4px;
}

.thefloor-featured__meta-byline {
  font-weight: 600;
  color: var(--color-gray-700);
}

.thefloor-featured__title a {
  color: inherit;
  text-decoration: none;
}

.thefloor-featured__excerpt {
  font-family: var(--thefloor-body-font);
  font-style: italic;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-gray-700);
  margin: 0 0 1.25rem;
  max-width: 38ch;
}

.thefloor-featured__meta {
  font-family: var(--thefloor-ui-font);
  font-size: 0.9rem;
  color: var(--color-gray-500);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* D70 (2026-05-26): removed `.thefloor-featured__meta::before { content: "By Gid" }`
   — the HTML already renders `<span class="thefloor-featured__meta-byline">By Gid</span>`
   in `blog_components.ts::renderFeaturedHero()`, so the ::before pseudo-element
   produced "By Gid By Gid" on the landing card. The byline now lives only in HTML. */

.thefloor-featured__cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--thefloor-ui-font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease;
}

.thefloor-featured__cta:hover { border-color: var(--color-primary); }

.thefloor-featured__media a {
  display: block;
  overflow: hidden;
  border-radius: var(--thefloor-image-radius);
  background: var(--color-gray-100);
}

.thefloor-featured__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 767px) {
  .thefloor-featured__img { aspect-ratio: 4 / 3; }
}

.thefloor-featured__media a:hover .thefloor-featured__img { transform: scale(1.02); }

/* ---- Chips (topic filter strip) ---------------------------------------- */
.thefloor-chips-wrap {
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1.25rem 0;
  margin-top: 1rem;
}

.thefloor-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
  list-style: none;
}

.thefloor-chips::-webkit-scrollbar { display: none; }

.thefloor-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.thefloor-chip a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--thefloor-chip-radius);
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  font-family: var(--thefloor-ui-font);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 200ms ease;
  white-space: nowrap;
}

.thefloor-chip a:hover {
  background: var(--color-primary-alpha, rgba(241, 118, 25, 0.08));
  color: var(--color-primary);
}

.thefloor-chip a[aria-current="page"] {
  background: var(--color-gray-900);
  color: #ffffff;
}

/* ---- Article grid (Phase A: simple grid; Phase B adds rails + bento) --- */
.thefloor-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.thefloor-section__title {
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  color: var(--color-gray-900);
}

.thefloor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 640px) {
  .thefloor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .thefloor-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Bento "This week" (D63 Phase B) ---------------------------------- */
.thefloor-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.thefloor-bento__col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 640px) {
  .thefloor-bento { grid-template-columns: repeat(2, 1fr); }
  .thefloor-bento__col { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  /* 8 / 4 asymmetric — featured-large on the left, two small stacked on the right */
  .thefloor-bento { grid-template-columns: 2fr 1fr; align-items: stretch; }
}

.thefloor-card--bento-large .thefloor-card__media { aspect-ratio: 16 / 10; }
.thefloor-card--bento-large .thefloor-card__title { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); }
.thefloor-card--bento-small .thefloor-card__media { aspect-ratio: 4 / 3; }

/* ---- Rails (D63 Phase B) ---------------------------------------------- */
.thefloor-rail-section { padding: clamp(1.75rem, 4vw, 2.75rem) 0; }

.thefloor-rail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.thefloor-rail-header .thefloor-section__title { margin: 0; }

.thefloor-rail-seeall {
  font-family: var(--thefloor-ui-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.thefloor-rail-seeall:hover { border-color: var(--color-primary); }

.thefloor-rail {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 1024px) {
  .thefloor-rail { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet + mobile: horizontal scroll-snap carousel feel (no auto-rotate) */
@media (max-width: 1023px) {
  .thefloor-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 320px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    /* let rail spill slightly outside .thefloor-shell padding for momentum */
    margin-left: calc(-1 * clamp(1rem, 4vw, 2rem));
    margin-right: calc(-1 * clamp(1rem, 4vw, 2rem));
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
  }
  .thefloor-rail::-webkit-scrollbar { display: none; }
  .thefloor-rail .thefloor-card { scroll-snap-align: start; }
}

.thefloor-card--rail .thefloor-card__media { aspect-ratio: 4 / 3; }

/* D64: magazine-style rail numbering. CSS counter on each .thefloor-rail
   container, incremented per .thefloor-card--rail child. Renders as a
   subtle "01 / 02 / 03" prefix above the eyebrow on each card. */
.thefloor-rail {
  counter-reset: thefloor-rail;
}

.thefloor-card--rail {
  counter-increment: thefloor-rail;
  position: relative;
}

.thefloor-card--rail::before {
  content: counter(thefloor-rail, decimal-leading-zero);
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  z-index: 2;
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
}

/* ---- Article card (unified, with variants) ----------------------------- */
.thefloor-card {
  background: #ffffff;
  border-radius: var(--thefloor-card-radius);
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.thefloor-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.thefloor-card:hover { transform: translateY(-2px); }
.thefloor-card:hover .thefloor-card__img { transform: scale(1.02); }

.thefloor-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--thefloor-image-radius);
  background: var(--color-gray-100);
  aspect-ratio: 4 / 3;
}

.thefloor-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.thefloor-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--color-gray-900) 0%, #0c111a 100%);
  color: #fff;
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.thefloor-card__body {
  padding: 1rem 0.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.thefloor-card__eyebrow {
  font-family: var(--thefloor-ui-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thefloor-cluster-color, var(--color-primary));
  display: inline-flex;
  align-items: center;
}

.thefloor-card__title {
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-gray-900);
  margin: 0;
}

.thefloor-card__desc {
  font-family: var(--thefloor-body-font);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-gray-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thefloor-card__meta {
  font-family: var(--thefloor-ui-font);
  font-size: 0.8rem;
  color: var(--color-gray-500);
  margin-top: auto;
  padding-top: 0.25rem;
}

/* ---- Inline newsletter CTA --------------------------------------------- */
.thefloor-newsletter {
  margin: clamp(3rem, 7vw, 5rem) 0 clamp(1rem, 3vw, 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgba(241, 118, 25, 0.05) 0%, rgba(241, 118, 25, 0.10) 100%);
  border: 1px solid rgba(241, 118, 25, 0.18);
  border-radius: var(--thefloor-card-radius);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .thefloor-newsletter { grid-template-columns: 1fr auto; gap: 2rem; }
}

.thefloor-newsletter__copy {
  font-family: var(--thefloor-body-font);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--color-gray-800);
  margin: 0;
  max-width: 50ch;
}

.thefloor-newsletter__copy strong {
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  display: block;
  font-size: 1.1rem;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.thefloor-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.thefloor-newsletter__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-family: var(--thefloor-ui-font);
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--color-gray-900);
  transition: border-color 200ms ease;
}

.thefloor-newsletter__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(241, 118, 25, 0.18);
}

.thefloor-newsletter__btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #f17619, #d97706);
  color: #ffffff;
  font-family: var(--thefloor-ui-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.thefloor-newsletter__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(241, 118, 25, 0.55);
}

.thefloor-newsletter__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.thefloor-newsletter__msg {
  font-family: var(--thefloor-ui-font);
  font-size: 0.875rem;
  color: var(--color-gray-700);
  margin: 0.25rem 0 0;
  min-height: 1.2em;
}

.thefloor-newsletter__msg.is-error { color: #b91c1c; }
.thefloor-newsletter__msg.is-success { color: #047857; font-weight: 500; }

/* Honeypot — must be invisible to humans but reachable by bots */
.thefloor-newsletter__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---- Empty state ------------------------------------------------------- */
.thefloor-empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  font-family: var(--thefloor-body-font);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-gray-500);
  border: 1px dashed var(--color-gray-200);
  border-radius: var(--thefloor-card-radius);
  background: var(--color-gray-50);
}

/* ==========================================================================
   2. ARTICLE READING PAGE
   ========================================================================== */

/* ---- Reading-progress bar --------------------------------------------- */
.thefloor-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--thefloor-progress-height);
  background: rgba(0, 0, 0, 0);
  z-index: 100;
  pointer-events: none;
}

.thefloor-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  transition: width 80ms linear;
  box-shadow: 0 0 8px rgba(241, 118, 25, 0.5);
}

/* ---- Breadcrumb ------------------------------------------------------- */
.thefloor-breadcrumb {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 0.5rem;
  font-family: var(--thefloor-ui-font);
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.thefloor-breadcrumb a {
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color 150ms ease;
}

.thefloor-breadcrumb a:hover { color: var(--color-primary); }

.thefloor-breadcrumb__sep {
  margin: 0 0.5rem;
  color: var(--color-gray-300);
}

/* ---- Article header ---------------------------------------------------- */
.thefloor-article-header {
  padding-bottom: 1.5rem;
}

.thefloor-article-title {
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.4rem + 2.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1.25rem;
  color: var(--color-gray-900);
}

.thefloor-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-family: var(--thefloor-ui-font);
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.thefloor-article-meta__byline {
  color: var(--color-gray-700);
  font-weight: 600;
}

.thefloor-article-meta__sep {
  color: var(--color-gray-300);
}

/* ---- Hero image ------------------------------------------------------- */
.thefloor-hero {
  margin: 1.5rem -clamp(0px, 2vw, 16px) 0.5rem;
  padding: 0;
}

.thefloor-hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--thefloor-image-radius);
  background: var(--color-gray-100);
}

.thefloor-hero__caption {
  font-family: var(--thefloor-body-font);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-gray-500);
  margin: 0.6rem 0.25rem 0;
  text-align: right;
}

/* ---- Article body (Newsreader long-form) ------------------------------ */
.thefloor-body {
  font-family: var(--thefloor-body-font);
  font-size: var(--thefloor-body-size);
  line-height: var(--thefloor-body-leading);
  color: var(--color-gray-900);
  /* D70 (2026-05-26): use margin-top only — `margin: 2rem 0 0` shorthand
     would set margin-left/right to 0 and clobber `.thefloor-reading-shell`'s
     `margin: 0 auto`. At ≥1500px viewports the body ended up flush-left
     while the title stayed centered. Stick to single-side props. */
  margin-top: 2rem;
  /* Variable optical sizing — let Newsreader pick its display optical */
  font-variation-settings: "opsz" 16;
}

.thefloor-body p {
  margin: 0 0 1.25em;
  max-width: var(--thefloor-measure);
}

.thefloor-body h2 {
  font-family: var(--thefloor-ui-font);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2.25em 0 0.75em;
  color: var(--color-gray-900);
}

.thefloor-body h3 {
  font-family: var(--thefloor-ui-font);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 1.75em 0 0.5em;
  color: var(--color-gray-900);
}

.thefloor-body a {
  color: var(--color-gray-900);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.thefloor-body a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

.thefloor-body ul, .thefloor-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
  max-width: var(--thefloor-measure);
}

.thefloor-body li { margin-bottom: 0.4em; }

.thefloor-body blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 1.75em 0;
  padding: 0.25em 0 0.25em 1.25em;
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.45;
  color: var(--color-gray-700);
  max-width: var(--thefloor-measure);
}

.thefloor-body code {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.9em;
  background: var(--color-gray-100);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.thefloor-body strong { font-weight: 600; color: var(--color-gray-900); }
.thefloor-body em { font-style: italic; }

/* ---- Sources section -------------------------------------------------- */
.thefloor-sources {
  /* D70: single-side props so margin-left/right stay `auto` from .thefloor-reading-shell */
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
}

.thefloor-sources__title {
  font-family: var(--thefloor-ui-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin: 0 0 0.75rem;
}

.thefloor-sources__list {
  list-style: decimal;
  margin: 0;
  padding-left: 1.25em;
  font-family: var(--thefloor-body-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-gray-700);
}

.thefloor-sources__list li { margin-bottom: 0.4rem; }
.thefloor-sources__list a { color: var(--color-gray-900); text-decoration: underline; text-decoration-color: var(--color-primary); }

/* ---- AI disclosure (soft footer card) --------------------------------- */
.thefloor-disclosure {
  /* D70: single-side margin props (see .thefloor-body comment) */
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  font-family: var(--thefloor-ui-font);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-gray-600);
}

/* ---- Share row -------------------------------------------------------- */
.thefloor-share {
  /* D70: single-side margin props (see .thefloor-body comment) */
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.thefloor-share__label {
  font-family: var(--thefloor-ui-font);
  font-size: 0.875rem;
  color: var(--color-gray-600);
  font-weight: 500;
}

.thefloor-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-gray-700);
  font-family: var(--thefloor-ui-font);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms ease;
}

.thefloor-share__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(241, 118, 25, 0.04);
}

/* ---- Related row ------------------------------------------------------ */
.thefloor-related {
  margin: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
}

.thefloor-related__title {
  font-family: var(--thefloor-ui-font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin: 0 0 1.25rem;
}

.thefloor-related__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .thefloor-related__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   3. VIEW TRANSITIONS
   ========================================================================== */

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* The featured/card hero images mark `view-transition-name: hero-{slug}`
   inline so the browser pairs them on navigation. No additional rule
   needed here; default cross-fade applies. */

/* ==========================================================================
   4. Reduce motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .thefloor-card,
  .thefloor-card__img,
  .thefloor-featured__img,
  .thefloor-progress__bar,
  .thefloor-newsletter__btn {
    transition: none !important;
    animation: none !important;
  }
  @view-transition { navigation: none; }
}

/* ==========================================================================
   5. Print
   ========================================================================== */
@media print {
  .thefloor-progress,
  .thefloor-newsletter,
  .thefloor-share,
  .thefloor-related,
  .main-nav,
  .main-footer { display: none !important; }
  .thefloor-body { font-size: 12pt; }
}
