:root {
  --brand-blue: #173b8f;
  --brand-blue-deep: #102f77;
  --brand-red: #cb3938;
  --brand-ink: #27324a;
  --brand-muted: #667085;
  --brand-paper: #f8f6f1;
  --brand-line: #e4e7ec;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
}

body.resource-page {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--brand-ink);
  font-family: "Kollektif", "Avenir Next", Avenir, Arial, sans-serif;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--brand-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-brand img {
  display: block;
  width: 190px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header nav a {
  padding: 11px 16px;
  border-radius: 12px;
  color: var(--brand-blue-deep);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: #f1f5ff;
}

.site-header nav .site-button {
  background: var(--brand-blue);
  color: #fff;
}

.site-header nav .site-button:hover,
.site-header nav .site-button:focus-visible {
  background: var(--brand-blue-deep);
}

.site-header .language-toggle {
  min-width: 82px;
  padding: 10px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue-deep);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.site-header .language-toggle:hover,
.site-header .language-toggle:focus-visible {
  border-color: #c8d4ee;
  background: #f1f5ff;
}

body.resource-page .british-food-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 72px;
  color: var(--brand-ink);
}

body.resource-page .british-food-wrap .section {
  margin-top: 24px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--brand-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(20, 45, 100, 0.07);
}

body.resource-page .british-food-wrap .hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 76px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 56%, rgba(246, 248, 253, 0.74) 100%),
    var(--brand-paper);
}

body.resource-page .british-food-wrap .hero::after {
  position: absolute;
  z-index: 0;
  right: -70px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 59, 143, 0.14), rgba(203, 57, 56, 0.04) 52%, transparent 70%);
  content: "";
}

body.resource-page .british-food-wrap .hero > * {
  position: relative;
  z-index: 1;
}

body.resource-page .british-food-wrap .brand-logo {
  width: min(350px, 82%);
  margin: 0 auto 24px;
  filter: saturate(0.92);
}

body.resource-page .british-food-wrap .food-badge {
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 0;
  background: #edf3ff;
  color: var(--brand-blue);
  font-size: 12px;
  letter-spacing: 1.25px;
}

body.resource-page .british-food-wrap h1 {
  width: 100%;
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 18px;
  color: var(--brand-blue);
  font-size: clamp(48px, 8vw, 82px);
  letter-spacing: -0.045em;
  text-align: center;
}

body.resource-page .british-food-wrap h1::after {
  color: var(--brand-red);
  content: ".";
}

body.resource-page .british-food-wrap .hero-tagline {
  width: 100%;
  margin: -4px auto 18px;
  color: var(--brand-red);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: center;
}

body.resource-page .british-food-wrap h2 {
  color: var(--brand-blue);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.025em;
}

body.resource-page .british-food-wrap p {
  color: var(--brand-muted);
  font-size: 17px;
  line-height: 1.65;
}

body.resource-page .british-food-wrap .resource-meta {
  margin-top: 12px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.resource-page .british-food-wrap .pillbar {
  overflow-x: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-top: 28px;
  padding: 4px 2px 10px;
  gap: 10px;
  scrollbar-width: thin;
}

body.resource-page .british-food-wrap .pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #dce4f5;
  background: #fff;
  color: var(--brand-blue-deep);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

body.resource-page .british-food-wrap .pill:hover,
body.resource-page .british-food-wrap .pill:focus-visible {
  transform: translateY(-2px);
  background: #edf3ff;
}

body.resource-page .british-food-wrap .pill.is-active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 7px 18px rgba(23, 59, 143, 0.2);
}

.resource-browser {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(1060px, calc(100% - 72px));
  margin: -18px auto 26px;
  padding: 18px 22px;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(20, 45, 100, 0.11);
  font-family: "Kollektif", "Avenir Next", Avenir, Arial, sans-serif;
}

.resource-browser label {
  color: var(--brand-blue-deep);
  font-size: 14px;
  font-weight: 900;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d8dfed;
  border-radius: 12px;
  background: #f8faff;
}

.search-shell span {
  color: var(--brand-blue);
  font-size: 25px;
  line-height: 1;
}

.search-shell input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--brand-ink);
  font: inherit;
}

.resource-browser .result-count {
  margin: 0;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body.resource-page .british-food-wrap .food-grid {
  gap: 14px;
  margin-top: 28px;
}

body.resource-page .british-food-wrap .food-box {
  position: relative;
  min-height: 124px;
  padding: 28px 72px 22px 24px;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  color: var(--brand-blue-deep);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.resource-page .british-food-wrap .food-box::after {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  place-items: center;
  border-radius: 12px;
  background: #eef3ff;
  color: var(--brand-blue);
  content: attr(data-letter);
  font-size: 16px;
  font-weight: 900;
}

body.resource-page .british-food-wrap .food-box::before {
  width: 5px;
  height: 100%;
  background: var(--brand-blue);
}

body.resource-page .british-food-wrap .food-box.red-line::before {
  background: var(--brand-red);
}

body.resource-page .british-food-wrap .food-box.red-line::after {
  background: #fff0f0;
  color: var(--brand-red);
}

body.resource-page .british-food-wrap .food-box.blue-line::before {
  background: var(--brand-blue);
}

body.resource-page .british-food-wrap .food-box span {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

body.resource-page .british-food-wrap .food-box small {
  margin-top: 12px;
  color: var(--brand-muted);
  font-size: 12px;
}

body.resource-page .british-food-wrap .food-box small::after {
  margin-left: 6px;
  color: var(--brand-red);
  content: "→";
}

body.resource-page .british-food-wrap .food-box:hover,
body.resource-page .british-food-wrap .food-box:focus-visible {
  transform: translateY(-3px);
  border-color: #c8d4ee;
  box-shadow: 0 12px 28px rgba(23, 59, 143, 0.11);
  outline: none;
}

body.resource-page .british-food-wrap .section:nth-of-type(even):not(.hero) {
  background: #fbfcff;
}

body.resource-page .british-food-wrap .section[hidden],
body.resource-page .british-food-wrap .food-box[hidden] {
  display: none;
}

body.resource-page .british-food-wrap .section:not(.hero) {
  animation: section-in 240ms ease both;
}

@keyframes section-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  background: var(--brand-blue-deep);
  color: #fff;
  font-family: "Kollektif", "Avenir Next", Avenir, Arial, sans-serif;
}

.site-footer .englishiamo-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer .englishiamo-cta > div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  font-size: 20px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.site-footer .footer-button {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue-deep);
  text-align: center;
}

.site-footer .footer-button:hover,
.site-footer .footer-button:focus-visible {
  background: #edf3ff;
}

.site-footer .back-to-top {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .site-header {
    gap: 8px;
    min-height: 64px;
    padding-inline: 16px;
  }

  .site-brand img {
    width: 120px;
    height: 44px;
  }

  .site-header nav > a:first-child {
    display: none;
  }

  .site-header nav a {
    padding: 9px 11px;
    font-size: 12px;
  }

  .site-header .language-toggle {
    min-width: 68px;
    padding: 9px 10px;
    font-size: 12px;
  }

  body.resource-page .british-food-wrap {
    width: min(100% - 24px, 1180px);
    margin-top: 12px;
  }

  body.resource-page .british-food-wrap .section {
    padding: 28px 20px;
    border-radius: 18px;
  }

  body.resource-page .british-food-wrap h1 {
    font-size: clamp(42px, 15vw, 62px);
  }

  body.resource-page .british-food-wrap .food-box {
    min-height: 0;
  }

  .resource-browser {
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
    margin-top: -10px;
    padding: 16px;
  }

  .resource-browser .result-count {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer .englishiamo-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
