/* Accrivia site styles (Design A) */

:root {
  --red: #a3141c;
  --red-dark: #82101a;
  --red-tint: #fbf1f2;
  --charcoal: #262529;
  --charcoal-line: #403f44;
  --text: #3f3f44;
  --text-soft: #55555b;
  --muted: #66666c;
  --on-dark: #d6d6da;
  --on-dark-soft: #c9c9ce;
  --on-dark-muted: #a9a9af;
  --grey-bg: #f5f5f6;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --white: #ffffff;
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1200px;
  --gutter: 32px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

[hidden] {
  display: none !important;
}

a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  color: var(--red-dark);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--charcoal);
  line-height: 1.2;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.btn:hover,
.button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}
.btn--outline-red {
  background: transparent;
  color: var(--red);
}
.btn--outline-red:hover {
  color: var(--white);
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--charcoal);
  color: var(--on-dark);
  font-size: 14px;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.topbar a {
  color: var(--on-dark);
}
.topbar a:hover {
  color: var(--white);
}
.topbar__contact a {
  color: var(--white);
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: flex;
  flex-shrink: 0;
}
.logo img {
  display: block;
  height: 38px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
}
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  color: var(--charcoal);
}
.nav__link:hover,
.nav__link.is-current {
  color: var(--red);
}
.nav__link.is-current {
  box-shadow: inset 0 -3px 0 var(--red);
}
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--charcoal);
  cursor: pointer;
}
.nav__toggle svg {
  transition: transform 0.15s;
}
.nav__item.is-open > .nav__toggle svg {
  transform: rotate(180deg);
}
.nav__cta {
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: var(--white);
}
.nav__cta:hover,
.nav__cta.is-current {
  background: var(--red-dark);
  color: var(--white);
}

.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 260px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 30px rgba(38, 37, 41, 0.14);
  font-size: 15px;
  font-weight: 400;
}
.nav__item:hover > .subnav,
.nav__item:focus-within > .subnav,
.nav__item.is-open > .subnav {
  display: block;
}
.nav__item.is-closed > .subnav {
  display: none;
}
.subnav a {
  display: block;
  padding: 8px 20px;
  color: var(--text);
}
.subnav a:hover,
.subnav a.is-current {
  background: var(--grey-bg);
  color: var(--red);
}
.subnav .subnav__nested {
  margin: 0;
  padding: 0;
  list-style: none;
}
.subnav .subnav__nested a {
  padding-left: 36px;
  color: var(--muted);
}

.header-actions {
  display: none;
  gap: 4px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--grey-bg);
  color: var(--red);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav__list,
.mobile-nav__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav__list > li {
  border-bottom: 1px solid var(--line);
}
.mobile-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav a {
  display: block;
  flex: 1;
  padding: 14px 16px;
  color: var(--charcoal);
  font-weight: 700;
}
.mobile-nav a.is-current {
  color: var(--red);
}
.mobile-nav__sub {
  display: none;
  padding-bottom: 8px;
  background: var(--grey-bg);
}
.mobile-nav li.is-open > .mobile-nav__sub {
  display: block;
}
.mobile-nav__sub a {
  padding: 10px 16px 10px 32px;
  font-weight: 400;
  color: var(--text);
}
.mobile-nav__sub .mobile-nav__sub {
  display: block;
  padding-bottom: 0;
}
.mobile-nav__sub .mobile-nav__sub a {
  padding-left: 48px;
  color: var(--muted);
}
.mobile-nav .icon-btn svg {
  transition: transform 0.15s;
}
.mobile-nav li.is-open > .mobile-nav__row .icon-btn svg {
  transform: rotate(180deg);
}

