/* =====================================================================
 * TIPMO — Astra child theme styles
 * Ports the marketing site's design system (globals.css) + the /blog
 * surfaces (header, footer, archive card grid, single-post BlogProse) to
 * plain CSS for the WordPress blog. Values are copied from the React source
 * so the two blogs render identically.
 *
 * Because the child theme ships its OWN header.php / footer.php / templates
 * (Astra's chrome is bypassed) we own the markup and use tipmo-* class names.
 * Gutenberg post content keeps its native markup, so the .blog-prose section
 * targets Gutenberg selectors (.wp-block-quote, figure.wp-block-image, …).
 * ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --font-sans: "Figtree", "Figtree Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Outfit", "Outfit Fallback", "Figtree", ui-sans-serif, system-ui, sans-serif;

  --color-ink: #292929;
  --color-ink-subtle: #4a4a4a;
  --color-muted: #676767;
  --color-paper: #f9f9f9;
  --color-stone: #afafad;
  --color-mist: #ecedea;
  --color-fog: #f0f0f0;
  --color-haze: #f3f3f3;
  --color-haze-dark: #e6e6e6;
  --color-surface: #efefef;
  --color-border: #dcdcdc;
  --color-border-subtle: rgb(41 41 41 / 0.07);
  --color-border-input: rgb(41 41 41 / 0.55);
  --color-astro-base: #eef2ff;
  --color-astro-magenta: #ec44ef;
  --color-astro-purple: #4706d1;
  --color-astro-sky: #358de7;
  --color-blue: #43bfcc;
  --color-blue-hover: #38a8b4;
  --color-blue-ink: #2a747d;

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-nav: 1.125rem;
  --radius-card: 1.5rem;
  --radius-hero: 2rem;
  --radius-xl: 4rem;

  --header-height: 4rem;
  --page-offset-top: max(9.375rem, calc(4rem + clamp(2.5rem, 5vw, 4.5rem)));
  --width-footer-inner: 58rem;

  --shadow-header-scrolled:
    0 1px 1px rgb(18 18 18 / 0.04),
    0 4px 20px rgb(18 18 18 / 0.08),
    0 12px 36px rgb(18 18 18 / 0.06);

  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Minimal reset (Astra parent CSS is intentionally not enqueued;
 *            wp-block-library still is, for block layout) ---------- */
.tipmo-scope *,
.tipmo-scope *::before,
.tipmo-scope *::after {
  box-sizing: border-box;
}
body.tipmo-body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.tipmo-body a {
  color: inherit;
  text-decoration: none;
}
body.tipmo-body img {
  max-width: 100%;
  height: auto;
}
.tipmo-container {
  margin-inline: auto;
  width: 100%;
  max-width: 120rem;
  padding-inline: clamp(1rem, 3.34vw, 4rem);
}
.tipmo-main {
  padding-top: var(--page-offset-top);
}
.tipmo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Animated link underline (draws in from the left) ---------- */
.tipmo-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.25s var(--ease-smooth-out);
}
.tipmo-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(100% + 0.2em);
  width: 100%;
  height: 1px;
  border-radius: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .tipmo-link:hover::after {
    transform: scaleX(1);
  }
}
.tipmo-link:focus-visible::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .tipmo-link,
  .tipmo-link::after {
    transition: none;
  }
}

/* ---------- Focus ring (teal outline + ink under-ring, WCAG 1.4.11) ---------- */
.tipmo-focus:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-ink);
}

