/*
Theme Name: Mouen Dark
Theme URI: https://mouen.site
Author: Mouen Khan
Description: Custom dark editorial theme for mouen.site — near-black canvas, hairline cards, a single electric-green accent, Inter + JetBrains Mono.
Version: 3.2.1
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mouen-dark
*/

:root {
  --m-canvas: #101010;
  --m-canvas-soft: #1a1a1a;
  --m-hairline: #6b6560;
  --m-ink: #f2f2f2;
  --m-ink-strong: #ffffff;
  --m-body: #bdbdbd;
  --m-mute: #8b949e;
  --m-primary: #00d992;
  --m-primary-soft: #2fd6a1;
  --m-primary-deep: #10b981;
  --m-dashed: rgba(79, 93, 117, 0.4);
  --m-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 32px 0;
}

figcaption {
  font-family: var(--m-mono);
  font-size: 12px;
  color: var(--m-mute);
  text-align: center;
  margin-top: 10px;
}

body {
  font-feature-settings: "calt", "rlig";
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--m-primary);
  color: #062019;
}

/* ---------- Eyebrow labels ---------- */
.m-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.52px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--m-mute);
  margin: 0 0 16px;
}

/* ---------- Section rhythm ---------- */
.m-band {
  padding-top: 48px;
  padding-bottom: 48px;
}

.m-divider-dashed {
  border: none;
  border-top: 1px dashed var(--m-dashed);
  margin: 0;
  height: 0;
}

/* ---------- Hairline cards ---------- */
.m-card {
  background: var(--m-canvas);
  border: 1px solid var(--m-hairline);
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.m-card:hover {
  box-shadow: 0 0 15px rgba(92, 88, 85, 0.2);
  border-color: #4d4a49;
}

.m-card .wp-block-post-featured-image {
  margin: -24px -24px 20px;
}

.m-card .wp-block-post-featured-image img {
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--m-hairline);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.m-card .wp-block-post-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
  margin: 10px 0 8px;
}

.m-card .wp-block-post-excerpt__excerpt {
  font-size: 14px;
  line-height: 20px;
  color: var(--m-body);
  margin: 0;
}

.m-card .wp-block-post-excerpt__more-text,
.m-card .wp-block-post-excerpt__more-link {
  display: none;
}

.m-card .wp-block-post-date {
  font-family: var(--m-mono);
  font-size: 12px;
  color: var(--m-mute);
  margin-top: 14px;
}

.m-card .wp-block-post-date a {
  color: var(--m-mute);
}

/* ---------- Category pills ---------- */
.m-pill a,
.m-pill span:not(.wp-block-post-terms__separator),
.wp-block-post-terms.m-pill a {
  display: inline-block;
  background: var(--m-canvas);
  border: 1px solid var(--m-hairline);
  border-radius: 9999px;
  color: var(--m-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  padding: 4px 12px;
  text-decoration: none;
}

.wp-block-post-terms.m-pill a:hover {
  border-color: var(--m-primary);
  color: var(--m-primary);
  text-decoration: none;
}

/* The separator span was picking up the pill styling above and rendering as an
   empty bordered oval between categories. Space the pills with a gap instead. */
.wp-block-post-terms.m-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wp-block-post-terms.m-pill .wp-block-post-terms__separator {
  display: none;
}

/* ---------- Status pill (green) ---------- */
.m-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--m-hairline);
  border-radius: 9999px;
  padding: 4px 14px;
  font-family: var(--m-mono);
  font-size: 12px;
  color: var(--m-ink);
}

.m-pill-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--m-primary);
  box-shadow: 0 0 8px var(--m-primary);
}

/* ---------- Code chip ---------- */
.m-code-chip {
  display: inline-block;
  background: var(--m-canvas-soft);
  border: 1px solid var(--m-hairline);
  border-radius: 6px;
  font-family: var(--m-mono);
  font-size: 13px;
  line-height: 18px;
  color: #f5f6f7;
  padding: 6px 12px;
}

.m-code-chip .m-prompt {
  color: var(--m-primary);
}

/* ---------- Header ---------- */
.m-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--m-hairline);
  background: rgba(16, 16, 16, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .m-header {
    background: var(--m-canvas);
  }
}

.m-logo-bolt {
  color: var(--m-primary);
  display: inline-flex;
  align-items: center;
}

/* Header logo is the wordmark alone — no icon. (The footer still uses the
   green bolt via the base .m-logo-bolt rule above.) */
.m-header .m-logo {
  flex: 0 0 auto;
  margin: 0;
}

.m-header .wp-block-site-title a {
  color: var(--m-ink-strong);
  letter-spacing: -0.3px;
  text-decoration: none;
}

