/**
 * DogExplained front-end styles.
 *
 * The theme intentionally uses no external font, icon, or framework dependency.
 */

:root {
  --de-background: #fbf9f6;
  --de-surface: #ffffff;
  --de-surface-low: #f5f3f0;
  --de-surface-container: #efeeeb;
  --de-surface-high: #eae8e5;
  --de-text: #1b1c1a;
  --de-text-muted: #434840;
  --de-outline: #73796f;
  --de-border: #e8e1d9;
  --de-primary: #334f2b;
  --de-primary-hover: #496640;
  --de-primary-container: #4a6741;
  --de-primary-soft: #f5f7f2;
  --de-secondary: #715a3f;
  --de-secondary-container: #fadab8;
  --de-error: #ba1a1a;
  --de-error-container: #ffdad6;
  --de-safe: #2e7d32;
  --de-safe-container: #e8f5e9;
  --de-caution: #a74724;
  --de-caution-container: #fff0e8;
  --de-font-heading: Georgia, "Times New Roman", Times, serif;
  --de-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --de-container: 1140px;
  --de-reading: 744px;
  --de-gutter: 24px;
  --de-mobile-gutter: 16px;
  --de-header-height: 80px;
  --de-section-gap: clamp(56px, 7vw, 80px);
  --de-radius-sm: 4px;
  --de-radius: 8px;
  --de-radius-lg: 12px;
  --de-shadow-soft: 0 4px 20px rgba(74, 103, 65, 0.05);
  --de-transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--de-header-height) + 24px);
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-wrap: break-word;
  background: var(--de-background);
  color: var(--de-text);
  font-family: var(--de-font-body);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.has-open-panel {
  overflow: hidden;
}

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

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

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

img {
  height: auto;
}

figure {
  margin: 0;
}

iframe {
  max-width: 100%;
}

a {
  color: var(--de-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--de-primary-hover);
  text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(51, 79, 43, 0.38);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--de-secondary-container);
  color: var(--de-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--de-text);
  font-family: var(--de-font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.5rem);
}

p,
ul,
ol,
blockquote {
  margin-top: 0;
}

hr {
  height: 1px;
  margin: var(--de-section-gap) 0;
  border: 0;
  background: var(--de-border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

th,
td {
  padding: 12px;
  border: 1px solid var(--de-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--de-surface-low);
  font-weight: 700;
}

label {
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(115, 121, 111, 0.45);
  border-radius: var(--de-radius);
  background: var(--de-surface);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input[type="search"] {
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--de-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(51, 79, 43, 0.14);
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto !important;
  clip-path: none;
  border-radius: var(--de-radius);
  background: var(--de-primary);
  color: #ffffff;
  font-weight: 700;
}

.skip-link {
  position: fixed;
}

.container,
.header-inner,
.footer-inner {
  width: min(calc(100% - (2 * var(--de-gutter))), var(--de-container));
  margin-inline: auto;
}

.narrow-container {
  width: min(calc(100% - (2 * var(--de-gutter))), 768px);
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
  padding-top: calc(var(--de-header-height) + var(--de-main-top-space, 0px));
}

.site-main > :first-child:not(.home-hero) {
  scroll-margin-top: calc(var(--de-header-height) + 24px);
}

.section,
.home-section {
  padding-block: var(--de-section-gap);
}

.section--muted,
.home-section--muted {
  background: var(--de-surface-low);
}

.button,
.wp-element-button,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--de-primary);
  border-radius: var(--de-radius);
  background: var(--de-primary);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--de-transition), border-color var(--de-transition), color var(--de-transition);
}

.button:hover,
.wp-element-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  border-color: var(--de-primary-hover);
  background: var(--de-primary-hover);
  color: #ffffff;
}

.button--secondary {
  background: transparent;
  color: var(--de-primary);
}

.button--secondary:hover {
  background: var(--de-primary);
  color: #ffffff;
}

.button--pill {
  border-radius: 999px;
}

.icon-button,
.menu-toggle,
.search-toggle,
.panel-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--de-primary);
}

.icon-button:hover,
.menu-toggle:hover,
.search-toggle:hover,
.panel-close:hover {
  background: var(--de-surface-low);
}

