/*
Theme Name: Electors Trust Journal
Author: Nora Ellery Studio
Description: A mobile-first classic WordPress publishing theme with dynamic categories, editable homepage blocks, a storefront-inspired editorial layout, and domain-derived etr prefixes.
Version: 1.0.6
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: etr-theme
*/

:root {
  --etr-bg: #f4f7fb;
  --etr-surface: #ffffff;
  --etr-surface-soft: #edf7f8;
  --etr-ink: #111827;
  --etr-ink-soft: #334155;
  --etr-muted: #64748b;
  --etr-line: #dce4ec;
  --etr-dark: #111827;
  --etr-dark-soft: #1f2937;
  --etr-teal: #09a7b4;
  --etr-teal-dark: #087a86;
  --etr-teal-soft: #dff7f9;
  --etr-orange: #ffb703;
  --etr-orange-soft: #fff2c6;
  --etr-red: #ef4444;
  --etr-focus: #2563eb;
  --etr-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --etr-container: 1180px;
  --etr-radius: 8px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--etr-ink);
  background: var(--etr-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--etr-teal-dark);
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--etr-focus);
  outline-offset: 3px;
}

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

.etr-skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: #ffffff;
  background: var(--etr-dark);
  border-radius: var(--etr-radius);
}

.etr-container {
  width: min(var(--etr-container), calc(100% - 32px));
  margin: 0 auto;
}

.etr-main {
  min-height: 60vh;
}

.etr-site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  background: rgba(244, 247, 251, 0.96);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

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

.etr-top-strip {
  color: #ffffff;
  background: var(--etr-dark);
}

.etr-top-strip-inner {
  display: flex;
  width: min(var(--etr-container), calc(100% - 32px));
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

.etr-top-notice {
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.etr-top-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: var(--etr-orange);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.etr-header-shell {
  position: relative;
  display: grid;
  width: min(var(--etr-container), calc(100% - 32px));
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 12px 0;
}

.etr-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--etr-ink);
  text-decoration: none;
}

.etr-brand-mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: var(--etr-teal);
  border: 3px solid var(--etr-orange);
  border-radius: var(--etr-radius);
  font-weight: 900;
  letter-spacing: 0;
}

.etr-brand-logo {
  width: auto;
  max-width: 170px;
  max-height: 48px;
  object-fit: contain;
}

.etr-brand-copy {
  display: grid;
  min-width: 0;
}