/* Everything — logo, nav pill, Subscribe — rides in one centred group. */
.m-header .m-header-center {
  flex: 0 0 auto;
  gap: 20px;
  align-items: center;
}

/* ---------- Tubelight nav ----------
   Pill-shaped nav with a glowing "lamp" bar over the current item. Ported from
   the framer-motion tubelight navbar; here the lamp is pure CSS (pseudo-element
   + layered box-shadow) because this theme ships no JavaScript. The lamp fades
   in on hover too, which reads as the light tracking your pointer. */
/* Layout primitives normally supplied by core's wp-block-navigation stylesheet,
   which functions.php drops — it's ~21KB inline on every page and nearly all of
   it is the responsive overlay modal this header sets to "never". */
.wp-block-navigation,
.wp-block-navigation .wp-block-navigation__container,
.wp-block-navigation .wp-block-navigation-item {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-block-navigation .wp-block-navigation-item__content {
  display: block;
  text-decoration: none;
}

.m-header nav.m-tubelight {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--m-hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* WP stamps the block's className on both the <nav> and its <ul>, so the pill
   would otherwise render twice, nested. Only the nav is the pill. */
.m-header ul.m-tubelight {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.m-header .m-tubelight .wp-block-navigation__container {
  gap: 4px;
}

.m-header .m-tubelight .wp-block-navigation-item__content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: rgba(242, 242, 242, 0.8);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.m-header .m-tubelight .wp-block-navigation-item__content:hover {
  color: var(--m-primary);
  text-decoration: none;
}

.m-header .m-tubelight .current-menu-item > .wp-block-navigation-item__content,
.m-header .m-tubelight .current_page_item > .wp-block-navigation-item__content,
.m-header .m-tubelight .current-menu-parent > .wp-block-navigation-item__content,
.m-header .m-tubelight .current_page_parent > .wp-block-navigation-item__content {
  color: var(--m-primary);
  background: rgba(0, 217, 146, 0.1);
}

/* The lamp itself: a 32×4 bar clipped to the top edge of the pill, with three
   stacked shadows standing in for the original's blurred glow layers. */
.m-header .m-tubelight .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 24px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: var(--m-primary);
  box-shadow:
    0 0 6px 1px rgba(0, 217, 146, 0.5),
    0 -2px 14px 4px rgba(0, 217, 146, 0.22),
    0 -5px 22px 7px rgba(0, 217, 146, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.m-header .m-tubelight .wp-block-navigation-item__content:hover::after {
  opacity: 0.55;
}

.m-header .m-tubelight .current-menu-item > .wp-block-navigation-item__content::after,
.m-header .m-tubelight .current_page_item > .wp-block-navigation-item__content::after,
.m-header .m-tubelight .current-menu-parent > .wp-block-navigation-item__content::after,
.m-header .m-tubelight .current_page_parent > .wp-block-navigation-item__content::after {
  opacity: 1;
}

/* Match the neighbouring Subscribe button to the pill geometry. */
.m-header .wp-block-button__link {
  border-radius: 999px;
}

.wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--m-canvas) !important;
  color: var(--m-ink);
}

.wp-block-navigation__responsive-container.is-menu-open a {
  color: var(--m-ink);
}

button.wp-block-navigation__responsive-container-open,
button.wp-block-navigation__responsive-container-close {
  color: var(--m-ink);
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--m-canvas);
  color: var(--m-ink);
  border: 1px solid var(--m-hairline);
}

.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--m-primary);
  color: var(--m-primary);
  background: var(--m-canvas);
}

/* ---------- Hero ---------- */
.m-hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.65px;
  color: var(--m-ink-strong);
  margin: 0 0 20px;
}

.m-hero .m-lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--m-body);
  max-width: 560px;
}

/* ---------- Post content (single) ---------- */
.m-article-content {
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}

.m-article-content h2 {
  margin-top: 44px;
  margin-bottom: 14px;
}

.m-article-content h3 {
  margin-top: 32px;
  margin-bottom: 10px;
}

.m-article-content a {
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.4);
  text-underline-offset: 3px;
}

.m-article-content img {
  border-radius: 8px;
  border: 1px solid var(--m-hairline);
}

/* Safety net: a chart whose labels exceed its viewBox can never push the page. */
.m-article-content svg {
  display: block;
  overflow: hidden;
}

/* Sources list — compact, muted, links stay green on hover only. */
.m-article-content h3 + ul li {
  margin-bottom: 4px;
}

.m-sources-note {
  font-family: var(--m-mono);
  font-size: 12px;
  color: var(--m-mute);
  margin-top: 8px;
}

