/*
Theme Name: AFUL Tournemire
Theme URI: https://example.com/
Author: AFUL Tournemire
Description: Theme WordPress personnalise pour l'AFUL Tournemire, association de coproprietaires.
Version: 1.36.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aful-tournemire
Tags: association, copropriete, responsive, custom-logo, custom-menu, documents
*/

:root {
  --brick: #c66d4d;
  --brick-dark: #934832;
  --green: #67764c;
  --green-dark: #3f4d31;
  --sage: #dfe6d8;
  --cream: #fbf7ef;
  --white: #ffffff;
  --light: #f2f3ee;
  --line: #d8ded2;
  --ink: #232620;
  --muted: #697064;
  --shadow: 0 22px 60px rgba(55, 61, 48, 0.12);
  --shadow-soft: 0 10px 30px rgba(55, 61, 48, 0.08);
  --container: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0, var(--cream) 420px, #f5f1e9 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--brick-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(103, 118, 76, 0.18);
  background: rgba(255, 252, 246, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(44, 54, 45, 0.05);
}

.container,
.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 56px);
  min-height: 138px;
}

.urgent-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 24px;
  background: #b62525;
  color: var(--white);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.urgent-banner:hover,
.urgent-banner:focus {
  background: #941b1b;
  color: var(--white);
}

.urgent-banner__label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.urgent-banner__title {
  overflow: hidden;
  max-width: min(760px, 70vw);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 300px;
  color: var(--ink);
}

.brand .custom-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand .custom-logo {
  width: auto;
  max-width: 270px;
  max-height: 112px;
}

.brand__fallback {
  display: inline-grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
  min-width: 310px;
}

.brand__building {
  position: relative;
  width: 96px;
  height: 62px;
  border-bottom: 2px solid rgba(198, 109, 77, 0.65);
}

