:root {
  color-scheme: light;
  --md-sys-color-primary: #0e5a62;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #b9ecf6;
  --md-sys-color-on-primary-container: #001f24;

  --md-sys-color-secondary: #466066;
  --md-sys-color-secondary-container: #c9e5ec;

  --md-sys-color-surface: #f4f7f7;
  --md-sys-color-surface-container: #e7ecec;
  --md-sys-color-surface-elevated: #ffffff;
  --md-sys-color-surface-variant: #d7e4e7;

  --md-sys-color-on-surface: #152021;
  --md-sys-color-on-surface-variant: #3f4d50;
  --md-sys-color-outline: #708084;

  --md-sys-color-error: #ba1a1a;

  --mh-bg-radial-1: #d8f2f8;
  --mh-bg-radial-2: #e3efe4;
  --mh-skip-link-bg: #ffffff;
  --mh-header-bg: rgb(244 247 247 / 0.88);
  --mh-hero-gradient: linear-gradient(160deg, #f6fdff 12%, #e4f7ff 50%, #f2f7ed 100%);
  --mh-featured-wrap-border: rgb(14 90 98 / 0.28);
  --mh-featured-wrap-bg: linear-gradient(145deg, rgb(14 90 98 / 0.08), rgb(14 90 98 / 0.02));
  --mh-featured-card-border: rgb(14 90 98 / 0.26);
  --mh-featured-badge-bg: rgb(14 90 98 / 0.92);
  --mh-featured-badge-text: #ffffff;
  --mh-category-pill-bg: rgb(14 90 98 / 0.12);
  --mh-category-pill-bg-hover: rgb(14 90 98 / 0.18);
  --mh-category-pill-text: #0d515a;
  --mh-meta-separator: rgb(63 77 80 / 0.75);
  --mh-intro-gradient: linear-gradient(180deg, rgb(14 90 98 / 0.1) 0%, rgb(14 90 98 / 0.04) 100%);
  --mh-blockquote-bg: rgb(14 90 98 / 0.06);
  --mh-code-bg: #102325;
  --mh-code-text: #f4fbfc;
  --mh-pagination-bg: #ffffff;
  --mh-pagination-current-text: #ffffff;
  --mh-footer-bg: #ebf0f0;
  --mh-nav-mobile-bg: #ffffff;
  --mh-link-hover: #0a6f7a;
  --mh-logo-max-height: 76px;
  --mh-logo-max-width: 360px;

  --mh-border-soft: rgb(112 128 132 / 0.2);
  --mh-border-soft-alt: rgb(112 128 132 / 0.18);
  --mh-border-medium: rgb(112 128 132 / 0.22);
  --mh-border-strong: rgb(112 128 132 / 0.24);
  --mh-border-strong-alt: rgb(112 128 132 / 0.26);
  --mh-border-heavy: rgb(112 128 132 / 0.3);
  --mh-border-heavier: rgb(112 128 132 / 0.35);
  --mh-border-heaviest: rgb(112 128 132 / 0.4);

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.08), 0 2px 5px rgb(0 0 0 / 0.05);
  --shadow-2: 0 2px 10px rgb(0 0 0 / 0.1), 0 8px 20px rgb(0 0 0 / 0.08);

  --container: min(1120px, 92vw);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --md-sys-color-primary: #86d6df;
  --md-sys-color-on-primary: #00363d;
  --md-sys-color-primary-container: #0f4951;
  --md-sys-color-on-primary-container: #b9ecf6;

  --md-sys-color-secondary: #aec8ce;
  --md-sys-color-secondary-container: #2e4a4f;

  --md-sys-color-surface: #0f1719;
  --md-sys-color-surface-container: #1e2a2d;
  --md-sys-color-surface-elevated: #162124;
  --md-sys-color-surface-variant: #2b393c;

  --md-sys-color-on-surface: #e3f1f3;
  --md-sys-color-on-surface-variant: #b6c8cc;
  --md-sys-color-outline: #8ba2a7;

  --mh-bg-radial-1: rgb(19 72 79 / 0.46);
  --mh-bg-radial-2: rgb(55 86 62 / 0.32);
  --mh-skip-link-bg: #152226;
  --mh-header-bg: rgb(15 23 25 / 0.9);
  --mh-hero-gradient: linear-gradient(160deg, #112126 12%, #173036 50%, #213027 100%);
  --mh-featured-wrap-border: rgb(134 214 223 / 0.34);
  --mh-featured-wrap-bg: linear-gradient(145deg, rgb(134 214 223 / 0.16), rgb(134 214 223 / 0.06));
  --mh-featured-card-border: rgb(134 214 223 / 0.3);
  --mh-featured-badge-bg: rgb(134 214 223 / 0.24);
  --mh-featured-badge-text: #ddf8fc;
  --mh-category-pill-bg: rgb(134 214 223 / 0.18);
  --mh-category-pill-bg-hover: rgb(134 214 223 / 0.28);
  --mh-category-pill-text: #d0f2f7;
  --mh-meta-separator: rgb(182 199 204 / 0.78);
  --mh-intro-gradient: linear-gradient(180deg, rgb(134 214 223 / 0.18) 0%, rgb(134 214 223 / 0.07) 100%);
  --mh-blockquote-bg: rgb(134 214 223 / 0.1);
  --mh-code-bg: #0c1416;
  --mh-code-text: #d4ecef;
  --mh-pagination-bg: #192529;
  --mh-pagination-current-text: #00363d;
  --mh-footer-bg: #121d20;
  --mh-nav-mobile-bg: #182428;
  --mh-link-hover: #9fe5ec;

  --mh-border-soft: rgb(139 162 167 / 0.3);
  --mh-border-soft-alt: rgb(139 162 167 / 0.26);
  --mh-border-medium: rgb(139 162 167 / 0.32);
  --mh-border-strong: rgb(139 162 167 / 0.34);
  --mh-border-strong-alt: rgb(139 162 167 / 0.36);
  --mh-border-heavy: rgb(139 162 167 / 0.4);
  --mh-border-heavier: rgb(139 162 167 / 0.44);
  --mh-border-heaviest: rgb(139 162 167 / 0.5);

  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.45), 0 3px 8px rgb(0 0 0 / 0.35);
  --shadow-2: 0 4px 14px rgb(0 0 0 / 0.52), 0 10px 24px rgb(0 0 0 / 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  color: var(--md-sys-color-on-surface);
  background:
    radial-gradient(circle at 12% 8%, var(--mh-bg-radial-1) 0, transparent 36%),
    radial-gradient(circle at 90% 14%, var(--mh-bg-radial-2) 0, transparent 32%),
    var(--md-sys-color-surface);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', 'Avenir Next', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  transition: color 0.16s ease;
}

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

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

.container {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
}

.site-main {
  padding: 2rem 0 4rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1rem;
  align-items: start;
}

.content-layout__main {
  min-width: 0;
}

.site-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.site-sidebar .widget {
  margin: 0;
  background: var(--md-sys-color-surface-elevated);
  border: 1px solid var(--mh-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 1rem;
}

.site-sidebar .widget-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.site-sidebar ul {
  margin: 0;
  padding-left: 1rem;
}

.site-sidebar li {
  margin-bottom: 0.4rem;
}

.widget-trending-posts__range {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.site-sidebar .widget .widget-trending-posts {
  display: block;
}

.widget-trending-posts__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: trending-rank;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.widget-trending-posts__list li {
  counter-increment: trending-rank;
  margin: 0;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.58rem;
  align-items: start;
  line-height: 1.35;
}

.widget-trending-posts__list li::before {
  content: counter(trending-rank, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  margin-top: 0.02rem;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  border: 1px solid var(--mh-border-soft-alt);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.widget-trending-posts__list li + li {
  border-top: 1px solid var(--mh-border-soft);
  padding-top: 0.42rem;
}

.widget-trending-posts__list a {
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-weight: 600;
}

.widget-trending-posts__list a:hover {
  color: var(--mh-link-hover);
  text-decoration: none;
}

.widget-trending-posts__empty {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--mh-skip-link-bg);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 18px;
  vertical-align: text-bottom;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--mh-header-bg);
  border-bottom: 1px solid var(--mh-border-soft-alt);
}

.site-header__inner {
  min-height: 72px;
  padding-block: 0.42rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.custom-logo {
  width: auto;
  height: auto;
  max-height: var(--mh-logo-max-height);
  max-width: min(100%, var(--mh-logo-max-width));
  border-radius: 0;
  object-fit: contain;
}

.site-title {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
  font-size: 1.06rem;
}

.site-title:hover {
  text-decoration: none;
}

.main-navigation .menu-list,
.main-navigation .menu-fallback,
.footer-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-navigation {
  margin-left: auto;
}

.main-navigation a,
.footer-menu-list a,
.menu-fallback a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.menu-fallback a:hover {
  background: var(--md-sys-color-secondary-container);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--md-sys-color-on-surface);
}

.menu-toggle:hover,
.theme-toggle:hover {
  background: var(--md-sys-color-surface-variant);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border: 0;
  background: transparent;
  min-height: 42px;
  border-radius: 999px;
  color: var(--md-sys-color-on-surface);
  padding: 0 0.75rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.theme-toggle__icon {
  font-size: 19px;
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.hero {
  margin-top: 1.5rem;
  padding: clamp(1.4rem, 2.5vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--mh-hero-gradient);
  border: 1px solid var(--mh-border-soft);
  box-shadow: var(--shadow-1);
  animation: rise 0.5s ease;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.65rem;
}

.hero__description {
  max-width: 64ch;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--md-sys-color-on-surface-variant);
}

.hero__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.64rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: currentColor;
}

.button--filled {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.button--tonal {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.post-grid-section {
  margin-top: 2rem;
}

.featured-posts-section {
  margin-top: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.featured-posts-section .section-head {
  align-items: center;
}

.featured-posts-section__tag-description {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.92rem;
}

.featured-posts-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.featured-post-card {
  grid-column: span 3;
  background: var(--mh-featured-wrap-bg);
  border: 1px solid var(--mh-featured-wrap-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.featured-post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--md-sys-color-surface-container);
}

.featured-post-card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  background: var(--mh-featured-badge-bg);
  color: var(--mh-featured-badge-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.featured-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-card__content {
  padding: 0.85rem 0.9rem 1rem;
}

.featured-post-card__content h3 {
  margin: 0 0 0.42rem;
  font-size: 1.08rem;
}

.featured-post-card__content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface-variant);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-head--spaced {
  margin: 1.2rem 0 1.3rem;
}

.section-head h1,
.section-head h2 {
  margin: 0;
}

.archive-intro {
  margin: 1.2rem 0 1.3rem;
  background: var(--md-sys-color-surface-elevated);
  border: 1px solid var(--mh-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 1rem 1.1rem;
}

.archive-intro h1 {
  margin: 0 0 0.45rem;
}

.archive-intro__eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 700;
}

.archive-intro__description p {
  margin: 0.25rem 0 0;
  color: var(--md-sys-color-on-surface-variant);
}

.archive-intro--author {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.archive-intro__avatar-wrap {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--md-sys-color-surface-container);
}

.archive-intro__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-intro__social {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.archive-intro__social a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--mh-border-heavy);
  padding: 0.28rem 0.72rem;
  color: var(--md-sys-color-on-surface);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.archive-intro__social a:hover {
  text-decoration: none;
  background: var(--md-sys-color-surface-container);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-list-item {
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0, 70%);
  min-height: 210px;
  background: var(--md-sys-color-surface-elevated);
  border: 1px solid var(--mh-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.45s ease;
}

.post-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.post-list-item__media {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--md-sys-color-surface-container);
}

.post-list-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list-item__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.2rem;
  padding: 1.05rem 1.2rem 1.2rem;
}

.post-list-item__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--md-sys-color-on-surface-variant);
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-list-item__title {
  font-size: clamp(1.18rem, 2.5vw, 1.5rem);
  margin: 0;
}

.post-list-item__excerpt {
  margin: 0.2rem 0 0;
  color: var(--md-sys-color-on-surface-variant);
}

.post-list-item--empty {
  display: block;
  min-height: 0;
}

.post-list-item--empty .post-list-item__content {
  padding: 1.25rem;
}

.article-shell {
  background: var(--md-sys-color-surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mh-border-soft);
  box-shadow: var(--shadow-1);
  padding: clamp(1rem, 2vw, 2rem);
}

.article-shell--centered {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.article-shell__meta {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.post-meta__category {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.56rem;
  background: var(--mh-category-pill-bg);
  color: var(--mh-category-pill-text);
  font-weight: 700;
  text-decoration: none;
}

.post-meta__category:hover {
  text-decoration: none;
  background: var(--mh-category-pill-bg-hover);
}

.post-meta__sep {
  color: var(--mh-meta-separator);
}

.post-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--md-sys-color-on-surface-variant);
}

.post-meta__author a {
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
  text-decoration: none;
}

.post-meta__author a:hover {
  color: var(--mh-link-hover);
  text-decoration: none;
}

.article-shell__media {
  margin: 1rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-shell--single {
  padding: 0;
  overflow: hidden;
}

.article-shell--single .article-shell__media {
  margin: 0;
  border-radius: 0;
}

.article-shell__body {
  padding: clamp(1rem, 2vw, 2rem);
}

.article-shell__intro {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mh-border-soft);
  background: var(--mh-intro-gradient);
}

.article-shell__intro > h1 {
  margin-bottom: 0.45rem;
}

.article-shell__intro > .article-shell__meta {
  margin-bottom: 0;
}

.article-shell--single .article-shell__body {
  padding: 0;
}

.article-shell--single .article-shell__intro {
  margin: 0;
  padding: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.article-shell--single .breadcrumb-trail {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  padding: 0.85rem clamp(1rem, 2vw, 2rem) 0;
}

.article-shell--single .article-shell__intro > h1 {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0.45rem;
  padding: 0.95rem clamp(1rem, 2vw, 2rem) 0;
}

.article-shell--single .article-shell__intro > .article-shell__meta {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  padding: 0.1rem clamp(1rem, 2vw, 2rem) 0.95rem;
}

.post-share {
  padding: 0 clamp(1rem, 2vw, 2rem) 1rem;
}

.post-share__button {
  gap: 0.38rem;
}

.article-shell--single .article-shell__content {
  padding: 1rem clamp(1rem, 2vw, 2rem) 1.25rem;
}

.article-shell--single .article-shell__content > img,
.article-shell--single .article-shell__content figure,
.article-shell--single .article-shell__content .wp-block-image {
  margin-left: calc(-1 * clamp(1rem, 2vw, 2rem));
  margin-right: calc(-1 * clamp(1rem, 2vw, 2rem));
}

.article-shell--single .article-shell__content > img,
.article-shell--single .article-shell__content figure img,
.article-shell--single .article-shell__content .wp-block-image img {
  width: calc(100% + clamp(1rem, 2vw, 2rem) + clamp(1rem, 2vw, 2rem));
  max-width: none;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0 0 0.55rem;
}

.breadcrumb-trail__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-trail__sep {
  opacity: 0.7;
}

.breadcrumb-trail a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

.article-shell__content > *:first-child {
  margin-top: 0;
}

.article-shell__content * {
  overflow-wrap: anywhere;
}

.article-shell__content h2,
.article-shell__content h3,
.article-shell__content h4 {
  margin-top: 1.2rem;
}

.article-shell__content ul,
.article-shell__content ol {
  padding-left: 1.25rem;
}

.article-shell__content li {
  margin-bottom: 0.35rem;
}

.post-toc {
  margin: 0 0 1rem;
  border: 1px solid var(--mh-border-soft);
  border-radius: var(--radius-sm);
  background: var(--md-sys-color-surface-elevated);
  overflow: hidden;
}

.post-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.96rem;
  background: var(--md-sys-color-surface-container);
}

.post-toc__summary::-webkit-details-marker {
  display: none;
}

.post-toc__summary::after {
  content: 'Expand';
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-sys-color-on-surface-variant);
}

.post-toc[open] .post-toc__summary::after {
  content: 'Collapse';
}

.post-toc__body {
  padding: 0.82rem 1rem 0.95rem;
}

.post-toc__list,
.post-toc__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-toc__item {
  margin: 0;
}

.post-toc__item + .post-toc__item {
  margin-top: 0.32rem;
}

.post-toc__sublist {
  margin: 0.32rem 0 0.2rem 0.9rem;
  padding-left: 0.78rem;
  border-left: 1px solid var(--mh-border-soft);
}

.post-toc__sublist .post-toc__item + .post-toc__item {
  margin-top: 0.27rem;
}

.post-toc__link {
  display: inline-block;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  line-height: 1.35;
}

.post-toc__link:hover {
  color: var(--mh-link-hover);
  text-decoration: none;
}

.article-shell__content .post-toc__link,
.article-shell__content .post-toc__link:hover {
  text-decoration: none;
}

.article-shell__content blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--md-sys-color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--mh-blockquote-bg);
}

.article-shell__content pre {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--mh-code-bg);
  color: var(--mh-code-text);
  overflow-x: auto;
}