.m-article-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.m-article-content th {
  font-family: var(--m-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
  color: var(--m-mute);
  border-bottom: 1px solid var(--m-hairline);
  padding: 10px 12px;
}

.m-article-content td {
  border-bottom: 1px solid rgba(61, 58, 57, 0.55);
  padding: 10px 12px;
  color: var(--m-body);
}

/* Wide tables scroll inside their own box on small screens instead of
   pushing the whole page horizontally. */
@media (max-width: 600px) {
  .m-article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

.m-post-meta {
  font-family: var(--m-mono);
  font-size: 12px;
  color: var(--m-mute);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.m-post-meta a {
  color: var(--m-mute);
}

.m-featured-hero img {
  border-radius: 8px;
  border: 1px solid var(--m-hairline);
  width: 100%;
  height: auto;
}

/* ---------- Video embeds ---------- */
.m-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--m-hairline);
}

.m-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  max-width: none;
}

/* ---------- Newsletter band ---------- */
.m-newsletter {
  border: 1px solid var(--m-hairline);
  border-radius: 8px;
  padding: 40px 32px;
  position: relative;
}

.m-newsletter::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--m-primary);
  border-radius: 2px;
}

.m-newsletter h2 {
  margin-top: 0;
}

/* ---------- Hostinger Reach form re-skin ----------
\ Scoped to the plugin's REAL wrapper class. The earlier rules here hung off
\ `.m-newsletter .hostinger-reach-subscription`, which appears nowhere in the
\ rendered markup — the plugin outputs `.hostinger-reach-block-subscription-form`.
\ Inside .m-newsletter a bare `input[type=email]` selector happened to catch the
\ field anyway, so the footer band looked fine and the bug stayed hidden; the
\ mid-article card had no such fallback and rendered the plugin's light-mode
\ default (white box, #2c3338 text) plus a submit button with no background at
\ all. Styling the plugin's own classes covers all three placements at once:
\ footer band, mid-article card, and /newsletter/.
\
\ Specificity note: the plugin sets `background-color:#fff` at
\ `.hostinger-reach-block-subscription-form input` (0,1,1). Adding the attribute
\ selector below takes us to (0,2,0), so these win without !important. */
.hostinger-reach-block-subscription-form input[type="email"],
.hostinger-reach-block-subscription-form input[type="text"] {
  background: var(--m-canvas-soft);
  border: 1px solid var(--m-hairline);
  border-radius: 6px;
  color: var(--m-ink);
  font-size: 15px;
  padding: 12px 14px;
  min-height: 46px;
}

.hostinger-reach-block-subscription-form input[type="email"]::placeholder,
.hostinger-reach-block-subscription-form input[type="text"]::placeholder {
  color: var(--m-mute);
}

.hostinger-reach-block-subscription-form input[type="email"]:focus,
.hostinger-reach-block-subscription-form input[type="text"]:focus {
  outline: 2px solid var(--m-primary);
  outline-offset: 1px;
  border-color: var(--m-primary-soft);
}

.hostinger-reach-block-subscription-form label {
  color: var(--m-mute);
  letter-spacing: 0.06em;
}

.hostinger-reach-block-subscription-form label .required {
  color: var(--m-primary);
}

.hostinger-reach-block-subscription-form .hostinger-reach-block-submit {
  background: var(--m-primary);
  color: #062019;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  min-height: 46px;
  cursor: pointer;
}

.hostinger-reach-block-subscription-form .hostinger-reach-block-submit:hover {
  background: var(--m-primary-soft);
}

/* The plugin's own success/error tint is a ~10% wash with no colour set, so the
\ text fell back to whatever it inherited. Give both states a readable fill and
\ a border, and keep the icon from being a dark glyph on a dark card. */
.reach-subscription-message {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  align-items: center;
}

.reach-subscription-message.is-success {
  background: rgba(0, 217, 146, 0.1);
  border: 1px solid rgba(0, 217, 146, 0.35);
  color: var(--m-ink);
}

.reach-subscription-message.is-error {
  background: rgba(234, 71, 104, 0.12);
  border: 1px solid rgba(234, 71, 104, 0.4);
  color: var(--m-ink);
}

.reach-subscription-message svg {
  flex: 0 0 auto;
}

.reach-subscription-message.is-success svg {
  color: var(--m-primary);
}

.reach-subscription-message.is-error svg {
  color: #ea4768;
}

/* Desktop band + landing page: field and button share a row. Below 600px the
\ plugin's own flex-column default takes back over, which is what we want. */
@media (min-width: 601px) {
  .m-newsletter .hostinger-reach-block-form-fields,
  .m-inline-signup .hostinger-reach-block-form-fields {
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
  }

  .m-newsletter .hostinger-reach-block-form-field,
  .m-inline-signup .hostinger-reach-block-form-field {
    flex: 1 1 auto;
    margin-top: 0;
  }

  .m-newsletter .hostinger-reach-block-submit,
  .m-inline-signup .hostinger-reach-block-submit {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
  }
}

