/*! Theme Name: Biblioteques Inquietes
Author: Suquet Estudi
Version: 0.1.0
Text Domain: biblioteques-inquietes */
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/rethink-sans-variable.ttf") format("truetype-variations");
}
@font-face {
  font-family: "Rethink Sans";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/rethink-sans-variable-italic.ttf") format("truetype-variations");
}
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:not(.button):hover {
  text-decoration-thickness: 2px;
}

button, input, textarea, select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 3px;
}

body {
  color: #151515;
  background: #ffffff;
  font-family: "Rethink Sans", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

h1, h2, h3 {
  line-height: 1.02;
  margin: 0 0 0.6rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 3.5rem;
}

h3 {
  font-size: 2rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.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;
}

.skip-link:focus {
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  background: #111111;
  color: #ffffff;
}

.container {
  width: min(100%, 90rem);
  margin-inline: auto;
  padding-inline: 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal--delay-one {
  transition-delay: 0.08s;
}

.reveal--delay-two {
  transition-delay: 0.16s;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding-block: 7rem;
}

.section--blue {
  background: #acd2dd;
}

.section--yellow {
  background: #e5e0a2;
}

.section--olive {
  background: #aaa000;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  width: 100%;
  border-bottom: 1px solid #d7d7d2;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

body.admin-bar .site-header {
  top: 2rem;
}

main {
  padding-top: 6rem;
}

.site-header__inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  width: 16rem;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav .menu a:hover {
  color: #e33a32;
}

.site-nav__mobile-meta {
  display: none;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #111111;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111111;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.language-switcher summary:hover {
  background: #111111;
  color: #ffffff;
}

.language-switcher summary:hover .icon path:not([fill=none]) {
  fill: currentColor !important;
  stroke: currentColor;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher__check {
  width: 1rem;
  height: 1rem;
}

.language-switcher__check path {
  fill: currentColor !important;
}

.language-switcher__caret {
  width: 0.75rem;
  height: 1.5rem;
  transform: rotate(90deg);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.language-switcher[open] .language-switcher__caret {
  transform: rotate(-90deg);
}

.language-switcher__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.45rem);
  left: 0;
  width: max-content;
  min-width: 100%;
  padding: 0.3rem;
  border: 1px solid #d7d7d2;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(17, 17, 17, 0.14);
}

.language-switcher__menu a {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.5rem;
  white-space: nowrap;
}

.language-switcher__menu a:hover, .language-switcher__menu a:focus-visible {
  background: #f4f4f2;
}

.language-switcher__option-icon {
  display: inline-flex;
  width: 1.25rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #111111;
  font-weight: 400;
}

.site-footer {
  border-top: 1px solid #d7d7d2;
  padding-top: 7rem;
  color: #151515;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.site-footer__identity {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.site-footer__identity p {
  margin: 0;
}

.site-footer__logo img {
  display: block;
  width: 15rem;
  height: auto;
}

.site-footer__hashtag {
  font-size: 0.85rem;
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3rem;
  padding-block: 1.25rem;
  border-top: 1px solid #d7d7d2;
  font-size: 0.85rem;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav ul {
  display: grid;
  gap: 0.75rem;
}

.footer-legal ul,
.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1rem;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem 1.25rem;
}

.site-footer a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:not(.button) {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, background-size 0.25s ease;
}

.site-footer a:not(.button):is(:hover, :focus-visible) {
  background-size: 100% 2px;
}

.site-footer__cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: 8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  min-height: 2.8rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid #111111;
  border-radius: 0.75rem;
  background: transparent;
  color: #111111;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: #111111;
  color: #ffffff;
}

.button:hover .icon path:not([fill=none]) {
  fill: currentColor !important;
}

.button--primary {
  background: #111111;
  color: #ffffff;
}

.button--primary:hover {
  background: #e33a32;
  border-color: #e33a32;
}

.button--primary::after {
  content: "";
  width: 0.5em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("assets/icons/caret-down.svg") center/contain no-repeat;
  mask: url("assets/icons/caret-down.svg") center/contain no-repeat;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
}

.button--primary .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.button--primary .icon path {
  fill: currentColor !important;
  stroke: currentColor;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.practice-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 8/5;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #333333;
  color: #ffffff;
}

.practice-card--featured {
  grid-column: 1/-1;
  min-height: 0;
  aspect-ratio: 16/5;
}

.practice-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.practice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 17, 17, 0.78));
}

