/* ==========================================================================
   Roarke Clinton - Pixel-Perfect Webflow Recreation
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font Faces
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Manrope Variablefont Wght';
  src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rc Brand Font';
  src: url('../fonts/RC-BRAND-FONT.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Variables (from Webflow)
   -------------------------------------------------------------------------- */

:root {
  /* Typography Scale - Medium-inspired for optimal readability
     Key insight: 18px minimum body text, 21px desktop target
     Never sacrifice readability for aesthetics */
  --type-display: clamp(2.25rem, 2vw + 1.5rem, 3rem);        /* 36-48px: Page titles, hero name */
  --type-heading: clamp(1.75rem, 0.5vw + 1.5rem, 2rem);      /* 28-32px: Section headers (h2) */
  --type-subhead: clamp(1.25rem, 0.75vw + 1rem, 1.625rem);   /* 20-26px: Sub-sections, CTAs */
  --type-body: clamp(1.125rem, 0.35vw + 1rem, 1.3125rem);    /* 18-21px: Body text - Medium standard */
  --type-body-nav: clamp(1rem, 0.25vw + 0.875rem, 1.125rem); /* 16-18px: Nav links */
  --type-small: clamp(1rem, 0.25vw + 0.875rem, 1.125rem);    /* 16-18px: Labels, captions */
  --type-xs: clamp(0.875rem, 0.25vw + 0.75rem, 1rem);        /* 14-16px: Metadata, subscripts */

  /* Catppuccin Latte Palette - https://catppuccin.com/palette */
  --latte-text: #4c4f69;
  --latte-subtext1: #5c5f77;
  --latte-subtext0: #6c6f85;
  --latte-overlay2: #7c7f93;
  --latte-overlay1: #8c8fa1;
  --latte-overlay0: #9ca0b0;
  --latte-surface2: #acb0be;
  --latte-surface1: #bcc0cc;
  --latte-surface0: #ccd0da;
  --latte-base: #eff1f5;
  --latte-mantle: #e6e9ef;
  --latte-mantle-light: #ebedf2;
  --latte-crust: #dce0e8;
  --latte-sapphire: #209fb5;
  --latte-blue: #1e66f5;
  --latte-lavender: #7287fd;
  --latte-mauve: #8839ef;
  --latte-maroon: #e64553;
  --latte-peach: #fe640b;
  --latte-teal: #179299;

  /* Theme Colors (mapped to Latte) */
  --grey: var(--latte-overlay1);
  --blue-link: var(--latte-sapphire);
  --indian-red: var(--latte-maroon);
  --cta: var(--latte-blue);
  --neutral-800: var(--latte-text);
  --paragraph-gray: var(--latte-overlay0);
  --h1-4-gray: var(--latte-text);
  --brand-text: var(--latte-text);
  --white-smoke: var(--latte-base);
  --dark-slate-grey: var(--latte-subtext0);
  --header-gray: var(--latte-overlay0);
  --bold-grey: var(--latte-overlay1);
  --paragraph-gray-2: var(--latte-subtext1);
  --dim-grey: var(--latte-subtext1);

  /* Fluid spacing scale - replaces breakpoint overrides */
  --space-xs: clamp(8px, 1.5vw, 15px);
  --space-sm: clamp(15px, 2.5vw, 30px);
  --space-md: clamp(30px, 5vw, 75px);
  --space-lg: clamp(60px, 5em, 120px);
  --space-xl: clamp(80px, 10em, 160px);

  /* Hero section */
  --hero-gap: clamp(20px, 6vw, 200px);
  --hero-photo-size: clamp(100px, 20vw, 400px);
  --cta-gap: clamp(15px, 2.5vw, 30px);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--cta);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0 0 4px 0;
  clip-path: inset(100%);
  transition: clip-path 0.2s ease;
}

.skip-link:focus {
  clip-path: inset(0);
  outline: 2px solid var(--latte-text);
  outline-offset: 2px;
}

.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;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* --------------------------------------------------------------------------
   Webflow Utility Classes
   -------------------------------------------------------------------------- */

.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.w-layout-grid {
  display: grid;
}

.w-richtext:before,
.w-richtext:after {
  content: " ";
  display: table;
  grid-column-start: 1;
  grid-row-start: 1;
  grid-column-end: 2;
  grid-row-end: 2;
}

.w-richtext:after {
  clear: both;
}

.w-richtext ol,
.w-richtext ul {
  overflow: hidden;
}