/* ---------- Footer ---------- */
.m-footer {
  border-top: 1px solid var(--m-hairline);
  margin-top: 64px;
}

.m-footer a {
  color: var(--m-body);
  font-size: 14px;
}

.m-footer a:hover {
  color: var(--m-primary);
  text-decoration: none;
}

.m-footer .m-fineprint {
  font-size: 12px;
  color: var(--m-mute);
}

/* ---------- Pagination ---------- */
.wp-block-query-pagination {
  font-family: var(--m-mono);
  font-size: 14px;
}

.wp-block-query-pagination a {
  color: var(--m-ink);
  border: 1px solid var(--m-hairline);
  border-radius: 6px;
  padding: 8px 14px;
  text-decoration: none;
}

.wp-block-query-pagination a:hover {
  border-color: var(--m-primary);
  color: var(--m-primary);
}

.wp-block-query-pagination-numbers .current {
  color: var(--m-primary);
  padding: 8px 6px;
}

/* ---------- Search ---------- */
.wp-block-search__input {
  background: var(--m-canvas-soft);
  border: 1px solid var(--m-hairline);
  border-radius: 6px;
  color: var(--m-ink);
  padding: 12px 16px;
}

.wp-block-search__button {
  background: var(--m-primary);
  color: #062019;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  padding: 12px 20px;
}

/* ---------- 404 ---------- */
.m-404-code {
  font-family: var(--m-mono);
  font-size: clamp(64px, 15vw, 120px);
  color: var(--m-primary);
  line-height: 1;
  margin: 0;
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item__content:focus-visible,
.wp-block-search__input:focus-visible,
.wp-block-search__button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
  .m-band {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .m-newsletter {
    padding: 28px 20px;
  }
}

/* Tablet step for post-card grids: WP core jumps straight from 3 columns
   to 1 at 600px — this fills the gap so cards aren't squeezed 3-up. */
@media (min-width: 601px) and (max-width: 900px) {
  .wp-block-post-template-is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Tubelight nav on phones: the pill detaches from the header and floats at the
   bottom of the viewport with icons instead of labels, matching the original
   component's mobile behaviour. The header's backdrop-filter has to go here —
   a filtered ancestor becomes the containing block for fixed descendants, which
   would pin the pill inside the header instead of the viewport. */
@media (max-width: 767px) {
  .m-header {
    position: static;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--m-canvas);
  }

  body {
    padding-bottom: 84px;
  }

  /* Phones: the nav is down in the bottom bar, so the group holds just the logo
     and Subscribe — spread them to the edges instead of centring the pair. */
  .m-header .m-header-center {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .m-header nav.m-tubelight {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 60;
    background: rgba(16, 16, 16, 0.82);
  }

  /* Clipped, not hidden — the label is the link's accessible name. */
  .m-header .m-tubelight .wp-block-navigation-item__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .m-header .m-tubelight .wp-block-navigation-item__content {
    padding: 10px 18px;
  }

  .m-header .m-tubelight .wp-block-navigation-item__content::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--m-nav-icon) center / 18px 18px no-repeat;
    mask: var(--m-nav-icon) center / 18px 18px no-repeat;
  }

  /* Lucide icons (home, newspaper, user) as masks, tinted by currentColor.
     Bound by position — keep in sync with the nav items in parts/header.html. */
  .m-header .m-tubelight .wp-block-navigation__container > li:nth-child(1) .wp-block-navigation-item__content {
    --m-nav-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/><path d='M9 22V12h6v10'/></svg>");
  }

  .m-header .m-tubelight .wp-block-navigation__container > li:nth-child(2) .wp-block-navigation-item__content {
    --m-nav-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/><path d='M18 14h-8'/><path d='M15 18h-5'/><path d='M10 6h8v4h-8V6Z'/></svg>");
  }

  .m-header .m-tubelight .wp-block-navigation__container > li:nth-child(3) .wp-block-navigation-item__content {
    --m-nav-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
  }
}

/* Below 768px the nav has already left the header for the bottom bar, so the
   header row is just logo + Subscribe and has room on any phone — the old
   two-line wrap fallback isn't needed any more. Trim the title if a very
   narrow screen ever squeezes the pair. */
@media (max-width: 400px) {
  .m-header .wp-block-site-title a {
    font-size: 16px;
  }
}

/* ---------- Hero visual ----------
   Self-hosted inline SVG: an automation hub with app nodes feeding pulses into
   a green core. Replaced a 3 MB third-party Spline scene — this is a few KB in
   the HTML, paints with the first frame, and carries no vendor watermark. */
