:root {
  --amigo-bg: #f3f0ea;
  --amigo-panel: #ffffff;
  --amigo-panel-soft: #f7f3eb;
  --amigo-text: #202227;
  --amigo-muted: #5a6472;
  --amigo-border: #d9dde4;
  --amigo-dark: #0f1723;
  --amigo-primary: #ff5a3d;
  --amigo-primary-deep: #d9482f;
  --amigo-accent: #c98b2d;
  --amigo-radius-lg: 22px;
  --amigo-radius-md: 18px;
  --amigo-shadow: 0 18px 40px rgba(15, 23, 35, 0.08);
  --amigo-container: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--amigo-text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f6f7fb 24%, #f3f5f9 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

h1,
h2,
h3,
h4,
.brand-name {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.08;
}

p {
  margin: 0 0 1rem;
}

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

body.nav-open {
  overflow: hidden;
}

.topbar {
  background: linear-gradient(90deg, #09131f 0%, #102132 52%, #0b1825 100%);
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding: 0.55rem 0;
}

.topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.topbar__copy,
.topbar__link {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar__link:hover {
  opacity: 0.82;
}

.topbar__link--muted {
  color: rgba(255, 255, 255, 0.62);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(217, 221, 228, 0.9);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.9rem;
  padding: 0.7rem 0;
  position: relative;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.brand-block--with-logo {
  flex: 0 0 auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
}

.brand-logo img {
  max-height: 3rem;
  width: auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo .custom-logo-link,
.footer-brand__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(15, 23, 35, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 35, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 35, 0.18);
  box-shadow: 0 14px 36px rgba(15, 23, 35, 0.12);
}

.menu-toggle__line {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--amigo-dark);
}

.menu-panel {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  margin-left: auto;
  min-width: 0;
}

.menu-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.primary-nav {
  display: flex;
  justify-content: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.nav-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.66rem 0.95rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amigo-muted);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link-secondary:hover {
  background: #f4f6f8;
  border-color: rgba(15, 23, 35, 0.08);
  color: var(--amigo-text);
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #31404f;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-menu > .menu-item-has-children > a::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  margin-left: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.primary-menu > li > a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: #f3f6f8;
  color: var(--amigo-text);
  transform: translateY(-1px);
}

.submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667385;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.submenu-toggle::before {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
}

.submenu-toggle:hover,
.primary-menu > li:hover > .submenu-toggle,
.primary-menu > li:focus-within > .submenu-toggle,
.primary-menu > li.is-open > .submenu-toggle {
  background: #f3f6f8;
  color: var(--amigo-text);
}

.primary-menu > li.is-open > .submenu-toggle::before {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  min-width: 17rem;
  list-style: none;
  margin: 0;
  padding: 0.7rem;
  display: grid;
  gap: 0.35rem;
  border-radius: 20px;
  border: 1px solid rgba(217, 221, 228, 0.95);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 22px 55px rgba(15, 23, 35, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.primary-menu .sub-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  font-size: 0.88rem;
  background: transparent;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a {
  background: #f4f6f8;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cta,
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.nav-cta,
.button--primary,
.search-submit {
  background: var(--amigo-primary);
  color: #fff;
  padding: 0.82rem 1.15rem;
  box-shadow: 0 12px 30px rgba(255, 90, 61, 0.18);
}

.nav-cta:hover,
.button--primary:hover,
.search-submit:hover {
  background: var(--amigo-primary-deep);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.95rem 1.35rem;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.95rem 1.35rem;
}

.hero-band {
  padding: 3.75rem 0 2.4rem;
}

.hero-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.post-card,
.sidebar-card,
.single-body-card,
.page-card,
.footer-panel,
.empty-state {
  border-radius: var(--amigo-radius-lg);
  border: 1px solid var(--amigo-border);
  box-shadow: var(--amigo-shadow);
}

.hero-copy {
  background: linear-gradient(145deg, #0f1723 0%, #173247 100%);
  color: #fff;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -8% -22% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 90, 61, 0.32), rgba(255, 90, 61, 0));
}

.hero-copy h1 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42rem;
}

.hero-copy__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-copy__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.hero-copy__chips span,
.post-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.footer-eyebrow,
.sidebar-eyebrow,
.hero-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.eyebrow {
  color: var(--amigo-primary);
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(201, 139, 45, 0.16), transparent 34%),
    linear-gradient(180deg, #f7f3eb 0%, #ffffff 100%);
  padding: 1.8rem;
  border: 1px solid rgba(217, 221, 228, 0.95);
  box-shadow: 0 20px 44px rgba(15, 23, 35, 0.08);
}

.hero-card__title {
  margin: 0.9rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-copy h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 42rem;
  color: #465363;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.hero-metric {
  border-radius: 18px;
  padding: 1rem;
  background: rgba(15, 23, 35, 0.04);
}

.hero-metric strong {
  display: block;
  font-size: 1.2rem;
  color: var(--amigo-dark);
}

.hero-metric span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--amigo-muted);
}

.hero-band--compact {
  padding-top: 2.5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.7fr);
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.posts-grid {
  display: grid;
  gap: 1.5rem;
}

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

.journal-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  padding: 0.3rem 0 0.1rem;
}

.journal-section-heading h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.journal-section-heading a {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amigo-primary);
}

.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 1.3rem;
  padding: 1.1rem;
  border-radius: var(--amigo-radius-lg);
  border: 1px solid var(--amigo-border);
  background:
    radial-gradient(circle at right top, rgba(201, 139, 45, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 243, 235, 0.9) 100%);
  box-shadow: var(--amigo-shadow);
  overflow: hidden;
  position: relative;
}

.featured-story::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--amigo-primary), var(--amigo-accent));
}