/* ---------- Sections ---------- */

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}
.section--grey {
  background: var(--grey-bg);
}
.section--after-hero {
  padding-top: 56px;
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.section__title {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}
.section__link {
  font-weight: 700;
}

/* ---------- Home: hero ---------- */

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.hero p {
  margin: 0;
  font-size: 18px;
  color: var(--text-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.slider {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.slider__viewport {
  position: relative;
  aspect-ratio: 870 / 440;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(38, 37, 41, 0.18);
  background: var(--charcoal);
}
.slide {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
}
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 40px 22px 18px;
  background: linear-gradient(to top, rgba(20, 20, 22, 0.85), rgba(20, 20, 22, 0));
}
.slide__title {
  font-size: 20px;
  font-weight: 700;
}
.slide__more {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.slide:hover {
  color: var(--white);
}
.slide:hover .slide__more {
  text-decoration: underline;
}
.slider__dots {
  display: flex;
  gap: 8px;
}
.slider__dot {
  width: 40px;
  height: 24px;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slider__dot span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}
.slider__dot[aria-current="true"] span {
  background: var(--red);
}

/* ---------- Home: facts ---------- */

.facts {
  background: var(--grey-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 0 auto;
  padding-top: 26px;
  padding-bottom: 26px;
  list-style: none;
  font-size: 19px;
  font-weight: 900;
  color: var(--charcoal);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
a.card:hover {
  color: var(--text);
  box-shadow: 0 12px 28px rgba(38, 37, 41, 0.12);
  transform: translateY(-2px);
}
.card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 26px;
  border-top: 3px solid var(--red);
}
.card__title {
  margin: 0;
  font-size: 21px;
  color: var(--red);
}
.card__text {
  margin: 0;
  font-size: 16px;
  color: var(--text-soft);
}
.card--dark {
  gap: 12px;
  padding: 32px 28px;
  border: 0;
  background: var(--charcoal);
  color: var(--on-dark);
}
a.card--dark:hover {
  color: var(--on-dark);
}
.card--dark .card__title {
  font-size: 24px;
  color: var(--white);
}
.card--dark .card__text {
  color: var(--on-dark);
}

/* ---------- Home: statements and tiles ---------- */

.statements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  margin-bottom: 48px;
}
.statement {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 3px solid var(--red);
}
.statement h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
}
.statement p {
  margin: 0;
  color: var(--text-soft);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  font-size: 18px;
  font-weight: 900;
  transition: box-shadow 0.15s;
}
.tile:hover {
  color: var(--red);
  box-shadow: 0 8px 20px rgba(38, 37, 41, 0.1);
}
.tile img {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ---------- News cards (home) ---------- */

.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: box-shadow 0.15s;
}
.news-card:hover {
  color: var(--text);
  box-shadow: 0 12px 28px rgba(38, 37, 41, 0.12);
}
.news-card__date {
  font-size: 14px;
  color: var(--muted);
}
.news-card__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}
.news-card:hover .news-card__title {
  color: var(--red);
}
.news-card__text {
  margin: 0;
  font-size: 16px;
  color: var(--text-soft);
}

/* ---------- Testimonial ---------- */

.quote {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote blockquote {
  margin: 0;
  font-size: 21px;
  line-height: 1.6;
  color: var(--charcoal);
}
.quote__by {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Page header ---------- */

.page-hero {
  background: var(--grey-bg);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 44px;
  padding-bottom: 48px;
}
.page-hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
}
.page-hero__date {
  color: var(--muted);
  font-size: 15px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

/* ---------- Page layout with sidebar ---------- */

.page-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 88px;
}
.page-layout__main {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 820px;
}
.page-layout__side {
  flex: 1 1 240px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.page-layout--wide .page-layout__main {
  max-width: none;
}

.side-nav__label {
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}
.side-nav a {
  display: block;
  padding: 9px 14px;
  border-left: 3px solid var(--line);
  color: var(--text);
}
.side-nav a:hover {
  border-left-color: var(--line-strong);
  color: var(--red);
}
.side-nav a.is-current {
  border-left-color: var(--red);
  background: var(--red-tint);
  color: var(--red);
  font-weight: 700;
}
.side-nav ul ul a {
  padding-left: 30px;
  font-size: 15px;
}

.section-select {
  display: none;
}
.section-select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
}
.section-select__button::-webkit-details-marker {
  display: none;
}
.section-select__label {
  color: var(--muted);
}
.section-select[open] .section-select__button svg {
  transform: rotate(180deg);
}
.section-select ul {
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.section-select li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
}
.section-select li.is-nested a {
  padding-left: 32px;
  color: var(--muted);
}
.section-select a.is-current {
  color: var(--red);
  font-weight: 700;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--on-dark);
  font-size: 15px;
}
.contact-box__title {
  padding-bottom: 4px;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
}
.contact-box strong {
  color: var(--white);
}
.contact-box a {
  color: var(--white);
}
.contact-box a:hover {
  text-decoration: underline;
}

/* ---------- Article content ---------- */

.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose li > ul,
.prose li > ol {
  margin: 0.35em 0 0;
}
.prose h2 {
  margin: 1.6em 0 0.6em;
  font-size: 26px;
}
.prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: 22px;
}
.prose h4 {
  margin: 1.4em 0 0.5em;
  font-size: 19px;
}
.prose h5,
.prose h6 {
  margin: 1.4em 0 0.5em;
  font-size: 18px;
}
.prose a:not(.button) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.prose img {
  border-radius: var(--radius-sm);
}
.prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--red);
  color: var(--charcoal);
}
.prose figure {
  margin: 1.5em 0;
}
.prose figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.prose .alignleft {
  float: left;
  margin: 0.3em 24px 12px 0;
}
.prose .alignright {
  float: right;
  margin: 0.3em 0 12px 24px;
}
.prose .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.prose::after {
  content: "";
  display: table;
  clear: both;
}
.prose .frame {
  display: inline-block;
  max-width: 280px;
  margin: 0 0 1.5em;
}
.prose .frame img {
  display: block;
  border-radius: var(--radius);
}
.prose table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--grey-bg);
  color: var(--charcoal);
}
.prose tbody tr:nth-child(even) td {
  background: #fafafa;
}
.prose td ul,
.prose td p {
  margin-bottom: 0.4em;
}
.table-scroll {
  overflow-x: auto;
  margin: 1.5em 0;
}
.table-scroll table {
  margin: 0;
  min-width: 560px;
}
.prose .video {
  position: relative;
  margin: 1.5em 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
}
.prose .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.prose video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: var(--charcoal);
}
.prose .media-text {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: 28px;
  align-items: start;
  margin: 1.5em 0 2em;
}
.prose .media-text--right {
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
}
.prose .media-text__media {
  margin: 0;
}
.prose .media-text__content > :last-child {
  margin-bottom: 0;
}
.prose .button {
  margin: 0 6px 10px 0;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
}
.prose .button:hover {
  color: var(--white);
}