.m-hero {
  position: relative;
  overflow: hidden;
}

.m-hero-grid {
  position: relative;
  z-index: 2;
  /* As a flex item it would shrink to its content and get centred by the
     alignwide auto margins — pin it to full width so the copy stays left. */
  flex: 1 1 auto;
  width: 100%;
}

.m-hero-copy {
  max-width: 620px;
}

.m-hero-stage,
.m-hero-scrim {
  display: none;
  /* WP's constrained layout caps every unaligned child at the 720px content
     width and centres it with auto margins — which silently shrank these two
     absolute layers into a narrow box in the middle of the hero. */
  max-width: none;
  margin: 0;
}

.m-hv {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Cursor parallax: JS writes --hv-x / --hv-y in the range -1..1, the layers
   move by different amounts to fake depth. */
.m-hero-stage {
  --hv-x: 0;
  --hv-y: 0;
}

.m-hv-scene,
.m-hv-bloom {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.m-hv-scene {
  transform: translate(calc(var(--hv-x) * 14px), calc(var(--hv-y) * 12px));
}

.m-hv-bloom {
  transform: translate(calc(var(--hv-x) * -20px), calc(var(--hv-y) * -16px));
}

.m-hv-ring {
  transform-origin: 300px 300px;
}

.m-hv-ring--a {
  animation: m-hv-spin 72s linear infinite;
}

.m-hv-ring--b {
  animation: m-hv-spin 104s linear infinite reverse;
}

/* Pulses travelling along each wire into the hub. */
.m-hv-pulse {
  stroke-dashoffset: 210;
  animation: m-hv-flow 3.4s linear infinite;
  animation-delay: var(--d, 0s);
}

.m-hv-node {
  animation: m-hv-float 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.m-hv-hub-glow {
  transform-origin: 300px 300px;
  animation: m-hv-breathe 4.5s ease-in-out infinite;
}

.m-hv-hub-ping {
  transform-origin: 300px 300px;
  animation: m-hv-ping 4.5s ease-out infinite;
}

@keyframes m-hv-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes m-hv-flow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes m-hv-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes m-hv-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes m-hv-ping {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* Reduced motion: drop the things that actually move — spinning rings, floating
   nodes, the expanding ping. The hub breath becomes opacity-only, and the wire
   pulses stay but slow down: they're 10px dashes on a fixed path, which is the
   kind of small, local motion the preference isn't aimed at, and without them
   the scene reads as a dead screenshot. Cursor parallax stays either way — that
   one is driven by the visitor. */
@media (prefers-reduced-motion: reduce) {
  .m-hv-ring--a,
  .m-hv-ring--b,
  .m-hv-node,
  .m-hv-hub-ping {
    animation: none;
  }

  .m-hv-pulse {
    animation-duration: 6s;
  }

  .m-hv-hub-glow {
    animation: m-hv-fade 6s ease-in-out infinite;
  }

  @keyframes m-hv-fade {
    0%,
    100% {
      opacity: 0.5;
    }
    50% {
      opacity: 1;
    }
  }
}

@media (min-width: 900px) {
  .m-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
  }

  .m-hero-stage {
    display: block;
    position: absolute;
    inset: 0 -4% 0 22%;
    z-index: 0;
  }

  /* Keeps the copy clear of the artwork where the two overlap. Lighter than it
     needed to be for the old scene — this one is sparse and mostly dark. */
  .m-hero-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to right,
      var(--m-canvas) 0%,
      rgba(16, 16, 16, 0.88) 30%,
      rgba(16, 16, 16, 0.4) 48%,
      rgba(16, 16, 16, 0) 62%
    );
  }
}

/* ---------- Circular gallery (home post grid) ----------
   Everything here hangs off .is-orbit, which assets/js/orbit.js adds only on
   wide viewports with motion allowed. Without it the section renders as the
   plain three-column card grid it has always been — that's the fallback for
   phones, reduced-motion users, and no-JS. */
.m-orbit-hint {
  display: none;
}

.m-orbit-stage.is-orbit {
  position: relative;
  height: 320vh;
}

.m-orbit-stage.is-orbit .m-orbit-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 2000px;
}

.m-orbit-stage.is-orbit .m-orbit-head {
  position: absolute;
  top: 9vh;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  pointer-events: none;
}

.m-orbit-stage.is-orbit .m-orbit-head h2 {
  margin: 6px 0 0;
}

.m-orbit-stage.is-orbit .m-orbit-hint {
  display: block;
  margin: 12px 0 0;
  font-family: var(--m-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-mute);
}

.m-orbit-stage.is-orbit .wp-block-spacer {
  display: none;
}