/* ---------- Buttons ---------- */
.tipmo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-blue);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s var(--ease-smooth-out),
    scale 0.25s var(--ease-smooth-out),
    opacity 0.15s var(--ease-smooth-out);
}
.tipmo-btn svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: translate 0.25s var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .tipmo-btn:hover:not(:disabled) {
    background: var(--color-blue-hover);
  }
  .tipmo-btn:hover:not(:disabled) svg {
    translate: 2px 0;
  }
}
.tipmo-btn:active:not(:disabled) {
  scale: 0.96;
}
.tipmo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* nav size — header "Contact sales" */
.tipmo-btn--nav {
  height: 2.75rem;
  padding-left: clamp(1.375rem, 2.1vw, 2.25rem);
  padding-right: clamp(1.25rem, 2vw, 2.125rem);
  border-radius: var(--radius-md);
  font-size: clamp(0.875rem, 1vw, 1rem);
  white-space: nowrap;
}
/* lg size — "Start Your Pilot Program Now!" */
.tipmo-btn--lg {
  height: 4rem;
  padding-left: 25px;
  padding-right: 23px;
  border-radius: var(--radius-card);
  font-size: 1rem;
}
/* md size — newsletter Subscribe */
.tipmo-btn--md {
  height: 46px;
  padding-left: 1.25rem;
  padding-right: 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
@media (prefers-reduced-motion: reduce) {
  .tipmo-btn,
  .tipmo-btn svg {
    transition: none;
  }
  .tipmo-btn:active:not(:disabled) {
    scale: 1;
  }
}

/* ===================================================================
 * HEADER
 * =================================================================== */
.tipmo-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: var(--color-paper);
  transition:
    box-shadow 0.35s var(--ease-smooth-out),
    background-color 0.35s var(--ease-smooth-out),
    backdrop-filter 0.35s var(--ease-smooth-out);
}
.tipmo-header.is-scrolled {
  box-shadow: var(--shadow-header-scrolled);
  backdrop-filter: blur(12px);
  background: rgb(249 249 249 / 0.95);
}
.tipmo-header__inner {
  position: relative;
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-left: 1.25rem;
  padding-right: 0.375rem;
}
.tipmo-header__logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: 999px;
  transition: opacity 0.2s var(--ease-smooth-out);
}
.tipmo-header__logo:hover {
  opacity: 0.72;
}
.tipmo-header__logo svg {
  display: block;
  height: 2.25rem;
  width: auto;
}
.tipmo-header__nav {
  display: none;
}
.tipmo-header__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem clamp(0.75rem, 1.2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.tipmo-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: 0.25rem;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
@media (hover: hover) and (pointer: fine) {
  .tipmo-header__nav a:hover {
    color: var(--color-ink-subtle);
  }
}
.tipmo-header__divider {
  width: 1px;
  height: 1rem;
  flex: none;
  margin-inline: 0.125rem;
  background: rgb(41 41 41 / 0.15);
}
.tipmo-header__actions {
  display: none;
  flex: none;
  align-items: center;
  gap: 0.5rem;
}
.tipmo-navtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-haze);
  color: var(--color-ink);
  cursor: pointer;
}
.tipmo-navtoggle svg {
  width: 1rem;
  height: 1rem;
}
.tipmo-navtoggle .tipmo-navtoggle__close {
  display: none;
}
.tipmo-navtoggle[aria-expanded="true"] .tipmo-navtoggle__open {
  display: none;
}
.tipmo-navtoggle[aria-expanded="true"] .tipmo-navtoggle__close {
  display: block;
}

/* Mobile drawer — 0fr → 1fr grid-rows reveal */
.tipmo-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-smooth-out);
}
.tipmo-drawer.is-open {
  grid-template-rows: 1fr;
}
.tipmo-drawer__inner {
  min-height: 0;
  overflow: hidden;
}
.tipmo-drawer__scroll {
  max-height: calc(100svh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--color-border-subtle);
  padding: 0.75rem 1.25rem 1.25rem;
}
.tipmo-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tipmo-drawer a.tipmo-drawer__link {
  display: block;
  padding: 0.875rem 0.75rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
.tipmo-drawer__divider {
  margin: 0.75rem 0;
  border-top: 1px solid var(--color-border-subtle);
}
.tipmo-drawer__cta {
  margin-top: 1rem;
}
.tipmo-drawer__cta .tipmo-btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .tipmo-header,
  .tipmo-drawer {
    transition: none;
  }
}