.featured-story__content {
  display: grid;
  align-content: center;
  gap: 0.95rem;
  padding: 0.45rem 0.35rem 0.45rem 0.8rem;
}

.featured-story__title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.featured-story__excerpt {
  color: var(--amigo-muted);
  max-width: 40rem;
}

.featured-story__media {
  min-height: 100%;
}

.featured-story__media img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border-radius: calc(var(--amigo-radius-lg) - 6px);
  object-fit: cover;
}

.featured-story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-story__ghost {
  background: #fff;
  color: var(--amigo-text);
  border: 1px solid var(--amigo-border);
  box-shadow: none;
}

.post-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(217, 221, 228, 0.9);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 35, 0.06);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 23, 35, 0.12);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card__body {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.25rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--amigo-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.post-pill {
  background: rgba(255, 90, 61, 0.12);
  border-color: rgba(255, 90, 61, 0.12);
  color: var(--amigo-primary);
}

.post-card__title {
  margin: 0;
  font-size: clamp(1.28rem, 1.7vw, 1.7rem);
}

.post-card__title a:hover,
.post-card__link:hover,
.sidebar-list a:hover,
.footer-menu a:hover,
.footer-links a:hover {
  color: var(--amigo-primary);
}

.post-card__excerpt {
  color: var(--amigo-muted);
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.3rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.post-card__link::after {
  content: "→";
}

.sidebar-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  top: 7rem;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.35rem;
}

.sidebar-card--form {
  background:
    radial-gradient(circle at top right, rgba(201, 139, 45, 0.14), transparent 35%),
    linear-gradient(180deg, #f7f3eb 0%, #ffffff 100%);
}

.sidebar-card--notice {
  border-width: 1px;
}

.sidebar-card--notice-success {
  background: #edf8f1;
  border-color: #9ed1ad;
}

.sidebar-card--notice-error {
  background: #fff3f1;
  border-color: #efb3ab;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
}

.sidebar-card p {
  color: var(--amigo-muted);
}

.sidebar-card--dark {
  background: var(--amigo-dark);
  color: #fff;
}

.sidebar-card--dark p {
  color: rgba(255, 255, 255, 0.76);
}

.sidebar-form {
  display: grid;
  gap: 0.85rem;
}

.sidebar-form__field {
  display: grid;
  gap: 0.4rem;
}

.sidebar-form__field span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amigo-muted);
}

.sidebar-form__field input,
.sidebar-form__field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--amigo-border);
  background: #fff;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--amigo-text);
}

.sidebar-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.sidebar-form__submit {
  width: 100%;
}

.sidebar-list,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.footer-menu a {
  color: var(--amigo-text);
  font-weight: 700;
}

.widget-title {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.search-field {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--amigo-border);
  background: #fff;
  padding: 0.95rem 1rem;
  font: inherit;
}

.single-hero,
.page-card {
  padding-top: 2.75rem;
}

.single-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
}

.single-hero--page {
  grid-template-columns: 1fr;
}

.single-hero h1 {
  margin: 0.65rem 0 1rem;
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
}

.single-hero__media img {
  border-radius: var(--amigo-radius-lg);
  box-shadow: var(--amigo-shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.single-body-card,
.page-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.6rem;
}

.single-intro {
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8f4ec 0%, #ffffff 100%);
  border: 1px solid var(--amigo-border);
}

.single-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.single-hero__ghost {
  background: #fff;
  color: var(--amigo-text);
  border: 1px solid var(--amigo-border);
  box-shadow: none;
}

.single-body {
  font-size: 1.03rem;
}

.single-body h2,
.single-body h3,
.single-body h4 {
  margin-top: 1.7em;
  margin-bottom: 0.7rem;
}

.single-body p,
.single-body li {
  color: #334150;
}

.single-body ul,
.single-body ol {
  padding-left: 1.35rem;
}

.single-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--amigo-border);
}

.pagination-wrap {
  padding-top: 0.5rem;
}

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

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--amigo-border);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.nav-links .current {
  background: var(--amigo-dark);
  color: #fff;
  border-color: var(--amigo-dark);
}