/* ---------- News ---------- */

.news-feature {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}
.news-feature:hover {
  color: var(--text);
  box-shadow: 0 12px 28px rgba(38, 37, 41, 0.12);
}
.news-feature__img {
  flex: 1 1 420px;
  min-height: 280px;
  max-height: 340px;
  object-fit: cover;
}
.news-feature__body {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 36px;
}
.news-feature__title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}
.news-feature:hover .news-feature__title {
  color: var(--red);
}
.news-feature__text {
  margin: 0;
  color: var(--text-soft);
}
.read-more {
  font-weight: 700;
  color: var(--red);
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.news-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.news-row:hover {
  color: var(--text);
}
.news-row__date {
  flex: 0 0 170px;
  padding-top: 3px;
  font-size: 15px;
  color: var(--muted);
}
.news-row__body {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.news-row__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--charcoal);
}
.news-row:hover .news-row__title {
  color: var(--red);
}
.news-row__text {
  font-size: 16px;
  color: var(--text-soft);
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  font-weight: 700;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
}
.pagination a:hover {
  border-color: var(--red);
  color: var(--red);
}
.pagination a[aria-current="page"] {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.article-image {
  display: block;
  max-height: 420px;
  margin-bottom: 32px;
  border-radius: var(--radius);
}
.back-link {
  display: inline-block;
  margin-top: 40px;
  font-weight: 700;
}

/* ---------- Contact ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px;
  margin-bottom: 56px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
}
.contact-card h2 {
  margin: 0;
  font-size: 24px;
}
.contact-card p {
  margin: 0;
  color: var(--text-soft);
}
.contact-card .btn {
  font-size: 18px;
}
.support-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}
.support-block p {
  max-width: 46em;
  margin: 0 0 20px;
  color: var(--text-soft);
}
.support-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.support-links a {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--grey-bg);
  color: var(--charcoal);
  font-size: 18px;
  font-weight: 900;
}
.support-links a:hover {
  color: var(--red);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--on-dark-soft);
  font-size: 15px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
}
.footer-col__title {
  display: block;
  padding-bottom: 12px;
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
  list-style: none;
}
.footer-col__title::-webkit-details-marker {
  display: none;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  color: var(--on-dark-soft);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact a {
  color: var(--white);
}
.footer-col summary {
  pointer-events: none;
}
.footer-col summary .plus {
  display: none;
}
.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--charcoal-line);
  font-size: 14px;
  color: var(--on-dark-muted);
}

/* ---------- 404 ---------- */

.not-found {
  padding-top: 96px;
  padding-bottom: 120px;
}
.not-found h1 {
  margin: 0 0 16px;
  font-size: 44px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .nav {
    display: none;
  }
  .header-actions {
    display: flex;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .topbar {
    display: none;
  }
  .site-header__inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .logo img {
    height: 28px;
  }
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .section__head {
    margin-bottom: 24px;
  }
  .section--after-hero {
    padding-top: 24px;
  }
  .section__title {
    font-size: 26px;
  }
  .hero__inner {
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 16px;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .slide__caption {
    padding: 28px 14px 12px;
  }
  .slide__title {
    font-size: 15px;
  }
  .slide__more {
    display: none;
  }
  .facts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 17px;
  }
  .card-grid {
    gap: 20px;
  }
  .card__body {
    padding: 16px 18px 20px;
  }
  .card__title {
    font-size: 19px;
  }
  .card__text {
    font-size: 15px;
  }
  .statements {
    gap: 32px;
    margin-bottom: 32px;
  }
  .statement h2 {
    font-size: 23px;
  }
  .quote blockquote {
    font-size: 17px;
  }
  .quote__by {
    font-size: 13px;
  }
  .page-hero__inner {
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .page-hero h1 {
    font-size: 32px;
  }
  .page-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 16px;
    padding-bottom: 40px;
  }
  .page-layout__side {
    display: contents;
  }
  .page-layout__main {
    order: 2;
    width: 100%;
    flex-basis: auto;
    padding-top: 24px;
  }
  .side-nav {
    display: none;
  }
  .section-select {
    display: block;
    order: 1;
    width: 100%;
  }
  .contact-box {
    order: 3;
    width: 100%;
    margin-top: 28px;
    padding: 20px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .prose h3 {
    font-size: 19px;
  }
  .prose .alignleft,
  .prose .alignright {
    float: none;
    margin: 0 0 16px;
  }
  .prose .media-text {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-feature {
    margin-bottom: 28px;
  }
  .news-feature__img {
    flex-basis: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .news-feature__body {
    padding: 18px 18px 22px;
    gap: 8px;
  }
  .news-feature__title {
    font-size: 23px;
  }
  .news-row {
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
  }
  .news-row__date {
    flex-basis: auto;
    padding-top: 0;
    font-size: 14px;
  }
  .news-row__body {
    flex-basis: auto;
  }
  .news-row__title {
    font-size: 18px;
  }
  .news-row__text {
    font-size: 15px;
  }
  .contact-cards {
    gap: 20px;
    margin-bottom: 40px;
  }
  .contact-card {
    padding: 22px;
    gap: 10px;
  }
  .contact-card h2 {
    font-size: 21px;
  }
  .contact-card .btn {
    width: 100%;
    font-size: 17px;
  }
  .support-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .support-links a {
    padding: 16px 18px;
    font-size: 17px;
  }
  .site-footer__inner {
    gap: 0;
    padding-top: 32px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-contact {
    padding-bottom: 20px;
  }
  .footer-col {
    border-top: 1px solid var(--charcoal-line);
  }
  .footer-col:last-child {
    border-bottom: 1px solid var(--charcoal-line);
  }
  .footer-col summary {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    pointer-events: auto;
    cursor: pointer;
    font-size: 16px;
  }
  .footer-col summary .plus {
    display: inline;
  }
  .footer-col[open] summary .plus {
    transform: rotate(45deg);
  }
  .footer-col ul {
    padding-bottom: 16px;
  }
  .site-footer__bottom {
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .slide,
  .card,
  .nav__toggle svg {
    transition: none;
  }
}