.m-orbit-stage.is-orbit .m-orbit {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* The ring itself. JS writes the rotateY on this element. */
.m-orbit-stage.is-orbit .wp-block-post-template {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.m-orbit-stage.is-orbit .wp-block-post-template > li {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 400px;
  margin: -200px 0 0 -150px;
  transform-style: preserve-3d;
  transition: opacity 0.3s linear;
}

/* Card becomes a poster: image fills it, text sits on a gradient at the base. */
.m-orbit-stage.is-orbit .m-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.m-orbit-stage.is-orbit .m-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0) 72%
  );
}

.m-orbit-stage.is-orbit .m-card .wp-block-post-featured-image {
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
}

.m-orbit-stage.is-orbit .m-card .wp-block-post-featured-image a,
.m-orbit-stage.is-orbit .m-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.m-orbit-stage.is-orbit .m-card > :not(.wp-block-post-featured-image) {
  position: relative;
  z-index: 2;
}

.m-orbit-stage.is-orbit .m-card .wp-block-post-terms {
  margin: 0 18px 10px;
}

.m-orbit-stage.is-orbit .m-card .wp-block-post-title {
  margin: 0 18px 8px;
  font-size: 21px;
  line-height: 27px;
}

.m-orbit-stage.is-orbit .m-card .wp-block-post-title a {
  color: var(--m-ink-strong);
}

.m-orbit-stage.is-orbit .m-card .wp-block-post-excerpt {
  display: none;
}

.m-orbit-stage.is-orbit .m-card .wp-block-post-date {
  margin: 0 18px 18px;
}

/* =========================================================================
   ARTICLE FURNITURE (v3.0.0)
   Breadcrumb, table of contents, share row, inline signup, author box and
   related posts. All rendered by the mouen/* blocks in functions.php.
   ====================================================================== */

/* ---------- Article shell: content + sticky TOC rail ----------
   The rail is first in the DOM so phones get the contents list above the
   article without any order juggling; at 1100px+ it becomes the left column
   and sticks. Total column width 248 + 56 + 680 = 984px, centred in the
   1200px wide container. */
.m-article-shell {
  display: block;
}

/* Below the grid breakpoint the shell is plain flow, so the rail has to cap
   itself to the article measure — its parent is the 1200px alignwide row. */
.m-article-rail {
  max-width: 680px;
  margin: 0 auto 32px;
}

@media (min-width: 1100px) {
  .m-article-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 680px);
    gap: 56px;
    justify-content: center;
    align-items: start;
  }

  .m-article-rail {
    max-width: none;
    position: sticky;
    /* Clears the sticky header (57px) plus breathing room. */
    top: 88px;
    margin: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ---------- Breadcrumb ---------- */
.m-crumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-family: var(--m-mono);
  font-size: 12px;
  color: var(--m-mute);
}

.m-crumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.m-crumb li + li::before {
  content: "/";
  color: var(--m-hairline);
}

.m-crumb a {
  color: var(--m-mute);
  text-decoration: none;
}

.m-crumb a:hover {
  color: var(--m-primary);
}

/* The current page is the longest crumb and the least useful — let it truncate
   rather than wrap the row onto three lines on a phone. */
.m-crumb li[aria-current] {
  color: var(--m-body);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

@media (max-width: 600px) {
  .m-crumb li[aria-current] {
    max-width: 14em;
  }
}

/* ---------- Table of contents ---------- */
.m-toc {
  border: 1px solid var(--m-hairline);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--m-canvas);
}

.m-toc .m-eyebrow {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 2px;
}

.m-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.m-toc__item {
  margin: 0;
}

.m-toc__item a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--m-hairline);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--m-body);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.m-toc__item--h3 a {
  padding-left: 24px;
  font-size: 13px;
  color: var(--m-mute);
}

.m-toc__item a:hover {
  color: var(--m-ink);
  border-left-color: var(--m-primary-deep);
}

/* Scroll-spy state, set by assets/js/article.js. */
.m-toc__item.is-current > a {
  color: var(--m-primary);
  border-left-color: var(--m-primary);
}

/* On phones the list is a card in the flow; cap it so a 14-heading article
   doesn't push the first paragraph a full screen down. */