/* ≥1100px — logo left / nav center / actions right */
@media (min-width: 68.75rem) {
  .tipmo-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    padding-left: 1.75rem;
    padding-right: 0.5rem;
  }
  .tipmo-header__logo {
    justify-self: start;
  }
  .tipmo-header__logo svg {
    height: 2.625rem;
  }
  .tipmo-header__nav {
    display: block;
    justify-self: center;
    min-width: 0;
  }
  .tipmo-header__actions {
    display: flex;
    justify-self: end;
  }
  .tipmo-navtoggle,
  .tipmo-drawer {
    display: none;
  }
}

/* ===================================================================
 * ARCHIVE (blog index) — hero + card grid
 * =================================================================== */
.tipmo-archive {
  padding-bottom: clamp(3rem, 5vw, 6rem);
}
.tipmo-archive__head {
  text-align: center;
}
.tipmo-archive__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.125rem, 1rem + 2.65vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.031em;
  color: var(--color-ink);
}
.tipmo-accent {
  color: var(--color-blue-ink);
}
.tipmo-archive__subhead {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
  text-wrap: balance;
}
.tipmo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: clamp(2rem, 3vw, 3.5rem);
}
@media (min-width: 40rem) {
  .tipmo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .tipmo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card — whole card is the link, no read-more, no byline */
.tipmo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--color-fog);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  color: inherit;
  transition: transform 0.3s var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .tipmo-card:hover {
    transform: translateY(-2px);
  }
}
.tipmo-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}
.tipmo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .tipmo-card:hover .tipmo-card__media img {
    transform: scale(1.02);
  }
}
.tipmo-card__media--empty {
  background: linear-gradient(to bottom right, var(--color-astro-base), var(--color-haze));
}
.tipmo-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2vw, 1.5rem);
}
.tipmo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tipmo-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-mist);
  color: var(--color-ink);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-transform: none; /* categories render as-authored, not uppercase */
}
.tipmo-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.0625rem, 1vw, 1.25rem);
  line-height: 1.25;
  color: var(--color-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tipmo-card__excerpt {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--color-ink-subtle);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tipmo-card__date {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ===================================================================
 * SINGLE POST
 * =================================================================== */
.tipmo-article {
  padding-bottom: clamp(4rem, 7vw, 7rem);
}
.tipmo-article__head {
  margin-inline: auto;
  max-width: 44rem;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.tipmo-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-blue-ink);
  transition: opacity 0.2s var(--ease-smooth-out);
}
.tipmo-back:hover {
  opacity: 0.7;
}
.tipmo-back svg {
  width: 1rem;
  height: 1rem;
}
.tipmo-article__title {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-wrap: balance;
}
.tipmo-article__date {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.tipmo-article__media {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 44rem;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.tipmo-article__media-frame {
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
}
.tipmo-article__media-frame img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.tipmo-article__body {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: 40rem;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

/* ===================================================================
 * BLOG PROSE — styles Gutenberg post content (.blog-prose wraps the_content)
 * =================================================================== */
.blog-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-ink-subtle);
}
.blog-prose > *:first-child {
  margin-top: 0;
}
.blog-prose p {
  margin: 0;
}
.blog-prose p + p,
.blog-prose p + ul,
.blog-prose p + ol {
  margin-top: 1.5rem;
}
.blog-prose strong {
  font-weight: 500;
  color: var(--color-ink);
}
.blog-prose em {
  color: var(--color-ink);
}
/* lead / deck — first paragraph */
.blog-prose > p:first-of-type {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-ink);
}
.blog-prose > p:first-of-type em {
  font-style: normal;
}
/* headings — section breaks */
.blog-prose h2 {
  margin: 3.5rem 0 0;
  border-top: 1px solid var(--color-mist);
  padding-top: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
}
.blog-prose > h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.blog-prose h3 {
  margin: 2.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-ink);
}
.blog-prose h4 {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
}
/* links */
.blog-prose a {
  color: var(--color-blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* lists */
.blog-prose ul,
.blog-prose ol {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}
.blog-prose ul {
  list-style: disc;
}
.blog-prose ol {
  list-style: decimal;
}
.blog-prose li {
  padding-left: 0.125rem;
  line-height: 1.75;
}
.blog-prose li + li {
  margin-top: 0.75rem;
}
.blog-prose li::marker {
  color: var(--color-stone);
}
.blog-prose li strong {
  color: var(--color-ink);
}
/* figures / images (Gutenberg image block + bare images) */
.blog-prose figure.wp-block-image,
.blog-prose figure {
  margin: 2.5rem 0;
}
.blog-prose figure img,
.blog-prose > img {
  width: 100%;
  border-radius: var(--radius-md);
}
.blog-prose > img {
  margin: 2rem 0;
}
.blog-prose figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
}
/* embeds */
.blog-prose figure.wp-block-embed {
  margin: 2.5rem 0;
}

/* pull / block quotes — matches .blog-pullquote look.
 * Targets native <blockquote> (covers .wp-block-quote and the <blockquote>
 * inside .wp-block-pullquote); attribution is Gutenberg's <cite>. */
.blog-prose .wp-block-pullquote {
  margin: 2.5rem 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.blog-prose blockquote {
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-blue);
  background: var(--color-fog);
  padding: 1.25rem 1.5rem;
}
.blog-prose blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.3vw, 1.375rem);
  line-height: 1.4;
  color: var(--color-ink);
}
.blog-prose blockquote p + p {
  margin-top: 0.75rem;
}
.blog-prose blockquote cite,
.blog-prose blockquote footer {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--color-muted);
}

