/* Reusable editorial skin for editable WordPress content */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-v51-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-v51-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-v51-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-900.woff2') format('woff2');
}

:root {
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --color-shell: #ffffff;
  --color-shell-elevated: #f8fafc;
  --color-footer: #0b1720;
  --color-footer-text: #d5dee5;

  --color-bg: #f5f7f9;
  --color-surface: #ffffff;
  --color-surface-elevated: #f8fafc;
  --color-surface-soft: #eef3f6;
  --color-surface-muted: #e5ebef;

  --color-heading: #111820;
  --color-text: #34424d;
  --color-text-secondary: #566672;
  --color-muted: #667783;

  --color-primary: #0077b6;
  --color-primary-hover: #005f8f;
  --color-secondary: #00a8e8;
  --color-success: #4f8a35;

  --color-on-primary: #ffffff;
  --color-on-dark: #ffffff;

  --color-border: #d7e0e7;
  --color-border-strong: #bac8d2;
  --color-control-border: #aab8c2;

  --color-article-bg: var(--color-surface);
  --color-article-heading: var(--color-heading);
  --color-article-text: var(--color-text);
  --color-article-muted: var(--color-muted);
  --color-article-border: var(--color-border);

  --color-surface-light: var(--color-surface-soft);
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-primary-hover);
  --color-accent: var(--color-primary);
  --color-button: var(--color-primary);
  --color-button-hover: var(--color-primary-hover);
  --color-button-text: var(--color-on-dark);
  --color-primary-dark: var(--color-primary-hover);
  --color-primary-soft: var(--color-surface-muted);
  --color-focus: var(--color-accent);
  --color-dark: var(--color-footer);
  --color-light-gray: var(--color-surface-soft);
  --color-soft-gray: var(--color-surface-elevated);
  --color-text-light: var(--color-text-secondary);
  --color-white: var(--color-on-dark);
  --color-card-bg: var(--color-surface);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  --shadow-sm: 0 1px 3px rgb(17 24 32 / 0.06);
  --shadow-md: 0 8px 24px rgb(17 24 32 / 0.08);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 80rem;
  --content: 58rem;
  --header-height: 4rem;
  --header-logo-height: 42px;
  --footer-logo-height: 37px;
  --transition-fast: 160ms ease;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-height) + var(--space-2));
  /* Guard against sub-pixel/scrollbar overflow from alignfull's 50vw margins; clip keeps position: sticky working, unlike hidden. */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  --color-focus: var(--color-primary);

  margin: 0;
  overflow-wrap: break-word;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

a {
  color: var(--color-link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), opacity var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.site-header,
.site-footer,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-dark,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-green,
:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-comparison > .wp-block-column:first-child,
:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-stats > .wp-block-column,
:is(.entry-content, .editor-styles-wrapper) table th {
  --color-focus: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-3);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);
}

h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
}

h4,
h5,
h6 {
  font-size: 1rem;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

ul,
ol {
  padding-left: 1.35em;
}

li + li {
  margin-top: var(--space-1);
}

.container {
  width: min(100% - 4rem, var(--container));
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
  padding-block: var(--space-5) var(--space-6);
  background: var(--color-bg);
}

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

.skip-link:focus {
  position: fixed !important;
  z-index: 1000;
  top: var(--space-2);
  left: var(--space-2);
  width: auto;
  height: auto;
  padding: var(--space-1) var(--space-2);
  clip: auto;
  border-radius: var(--radius);
  color: var(--color-button-text);
  background: var(--color-button);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--color-heading);
  background: var(--color-shell);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
  padding-block: 0.7rem;
}

.site-branding {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.site-title-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--color-heading);
  text-decoration: none;
}

.site-logo {
  display: block;
  width: auto;
  height: var(--header-logo-height);
  max-width: min(22rem, 50vw);
  object-fit: contain;
}

.site-title {
  display: block;
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.site-title-link:hover .site-title,
.site-title-link:focus-visible .site-title {
  color: var(--color-primary);
}

.site-title-link:hover .site-logo,
.site-title-link:focus-visible .site-logo {
  opacity: 0.9;
}

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

.site-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation > ul,
.site-navigation .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.site-navigation li {
  position: relative;
  margin: 0;
}

.site-navigation a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--color-heading);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation .current-menu-item > a,
.site-navigation .current-menu-ancestor > a {
  color: var(--color-primary);
}