.practice-card__content {
  position: absolute;
  z-index: 1;
  inset: auto 2.5rem 2.5rem;
}

.practice-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.practice-card__link:focus-visible {
  outline-offset: -3px;
}

.practice-card:has(.practice-card__link:focus-visible) {
  outline: 3px solid #111111;
  outline-offset: 3px;
}

.practice-card:hover .practice-card__image {
  transform: scale(1.025);
}

.post-type-archive-bona_practica header.section .split > div {
  font-size: 1.25rem;
}

.post-type-archive-bona_practica .practice-card, .post-type-archive-bona_practica .practice-card--featured {
  min-height: 0;
}

.post-type-archive-bona_practica .practice-card__content > span {
  display: inline-grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.post-type-archive-bona_practica .practice-card__content > span::after {
  content: "";
  width: 4.5rem;
  height: 1px;
  background: currentColor;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter {
  display: inline-block;
  padding: 0.75rem 1rem;
  background: #acd2dd;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.filter:hover {
  background: #111111;
  color: #ffffff;
}

.filter[aria-current=true] {
  background: #111111;
  color: #ffffff;
}

.share-page__intro {
  padding-block: 4rem;
}

.share-page__intro h1 {
  font-size: 3rem;
}

.share-page__lead {
  font-size: 1.125rem;
}

.share-page__lead > :first-child {
  margin-top: 0;
}

.share-page__form-section {
  margin-bottom: 7rem;
}

.share-page__form {
  padding: 4rem;
  border-radius: 1rem;
  background: #e5e0a2;
}

.proposal-form-heading {
  margin-bottom: 2rem;
}

.proposal-form-heading h2 {
  font-size: 2rem;
}

.proposal-form-heading p {
  max-width: none;
}

.proposal-form {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
}

.proposal-form__trap {
  position: absolute;
  left: -9999px;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field--wide {
  grid-column: 1/-1;
}

.form-field label {
  font-weight: 600;
}

.form-field input:not([type=checkbox]), .form-field textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.22);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.form-field input:not([type=checkbox]):hover, .form-field textarea:hover {
  background: rgba(255, 255, 255, 0.38);
}

.form-field input:not([type=checkbox]):focus, .form-field textarea:focus {
  border-color: #111111;
  background: rgba(255, 255, 255, 0.55);
}

.form-field input::placeholder, .form-field textarea::placeholder {
  color: rgba(17, 17, 17, 0.55);
  opacity: 1;
}

.form-field textarea {
  resize: vertical;
}

.form-field--consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
}

.form-field input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  accent-color: #111111;
}

.share-page__network {
  padding-block: 0;
}

.share-page__network-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  padding-inline: 0;
}

.share-page__network-grid:not(:has(> img)) {
  grid-template-columns: 1fr;
}

.share-page__network-content {
  display: flex;
  min-height: 30rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem;
}