.article-shell__content code {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.article-shell__content :not(pre) > code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--md-sys-color-surface-container);
}

.article-shell__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border: 1px solid var(--mh-border-strong-alt);
}

.article-shell__content th,
.article-shell__content td {
  border: 1px solid var(--mh-border-strong);
  padding: 0.58rem 0.7rem;
  text-align: left;
}

.article-shell__content thead th {
  background: var(--md-sys-color-surface-container);
}

.article-shell__content figure {
  margin: 1rem 0;
}

.article-shell__content figcaption {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.88rem;
  margin-top: 0.45rem;
  padding-left: clamp(0.75rem, 1.4vw, 1.25rem);
  padding-right: clamp(0.75rem, 1.4vw, 1.25rem);
}

.article-shell__content .wp-caption-text {
  padding-left: clamp(0.75rem, 1.4vw, 1.25rem);
  padding-right: clamp(0.75rem, 1.4vw, 1.25rem);
}

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

.article-shell__content a:hover {
  color: var(--mh-link-hover);
  text-decoration: none;
}

.author-box {
  margin-top: 1rem;
  margin-bottom: 1rem;
  background: var(--md-sys-color-surface-elevated);
  border: 1px solid var(--mh-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 1rem;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.author-box__avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--md-sys-color-surface-container);
}