/* tables (Gutenberg table block wraps <table> in figure.wp-block-table) */
.blog-prose figure.wp-block-table {
  display: block;
  margin: 2.5rem 0;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}
.blog-prose table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.blog-prose thead {
  background: var(--color-fog);
  text-align: left;
}
.blog-prose th {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--color-ink);
}
.blog-prose td {
  border-bottom: 1px solid var(--color-mist);
  padding: 0.75rem 1rem;
  vertical-align: top;
}
.blog-prose tbody tr:last-child td {
  border-bottom: 0;
}

/* ---- Custom block styles (registered in functions.php) ---- */
/* TIPMO Stats — a Columns block; each column becomes a fog stat card */
.blog-prose .wp-block-columns.is-style-tipmo-stats {
  margin: 2.5rem 0;
  gap: 0.75rem;
}
.blog-prose .is-style-tipmo-stats .wp-block-column {
  background: var(--color-fog);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.blog-prose .is-style-tipmo-stats .wp-block-column > * {
  margin: 0;
}
.blog-prose .is-style-tipmo-stats .wp-block-column > * + * {
  margin-top: 0.5rem;
}
.blog-prose .is-style-tipmo-stats .wp-block-column > h2,
.blog-prose .is-style-tipmo-stats .wp-block-column > h3,
.blog-prose .is-style-tipmo-stats .wp-block-column > h4,
.blog-prose .is-style-tipmo-stats .wp-block-column > .wp-block-heading {
  border: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--color-ink);
}
.blog-prose .is-style-tipmo-stats .wp-block-column p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-ink-subtle);
}

/* TIPMO Callout — a Group block */
.blog-prose .wp-block-group.is-style-tipmo-callout {
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  background: var(--color-astro-base);
  padding: 1.5rem;
}
.blog-prose .is-style-tipmo-callout > *:first-child {
  margin-top: 0;
}
.blog-prose .is-style-tipmo-callout > h2,
.blog-prose .is-style-tipmo-callout > h3,
.blog-prose .is-style-tipmo-callout > h4,
.blog-prose .is-style-tipmo-callout > .wp-block-heading:first-child {
  border: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 500;
  color: var(--color-ink);
}

/* ===================================================================
 * FOOTER (astro-gradient card: closing CTA + site footer)
 * =================================================================== */
