/* The pages under search (D-1440): the showcases, the recipes and the lists, on the design's tokens
   and the dish and shopping classes of the quiz's result. No pictures but the place of a photo. */
.seo {
  display: grid;
  gap: var(--space-5);
  width: min(760px, 100%);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.seo h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-question);
  line-height: var(--line-height-heading);
}

.seo-title {
  margin: 0;
  font-size: var(--font-size-heading);
  line-height: var(--line-height-tight);
}

.seo-lead {
  margin: 0;
  font-size: var(--font-size-lead);
  color: var(--color-text-secondary);
}

.seo-note {
  margin: var(--space-2) 0 0;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.seo-block {
  min-width: 0;
}

.seo .card {
  padding: var(--space-5);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin: 0;
  padding: 0;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
  list-style: none;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li + li::before {
  margin-right: var(--space-2);
  content: "/";
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}

.seo-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-facts li {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-selected);
  font-size: var(--font-size-caption);
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.seo-status {
  margin: var(--space-2) 0 0;
  font-weight: var(--font-weight-medium);
}

.seo-status:empty {
  display: none;
}

.menu-days {
  display: grid;
  gap: var(--space-4);
}

.menu-day__title {
  margin: 0 0 var(--space-3);
}

.menu-day .dishes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-day .dish-title a {
  color: var(--color-accent);
}

.menu-day__totals {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--border-width) solid var(--color-border);
}

.menu-day__totals p {
  margin: 0;
}

.menu-day__kcal {
  font-weight: var(--font-weight-bold);
}

.menu-day__macros,
.menu-day__time {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.shopping-count {
  margin: var(--space-3) 0 0;
  font-weight: var(--font-weight-medium);
}

.seo .seo-cta {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  background: var(--color-selected);
}

.seo-cta .button {
  text-decoration: none;
}

.seo-links {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-links a,
.seo-cards a {
  color: var(--color-accent);
}

/* D-1507: a link of a list or of the footer takes a finger, 44 px high. */
.seo-links a,
.seo-time-nav a,
.seo-faq li a,
.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.seo-cards {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo .seo-cards h2 {
  margin: 0;
  font-size: var(--font-size-lead);
}

.recipe-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: var(--border-width) dashed var(--color-border-strong);
  border-radius: var(--radius-medium);
  background: var(--color-surface-subtle);
}

.recipe-photo img {
  opacity: 0.35;
}

.recipe-picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-medium);
  object-fit: cover;
}

.recipe-table {
  width: 100%;
  border-collapse: collapse;
}

.recipe-table th,
.recipe-table td {
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
  border-bottom: var(--border-width) solid var(--color-border);
  font-weight: var(--font-weight-regular);
  text-align: left;
  vertical-align: top;
}

.recipe-table thead th {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.recipe-table td {
  white-space: nowrap;
}

.recipe-steps {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding-left: var(--space-5);
}

.recipe-nutrition {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.recipe-nutrition dt {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.recipe-nutrition dd {
  margin: 0;
  font-weight: var(--font-weight-bold);
}

.seo-cards h3 {
  margin: 0;
  font-size: var(--font-size-lead);
}

.seo-time-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--font-size-caption);
}

.seo-time-nav a {
  color: var(--color-accent);
}

.seo-dishes {
  margin: 0;
  padding-left: var(--space-5);
}

.tariff-terms {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tariff-terms strong {
  font-size: var(--font-size-lead);
}

.seo-rules {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.seo-rules dt {
  font-weight: var(--font-weight-bold);
}

.seo-rules dd {
  margin: 0;
}

.seo-faq h3 {
  margin: var(--space-3) 0 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
}

.seo-faq p {
  margin: var(--space-1) 0 0;
}

.seo-faq a {
  color: var(--color-accent);
}

@media (min-width: 900px) {
  .seo--wide {
    width: min(1100px, 100%);
  }
}

/* D-1465: three sections do not fit beside the name on a phone: the header keeps one line and the
   mark, the name stays for a screen reader. */
@media (max-width: 480px) {
  .site-header--sections .brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* D-1507: the sections, the theme and «Войти» take two lines on the narrowest screens. */
  .site-header--sections .site-nav {
    flex: 1 1 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
  }
}

@media print {
  .site-header,
  .cookie-bar,
  .crumbs,
  .seo-facts,
  .seo-lead,
  .seo-cta,
  .seo-no-print {
    display: none !important;
  }

  .seo,
  .seo--wide {
    width: 100%;
    padding: 0;
  }

}

@media (max-width: 520px) {
  .seo-title {
    font-size: var(--font-size-question);
  }

  .seo .card {
    padding: var(--space-4);
  }

  .recipe-nutrition {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