.brand__building::before {
  position: absolute;
  inset: 12px 16px 14px;
  background:
    linear-gradient(var(--brick), var(--brick)) 42% 35% / 22% 66% no-repeat,
    linear-gradient(var(--brick), var(--brick)) 13% 58% / 27% 28% no-repeat,
    linear-gradient(var(--brick), var(--brick)) 74% 58% / 27% 28% no-repeat,
    linear-gradient(#f5eadc, #f5eadc) 16% 35% / 24% 44% no-repeat,
    linear-gradient(#f5eadc, #f5eadc) 74% 35% / 24% 44% no-repeat;
  filter: drop-shadow(0 6px 9px rgba(148, 72, 50, 0.14));
  content: "";
}

.brand__building::after {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 18px;
  background:
    radial-gradient(ellipse at 18% 70%, var(--green) 0 20%, transparent 21%),
    radial-gradient(ellipse at 82% 70%, var(--green) 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 58%, #7d8d60 0 14%, transparent 15%);
  content: "";
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.58rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__name .brand__accent {
  color: var(--brick);
}

.brand__baseline {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

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

.primary-menu {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0;
  width: 100%;
}

.primary-menu > li {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 112px;
}

.primary-menu > li + li::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 1px;
  background: rgba(198, 109, 77, 0.28);
  content: "";
}

.primary-menu a {
  display: grid;
  grid-template-rows: 34px auto;
  justify-items: center;
  align-items: center;
  gap: 8px;
  align-items: center;
  min-height: 96px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  text-decoration: none;
}

.menu-link__icon {
  display: grid;
  place-items: center;
  color: var(--brick);
}

.menu-link__icon svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.menu-link__text {
  display: block;
  max-width: 150px;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a {
  background: transparent;
  color: var(--brick-dark);
}

.primary-menu .current-menu-item > a::after,
.primary-menu a:hover::after,
.primary-menu a:focus::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 7px;
  background: var(--brick);
  content: "";
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.site-main {
  padding: 0 0 78px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 0 calc(50% - 50vw) 42px;
  padding: 32px max(24px, calc((100vw - var(--container)) / 2)) 44px;
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(251, 247, 239, 0.74)),
    linear-gradient(135deg, #fff, #efe8da);
}

.hero::before {
  display: none;
}

.hero::after {
  position: absolute;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  left: max(20px, calc((100vw - var(--container)) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 109, 77, 0.55), transparent);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.hero__content::before {
  display: block;
  width: 96px;
  height: 3px;
  margin-bottom: 26px;
  background: var(--brick);
  content: "";
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brick-dark);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 5.6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero__lead,
.page-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.hero__note span {
  padding: 11px 13px;
  border: 1px solid rgba(103, 118, 76, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.hero__media {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: clamp(300px, 42vw, 540px);
  place-items: center;
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(103, 118, 76, 0.16);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(55, 61, 48, 0.14);
}

.hero__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brick), rgba(103, 118, 76, 0.75));
  content: "";
}

.hero__picture,
.hero__image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__image {
  min-height: clamp(300px, 42vw, 540px);
  max-height: none;
  object-fit: cover;
  border-radius: 10px;
}

.hero__logo {
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
}

.hero__placeholder {
  display: grid;
  width: 100%;
  min-height: clamp(300px, 42vw, 540px);
  place-items: center;
  border: 1px dashed rgba(103, 118, 76, 0.34);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 850;
  text-align: center;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--brick);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(148, 72, 50, 0.2);
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--brick-dark);
  color: var(--white);
}

.button--secondary {
  background: var(--green);
  box-shadow: 0 10px 22px rgba(63, 77, 49, 0.2);
}

.button--secondary:hover,
.button--secondary:focus {
  background: var(--green-dark);
}

.section {
  margin: 64px 0;
}

.home-focus {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.section--band {
  margin-inline: calc(50% - 50vw);
  padding: 64px max(32px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.55);
}

.section__header {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-card {
  max-width: none;
  padding: 28px;
  border: 1px solid rgba(216, 222, 210, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.section__header h2,
.entry-content h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.section__header p {
  color: var(--muted);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card,
.entry-content,
.legal-box,
.document-list,
.news-block {
  border: 1px solid rgba(216, 222, 210, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brick), var(--green));
  opacity: 0.75;
  content: "";
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(198, 109, 77, 0.14), rgba(103, 118, 76, 0.12));
  color: var(--brick-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.quick-card {
  display: block;
  min-height: 100%;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-card:hover,
.quick-card:focus {
  transform: translateY(-3px);
  border-color: rgba(198, 109, 77, 0.38);
  box-shadow: 0 18px 44px rgba(55, 61, 48, 0.14);
}

.quick-card:hover h3,
.quick-card:focus h3 {
  color: var(--brick-dark);
}

.home-news {
  margin-top: 34px;
}

.home-news .news-card {
  max-width: 860px;
}

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

.news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 210, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.news-card::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brick), var(--green));
  content: "";
}

.news-card--urgent::before {
  background: #b62525;
}

.news-card__link {
  display: grid;
  min-height: 100%;
  color: var(--ink);
  text-decoration: none;
}

.news-card__media {
  margin: 0;
  background: var(--light);
}

.news-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card__body {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.news-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.news-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.25;
}

.news-card__date {
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

.news-card__badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 9px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(182, 37, 37, 0.1);
  color: #a32020;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.news-card__link:hover h3,
.news-card__link:focus h3 {
  color: var(--brick-dark);
}

.news-empty {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.news-empty h3 {
  margin: 0 0 8px;
}

.news-empty p {
  margin: 0;
  color: var(--muted);
}

.single-news-image {
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: 8px;
}

.single-news-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.photo-card {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(103, 118, 76, 0.22);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.photo-card__image,
.photo-card__empty {
  display: block;
  width: 100%;
  height: 320px;
}

.photo-card__image {
  object-fit: cover;
}

.photo-card__empty {
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(198, 109, 77, 0.08), rgba(103, 118, 76, 0.13)), var(--light);
  color: var(--green-dark);
  font-weight: 850;
  text-align: center;
}

.photo-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--white);
  color: var(--green-dark);
  font-weight: 850;
  line-height: 1.2;
}

.page-header {
  margin: 44px 0 34px;
  padding: 46px;
  border-left: 6px solid var(--brick);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 239, 0.92)),
    var(--white);
  box-shadow: var(--shadow);
}

.entry-content {
  padding: clamp(24px, 4vw, 46px);
}

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

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

.legal-box {
  padding: 28px;
  border-left: 6px solid var(--green);
}

.about-intro-card {
  display: grid;
  gap: 14px;
}

.about-intro-card h2,
.about-intro-card h3,
.about-intro-card p {
  margin: 0;
}

.about-intro-card h3 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.16rem;
}

.admin-card {
  text-align: center;
}

.admin-card__avatar {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--light);
  color: var(--brick-dark);
  font-weight: 900;
}

.document-list,
.news-block {
  padding: 26px;
}

.document-item,
.news-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.document-item:first-child,
.news-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.document-item h3,
.news-item h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  padding: 18px 20px;
  border-left: 5px solid var(--brick);
  border-radius: 8px;
  background: rgba(198, 109, 77, 0.1);
}

.merged-section {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.recommendation-section .section__header {
  max-width: 920px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.contact-list strong {
  color: var(--green-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.heat-page__header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 239, 0.9)),
    radial-gradient(circle at 82% 20%, rgba(103, 118, 76, 0.14), transparent 28%);
}

.heat-page {
  display: grid;
  gap: 34px;
}

.heat-section {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.heat-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.timeline div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.timeline strong,
.stat-card strong {
  color: var(--brick-dark);
  font-size: 1.35rem;
  line-height: 1;
}

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

.stat-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(198, 109, 77, 0.08), rgba(103, 118, 76, 0.1)), var(--white);
  box-shadow: var(--shadow-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(103, 118, 76, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-dark);
  font-weight: 800;
}

.energy-mix {
  align-items: start;
  margin-top: 24px;
}

.energy-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--muted);
}