.site-navigation > ul > li:not(.menu-item-button):not(.menu-item-button-outline) > a,
.site-navigation .menu > li:not(.menu-item-button):not(.menu-item-button-outline) > a {
  padding-inline: 0.65rem;
  border-radius: var(--radius-sm);
}

.site-navigation > ul > li:not(.menu-item-button):not(.menu-item-button-outline) > a:hover,
.site-navigation > ul > li:not(.menu-item-button):not(.menu-item-button-outline) > a:focus-visible,
.site-navigation .menu > li:not(.menu-item-button):not(.menu-item-button-outline) > a:hover,
.site-navigation .menu > li:not(.menu-item-button):not(.menu-item-button-outline) > a:focus-visible {
  background: var(--color-surface-soft);
}

.site-navigation .current-menu-item > a,
.site-navigation .current-menu-ancestor > a {
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.site-navigation .menu-item-button-outline > a,
.site-navigation .menu-item-button > a {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.site-navigation .menu-item-button-outline > a {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.site-navigation .menu-item-button-outline > a:hover,
.site-navigation .menu-item-button-outline > a:focus-visible {
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  background: var(--color-surface-soft);
}

.site-navigation .menu-item-button > a {
  border: 1px solid var(--color-button);
  color: var(--color-on-primary);
  background: var(--color-button);
}

.site-navigation .menu-item-button > a:hover,
.site-navigation .menu-item-button > a:focus-visible {
  color: var(--color-on-primary);
  background: var(--color-button-hover);
  border-color: var(--color-button-hover);
}

.site-navigation .menu-item-has-children > a::after {
  width: 0.4rem;
  height: 0.4rem;
  flex: 0 0 auto;
  margin-left: var(--space-1);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-0.12rem) rotate(45deg);
}

.site-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 110;
  display: block;
  min-width: 13rem;
  padding: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-0.25rem);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.site-navigation .sub-menu .sub-menu {
  top: calc(-1 * var(--space-1));
  left: 100%;
}

.site-navigation .sub-menu a {
  width: 100%;
  min-height: 2.3rem;
  padding: 0.5rem var(--space-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.site-navigation .sub-menu li:not(.menu-item-button):not(.menu-item-button-outline) > a:hover,
.site-navigation .sub-menu li:not(.menu-item-button):not(.menu-item-button-outline) > a:focus-visible {
  color: var(--color-primary);
  background: var(--color-surface-soft);
}

.site-navigation li:hover > .sub-menu,
.site-navigation li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-heading);
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible,
.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--color-accent);
  color: var(--color-heading);
  background: var(--color-shell-elevated);
}

.mobile-menu-icon {
  display: none;
  width: 1.25rem;
  gap: 0.25rem;
}

.mobile-menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-1);
}

.header-search-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--color-heading);
  background: transparent;
  cursor: pointer;
  box-shadow: none;
}

.header-search-toggle:hover,
.header-search-toggle:focus-visible,
.header-search-toggle[aria-expanded="true"] {
  border-color: var(--color-border);
  color: var(--color-heading);
  background: var(--color-surface-soft);
  box-shadow: none;
}