.share-page__network-contact {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.share-page__network-contact p {
  margin: 0;
}

.share-page__network-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.share-page__network-contact a {
  font-weight: 600;
}

.share-page__network-hashtag {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  font-weight: 600;
}

.share-page__network-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-notice {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 2px solid;
  border-radius: 0.5rem;
}

.form-notice--success {
  background: #e8f5e9;
}

.form-notice--error {
  background: #fff0ee;
  color: #7a1812;
}

.cookie-consent {
  position: fixed;
  z-index: 9999;
  inset: auto 2.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid #111111;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(17, 17, 17, 0.14);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.cookie-consent p {
  max-width: 48rem;
  margin: 0 0 0.6rem;
}

.cookie-consent a {
  font-weight: 600;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 47.5rem) {
  .cookie-consent {
    inset: auto 1rem 1rem;
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
.hero-media {
  min-height: 46rem;
  background: #f4f4f2;
  overflow: hidden;
}

.hero-media img, .hero-media video {
  width: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2.5rem;
  margin-top: -2rem;
  position: relative;
  background: #ffffff;
  padding: 6rem;
}

.hero-intro__title {
  grid-column: 2;
  font-size: 4.5rem;
}

.hero-intro__body {
  grid-column: 2;
  max-width: 48rem;
}

.home-component__content {
  display: grid;
  gap: 1.5rem;
}

.home-component__content > * {
  margin-block: 0;
}

.home-component__content > img {
  width: 100%;
}

.home-practices .practice-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.home-practices .practice-card {
  min-height: 5.5rem;
  aspect-ratio: auto;
  border: 1px solid #111111;
  background: transparent;
  color: #111111;
}

.home-practices .practice-card::after {
  display: none;
}

.home-practices .practice-card__image {
  display: none;
}

.home-practices .practice-card__content {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: inherit;
  padding: 1.25rem 2rem;
}

.home-practices .practice-card__content h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.home-practices .practice-card__cta {
  flex: 0 0 auto;
  width: 1.25rem;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  white-space: nowrap;
}

.home-practices .practice-card__cta::after {
  content: "";
  display: block;
  width: 0.75rem;
  height: 1.5rem;
  background: #111111;
  -webkit-mask: url("assets/icons/caret-down.svg") center/contain no-repeat;
  mask: url("assets/icons/caret-down.svg") center/contain no-repeat;
}

.home-practices .practice-card:hover {
  background: #111111;
  color: #ffffff;
}

.home-practices .practice-card:hover .practice-card__cta::after {
  background-color: #ffffff;
}

.home-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.home-logos img {
  width: auto;
  max-width: 12rem;
  max-height: 7rem;
  object-fit: contain;
}

.home-hashtag__title {
  overflow-wrap: anywhere;
}

.home-hashtag__title span {
  color: #aaa000;
}

.home-hashtag__content {
  max-width: 52rem;
}

.home-hashtag__content > img {
  width: 100%;
  margin-top: 1.5rem;
}

.article-header {
  padding-block: 5rem;
  background: #f4f4f2;
}

.article-header h1 {
  max-width: 72rem;
  font-size: 4.5rem;
}

.article-filters {
  justify-content: flex-start;
  margin-block: 1.5rem 0;
}

.article-header__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin-top: 1.5rem;
}

.article-meta > span, .article-meta > time {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.article-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-left: auto;
}

.article-actions .button {
  white-space: nowrap;
}

.article-hero {
  margin-top: 2rem;
}

.article-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16/5;
  object-fit: cover;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: 3rem;
  padding-block: 2rem 7rem;
}

.article-content {
  max-width: 52rem;
  font-size: 1.125rem;
}

.article-content > * {
  margin-top: 0;
  margin-bottom: 1.4em;
}

.article-content h2 {
  margin-top: 1.7em;
  font-size: 2.5rem;
}

.article-content img {
  margin-block: 2.5rem 1rem;
}

.pullquote {
  align-self: start;
  margin: 0;
  background: #acd2dd;
  padding: 3rem;
  font-size: 1.75rem;
  font-weight: 600;
  font-style: italic;
}

.pullquote p {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 0.25rem solid #111111;
}

.pullquote cite {
  display: block;
  margin: 1rem 0 0 1.5rem;
  font-size: 1rem;
  font-style: normal;
}

.comments-area {
  padding-block: 7rem;
  background: #acd2dd;
}

.comments h2 {
  font-size: 2rem;
}

.comment-compose {
  margin-block: 1.5rem 2.5rem;
  text-align: center;
}

.comment-compose summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.comment-compose summary::-webkit-details-marker {
  display: none;
}

.comment-compose__form {
  text-align: left;
}

.comments__list-title {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(17, 17, 17, 0.25);
  font-size: 1rem;
}

.comments__empty {
  margin-block: 1.5rem;
  text-align: center;
}

.comment-list {
  margin-block: 2rem;
  padding: 0;
  list-style: none;
}

.comment-list .comment {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(17, 17, 17, 0.25);
}

.comment-list__author {
  display: block;
  margin-bottom: 0.6rem;
}

.comment-list__text > :first-child {
  margin-top: 0;
}

.comment-list__text > :last-child {
  margin-bottom: 0;
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  max-width: 52rem;
  margin-top: 1.5rem;
}

.comment-form > p {
  margin: 0;
}

.comment-form .comment-notes, .comment-form-comment, .comment-form-url, .comment-form-cookies-consent, .comment-form .form-submit {
  grid-column: 1/-1;
}

.comment-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.comment-form input:not([type=checkbox]):not([type=submit]), .comment-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.28);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.comment-form input:not([type=checkbox]):not([type=submit]):is(:hover, :focus), .comment-form textarea:is(:hover, :focus) {
  background: rgba(255, 255, 255, 0.48);
}