.tipmo-footer-section {
  padding-top: clamp(2rem, 2.5vw, 4rem);
}
.tipmo-footer-outer {
  padding-bottom: clamp(1rem, 3.34vw, 4rem);
}
.tipmo-footer-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: var(--radius-hero);
  padding: 5rem 1.5rem 1.5rem;
  /* astro "card" gradient — copied from globals.css bg-astro-card */
  background-color: var(--color-astro-base);
  background-image:
    radial-gradient(58% 36% at 48% 26%, color-mix(in srgb, var(--color-blue) 18%, #eef2ff) 0%, transparent 100%),
    radial-gradient(52% 42% at 86% 32%, color-mix(in srgb, var(--color-astro-magenta) 15%, transparent) 0%, transparent 72%),
    radial-gradient(48% 38% at 12% 68%, color-mix(in srgb, var(--color-astro-purple) 13%, transparent) 0%, transparent 70%),
    radial-gradient(82% 46% at 50% 104%, color-mix(in srgb, var(--color-astro-sky) 24%, #e0f4fa) 0%, transparent 100%),
    linear-gradient(180deg, #f1f4ff 0%, #eceffd 18%, #eef2ff 36%, #f4f6ff 54%, #f0f7f5 72%, #e2f3f8 100%);
}
@media (min-width: 48rem) {
  .tipmo-footer-card {
    padding: 5rem 2rem 2rem;
  }
}
@media (min-width: 64rem) {
  .tipmo-footer-card {
    border-radius: var(--radius-xl);
    padding-top: 4.5rem;
  }
}

/* Closing CTA */
.tipmo-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.tipmo-cta-title {
  margin: 0;
  max-width: 60rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.021em;
  color: var(--color-ink);
}
.tipmo-cta-sub {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Footer proper */
.tipmo-footer {
  width: 100%;
  border-top: 1px solid var(--color-paper);
}
.tipmo-footer__inner {
  margin-inline: auto;
  width: 100%;
  max-width: var(--width-footer-inner);
  padding-top: 3.5rem;
}
@media (min-width: 64rem) {
  .tipmo-footer__inner {
    padding-top: clamp(3rem, 4vw, 4rem);
  }
}
.tipmo-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 2.5rem;
}
@media (min-width: 64rem) {
  .tipmo-footer__top {
    grid-template-columns: minmax(0, 15rem) 1fr;
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}
.tipmo-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tipmo-footer__logo {
  display: inline-flex;
  width: 120px;
  border-radius: 999px;
}
.tipmo-footer__logo svg {
  display: block;
  width: 100%;
  height: auto;
}
.tipmo-footer__tagline {
  margin: 0;
  max-width: 15rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-ink-subtle);
}
.tipmo-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.25rem;
}
.tipmo-label {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-muted);
}
.tipmo-footer__email {
  align-self: start;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-ink);
  transition: opacity 0.2s var(--ease-smooth-out);
}
.tipmo-footer__email:hover {
  opacity: 0.7;
}

/* Social row */
.tipmo-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.tipmo-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  transition: color 0.2s var(--ease-smooth-out);
}
.tipmo-social a:hover {
  color: var(--color-ink);
}
.tipmo-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer link columns */
.tipmo-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 40rem) {
  .tipmo-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: start;
  }
}
.tipmo-footer__col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.75rem;
}
.tipmo-footer__col h3 {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ink-subtle);
}
.tipmo-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tipmo-footer__col a {
  display: inline-block;
  padding: 0.125rem 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-ink);
}

/* Newsletter */
.tipmo-newsletter {
  border-top: 1px solid var(--color-paper);
  padding-top: 2rem;
  margin-top: 2.5rem;
}
.tipmo-newsletter__row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 64rem) {
  .tipmo-newsletter__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
  }
}
.tipmo-newsletter__intro {
  max-width: 14rem;
  flex: none;
}
.tipmo-newsletter__intro p:last-child {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-ink-subtle);
}
.tipmo-newsletter__form {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 32rem;
  flex-direction: column;
  gap: 0.75rem;
}
.tipmo-newsletter__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 40rem) {
  .tipmo-newsletter__fields {
    flex-direction: row;
    align-items: flex-start;
  }
}
.tipmo-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-nav);
  background: rgb(249 249 249 / 0.8);
  padding: 0.625rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-ink);
  outline: none;
  transition: border-color 0.15s var(--ease-smooth-out), box-shadow 0.15s var(--ease-smooth-out);
}
.tipmo-input::placeholder {
  color: var(--color-muted);
}
.tipmo-input:focus-visible {
  border-color: rgb(67 191 204 / 0.3);
  box-shadow: 0 0 0 4px var(--color-ink), 0 0 0 7px rgb(67 191 204 / 0.12);
}
.tipmo-newsletter__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.tipmo-consent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.tipmo-consent input {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  accent-color: var(--color-blue);
  cursor: pointer;
}
.tipmo-consent__text {
  font-size: 0.75rem;
  line-height: 1.6;
}
.tipmo-consent__text .muted {
  color: var(--color-muted);
}
.tipmo-consent__text .ink {
  color: var(--color-ink-subtle);
}
.tipmo-consent__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tipmo-consent__text a:hover {
  color: var(--color-ink);
}
.tipmo-newsletter__msg {
  font-size: 0.75rem;
}
.tipmo-newsletter__msg--error {
  color: #b91c1c;
}
.tipmo-newsletter__msg--ok {
  color: var(--color-blue-ink);
  font-weight: 500;
}