.etr-brand-name {
  overflow: hidden;
  color: var(--etr-dark);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.etr-brand-description {
  display: none;
  overflow: hidden;
  max-width: 220px;
  color: var(--etr-muted);
  font-size: 0.78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.etr-menu-details {
  position: relative;
  z-index: 260;
  display: inline-grid;
  justify-self: end;
}

.etr-menu-details[open] {
  z-index: 400;
}

.etr-menu-toggle {
  position: relative;
  z-index: 260;
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: var(--etr-dark);
  border: 0;
  border-radius: var(--etr-radius);
  pointer-events: auto;
  touch-action: manipulation;
  list-style: none;
}

.etr-menu-toggle::-webkit-details-marker {
  display: none;
}

.etr-menu-toggle-bars,
.etr-menu-toggle-bars::before,
.etr-menu-toggle-bars::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.etr-menu-toggle-bars {
  position: relative;
}

.etr-menu-toggle-bars::before,
.etr-menu-toggle-bars::after {
  position: absolute;
  left: 0;
  content: "";
}

.etr-menu-toggle-bars::before {
  top: -6px;
}

.etr-menu-toggle-bars::after {
  top: 6px;
}

.etr-menu-open .etr-menu-toggle-bars {
  transform: rotate(45deg);
}

.etr-menu-details[open] .etr-menu-toggle-bars {
  transform: rotate(45deg);
}

.etr-menu-open .etr-menu-toggle-bars::before {
  transform: translateY(6px) rotate(90deg);
}

.etr-menu-details[open] .etr-menu-toggle-bars::before {
  transform: translateY(6px) rotate(90deg);
}

.etr-menu-open .etr-menu-toggle-bars::after {
  opacity: 0;
}

.etr-menu-details[open] .etr-menu-toggle-bars::after {
  opacity: 0;
}

.etr-navigation {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 240;
  width: min(340px, calc(100vw - 32px));
  max-height: 0;
  overflow: hidden;
  background: var(--etr-surface);
  border: 0 solid transparent;
  border-radius: var(--etr-radius);
  box-shadow: var(--etr-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: max-height 220ms ease, border-color 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.etr-menu-open .etr-navigation,
body.etr-menu-open .etr-navigation,
.etr-menu-details[open] .etr-navigation,
.etr-navigation.etr-navigation-open,
.etr-navigation[aria-hidden="false"] {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--etr-line);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.etr-desktop-navigation {
  display: none;
}

.etr-menu-list,
.etr-sub-menu,
.etr-footer-menu,
.etr-topic-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.etr-menu-list {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.etr-menu-item {
  position: relative;
}

.etr-menu-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  color: var(--etr-dark);
  border-radius: var(--etr-radius);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.etr-menu-link:hover,
.etr-menu-link:focus-visible,
.etr-menu-item-current > .etr-menu-link {
  color: #ffffff;
  background: var(--etr-teal);
}

.etr-sub-menu {
  display: grid;
  gap: 4px;
  padding: 4px 0 4px 12px;
}

.etr-menu-link-nested {
  min-height: 40px;
  color: var(--etr-ink-soft);
  background: var(--etr-surface-soft);
}

.etr-header-search {
  display: none;
  min-width: 230px;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--etr-surface);
  border: 1px solid var(--etr-line);
  border-radius: var(--etr-radius);
}

.etr-search-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  color: var(--etr-ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.etr-search-input::placeholder {
  color: var(--etr-muted);
}

.etr-search-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: var(--etr-teal);
  border: 0;
  border-radius: 6px;
}

.etr-search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.etr-search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transform: rotate(45deg);
}

.etr-hero-zone {
  padding: 22px 0 18px;
}

.etr-home-layout {
  display: grid;
  width: min(1260px, calc(100% - 32px));
  gap: 14px;
  margin: 0 auto;
}

.etr-home-sidebar,
.etr-side-stack,
.etr-hero-panel,
.etr-widget,
.etr-empty-state {
  background: var(--etr-surface);
  border: 1px solid var(--etr-line);
  border-radius: var(--etr-radius);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.etr-topic-rail {
  padding: 16px;
}

.etr-topic-rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--etr-line);
}

.etr-topic-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--etr-teal-soft);
  border-radius: 6px;
}

.etr-topic-icon::before {
  width: 16px;
  height: 12px;
  border-top: 3px solid var(--etr-teal-dark);
  border-bottom: 3px solid var(--etr-teal-dark);
  content: "";
}

.etr-topic-title {
  margin: 0;
  color: var(--etr-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.etr-topic-list {
  display: grid;
  gap: 6px;
  padding-top: 12px;
}

.etr-topic-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  color: var(--etr-ink-soft);
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.etr-topic-link:hover,
.etr-topic-link:focus-visible {
  color: #ffffff;
  background: var(--etr-teal);
}

.etr-topic-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.etr-topic-count {
  display: inline-grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  color: var(--etr-teal-dark);
  background: var(--etr-teal-soft);
  border-radius: 999px;
  font-size: 0.8rem;
}

.etr-topic-link:hover .etr-topic-count,
.etr-topic-link:focus-visible .etr-topic-count {
  color: var(--etr-dark);
  background: #ffffff;
}

.etr-topic-empty {
  margin: 14px 0 0;
  color: var(--etr-muted);
  font-size: 0.92rem;
}

.etr-hero-panel {
  display: grid;
  overflow: hidden;
  min-height: 470px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(223, 247, 249, 0.94), rgba(255, 255, 255, 0.94)),
    var(--etr-surface);
}

.etr-hero-copy {
  display: grid;
  align-content: center;
  padding: 28px;
}

.etr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--etr-teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.etr-kicker::before {
  width: 28px;
  height: 3px;
  background: var(--etr-orange);
  border-radius: 999px;
  content: "";
}

.etr-hero-title {
  max-width: 13ch;
  margin: 0;
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.etr-hero-text {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--etr-ink-soft);
  font-size: 1rem;
}

.etr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.etr-button,
.etr-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
}

.etr-button {
  padding: 11px 16px;
  border-radius: 6px;
}

.etr-button-primary {
  color: #ffffff;
  background: var(--etr-teal);
  box-shadow: 0 14px 22px rgba(9, 167, 180, 0.22);
}