.comment-form input::placeholder, .comment-form textarea::placeholder {
  color: rgba(17, 17, 17, 0.55);
  opacity: 1;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.comment-form-cookies-consent label {
  font-weight: 400;
}

.comment-antispam-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.related-practices .practice-card {
  min-height: 27rem;
}

.related-practices .practice-grid {
  gap: 3rem;
}

.related-practices .practice-card__content > span {
  display: inline-grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.related-practices .practice-card__content > span::after {
  content: "";
  width: 4.5rem;
  height: 1px;
  background: currentColor;
}

.libraries-page h1 {
  font-size: 3.5rem;
}

.libraries-richtext > :first-child {
  margin-top: 0;
}

.libraries-richtext > :last-child {
  margin-bottom: 0;
}

.libraries-intro .split {
  margin-bottom: 4rem;
}

.libraries-accordions {
  display: grid;
  gap: 1.5rem;
}

.libraries-accordion {
  border: 1px solid #111111;
  border-radius: 0.75rem;
  padding: 0 2rem;
}

.libraries-accordion summary,
.libraries-accordion__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
  font-size: 1.5rem;
  font-weight: 600;
  list-style: none;
}

.libraries-accordion summary {
  cursor: pointer;
}

.libraries-accordion summary::-webkit-details-marker {
  display: none;
}

.libraries-accordion summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.75rem;
  height: 1.5rem;
  background: #111111;
  -webkit-mask: url("assets/icons/caret-down.svg") center/contain no-repeat;
  mask: url("assets/icons/caret-down.svg") center/contain no-repeat;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.libraries-accordion[open] summary::after {
  transform: rotate(-90deg);
}

.libraries-accordion[open] summary {
  border-bottom: 1px solid #111111;
}

.libraries-accordion__body {
  padding: 2rem 0;
}

.libraries-origin-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem 0;
}

.libraries-origin-gallery img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

.libraries-accordion--compact summary::after {
  display: none;
}

.libraries-accordion--compact :is(summary, .libraries-accordion__heading) img {
  width: auto;
  max-width: 12rem;
  max-height: 4rem;
  object-fit: contain;
}

.libraries-history .split {
  margin-bottom: 4rem;
}

.libraries-history-gallery {
  display: grid;
  gap: 1.5rem;
  overflow: hidden;
}

.libraries-history-gallery__row {
  overflow: hidden;
}

.libraries-history-gallery__track {
  display: flex;
  width: max-content;
  transform: translateX(-50%);
  animation: bi-history-gallery 32s linear infinite;
}

.libraries-history-gallery__row:nth-child(2) .libraries-history-gallery__track {
  animation-duration: 38s;
}

.libraries-history-gallery__row:nth-child(3) .libraries-history-gallery__track {
  animation-duration: 35s;
}

.libraries-history-gallery:hover .libraries-history-gallery__track {
  animation-play-state: paused;
}

.libraries-history-gallery img {
  flex: 0 0 auto;
  width: clamp(16rem, 20vw, 23rem);
  aspect-ratio: 16/9;
  object-fit: cover;
}

@keyframes bi-history-gallery {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.libraries-history-logo {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.libraries-history-logo img {
  width: 12rem;
}

.libraries-campaign > .container > p {
  margin: 0 0 1.5rem;
}

.libraries-campaign h2 {
  max-width: 64rem;
  margin-bottom: 4rem;
  overflow-wrap: anywhere;
}

.libraries-campaign h2::first-letter {
  color: #aaa000;
}

.libraries-campaign-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 64rem;
}

.libraries-campaign-gallery figure {
  margin: 0;
}

.libraries-campaign-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.libraries-campaign-gallery figcaption {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
}

.libraries-cta .libraries-richtext {
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 47.5rem) {
  .libraries-page h1 {
    font-size: 3rem;
  }
  .libraries-accordion {
    padding-inline: 1.25rem;
  }
  .libraries-origin-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .libraries-origin-gallery img {
    height: auto;
    aspect-ratio: 16/9;
  }
  .libraries-history-gallery img {
    width: 72vw;
  }
  .libraries-campaign-gallery {
    gap: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .libraries-history-gallery__row {
    overflow-x: auto;
  }
  .libraries-history-gallery__track {
    transform: none;
    animation: none;
  }
  .libraries-history-gallery__track img[aria-hidden=true] {
    display: none;
  }
}
.legal-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 58rem) 1fr;
}

.legal-page__header {
  grid-column: 1;
  margin-bottom: 2rem;
}

.legal-page__header h1 {
  margin: 0;
}

.legal-content {
  grid-column: 1;
}

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

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

.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
}

.legal-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
}

.legal-content p,
.legal-content ul {
  margin-block: 0 1rem;
}

