/* ПРОСТО ПРО — public site styles.
   Easy-to-read rules: large text, 1.6 line height, left-aligned, no justified text, no italics for emphasis,
   underlined links, strong contrast (AA+), large tap targets, sizes in rem so the A−/A+ buttons scale everything. */

:root {
  --blue: #1d4fb8;
  --blue-dark: #143a8a;
  --blue-darker: #0e2a66;
  --blue-soft: #eaf0fb;
  --yellow: #ffd23f;
  --yellow-dark: #f2bd00;
  --ink: #16191f;
  --muted: #4a5261;
  --line: #d6dce6;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --ok: #17663a;
  --ok-soft: #e6f4ec;
  --err: #a5121b;
  --err-soft: #fdecec;
  --warn-soft: #fff6d6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 8%);
  --shadow-lg: 0 12px 32px rgb(16 24 40 / 16%);
  --focus: 0 0 0 3px #fff, 0 0 0 6px #ffb000;
  --wrap: 80rem;
  --gutter: 1rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* Arial everywhere; Android has no Arial, so use its metric-compatible twins there. */
  font-family: Arial, 'Liberation Sans', Arimo, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
button,
input,
select,
textarea {
  font-family: inherit;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--blue-darker);
  text-decoration-thickness: 0.14em;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}
h2 {
  font-size: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}
em,
i {
  font-style: normal;
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
  }
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

.icon {
  flex: none;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}
.btn-donate {
  background: var(--yellow);
  color: var(--ink);
}
.btn-donate:hover {
  background: var(--yellow-dark);
  color: var(--ink);
}
.btn-donate .icon {
  color: #c4122f;
}
.btn-large {
  min-height: 3.5rem;
  padding-inline: 1.8rem;
}

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

.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-height: 3.25rem;
  padding-block: 0.25rem;
}
.social {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: var(--blue-dark);
}
.social a:hover {
  background: var(--blue-soft);
}
.tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.text-size {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.text-size-label {
  color: var(--muted);
  margin-right: 0.25rem;
}
.text-size button {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.text-size button[data-font='-1'] {
  font-size: 0.9rem;
}
.text-size button[data-font='1'] {
  font-size: 1.2rem;
}
.text-size button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.langs {
  display: flex;
  border: 2px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.langs a {
  display: grid;
  place-items: center;
  min-width: 3.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.langs a[aria-current='true'] {
  background: var(--blue);
  color: #fff;
}
@media (max-width: 30rem) {
  .text-size-label {
    display: none;
  }
}

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
}
.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 10px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  white-space: nowrap;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blue-darker);
}
.brand-sub {
  font-size: 0.875rem;
  color: var(--muted);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle .icon-close,
.menu-toggle[aria-expanded='true'] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded='true'] .icon-close {
  display: inline;
}

/* Mobile and tablet: menu opens as a panel below the header. */
.site-nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem var(--gutter) 1.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}
.site-nav.is-open {
  display: block;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--line);
}
.nav-link {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.5rem 0.25rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.nav-item.is-active > .nav-link {
  color: var(--blue);
}
.sub-toggle {
  width: 3.5rem;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
}
.sub-toggle .icon {
  transition: transform 0.2s;
}
.sub-toggle[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}
.sub-list {
  display: none;
  grid-column: 1 / -1;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0 0 0 1rem;
  border-left: 4px solid var(--blue-soft);
}
.sub-toggle[aria-expanded='true'] + .sub-list {
  display: block;
}
.sub-list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.25rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.sub-list a:hover,
.sub-list a.is-active {
  color: var(--blue);
  text-decoration: underline;
}
.site-nav .btn-donate {
  margin-top: 1rem;
  width: 100%;
}

/* Wide screens: horizontal menu with drop-downs. */
@media (min-width: 80rem) {
  .menu-toggle {
    display: none;
  }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav-list {
    display: flex;
    gap: 0.25rem;
  }
  .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    border: 0;
  }
  .nav-link {
    min-height: 3rem;
    padding: 0.5rem 0.25rem 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
  }
  .nav-item:not(.has-sub) .nav-link {
    padding-right: 0.75rem;
  }
  .nav-link:hover,
  .nav-item.is-active > .nav-link {
    color: var(--blue);
    text-decoration: underline;
  }
  .sub-toggle {
    width: 2rem;
    height: 3rem;
    padding: 0;
  }
  .sub-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 18rem;
    margin: 0;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .nav-item:hover > .sub-list,
  .nav-item:focus-within > .sub-list {
    display: block;
  }
  .nav-item:hover > .sub-toggle .icon {
    transform: rotate(180deg);
  }
  .sub-list a {
    border-radius: var(--radius-sm);
    padding-inline: 0.75rem;
  }
  .sub-list a:hover {
    background: var(--blue-soft);
  }
  .site-nav .btn-donate {
    margin: 0;
    width: auto;
    white-space: nowrap;
  }
}