.author-box__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box__eyebrow {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 700;
}

.author-box__name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.author-box__bio {
  margin: 0 0 0.6rem;
  color: var(--md-sys-color-on-surface-variant);
}

.author-box__link {
  font-weight: 700;
  text-decoration: none;
}

.author-box__link:hover {
  color: var(--mh-link-hover);
  text-decoration: none;
}

.article-shell__footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mh-border-medium);
}

.pagination-wrap {
  margin-top: 1.25rem;
}

.load-more-wrap {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.js-load-more[disabled] {
  opacity: 0.75;
  cursor: progress;
}

html.js .pagination-wrap--fallback {
  display: none;
}

.nav-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--mh-border-heavier);
  background: var(--mh-pagination-bg);
  color: var(--md-sys-color-on-surface);
  padding: 0 0.65rem;
}

.nav-links .page-numbers.current {
  background: var(--md-sys-color-primary);
  color: var(--mh-pagination-current-text);
  border-color: var(--md-sys-color-primary);
}

.search-form {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.search-form label {
  flex: 1 1 260px;
  min-width: 0;
}

.search-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid var(--mh-border-heaviest);
  background: var(--md-sys-color-surface-elevated);
  color: var(--md-sys-color-on-surface);
  padding: 0.7rem 1rem;
  font: inherit;
}