/* Bottom bar */
.tipmo-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--color-paper);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 40rem) {
  .tipmo-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}
.tipmo-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-ink-subtle);
}
.tipmo-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tipmo-footer__legal a {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ===================================================================
 * DEFENSIVE TYPOGRAPHY RESET
 * Re-asserts the TIPMO design over any leftover SITE-WIDE custom CSS
 * (e.g. an old "Custom CSS & JS" snippet that sets `body` and `h1..h6`
 * with !important — the previous blog shipped exactly that). The clean
 * fix is to delete that obsolete snippet (see README), but this keeps the
 * theme correct even if it lingers. Scoped to our OWN classes so it never
 * touches custom in-post markup (e.g. `.tipmo-post .tp-*` hero blocks).
 * =================================================================== */
body.tipmo-body {
  font-family: var(--font-sans) !important;
  color: var(--color-ink) !important;
  background: var(--color-paper) !important;
}

/* Outfit display headings — force family, ink color, medium weight */
.tipmo-body .tipmo-archive__title,
.tipmo-body .tipmo-article__title,
.tipmo-body .tipmo-cta-title,
.tipmo-body .tipmo-card__title,
.tipmo-body .blog-prose h2,
.tipmo-body .blog-prose h3,
.tipmo-body .blog-prose h4,
.tipmo-body .blog-prose > p:first-of-type {
  font-family: var(--font-display) !important;
}
.tipmo-body .tipmo-archive__title,
.tipmo-body .tipmo-article__title,
.tipmo-body .tipmo-cta-title,
.tipmo-body .tipmo-card__title,
.tipmo-body .blog-prose h2,
.tipmo-body .blog-prose h3,
.tipmo-body .blog-prose h4 {
  color: var(--color-ink) !important;
  font-weight: 500 !important;
}
.tipmo-body .tipmo-card__title {
  font-size: clamp(1.0625rem, 1vw, 1.25rem) !important;
}
/* Teal accent words keep their color */
.tipmo-body .tipmo-accent {
  color: var(--color-blue-ink) !important;
}
/* Footer column headings stay Figtree (uppercase labels), not a display font */
.tipmo-body .tipmo-footer__col h3 {
  font-family: var(--font-sans) !important;
  color: var(--color-ink-subtle) !important;
  font-weight: 500 !important;
}
/* Prose links keep the teal, not any inherited heading color */
.tipmo-body .blog-prose a {
  color: var(--color-blue-ink) !important;
}
/* Neutralize stray nested tags inside titles (e.g. a literal <h1> saved in a
   post title) so they render inline at the title's own size, never blown up. */
.tipmo-body .tipmo-card__title *,
.tipmo-body .tipmo-article__title * {
  font: inherit !important;
  color: inherit !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

/* ===================================================================
 * PAGINATION (WordPress the_posts_pagination — the static site has none,
 * but the dynamic blog needs it once posts exceed the per-page count)
 * =================================================================== */
.tipmo-pagination {
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.tipmo-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.tipmo-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-fog);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
  transition: background-color 0.2s var(--ease-smooth-out);
}
.tipmo-pagination a.page-numbers:hover {
  background: var(--color-haze-dark);
}
.tipmo-pagination .page-numbers.current {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-ink);
}
.tipmo-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}