.site-footer {
  border-top: 1px solid var(--amigo-border);
  background: #f4f1ea;
}

.site-footer__intro,
.site-footer__bottom {
  border-top: 1px solid rgba(217, 221, 228, 0.85);
}

.site-footer__intro {
  border-top: 0;
  border-bottom: 1px solid rgba(217, 221, 228, 0.85);
}

.footer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 1.8rem;
  padding: 3rem 0;
}

.footer-intro__copy h2 {
  margin: 0.7rem 0 0.95rem;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
}

.footer-intro__copy p:last-child {
  max-width: 44rem;
  color: var(--amigo-muted);
}

.footer-support-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #0f1723 0%, #172535 100%);
  color: #fff;
  box-shadow: var(--amigo-shadow);
}

.footer-support-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.footer-support-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.footer-support-card__lines {
  display: grid;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-support-card__lines p {
  margin: 0;
}

.site-footer__main {
  background: #f4f1ea;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
  padding: 2.35rem 0;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding-right: 1rem;
}

.footer-brand__logo img {
  max-height: 3rem;
  width: auto;
}

.footer-brand__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amigo-primary);
}

.footer-brand__description {
  color: #4e5a69;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 221, 228, 0.95);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4e5a69;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 221, 228, 0.95);
  color: #4e5a69;
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  border-color: rgba(255, 90, 61, 0.35);
  color: var(--amigo-primary);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.4rem;
}

.footer-column h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--amigo-dark);
}

.footer-column__links {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-column__links a {
  color: #465363;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-column__links a:hover {
  color: var(--amigo-primary);
}

.footer-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  padding: 1rem 0 1.2rem;
  color: var(--amigo-muted);
  font-size: 0.82rem;
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
}

.cookie-consent.is-hidden {
  display: none;
}

.cookie-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  max-width: min(960px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(217, 221, 228, 0.95);
  background: rgba(15, 23, 35, 0.94);
  box-shadow: 0 22px 48px rgba(15, 23, 35, 0.18);
  color: #fff;
}

.cookie-consent__title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
}

.cookie-consent__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.cookie-consent__link {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.cookie-consent__button {
  min-width: 7.25rem;
}

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

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    display: none;
    padding: 0;
    border-radius: 24px;
    border: 1px solid rgba(217, 221, 228, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(15, 23, 35, 0.14);
  }

  .menu-panel.is-open {
    display: flex;
  }

  .menu-panel__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.1rem;
  }

  .primary-nav {
    justify-content: stretch;
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

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

  .primary-menu > li {
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 1px solid rgba(217, 221, 228, 0.7);
    padding-bottom: 0.4rem;
  }

  .primary-menu > li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .primary-menu .sub-menu {
    position: static;
    min-width: 0;
    margin-top: 0.25rem;
    padding: 0.15rem 0 0.45rem 1rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    width: 100%;
    flex-basis: 100%;
  }

  .primary-menu .menu-item-has-children.is-open > .sub-menu {
    display: grid;
  }

  .primary-menu > li > a {
    flex: 1 1 auto;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

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

  .submenu-toggle {
    margin-left: auto;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-link-secondary,
  .nav-cta {
    justify-content: center;
  }

  .hero-band__inner,
  .content-grid,
  .single-hero,
  .featured-story,
  .footer-intro,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
    top: auto;
  }

  .posts-grid--cards {
    grid-template-columns: 1fr;
  }

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

  .cookie-consent__inner {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions {
    justify-content: flex-start;
  }

  .topbar__actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--amigo-container), calc(100% - 1.2rem));
  }

  .hero-copy,
  .hero-card,
  .post-card__body,
  .sidebar-card,
  .single-body-card,
  .page-card,
  .footer-support-card {
    padding: 1.2rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__actions,
  .hero-copy__actions,
  .hero-copy__chips,
  .single-hero__actions {
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .cookie-consent {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .cookie-consent__inner {
    padding: 0.95rem 1rem;
  }

  .nav-row {
    min-height: 4.3rem;
    gap: 0.8rem;
  }

  .brand-tag {
    display: none;
  }

  .brand-logo img {
    max-height: 2.35rem;
  }

  .journal-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-intro {
    padding: 1.8rem 0;
  }

  .footer-main {
    padding: 1.6rem 0;
  }
}

.single-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted, #64748b);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.single-breadcrumbs a:hover,
.single-breadcrumbs a:focus-visible {
  color: var(--primary, #0f766e);
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1.5rem 0 0;
  padding: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
}

.author-card__avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.author-card__eyebrow {
  margin: 0;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.author-card__name {
  margin: 0.3rem 0 0;
  font-size: 1.2rem;
}

.author-card__meta {
  margin: 0.3rem 0 0;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
}

.author-card__bio {
  margin: 0.65rem 0 0;
  color: #475569;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .author-card {
    grid-template-columns: 1fr;
  }

  .author-card__avatar {
    width: 3.75rem;
    height: 3.75rem;
  }
}
