/* Worldwide experience */
.home-world-button {
  background: #1c7b65;
  box-shadow: 0 10px 24px rgba(28, 123, 101, .22);
}

.nav-cookbook-count {
  min-width: 19px;
  min-height: 19px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .69rem;
  font-weight: 900;
}

.world-preview-section {
  margin-top: 5px;
}

.world-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.world-preview-card {
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(247, 196, 92, .28), transparent 38%),
    #fff;
  box-shadow: 0 9px 26px rgba(83, 58, 26, .06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  transition: .18s ease;
}

.world-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.world-preview-card > span {
  font-size: 1.8rem;
}

.world-preview-card strong {
  margin-top: 4px;
  font-size: 1.03rem;
}

.world-preview-card small {
  color: var(--muted);
}

.world-explore-hero,
.world-explore-shell,
.cookbook-hero,
.cookbook-shell {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.world-explore-hero,
.cookbook-hero {
  margin-top: 30px;
  margin-bottom: 24px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 211, 123, .3), transparent 26%),
    linear-gradient(135deg, #252019, #4a2f21 55%, #1c705f);
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.world-explore-hero h1,
.cookbook-hero h1 {
  margin: .15em 0;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: .95;
}

.world-explore-hero p,
.cookbook-hero p {
  max-width: 720px;
  margin: 0;
  color: #ebded4;
}

.world-explore-shell,
.cookbook-shell {
  margin-bottom: 55px;
}

.world-explore-head,
.cookbook-section-head {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.world-explore-head a {
  color: var(--accent);
  font-weight: 900;
}

.world-cuisine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.world-cuisine-card {
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(83,58,26,.07);
  overflow: hidden;
  text-decoration: none;
  transition: .2s ease;
}

.world-cuisine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.world-cuisine-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ffe3ad, #f9b77e);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.world-cuisine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-cuisine-image > span {
  font-size: 4rem;
}

.world-cuisine-copy {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.world-cuisine-copy > span {
  font-size: 1.8rem;
}

.world-cuisine-copy div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.world-cuisine-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-cuisine-copy small {
  color: var(--muted);
}

.cookbook-save-button {
  min-height: 50px;
  padding: 11px 17px;
  border: 1px solid #bfded5;
  border-radius: 999px;
  background: #effaf7;
  color: #176b5a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.cookbook-save-button.is-saved {
  border-color: #1c7b65;
  background: #1c7b65;
  color: #fff;
}

.ingredient-heading-row {
  margin-top: 23px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.ingredient-heading-row h2 {
  margin-bottom: 2px;
}

.ingredient-heading-row p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.recipe-adjusters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.adjuster-group {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf3;
  display: flex;
  gap: 3px;
}

.adjuster-group button {
  min-width: 42px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
}

.adjuster-group button.is-active {
  background: #28231f;
  color: #fff;
}

.ingredient-list {
  margin: 13px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf1;
  overflow: hidden;
  list-style: none;
}

.ingredient-list li {
  border-bottom: 1px solid var(--line);
}

.ingredient-list li:last-child {
  border-bottom: 0;
}

.ingredient-list label {
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.ingredient-list input {
  margin-top: .28em;
  accent-color: var(--accent);
}

.ingredient-list input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.unit-conversion-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.cookbook-hero-stat {
  min-width: 160px;
  padding: 17px 22px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  text-align: center;
}

.cookbook-hero-stat strong {
  display: block;
  color: #ffd073;
  font-size: 2.8rem;
  line-height: 1;
}

.cookbook-hero-stat span {
  color: #f4e8df;
  font-size: .85rem;
}

.cookbook-section-head {
  margin-top: 30px;
}

.cookbook-section-head h2 {
  margin: 0;
}

.cookbook-section-head p {
  margin: 3px 0 0;
  color: var(--muted);
}

.cookbook-recent-head {
  margin-top: 48px;
}

.cookbook-grid {
  min-height: 120px;
}

.cookbook-empty,
.cookbook-loading {
  grid-column: 1 / -1;
}

.cookbook-loading {
  min-height: 150px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  animation: cookbook-pan 1.2s ease-in-out infinite;
}

.cookbook-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.cookbook-remove {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a23b36;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
}

@keyframes cookbook-pan {
  50% { transform: rotate(-8deg) scale(1.08); }
}

@media (max-width: 1000px) {
  .world-preview-grid,
  .world-cuisine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 10px;
  }

  .site-header nav {
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .site-header nav a.nav-core {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }

  .site-header nav a.nav-secondary {
    display: none;
  }

  .site-header nav .nav-label {
    display: none;
  }

  .language-switch {
    padding: 7px 8px;
  }

  .world-preview-grid,
  .world-cuisine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-explore-hero,
  .cookbook-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookbook-hero-stat {
    width: 100%;
  }

  .ingredient-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .world-preview-grid,
  .world-cuisine-grid {
    grid-template-columns: 1fr;
  }

  .world-explore-head,
  .cookbook-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .recipe-like-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .cookbook-save-button {
    width: 100%;
    justify-content: center;
  }

  .recipe-adjusters {
    width: 100%;
  }

  .adjuster-group {
    flex: 1;
  }

  .adjuster-group button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-cuisine-card,
  .world-preview-card,
  .cookbook-loading {
    transition: none;
    animation: none;
  }
}

/* Layout alignment with the repaired global shell. */
.world-explore-hero,
.world-explore-shell,
.cookbook-hero,
.cookbook-shell {
  width: min(var(--content-width), calc(100% - 40px));
}

.world-explore-hero,
.cookbook-hero {
  margin-top: 12px;
  padding: clamp(30px, 4vw, 50px);
  border-radius: 30px;
}

.world-explore-hero h1,
.cookbook-hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 5rem);
}

.world-cuisine-grid,
.world-preview-grid {
  gap: 16px;
}

.world-cuisine-card,
.world-preview-card {
  min-width: 0;
}

@media (max-width: 900px) {
  .world-explore-hero,
  .world-explore-shell,
  .cookbook-hero,
  .cookbook-shell {
    width: calc(100% - 28px);
  }
}

@media (max-width: 620px) {
  .world-explore-hero,
  .cookbook-hero {
    margin-top: 2px;
    padding: 27px 22px;
    border-radius: 24px;
  }
}