.header-search-icon {
  flex: 0 0 auto;
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 130;
  width: min(24rem, 100%);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.header-search-panel[hidden] {
  display: none;
}

.header-search-panel .search-form {
  max-width: none;
}

/* Content */
.site-main > .container,
.entry-content,
.editor-styles-wrapper,
.page-content,
.page-header,
.entry-header {
  max-width: var(--container);
  margin-inline: auto;
}

.editor-styles-wrapper {
  color: var(--color-text);
  background: var(--color-article-bg);
  font-family: var(--font-body);
}

/* Keep long-form essays in a contained reading surface. */
body.single-post .site-main article,
body.page:not(.home) .site-main article {
  --color-heading: var(--color-article-heading);
  --color-text: var(--color-article-text);
  --color-muted: var(--color-article-muted);
  --color-text-light: var(--color-article-muted);
  --color-surface: var(--color-article-bg);
  --color-light-gray: var(--color-surface-soft);
  --color-soft-gray: var(--color-surface-elevated);
  --color-border: var(--color-article-border);

  padding: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid var(--color-article-border);
  border-radius: var(--radius-lg);
  color: var(--color-article-text);
  background: var(--color-article-bg);
  box-shadow: var(--shadow-md);
}

.page-header,
.entry-header {
  margin-bottom: var(--space-4);
}

.archive-description,
.entry-meta {
  color: var(--color-text-light);
}

.entry-meta {
  margin-top: calc(-1 * var(--space-2));
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
}

.post-thumbnail {
  margin-top: var(--space-4);
}

.post-thumbnail img {
  width: 100%;
  border-radius: var(--radius);
}

.site-main .entry-content > h1:first-child,
.site-main .page-title,
.site-main .entry-title {
  max-width: var(--container);
  margin-bottom: var(--space-3);
  color: var(--color-heading);
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);
  line-height: 1.2;
  text-wrap: normal;
}

.entry-content > :where(p, h2, h3, h4, h5, h6, ul, ol, blockquote, details),
.page-content > :where(p, h2, h3, h4, h5, h6, ul, ol, blockquote, details) {
  max-width: 100%;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.entry-content > :last-child,
.page-content > :last-child {
  margin-bottom: 0;
}

.entry-content > h1:first-child + p,
.entry-content > .page-title + p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

:where(.site-main [id]) {
  scroll-margin-top: calc(var(--header-height) + var(--space-2));
}

.admin-bar :where(.site-main [id]):target {
  scroll-margin-top: calc(var(--header-height) + 32px + var(--space-2));
}

:is(.entry-content, .editor-styles-wrapper) :where(h2, h3, h4, h5, h6) {
  margin-top: var(--space-5);
}

:is(.entry-content, .editor-styles-wrapper) h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 2rem);
}

:is(.entry-content, .editor-styles-wrapper) p,
:is(.entry-content, .editor-styles-wrapper) li,
.page-content p,
.page-content li {
  color: var(--color-text);
  line-height: 1.7;
}



:is(.entry-content, .editor-styles-wrapper) .is-style-section-heading {
  position: relative;
  padding-top: var(--space-2);
}

:is(.entry-content, .editor-styles-wrapper) .is-style-section-heading::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--color-accent);
  content: "";
}

:is(.entry-content, .editor-styles-wrapper) a:not(.wp-block-button__link):not(.button):not(.btn-primary),
.page-content a:not(.wp-block-button__link):not(.button):not(.btn-primary) {
  color: var(--color-link);
  font-weight: 500;
}

:is(.entry-content, .editor-styles-wrapper) figure {
  max-width: 100%;
  margin-inline: 0;
}

:is(.entry-content, .editor-styles-wrapper) img {
  border-radius: var(--radius);
}

:is(.entry-content, .editor-styles-wrapper) figcaption,
.wp-caption-text {
  margin-top: var(--space-1);
  color: var(--color-text-light);
  font-size: 0.875rem;
}

button,
.button,
.btn-primary,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--color-button);
  border-radius: var(--radius);
  color: var(--color-on-primary);
  background: var(--color-button);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

button:hover,
.button:hover,
.btn-primary:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
  color: var(--color-on-primary);
  background: var(--color-button-hover);
  border-color: var(--color-button-hover);
  box-shadow: var(--shadow-md);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-control-border);
  border-radius: var(--radius);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-link);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-link) 18%, transparent);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Gutenberg blocks: editors recreate the static layout here */