.etr-button-primary:hover,
.etr-button-primary:focus-visible {
  color: #ffffff;
  background: var(--etr-teal-dark);
}

.etr-button-ghost {
  color: var(--etr-dark);
  background: #ffffff;
  border: 1px solid var(--etr-line);
}

.etr-button-ghost:hover,
.etr-button-ghost:focus-visible {
  color: var(--etr-dark);
  border-color: var(--etr-orange);
}

.etr-hero-media {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

.etr-hero-media::before {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 8px 10px;
  color: var(--etr-dark);
  background: var(--etr-orange);
  border-radius: 6px;
  content: "";
}

.etr-hero-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.etr-image-band {
  padding: 0 0 42px;
}

.etr-image-band-inner {
  display: grid;
  width: min(1260px, calc(100% - 32px));
  grid-auto-columns: minmax(230px, 78vw);
  grid-auto-flow: column;
  gap: 14px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.etr-image-tile {
  min-height: 178px;
  overflow: hidden;
  background: var(--etr-dark);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--etr-radius);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  scroll-snap-align: start;
}

.etr-image-tile-link {
  position: relative;
  display: block;
  height: 100%;
  min-height: 178px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
}

.etr-image-tile-img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.etr-image-tile-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.78)),
    linear-gradient(90deg, rgba(9, 167, 180, 0.34), transparent 58%);
}

.etr-image-tile-copy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 5px;
}

.etr-image-tile-label {
  justify-self: start;
  padding: 5px 8px;
  color: var(--etr-dark);
  background: var(--etr-orange);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.etr-image-tile-title {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.etr-image-tile-link:hover,
.etr-image-tile-link:focus-visible {
  color: #ffffff;
}

.etr-image-tile-link:hover .etr-image-tile-img,
.etr-image-tile-link:focus-visible .etr-image-tile-img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.07);
}

.etr-story-index {
  padding: 0 0 44px;
}

.etr-story-index .etr-container {
  padding: 22px;
  background: var(--etr-surface);
  border: 1px solid var(--etr-line);
  border-radius: var(--etr-radius);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.etr-story-index-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--etr-line);
}