.energy-list li::marker {
  color: var(--brick);
}

.energy-mix__chart {
  margin-top: 0;
}

.heat-summary {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(198, 109, 77, 0.25);
  border-radius: 8px;
  background: rgba(198, 109, 77, 0.08);
}

.schema-card {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.schema-card__image__picture,
.schema-card__image {
  display: block;
  width: 100%;
}

.schema-card__image {
  max-height: 560px;
  object-fit: contain;
  background: var(--white);
}

.schema-card__empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(198, 109, 77, 0.08), rgba(103, 118, 76, 0.12)), var(--light);
  color: var(--green-dark);
  font-weight: 850;
  text-align: center;
}

.schema-card figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 4px solid var(--brick);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 239, 0.9)),
    radial-gradient(circle at 16% 20%, rgba(198, 109, 77, 0.12), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(103, 118, 76, 0.14), transparent 24%);
  color: var(--ink);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 0;
  text-align: center;
}

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

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
}

.footer-brand__logo .custom-logo-link {
  display: inline-flex;
}

.footer-brand__logo .custom-logo {
  width: auto;
  max-width: 210px;
  max-height: 88px;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-brand__copy {
  color: var(--green-dark);
  font-weight: 800;
}

.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: 1080px) {
  .site-header__inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .primary-menu > li {
    min-width: 96px;
  }

  .primary-menu a {
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__media {
    min-height: 360px;
  }

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

@media (max-width: 940px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .brand {
    min-width: 0;
  }

  .brand__fallback {
    grid-template-columns: 74px 1fr;
    min-width: 0;
  }

  .brand__building {
    width: 74px;
    height: 52px;
  }
  .site-header__inner {
    align-items: center;
    min-height: 74px;
    padding: 8px 0;
  }

  .brand__building {
    display: none;
  }

  .brand__fallback {
    display: block;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .brand__baseline {
    display: none;
  }

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

  .site-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: block;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 12px 0 16px;
  }

  .primary-menu > li {
    display: block;
    min-width: 0;
  }

  .primary-menu > li + li::before {
    display: none;
  }

  .primary-menu a {
    display: flex;
    min-height: 54px;
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 0;
    text-align: left;
  }

  .menu-link__icon svg {
    width: 24px;
    height: 24px;
  }

  .menu-link__text {
    max-width: none;
  }

  .primary-menu .current-menu-item > a::after,
  .primary-menu a:hover::after,
  .primary-menu a:focus::after {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

  .hero__note,
  .stats-grid,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .timeline div {
    grid-template-columns: 1fr;
  }

  .hero__media {
    min-height: clamp(360px, 92vw, 520px);
  }

  .hero__image {
    min-height: clamp(360px, 92vw, 520px);
  }

  .page-header {
    padding: 28px;
  }
}

@media (max-width: 760px) {
  .grid--3,
  .grid--2,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    padding: 34px 0;
  }

  .urgent-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
    text-align: left;
  }

  .urgent-banner__title {
    max-width: 100%;
    white-space: normal;
  }

  .news-card__top {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