:is(.entry-content, .editor-styles-wrapper) .wp-block-group {
  max-width: var(--container);
  margin-block: var(--space-5);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.has-background,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-card,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-soft,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-notice,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-warning,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-dark,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-green {
  max-width: var(--container);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.has-background,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-card {
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  box-shadow: var(--shadow-sm);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-soft {
  padding-block: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-light-gray);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-notice {
  padding: var(--space-4);
  border-left: 4px solid var(--color-button);
  border-radius: var(--radius);
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow-sm);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-warning {
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-light-gray);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-dark {
  padding-block: var(--space-6);
  border-radius: var(--radius-lg);
  color: var(--color-on-dark);
  background: var(--color-dark);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-green {
  padding-block: var(--space-6);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  background: var(--color-surface-elevated);
  text-align: center;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-green :where(h1, h2, h3) {
  font-family: var(--font-heading);
  font-weight: 900;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-green h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 2rem);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-green p {
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
  opacity: 0.9;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-dark :where(h1, h2, h3, h4, h5, h6, p, li),
:is(.entry-content, .editor-styles-wrapper) .wp-block-group.has-background.has-dark-background-color :where(h1, h2, h3, h4, h5, h6, p, li) {
  color: var(--color-on-dark);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group > :first-child {
  margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group > :last-child {
  margin-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) p.is-style-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: var(--space-2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  background: var(--color-surface);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns {
  max-width: var(--container);
  gap: var(--space-4);
  margin-block: var(--space-5);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-hero {
  align-items: flex-start;
  gap: var(--space-5);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-hero > .wp-block-column:first-child {
  flex-basis: 66.666% !important;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-hero > .wp-block-column:last-child {
  flex-basis: 33.333% !important;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-comparison > .wp-block-column {
  padding: var(--space-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-comparison > .wp-block-column:first-child {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-comparison > .wp-block-column:last-child {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-primary-soft);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-stats {
  gap: var(--space-4);
  color: var(--color-text);
  text-align: center;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-stats > .wp-block-column {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-stats :where(h2, h3, h4) {
  margin-bottom: var(--space-1);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-stats p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-column {
  min-width: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-cards > .wp-block-column {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card-bg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-cards > .wp-block-column h3,
:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-cards > .wp-block-column h4 {
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-cards
  > .wp-block-column
  :where(h2, h3, h4, h5, h6),
:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-stats
  > .wp-block-column
  :where(h2, h3, h4, h5, h6) {
  margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-cards > .wp-block-column p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

:is(.entry-content, .editor-styles-wrapper) blockquote,
.wp-block-quote {
  margin-inline: 0;
  padding: var(--space-4);
  border: 0;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-text-light);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

:is(.entry-content, .editor-styles-wrapper) blockquote p,
.wp-block-quote p {
  color: var(--color-muted);
  font-style: italic;
}

:is(.entry-content, .editor-styles-wrapper) cite {
  color: var(--color-muted);
  font-size: 0.875rem;
}

:is(.entry-content, .editor-styles-wrapper) hr,
:is(.entry-content, .editor-styles-wrapper) .wp-block-separator {
  width: 100%;
  height: 1px;
  margin: var(--space-5) 0;
  border: 0;
  background: var(--color-border);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details,
:is(.entry-content, .editor-styles-wrapper) details {
  max-width: 100%;
  margin-block: var(--space-3);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details summary,
:is(.entry-content, .editor-styles-wrapper) details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details summary:hover,
:is(.entry-content, .editor-styles-wrapper) .wp-block-details summary:focus-visible,
:is(.entry-content, .editor-styles-wrapper) details summary:hover,
:is(.entry-content, .editor-styles-wrapper) details summary:focus-visible {
  background: var(--color-light-gray);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details summary::-webkit-details-marker,
:is(.entry-content, .editor-styles-wrapper) details summary::-webkit-details-marker {
  display: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details summary::after,
:is(.entry-content, .editor-styles-wrapper) details summary::after {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1;
  content: "+";
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details[open] summary,
:is(.entry-content, .editor-styles-wrapper) details[open] summary {
  border-bottom: 0;
  background: var(--color-light-gray);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details[open] summary::after,
:is(.entry-content, .editor-styles-wrapper) details[open] summary::after {
  content: "\2212";
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details > *:not(summary),
:is(.entry-content, .editor-styles-wrapper) details > *:not(summary) {
  margin-inline: var(--space-3);
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details > :last-child,
:is(.entry-content, .editor-styles-wrapper) details > :last-child {
  margin-bottom: var(--space-3);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--color-primary);
  background: transparent;
  border-color: var(--color-primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: var(--color-on-primary);
  background: var(--color-primary-dark);
}
.wp-block-buttons {
  gap: var(--space-2);
}



.wp-block-latest-posts,
.wp-block-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: var(--container);
  padding-left: 0;
  list-style: none;
}

.wp-block-latest-posts li,
.wp-block-query .wp-block-post {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card-bg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.wp-block-latest-posts a,
.wp-block-query .wp-block-post-title a {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 900;
  text-decoration: none;
}

.wp-block-latest-posts a:hover,
.wp-block-query .wp-block-post-title a:hover {
  color: var(--color-link);
}

.wp-block-latest-posts__post-date,
.wp-block-post-date {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-light);
  font-size: 0.84rem;
}

/* Tables */
.entry-content .wp-block-table,
.editor-styles-wrapper .wp-block-table {
  width: 100%;
  max-width: var(--container);
  margin: var(--space-4) 0;
  overflow-x: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.entry-content .wp-block-table table,
.entry-content > table,
.editor-styles-wrapper .wp-block-table table,
.editor-styles-wrapper > table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--color-text);
  background: var(--color-surface);
}

.entry-content > table,
.editor-styles-wrapper > table {
  display: table;
  max-width: var(--container);
  margin: var(--space-4) 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.entry-content table th,
.entry-content table td,
.editor-styles-wrapper table th,
.editor-styles-wrapper table td {
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-align: left;
  vertical-align: top;
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content table th,
.editor-styles-wrapper table th {
  color: var(--color-on-dark);
  background: var(--color-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.entry-content table thead,
.editor-styles-wrapper table thead {
  border: 0;
  color: var(--color-on-dark);
  background: var(--color-dark);
}

.entry-content table tbody tr,
.editor-styles-wrapper table tbody tr,
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: transparent;
}

.entry-content table tbody td,
.editor-styles-wrapper table tbody td {
  background: var(--color-surface);
}

.entry-content table tbody tr:nth-child(even) td,
.editor-styles-wrapper table tbody tr:nth-child(even) td {
  background: var(--color-surface-elevated);
}

.editor-styles-wrapper table tbody tr:hover td,
.entry-content table tbody tr:hover td {
  background: var(--color-surface-soft);
}

.entry-content table tbody tr:last-child td,
.editor-styles-wrapper table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-content table thead th:first-child,
.editor-styles-wrapper table thead th:first-child {
  border-top-left-radius: calc(var(--radius-lg) - 1px);
}

.entry-content table thead th:last-child,
.editor-styles-wrapper table thead th:last-child {
  border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.entry-content table tbody tr:last-child td:first-child,
.editor-styles-wrapper table tbody tr:last-child td:first-child {
  border-bottom-left-radius: calc(var(--radius-lg) - 1px);
}

.entry-content table tbody tr:last-child td:last-child,
.editor-styles-wrapper table tbody tr:last-child td:last-child {
  border-bottom-right-radius: calc(var(--radius-lg) - 1px);
}

.entry-content table :where(button, .button, .btn-primary, .wp-block-button__link),
.editor-styles-wrapper table :where(button, .button, .btn-primary, .wp-block-button__link) {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Archive, blog, and search cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: var(--space-4);
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card-bg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.post-card:hover,
.wp-block-latest-posts li:hover,
.wp-block-query .wp-block-post:hover,
:is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-cards > .wp-block-column:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-image-link,
.post-card-image {
  display: block;
  overflow: hidden;
  background: var(--color-light-gray);
}

.post-card-image-link img,
.post-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-3);
}

.post-card-title {
  margin-bottom: var(--space-1);
  font-size: 1.35rem;
  text-wrap: balance;
}

.post-card-title a {
  color: var(--color-heading);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-primary);
}

.post-card-meta {
  order: -1;
  margin-bottom: var(--space-1);
  color: var(--color-text-light);
  font-size: 0.84rem;
  font-weight: 500;
}

.post-card-excerpt {
  flex: 1;
  color: var(--color-text-light);
}

.post-card-excerpt > :last-child {
  margin-bottom: var(--space-2);
}

.read-more-link {
  align-self: flex-start;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.read-more-link::after {
  margin-left: var(--space-1);
  content: "\2192";
}

/* Pagination and adjacent posts */
.pagination {
  margin-top: var(--space-5);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
}

.page-numbers {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  background: var(--color-surface);
  text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
  border-color: var(--color-button);
  color: var(--color-on-primary);
  background: var(--color-button);
}

.post-navigation {
  max-width: var(--content);
  margin: var(--space-5) auto 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.nav-next {
  text-align: right;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  text-decoration: none;
}

.post-navigation a:hover {
  color: var(--color-primary);
}

.nav-subtitle {
  margin-bottom: var(--space-1);
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-title {
  font-weight: 700;
}

.page-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.search-form {
  display: flex;
  max-width: 36rem;
  gap: var(--space-1);
}

.search-form label {
  flex: 1;
}

.error-404 {
  max-width: 42rem;
  padding-block: var(--space-6);
  text-align: center;
}

.error-404 .page-content {
  color: var(--color-text-light);
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding-top: 0;
  color: var(--color-footer-text);
  background: var(--color-footer);
}

.site-footer p {
  color: var(--color-footer-text);
}

.site-footer a {
  color: var(--color-footer-text);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-secondary);
}

.footer-main {
  border-bottom: 0;
}

.footer-main-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-4);
  align-items: start;
  padding-block: var(--space-5) var(--space-4);
}

.footer-main-inner-compact {
  grid-template-columns: 1fr;
  padding-block: var(--space-4);
}

.footer-column-title {
  margin: 0 0 var(--space-2);
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.footer-brand-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--space-2);
  text-decoration: none;
}

.footer-brand-text {
  display: block;
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.footer-logo {
  display: block;
  width: auto;
  height: var(--footer-logo-height);
  max-width: min(18rem, 100%);
  object-fit: contain;
}

.footer-brand-link:hover,
.footer-brand-link:focus-visible {
  opacity: 0.9;
}

.footer-about-text {
  max-width: 26rem;
  margin: 0;
  color: var(--color-footer-text);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.6;
}

.footer-menu-list {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu-list li {
  margin: 0;
}

.footer-menu-list a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--color-footer-text);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
}

.footer-menu-list a:hover,
.footer-menu-list a:focus-visible {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.footer-menu-list .current-menu-item > a,
.footer-menu-list .current-menu-ancestor > a {
  color: var(--color-on-dark);
}

.footer-bottom {
  background: var(--color-footer);
}

.footer-bottom-inner {
  display: grid;
  align-items: center;
  justify-items: center;
  padding-top: var(--space-4);
  padding-bottom: var(--space-2);
  border-top: 1px solid rgb(255 255 255 / 0.14);
  border-color: color-mix(in srgb, var(--color-on-dark) 14%, transparent);
}

.footer-copy {
  margin: 0;
  color: var(--color-footer-text);
  font-size: 0.8rem;
  font-weight: 400;
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: var(--space-4);
}

.alignright {
  float: right;
  margin-left: var(--space-4);
}

.aligncenter {
  margin-right: auto;
  margin-left: auto;
}

.entry-content::after {
  display: table;
  clear: both;
  content: "";
}

@media (max-width: 980px) {
  .admin-bar .site-header {
    top: 32px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-menu-icon {
    display: grid;
  }

  #mobile-menu-panel,
  .site-header .site-navigation {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    z-index: 120;
    display: none;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 1rem);
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-shell);
    box-shadow: var(--shadow-md);
  }

  #mobile-menu-panel[aria-hidden="false"],
  .site-navigation[aria-hidden="false"] {
    display: block;
  }

  .site-header .site-navigation a:focus-visible {
    outline-offset: -3px;
  }

  .site-navigation > ul,
  .site-navigation .menu {
    display: block;
  }

  .site-navigation li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-navigation li:last-child {
    border-bottom: 0;
  }

  .site-navigation a {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.75rem var(--space-2);
  }

  .site-navigation .sub-menu {
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: var(--color-surface-elevated);
    transform: none;
  }

  .site-navigation .sub-menu a {
    padding-left: var(--space-4);
    white-space: normal;
  }

  .site-navigation .menu-item-has-children > a::after {
    display: none;
  }

  .wp-block-latest-posts,
  .wp-block-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-bar #mobile-menu-panel,
  .admin-bar .site-header .site-navigation {
    max-height: calc(100vh - var(--header-height) - 32px - 1rem);
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar :where(.site-main [id]):target {
    scroll-margin-top: calc(var(--header-height) + 46px + var(--space-2));
  }

  .admin-bar #mobile-menu-panel,
  .admin-bar .site-header .site-navigation {
    max-height: calc(100vh - var(--header-height) - 46px - 1rem);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .site-main {
    padding-block: var(--space-5);
  }

  .post-navigation .nav-links,
  .wp-block-latest-posts,
  .wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  :is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-hero > .wp-block-column:first-child,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-hero > .wp-block-column:last-child {
    flex-basis: 100% !important;
  }

  .nav-next {
    text-align: left;
  }

  .search-form {
    flex-direction: column;
  }

  .entry-content > table,
  .editor-styles-wrapper > table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .entry-content .wp-block-table table,
  .entry-content > table,
  .editor-styles-wrapper .wp-block-table table,
  .editor-styles-wrapper table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .entry-content table th,
  .entry-content table td,
  .editor-styles-wrapper table th,
  .editor-styles-wrapper table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  .alignleft,
  .alignright {
    float: none;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .footer-main-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: var(--space-2);
  }

  .site-logo {
    height: min(var(--header-logo-height), 32px);
    max-width: min(14rem, 55vw);
  }

  .footer-logo {
    height: min(var(--footer-logo-height), 30px);
  }

  :is(.entry-content, .editor-styles-wrapper) .wp-block-group.has-background,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-card,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-soft,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-notice,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-warning,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-dark,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-green,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-cards > .wp-block-column {
    padding: var(--space-3);
  }
}

.alignwide,
.entry-content :is(
  figure,
  table,
  blockquote,
  details,
  .wp-block-image,
  .wp-block-gallery,
  .wp-block-table,
  .wp-block-group,
  .wp-block-cover,
  .wp-block-columns,
  .wp-block-quote,
  .wp-block-details
).alignwide {
  width: min(100%, var(--container));
  max-width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.alignfull,
.entry-content :is(
  figure,
  table,
  blockquote,
  details,
  .wp-block-image,
  .wp-block-gallery,
  .wp-block-table,
  .wp-block-group,
  .wp-block-cover,
  .wp-block-columns,
  .wp-block-quote,
  .wp-block-details
).alignfull {
  width: auto;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

/* Keep alignment previews inside the constrained block-editor canvas. */
.editor-styles-wrapper .alignwide {
  width: min(100%, var(--container));
  max-width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.editor-styles-wrapper .alignfull {
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

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

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

  .post-card:hover,
  .wp-block-latest-posts li:hover,
  .wp-block-query .wp-block-post:hover,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-columns.is-style-cards > .wp-block-column:hover {
    transform: none;
  }
}

@media print {
  :root {
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #252a31;
    --color-muted: #6c675e;
    --color-border: #cdc6b9;
  }

  html {
    scroll-padding-top: 0;
  }

  body,
  .site-main {
    color: var(--color-text);
    background: #ffffff;
  }

  .site-header,
  .footer-main,
  .footer-bottom,
  .post-navigation,
  .pagination,
  .search-form,
  .skip-link {
    display: none !important;
  }

  .container,
  .entry-content,
  .page-content {
    width: 100%;
    max-width: none;
  }

  .site-main {
    min-height: 0;
    padding: 0;
  }

  .site-footer {
    color: var(--color-text);
    background: #ffffff;
  }

  :where(.post-card, .wp-block-group, .wp-block-column, .wp-block-table, blockquote, details) {
    box-shadow: none !important;
  }

  .entry-content table th,
  .entry-content .wp-block-table thead th {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-light-gray);
  }

  .entry-content .wp-block-table,
  .entry-content > table {
    overflow: visible;
  }

  a {
    color: var(--color-text);
    text-decoration: underline;
  }
}