.icon-button svg,
.menu-toggle svg,
.search-toggle svg,
.panel-close svg,
.de-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* WordPress content alignment and media helpers. */
.alignwide {
  width: min(100%, var(--de-container));
  max-width: var(--de-container);
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption,
.wp-block-image {
  max-width: 100%;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
  margin-top: 8px;
  color: var(--de-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.wp-block-image img,
.wp-post-image {
  border-radius: var(--de-radius);
}

.wp-block-embed__wrapper {
  position: relative;
  width: 100%;
}

/* Header and overlay navigation. */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--de-header-height);
  border-bottom: 1px solid rgba(115, 121, 111, 0.22);
  background: rgba(251, 249, 246, 0.98);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  align-items: center;
  color: var(--de-primary);
  font-family: var(--de-font-heading);
  font-size: clamp(2rem, 3.75vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.site-brand:hover {
  color: var(--de-primary);
  opacity: 0.88;
  text-decoration: none;
}

.site-brand img,
.custom-logo {
  width: auto;
  max-height: 52px;
}

.site-brand__tagline {
  display: none;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul,
.primary-nav .menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.primary-nav li {
  margin: 0;
}

.primary-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--de-text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color var(--de-transition), color var(--de-transition);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-category-ancestor > a,
.primary-nav .current-post-ancestor > a {
  border-bottom-color: var(--de-primary);
  color: var(--de-primary);
}

.primary-nav .current-menu-item > a,
.primary-nav .current-category-ancestor > a,
.primary-nav .current-post-ancestor > a {
  font-weight: 700;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.menu-toggle {
  display: none;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

.mobile-panel,
.search-panel {
  position: fixed;
  z-index: 990;
  top: var(--de-header-height);
  right: 0;
  left: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--de-border);
  background: var(--de-background);
}

.mobile-panel {
  bottom: 0;
  padding: 24px 0 48px;
}

.mobile-panel ul,
.mobile-panel .menu {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-panel li {
  border-bottom: 1px solid var(--de-border);
}

.mobile-panel a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  color: var(--de-text);
  font-family: var(--de-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-panel .current-menu-item > a {
  color: var(--de-primary);
}

.search-panel {
  padding: 28px 0 32px;
  box-shadow: var(--de-shadow-soft);
}

.search-panel__inner {
  position: relative;
  width: min(100%, 720px);
  margin-inline: auto;
}

.search-panel .search-form,
.site-search-form {
  display: flex;
  gap: 8px;
}

.search-panel .search-field {
  min-width: 0;
  flex: 1;
}

.search-panel .panel-close {
  position: absolute;
  top: -22px;
  right: -54px;
}

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

body.admin-bar .mobile-panel,
body.admin-bar .search-panel {
  top: calc(var(--de-header-height) + 32px);
}

body.admin-bar .site-main {
  padding-top: calc(var(--de-header-height) + var(--de-main-top-space, 0px) + 32px);
}

/* Breadcrumbs. */
.breadcrumbs {
  margin: 0 0 32px;
  color: var(--de-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.breadcrumbs ol,
.breadcrumbs ul {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 8px;
  list-style: none;
}

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

.breadcrumbs li:not(:last-child)::after {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs [aria-current="page"] {
  color: var(--de-primary);
}

.breadcrumbs [aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Homepage. */
.home-hero {
  padding: clamp(64px, 7.5vw, 88px) 0 clamp(64px, 7.5vw, 88px);
  text-align: center;
}

.home-hero__inner {
  width: min(calc(100% - (2 * var(--de-gutter))), 768px);
  margin-inline: auto;
}

.home-hero h1,
.home-hero__title {
  color: var(--de-primary);
  font-size: clamp(2.35rem, 5vw, 3rem);
  line-height: 1.16;
}

.home-hero__intro {
  max-width: 700px;
  margin: 22px auto 0;
  color: var(--de-text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.home-search {
  position: relative;
  width: min(100%, 672px);
  margin: 32px auto 0;
}

.home-search form,
.home-search__form {
  position: relative;
  display: flex;
}

.home-search input[type="search"],
.home-search__field {
  height: 64px;
  padding: 14px 64px 14px 50px;
  border-color: rgba(115, 121, 111, 0.28);
  border-radius: 999px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  box-shadow: 0 2px 5px rgba(48, 49, 47, 0.04);
}

.home-search__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--de-outline);
  transform: translateY(-50%);
}

.home-search button,
.home-search__submit {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
}

.suggestion-chips {
  display: flex;
  margin: 22px auto 0;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.suggestion-chips__label {
  color: var(--de-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.suggestion-chips a,
.suggestion-chip {
  display: inline-flex;
  min-height: 32px;
  padding: 5px 12px;
  align-items: center;
  border-radius: 999px;
  background: var(--de-surface-container);
  color: var(--de-primary);
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
}

.suggestion-chips a:hover,
.suggestion-chip:hover {
  background: var(--de-surface-high);
  text-decoration: underline;
}

.section-header {
  display: flex;
  margin-bottom: 32px;
  padding-bottom: 16px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--de-border);
}

.section-header--centered {
  display: block;
  margin-bottom: 48px;
  padding-bottom: 0;
  border: 0;
  text-align: center;
}

.section-header h2,
.section-header__title {
  color: var(--de-text);
}

.section-header--centered h2,
.section-header--centered .section-header__title {
  color: var(--de-primary);
}

.section-header p,
.section-header__description {
  max-width: 660px;
  margin: 12px auto 0;
  color: var(--de-text-muted);
}

.section-header__link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.topic-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.topic-card {
  display: flex;
  min-height: 194px;
  padding: 24px;
  flex-direction: column;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius);
  background: var(--de-surface);
  color: var(--de-text);
  text-decoration: none;
  transition: border-color var(--de-transition), box-shadow var(--de-transition), transform var(--de-transition);
}

.topic-card:hover {
  border-color: rgba(51, 79, 43, 0.35);
  color: var(--de-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--de-shadow-soft);
}

.topic-card__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--de-secondary-container);
  color: var(--de-secondary);
}

.topic-card__icon svg {
  width: 24px;
  height: 24px;
}

.topic-card h3,
.topic-card__title {
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.topic-card p,
.topic-card__description {
  margin: 0;
  color: var(--de-text-muted);
}

/* Shared post cards. */
.article-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius);
  background: var(--de-surface);
  transition: border-color var(--de-transition), box-shadow var(--de-transition), transform var(--de-transition);
}

.article-card:hover {
  border-color: rgba(51, 79, 43, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--de-shadow-soft);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--de-surface-low);
}

.card-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 300ms ease;
}

.card-media img.is-placeholder,
.article-hero img.is-placeholder,
.pillar-card__media img.is-placeholder {
  background: var(--de-surface-low);
}

.article-card:hover .card-media img {
  transform: scale(1.025);
}

.card-media__label,
.card-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  overflow: hidden;
  border-radius: var(--de-radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--de-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-content {
  display: flex;
  min-width: 0;
  padding: 24px 26px 26px;
  flex: 1;
  flex-direction: column;
}

.card-content h2,
.card-content h3,
.card-content__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.28;
}

.card-content h2 a,
.card-content h3 a,
.card-content__title a {
  color: var(--de-text);
  text-decoration: none;
}

.card-content h2 a:hover,
.card-content h3 a:hover,
.card-content__title a:hover {
  color: var(--de-primary);
}

.card-content p,
.card-content__excerpt {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--de-text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  margin-top: auto;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  color: var(--de-text-muted);
  font-size: 0.8125rem;
}

.card-meta svg {
  width: 16px;
  height: 16px;
}

.card-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Archive pillar and related topics. */
.pillar-card {
  display: grid;
  min-height: 356px;
  overflow: hidden;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius-lg);
  background: var(--de-surface);
}

.pillar-card__media {
  position: relative;
  min-height: 356px;
  overflow: hidden;
  background: var(--de-surface-low);
}

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

.pillar-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  padding: 5px 10px;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(74, 103, 65, 0.94);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pillar-card__content {
  display: flex;
  padding: clamp(28px, 4vw, 40px);
  justify-content: center;
  flex-direction: column;
}

.pillar-card__eyebrow,
.article-kicker,
.archive-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--de-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pillar-card__content h2,
.pillar-card__title {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2rem);
}

.pillar-card__content h2 a,
.pillar-card__title a {
  color: var(--de-text);
  text-decoration: none;
}

.pillar-card__excerpt {
  display: -webkit-box;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--de-text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.pillar-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.related-topics {
  padding: clamp(24px, 4vw, 32px);
  border-left: 4px solid var(--de-primary);
  border-radius: var(--de-radius-lg);
  background: var(--de-primary-soft);
}

.related-topics h2,
.related-topics h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.related-topics__links {
  display: flex;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.related-topics a,
.related-topic {
  display: inline-flex;
  min-height: 40px;
  padding: 7px 14px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--de-border);
  border-radius: 999px;
  background: var(--de-surface);
  color: var(--de-text-muted);
  text-decoration: none;
}

.related-topics a:hover,
.related-topic:hover {
  border-color: var(--de-primary);
  color: var(--de-primary);
}

/* Archive headers and pagination. */
.archive-page {
  --de-main-top-space: clamp(44px, 6vw, 64px);

  padding-bottom: var(--de-section-gap);
}

.archive-header {
  max-width: 768px;
  margin-bottom: clamp(64px, 7.5vw, 88px);
}

.archive-header h1 {
  color: var(--de-primary);
  line-height: 1.16;
}

.archive-header__description,
.archive-description {
  margin-top: 20px;
  color: var(--de-text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.archive-header__description > :last-child,
.archive-description > :last-child {
  margin-bottom: 0;
}

.archive-pillar,
.archive-grid,
.archive-related {
  margin-bottom: var(--de-section-gap);
}

.pagination,
.nav-links {
  display: flex;
  margin-top: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius);
  background: var(--de-surface);
  color: var(--de-text);
  font-weight: 700;
  text-decoration: none;
}

.pagination a.page-numbers:hover,
.nav-links a.page-numbers:hover,
.pagination .current,
.nav-links .current {
  border-color: var(--de-primary);
  background: var(--de-primary);
  color: #ffffff;
}

.empty-state {
  max-width: 720px;
  margin: var(--de-section-gap) auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius-lg);
  background: var(--de-surface);
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  color: var(--de-primary);
}

.empty-state p {
  margin: 16px auto 24px;
  color: var(--de-text-muted);
}

/* Articles. */
.article-page,
.single-post-page {
  --de-main-top-space: clamp(44px, 6.5vw, 72px);

  padding-bottom: var(--de-section-gap);
}

.article-header {
  width: min(100%, 768px);
  margin: 0 auto 52px;
}

.article-header .breadcrumbs {
  margin-bottom: 14px;
}

.article-header h1,
.article-title {
  color: var(--de-text);
  line-height: 1.16;
}

.article-intro,
.article-lead,
.entry-summary {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--de-text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.article-byline,
.article-meta {
  display: flex;
  margin-top: 24px;
  align-items: center;
  gap: 12px 22px;
  flex-wrap: wrap;
  color: var(--de-text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.article-author-mini,
.article-meta__author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.article-author-mini img,
.article-meta__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--de-border);
  border-radius: 999px;
  object-fit: cover;
}

.article-author-mini__text,
.article-meta__author-text {
  min-width: 0;
}

.article-author-mini__name,
.article-meta__author-name {
  display: block;
  overflow: hidden;
  color: var(--de-text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-author-mini__credentials,
.article-meta__credentials {
  display: block;
  color: var(--de-outline);
  font-size: 0.8125rem;
}

.article-meta__details {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta__item svg {
  width: 17px;
  height: 17px;
}

.article-hero {
  position: relative;
  width: 100%;
  margin: 0 0 var(--de-section-gap);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border-radius: var(--de-radius);
  background: var(--de-surface-low);
}

.article-hero img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.article-hero figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--de-radius-sm);
  background: rgba(251, 249, 246, 0.92);
  color: var(--de-text-muted);
}

.article-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.article-sidebar {
  display: none;
  min-width: 0;
}

.article-main {
  min-width: 0;
  width: 100%;
  max-width: var(--de-reading);
}

.article-layout > .article-main:only-child {
  margin-inline: auto;
}

.toc {
  padding: 22px 24px;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius);
  background: var(--de-surface);
}

.article-sidebar .toc {
  position: sticky;
  top: calc(var(--de-header-height) + 32px);
  max-height: calc(100vh - var(--de-header-height) - 64px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.toc h2,
.toc h3,
.toc__title {
  margin: 0 0 14px;
  color: var(--de-primary);
  font-size: 1.35rem;
}

.toc ul,
.toc ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding-block: 3px;
  color: var(--de-text-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover,
.toc a[aria-current="true"],
.toc .is-active > a {
  color: var(--de-primary);
  text-decoration: underline;
}

.toc ul ul,
.toc ol ol {
  margin: 5px 0 0 14px;
}

.toc-mobile {
  display: block;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius);
  background: var(--de-surface);
}

.toc-mobile summary,
.toc-mobile__toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: var(--de-surface-low);
  color: var(--de-text);
  font-weight: 700;
  list-style: none;
  text-align: left;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile summary::after,
.toc-mobile__toggle::after {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--de-transition);
}

.toc-mobile[open] summary::after,
.toc-mobile.is-open .toc-mobile__toggle::after,
.toc-mobile__toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.toc-mobile .toc,
.toc-mobile__content {
  padding: 16px;
  border: 0;
  border-radius: 0;
}

.article-content {
  color: var(--de-text);
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.0625rem);
  line-height: 1.76;
}

.article-content > * {
  max-width: 100%;
}

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

.article-content > :last-child {
  margin-bottom: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content figure,
.article-content .wp-block-table {
  margin-bottom: 26px;
}

.article-content h2 {
  margin: 52px 0 18px;
  scroll-margin-top: calc(var(--de-header-height) + 24px);
  font-size: clamp(1.65rem, 3vw, 2rem);
}

.article-content h3 {
  margin: 36px 0 14px;
  scroll-margin-top: calc(var(--de-header-height) + 24px);
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
}

.article-content h4 {
  margin: 30px 0 12px;
  font-family: var(--de-font-body);
  font-size: 1.0625rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4em;
}

.article-content li + li {
  margin-top: 8px;
}

.article-content a {
  font-weight: 600;
}

.article-content blockquote {
  margin-inline: 0;
  padding: 20px 24px;
  border-left: 4px solid var(--de-primary);
  background: var(--de-primary-soft);
}

.article-content blockquote > :last-child {
  margin-bottom: 0;
}

.article-content .wp-block-image,
.article-content .wp-block-gallery {
  margin-block: 32px;
}

.article-content .wp-block-image img,
.article-content .wp-block-gallery img {
  width: auto;
  border-radius: var(--de-radius);
}

.article-content .wp-block-button__link {
  color: #ffffff;
}

.quick-answer,
.callout,
.warning,
.sources-methodology,
.reviewer-box {
  margin: 36px 0;
  padding: 24px;
  border-radius: var(--de-radius);
}

.quick-answer {
  border: 1px solid var(--de-secondary-container);
  background: var(--de-surface-low);
}

.quick-answer__header,
.callout__header,
.warning__header,
.sources-methodology__header {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 9px;
  color: var(--de-primary);
  font-weight: 700;
}

.quick-answer h2,
.quick-answer h3,
.callout h2,
.callout h3,
.warning h2,
.warning h3,
.sources-methodology h2,
.sources-methodology h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.quick-answer > :last-child,
.callout > :last-child,
.warning > :last-child,
.sources-methodology > :last-child {
  margin-bottom: 0;
}

.callout {
  border-left: 4px solid var(--de-primary);
  border-radius: 0 var(--de-radius) var(--de-radius) 0;
  background: var(--de-primary-soft);
}

.callout--neutral {
  border: 1px solid var(--de-border);
  border-left-width: 1px;
  border-radius: var(--de-radius);
  background: var(--de-surface);
}

.warning {
  border: 1px solid rgba(186, 26, 26, 0.22);
  background: var(--de-error-container);
}

.warning,
.warning h2,
.warning h3,
.warning__header {
  color: #68000a;
}

.warning p,
.warning li {
  color: var(--de-text);
}

/* Registered core/group styles: keep editor choices faithful on the front end. */
.wp-block-group.is-style-dogexplained-note,
.wp-block-group.is-style-dogexplained-warning,
.wp-block-group.is-style-dogexplained-evidence {
  margin-block: 36px;
  padding: 26px;
  border-radius: 0 var(--de-radius) var(--de-radius) 0;
}

.wp-block-group.is-style-dogexplained-note {
  border-left: 4px solid var(--de-primary);
  background: var(--de-primary-soft);
}

.wp-block-group.is-style-dogexplained-warning {
  border: 1px solid rgba(186, 26, 26, 0.24);
  border-left: 4px solid var(--de-error);
  background: var(--de-error-container);
}

.wp-block-group.is-style-dogexplained-evidence {
  border: 1px solid rgba(113, 90, 63, 0.24);
  border-left: 4px solid var(--de-secondary);
  background: var(--de-surface-low);
}

.wp-block-group.is-style-dogexplained-note > :first-child,
.wp-block-group.is-style-dogexplained-warning > :first-child,
.wp-block-group.is-style-dogexplained-evidence > :first-child {
  margin-top: 0;
}

.wp-block-group.is-style-dogexplained-note > :last-child,
.wp-block-group.is-style-dogexplained-warning > :last-child,
.wp-block-group.is-style-dogexplained-evidence > :last-child {
  margin-bottom: 0;
}

.wp-block-group.is-style-dogexplained-note :is(h2, h3, h4),
.wp-block-group.is-style-dogexplained-evidence :is(h2, h3, h4) {
  margin-top: 0;
  color: var(--de-primary);
}

.wp-block-group.is-style-dogexplained-warning :is(h2, h3, h4) {
  margin-top: 0;
  color: #68000a;
}

.sources-methodology {
  border: 1px solid var(--de-border);
  background: var(--de-surface-container);
}

.sources-methodology ul,
.sources-methodology ol {
  margin-bottom: 0;
  padding-left: 1.25em;
  font-size: 0.9375rem;
}

.sources-methodology li {
  overflow-wrap: anywhere;
}

.author-box,
.reviewer-box {
  display: flex;
  width: min(100%, 768px);
  margin: var(--de-section-gap) auto 0;
  padding: 28px 32px;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius-lg);
  background: var(--de-surface);
}

.author-box__avatar,
.reviewer-box__avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--de-surface-low);
}

.author-box__avatar img,
.reviewer-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box__content,
.reviewer-box__content {
  min-width: 0;
}

.author-box h2,
.author-box h3,
.reviewer-box h2,
.reviewer-box h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.author-box h2 a,
.author-box h3 a {
  color: var(--de-text);
  text-decoration: none;
}

.author-box h2 a:hover,
.author-box h3 a:hover {
  color: var(--de-primary);
}

.author-box__credentials,
.reviewer-box__credentials {
  margin: -2px 0 10px;
  color: var(--de-outline);
  font-size: 0.875rem;
  font-weight: 700;
}

.author-box p,
.reviewer-box p {
  margin-bottom: 14px;
  color: var(--de-text-muted);
}

.author-box__link,
.reviewer-box__link {
  display: inline-flex;
  min-height: 40px;
  padding: 7px 14px;
  align-items: center;
  border-radius: var(--de-radius);
  background: var(--de-surface-container);
  color: var(--de-text);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.author-box__link:hover,
.reviewer-box__link:hover {
  background: var(--de-surface-high);
  color: var(--de-primary);
}

.reviewer-box {
  margin-top: 24px;
  background: var(--de-primary-soft);
}

/* Food-safety article components. */
.food-summary {
  position: relative;
  margin: 36px 0 44px;
  padding: clamp(26px, 4vw, 36px);
  overflow: hidden;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius-lg);
  background: var(--de-surface-low);
}

.food-summary > h2,
.food-summary__title {
  margin-bottom: 22px;
  color: var(--de-primary);
  font-size: 1.5rem;
}

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

.summary-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius);
  background: var(--de-surface);
}

.summary-item--status {
  border-top: 3px solid var(--de-primary);
}

.summary-item--preparation {
  border-top: 3px solid var(--de-secondary);
}

.summary-item--precautions {
  border-top: 3px solid var(--de-caution);
}

.summary-item__label {
  display: block;
  margin-bottom: 8px;
  color: var(--de-outline);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.summary-item__value {
  display: flex;
  margin-bottom: 6px;
  align-items: flex-start;
  gap: 7px;
  color: var(--de-primary);
  font-weight: 700;
  line-height: 1.4;
}

.summary-item__value--safe {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--de-safe-container);
  color: var(--de-safe);
  font-size: 0.875rem;
}

.summary-item__value--caution {
  color: var(--de-caution);
}

.summary-item p {
  margin: 0;
  color: var(--de-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.summary-item--preparation > p:not(.summary-label),
.summary-item--precautions > p:not(.summary-label) {
  font-weight: 700;
  color: var(--de-text);
}

.risk-grid {
  display: grid;
  margin: 24px 0 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.risk-card {
  padding: 20px;
  border: 1px solid rgba(186, 26, 26, 0.3);
  border-top: 4px solid var(--de-error);
  border-radius: var(--de-radius);
  background: var(--de-surface);
}

.risk-card h3,
.risk-card__title {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 8px;
  font-family: var(--de-font-body);
  font-size: 1rem;
}

.risk-card p {
  margin: 0;
  color: var(--de-text-muted);
  font-size: 0.9375rem;
}

/* Related content and ads. */
.related-section {
  margin-top: var(--de-section-gap);
}

.related-section .post-grid {
  align-items: stretch;
}

.ad-slot,
.dogexplained-ad-slot {
  margin-block: 32px;
}

.ad-slot:empty,
.dogexplained-ad-slot:empty,
[data-ad-slot]:empty {
  display: none;
}

/* Generic pages, author archives, search, and 404. */
.generic-page,
.search-page,
.error-404,
.author-page {
  --de-main-top-space: clamp(44px, 6vw, 64px);

  padding-bottom: var(--de-section-gap);
}

.page-header,
.search-header,
.author-header {
  max-width: 768px;
  margin-bottom: 48px;
}

.page-header h1,
.search-header h1,
.author-header h1 {
  color: var(--de-primary);
}

.page-header p,
.search-header p,
.author-header p {
  margin: 16px 0 0;
  color: var(--de-text-muted);
  font-size: 1.125rem;
}

.page-content,
.entry-content {
  min-width: 0;
}

.generic-page .page-content,
.generic-page .entry-content {
  width: min(100%, var(--de-reading));
}

.search-form {
  display: flex;
  width: min(100%, 672px);
  gap: 8px;
}

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

.search-form .search-field {
  height: 48px;
}

.search-form .search-submit {
  flex: 0 0 auto;
}

.search-results-list {
  display: grid;
  gap: 24px;
}

.search-result {
  display: grid;
  padding-bottom: 24px;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--de-border);
}

.search-result__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--de-radius);
  background: var(--de-surface-low);
}

.search-result__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.search-result h2 a {
  color: var(--de-text);
  text-decoration: none;
}

.search-result p {
  margin: 0;
  color: var(--de-text-muted);
}

.error-404 {
  text-align: center;
}

.error-404__inner {
  width: min(100%, 680px);
  margin-inline: auto;
}

.error-404__code {
  display: block;
  margin-bottom: 8px;
  color: var(--de-secondary);
  font-family: var(--de-font-heading);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.error-404 p {
  margin: 16px auto 28px;
  color: var(--de-text-muted);
  font-size: 1.125rem;
}

.author-header {
  display: flex;
  max-width: 860px;
  align-items: center;
  gap: 28px;
}

.author-header__avatar {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--de-surface-low);
}

.author-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Comments remain visually quiet and native. */
.comments-area {
  width: min(100%, var(--de-reading));
  margin: var(--de-section-gap) auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--de-border);
}

.comments-title,
.comment-reply-title {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

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

.comment-list .children {
  margin-left: 28px;
  padding-left: 20px;
  border-left: 1px solid var(--de-border);
  list-style: none;
}

.comment-body {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius);
  background: var(--de-surface);
}

.comment-meta {
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.comment-author img {
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.comment-form > p {
  margin-bottom: 16px;
}

/* Footer. */
.site-footer {
  margin-top: var(--de-section-gap);
  padding-block: var(--de-section-gap);
  border-top: 1px solid rgba(115, 121, 111, 0.22);
  background: var(--de-surface-container);
  color: var(--de-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(130px, 1fr));
  gap: 48px;
}

.footer-brand,
.footer-column {
  min-width: 0;
}

.footer-brand .site-brand,
.footer-brand__title {
  margin-bottom: 16px;
  font-size: 2rem;
}

.footer-brand p,
.footer-description {
  max-width: 290px;
  margin: 0 0 18px;
  color: var(--de-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-copyright {
  color: var(--de-text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-column h2,
.footer-column h3,
.footer-column__title {
  margin-bottom: 14px;
  font-family: var(--de-font-body);
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer-column ul,
.footer-menu {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.footer-column a,
.footer-menu a {
  color: var(--de-text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-column a:hover,
.footer-menu a:hover,
.footer-column .current-menu-item > a {
  color: var(--de-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Concrete template aliases and publication-specific components. */
.icon {
  width: 1.5em;
  height: 1.5em;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--de-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

a.eyebrow {
  display: inline-block;
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  width: 18px;
  height: 18px;
}

.site-brand__wordmark,
.footer-brand__wordmark {
  color: var(--de-primary);
  font-family: var(--de-font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.site-brand__wordmark {
  display: block;
  overflow: hidden;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-brand__wordmark:hover,
.footer-brand__wordmark:hover {
  color: var(--de-primary);
  text-decoration: none;
}

.footer-brand__wordmark {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 2rem;
}

.header-actions .icon-close {
  display: none;
}

.header-actions [aria-expanded="true"] .icon-open {
  display: none;
}

.header-actions [aria-expanded="true"] .icon-close {
  display: block;
}

.search-form {
  position: relative;
}

.search-form__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: var(--de-outline);
  pointer-events: none;
  transform: translateY(-50%);
}

.search-form__icon .icon {
  width: 20px;
  height: 20px;
}

.search-form .search-field {
  padding-left: 44px;
}

.section-pad {
  padding-block: var(--de-section-gap);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro h2 {
  color: var(--de-primary);
}

.section-intro p {
  margin: 12px auto 0;
  color: var(--de-text-muted);
}

.topic-section,
.editorial-section--tinted {
  background: var(--de-surface-low);
}

.editorial-section,
.explore-section {
  position: relative;
}

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

.explore-panel {
  display: flex;
  min-width: 0;
  padding: clamp(24px, 4vw, 36px);
  flex-direction: column;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius-lg);
  background: var(--de-surface);
}

.explore-panel h3 {
  margin-bottom: 8px;
  color: var(--de-primary);
  font-size: 1.75rem;
}

.explore-panel > p {
  margin: 0 0 20px;
  color: var(--de-text-muted);
}

.explore-links {
  display: grid;
  margin: 0 0 24px;
  padding: 18px 0;
  gap: 0;
  border-top: 1px solid var(--de-border);
  border-bottom: 1px solid var(--de-border);
  list-style: none;
}

.explore-links li + li {
  border-top: 1px solid var(--de-border);
}

.explore-links a {
  display: flex;
  min-height: 44px;
  padding-block: 9px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--de-text);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.explore-links a:hover {
  color: var(--de-primary);
}

.explore-links .icon {
  width: 18px;
  height: 18px;
  color: var(--de-primary);
}

.explore-panel > .button {
  margin-top: auto;
  align-self: flex-start;
}

.card-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  overflow: hidden;
  border-radius: var(--de-radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--de-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.28;
}

.card-excerpt {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--de-text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.evidence-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  max-width: calc(100% - 32px);
  padding: 5px 10px;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(74, 103, 65, 0.94);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.evidence-badge .icon {
  width: 15px;
  height: 15px;
}

.pillar-card__content > p:not(.eyebrow) {
  margin: 0 0 20px;
  color: var(--de-text-muted);
}

.archive-main {
  --de-main-top-space: clamp(48px, 6.5vw, 72px);

  padding-bottom: var(--de-section-gap);
}

.archive-main > .container > .breadcrumbs {
  margin-bottom: 32px;
}

.pillar-section,
.archive-articles {
  margin-bottom: var(--de-section-gap);
}

.archive-articles .section-header,
.author-archive .section-header {
  margin-bottom: 24px;
}

.topic-chips {
  display: flex;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.topic-chips a {
  display: inline-flex;
  min-height: 40px;
  padding: 7px 14px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--de-border);
  border-radius: 999px;
  background: var(--de-surface);
  color: var(--de-text-muted);
  text-decoration: none;
}

.topic-chips a:hover {
  border-color: var(--de-primary);
  color: var(--de-primary);
}

.topic-chips .icon {
  width: 18px;
  height: 18px;
}

.empty-state.compact-empty,
.compact-empty {
  margin: 0;
  padding: 28px;
}

.result-count {
  margin: 16px 0 0;
  color: var(--de-text-muted);
}

.article-dek {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--de-text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.byline-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--de-text);
  text-decoration: none;
}

.byline-author:hover {
  color: var(--de-primary);
  text-decoration: none;
}

.byline-author img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--de-border);
  border-radius: 999px;
  object-fit: cover;
}

.byline-author span {
  display: block;
  min-width: 0;
}

.byline-author strong,
.byline-author small {
  display: block;
}

.byline-author small {
  color: var(--de-outline);
  font-size: 0.8125rem;
}

.article-dates {
  display: flex;
  padding-left: 22px;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  border-left: 1px solid var(--de-border);
}

.article-dates > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-dates .icon {
  width: 17px;
  height: 17px;
}

.toc-mobile nav {
  padding: 16px;
}

.toc-mobile nav ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.toc-mobile nav a {
  display: block;
  padding-block: 3px;
  color: var(--de-primary);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc-mobile nav a:hover {
  text-decoration: underline;
}

.toc-mobile summary > .icon {
  width: 20px;
  height: 20px;
  transition: transform var(--de-transition);
}

.toc-mobile[open] summary > .icon {
  transform: rotate(180deg);
}

.toc-mobile summary::after {
  display: none;
}

.quick-answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quick-answer > .icon {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  flex: 0 0 auto;
  color: var(--de-primary);
}

.quick-answer div > :last-child {
  margin-bottom: 0;
}

.food-summary h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.food-summary h2 .icon {
  width: 22px;
  height: 22px;
}

.summary-label {
  margin: 0 0 8px !important;
  color: var(--de-outline) !important;
  font-size: 0.6875rem !important;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

.safety-status {
  display: inline-flex;
  padding: 4px 9px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.safety-status--safe {
  background: var(--de-safe-container);
  color: var(--de-safe);
}

.safety-status--moderation {
  background: #fff2cc;
  color: #755600;
}

.safety-status--avoid {
  background: var(--de-error-container);
  color: #68000a;
}

.safety-status--unknown {
  background: var(--de-surface-container);
  color: var(--de-text-muted);
}

.food-detail {
  margin-top: 52px;
  padding: clamp(26px, 4vw, 32px);
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius-lg);
  background: var(--de-surface);
  scroll-margin-top: calc(var(--de-header-height) + 24px);
}

.food-detail--benefits {
  border-left: 4px solid var(--de-primary);
}

.food-detail--risks {
  border-color: rgba(186, 26, 26, 0.24);
  border-top: 4px solid var(--de-error);
}

.food-detail--serving {
  border-left: 4px solid var(--de-secondary);
}

.food-detail h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2rem);
}

.food-detail--benefits h2 {
  color: var(--de-primary);
}

.food-detail--risks h2 {
  color: #68000a;
}

.food-detail > :last-child {
  margin-bottom: 0;
}

.sources-methodology__heading {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  gap: 8px;
  color: var(--de-primary);
}

.sources-methodology__heading h2 {
  margin: 0;
}

.sources-methodology__heading .icon {
  width: 22px;
  height: 22px;
}

.methodology-copy > :last-child {
  margin-bottom: 0;
}

.source-list {
  margin: 16px 0 0;
  padding-left: 1.35em;
}

.article-page--food .sources-methodology {
  margin-top: clamp(56px, 7vw, 72px);
  padding: 30px 0 0;
  border: 0;
  border-top: 1px solid var(--de-border);
  border-radius: 0;
  background: transparent;
}

.article-page--food .sources-methodology__heading {
  margin-bottom: 16px;
}

.article-page--food .sources-methodology__heading h2 {
  font-size: 1.5rem;
}

.reviewer-box > img,
.reviewer-box > .avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.reviewer-name {
  margin: 0 0 4px !important;
  color: var(--de-text) !important;
  font-weight: 700;
}

.author-credentials,
.author-role {
  color: var(--de-outline);
}

.author-role {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.author-profile {
  display: flex;
  max-width: 900px;
  margin-bottom: var(--de-section-gap);
  padding: clamp(24px, 4vw, 36px);
  align-items: center;
  gap: 28px;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius-lg);
  background: var(--de-surface);
}

.author-profile > img,
.author-profile > .avatar {
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.author-profile p:last-child {
  margin-bottom: 0;
  color: var(--de-text-muted);
}

.author-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.author-directory__card {
  display: flex;
  min-width: 0;
  padding: 24px;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid var(--de-border);
  border-radius: var(--de-radius-lg);
  background: var(--de-surface);
}

.author-directory__card > img,
.author-directory__card > .avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.author-directory__card h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.author-directory__card h2 a {
  color: var(--de-text);
  text-decoration: none;
}

.author-directory__card > div > p:not(.author-role) {
  margin-bottom: 12px;
  color: var(--de-text-muted);
}

.error-page {
  --de-main-top-space: clamp(72px, 11vw, 128px);

  padding-bottom: clamp(72px, 11vw, 128px);
  text-align: center;
}

.error-page__inner {
  margin-inline: auto;
}

.error-code {
  margin: 0 0 12px;
  color: var(--de-secondary);
  font-family: var(--de-font-heading);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.error-page h1 {
  color: var(--de-primary);
}

.error-page p:not(.error-code) {
  margin: 16px auto 28px;
  color: var(--de-text-muted);
  font-size: 1.125rem;
}

.dogexplained-ad {
  margin-block: 32px;
}

.dogexplained-ad:empty {
  display: none;
}

.home-search input[type="search"] {
  padding-right: 108px;
}

.home-search button,
.home-search__submit {
  width: auto;
  min-width: 84px;
  padding-inline: 14px;
}

.suggestion-chips > span:first-child {
  color: var(--de-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tablet and compact header. */
@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(190px, 242px) minmax(0, var(--de-reading));
    justify-content: center;
    gap: clamp(28px, 4vw, 48px);
  }

  .article-sidebar {
    display: block;
  }

  .toc-mobile {
    display: none;
  }

  .article-meta__details {
    padding-left: 22px;
    border-left: 1px solid var(--de-border);
  }
}

@media (max-width: 1023px) {
  .topic-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .pillar-card__media {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
  }

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

@media (max-width: 899px) {
  :root {
    --de-header-height: 60px;
  }

  .container,
  .header-inner,
  .footer-inner,
  .narrow-container,
  .home-hero__inner {
    width: min(calc(100% - (2 * var(--de-mobile-gutter))), var(--de-container));
  }

  .site-brand {
    font-size: 2rem;
  }

  .site-brand img,
  .custom-logo {
    max-height: 40px;
  }

  .primary-nav {
    display: none;
  }

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

  .search-panel {
    padding-inline: 0;
  }

  .search-panel .panel-close {
    position: static;
    margin: 12px auto -14px;
  }

  .article-header {
    margin-bottom: 24px;
  }

  .article-hero {
    margin-bottom: 32px;
    aspect-ratio: 16 / 9;
  }

  .article-main {
    margin-inline: auto;
  }

  .article-sidebar {
    display: none;
  }

  .article-meta__details {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--de-border);
  }
}

@media (max-width: 767px) {
  .section-header:not(.section-header--centered) {
    align-items: flex-start;
  }

  .section-header__link {
    font-size: 0.875rem;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .risk-grid {
    grid-template-columns: 1fr;
  }

  .article-content .alignwide,
  .article-content .alignfull {
    width: calc(100% + (2 * var(--de-mobile-gutter)));
    max-width: none;
    margin-left: calc(-1 * var(--de-mobile-gutter));
  }

  .author-box,
  .reviewer-box {
    padding: 24px;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

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

  .author-box__link,
  .reviewer-box__link {
    width: 100%;
    justify-content: center;
    border-radius: 999px;
    background: var(--de-primary);
    color: #ffffff;
  }

  .search-result {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

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

  .author-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .explore-grid,
  .author-directory {
    grid-template-columns: 1fr;
  }

  .author-profile {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 599px) {
  .topic-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 52px;
  }

  .home-hero h1,
  .home-hero__title {
    font-size: 2rem;
    line-height: 1.25;
  }

  .home-search input[type="search"],
  .home-search__field {
    height: 56px;
    padding-right: 96px;
    font-size: 1rem;
  }

  .home-search button,
  .home-search__submit {
    top: 6px;
    right: 6px;
    min-width: 78px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-header--centered {
    margin-bottom: 32px;
  }

  .topic-card {
    min-height: 0;
  }

  .pillar-card__media {
    aspect-ratio: 4 / 3;
  }

  .pillar-card__content {
    padding: 24px;
  }

  .archive-header {
    margin-bottom: 52px;
  }

  .article-page,
  .single-post-page {
    --de-main-top-space: 24px;
  }

  .article-header h1,
  .article-title {
    font-size: 1.625rem;
    letter-spacing: -0.01em;
    line-height: 1.28;
  }

  .article-intro,
  .article-lead,
  .article-dek {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.68;
  }

  .article-byline,
  .article-meta {
    margin-top: 16px;
  }

  .article-dates {
    width: 100%;
    padding: 12px 0 0;
    border-top: 1px solid var(--de-border);
    border-left: 0;
  }

  .article-hero {
    width: calc(100% + (2 * var(--de-mobile-gutter)));
    height: 256px;
    margin-right: calc(-1 * var(--de-mobile-gutter));
    margin-left: calc(-1 * var(--de-mobile-gutter));
    aspect-ratio: auto;
    border-radius: 0;
  }

  .article-hero figcaption {
    position: static;
    padding: 7px var(--de-mobile-gutter) 0;
    border-radius: 0;
    background: var(--de-background);
    text-align: center;
  }

  .article-hero:has(figcaption) {
    height: auto;
    overflow: visible;
  }

  .article-hero:has(figcaption) img {
    height: 256px;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-content h2 {
    margin-top: 38px;
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .article-content h3 {
    margin-top: 29px;
    font-size: 1.2rem;
  }

  .quick-answer,
  .callout,
  .warning,
  .sources-methodology,
  .reviewer-box {
    padding: 16px;
  }

  .quick-answer {
    border: 0;
    border-left: 4px solid var(--de-primary);
    border-radius: 0 var(--de-radius) var(--de-radius) 0;
    background: var(--de-primary-soft);
  }

  .food-summary {
    padding: 22px 18px;
  }

  .food-detail {
    margin-top: 44px;
    padding: 22px 18px;
  }

  .wp-block-group.is-style-dogexplained-note,
  .wp-block-group.is-style-dogexplained-warning,
  .wp-block-group.is-style-dogexplained-evidence {
    margin-block: 32px;
    padding: 20px 18px;
  }

  .related-topics {
    padding: 22px 18px;
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form__icon {
    top: 24px;
  }

  .search-form .search-submit {
    width: 100%;
  }

  .search-result {
    grid-template-columns: 1fr;
  }

  .search-result__media {
    aspect-ratio: 16 / 9;
  }

  .footer-grid {
    gap: 32px 20px;
  }

  .footer-brand .site-brand,
  .footer-brand__title {
    font-size: 1.75rem;
  }

  .comment-list .children {
    margin-left: 10px;
    padding-left: 12px;
  }

  .author-directory__card {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

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

  body.admin-bar .mobile-panel,
  body.admin-bar .search-panel {
    top: calc(var(--de-header-height) + 46px);
  }

  body.admin-bar .site-main {
    padding-top: calc(var(--de-header-height) + var(--de-main-top-space, 0px) + 46px);
  }
}

@media (max-width: 380px) {
  .site-brand {
    font-size: 1.75rem;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 0;
  }

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

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

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

@media print {
  .site-header,
  .site-footer,
  .article-sidebar,
  .toc-mobile,
  .related-section,
  .ad-slot,
  .dogexplained-ad-slot,
  .comments-area {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-main,
  .article-page,
  .single-post-page {
    padding: 0;
  }

  .container,
  .article-main,
  .article-header {
    width: 100%;
    max-width: none;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .article-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}