.legal-content ul {
  padding-left: 1.25em;
}

.legal-content li + li {
  margin-top: 0.6rem;
}

.legal-content a {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.legal-content table {
  width: 100%;
  margin-block: 1.5rem;
  border-collapse: collapse;
}

.legal-content th,
.legal-content td {
  padding: 0.75rem;
  border: 1px solid #d7d7d2;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 47.5rem) {
  .legal-page__layout {
    grid-template-columns: 1fr;
  }
  .legal-content table {
    display: block;
    overflow-x: auto;
  }
}
.language-switcher > ul {
  display: contents;
}

@media (max-width: 47.5rem) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .container {
    padding-inline: 1rem;
  }
  .section {
    padding-block: 4rem;
  }
  body.menu-open .site-header {
    background: #e5e0a2;
  }
  .site-header__inner {
    min-height: 5.5rem;
    gap: 0.9rem;
  }
  .site-logo {
    order: 1;
    margin-right: auto;
  }
  .site-logo img {
    width: 9rem;
  }
  .language-switcher {
    order: 2;
  }
  body.admin-bar .site-header {
    top: 2.875rem;
  }
  main {
    padding-top: 5.5rem;
  }
  .menu-toggle {
    display: block;
    order: 3;
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    background: #111111;
    color: #ffffff;
  }
  .site-nav {
    display: none;
    order: 4;
    position: absolute;
    inset: 100% 0 auto;
    min-height: calc(100dvh - 5.5rem);
    margin-left: 0;
    padding: 2.25rem 2rem 2.35rem;
    background: #e5e0a2;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    overflow-y: auto;
  }
  .site-nav.is-open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 2rem;
  }
  .site-nav ul {
    display: grid;
    align-items: start;
    gap: 1.7rem;
  }
  .site-nav .menu a {
    color: #151515;
    font-size: 1.25rem;
    font-weight: 400;
  }
  .site-nav > .button {
    align-self: flex-start;
    min-width: 16rem;
    justify-content: flex-start;
  }
  .site-nav__mobile-meta {
    display: grid;
    gap: 1.7rem;
    margin-top: auto;
  }
  .site-nav__mobile-meta a {
    color: #111111;
    font-weight: 400;
  }
  .site-nav__mobile-email {
    margin-top: 0.75rem;
  }
  body.menu-open {
    overflow: hidden;
  }
  body.admin-bar .site-nav {
    min-height: calc(100dvh - 5.5rem - 2.875rem);
  }
  .hero-intro, .split, .article-body {
    grid-template-columns: 1fr;
  }
  .hero-intro__title, .hero-intro__body {
    grid-column: 1;
  }
  .hero-media {
    min-height: 22rem;
  }
  .hero-intro {
    gap: 1rem;
    padding: 2rem;
  }
  .hero-intro__title, .article-header h1 {
    font-size: 2.75rem;
  }
  .section-heading {
    margin-bottom: 2rem;
  }
  .split {
    gap: 2.5rem;
  }
  .practice-grid, .proposal-form, .site-footer__main {
    grid-template-columns: 1fr;
  }
  .practice-card, .practice-card--featured {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 4/3;
  }
  .home-practices .practice-card {
    min-height: auto;
  }
  .home-practices .practice-card__content {
    min-height: 5.5rem;
    padding: 1.25rem;
  }
  .home-practices .practice-card__content h3 {
    font-size: 1.25rem;
  }
  .post-type-archive-bona_practica .practice-card, .post-type-archive-bona_practica .practice-card--featured {
    min-height: 0;
  }
  .article-header {
    padding-block: 3rem;
  }
  .article-header__footer {
    display: grid;
  }
  .article-actions {
    justify-content: flex-start;
    margin-left: 0;
  }
  .article-body {
    gap: 2rem;
  }
  .article-content h2 {
    font-size: 2rem;
  }
  .pullquote {
    padding: 1.5rem;
    font-size: 1.375rem;
  }
  .comment-form {
    grid-template-columns: 1fr;
  }
  .comment-form > p {
    grid-column: 1;
  }
  .related-practices .practice-card {
    min-height: 0;
  }
  .share-page__form {
    padding: 1.5rem;
  }
  .proposal-form, .share-page__network-grid {
    grid-template-columns: 1fr;
  }
  .share-page__network-content {
    min-height: 22rem;
    padding: 1.5rem;
  }
  .site-footer {
    padding-top: 4rem;
  }
  .site-footer__bottom {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