/* ---------------------------------------------------------------- page structure */

.page {
  padding-block: 1.5rem 3rem;
}
.page-narrow {
  max-width: 52rem;
}
.page-header {
  margin-bottom: 1.5rem;
}
.page-intro {
  font-size: 1.15rem;
}
.home-section {
  margin-block: 2.5rem;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumbs li + li::before {
  content: '›';
  color: var(--muted);
  font-size: 1.2em;
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
}
.breadcrumbs [aria-current] {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.section-heading h2 {
  margin: 0;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 6px solid;
  margin-bottom: 1.25rem;
}
.notice-ok {
  background: var(--ok-soft);
  border-color: var(--ok);
}
.notice-error {
  background: var(--err-soft);
  border-color: var(--err);
}
.notice-info {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.notice-warn {
  background: var(--warn-soft);
  border-color: var(--yellow-dark);
}
.empty {
  padding: 2rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

/* ---------------------------------------------------------------- slider */

.slider {
  margin-top: 1.5rem;
}
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.slides::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  align-content: start;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #fff 45%, var(--blue-soft));
}
.slide-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 30%;
}
.slide-body {
  max-width: 42rem;
  padding: 1.5rem 1.25rem 2rem;
}
.slide-body::before {
  content: '';
  display: block;
  width: 3rem;
  height: 0.35rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--yellow);
}
.slide-title {
  margin: 0;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--blue-darker);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.slide-text {
  margin: 0.9rem 0 0;
  font-size: 1.2rem;
  line-height: 1.55;
}
.slide-body strong {
  text-decoration: underline var(--yellow);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none;
}
.slide-body .btn {
  margin-top: 1.5rem;
}
@media (min-width: 45rem) {
  .slide {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-content: stretch;
    min-height: 24rem;
  }
  /* Fill the row without making it taller: the text decides the height. */
  .slide-photo {
    height: 0;
    min-height: 100%;
    aspect-ratio: auto;
  }
  .slide-body {
    align-self: center;
    padding: 2.5rem 3rem;
  }
  /* A slide without a photo uses the full width. */
  .slide-body:only-child {
    grid-column: 1 / -1;
  }
}
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.slider-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
}
.slider-btn:hover {
  border-color: var(--blue);
}
.slider-dots {
  display: flex;
  gap: 0.25rem;
}
.slider-dot {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.slider-dot::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.8rem;
  height: 0.8rem;
  translate: -50% -50%;
  border-radius: 999px;
  background: var(--line);
  border: 2px solid var(--muted);
}
.slider-dot[aria-current='true']::after {
  background: var(--blue);
  border-color: var(--blue);
  width: 1.6rem;
}

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 45rem) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.card:focus-within {
  box-shadow: var(--focus);
}
.card-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* Pictures are often scanned leaflet pages, so show them whole instead of cropping. */
.card-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* No picture: a small logo band instead of a big empty box. */
.card-media:has(.card-placeholder) {
  aspect-ratio: 3 / 1;
}
.card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-soft), #fff);
}
.card-placeholder img {
  opacity: 0.8;
  border-radius: 10px;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
}
.card-date {
  color: var(--muted);
  font-size: 0.95rem;
}
/* Long titles stop after 3 lines with "…"; the full title is on hover and on the article page. */
.card-title {
  margin: 0;
  font-size: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link {
  color: var(--ink);
  text-decoration: none;
}
/* The whole card is clickable, but there is only one link for screen readers. */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card-link:focus-visible {
  box-shadow: none;
}
.card:hover .card-link {
  color: var(--blue);
  text-decoration: underline;
}
.card-excerpt {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.25rem;
  color: var(--blue);
  font-weight: 700;
}

@media (min-width: 40rem) {
  .card-row,
  .card-feature {
    flex-direction: row;
  }
  .card-row .card-media {
    flex: 0 0 13rem;
    aspect-ratio: auto;
    min-height: 11rem;
  }
  .card-feature .card-media {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 14rem;
  }
}
.card-feature .card-title {
  font-size: 1.35rem;
}

.list {
  display: grid;
  gap: 1rem;
}
.list-heading {
  margin-top: 2rem;
}

.subsections ul {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
@media (min-width: 45rem) {
  .subsections ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .subsections ul {
    grid-template-columns: repeat(3, 1fr);
  }
}
.subsections a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem 1.25rem;
  background: var(--blue-soft);
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--blue-darker);
  font-weight: 700;
  text-decoration: none;
}
.subsections a:hover {
  border-color: var(--blue);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.pagination ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-num {
  display: grid;
  place-items: center;
  min-width: 3rem;
  height: 3rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}
span.page-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.page-step {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  min-height: 3rem;
}
.page-step[rel='next'] {
  justify-self: end;
}
.page-gap {
  align-self: center;
}
@media (max-width: 40rem) {
  .pagination {
    grid-template-columns: 1fr 1fr;
  }
  .pagination ul {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ---------------------------------------------------------------- banner */

.banner {
  display: grid;
  background: linear-gradient(120deg, #fff7d1, #ffe78a);
  border-radius: var(--radius);
  overflow: hidden;
}
.banner-img {
  width: 100%;
  height: 100%;
  max-height: 16rem;
  object-fit: cover;
}
.banner-body {
  padding: 1.5rem;
  align-self: center;
}
@media (min-width: 45rem) {
  .banner {
    grid-template-columns: 2fr 3fr;
  }
  .banner-img {
    max-height: none;
  }
  .banner-body {
    padding: 2.5rem;
  }
}

/* ---------------------------------------------------------------- article */

.article {
  max-width: 48rem;
}
.article-header {
  margin-bottom: 1.5rem;
}
.article-header h1 {
  margin-bottom: 0.5rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-darker);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.tags a:hover {
  text-decoration: underline;
}
.article-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.article-image {
  display: block;
  max-height: 32rem;
  width: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.prose {
  max-width: 46rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2,
.prose h3 {
  margin-top: 1.6em;
}
.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose li::marker {
  color: var(--blue);
  font-weight: 700;
}
.prose img {
  border-radius: var(--radius-sm);
  margin-block: 0.5rem;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.75rem 1.25rem;
  border-left: 6px solid var(--yellow);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose .aligncenter {
  display: block;
  margin-inline: auto;
}
@media (min-width: 45rem) {
  .prose .alignleft {
    float: left;
    margin: 0.35rem 1.5rem 1rem 0;
    max-width: 45%;
  }
  .prose .alignright {
    float: right;
    margin: 0.35rem 0 1rem 1.5rem;
    max-width: 45%;
  }
  .prose::after {
    content: '';
    display: block;
    clear: both;
  }
}

.embed {
  clear: both;
  margin: 1.5rem 0;
}
.embed-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}
.embed-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}
.embed-doc iframe {
  height: min(80vh, 56rem);
}
.embed-video iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}
.embed figcaption {
  margin-top: 0.6rem;
}
.embed-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.embed-open::before {
  content: '📄';
}
.embed-open:hover {
  background: var(--blue-soft);
}

/* ---------------------------------------------------------------- contact form */

.contact-block {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--blue-soft);
  border-radius: var(--radius);
}
@media (min-width: 56rem) {
  .contact-block {
    grid-template-columns: 2fr 3fr;
    padding: 2.5rem;
  }
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-weight: 700;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 2px solid #9aa4b5;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
}
.contact-form .btn {
  justify-self: start;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- donate */

.donate-text {
  margin-bottom: 2rem;
}
.donate-links {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.donate-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.donate-link h2 {
  font-size: 1.3rem;
  margin: 0 0 0.25rem;
}
.donate-link p {
  margin: 0;
  color: var(--muted);
}

.error-page {
  padding-block: 4rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 3rem;
  background: var(--blue-darker);
  color: #fff;
}
.site-footer a {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
}
@media (min-width: 56rem) {
  .footer-grid {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
  }
}
.footer-title {
  font-size: 1.35rem;
}
.footer-text {
  max-width: 44rem;
}
.footer-logos {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius-sm);
  max-width: min(100%, 38rem);
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.contact-list .icon {
  color: var(--yellow);
}
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 20%);
  font-size: 0.95rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

/* ---------------------------------------------------------------- motion & print */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar,
  .site-nav,
  .menu-toggle,
  .slider-controls,
  .contact-block,
  .site-footer form {
    display: none !important;
  }
  .card,
  .site-footer {
    box-shadow: none;
    background: none;
    color: #000;
  }
}