/* w--current state for active nav links */
.w--current {
  /* Style as needed */
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */

body {
  color: var(--latte-text);
  letter-spacing: 0.005em;
  background-color: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--type-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  letter-spacing: -0.02em;
  margin: 0;
  font-size: var(--type-display);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  text-align: left;
  margin: 0;
  font-size: var(--type-heading);
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  margin: 0;
  font-size: var(--type-subhead);
  font-weight: 600;
  line-height: 1.4;
}

p { margin: 0; }

a {
  color: var(--blue-link);
  text-decoration: none;
}

ul {
  margin: 0 auto;
  padding-left: 40px;
}

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

strong { font-weight: 600; }
em { font-style: italic; }

.page {
  background-color: var(--latte-base);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Page Structure
   -------------------------------------------------------------------------- */

.page-structure {
  z-index: 1;
  flex-direction: column;
  flex: 1;
  padding-top: 0;
  display: flex;
  position: relative;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.navbar-symbol {
  z-index: 200;
  background-color: var(--latte-base);
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  padding-bottom: 15px;
  font-size: 1em;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.navbar-symbol.simple {
  max-height: 200px;
  padding-top: 35px;
  padding-bottom: 20px;
}

.div-block-94 {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  flex-flow: row;
  flex: 0 auto;
  justify-content: space-between;
  align-items: center;
  width: 94%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  font-size: 1em;
  display: flex;
}

.brandwrapper {
  z-index: 560;
  grid-column-gap: 10px;
  grid-row-gap: 0px;
  color: var(--blue-link);
  align-self: center;
  align-items: stretch;
  height: auto;
  font-size: 1em;
  line-height: 1.5;
  display: flex;
  position: relative;
  text-decoration: none;
}

.image-4 {
  width: 34px;
  height: 34px;
  border-radius: 100px;
  margin-right: 0;
}

.brand-text {
  color: var(--latte-text);
  text-transform: none;
  flex: 0 auto;
  align-items: center;
  height: auto;
  margin-top: 0;
  font-size: var(--type-subhead);
  font-weight: 600;
  line-height: 100%;
  display: flex;
}

.brand-text:hover {
  color: var(--blue-link);
}

.nav-link-wrapper {
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  display: flex;
}

.nav-link {
  z-index: 500;
  border-bottom: 2px solid #0000;
  border-radius: 10px;
  flex-direction: row;
  order: 0;
  align-items: center;
  width: auto;
  height: 100%;
  font-size: 1em;
  display: flex;
  position: relative;
  overflow: hidden;
}

.nav-link.w--current {
  background-color: #9999992e;
  border-radius: 10px;
}

.nav-link-text {
  color: var(--latte-text);
  flex: 0 auto;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-size: var(--type-body-nav);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s ease-in;
  display: flex;
}

.nav-link-text:hover {
  color: var(--latte-maroon);
}

.nav-link-text.header:hover {
  color: var(--neutral--800);
}

/* .cta-link has no special color in Webflow - inherits from .nav-link-text.header */

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */

.container {
  grid-column-gap: 0vw;
  grid-row-gap: 0vw;
  flex-direction: column;
  width: 85%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  position: relative;
}

/* --------------------------------------------------------------------------
   Content Wrapper
   -------------------------------------------------------------------------- */

.content {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  text-align: left;
  background-color: transparent;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  font-size: var(--type-body);
  line-height: 1.6;
  display: flex;
  position: relative;
}

/* --------------------------------------------------------------------------
   Block Layout (KEY: flex-direction: row-reverse)
   -------------------------------------------------------------------------- */

.block {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: flex-start;
}

.block.centered {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Content Column - Info (70% width) */
.content-wrapper {
  flex: 0 auto;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.content-wrapper.column {
  flex: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.content-wrapper.column.info {
  flex: 0 auto;
  width: 70%;
  max-width: 70%;
}

.content-wrapper.column.title {
  flex: 1;
  align-items: flex-start;
  align-self: flex-start;
  min-height: auto;
  margin-bottom: 0;
}

.content-wrapper.column.profile-photo {
  flex: 0 auto;
  justify-content: center;
  align-items: center;
  width: auto;
  margin-right: 0;
  display: flex;
}

/* Content wrapper with column class - constrain width */
.column.content-wrapper {
  max-width: 500px;
  height: auto;
  min-height: 50px;
}

/* Title wrapper inside title column */
.title-wrapper {
  z-index: 1;
  border-radius: 10px;
  padding-top: 0;
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Section Title (Uppercase labels)
   -------------------------------------------------------------------------- */

.section-title {
  text-transform: uppercase;
  margin-bottom: 0;
  padding-bottom: 0;
  padding-left: 0;
  font-size: var(--type-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

.section-title.major-section {
  justify-content: center;
  align-items: center;
  margin-bottom: 1vw;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--type-subhead);
  display: flex;
}

.section-title.hero-section {
  opacity: 0;
  font-size: 0.5em;
}

/* --------------------------------------------------------------------------
   Hero / Intro Section
   -------------------------------------------------------------------------- */

.page-title {
  text-align: center;
  letter-spacing: 0;
  font-size: var(--type-display);
  font-weight: 600;
  line-height: 1.3;
}

.page-title.home-pg {
  text-align: left;
  font-size: var(--type-display);
  line-height: 1.3;
}

.page-sub-message {
  text-align: left;
  width: 100%;
  font-size: var(--type-subhead);
  font-weight: 400;
  line-height: 1.6;
}

/* Photo */
.photo {
  object-fit: cover;
  background-color: #fff;
  border-radius: 50%;
  width: var(--hero-photo-size);
  height: var(--hero-photo-size);
  overflow: hidden;
}

/* Contact Card / CTA Area */
.contact-card-wrapper {
  display: grid;
  place-items: start;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

.contact-button {
  z-index: 500;
  flex-direction: row;
  order: 1;
  justify-content: flex-end;
  align-self: flex-end;
  align-items: center;
  width: auto;
  height: auto;
  margin-bottom: 30px;
  font-size: 1em;
  display: flex;
  position: sticky;
  inset: auto 30px 30px auto;
}

.contact-button.in-page {
  flex-flow: column;
  justify-content: flex-start;
  align-self: flex-start;
  align-items: center;
  margin-bottom: 0;
  position: static;
}

/* Sticky Contact Button (bottom-right of page) */
.contact-button.sticky-button {
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  right: 30px;
  text-decoration: none;
  cursor: pointer;
}

/* Icon circle - visible by default */
.contact-button.sticky-button .contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--cta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-button.sticky-button .contact-icon:hover {
  transform: scale(1.05);
}

/* Text - hidden by default, matches .nav-link-text.cta.simple sizing */
.contact-button.sticky-button .contact-text {
  position: absolute;
  right: 0;
  background-color: var(--cta);
  color: #fff;
  padding: 10px 40px 12px;
  border-radius: 100px;
  font-size: var(--type-subhead);
  line-height: 160%;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Desktop hover: show text, hide icon */
@media (hover: hover) {
  .contact-button.sticky-button:hover .contact-icon {
    opacity: 0;
    pointer-events: none;
  }

  .contact-button.sticky-button:hover .contact-text {
    opacity: 1;
    pointer-events: auto;
  }
}

/* CTA Button */
.nav-link-text.cta.simple {
  background-color: var(--cta);
  color: #fff;
  text-align: center;
  letter-spacing: 0;
  border-radius: 100px;
  margin-left: 0;
  padding: 10px 40px 12px;
  font-size: var(--type-subhead);
  line-height: 160%;
  text-decoration: none;
  display: inline-block;
}

.nav-link-text.cta.simple:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Input submit button reset for CTA styling */
input[type="submit"].nav-link-text.cta.simple {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  width: auto;
}

/* In-page CTA buttons (Book/Other tabs) - white style */
.nav-link-text.cta.simple.in-page {
  display: inline-flex;
  color: #000;
  background-color: #fff;
  justify-content: flex-start;
  align-items: center;
  align-self: flex-start;
  height: auto;
  white-space: nowrap;
  font-family: 'Manrope Variablefont Wght', sans-serif;
  font-size: 22px;
  box-shadow: 0 2px 5px #0000001a;
}

.nav-link-text.cta.simple.in-page:hover {
  box-shadow: 0 2px 10px #0003;
}

/* Scheduling link icons */
.cta-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.cta-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Horizontal spreader (spacing between title and photo) */
.vw.horizontal-spreader {
  width: 6vw;
  max-width: 200px;
}

/* --------------------------------------------------------------------------
   Vertical Spacing (Webflow's .vw.vertical-splitter)
   -------------------------------------------------------------------------- */

.vertical-splitter {
  width: 100%;
  height: var(--space-lg);
}

.vertical-splitter.top-of-page {
  width: 100%;
  height: 10em;
}

.vertical-splitter.sub-section {
  width: auto;
  height: var(--space-md);
}

.vertical-splitter.sub-section.sub-content {
  height: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Company Logos
   -------------------------------------------------------------------------- */

.companylogowrapper {
  text-align: center;
  margin-top: clamp(24px, 4vw, 50px);
  padding: 0;
}

.brandlogos {
  opacity: 0.3;
  width: clamp(90px, 10vw, 120px);
  height: clamp(45px, 5vw, 60px);
  margin: clamp(15px, 2vw, 28px);
  display: inline-block;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   RTE Article Content (Rich Text Editor styling)
   -------------------------------------------------------------------------- */

.rte-article {
  margin-top: -3vw;
  margin-bottom: 0;
  font-weight: 400;
}

.rte-article.home-pg {
  justify-content: center;
  margin-top: -3.2vw;
}

.rte-article.home-pg.over-bullets {
  margin-top: 0;
  margin-bottom: 2vw;
}

.rte-article.home-pg.bullets {
  margin-top: -2vw;
}

/* Reset margins for first rte-article to enable baseline alignment with section title */
.content-wrapper.column.info > .rte-article:first-child {
  margin-top: 0;
}

.content-wrapper.column.info > .rte-article:first-child > p:first-child {
  margin-top: 0;
}

.rte-article p {
  flex-direction: column;
  margin-top: 3vw;
  margin-right: auto;
}

.rte-article ul {
  flex-flow: column;
  margin-top: 2vw;
  margin-right: auto;
  padding-left: 25px;
  display: flex;
  list-style: disc;
}

.rte-article li {
  margin-bottom: 1vw;
  line-height: 160%;
}

.rte-article a {
  text-decoration: underline;
}

.rte-article em {
  line-height: 160%;
}

.rte-article strong {
  font-weight: 600;
}

/* Subscript for testimonial attribution */
.rte-article sub {
  color: var(--latte-subtext1);
  font-size: var(--type-body);
  font-weight: 400;
  vertical-align: baseline;
}

/* --------------------------------------------------------------------------
   Expertise Grid / Core Competencies
   -------------------------------------------------------------------------- */

.expertisegrid {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  width: 100%;
  margin-top: 3vw;
  padding-bottom: 0;
  display: grid;
}

.cards {
  background-color: var(--latte-mantle-light);
  display: flex;
}

.competencie {
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 1vw 2vw;
  font-weight: 500;
  display: flex;
}

/* --------------------------------------------------------------------------
   Sub Navigation (Bottom)
   -------------------------------------------------------------------------- */

.section.sub-nav {
  background-color: transparent;
}

.subnav {
  text-align: center;
  align-self: center;
  margin-top: 3vw;
  margin-bottom: 3vw;
}

.work-nav-wrapper {
  gap: 1.3vw;
  justify-content: center;
  align-self: center;
  display: block;
}

.project-nav-links {
  color: var(--latte-text);
  white-space: nowrap;
  cursor: pointer;
  padding: 2vw;
  font-size: var(--type-body-nav);
  display: inline-block;
  text-decoration: none;
}

.project-nav-links:hover {
  color: var(--blue-link);
}

.work-nav {
  color: var(--latte-text);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Footer / Thank You Section
   -------------------------------------------------------------------------- */

.thank-you-wrapper {
  z-index: 0;
  color: var(--latte-text);
  text-align: left;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 35px;
  display: flex;
  position: relative;
  inset: auto 0% 0%;
}

.div-block-89 {
  text-align: center;
  justify-content: space-between;
  align-items: center;
  align-self: center;
  width: 94%;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0;
  display: flex;
  position: relative;
}

.div-block-106 {
  order: 0;
  display: flex;
}

.outlined-link {
  z-index: 0;
  grid-column-gap: 5px;
  color: var(--latte-text);
  cursor: pointer;
  justify-content: flex-start;
  align-items: stretch;
  height: auto;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  display: flex;
  position: relative;
  text-decoration: none;
}

.outlined-link:hover {
  color: var(--blue-link);
}

.outlined-link:focus {
  color: var(--indian-red);
  text-shadow: none;
}

.thank-you {
  text-align: center;
  align-items: center;
  height: 100%;
  padding-left: 5px;
  padding-right: 5px;
  font-weight: 600;
  display: flex;
}

.thank-you.splitter {
  font-size: 34px;
  font-weight: 300;
}

.copywrite {
  text-align: center;
  align-items: center;
  height: 100%;
  padding-left: 5px;
  padding-right: 5px;
  font-weight: 400;
  display: flex;
}

.copywrite:hover {
  color: var(--latte-text);
}

.copywrite.splitter {
  font-size: 34px;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */

.heading-3 {
  text-align: left;
  font-size: var(--type-display);
  font-weight: 600;
  line-height: 1.3;
}

.connect-tagline {
  color: var(--latte-subtext1);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 480px;
}

/* Tabs */
.tabs-container {
  width: 100%;
}

.tabs-menu {
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  display: flex;
}

.tab-text-wrapper {
  background-color: #ddd0;
  padding: 0;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.tab-text-wrapper.active,
.tab-text-wrapper.w--current {
  background-color: #9999992e;
  border-radius: 12px;
  padding: 0;
}

.tab-text-wrapper:focus {
  outline: none;
}

.tab-text-wrapper:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  border-radius: 12px;
}

.nav-link-text.tab {
  padding: 10px 50px;
  font-size: var(--type-body-nav);
  transition: color 0.15s ease;
}

.nav-link-text.tab:hover {
  color: var(--blue-link);
}

.tabs-content {
  width: 100%;
}

.tab-pane {
  display: none;
  min-height: auto;
  padding-top: 24px;
}

.tab-pane.active,
.tab-pane.w--tab-active {
  display: block;
}

/* Card base styling */
.card {
  background-color: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 2px 7px #0000000f;
}

/* Form card */
.card.form {
  box-shadow: 0 2px 7px #0000000f;
  border-radius: 12px;
  align-items: stretch;
  min-height: 580px;
  margin-bottom: 0;
  padding: 48px;
  display: flex;
  width: 100%;
}

.card.form.mobile {
  display: none;
}

.card.form.desktop {
  display: flex;
}

/* Form element inside card */
.card.form form {
  width: 100%;
}

.grid-2-columns.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
}

.field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-wrapper.full-width {
  grid-column: span 2;
}

.field-wrapper.submit-wrapper {
  margin-top: 10px;
  align-items: flex-start;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: #131313;
  text-transform: uppercase;
  line-height: 16px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--latte-surface1);
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--type-body);
  line-height: 1.4;
  min-height: 52px;
  background-color: #fff;
  color: var(--latte-text);
  margin-bottom: 0;
  transition: border-color 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--latte-blue);
}

.input::placeholder {
  color: var(--latte-overlay0);
}

.text-area {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--latte-surface1);
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--type-body);
  line-height: 1.6;
  min-height: 140px;
  background-color: #fff;
  color: var(--latte-text);
  transition: border-color 0.2s ease;
  resize: vertical;
}

.text-area:focus {
  outline: none;
  border-color: var(--latte-blue);
}

.text-area::placeholder {
  color: var(--latte-overlay0);
}

.input:hover,
.text-area:hover {
  border-color: var(--latte-blue);
}

/* Booking/Other tabs content */
.field-wrapper.ctas {
  display: flex;
  flex-flow: column;
  gap: 20px;
  width: 50%;
  max-width: 400px;
}

/* Booking Cards Layout */
.booking-cards {
  display: flex;
  gap: 48px;
  width: 100%;
}

.booking-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 32px;
  position: relative;
}

/* Vertical divider between booking options on desktop */
.booking-cards:not(.single) .booking-card:first-child::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: #e8e8e8;
}

.booking-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--latte-sapphire);
}

.booking-icon.priority {
  color: var(--latte-peach);
}

.booking-icon.linkedin {
  color: #0a66c2;
}

.booking-icon.newsletter {
  color: var(--latte-mauve);
}

/* Follow Tab Layout - stack newsletter and social vertically */
.card.form:has(.newsletter-section) {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Book Tab - vertically center booking cards */
.card.form:has(.booking-cards) {
  align-items: center;
  justify-content: center;
}

/* Newsletter Section */
.newsletter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 32px;
  width: 100%;
  max-width: 500px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin-top: 4px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 16px;
  font-size: var(--type-body);
  font-family: inherit;
  border: 1px solid var(--latte-surface1);
  border-radius: 8px;
  background: #fff;
  color: var(--latte-text);
  min-height: 52px;
  transition: border-color 0.2s ease;
}

.newsletter-input:hover {
  border-color: var(--latte-blue);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--latte-blue);
}

.newsletter-input::placeholder {
  color: var(--latte-overlay0);
}

/* Social Section */
.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 32px 8px;
}

.social-divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background-color: #e8e8e8;
  margin-bottom: 20px;
}

.social-label {
  font-size: var(--type-small);
  color: var(--latte-overlay1);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--latte-surface0);
  color: var(--latte-overlay1);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--latte-blue);
  color: var(--latte-base);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Single card centering (for Follow tab) */
.booking-cards.single {
  justify-content: center;
}

.booking-cards.single .booking-card {
  flex: 0 1 400px;
}

.booking-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.booking-title {
  font-size: var(--type-subhead);
  font-weight: 600;
  color: var(--latte-text);
  margin-bottom: 8px;
}

.booking-desc {
  font-size: var(--type-small);
  color: var(--latte-overlay1);
  margin-bottom: 24px;
  line-height: 1.5;
}

.booking-cta {
  display: inline-block;
  background-color: var(--cta);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 100px;
  font-size: var(--type-body-nav);
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.booking-cta:hover {
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Form Success/Error Messages */
.success-message {
  background-color: #fff;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  display: none;
}

.success-message.visible {
  display: block;
}

.error-message {
  color: #727272;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-top: 20px;
  padding: 20px 24px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Fix hero CTA spacing - hide vw spacer, use fluid margin instead */
.contact-button.in-page .vertical-splitter {
  display: none;
}

.contact-button.in-page {
  margin-top: var(--cta-gap);
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */

/* Tablet */
@media screen and (max-width: 991px) {
  .navbar-symbol {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .div-block-94 {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    align-items: center;
  }

  /* Sticky button stays visible on tablet - will be overridden by mobile styles */

  /* Form input responsive overrides */
  .input {
    border-radius: 6px;
    min-height: 60px;
  }

  .text-area {
    border-radius: 6px;
  }

  .grid-2-columns.form {
    grid-row-gap: 18px;
  }

  .field-wrapper.ctas {
    width: 100%;
  }

  /* Typography handled by clamp() - no overrides needed */

  .companylogowrapper {
    margin-top: clamp(20px, 3vw, 40px);
  }

  .brandlogos {
    width: clamp(90px, 13vw, 130px);
    height: clamp(45px, 6.5vw, 70px);
    margin: clamp(12px, 2vw, 20px);
  }

  .vw.horizontal-spreader {
    height: auto;
  }

  .expertisegrid {
    margin-top: 3vw;
  }

  .column.content-wrapper {
    max-width: 100%;
    margin-bottom: 0;
  }

  .copywrite {
    text-align: center;
    flex: 0 auto;
    justify-content: center;
  }

  .competencie {
    padding-top: 2vw;
    padding-bottom: 2vw;
    font-weight: 500;
    line-height: 120%;
  }

  .thank-you-wrapper {
    flex-flow: column;
    justify-content: center;
    align-items: stretch;
  }

  .div-block-89 {
    grid-row-gap: 0vw;
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
    display: flex;
  }

  .section-title {
    padding-top: 0;
    font-weight: 700;
    line-height: 1.7;
  }

  .section-title.major-section {
    text-align: left;
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 62%;
    padding-top: 0;
    font-weight: 600;
    display: flex;
  }

  .rte-article {
    margin-top: -4vw;
  }

  .rte-article p {
    margin-top: 4vw;
    line-height: 1.6;
  }

  .rte-article ul {
    margin-top: 1vw;
  }

  .rte-article li {
    margin-bottom: 1.75vw;
    line-height: 1.6;
  }

  .rte-article.home-pg {
    margin-top: -4vw;
  }

  .rte-article.home-pg.bullets {
    margin-top: -1vw;
  }

  .outlined-link {
    text-align: center;
    padding-right: 0;
  }

  .content-wrapper.column.title {
    width: 40%;
  }

  .brand-text {
    align-items: center;
    padding-left: 0;
  }

  .thank-you {
    text-align: center;
    flex: 0 auto;
    justify-content: center;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 767px) {
  .content {
    width: 100%;
    max-width: 100%;
  }

  .navbar-symbol {
    padding-top: 20px;
    padding-bottom: 15px;
  }

  .div-block-94 {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    width: 95%;
  }

  .nav-link-text {
    padding: 0 10px;
  }

  /* Key: block becomes column-reverse on mobile */
  .block {
    flex-direction: column-reverse;
  }

  .content-wrapper {
    width: 100%;
    max-width: none;
  }

  .content-wrapper.column {
    align-items: flex-start;
  }

  .content-wrapper.column.info {
    width: 100%;
    max-width: 100%;
  }

  .content-wrapper.column.profile-photo {
    display: none;
  }

  .content-wrapper.column.title {
    align-items: flex-start;
    width: 100%;
  }

  .title-wrapper {
    position: static;
    padding-top: 0;
  }

  .section-title {
    text-align: left;
  }

  .block.centered {
    text-align: left;
    align-items: flex-start;
  }

  .page-title {
    width: 100%;
  }

  .page-title.home-pg {
    text-align: left;
  }

  .page-sub-message {
    text-align: left;
  }

  .contact-card-wrapper {
    text-align: left;
    place-items: start;
    width: 100%;
  }

  .contact-button {
    justify-content: flex-end;
  }

  .contact-button.in-page {
    justify-content: center;
    align-items: center;
    width: 100%;
    display: none;
  }

  .companylogowrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3vw;
    margin-top: clamp(16px, 3vw, 30px);
    padding: 0;
    width: 100%;
  }

  .brandlogos {
    width: calc((100% - 6vw) / 3);
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
  }

  .vw.horizontal-spreader {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .rte-article {
    margin-top: -5vw;
    margin-bottom: 0;
    font-weight: 400;
  }

  .rte-article.home-pg {
    text-align: left;
  }

  .rte-article.home-pg.bullets {
    text-align: left;
    width: 95%;
    margin-left: 0;
    margin-right: auto;
  }

  .rte-article.home-pg.over-bullets {
    text-align: left;
  }

  .rte-article ul {
    text-align: left;
  }

  .grid-2-columns.form {
    grid-template-columns: 1fr;
  }

  .thank-you-wrapper {
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8vw;
    margin-bottom: 8vw;
  }

  .div-block-89 {
    text-align: center;
    flex-flow: column;
    flex: 0 auto;
    justify-content: space-between;
    align-self: center;
    align-items: center;
    margin-top: 0;
    padding-bottom: 0;
  }

  .div-block-106 {
    width: 100%;
    max-width: 100%;
  }

  .copywrite {
    align-self: stretch;
    padding-top: 24px;
    font-weight: 400;
  }

  .copywrite.splitter {
    align-items: center;
    height: auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .competencie {
    text-align: left;
    padding-right: 10px;
  }

  .section-title {
    padding-top: 0;
    padding-bottom: 3vw;
  }

  .section-title.hero-section {
    height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 0%;
  }

  .section-title.major-section {
    text-align: left;
    justify-content: flex-start;
    width: 100%;
    display: inline-flex;
  }

  .work-nav-wrapper {
    grid-column-gap: 3vw;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .thank-you {
    align-self: stretch;
    font-weight: 400;
  }

  .outlined-link {
    align-self: stretch;
    padding-top: 0;
    line-height: 2.5;
  }

  .rte-article {
    max-width: 100%;
    margin-top: -6vw;
    font-weight: 300;
  }

  .rte-article p {
    text-align: left;
    margin-top: 5vw;
    font-weight: 400;
  }

  .rte-article ul {
    margin-top: 1vw;
    list-style-type: disc;
  }

  .rte-article li {
    text-align: left;
    margin-bottom: 3vw;
    line-height: 1.6;
  }

  .section.sub-nav {
    padding: 0;
    display: none;
  }

  .nav-link-wrapper {
    flex-flow: row;
    justify-content: center;
    align-self: stretch;
  }

  .tabs-menu {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
  }

  .card.form {
    min-height: auto;
    padding-left: 32px;
    padding-right: 32px;
  }

  .card.form.desktop {
    display: none;
  }

  .card.form.mobile {
    display: flex;
  }

  .nav-link-text.tab {
    padding-left: 30px;
    padding-right: 30px;
    line-height: 1.6;
  }

  /* Contact page responsive adjustments */
  .field-wrapper.full-width {
    grid-column: span 1;
  }

  .field-wrapper.submit-wrapper {
    align-items: stretch;
  }

  input[type="submit"].nav-link-text.cta.simple {
    width: 100%;
  }

  /* Stack booking cards on mobile */
  .booking-cards {
    flex-direction: column;
    gap: 32px;
  }

  .booking-card {
    padding: 24px 16px;
  }

  /* Hide vertical divider, add horizontal divider on mobile */
  .booking-cards:not(.single) .booking-card:first-child::after {
    display: none;
  }

  .booking-cards:not(.single) .booking-card:first-child {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 32px;
  }

  /* Newsletter form stacks on mobile */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-section,
  .social-section {
    padding: 24px 16px;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) {
  .navbar-symbol {
    padding-top: 6vw;
    padding-bottom: 5vw;
    font-size: 1.1em;
  }

  .brandwrapper {
    grid-column-gap: 3vw;
    justify-content: flex-start;
    align-self: auto;
    display: flex;
  }

  .brand-image {
    height: 8vw;
  }

  .nav-link-text {
    padding: 0 8px;
  }

  .nav-link-text.header {
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-top: 0;
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .nav-link-text.cta.simple {
    width: 100%;
    padding: 3vw 11vw 3.5vw;
  }

  .nav-link-text.cta.simple.in-page {
    width: auto;
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }

  .nav-link-text.cta.simple.sticky {
    padding: 2.75vw 9vw 3.25vw;
  }

  .container {
    width: 90%;
    position: static;
  }

  .section.sub-nav {
    text-align: center;
    justify-content: flex-start;
    align-items: center;
  }

  .content-wrapper.column.title {
    align-self: flex-start;
  }

  .page-title.home-pg {
    text-align: left;
  }

  .page-sub-message {
    text-align: left;
    line-height: 1.6;
  }

  .section-title {
    width: 100%;
    padding-top: 0;
    display: flex;
  }

  .section-title.hero-section {
    opacity: 0;
    padding-bottom: 0;
    font-size: 0.001em;
  }

  .vw.horizontal-spreader {
    max-width: 100%;
    height: 0;
  }

  .contact-button {
    z-index: 500;
    justify-content: flex-end;
    bottom: 5vw;
    right: 5vw;
  }

  .contact-button.in-page {
    align-self: center;
  }

  .contact-button.sticky-button {
    margin-bottom: 0;
  }

  .contact-card-wrapper {
    place-items: start;
  }

  .content-wrapper.column.profile-photo {
    align-items: center;
    align-self: center;
  }

  .section-title.major-section {
    padding-bottom: 1vw;
  }

  .brandlogos {
    width: 20vw;
    height: 10vw;
    margin: 3vw 2vw;
  }

  .rte-article {
    max-width: 100%;
    margin-top: -8vw;
  }

  .rte-article p {
    margin-top: 6vw;
  }

  .rte-article ul {
    margin-top: 4vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    font-weight: 400;
    overflow: visible;
  }

  .rte-article li {
    margin-bottom: 4vw;
    line-height: 1.6;
  }

  .rte-article.home-pg {
    margin-top: -6vw;
    padding-bottom: 4vw;
  }

  .rte-article.home-pg.bullets {
    width: 100%;
    padding-bottom: 0;
  }

  .rte-article.home-pg.over-bullets {
    text-align: left;
  }

  .rte-article sub {
    display: inline;
  }

  .rte-article strong {
    width: 100%;
    padding-bottom: 1vw;
    display: inline-block;
  }

  .expertisegrid {
    margin-top: 4vw;
  }

  .competencie {
    font-weight: 700;
    line-height: 1.4;
    padding: 15px 10px;
  }

  .subnav {
    width: 100%;
  }

  .work-nav-wrapper {
    display: block;
    text-align: center;
  }

  .project-nav-links {
    padding: 3vw;
  }

  .work-nav {
    display: none;
  }

  .outlined-link {
    z-index: 0;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    text-align: center;
    letter-spacing: 0.4px;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 250%;
    position: relative;
  }

  .thank-you {
    text-align: center;
    flex-direction: column;
    flex: 0 auto;
    align-items: center;
    margin-right: 0;
    line-height: 2;
    display: flex;
  }

  .companylogowrapper {
    margin-top: 0;
  }

  .thank-you.splitter {
    display: none;
  }

  .tabs-menu {
    grid-column-gap: 5px;
    grid-row-gap: 5px;
  }

  .card.form {
    min-height: auto;
    padding: 8vw 24px;
  }

  .tab-text-wrapper {
    margin-right: 15px;
  }

  .nav-link-text.tab {
    margin-top: 0;
    padding-left: 4vw;
    padding-right: 4vw;
    line-height: 2;
  }

  .thank-you-wrapper {
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 15vw;
  }

  .div-block-89 {
    grid-row-gap: 0vw;
    flex-direction: column;
  }

  .nav-link-wrapper {
    grid-column-gap: 1vw;
    grid-row-gap: 1vw;
    align-self: stretch;
    height: 100%;
    padding-top: 1vw;
  }

  /* Contact page responsive adjustments */
  .input {
    min-height: 54px;
  }
}

/* Utility: hide on desktop */
.mobile-only {
  display: none;
}

@media screen and (max-width: 767px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Publication Page Styles
   -------------------------------------------------------------------------- */

/* Category Subnav - Sticky navigation bar below main nav */
.category-subnav {
  position: sticky;
  top: 0;
  z-index: 150;
  background-color: var(--latte-base);
  border-bottom: 1px solid var(--latte-surface0);
  padding: 0;
  margin-top: 90px; /* Account for fixed navbar */
}

.category-subnav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 3%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-subnav-inner::-webkit-scrollbar {
  display: none;
}

/* Match header nav-link styling */
.category-link {
  background: none;
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  font-family: inherit;
  font-size: var(--type-body-nav);
  font-weight: 400;
  color: var(--latte-text);
  cursor: pointer;
  white-space: nowrap;
  height: auto;
  line-height: 2.2;
  transition: color 0.15s ease-in, background-color 0.15s ease;
}

.category-link:hover {
  color: var(--blue-link);
}

.category-link:focus {
  outline: none;
}

.category-link:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Active state matches .nav-link.w--current */
.category-link.active {
  background-color: #9999992e;
  color: var(--latte-text);
  font-weight: 400;
}

/* Publication Layout */
.publication-page .page-structure {
  padding-top: 0;
}

.publication-layout {
  padding-top: 0;
}

.publication-container {
  width: 85%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-lg);
}

.publication-content {
  width: 100%;
}

/* Publication Header */
.publication-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--latte-surface0);
}

.publication-header .heading-3 {
  margin-bottom: 12px;
}

.publication-tagline {
  color: var(--latte-subtext1);
  font-size: var(--type-body);
  line-height: 1.5;
  margin: 0;
}

/* Articles Feed */
.articles-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Article Card */
.article-card {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--latte-surface0);
}

.article-card:first-child {
  padding-top: 0;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card.hidden {
  display: none;
}

/* Article Card Link - wraps entire card for clickability */
.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.article-card-link:hover {
  transform: translateX(4px);
}

/* Article Card Inner - horizontal grid layout */
.article-card-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

/* When no thumbnail, content takes full width */
.article-card-inner:not(:has(.article-thumbnail)) {
  grid-template-columns: 1fr;
}

/* Article Thumbnail */
.article-thumbnail {
  width: 160px;
  min-width: 160px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--latte-surface0);
}

.article-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card-link:hover .article-thumbnail-img {
  transform: scale(1.05);
}

/* Article Content */
.article-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

/* Category Labels */
.article-category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--latte-subtext1);
}

.category-label.category-philosophy {
  color: var(--latte-mauve);
}

.category-label.category-product {
  color: var(--latte-blue);
}

.category-label.category-environment {
  color: var(--latte-teal);
}

.category-label.category-personal {
  color: var(--latte-maroon);
}

/* Article Title */
.article-title {
  font-size: var(--type-subhead);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--latte-text);
  transition: color 0.15s ease;
}

.article-card-link:hover .article-title {
  color: var(--latte-sapphire);
}

/* Article Excerpt */
.article-excerpt {
  font-size: var(--type-body);
  color: var(--latte-subtext1);
  line-height: 1.6;
  margin: 0;
}

/* No Articles Message */
.no-articles-message {
  text-align: center;
  padding: 80px 20px;
}

.no-articles-message p {
  font-size: var(--type-body);
  color: var(--latte-overlay1);
}

/* --------------------------------------------------------------------------
   Mobile Hero CTA for About Page
   -------------------------------------------------------------------------- */

.mobile-hero-cta {
  display: none;
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Publication Page Responsive Styles
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .category-subnav {
    margin-top: 75px;
  }

  .category-subnav-inner {
    gap: 15px;
    padding: 10px 3%;
  }

  .category-link {
    padding: 0 15px;
    line-height: 2;
  }

  .publication-container {
    width: 90%;
  }

  .article-card {
    padding: var(--space-sm) 0;
  }

}

@media screen and (max-width: 767px) {
  .category-subnav {
    margin-top: 60px;
  }

  .category-subnav-inner {
    gap: 10px;
    padding: 8px 4%;
  }

  .category-link {
    padding: 0 12px;
    font-size: var(--type-xs);
    line-height: 2;
  }

  .publication-container {
    width: 92%;
  }

  .article-card {
    padding: 24px 0;
  }

  .article-card:first-child {
    padding-top: 0;
  }

  /* Stack cards vertically on mobile */
  .article-card-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-card-inner:not(:has(.article-thumbnail)) {
    gap: 10px;
  }

  .article-thumbnail {
    width: 100%;
    min-width: unset;
    height: 180px;
  }

  .article-content {
    gap: 10px;
    padding: 0;
  }

  .category-label {
    font-size: 11px;
  }

  .article-excerpt {
    font-size: var(--type-small);
  }

  /* Show mobile hero CTA on about page */
  .mobile-hero-cta {
    display: block;
  }

  /* Hide the desktop in-page CTA */
  .contact-button.in-page:not(.mobile-hero-cta) {
    display: none;
  }

  /* Show floating Connect button on mobile */
  .contact-button.sticky-button {
    opacity: 1;
    pointer-events: auto;
    bottom: 20px;
    right: 20px;
  }

  .contact-button.sticky-button .contact-icon {
    width: 54px;
    height: 54px;
  }
}

@media screen and (max-width: 479px) {
  .category-subnav {
    margin-top: 55px;
  }

  .category-subnav-inner {
    gap: 8px;
    padding: 6px 3%;
  }

  .category-link {
    padding: 0 10px;
    font-size: 14px;
    line-height: 1.9;
    border-radius: 8px;
  }

  .publication-container {
    width: 90%;
  }

  .article-card {
    padding: 20px 0;
  }

  .article-card-inner {
    gap: 12px;
  }

  .article-card-inner:not(:has(.article-thumbnail)) {
    gap: 8px;
  }

  .article-thumbnail {
    height: 150px;
  }

  .article-content {
    gap: 8px;
  }

  .category-label {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .article-title {
    font-size: var(--type-body);
    line-height: 1.4;
  }

  .article-excerpt {
    font-size: var(--type-xs);
    line-height: 1.5;
  }

  /* Floating button adjustments for small screens */
  .contact-button.sticky-button {
    bottom: 16px;
    right: 16px;
  }

  .contact-button.sticky-button .contact-icon {
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================================
   Blog Post Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Post Layout Container
   -------------------------------------------------------------------------- */

.post-page .page-structure {
  padding-top: 0;
}

.post-layout {
  padding-top: 0;
}

.post-container {
  width: 85%;
  max-width: 680px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Post Header
   -------------------------------------------------------------------------- */

.post-header {
  margin-bottom: var(--space-md);
}


.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--type-small);
  color: var(--latte-subtext1);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  transition: color 0.15s ease;
}

.post-back-link:hover {
  color: var(--latte-sapphire);
}

.post-back-link svg {
  transition: transform 0.15s ease;
}

.post-back-link:hover svg {
  transform: translateX(-3px);
}

.post-category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xs);
}

.post-title {
  font-size: var(--type-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--latte-text);
  letter-spacing: -0.02em;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Post Hero Image (Optional)
   -------------------------------------------------------------------------- */

.post-hero {
  margin: 0 0 var(--space-md) 0;
  width: calc(100% + 10vw);
  margin-left: -5vw;
  max-width: none;
}

.post-hero-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

.post-hero-caption {
  font-size: var(--type-xs);
  color: var(--latte-overlay1);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Post Content (Rich Text Body)
   -------------------------------------------------------------------------- */

.post-content {
  font-size: var(--type-body);
  line-height: 1.75;
  color: var(--latte-text);
}

.post-content .post-lead {
  font-size: calc(var(--type-body) * 1.15);
  color: var(--latte-subtext1);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.post-content p {
  margin-bottom: 1.5em;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content p:has(+ blockquote) {
  margin-bottom: 0;  /* Flush pairing: summary → formula */
}

.post-content h2 {
  font-size: var(--type-heading);
  font-weight: 700;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--latte-text);
  line-height: 1.3;
}

.post-content h3 {
  font-size: var(--type-subhead);
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--latte-text);
  line-height: 1.4;
}

.post-content h2 + h3 {
  margin-top: var(--space-sm);
}

.post-content a {
  color: var(--latte-sapphire);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.post-content a:hover {
  color: var(--latte-blue);
}

.post-content ul,
.post-content ol {
  margin: 1.5em 0;
  padding-left: 28px;
}

.post-content p + ul,
.post-content p + ol {
  margin-top: 0.5em;  /* Tighter when list follows paragraph like "What to watch:" */
}

.post-content li {
  margin-bottom: 0.75em;
  line-height: 1.6;
}

.post-content li:last-child {
  margin-bottom: 0;
}

.post-content blockquote {
  margin: 0 0 28px 0;  /* Flush with summary, clear space before explanation */
  padding: 14px 20px;  /* Top padding matches line-height spacing (~14px) */
  border-left: 4px solid var(--latte-sapphire);
  background-color: var(--latte-mantle);
  border-radius: 0 8px 8px 0;
}

.post-content blockquote p {
  font-size: var(--type-body);
  font-style: italic;
  color: var(--latte-subtext1);
  margin-bottom: 0;
}

.post-content code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.9em;
  background-color: var(--latte-surface0);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content pre {
  background-color: var(--latte-mantle);
  padding: var(--space-sm);
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-figure {
  margin: var(--space-md) 0;
}

.post-figure-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-figure figcaption {
  font-size: var(--type-xs);
  color: var(--latte-overlay1);
  text-align: center;
  margin-top: 10px;
}

.post-content hr {
  border: none;
  height: 1px;
  background-color: var(--latte-surface0);
  margin: var(--space-md) 0;
}

/* --------------------------------------------------------------------------
   Metrics Catalog - Journey Diagram
   -------------------------------------------------------------------------- */

.journey-diagram {
  background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
  border: 1px solid var(--latte-surface0);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: var(--space-md);
}

.journey-title {
  font-size: var(--type-sm);
  font-weight: 600;
  color: var(--latte-text);
  text-align: center;
  margin-bottom: 16px;
}

.journey-stages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.journey-stages::-webkit-scrollbar {
  display: none;
}

.journey-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 90px;
  padding: 0 8px;
}

.stage-name {
  font-size: var(--type-xs);
  font-weight: 600;
  color: var(--latte-mauve);
  margin-bottom: 4px;
}

.stage-question {
  font-size: 11px;
  color: var(--latte-subtext0);
  margin-bottom: 6px;
}

.stage-metrics {
  font-size: 10px;
  color: var(--latte-subtext1);
  line-height: 1.3;
}

.journey-arrow {
  width: 20px;
  height: 2px;
  background-color: var(--latte-surface1);
  position: relative;
  flex-shrink: 0;
  margin: 0 4px;
}

.journey-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  border: solid var(--latte-surface1);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(-45deg);
}

/* Mobile: smaller padding, allow horizontal scroll */
@media screen and (max-width: 767px) {
  .journey-diagram {
    padding: 16px;
    margin-left: -4px;
    margin-right: -4px;
  }

  .journey-stages {
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .journey-stage {
    min-width: 80px;
    padding: 0 6px;
  }

  .stage-metrics {
    display: none; /* Hide example metrics on mobile */
  }

  .journey-arrow {
    width: 16px;
  }
}

/* Very small screens: stack vertically */
@media screen and (max-width: 400px) {
  .journey-stages {
    flex-direction: column;
    gap: 8px;
  }

  .journey-stage {
    flex-direction: row;
    min-width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
  }

  .stage-name {
    margin-bottom: 0;
    margin-right: 12px;
    min-width: 70px;
  }

  .stage-question {
    margin-bottom: 0;
  }

  .stage-metrics {
    display: none;
  }

  .journey-arrow {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Journey Infographic Page (Full Version)
   -------------------------------------------------------------------------- */

.journey-infographic {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-lg) 0;
}

.journey-stage-card {
  background: #fff;
  border: 1px solid var(--latte-surface0);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stage-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--type-xs);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.stage-title {
  font-size: var(--type-md);
  font-weight: 600;
  color: var(--latte-text);
  margin: 0;
}

/* Stage color variants */
.stage-acquisition .stage-number { background-color: #8839ef; }
.stage-activation .stage-number { background-color: #1e66f5; }
.stage-retention .stage-number { background-color: #40a02b; }
.stage-revenue .stage-number { background-color: #df8e1d; }
.stage-referral .stage-number { background-color: #e64553; }

.stage-question {
  font-size: var(--type-sm);
  font-weight: 600;
  color: var(--latte-mauve);
  margin-bottom: 8px;
}

.stage-description {
  font-size: var(--type-sm);
  color: var(--latte-subtext0);
  margin-bottom: 16px;
  line-height: 1.5;
}

.stage-metrics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  background-color: var(--latte-surface0);
  color: var(--latte-text);
  border-radius: 4px;
}

.journey-connector {
  width: 2px;
  height: 24px;
  background-color: var(--latte-surface1);
  margin: 0 auto;
}

/* Cross-filter cards */
.cross-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.cross-filter-card {
  background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
  border: 1px solid var(--latte-surface0);
  border-radius: 12px;
  padding: 20px;
}

.cross-filter-card h3 {
  font-size: var(--type-sm);
  font-weight: 600;
  color: var(--latte-text);
  margin: 0 0 8px 0;
}

.cross-filter-card p {
  font-size: var(--type-sm);
  color: var(--latte-subtext0);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.filter-examples {
  font-size: var(--type-xs);
  color: var(--latte-subtext1);
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {
  .journey-stage-card {
    padding: 20px;
  }

  .stage-title {
    font-size: var(--type-sm);
  }
}

/* --------------------------------------------------------------------------
   Metrics Catalog - Filter/Sort Controls
   -------------------------------------------------------------------------- */

.metrics-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: calc(20px - var(--space-md)); /* Pull up to reduce gap with title */
  margin-bottom: var(--space-md);
  padding: 16px 20px;
  background-color: #fff;
  border-radius: 12px;
}


.controls-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sort-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.filter-btn,
.sort-btn {
  padding: 6px 14px;
  font-size: var(--type-xs);
  font-weight: 500;
  color: var(--latte-subtext1);
  background-color: #fff;
  border: 1px solid var(--latte-surface1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.sort-btn:hover {
  background-color: var(--latte-surface0);
  border-color: var(--latte-surface2);
}

.filter-btn:focus-visible,
.sort-btn:focus-visible {
  outline: 2px solid var(--latte-sapphire);
  outline-offset: 2px;
}

.filter-btn.active {
  background-color: var(--latte-sapphire);
  color: white;
  border-color: var(--latte-sapphire);
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sort-btn .sort-arrow {
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.sort-btn.desc .sort-arrow {
  transform: rotate(180deg);
}

/* Metrics Container */
.metrics-container {
  display: flex;
  flex-direction: column;
}

/* Metric Card */
.metric-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px var(--space-sm) 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: opacity 0.3s ease, transform 0.3s ease;
  scroll-margin-top: 130px; /* header (~90px) + card gap + buffer to fully hide prev card */
}

.metric-card ul {
  margin-top: 8px;
}

.metric-card h3 {
  font-size: var(--type-heading);
  margin-top: 0;
  margin-bottom: 8px;
}

.metric-card > p:last-child,
.metric-card > *:last-child p:last-child {
  margin-bottom: 0;
}

.metric-card h4 {
  font-size: var(--type-body);
  font-weight: 600;
  color: var(--latte-text);
  margin-top: 16px;
  margin-bottom: 4px;
}

.metric-card:last-child {
  margin-bottom: 0;
}

.metric-card.hidden {
  display: none;
}

.metric-card.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* Metrics Layout with Floating Sidebar */
.metrics-layout {
  position: relative;
}

.metrics-sidebar {
  position: sticky;
  top: 120px;
  float: left;
  width: 200px;
  margin-left: calc(-200px - 40px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.metrics-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.metrics-nav-item {
  padding: 8px 0;
  font-size: var(--type-xs);
  color: var(--latte-subtext1);
  cursor: pointer;
  transition: color 0.15s ease;
  border-bottom: 1px solid var(--latte-surface0);
}

.metrics-nav-item:last-child {
  border-bottom: none;
}

.metrics-nav-item:hover {
  color: var(--latte-sapphire);
}

.metrics-nav-item:focus-visible {
  color: var(--latte-sapphire);
  outline: 2px solid var(--latte-sapphire);
  outline-offset: 2px;
  border-radius: 4px;
}

.metrics-nav-item.active {
  color: var(--latte-sapphire);
  font-weight: 600;
}

.metrics-main {
  width: 100%;
}

/* Mobile Quick Navigation - Hidden by default, shown on mobile */
.metrics-quick-nav {
  display: none;
  position: relative;
  margin: 16px 0 12px;
}

/* Left fade indicator when scrolled right */
.metrics-quick-nav::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 100%;
  background: linear-gradient(to left, transparent, var(--latte-base));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.metrics-quick-nav.scrolled-right::before {
  opacity: 1;
}

.quick-nav-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick-nav-scroll::-webkit-scrollbar {
  display: none;
}

.quick-nav-items {
  display: flex;
  gap: 8px;
  padding-right: 48px; /* Space for fade + toggle */
}

.quick-nav-item {
  flex-shrink: 0;
  padding: 0 12px;
  background: none;
  border: none;
  border-radius: 0;
  font-size: var(--type-body-nav);
  font-weight: 400;
  color: var(--latte-text);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}

.quick-nav-item:hover {
  color: var(--latte-sapphire);
  background: none;
}

/* Active state for current visible metric */
.quick-nav-item.active {
  color: var(--latte-sapphire);
  font-weight: 500;
}

/* Tap feedback on mobile */
.quick-nav-item:active {
  opacity: 0.7;
  transform: scale(0.98);
}

.quick-nav-fade {
  position: absolute;
  top: 0;
  right: 28px; /* Align with toggle edge to prevent text sliver */
  width: 48px;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, var(--latte-base) 70%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Back to Top Button - Hidden by default, visible when scrolled past quick-nav */
.back-to-top-btn {
  display: none; /* Hidden until quick-nav is stuck */
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 12px 0 0;
  margin-right: 8px;
  background: none;
  border: none;
  border-right: 1px solid var(--latte-surface1);
  font-size: var(--type-body-nav);
  font-weight: 500;
  color: var(--latte-subtext0);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateX(-8px);
}

.back-to-top-btn svg {
  flex-shrink: 0;
}

.back-to-top-btn:hover {
  color: var(--latte-sapphire);
}

.back-to-top-btn:active {
  opacity: 0.7;
  transform: scale(0.96) translateX(0);
}

/* Show back-to-top when quick-nav is stuck (scrolled past original position) */
.metrics-quick-nav.quick-nav-stuck .back-to-top-btn {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* Desktop sidebar back-to-top */
.sidebar-back-to-top {
  display: none; /* Hidden until scrolled */
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--latte-surface1);
  font-size: var(--type-body-nav);
  font-weight: 500;
  color: var(--latte-subtext0);
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  transition: color 0.15s ease, opacity 0.3s ease;
  opacity: 0;
}

.sidebar-back-to-top svg {
  flex-shrink: 0;
}

.sidebar-back-to-top:hover {
  color: var(--latte-sapphire);
}

.sidebar-back-to-top.visible {
  display: flex;
  opacity: 1;
}

.quick-nav-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: var(--latte-subtext0);
  transition: color 0.15s ease;
}

.quick-nav-toggle:hover {
  color: var(--latte-text);
}

.quick-nav-toggle svg {
  transition: transform 0.2s ease;
}

/* Expanded state - vertical list */
.metrics-quick-nav.expanded {
  align-items: flex-start; /* Keep ^top and ^ at top, not centered */
}

.metrics-quick-nav.expanded .quick-nav-items {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-right: 0;
}

.metrics-quick-nav.expanded .quick-nav-fade {
  opacity: 0;
}

.metrics-quick-nav.expanded .quick-nav-toggle {
  top: 0;
  transform: translateY(0);
}

.metrics-quick-nav.expanded .quick-nav-toggle svg {
  transform: rotate(180deg);
}

/* Tag Description - Educational context for each filter */
.tag-description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-color 0.3s ease;
}

.tag-description.visible {
  max-height: 300px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top-color: var(--latte-surface1);
}

.tag-desc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.tag-desc-title {
  font-size: var(--type-base);
  font-weight: 700;
  color: var(--latte-text);
}

.tag-desc-question {
  font-size: var(--type-small);
  font-style: italic;
  color: var(--latte-sapphire);
}

.tag-desc-text {
  font-size: var(--type-small);
  line-height: 1.6;
  color: var(--latte-subtext1);
  margin: 0 0 8px 0;
}

.tag-desc-usecase {
  font-size: var(--type-xs);
  color: var(--latte-subtext0);
  margin: 0;
}

.tag-desc-usecase strong {
  color: var(--latte-subtext1);
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .metric-card {
    scroll-margin-top: 107px; /* tablet header (~75px) + gap */
  }
}

@media screen and (max-width: 767px) {
  .controls-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-group {
    width: 100%;
  }

  .sort-group {
    width: 100%;
    justify-content: flex-start;
    padding-top: 12px;
    border-top: 1px solid var(--latte-surface0);
  }

  .metric-card h3 {
    font-size: clamp(1.5rem, 4vw + 1rem, 1.875rem);
  }

  .metric-card {
    scroll-margin-top: 92px; /* mobile header (~60px) + gap */
  }
}

/* --------------------------------------------------------------------------
   Post Footer
   -------------------------------------------------------------------------- */

.post-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--latte-surface0);
}

/* --------------------------------------------------------------------------
   Related Posts Section
   -------------------------------------------------------------------------- */

.related-posts {
  margin-bottom: var(--space-lg);
}

.related-posts-heading {
  font-size: var(--type-small);
  font-weight: 600;
  color: var(--latte-subtext1);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.related-post-card {
  background-color: var(--latte-mantle);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-post-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.related-post-category {
  margin-bottom: 8px;
}

.related-post-title {
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.4;
  color: var(--latte-text);
  margin: 0 0 8px 0;
  transition: color 0.15s ease;
}

.related-post-card:hover .related-post-title {
  color: var(--latte-sapphire);
}

.related-post-excerpt {
  font-size: var(--type-xs);
  color: var(--latte-subtext1);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Back to Home CTA
   -------------------------------------------------------------------------- */

.post-home-cta {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Post Page Responsive Styles
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .post-container {
    width: 90%;
    padding-top: calc(var(--space-xl) * 0.8);
  }

  .metrics-sidebar {
    display: none;
  }

  .post-hero {
    width: calc(100% + 6vw);
    margin-left: -3vw;
  }

  .post-hero-img {
    max-height: 400px;
    border-radius: 8px;
  }

  .related-posts-grid {
    gap: 20px;
  }
}

@media screen and (max-width: 767px) {
  .post-container {
    width: 92%;
    padding-top: calc(90px + var(--space-md));
    padding-bottom: var(--space-md);
  }

  .post-header {
    margin-bottom: var(--space-sm);
  }

  .post-title {
    font-size: clamp(1.75rem, 5vw + 1rem, 2.25rem);
    line-height: 1.25;
  }

  .post-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
  }

  .post-hero-img {
    max-height: 300px;
    border-radius: 0;
  }

  .post-content h2 {
    font-size: var(--type-subhead);
    margin-top: var(--space-sm);
  }

  .post-content h3 {
    font-size: var(--type-body);
  }

  .post-content blockquote {
    padding: var(--space-xs) var(--space-sm);
    margin: var(--space-sm) 0;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-post-link {
    padding: 16px;
  }

  .post-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
  }

  /* Mobile quick-nav - switches to fixed when stuck */
  .metrics-quick-nav {
    display: flex;
    z-index: 201; /* Above header's 200 */
    background: var(--latte-base);
    padding: 12px 0;
    margin: 0 0 16px;
  }

  /* When stuck (scrolled past natural position) */
  .metrics-quick-nav.quick-nav-stuck {
    position: fixed;
    top: 95px; /* Below header (measured actual height) */
    left: 0;
    right: 0;
    width: 92%; /* Match post-container */
    max-width: 680px;
    margin: 0 auto;
    padding: 12px 0;
    transition: top 0.3s ease;
  }

  /* When header is hidden, quick-nav at top */
  body.header-hidden .metrics-quick-nav.quick-nav-stuck {
    top: 0;
  }

  .metrics-quick-nav .quick-nav-fade {
    background: linear-gradient(to right, transparent 0%, var(--latte-base) 70%);
  }

  .metrics-quick-nav .quick-nav-toggle {
    background: var(--latte-base);
  }

  /* Placeholder when quick-nav is fixed (prevents layout shift) */
  .quick-nav-placeholder {
    height: 52px; /* Match quick-nav height */
    display: none;
  }

  .quick-nav-placeholder.active {
    display: block;
  }

  /* Hide-on-scroll header */
  .navbar-symbol {
    transition: transform 0.3s ease;
  }

  .navbar-symbol.header-hidden {
    transform: translateY(-100%);
  }

  /* Adjust scroll margin for metric cards with sticky quick-nav */
  .metric-card {
    scroll-margin-top: 132px; /* header (60px) + quick-nav (~40px) + buffer */
  }

  body.header-hidden .metric-card {
    scroll-margin-top: 52px; /* quick-nav only + buffer */
  }
}

@media screen and (max-width: 479px) {
  .post-container {
    width: 90%;
    padding-top: calc(80px + var(--space-sm));
  }

  .post-back-link {
    font-size: var(--type-xs);
  }

  .post-title {
    font-size: clamp(1.5rem, 4vw + 1rem, 2rem);
  }

  .post-content {
    line-height: 1.7;
  }

  .post-content .post-lead {
    font-size: var(--type-body);
  }

  .related-posts-heading {
    font-size: var(--type-xs);
  }

  .related-post-title {
    font-size: var(--type-small);
  }
}

/* ===========================================
   MOBILE SWIPE NAVIGATION
   =========================================== */

/* Swipe indicator - appears at screen edge during swipe */
.swipe-indicator {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.swipe-indicator.visible {
  opacity: 1;
}

.swipe-indicator.left {
  left: 0;
}

.swipe-indicator.right {
  right: 0;
}

.swipe-indicator-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--latte-surface0);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.swipe-indicator.right .swipe-indicator-content {
  border-radius: 12px 0 0 12px;
}

.swipe-indicator-arrow {
  font-size: 24px;
  color: var(--cta);
  font-weight: 700;
}

.swipe-indicator-text {
  font-size: 11px;
  color: var(--latte-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-height: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Page exit animation */
.swipe-navigating {
  animation: swipeOut 0.15s ease-out forwards;
}

@keyframes swipeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0.5;
    transform: translateX(0);
  }
}

/* Only show swipe navigation on mobile */
@media screen and (min-width: 768px) {
  .swipe-indicator {
    display: none !important;
  }
}
