/* ========================================================================
   Retailer guides: hub and guide pages.

   Loads on top of subpage.css (reset, type stack: Poppins headings, Inter
   body) and tokens.css. Colours are the site's tokens: Fern for links and the
   highlight, Foxglove (--sns-cta) for demo buttons, as everywhere else.
   ======================================================================== */

body { background: #ffffff; }

.rg {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 1.5rem 96px;
}

/* ------------------------------------------------------------ breadcrumb */
.rg-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 26px;
  padding: 0;
  font: 500 13px/1.5 Inter, sans-serif;
  color: var(--sns-grey-500, #667085);
}
.rg-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sns-grey-300, #CBD5E1); }
.rg-crumbs a { color: inherit; text-decoration: none; }
.rg-crumbs a:hover { color: var(--sns-brand, #3F7D4E); }
.rg-crumbs [aria-current="page"] { color: #0f172a; }

/* ------------------------------------------------------------------- hub */
.rg-hero { max-width: 760px; padding: 4px 0 36px; }
.rg-hero h1, .rg-guide-head h1 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  color: #0f172a;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 14px;
}
.rg-lede { font-size: 17px; line-height: 1.7; color: #56607a; margin: 0; max-width: 64ch; }

.rg-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.rg-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 172px;
  box-sizing: border-box;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.rg-card:hover { border-color: var(--sns-blue-200, #C9DEC8); box-shadow: 0 10px 30px rgba(15, 23, 42, .07); transform: translateY(-2px); }
a.rg-card:focus-visible { outline: 2px solid var(--sns-brand, #3F7D4E); outline-offset: 3px; }
/* gap: Aldi in Germany shows two marks (Nord and Süd) side by side. */
.rg-card-logo { display: flex; align-items: center; gap: 8px; height: 40px; margin-bottom: 4px; }
.rg-card-logo img { display: block; width: auto; max-width: 150px; object-fit: contain; }
.rg-card-name { font: 600 21px/1.2 Poppins, sans-serif; letter-spacing: -0.015em; color: #0f172a; margin: 0; }
.rg-card-text { font-size: 14.5px; line-height: 1.6; color: #56607a; margin: 0; flex: 1; }
.rg-card-cta { font: 600 14px/1 Inter, sans-serif; color: var(--sns-brand, #3F7D4E); }
.rg-card.is-soon { background: var(--sns-surface-2, #F6F7F2); border-style: dashed; }
.rg-card.is-soon .rg-card-name { color: var(--sns-grey-500, #667085); }
.rg-badge {
  align-self: flex-start;
  margin-top: auto;
  font: 600 12px/1 Inter, sans-serif;
  color: var(--sns-grey-500, #667085);
  background: #fff;
  border: 1px solid var(--sns-grey-200, #D9E0E8);
  border-radius: 999px;
  padding: 6px 10px;
}

/* One block per country: Switzerland first, then the neighbouring markets,
   each with a link to its overview. */
.rg-country { margin: 0 0 52px; }
.rg-country:last-child { margin-bottom: 0; }
.rg-country-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ebf1;
}
.rg-country-name {
  font: 700 clamp(22px, 2.6vw, 28px)/1.2 Poppins, sans-serif;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}
.rg-country-link { font: 600 14.5px/1.4 Inter, sans-serif; color: var(--sns-brand, #3F7D4E); text-decoration: none; }
.rg-country-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.rg-country-link:focus-visible { outline: 2px solid var(--sns-brand, #3F7D4E); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------------- guide */
.rg-guide-head { max-width: 820px; }
.rg-updated { font: 500 13.5px/1.5 Inter, sans-serif; color: var(--sns-grey-500, #667085); margin: 0; }

.rg-guide-grid { margin-top: 34px; }
.rg-toc {
  border: 1px solid var(--sns-grey-100, #E4E9EF);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 30px;
  background: #fff;
}
.rg-toc-title {
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--sns-grey-400, #98A2B3);
  margin: 0 0 12px;
}
.rg-toc ul { list-style: none; margin: 0; padding: 0; }
.rg-toc li { position: relative; font-size: 14px; line-height: 1.5; padding: 4px 0; }
.rg-toc a { color: #1e2338; text-decoration: none; }
.rg-toc a:hover { text-decoration: underline; }
.rg-toc a[aria-current="true"] { color: #0f172a; font-weight: 600; }
.rg-toc a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 3px;
  height: 1.2em;
  background: var(--sns-brand, #3F7D4E);
  border-radius: 2px;
}

@media (min-width: 960px) {
  .rg-guide-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  /* Clears the sticky site nav plus breathing room. */
  .rg-rail { position: sticky; top: 92px; }
  .rg-toc { margin: 0; max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
}

.rg-body { max-width: 780px; font-size: 16px; line-height: 1.75; color: #2c3348; }
.rg-body h2 {
  font-family: Poppins, sans-serif;
  font-size: clamp(21px, 2.4vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 46px 0 14px;
  scroll-margin-top: 96px;
}
.rg-body > h2:first-child { margin-top: 0; }
.rg-body h3 { font-family: Poppins, sans-serif; font-size: 17px; color: #0f172a; margin: 28px 0 10px; scroll-margin-top: 96px; }
.rg-body p { margin: 0 0 14px; }
.rg-body ul, .rg-body ol { padding-left: 1.3rem; margin: 0 0 16px; }
.rg-body li { margin: 0 0 9px; }
.rg-body a { color: var(--sns-brand, #3F7D4E); text-underline-offset: 2px; }
.rg-body a:hover { color: var(--sns-blue-700, #33683F); }

/* Tables scroll sideways on a phone instead of squashing their columns. */
.rg-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 22px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.rg-table:focus-visible { outline: 2px solid var(--sns-brand, #3F7D4E); outline-offset: 2px; }
.rg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.rg-table th, .rg-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #eef0f4; }
.rg-table tr:last-child td { border-bottom: 0; }
.rg-table th { font: 600 12.5px/1.4 Inter, sans-serif; letter-spacing: .02em; color: #475569; background: var(--sns-surface-2, #F6F7F2); }
.rg-table td:first-child { font-weight: 500; color: #0f172a; }

/* --------------------------------------------------------------- org chart */
.rg-org { margin: 24px 0 22px; }
.rg-org-chart { display: flex; flex-direction: column; align-items: center; }
.rg-org-node {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  border: 1px solid var(--sns-grey-300, #CBD5E1);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.45;
  color: #56607a;
}
.rg-org-node strong { display: block; font: 600 14.5px/1.35 Inter, sans-serif; color: #0f172a; }
.rg-org-node.is-key {
  border: 2px solid var(--sns-brand, #3F7D4E);
  background: var(--sns-blue-100, #E3EEE2);
}
/* Vertical connectors between the stacked levels. */
.rg-org-chart > .rg-org-node { margin-bottom: 26px; }
.rg-org-chart > .rg-org-node::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -27px;
  height: 26px;
  border-left: 2px solid var(--sns-grey-400, #98A2B3);
}
.rg-org-leaves { position: relative; display: grid; gap: 14px; width: 100%; justify-items: center; }
/* Stacked on a phone: a short line between the boxes keeps it one tree
   (SEO audit 13 Oct 2026: the connectors read as missing). */
@media (max-width: 679px) {
  .rg-org-leaves .rg-org-node:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    height: 14px;
    border-left: 2px solid var(--sns-grey-400, #98A2B3);
  }
}
@media (min-width: 680px) {
  .rg-org-leaves { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 18px; }
  .rg-org-leaves .rg-org-node { max-width: none; }
  /* The bar the three leaves hang from, and a stub down to each. */
  .rg-org-leaves::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(100% / 6);
    right: calc(100% / 6);
    border-top: 2px solid var(--sns-grey-400, #98A2B3);
  }
  .rg-org-leaves .rg-org-node::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -19px;
    height: 18px;
    border-left: 2px solid var(--sns-grey-400, #98A2B3);
  }
  /* The second level stops 18px above the bar, its stub reaching down to it. */
  .rg-org-chart > .rg-org-node:nth-child(2) { margin-bottom: 18px; }
  .rg-org-chart > .rg-org-node:nth-child(2)::after { bottom: -19px; height: 18px; }
}
.rg-org figcaption {
  margin-top: 14px;
  text-align: center;
  font: 500 13.5px/1.5 Inter, sans-serif;
  color: var(--sns-grey-500, #667085);
}

/* ---------------------------------------------------------------- buttons */
.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--sns-brand, #3F7D4E);
  color: #fff;
  font: 600 14.5px/1.2 Inter, sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.rg-body a.rg-btn { color: #fff; text-decoration: none; }
.rg-btn:hover { background: var(--sns-blue-700, #33683F); }
.rg-btn--cta { background: var(--sns-cta, #B64F78); }
.rg-btn--cta:hover { background: var(--sns-cta-hover, #A4456B); }
.rg-btn--ghost { background: #fff; color: #0f172a; border: 1px solid var(--sns-grey-300, #CBD5E1); }
.rg-btn--ghost:hover { background: var(--sns-surface-2, #F6F7F2); }
.rg-btn:focus-visible { outline: 3px solid rgba(63, 125, 78, .35); outline-offset: 2px; }
.rg-btn:disabled { opacity: .6; cursor: default; }
.rg-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }

/* A country overview lists its retailers as cards inside the article. */
.rg-body .rg-cards { margin: 18px 0 26px; padding: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rg-body .rg-cards li { margin: 0; }
.rg-body a.rg-card { color: inherit; text-decoration: none; min-height: 0; padding: 20px 18px; }
.rg-body .rg-card-name { margin: 0; font-size: 18px; }
.rg-body .rg-card-text { font-size: 14px; }

/* -------------------------------------------------------- two paths box */
.rg-paths {
  display: grid;
  gap: 16px;
  margin: 30px 0 10px;
}
/* One card now: the listing form. Kept to a comfortable form width. */
.rg-paths { max-width: 620px; }
.rg-path {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 22px;
  background: var(--sns-surface-2, #F6F7F2);
}
.rg-body .rg-path h3 { margin: 0 0 6px; font-size: 18px; }
.rg-path p { font-size: 15px; line-height: 1.6; color: #56607a; }
/* Outside Switzerland the box is the demo card: no form, one button. */
.rg-paths--demo .rg-path { background: #fff; border-color: var(--sns-blue-200, #C9DEC8); }
.rg-body .rg-path .rg-path-cta { margin: 14px 0 0; }

.rg-form { display: grid; gap: 12px; margin-top: 6px; }
.rg-field { display: grid; gap: 5px; }
.rg-field label { font: 600 12.5px/1.3 Inter, sans-serif; color: #344054; }
.rg-field input, .rg-field textarea, .rg-slide-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--sns-grey-300, #CBD5E1);
  border-radius: 10px;
  background: #fff;
  font: 400 15px/1.4 Inter, sans-serif;
  color: #0f172a;
}
.rg-field textarea { resize: vertical; min-height: 80px; }
.rg-field input:focus, .rg-field textarea:focus, .rg-slide-form input:focus {
  outline: none;
  border-color: var(--sns-brand, #3F7D4E);
  box-shadow: 0 0 0 3px rgba(63, 125, 78, .18);
}
.rg-form .rg-btn { justify-self: start; }
.rg-form-msg { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sns-ok, #047857); }
.rg-form-msg.is-error { color: #BE123C; }

/* ------------------------------------------------------------- FAQ, end */
.rg-faq h3 { margin-top: 22px; }
.rg-sources { font-size: 14px; }
.rg-disclaimer {
  margin-top: 36px !important;
  padding-top: 16px;
  border-top: 1px solid #e9ebf1;
  font-size: 13.5px;
  color: var(--sns-grey-500, #667085);
}
.rg-other {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}
.rg-body .rg-other h2 { margin: 0 0 8px; font-size: 19px; }
.rg-other p { margin: 0 0 8px; font-size: 15px; }
.rg-other ul { margin: 0 0 8px; }

/* ------------------------------------------------------------ slide-in */
.rg-slide {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  box-sizing: border-box;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .16);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.rg-slide.is-open { opacity: 1; transform: none; }
.rg-slide-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #667085;
  cursor: pointer;
}
.rg-slide-close:hover { background: var(--sns-surface-2, #F6F7F2); }
.rg-slide-text { margin: 0 28px 12px 0; font: 500 14.5px/1.5 Inter, sans-serif; color: #0f172a; }
.rg-slide-form { display: flex; gap: 8px; }
.rg-slide-form input { flex: 1; min-width: 0; }
.rg-slide-form .rg-btn { flex: none; padding: 10px 14px; }
.rg-slide-text strong { display: block; margin-bottom: 2px; }
/* The demo version (outside Switzerland): a button instead of the form. */
.rg-slide[data-rg-slide-demo] .rg-btn { width: 100%; box-sizing: border-box; }
@media (max-width: 520px) {
  .rg-slide { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-slide, .rg-card { transition: none; }
}

/* ---------------------------------------------------------------- utils */
.rg-sr, .rg-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .rg { padding: 22px 1.25rem 72px; }
  .rg-body { font-size: 15.5px; }
}
