/*
 * Blog: post cards and lists, blog index and archives, single post,
 * search results, 404. Markup: inc/blog.php, template-parts/post-*.php,
 * single.php, home.php, archive.php, search.php, 404.php.
 * Sizes measured from the live site at 1440 / 820 / 390 px.
 */

/* ---------- Post card ---------- */

.yb-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 20px;
  border-radius: var(--yb-radius-panel, 24px);
  background: var(--yb-color-white, #fff);
  color: var(--yb-color-primary, #006aa6);
}

.yb-post-card__media {
  overflow: hidden;
  height: 290px;
  border-radius: var(--yb-radius-card, 16px);
  background: var(--yb-color-surface, #f8f9fa);
}

.yb-post-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-post-card__terms {
  margin: 0;
  padding-top: 3px;
  font-size: var(--yb-size-tag, 11px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 20px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.yb-post-card__title {
  min-height: 84px;
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 27px;
  letter-spacing: -0.2px;
}

.yb-post-card__link {
  color: inherit;
  text-decoration: none;
}

/* The title link covers the whole card. */
.yb-post-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.yb-post-card__link:focus-visible {
  outline: none;
}

.yb-post-card:focus-within {
  outline: 2px solid var(--yb-color-primary, #006aa6);
  outline-offset: 2px;
}

.yb-post-card__arrow {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 52px;
  height: 52px;
  margin-top: auto;
  border-radius: 50%;
  background: var(--yb-color-surface, #f8f9fa);
  transition: background-color 0.3s, color 0.3s;
}

.yb-post-card__arrow .yb-svg {
  width: 14px;
  height: 14px;
}

.yb-post-card:hover .yb-post-card__arrow {
  background: var(--yb-color-primary, #006aa6);
  color: var(--yb-color-accent, #feef00);
}

/* 30 px between the text and the arrow at the least; 10 on phones. */
.yb-post-card__title {
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .yb-post-card__title {
    margin-bottom: 0;
  }
}

/* ---------- Lists of cards ---------- */

.yb-posts--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-posts__item {
  margin: 0;
}

.yb-posts--carousel .yb-carousel__slide {
  flex: 0 0 calc((100% - 40px) / 3);
}

.yb-posts--carousel .yb-posts__track {
  gap: 20px;
}

@media (max-width: 1024px) {
  .yb-posts--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yb-posts--carousel .yb-carousel__slide {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 767px) {
  .yb-posts--grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-posts--carousel .yb-carousel__slide {
    flex-basis: 100%;
  }
}

/* ---------- Blog index and archives ---------- */

.yb-blog {
  padding: 0 var(--yb-edge, 10px);
  margin-bottom: 90px;
}

.yb-blog__panel {
  padding: 63px var(--yb-gutter, 30px);
  border-radius: var(--yb-radius-panel, 24px);
  background: var(--yb-color-surface, #f8f9fa);
}

.yb-blog__inner {
  max-width: var(--yb-width-content, 1140px);
  margin: 0 auto;
}

.yb-blog__title {
  margin: 0 0 30px;
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-h2, 48px);
  font-weight: var(--yb-weight-regular, 400);
  line-height: var(--yb-leading-h2, 1.2);
  letter-spacing: var(--yb-tracking-h2, -0.5px);
}

.yb-blog__empty {
  margin: 0;
}

.yb-pagination {
  margin-top: 40px;
}

.yb-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.yb-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--yb-radius-pill, 100px);
  background: var(--yb-color-white, #fff);
  color: var(--yb-color-primary, #006aa6);
  font-weight: var(--yb-weight-medium, 500);
  text-decoration: none;
}

.yb-pagination .page-numbers.current,
.yb-pagination a.page-numbers:hover {
  background: var(--yb-color-primary, #006aa6);
  color: var(--yb-color-white, #fff);
}

.yb-pagination .yb-svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .yb-blog {
    padding: 0;
    margin-bottom: 60px;
  }

  .yb-blog__panel {
    padding: 60px 20px 63px;
  }
}

@media (max-width: 767px) {
  .yb-blog {
    margin-bottom: 40px;
  }

  .yb-blog__panel {
    padding-top: 40px;
  }

  .yb-blog__title {
    margin-bottom: 20px;
  }
}

/* ---------- Single post ---------- */

.yb-post {
  margin: 0 var(--yb-edge, 10px) 60px;
  padding: 63px var(--yb-gutter, 30px) 0;
  border-radius: var(--yb-radius-panel, 24px) var(--yb-radius-panel, 24px) 0 0;
  background: linear-gradient(var(--yb-color-surface, #f8f9fa) 0%, var(--yb-color-white, #fff) 50vh);
}

.yb-post__header,
.yb-post__content,
.yb-post__footer {
  max-width: 830px;
  margin-inline: auto;
}

.yb-post__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  text-align: center;
}

.yb-post__tags {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 20px;
  padding: 5px 20px;
  border: 1px solid var(--yb-color-border, rgb(0 0 0 / 10%));
  border-radius: var(--yb-radius-card, 16px);
  color: var(--yb-color-text, rgb(0 0 0 / 80%));
  font-size: var(--yb-size-tag, 11px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 20px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.yb-post__tags .yb-svg {
  width: 12px;
  height: 12px;
}

.yb-post__date {
  margin: 0 0 40px;
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-tag, 11px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 20px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.yb-post__title {
  margin: 0;
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-h1, 52px);
  font-weight: var(--yb-weight-regular, 400);
  line-height: var(--yb-leading-h1, 1.1);
}

.yb-post__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 30px;
  padding-bottom: 30px;
  font-size: 14px;
}

.yb-post__footer p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.yb-post__footer a,
.yb-post__footer-date {
  color: var(--yb-color-primary, #006aa6);
}

.yb-post__footer .yb-svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1024px) {
  .yb-post {
    margin-inline: 0;
    padding-top: 60px;
  }
}

@media (max-width: 767px) {
  .yb-post {
    margin-bottom: 40px;
    padding-top: 40px;
  }

  .yb-post__date {
    margin-bottom: 30px;
  }
}

/* ---------- Post body (content/posts/*.html) ---------- */

.yb-post__content {
  color: var(--yb-color-text, rgb(0 0 0 / 80%));
}

.yb-post__content > :first-child {
  margin-top: 0;
}

.yb-post__content p {
  margin: 0 0 16px;
  line-height: 1.65;
}

.yb-post__content h2,
.yb-post__content h3,
.yb-post__content h4 {
  margin: 1.8em 0 0.6em;
  color: var(--yb-color-primary-kit, #0080c8);
  font-size: 21.6px;
  font-weight: var(--yb-weight-medium, 500);
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.yb-post__content h3 {
  font-size: 19px;
}

.yb-post__content h4 {
  font-size: 17px;
}

.yb-post__content ul,
.yb-post__content ol {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.yb-post__content li {
  margin-bottom: 0.3rem;
}

.yb-post__content a {
  color: var(--yb-color-primary, #006aa6);
}

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

.yb-post__content figure {
  margin: 30px 0;
}

.yb-post__content figure img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.yb-post__content figcaption {
  margin-top: 8px;
  color: var(--yb-color-muted, #7e7e7e);
  font-size: 14px;
  text-align: center;
}

.yb-post__content blockquote {
  margin: 30px 0;
  padding: 20px 25px;
  border-left: 3px solid var(--yb-color-primary-kit, #0080c8);
  border-radius: 0 var(--yb-radius-card, 16px) var(--yb-radius-card, 16px) 0;
  background: var(--yb-color-surface, #f8f9fa);
}

.yb-post__content blockquote > :last-child {
  margin-bottom: 0;
}

/* Lead paragraph under the title. */
.yb-post__content .yb-post-lead {
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-lead, 20px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 1.2;
  margin-bottom: 30px;
}

/* Subtitle line straight under the title. */
.yb-post__content .yb-post-subtitle {
  margin: -10px 0 30px;
  color: #4b6575;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.35;
  text-align: center;
}

/* Opening paragraph in a slightly larger size. */
.yb-post__content .yb-post-intro {
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Looser text, as three of the live posts set it (Riia, Häkaton, 2025). */
.yb-post__content .yb-post-airy p {
  line-height: 1.85;
}

.yb-post__content .yb-post-airy .yb-post-intro {
  font-size: 1.12rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

/* Tighter text, as two live posts have it (Samm edasi, Muudatused). */
.yb-post__content .yb-post-compact p,
.yb-post__content .yb-post-compact li {
  line-height: 1.4;
}

/* Opening paragraph of the year review. */
.yb-post__content .yb-post-summary {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Long lists of activities with roomy lines. */
.yb-post__content .yb-post-list {
  line-height: 2;
  margin-bottom: 2.5rem;
}

.yb-post__content .yb-post-list li {
  margin-bottom: 0;
}

/* Centred text in a narrower column, larger type (Rumeenia). */
.yb-post__content .yb-post-centered {
  max-width: 730px;
  margin-inline: auto;
  text-align: center;
}

.yb-post__content .yb-post-centered p {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.4;
}

.yb-post__content .yb-post-centered h3 {
  margin: 0 0 30px;
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-h3, 30px);
  font-weight: var(--yb-weight-regular, 400);
  line-height: 1.2;
}

/* A boxed item (a project with its dates). */
.yb-post__content .yb-post-box {
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border-left: 4px solid #0099cc;
  background: #f0f8fa;
}

.yb-post__content .yb-post-box h3 {
  margin-top: 0;
  color: #007aa3;
}

.yb-post__content .yb-post-box__dates {
  font-size: 0.9em;
  font-weight: 400;
}

.yb-post__content .yb-post-box p {
  margin-bottom: 0;
  line-height: 1.8;
}

/* Small label above the body ("Tartus"). */
.yb-post__content .yb-post-eyebrow {
  width: fit-content;
  margin: 0 auto 30px;
  padding: 5px 20px;
  border: 1px solid var(--yb-color-border, rgb(0 0 0 / 10%));
  border-radius: var(--yb-radius-card, 16px);
  color: var(--yb-color-black, #000);
  font-size: var(--yb-size-tag, 11px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 20px;
  text-transform: uppercase;
}

/* Photo credit and similar small print. */
.yb-post__content .yb-post-credit {
  color: var(--yb-color-muted, #7e7e7e);
  font-size: 14px;
}

/* Photos in a post: rounded with a soft shadow, as on the live posts. */
.yb-post__content figure img {
  box-shadow: 0 12px 30px rgb(0 0 0 / 10%);
}

/* Opening picture of a post. */
.yb-post__content .yb-post-hero {
  margin: 0 0 40px;
}

/* A square or tall photo kept to half the column, centred. */
.yb-post__content .yb-post-figure--narrow {
  max-width: 50%;
  margin-inline: auto;
}

/* A wide, cropped photo (680 × 360 on desktop). */
.yb-post__content .yb-post-figure--banner {
  max-width: 680px;
  margin-inline: auto;
}

.yb-post__content .yb-post-figure--banner img {
  aspect-ratio: 17 / 9;
  object-fit: cover;
}

/* A photo beside the text, on the right; centred between the paragraphs
   below 860 px, as live does. */
.yb-post__content .yb-post-figure--right {
  max-width: 430px;
  margin: 1rem auto 1.5rem;
}

@media (min-width: 860px) {
  .yb-post__content .yb-post-figure--right {
    float: right;
    width: 42%;
    max-width: none;
    margin: 0.35rem 0 1.2rem 2rem;
  }
}

.yb-post__content::after {
  content: "";
  display: table;
  clear: both;
}

/* Text beside a photo; --reverse puts the photo first. */
.yb-post__content .yb-post-media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0 2.4rem;
}

.yb-post__content .yb-post-media--reverse {
  flex-direction: row-reverse;
}

/* Side by side down to tablet width (live: 768 px); stacked on phones below. */
.yb-post__content .yb-post-media__text {
  flex: 1 1 260px;
  min-width: 260px;
}

/* Text that wants 450 px: the row stacks when the body is narrower than
   about 814 px, i.e. on tablets (Riia on live). */
.yb-post__content .yb-post-media--wide-text .yb-post-media__text {
  flex-basis: 450px;
}

.yb-post__content .yb-post-media__text > :last-child {
  margin-bottom: 0;
}

.yb-post__content .yb-post-media figure {
  flex: 0 1 340px;
  margin: 0;
}

/* Short quotes from participants. */
.yb-post__content .yb-post-quotes {
  margin: 0 0 16px;
  padding: 0 0 0 10px;
  border: 0;
  background: none;
}

@media (max-width: 767px) {
  .yb-post__content .yb-post-figure--narrow {
    max-width: 100%;
  }

  .yb-post__content .yb-post-media,
  .yb-post__content .yb-post-media--reverse {
    display: block;
  }

  .yb-post__content .yb-post-media figure {
    margin: 1rem 0 1.5rem;
  }
}

/* Two or more pictures side by side. */
.yb-post__content .yb-post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.yb-post__content .yb-post-gallery figure {
  margin: 0;
}

.yb-post__content .yb-post-gallery img {
  height: 100%;
  object-fit: cover;
}

/* Boxed call to action inside a post. */
.yb-post__content .yb-post-cta {
  margin: 1.6rem 0 2rem;
  padding: 1.45rem 1.55rem;
  border: 1px solid rgb(0 128 200 / 20%);
  border-radius: 18px;
  background: linear-gradient(135deg, #f2f9fd 0%, #fff 100%);
  box-shadow: 0 10px 24px rgb(0 128 200 / 8%);
}

.yb-post__content .yb-post-cta__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--yb-color-primary-kit, #0080c8);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yb-post__content .yb-post-cta__title {
  margin: 0 0 0.45rem;
  color: #164a63;
  font-size: 1.4rem;
  font-weight: 600;
}

.yb-post__content .yb-post-cta__text {
  margin: 0 0 1rem;
  color: #385763;
}

.yb-post__content .yb-post-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  background: var(--yb-color-primary-kit, #0080c8);
  box-shadow: 0 5px 12px rgb(0 128 200 / 20%);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.yb-post__content .yb-post-cta__button:hover,
.yb-post__content .yb-post-cta__button:focus-visible {
  background: #006fae;
}

/* Funding note and partner logos at the end of a project post. */
.yb-post__content .yb-post-note {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid #d7dfdb;
}

.yb-post__content .yb-post-note p {
  margin: 0 0 0.7rem;
  color: #5b6560;
  font-size: 0.9rem;
  line-height: 1.55;
}

.yb-post__content .yb-post-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.8rem;
}

.yb-post__content .yb-post-logos img {
  display: block;
  box-sizing: content-box;
  width: auto;
  max-width: min(100% - 2rem - 2px, 320px);
  height: auto;
  max-height: 140px;
  padding: 1rem;
  border: 1px solid rgb(0 128 200 / 12%);
  border-radius: 18px;
  background: var(--yb-color-white, #fff);
}

/* Two coloured panels: funding logo and project lead. */
.yb-post__content .yb-post-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 40px 0;
}

.yb-post__content .yb-post-card-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 30px;
  border-radius: var(--yb-radius-panel, 24px);
  background: var(--yb-color-primary, #006aa6);
}

.yb-post__content .yb-post-card-panel:not(.yb-post-card-panel--accent) {
  padding-inline: 0;
  overflow: hidden;
}

.yb-post__content .yb-post-card-panel img {
  display: block;
  width: 100%;
  border-radius: 0;
}

.yb-post__content .yb-post-card-panel--accent {
  justify-content: space-between;
  background: var(--yb-color-accent, #feef00);
  color: var(--yb-color-primary, #006aa6);
}

.yb-post__content .yb-post-card-panel--accent p {
  align-self: flex-start;
  margin: 0;
  padding: 5px 20px;
  border: 1px solid rgb(0 106 166 / 30%);
  border-radius: var(--yb-radius-card, 16px);
  font-size: var(--yb-size-tag, 11px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 20px;
  text-transform: uppercase;
}

.yb-post__content .yb-post-card-panel--accent h2 {
  margin: 20px 0 0;
  color: inherit;
  font-size: var(--yb-size-h2, 48px);
  font-weight: var(--yb-weight-regular, 400);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .yb-post__content .yb-post-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-post__content .yb-post-card-panel {
    min-height: 220px;
  }
}

/* ---------- More posts under a post ---------- */

.yb-related {
  padding: 90px var(--yb-gutter, 30px) 108px;
  background: var(--yb-color-surface, #f8f9fa);
}

.yb-related__inner {
  max-width: var(--yb-width-content, 1140px);
  margin: 0 auto;
}

.yb-related__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 20px;
  border: 1px solid var(--yb-color-border, rgb(0 0 0 / 10%));
  border-radius: var(--yb-radius-card, 16px);
  color: var(--yb-color-black, #000);
  font-size: var(--yb-size-tag, 11px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 20px;
  text-transform: uppercase;
}

.yb-related__title {
  max-width: 560px;
  margin: 0 0 40px;
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-h2, 48px);
  font-weight: var(--yb-weight-regular, 400);
  line-height: var(--yb-leading-h2, 1.2);
  letter-spacing: var(--yb-tracking-h2, -0.5px);
}

.yb-related__accent {
  color: var(--yb-color-primary-light, #28ade2);
}

/* Live keeps the three related posts in one row on tablets (768-1024). */
@media (min-width: 768px) {
  .yb-related .yb-posts--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Live: 60 px above and below on tablets, 40 on phones; title gap 30 / 20. */
@media (max-width: 1024px) {
  .yb-related {
    padding-block: 60px;
  }

  .yb-related__title {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .yb-related {
    padding-block: 40px;
  }

  .yb-related__title {
    max-width: 360px;
    margin-bottom: 20px;
  }
}

/* ---------- Search results ---------- */

.yb-search-page {
  padding: 90px var(--yb-gutter, 30px) 108px;
}

.yb-search-page__inner {
  max-width: var(--yb-width-content, 1140px);
  margin: 0 auto;
}

.yb-search-page__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 54px;
  text-align: center;
}

.yb-search-page__title {
  margin: 0 0 25px;
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-h1, 52px);
  font-weight: var(--yb-weight-regular, 400);
  line-height: var(--yb-leading-h1, 1.1);
}

.yb-search-page__intro {
  margin: 0 0 25px;
}

.yb-search-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}

.yb-search-form__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 14px 20px;
  border: 1px solid var(--yb-color-border, rgb(0 0 0 / 10%));
  border-radius: 28px;
  background: var(--yb-color-white, #fff);
  color: var(--yb-color-text, rgb(0 0 0 / 80%));
  font: inherit;
  font-size: 14px;
}

.yb-search-form__button {
  display: grid;
  flex: 0 0 50px;
  place-items: center;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--yb-color-accent, #feef00);
  color: var(--yb-color-primary, #006aa6);
  cursor: pointer;
}

.yb-search-form__button .yb-svg {
  width: 18px;
  height: 18px;
}

.yb-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-result {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 268px;
  padding: 20px;
  border: 1px solid var(--yb-color-border, rgb(0 0 0 / 10%));
  border-radius: var(--yb-radius-panel, 24px);
}

.yb-result__title {
  margin: 0;
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-h4, 22px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: var(--yb-leading-h4, 1.3);
  overflow-wrap: anywhere;
}

.yb-result__link {
  color: inherit;
  text-decoration: none;
}

.yb-result__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.yb-result:focus-within {
  outline: 2px solid var(--yb-color-primary, #006aa6);
  outline-offset: 2px;
}

.yb-result__link:focus-visible {
  outline: none;
}

.yb-result__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yb-color-text, rgb(0 0 0 / 80%));
  font-size: 14px;
  font-weight: var(--yb-weight-medium, 500);
}

.yb-result__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yb-color-accent, #feef00);
  color: var(--yb-color-primary, #006aa6);
}

.yb-result__icon .yb-svg {
  width: 10px;
  height: 10px;
}

.yb-search-page__more {
  margin: 50px 0 0;
  text-align: center;
}

.yb-search-page__more-link,
.yb-404__button {
  display: inline-block;
  padding: 16px 24px;
  border-radius: var(--yb-radius-pill, 100px);
  background: var(--yb-color-primary, #006aa6);
  color: var(--yb-color-white, #fff);
  font-size: var(--yb-size-button, 15px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 1;
  letter-spacing: var(--yb-tracking-button, -0.2px);
  text-decoration: none;
}

.yb-search-page__more-link:hover,
.yb-404__button:hover {
  background: var(--yb-color-primary-hover, #005d94);
}

.yb-search-page__empty {
  text-align: center;
}

/* Live keeps three columns on tablets, with shorter cards. */
@media (max-width: 1024px) {
  .yb-search-page {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .yb-search-page__header {
    margin-bottom: 25px;
  }

  .yb-result {
    min-height: 235px;
  }

  .yb-search-page__more {
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  .yb-search-page {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .yb-search-page__header {
    margin-bottom: 20px;
  }

  .yb-search-page__title {
    margin-bottom: 20px;
  }

  .yb-search-form__input {
    font-size: 16px;
  }

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

  .yb-result {
    min-height: 204px;
  }
}

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

.yb-404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-height: 450px; /* live: the section is never shorter; content centred */
  padding: 90px var(--yb-gutter, 30px);
}

.yb-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.yb-404__eyebrow {
  margin: 0;
  color: var(--yb-color-black, #000);
  line-height: 1.2;
}

.yb-404__code {
  margin: 0;
  color: var(--yb-color-primary, #006aa6);
  font-size: 200px;
  font-weight: 700;
  line-height: 1;
}

.yb-404__title {
  margin: 0;
  color: var(--yb-color-primary, #006aa6);
  font-size: var(--yb-size-h3, 30px);
  font-weight: var(--yb-weight-medium, 500);
  line-height: 1.2;
}

.yb-404__text {
  margin: 0 0 17px;
}

@media (max-width: 1024px) {
  .yb-404__code {
    font-size: 100px;
  }
}

@media (max-width: 767px) {
  .yb-404__code {
    font-size: 60px;
  }
}