@media (max-width: 1099px) {
  .m-toc__list {
    max-height: 38vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 1100px) {
  .m-toc {
    border: none;
    border-left: 1px solid var(--m-hairline);
    border-radius: 0;
    padding: 2px 0 2px 18px;
  }

  /* The rail's own left border does the framing; the items sit inside it. */
  .m-toc__item a {
    border-left: none;
    padding-left: 0;
  }

  .m-toc__item--h3 a {
    padding-left: 14px;
  }

  .m-toc__item.is-current > a,
  .m-toc__item a:hover {
    border-left: none;
  }
}

/* ---------- Post meta: reading time + updated ---------- */
.m-readtime,
.m-updated {
  font-family: var(--m-mono);
  font-size: 12px;
  color: var(--m-mute);
}

.m-updated {
  color: var(--m-primary-deep);
}

/* ---------- Share / save row ---------- */
.m-share {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.m-share__label {
  font-family: var(--m-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--m-mute);
  margin: 0;
}

.m-share__list {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.m-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--m-hairline);
  border-radius: 8px;
  background: var(--m-canvas);
  color: var(--m-body);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.m-share__btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.m-share__btn:hover {
  color: var(--m-primary);
  border-color: var(--m-primary);
}

/* Pinterest is the channel this site is actually betting on — give it the
   accent treatment so it reads as the primary action of the row. */
.m-share__btn--pinterest {
  color: var(--m-primary);
  border-color: var(--m-primary-deep);
}

.m-share__copied {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--m-mono);
  font-size: 11px;
  color: var(--m-primary);
  background: var(--m-canvas);
  border: 1px solid var(--m-hairline);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.m-share__btn--copy.is-copied .m-share__copied {
  opacity: 1;
}

/* ---------- Key takeaways box (top of every article) ----------
   Sits directly under the intro. Doubles as the AI-Overview snippet candidate,
   so it stays plain <ul> markup — no icons, nothing that strips to nonsense. */
.m-article-content .m-takeaways {
  border: 1px solid var(--m-hairline);
  border-left: 2px solid var(--m-primary);
  border-radius: 8px;
  background: var(--m-canvas-soft);
  padding: 22px 26px;
  margin: 32px 0 40px;
}

.m-article-content .m-takeaways > p:first-child {
  font-family: var(--m-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--m-primary);
  margin: 0 0 14px;
}

.m-article-content .m-takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.m-article-content .m-takeaways li {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 9px;
  color: var(--m-ink);
}

.m-article-content .m-takeaways li:last-child {
  margin-bottom: 0;
}

.m-article-content .m-takeaways li::marker {
  color: var(--m-primary-deep);
}

/* ---------- Pull-out callout (a named limit, a caveat, a rule of thumb) ---------- */
.m-article-content .m-note {
  border-left: 2px solid var(--m-hairline);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--m-body);
  font-size: 16px;
}

.m-article-content .m-note strong {
  color: var(--m-ink);
}

/* ---------- Inline newsletter card (mid-article) ---------- */
.m-inline-signup {
  border: 1px solid var(--m-hairline);
  border-left: 2px solid var(--m-primary);
  border-radius: 8px;
  background: var(--m-canvas-soft);
  padding: 24px;
  margin: 40px 0;
}

.m-inline-signup .m-eyebrow {
  margin-bottom: 8px;
}

.m-inline-signup__lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--m-body);
  margin: 0 0 16px;
}

.m-inline-signup .hostinger-reach-block-subscription-form-wrapper {
  margin: 0;
}

/* ---------- Author box ---------- */
.m-authorbox {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--m-hairline);
  border-radius: 8px;
  padding: 24px;
}

.m-authorbox__mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 1px solid var(--m-primary-deep);
  background: var(--m-canvas-soft);
  color: var(--m-primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-authorbox__body {
  min-width: 0;
}

.m-authorbox .m-eyebrow {
  margin-bottom: 6px;
}

.m-authorbox__name {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.m-authorbox__name a {
  color: var(--m-ink);
  text-decoration: none;
}

.m-authorbox__name a:hover {
  color: var(--m-primary);
}

.m-authorbox__bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--m-body);
  margin: 0;
}

.m-authorbox__more {
  font-family: var(--m-mono);
  font-size: 12px;
  margin: 12px 0 0;
}

.m-authorbox__more a {
  color: var(--m-primary-deep);
  text-decoration: none;
}

.m-authorbox__more a:hover {
  color: var(--m-primary);
}

@media (max-width: 480px) {
  .m-authorbox {
    flex-direction: column;
    gap: 14px;
  }
}

/* ---------- Related posts ---------- */
.m-related .m-eyebrow {
  margin-bottom: 20px;
}

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

@media (max-width: 900px) {
  .m-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .m-related__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.m-card--related {
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
  overflow: hidden;
}

.m-card--related__media {
  display: block;
  margin: 0 0 16px;
}

.m-card--related__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--m-hairline);
  border-radius: 8px 8px 0 0;
}

.m-card--related .m-pill {
  margin: 0 18px 10px;
}

.m-card--related__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0 18px 10px;
}

.m-card--related__title a {
  color: var(--m-ink);
  text-decoration: none;
}

.m-card--related__title a:hover {
  color: var(--m-primary);
}