.etr-story-index-title {
  margin: 0;
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.etr-story-index-text {
  max-width: 560px;
  margin: 0;
  color: var(--etr-muted);
  font-size: 0.96rem;
}

.etr-story-index-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.etr-story-index-item {
  min-width: 0;
}

.etr-story-index-link {
  display: grid;
  min-height: 92px;
  grid-template-columns: 38px 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--etr-dark);
  background: #f8fafc;
  border: 1px solid rgba(220, 228, 236, 0.82);
  border-radius: var(--etr-radius);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.etr-story-index-link:hover,
.etr-story-index-link:focus-visible {
  color: var(--etr-dark);
  border-color: rgba(9, 167, 180, 0.45);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.etr-story-index-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--etr-teal-dark);
  background: var(--etr-teal-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.etr-story-index-media {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  background: var(--etr-surface-soft);
  border-radius: 6px;
}

.etr-story-index-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.etr-story-index-link:hover .etr-story-index-img,
.etr-story-index-link:focus-visible .etr-story-index-img {
  transform: scale(1.06);
}

.etr-story-index-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.etr-story-index-name {
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.etr-story-index-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--etr-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.etr-story-index-dot {
  width: 5px;
  height: 5px;
  background: var(--etr-orange);
  border-radius: 999px;
}

.etr-side-stack {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
}

.etr-side-widget {
  padding: 18px;
  background: var(--etr-dark);
  border-radius: var(--etr-radius);
  color: #ffffff;
}

.etr-side-widget-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.15;
}

.etr-side-widget p:last-child {
  margin-bottom: 0;
}

.etr-mini-card {
  overflow: hidden;
  background: var(--etr-dark);
  border-radius: var(--etr-radius);
}

.etr-mini-card:nth-child(2n) {
  background: var(--etr-teal-dark);
}

.etr-mini-card-link {
  display: grid;
  min-height: 152px;
  align-content: end;
  gap: 7px;
  padding: 18px;
  color: #ffffff;
  text-decoration: none;
}

.etr-mini-card-link:hover,
.etr-mini-card-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.etr-mini-card-label {
  color: var(--etr-orange);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.etr-mini-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.12;
}

.etr-mini-card-date {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
}

.etr-flex-section {
  padding: 34px 0;
  background: var(--etr-dark);
}

.etr-flex-section .etr-container {
  display: grid;
  gap: 14px;
}

.etr-widget {
  padding: 22px;
}

.etr-widget-title {
  margin: 0 0 10px;
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.12;
}

.etr-widget p:last-child {
  margin-bottom: 0;
}

.etr-latest,
.etr-archive {
  padding: 44px 0 58px;
}

.etr-section-heading,
.etr-archive-header {
  max-width: 780px;
  margin-bottom: 24px;
}

.etr-section-title,
.etr-archive-title {
  margin: 0;
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.etr-section-text,
.etr-archive-description {
  margin: 12px 0 0;
  color: var(--etr-muted);
}

.etr-card-grid {
  display: grid;
  gap: 16px;
}

.etr-card {
  overflow: hidden;
  background: var(--etr-surface);
  border: 1px solid var(--etr-line);
  border-radius: var(--etr-radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.etr-card-media {
  display: block;
  overflow: hidden;
  color: inherit;
  background: var(--etr-surface-soft);
  text-decoration: none;
  aspect-ratio: 4 / 3;
}

.etr-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.etr-card:hover .etr-card-image,
.etr-card:focus-within .etr-card-image {
  transform: scale(1.035);
}

.etr-card-body {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.etr-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--etr-muted);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.3;
}

.etr-post-divider {
  width: 5px;
  height: 5px;
  background: var(--etr-orange);
  border-radius: 999px;
}

.etr-post-category {
  color: var(--etr-teal-dark);
  text-decoration: none;
}

.etr-card-title {
  margin: 0;
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.etr-card-title-link {
  text-decoration: none;
}

.etr-card-excerpt {
  color: var(--etr-ink-soft);
  font-size: 0.96rem;
}

.etr-card-excerpt p {
  margin: 0;
}

.etr-text-link {
  justify-self: start;
  min-height: auto;
  color: var(--etr-teal-dark);
  font-size: 0.92rem;
}

.etr-text-link::after {
  margin-left: 8px;
  content: ">";
}

.etr-empty-state {
  padding: 28px;
}

.etr-empty-title {
  margin: 0 0 8px;
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.etr-empty-text {
  margin: 0;
  color: var(--etr-muted);
}

.etr-posts-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.etr-posts-nav-item a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--etr-dark);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.etr-single-main {
  padding: 42px 0 66px;
}

.etr-single-shell {
  width: 80vw;
  margin: 0 auto;
}

.etr-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--etr-teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.etr-back-link::before {
  margin-right: 8px;
  content: "<";
}

.etr-single-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--etr-line);
}

.etr-single-title {
  max-width: 18ch;
  margin: 12px 0 0;
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.etr-single-excerpt {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--etr-muted);
  font-size: 1.05rem;
}

.etr-single-content {
  padding-top: 28px;
  color: var(--etr-ink-soft);
  font-size: 1.04rem;
}

.etr-single-content > *:first-child {
  margin-top: 0;
}

.etr-single-content h2,
.etr-single-content h3,
.etr-single-content h4 {
  color: var(--etr-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
  letter-spacing: 0;
}

.etr-single-content h2 {
  margin-top: 36px;
  font-size: 2rem;
}

.etr-single-content h3 {
  margin-top: 28px;
  font-size: 1.5rem;
}

.etr-single-content p,
.etr-single-content ul,
.etr-single-content ol {
  margin-bottom: 1.15em;
}

.etr-single-content a {
  color: var(--etr-teal-dark);
  font-weight: 800;
}

.etr-single-content blockquote {
  margin: 28px 0;
  padding: 20px;
  color: var(--etr-dark);
  background: var(--etr-teal-soft);
  border-left: 6px solid var(--etr-orange);
  border-radius: var(--etr-radius);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.45;
}

.etr-single-content img {
  border-radius: var(--etr-radius);
}

.etr-single-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.etr-single-content th,
.etr-single-content td {
  padding: 10px 12px;
  border: 1px solid var(--etr-line);
}

.etr-single-footer {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--etr-line);
}

.etr-single-footer-label,
.etr-single-nav-label {
  color: var(--etr-teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.etr-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.etr-tag-list a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  color: var(--etr-dark);
  background: var(--etr-orange-soft);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.etr-single-nav {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.etr-single-nav-link {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--etr-dark);
  background: var(--etr-surface);
  border: 1px solid var(--etr-line);
  border-radius: var(--etr-radius);
  text-decoration: none;
}

.etr-single-nav-link-next {
  text-align: left;
}

.etr-single-nav-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
}

.etr-footer {
  color: #ffffff;
  background: var(--etr-dark);
}

.etr-footer-inner {
  display: grid;
  width: min(var(--etr-container), calc(100% - 32px));
  gap: 24px;
  margin: 0 auto;
  padding: 40px 0 28px;
}

.etr-footer-about {
  max-width: 520px;
}

.etr-footer-kicker {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.08;
}

.etr-footer-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.etr-footer-menu {
  display: grid;
  gap: 8px;
}

.etr-footer-menu .etr-menu-link {
  display: inline-flex;
  min-height: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border-radius: 0;
}

.etr-footer-menu .etr-menu-link:hover,
.etr-footer-menu .etr-menu-link:focus-visible {
  color: var(--etr-orange);
}

.etr-footer-flex {
  display: grid;
  gap: 14px;
}

.etr-footer-widget {
  color: rgba(255, 255, 255, 0.78);
}

.etr-footer-widget-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.etr-footer-widget p:last-child {
  margin-bottom: 0;
}

.etr-footer-bottom {
  width: min(var(--etr-container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.etr-footer-bottom p {
  margin: 0;
}

@media (min-width: 560px) {
  .etr-brand-description {
    display: block;
  }

  .etr-story-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .etr-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .etr-single-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .etr-single-nav-link-next {
    text-align: right;
  }
}

@media (min-width: 760px) {
  .etr-hero-panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  }

  .etr-hero-title {
    font-size: 3.4rem;
  }

  .etr-hero-media,
  .etr-hero-image {
    min-height: 100%;
  }

  .etr-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .etr-image-band-inner {
    grid-auto-columns: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .etr-image-tile,
  .etr-image-tile-link,
  .etr-image-tile-img {
    min-height: 210px;
  }

  .etr-story-index-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
    align-items: end;
  }

  .etr-section-title,
  .etr-archive-title {
    font-size: 2.8rem;
  }

  .etr-single-title {
    font-size: 3.3rem;
  }

  .etr-footer-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr);
  }

  .etr-footer-flex {
    grid-column: 1 / -1;
  }
}

@media (min-width: 920px) {
  .etr-view-admin .etr-site-header {
    top: 32px;
  }

  .etr-header-shell {
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr) minmax(230px, 0.75fr);
  }

  .etr-menu-details {
    display: none;
  }

  .etr-menu-toggle {
    display: none;
  }

  .etr-desktop-navigation {
    display: block;
  }

  .etr-navigation {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .etr-menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
  }

  .etr-menu-link {
    min-height: 40px;
    padding: 9px 11px;
  }

  .etr-sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    background: var(--etr-surface);
    border: 1px solid var(--etr-line);
    border-radius: var(--etr-radius);
    box-shadow: var(--etr-shadow);
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .etr-menu-item:hover > .etr-sub-menu,
  .etr-menu-item:focus-within > .etr-sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .etr-header-search {
    display: flex;
  }

  .etr-home-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: stretch;
  }

  .etr-side-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .etr-image-band-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .etr-image-tile,
  .etr-image-tile-link,
  .etr-image-tile-img {
    min-height: 190px;
  }

  .etr-flex-section .etr-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .etr-home-layout {
    grid-template-columns: 250px minmax(0, 1fr) 250px;
  }

  .etr-side-stack {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .etr-image-tile,
  .etr-image-tile-link,
  .etr-image-tile-img {
    min-height: 220px;
  }

  .etr-story-index-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .etr-story-index-link {
    min-height: 118px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .etr-story-index-number {
    position: absolute;
    z-index: 2;
    margin: 8px;
    color: var(--etr-dark);
    background: var(--etr-orange);
  }

  .etr-story-index-link {
    position: relative;
  }

  .etr-story-index-media {
    width: 100%;
    height: 132px;
  }

  .etr-story-index-copy {
    padding: 2px 2px 0;
  }

  .etr-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .etr-card-grid .etr-card:first-child {
    grid-column: span 2;
  }

  .etr-card-grid .etr-card:first-child .etr-card-title {
    font-size: 1.72rem;
  }

  .etr-footer-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.55fr) minmax(260px, 0.8fr);
  }

  .etr-footer-flex {
    grid-column: auto;
  }
}
