:root {
  color-scheme: light;
  --paper: #faf8f3;
  --white: #fffdf9;
  --ink: #1d2c38;
  --muted: #4d6070;
  --blue: #244d68;
  --blue-dark: #183b54;
  --blue-light: #e8eff3;
  --line: #deded2;
  --sans: system-ui, "Segoe UI", sans-serif;
  --text-small: .875rem;
  --text-emphasis: 1.125rem;
  font: 1rem/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5175rem;
  color: #394431;
  font: clamp(1.3rem, 5.8vw, 1.8rem)/1 var(--sans);
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-medallion {
  flex: none;
  width: clamp(2.5875rem, 10.35vw, 3.45rem);
  aspect-ratio: 1;
  background: url("./church-logo.webp?v=4") center / contain no-repeat;
}
.brand > span:last-child { transform: translateY(-.06em); }
.brand-domain { color: #79664b; font-size: .76em; }
.language-menu, .resources-menu { position: relative; z-index: 1; }
.language-menu summary {
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--white);
  color: var(--blue-dark);
  font-size: var(--text-small);
  cursor: pointer;
}
.language-options, .resources-options {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 8rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--white);
  box-shadow: 0 3px 10px rgb(29 44 56 / .15);
}
.language-options a { display: block; padding: .4rem .65rem; text-decoration: none; }
.language-options a:hover, .language-options [aria-current] {
  border-radius: .25rem;
  background: var(--blue-light);
}
nav [aria-current] { background: var(--blue-light); border-radius: .25rem; }
nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; }
nav a { padding: .4rem .65rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
#nav { align-items: center; }
.nav-home {
  display: grid;
  place-items: center;
  border-radius: .25rem;
}
.nav-home:hover { background: var(--blue-light); }
.nav-home::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7M5 9v12h14V9M9 21v-7h6v7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.resources-menu summary, .nav-search { display: flex; align-items: center; }
.resources-menu summary {
  gap: .45em;
  padding: .4rem .65rem;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
.resources-menu summary::-webkit-details-marker { display: none; }
.resources-menu summary::before {
  content: "";
  width: 0;
  height: 0;
  border-block: .24em solid transparent;
  border-left: .42em solid currentColor;
}
.resources-menu[open] summary::before { transform: rotate(90deg); }
.resources-options { width: max-content; max-width: min(17rem, 80vw); }
.resources-options a { display: block; border-radius: .25rem; }
.resources-options a:hover, .resources-options a:focus-visible {
  background: var(--blue-light);
  text-decoration: none;
}
.resources-menu summary:hover, .resources-menu[open] summary,
.resources-menu:has([aria-current]) summary {
  border-radius: .25rem;
  background: var(--blue-light);
}

.nav-about {
  align-self: center;
  padding: .12rem .48rem;
  border-radius: .75rem;
  background: var(--blue-light);
  color: var(--blue-dark);
  text-decoration: none;
}
@media (width > 570px) {
  .header-inner nav { flex: 1; min-width: 0; justify-content: flex-end; }
  .nav-about { position: relative; }
  .nav-about::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: -.75rem;
    border-left: 1px solid var(--line);
  }
}
.nav-about:hover, .nav-about[aria-current] { background: #dce8ef; }
.nav-about:hover { text-decoration: underline; }
.footer-about { font-weight: 700; }
main { flex: 1; padding-bottom: 4rem; }
.hero {
  --banner-height: 336px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background: #37302a;
  margin-top: .65rem;
  margin-bottom: 2.5rem;
  display: grid;
  align-items: center;
  min-height: var(--banner-height);
  padding: 1rem 0 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3px -3px -18px;
  background: linear-gradient(90deg, transparent, rgba(35, 27, 21, .32) 50%, transparent),
    url("./banner-home.webp") left bottom / cover;
}
.hero h1 {
  font-size: clamp(1.75rem, 6vw, 3.75rem);
  letter-spacing: -.045em;
  font-weight: 400;
  text-shadow: 0 1px 4px #231b15, 0 2px 12px #231b15;
}
.hero :focus-visible { outline-color: var(--white); }
.page-banner {
  padding: 0;
}
.page-banner::before { content: none; }
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner-cards img { object-position: 30% center; }
.page-banner-places img { object-position: center 65%; }
.page-banner-tags img { object-position: center 20%; }
.page-banner + .wrap .page-heading { padding-top: 0; }
@media (width > 570px) {
  .page-banner { --banner-height: max(336px, 26vw); }
  .page-banner-cards,
  .page-banner-places,
  .page-banner-search,
  .page-banner-tags { --banner-height: max(280px, 22vw); }
  .page-banner-places img { object-position: center; }
  .page-banner-tags img { object-position: center 32%; }
  .page-banner-search img { object-position: center 65%; }
  .page-banner-about img { object-position: 25% 53%; }
}
.hero.page-banner-plans-anciens { --banner-height: max(110px, calc(100vw * 262 / 1242)); }
.page-banner-plans-anciens img { object-position: right center; }
@media (width > 570px) {
  .hero.page-banner-plans-anciens { --banner-height: calc(100vw * 217 / 1242); }
  .page-banner-plans-anciens img { object-position: right top; }
}
h1, h2, h3 { font-family: var(--sans); line-height: 1.13; font-weight: 600; margin: 0; }
h2, .page-heading h1 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: .015em;
}
.page-heading h1::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: .68rem;
  background: var(--line);
}
h3 { font-size: var(--text-emphasis); }
p { margin: .85rem 0; }
.hero p {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 37rem;
  margin: .65rem auto 1rem;
  color: #fff;
  font-size: var(--text-emphasis);
  font-weight: 400;
  text-shadow: 0 1px 6px #000, 0 0 14px #000;
}
.hero p::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -.2rem -.45rem;
  border-radius: 1.5rem;
  background: rgb(0 0 0 / .18);
  filter: blur(12px);
  pointer-events: none;
}
.button { display: inline-block; background: var(--blue); color: white; padding: .62rem 1.1rem; border: 1px solid var(--blue); border-radius: .25rem; text-decoration: none; font: inherit; cursor: pointer; }
.button:hover { background: var(--blue-dark); }
.hero .button, .places-more .button { border-radius: .5rem; }
.hero .button { background: rgb(36 77 104 / .79); }
.hero .button:hover { background: var(--blue-dark); }
.section { margin-bottom: 2.5rem; }
.section:last-child { margin-bottom: 0; }
.section-heading { border-bottom: 1px solid var(--line); padding-bottom: .68rem; margin-bottom: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.gallery, .places { display: grid; gap: 1rem; }
.gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.featured-grid {
  --featured-gap: 1rem;
  display: grid;
  grid-template-columns: var(--featured-tracks);
  gap: var(--featured-gap);
  align-items: start;
}
.featured-pair { display: contents; }
.featured-grid .gallery {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--featured-gap);
}
.featured-grid .card-image { position: relative; padding: 0; border: 0; }
.featured-grid .card-image img { height: auto; aspect-ratio: auto; border-radius: 0; }
.featured-caption {
  position: absolute;
  inset: auto 0 .2rem;
  padding: .08rem .3rem;
  border-radius: .375rem;
  background: rgb(66 113 145 / .79);
  color: white;
  font-size: var(--text-small);
  line-height: 1.2;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pagination {
  justify-content: center;
  flex-wrap: nowrap;
  gap: .25rem;
  margin: 2rem 0 0;
}
.pagination > * {
  display: grid;
  place-items: center;
  flex: 0 1 2.75rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: .25rem;
}
.pagination-arrow { font-size: 1.55rem; line-height: 1; }
.pagination > span.pagination-arrow { color: var(--muted); opacity: .5; }
.pagination > .pagination-ellipsis { flex: 0 0 1rem; padding-inline: 0; color: var(--muted); }
.places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.places-more { margin: 1.15rem 0 0; text-align: center; }
.places-more .button { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; }
.places-more .button svg { flex: none; }
.card-image, .place-tile { display: block; border: 1px solid var(--line); border-radius: .25rem; background: var(--white); overflow: hidden; }
.card-image, .place-tile { padding: .3rem; }
.card-image { position: relative; }
.card-badges {
  position: absolute;
  top: .55rem;
  right: .55rem;
  display: flex;
  gap: .2rem;
}
.card-badge {
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: .2rem .2rem .2rem .45rem;
  background: rgb(66 132 181 / .72);
  color: white;
}
.card-badge svg { width: .625rem; height: .625rem; }
.card-image img, .place-tile img { width: 100%; aspect-ratio: 1.58; border-radius: 8px; object-fit: contain; background: #efede5; }
.card-image:hover, .place-tile:hover { border-color: var(--blue); }
figure { margin: 0; min-width: 0; }
figcaption { margin-top: .38rem; color: var(--muted); }
.place-tile { display: flex; flex-direction: column; padding-bottom: 0; text-decoration: none; }
.place-tile img { flex: none; }
.place-tile:hover h3 { text-decoration: underline; }
.place-label { display: grid; flex: 1; place-items: center; padding: .4rem 1rem; text-align: center; }
.place-label h3 { font-weight: 400; }
.page-heading { padding: 2.5rem 0 1.4rem; }
.page-heading:has(> .back-link) { padding-bottom: .25rem; }
.back-link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: .125rem;
  color: var(--blue-dark);
  text-decoration: none;
}
.back-link svg {
  width: 25px;
  height: auto;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 22%));
}
.back-link:hover { color: var(--blue); }
.page-banner-about + .wrap > .page-heading + p { margin-top: 0; }
.about-contribute {
  position: relative;
  max-width: 50rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem 1rem 2.85rem;
  border-radius: .75rem;
  background: var(--blue-light);
  color: var(--blue-dark);
}
.about-info {
  position: absolute;
  top: 1.15rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #147f86, #244d83 78%);
  color: #fff;
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .35), 0 2px 5px rgb(36 77 104 / .32);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}
.about-contribute p { margin: 0; }
.about-contribute p + p { margin-top: .6rem; }
.tag-list { list-style: none; padding: 0; display: flex; gap: .65rem; flex-wrap: wrap; }
.tag-list a { display: inline-block; padding: .45rem .75rem; background: var(--white); border: 1px solid var(--line); border-radius: .25rem; }
.search-form { max-width: 42rem; }
.search-match {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin: 0 0 .75rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
}
.search-match legend { padding-inline: .35rem; }
.search-match label { display: flex; align-items: baseline; gap: .35rem; cursor: pointer; }
.search-match input { margin: 0; accent-color: var(--blue); }
.search-form table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.search-form th, .search-form td { padding: .5rem .35rem; border-bottom: 1px solid var(--line); }
.search-form th { overflow-wrap: anywhere; }
.search-form th:first-child { text-align: left; }
.search-form td { text-align: center; }
.search-form input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--blue); cursor: pointer; }
.detail-card {
  --arrow-size: 3rem;
  --arrow-overhang: calc(var(--arrow-size) * 2 / 3);
  position: relative;
  width: fit-content;
  max-width: calc(100% - 2 * var(--arrow-overhang));
  margin-inline: auto;
}
.detail-viewport { position: relative; overflow: hidden; touch-action: pan-y; cursor: zoom-in; }
.detail-viewport.is-zoomed { cursor: grab; }
.detail-viewport.is-zoomed.is-dragging { cursor: grabbing; }
.detail-image { max-height: 75vh; width: auto; transform-origin: top left; user-select: none; }
.detail-fullscreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #151515;
}
.detail-fullscreen img { width: 100%; height: 100%; object-fit: contain; }
.detail-photo-size,
.detail-zoom-controls {
  position: absolute;
  height: 2.75rem;
  border: 5px solid transparent;
  border-radius: .65rem;
  background: rgb(24 59 84 / 68%) padding-box;
  color: white;
}
.detail-photo-size {
  top: .4rem;
  right: .4rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  padding: 0;
  cursor: pointer;
}
.detail-photo-size svg { width: 16px; height: 16px; }
.detail-zoom-controls {
  bottom: .4rem;
  left: .4rem;
  display: flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  pointer-events: none;
}
.detail-zoom-reset {
  align-self: stretch;
  min-width: 3rem;
  padding: 0 .5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  pointer-events: auto;
}
.detail-zoom-reset:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.detail-zoom-hint { display: none; }
@media (width > 570px) and (any-pointer: fine) {
  .detail-zoom-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-inline: .5rem;
    border-right: 1px solid rgb(255 255 255 / 32%);
  }
  .detail-zoom-hint kbd { font: inherit; }
}
.detail-arrow {
  position: absolute;
  z-index: 1;
  touch-action: manipulation;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 50%;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
  color: var(--ink);
}
.detail-arrow:hover { background: var(--white); }
.detail-arrow::before {
  content: "";
  width: calc(var(--arrow-size) * .65 / 3);
  height: calc(var(--arrow-size) * .65 / 3);
  border-top: calc(var(--arrow-size) / 16) solid;
  border-right: calc(var(--arrow-size) / 16) solid;
  transform: translateX(-12%) rotate(45deg);
}
.detail-arrow-previous { left: calc(-1 * var(--arrow-overhang)); }
.detail-arrow-previous::before { transform: translateX(12%) rotate(-135deg); }
.detail-arrow-next { right: calc(-1 * var(--arrow-overhang)); }
.detail-metadata,
.detail-comments {
  max-width: 48rem;
  margin: 1rem auto 0;
  padding: clamp(.85rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--white);
}
.detail-metadata dl { margin: 0; }
.detail-metadata dl > div:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: .25rem 1rem;
  padding-block: .45rem;
  border-top: 1px solid var(--line);
}
.detail-metadata dl > div:first-child { border-top: 0; }
.detail-metadata dt { font-weight: 650; }
.detail-metadata dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-extra { margin-top: .2rem; }
.detail-extra summary {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 1.5rem;
  margin-inline: auto;
  border-radius: .3rem;
  color: var(--blue);
  cursor: pointer;
}
.detail-extra summary::-webkit-details-marker { display: none; }
.detail-extra summary:hover { background: var(--blue-light); }
.detail-extra summary::after {
  content: "";
  width: .4rem;
  height: .4rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-1px) rotate(45deg);
}
.detail-extra[open] summary::after { transform: translateY(1px) rotate(225deg); }
.detail-metadata:has(.detail-extra:not([open])) { padding-bottom: .35rem; }
.comment-entry { margin-top: .85rem; }
.comment-entry summary { font: inherit; font-weight: 650; }
.comment-entry summary { cursor: pointer; }
.comment-form { display: grid; gap: .4rem; margin: .8rem 0 1.5rem; }
.comment-form label { font-weight: 650; }
.comment-form :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  font: inherit;
}
.comment-form textarea { resize: vertical; }
.comment-form small { margin-bottom: .45rem; }
.comment-warning-icon {
  display: inline-block;
  vertical-align: baseline;
  transform: translateY(0.1em);
  clip-path: polygon(
    46% 7%, 49.5% 7%, 54% 9.5%, 58% 17%, 85.5% 76%,
    86.5% 81%, 86.5% 84%, 84% 90%, 80% 95%, 15.5% 95%,
    11% 90%, 9% 84%, 9% 80%, 10% 76%, 37% 17%, 41% 9.5%
  );
}
.comment-form button { justify-self: start; }
.comment-form button:disabled { opacity: .6; }
.comment-status { margin: 0; }
.comment-info-icon { display: none; }
.comment-feedback.comment-confirmation {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  margin-top: .4rem;
  padding: .65rem .8rem;
  border: 1px solid var(--blue);
  border-radius: .35rem;
  background: var(--blue-light);
}
.comment-confirmation .comment-info-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid #345c99;
  border-radius: 50%;
  background: linear-gradient(#8faee0, #436cb3);
  color: #fff;
  font: 700 .83rem/1 Georgia, serif;
}
.comment-list { list-style: none; margin: .75rem 0 0; padding: 0; }
.comment-list li {
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--blue-light);
  overflow-wrap: anywhere;
}
.comment-list li + li { margin-top: .55rem; }
.comment-list p { margin: 0; white-space: pre-wrap; }
.comment-list-status:empty, .comment-list:empty { display: none; }
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tag-search-heading {
  margin-bottom: 1rem;
  padding-left: .65rem;
  border-left: .2rem solid var(--blue);
  color: var(--blue-dark);
  font-size: 1.25rem;
  font-weight: 700;
}
.detail-tags a {
  display: block;
  padding: .2rem .65rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  font-size: var(--text-small);
  overflow-wrap: anywhere;
}
.site-footer { border-top: 1px solid var(--line); background: var(--blue-light); }
.footer-inner { padding-block: 2rem; }
footer ul { list-style: none; padding: 0; margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 760px) {
  .gallery, .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-pair {
    display: grid;
    grid-template-columns: var(--featured-pair-tracks);
    gap: var(--featured-gap);
    align-items: start;
  }
}
@media (max-width: 570px) {
  .detail-metadata dl > div:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .detail-short-name dt { display: none; }
  .back-link svg { width: 20px; }
  .detail-photo-size,
  .detail-zoom-controls { height: 2.25rem; border-width: 3px; }
  .detail-photo-size { width: 2.25rem; }
  .detail-photo-size svg { width: 14px; height: 14px; }
  .detail-zoom-reset { min-width: 2.5rem; padding-inline: .3rem; font-size: .625rem; }
  .detail-card {
    --arrow-size: 2rem;
    --arrow-overhang: .1875rem;
    left: 50%;
    width: max-content;
    max-width: calc(100% + .75rem);
    margin-inline: 0;
    translate: -50%;
  }
  .hero {
    --banner-height: max(110px, calc(100vw * 442 / 1458));
    margin-bottom: 2rem;
  }
  #featured { margin-bottom: 2rem; container-type: inline-size; }
  .page-heading { padding-top: 2rem; }
  .hero:not(.page-banner) { padding-block: 1rem; }
  .hero p { font-size: 1rem; line-height: 1.4; }
  .wrap { width: calc(100% - 1.75rem); }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: .8rem;
    gap: .55rem;
  }
  .language-menu { margin-left: auto; }
  .header-inner nav { grid-row: 2; gap: .05rem; }
  .nav-about { justify-self: end; font-size: var(--text-small); }
  .gallery, .places { gap: .65rem; }
  .featured-grid {
    --featured-gap: .65rem;
    --featured-row: calc((100cqw - var(--featured-gap)) / 3.16);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--featured-row), auto);
  }
  .featured-grid :is(.featured-pair, .gallery) { display: contents; }
  .featured-grid figure {
    --featured-image-height: var(--featured-row);
    display: grid;
    place-items: center;
    min-height: 0;
  }
  .featured-grid .featured-portrait figure {
    --featured-image-height: calc(2 * var(--featured-row) + var(--featured-gap));
    grid-row: span 2;
    justify-self: center;
    width: min(100%, calc((2 * var(--featured-row) + var(--featured-gap)) * var(--portrait-ratio)));
  }
  .featured-grid .card-image { max-width: 100%; background: transparent; }
  .featured-grid .card-image img {
    width: auto;
    max-height: var(--featured-image-height);
    background: transparent;
  }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 570px) {
  nav { font-size: var(--text-small); margin-left: -.4rem; }
  nav a, .resources-menu summary { padding-inline: .4rem; }
  .resources-options { left: 0; right: auto; }
  .resources-menu summary {
    justify-content: center;
    min-width: 2rem;
    gap: 0;
    font-size: 0;
  }
  .resources-menu summary::before {
    width: 1.125rem;
    height: 1.125rem;
    border: 0;
    background: linear-gradient(currentColor, currentColor) center 25% / 100% 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center 75% / 100% 1.5px no-repeat;
  }
  .resources-menu[open] summary::before { transform: none; }
  .nav-search {
    justify-content: center;
    min-width: 2rem;
    font-size: 0;
  }
  .nav-search::before {
    content: "";
    width: 1.125rem;
    height: 1.125rem;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}
@media (max-width: 350px) {
  .header-inner nav { grid-column: 1 / -1; }
}