.m-card--related__meta {
  font-family: var(--m-mono);
  font-size: 12px;
  color: var(--m-mute);
  margin: auto 18px 0;
}

/* ---------- Topics hub page ---------- */
.m-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.m-topic-card {
  border: 1px solid var(--m-hairline);
  border-radius: 8px;
  padding: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.m-topic-card:hover {
  border-color: #4d4a49;
  box-shadow: 0 0 15px rgba(92, 88, 85, 0.2);
}

.m-topic-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.m-topic-card h3 a {
  color: var(--m-ink);
  text-decoration: none;
}

.m-topic-card h3 a:hover {
  color: var(--m-primary);
}

.m-topic-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--m-body);
  margin: 0;
}

.m-topic-card__count {
  font-family: var(--m-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--m-mute);
  margin-top: 14px;
  display: block;
}

/* =========================================================================
   FOOTER (v3.0.0) — four columns instead of a legal strip
   ====================================================================== */
.m-footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.m-footer-col .m-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.m-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-footer-col li + li {
  margin-top: 2px;
}

.m-footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  color: var(--m-body);
  text-decoration: none;
}

.m-footer-col a:hover {
  color: var(--m-primary);
}

.m-footer-brand__mark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.m-footer-brand__mark a {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--m-ink-strong);
  text-decoration: none;
  min-height: 0;
}

.m-footer-brand__mark a:hover {
  color: var(--m-primary);
}

.m-footer-brand .m-fineprint {
  max-width: 32ch;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .m-footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .m-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .m-footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =========================================================================
   MOBILE PARITY (v3.0.0)
   The hero visual and the type/target floors below 900px.
   ====================================================================== */

/* The signature visual used to be display:none under 900px, which meant the
   majority of traffic — Pinterest and Discover are mobile-first — landed on a
   band of plain text. Below 900px the stage drops out of the absolute layer
   and becomes a square panel under the copy. Same SVG, same 0 extra bytes. */
@media (max-width: 899px) {
  .m-hero {
    display: flex;
    flex-direction: column;
  }

  .m-hero-grid {
    order: 1;
  }

  .m-hero-stage {
    display: block;
    order: 2;
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 36px auto 0;
  }

  /* The outermost 2-14 dashed ring turns to mush at this size. */
  .m-hero-stage .m-hv-ring--a {
    display: none;
  }

  /* Scrim is only needed where artwork sits behind text. */
  .m-hero-scrim {
    display: none;
  }
}

/* Target size — WCAG 2.5.8 wants 24px minimum; the primary nav and the footer
   link lists were at 38px and 17px respectively. Primary navigation gets the
   full 44px AAA treatment since it lives in a thumb-reach bottom bar. */
@media (max-width: 767px) {
  .m-header .m-tubelight .wp-block-navigation-item__content {
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .m-header .wp-block-site-title a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .m-footer-col a {
    min-height: 44px;
  }
}

.wp-block-post-terms.m-pill a,
.m-pill a {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
}

/* Readability floors: card excerpts were 14px and the fineprint 12px, both
   under what holds up on a phone. */
.m-card .wp-block-post-excerpt__excerpt {
  font-size: 15px;
  line-height: 22px;
}

.m-footer .m-fineprint,
.m-fineprint {
  font-size: 13px;
}

/* Charts are authored at a wide viewBox for desktop; on a 375px screen a 15px
   SVG label renders at roughly 8.8px. Let figures bleed to the full content
   width on phones so the scale-down is less brutal, and give the chart itself
   a little more room by trimming the figure margin. */
@media (max-width: 600px) {
  .m-article-content figure {
    margin: 24px 0;
  }

  .m-article-content figure svg {
    width: 100%;
  }
}

/* Sources block: the source name carries the link, the retrieval date is a
   single muted note after the list. Long publisher URLs used to wrap as raw
   visible text and ate over a thousand pixels of a phone screen. */
.m-article-content .m-sources li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- 4th nav icon: Topics ----------
   Bound by position, like the other three — adding or reordering nav items in
   parts/header.html means updating these rules. 1 home, 2 newspaper (Blog),
   3 layers (Topics), 4 user (About). */
@media (max-width: 767px) {
  .m-header .m-tubelight .wp-block-navigation__container > li:nth-child(3) .wp-block-navigation-item__content {
    --m-nav-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7' rx='1'/><rect x='14' y='3' width='7' height='7' rx='1'/><rect x='3' y='14' width='7' height='7' rx='1'/><rect x='14' y='14' width='7' height='7' rx='1'/></svg>");
  }

  .m-header .m-tubelight .wp-block-navigation__container > li:nth-child(4) .wp-block-navigation-item__content {
    --m-nav-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
  }
}