.comments-shell {
  margin-top: 1.4rem;
  background: var(--md-sys-color-surface-elevated);
  border: 1px solid var(--mh-border-soft);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.comment-list {
  padding-left: 1rem;
}

.comment-body {
  margin-bottom: 0.8rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--mh-border-strong-alt);
  background: var(--mh-footer-bg);
}

.site-footer__inner {
  padding: 1.7rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.site-footer__text {
  margin: 0.25rem 0 0;
  color: var(--md-sys-color-on-surface-variant);
}

.site-footer__meta {
  padding: 0.95rem 0 1.3rem;
  border-top: 1px solid var(--mh-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-footer__meta p {
  margin: 0;
}

@supports (content-visibility: auto) {
  .post-list-item,
  .featured-post-card,
  .site-sidebar .widget {
    content-visibility: auto;
    contain-intrinsic-size: 1px 320px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
  }

  .post-list-item {
    grid-template-columns: minmax(170px, 30%) minmax(0, 70%);
  }

  .featured-post-card {
    grid-column: span 6;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .theme-toggle {
    padding: 0 0.58rem;
  }

  .main-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    left: 4vw;
    background: var(--mh-nav-mobile-bg);
    border-radius: 16px;
    border: 1px solid var(--mh-border-strong-alt);
    box-shadow: var(--shadow-2);
    padding: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .main-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-navigation .menu-list,
  .main-navigation .menu-fallback {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }

  .main-navigation a,
  .menu-fallback a {
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
  }

  .post-list-item {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .featured-post-card {
    grid-column: span 12;
  }

  .archive-intro--author {
    grid-template-columns: 1fr;
  }

  .archive-intro__avatar-wrap {
    width: 88px;
    height: 88px;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .author-box__avatar {
    width: 72px;
    height: 72px;
  }

  .post-list-item__media {
    aspect-ratio: 16 / 9;
  }

  .post-list-item__content {
    padding: 0.95rem 1rem 1.15rem;
  }

  .post-toc__summary {
    padding: 0.68rem 0.85rem;
  }

  .post-toc__body {
    padding: 0.7rem 0.85rem 0.86rem;
  }

  .hero__actions,
  .section-head,
  .site-footer__meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .theme-toggle {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .theme-toggle__label {
    display: none;
  }
}
