/**
 * RetailFix Core — the Guides hub and each guide page.
 *
 * This software was originally conceived, designed, architected, and
 * developed by Jess Maron. The underlying concepts, system structure,
 * functionality, workflows, and custom code represent original creative
 * and technical work by its creator. Attribution to the original creator
 * is intended to remain associated with this work.
 */

.rfg,
.rfg-lb {
  --rfg-red: #bb0016;
  --rfg-red-bright: #e1272b;
  --rfg-orange: #fea121;
  --rfg-orange-deep: #f9a316;
  --rfg-ink: #1c1917;
  --rfg-paper: #fcf9f8;
  --rfg-cream: #fbe9e5;
  --rfg-stone: #78716c;
  --rfg-line: #e2d9d4;
}
.rfg {
  box-sizing: border-box;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 72px;
  color: var(--rfg-ink);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.rfg *,
.rfg *::before,
.rfg *::after {
  box-sizing: border-box;
}
.rfg a {
  color: var(--rfg-red);
}

/* Brand mark */
.rfg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Dongle", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}
.rfg-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rfg-red), var(--rfg-orange));
}

/* Hub */
/* The same sunrise and flowing line as the Suite and Studio headers. */
.rfg-hero {
  position: relative;
  overflow: hidden;
  margin: 28px 0 40px;
  padding: 64px 24px 56px;
  border-radius: 32px;
  background-color: var(--rfg-red);
  background-image: radial-gradient(150% 150% at 30% 118%, #fea121 0%, #fea121 15%, #e1272b 47%, #bb0016 80%);
  color: #fff;
  text-align: center;
}
.rfg-hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}
.rfg-hero-waves path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000px;
  animation: rfg-dash 10s ease-in-out infinite alternate;
}
@keyframes rfg-dash {
  to {
    stroke-dashoffset: 0;
  }
}
.rfg-hero > *:not(.rfg-hero-waves) {
  position: relative;
}
.rfg .rfg-hero-title {
  margin: 0;
  padding: 0;
  color: #fff !important;
  font-family: "Dongle", sans-serif !important;
  font-size: 96px !important;
  font-weight: 700 !important;
  line-height: 0.75 !important;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(80, 0, 10, 0.25);
}
.rfg .rfg-hero-sub {
  max-width: 520px;
  margin: 18px auto 0;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 17px;
  line-height: 1.5;
}
.rfg-hero-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--rfg-red) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
/* Each section on the hub is its own panel, with a line and a picture. */
.rfg-section {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--rfg-cream);
  border-radius: 28px;
  background: var(--rfg-paper);
}
.rfg-hub-nearby .rfg-section {
  border-color: var(--rfg-line);
  background: #fff;
}
.rfg-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}
.rfg-section-head-plain {
  display: block;
  margin-bottom: 16px;
}
.rfg .rfg-section-line {
  max-width: 34ch;
  margin: 12px 0 0;
  color: var(--rfg-stone);
  font-size: 17px;
  line-height: 1.5;
}
.rfg-section-art {
  overflow: hidden;
  aspect-ratio: 1200 / 760;
  border-radius: 20px;
  background: var(--rfg-cream);
  box-shadow: 0 10px 28px rgba(187, 0, 22, 0.08);
}
.rfg-section-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rfg-hub-nearby .rfg-section-art {
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.06);
}
.rfg-group + .rfg-group {
  margin-top: 26px;
}
.rfg .rfg-group-title {
  margin: 0 0 12px;
  color: var(--rfg-red) !important;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
}
.rfg-section-title {
  margin: 0;
  font-family: "Dongle", sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 0.9;
}
.rfg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.rfg-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--rfg-cream);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  color: var(--rfg-ink) !important;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.rfg-card:hover,
.rfg-card:focus-visible {
  border-color: #f0d2cb;
  box-shadow: 0 10px 24px rgba(187, 0, 22, 0.08);
  transform: translateY(-2px);
}
.rfg-card-eyebrow {
  color: var(--rfg-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rfg-card-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}
.rfg-card-line {
  flex: 1;
  color: var(--rfg-stone);
  font-size: 15px;
  line-height: 1.5;
}
.rfg-card-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--rfg-red);
  font-size: 14px;
  font-weight: 800;
}

/* Breadcrumb */
.rfg-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  color: var(--rfg-stone);
  font-size: 14px;
  font-weight: 600;
}
.rfg-crumb a {
  text-decoration: none;
}
.rfg-crumb a:hover {
  text-decoration: underline;
}

/* Guide */
.rfg-guide {
  max-width: 880px;
  margin: 0 auto;
}
.rfg-head {
  margin: 20px 0 28px;
  padding: 32px 32px 30px;
  border: 1px solid var(--rfg-cream);
  border-radius: 24px;
  background: var(--rfg-paper);
}
.rfg-head .rfg-brand {
  color: var(--rfg-ink);
}
.rfg-eyebrow {
  margin: 22px 0 4px;
  color: var(--rfg-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rfg-title {
  margin: 0;
  font-family: "Dongle", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.85;
}
.rfg-summary {
  margin: 12px 0 0;
  color: #44403c;
  font-size: 17px;
}
.rfg-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rfg-red), var(--rfg-red-bright));
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(187, 0, 22, 0.22);
}
.rfg-pdf:hover {
  filter: brightness(1.05);
}
.rfg-video {
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.12);
}
.rfg-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.rfg-toc {
  margin: 0 0 36px;
  padding: 22px 26px;
  border: 1px solid var(--rfg-line);
  border-radius: 20px;
  background: #fff;
}
.rfg-toc h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rfg-toc ol {
  margin: 0;
  padding-left: 22px;
}
.rfg-toc li {
  margin: 4px 0;
}
.rfg-toc a {
  font-weight: 600;
  text-decoration: none;
}
.rfg-toc a:hover {
  text-decoration: underline;
}
.rfg-step {
  margin: 0 0 44px;
  scroll-margin-top: 24px;
}
.rfg-step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}
.rfg-step-n {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rfg-ink);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.rfg-anchor {
  margin-left: auto;
  color: #d6ccc7 !important;
  font-size: 18px;
  text-decoration: none;
}
.rfg-anchor:hover {
  color: var(--rfg-red) !important;
}
.rfg-text p {
  margin: 0 0 12px;
}
.rfg-text ul,
.rfg-text ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.rfg-text li {
  margin: 4px 0;
}
.rfg-text strong {
  font-weight: 800;
}
.rfg-note {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-left: 4px solid var(--rfg-orange);
  border-radius: 10px;
  background: #fff8ec;
}
.rfg-m,
.rfg-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rfg-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  vertical-align: 1px;
}
.rfg-fig {
  margin: 16px 0 0;
}
.rfg-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rfg-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.07);
}
.rfg-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.rfg-marker {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 15px;
  pointer-events: none;
}
.rfg-fig figcaption {
  margin-top: 8px;
  color: var(--rfg-stone);
  font-size: 14px;
}

@media (max-width: 640px) {
  .rfg {
    padding: 0 16px 56px;
  }
  .rfg-hero {
    margin: 16px 0 28px;
    padding: 44px 18px 38px;
    border-radius: 24px;
  }
  .rfg .rfg-hero-title {
    font-size: 66px !important;
  }
  .rfg .rfg-hero-sub {
    font-size: 15px;
  }
  .rfg-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .rfg-section {
    margin-top: 20px;
    padding: 18px;
    border-radius: 22px;
  }
  .rfg-section-art {
    order: -1;
    border-radius: 16px;
  }
  .rfg .rfg-section-line {
    font-size: 15.5px;
  }
  .rfg-head {
    padding: 24px 20px;
  }
  .rfg .rfg-title {
    font-size: 50px !important;
  }
  .rfg-toc {
    padding: 18px 20px;
  }
  .rfg-step h2 {
    font-size: 20px;
  }
  .rfg-marker {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    font-size: 12px;
    box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, 0.3);
  }
}

/* The site theme styles headings too; inside the guides these win. */
.rfg h1,
.rfg h2,
.rfg h3 {
  color: var(--rfg-ink) !important;
  text-transform: none !important;
}
.rfg .rfg-title {
  font-family: "Dongle", sans-serif !important;
  font-size: 64px !important;
  font-weight: 700 !important;
  line-height: 0.85 !important;
}
.rfg .rfg-section-title {
  font-family: "Dongle", sans-serif !important;
  font-size: 44px !important;
  line-height: 0.9 !important;
}
.rfg .rfg-step h2,
.rfg .rfg-toc h2 {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif !important;
}
@media (max-width: 640px) {
  .rfg .rfg-title {
    font-size: 50px !important;
  }
}

/* Picture above the words once the panel gets narrow. */
@media (max-width: 860px) {
  .rfg-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .rfg-section-art {
    order: -1;
  }
}

/* Search on the guides page. */
.rfg-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: -12px auto 8px;
  padding: 0 18px;
  border: 1px solid var(--rfg-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.06);
  color: var(--rfg-stone);
}
.rfg-search:focus-within {
  border-color: var(--rfg-red);
}
.rfg .rfg-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--rfg-ink);
  font: inherit;
  font-size: 16px;
}
.rfg-search-none {
  margin: 28px 0 0;
  color: var(--rfg-stone);
  text-align: center;
}
.rfg [hidden] {
  display: none !important;
}

/* RetailFix Nearby's header, for guides opened from Nearby. */
.rfg-nbhead {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px 4px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}
.rfg-nbhead a {
  text-decoration: none !important;
}
.rfg-nbhead-brand {
  color: #bb0016 !important;
  font-family: "Dongle", sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 0.7;
}
.rfg-nbhead-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid #e2d9d4;
  border-radius: 999px;
  background: #fff;
  color: #bb0016 !important;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.rfg-nbhead-back:hover {
  border-color: #bb0016;
}
@media (max-width: 640px) {
  .rfg-nbhead {
    padding: 14px 16px 0;
  }
  .rfg-nbhead-brand {
    font-size: 34px;
  }
}

/* Footer: the top bar's orange for store guides, Nearby's own look for shopper guides. */
.rfg-foot {
  box-sizing: border-box;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 28px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
.rfg-foot *,
.rfg-foot *::before,
.rfg-foot *::after {
  box-sizing: border-box;
}
.rfg-foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.rfg-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}
.rfg-foot a {
  text-decoration: none !important;
}
.rfg-foot-links a:hover {
  text-decoration: underline !important;
}
.rfg-foot-nearby .rfg-foot-in {
  padding-top: 18px;
  border-top: 1px solid #e2d9d4;
}
.rfg-foot-nearby .rfg-foot-name {
  color: #bb0016 !important;
  font-family: "Dongle", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 0.7;
}
.rfg-foot-nearby .rfg-foot-links {
  color: #78716c;
  font-weight: 600;
}
.rfg-foot-nearby .rfg-foot-links a {
  color: #bb0016 !important;
}
@media (max-width: 640px) {
  .rfg-foot {
    padding: 0 16px 20px;
  }
  .rfg-foot-in {
    flex-direction: column;
    text-align: center;
  }
  .rfg-foot-links {
    justify-content: center;
  }
}

/* Room for the fixed top bar from app-switcher.css, in the Suite's font. */
.rfg-topnav-space {
  height: 65px;
}
.rf-topnav {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}

/* Lightbox: a picture opened full size. */
.rfg-guide .rfg-shot {
  cursor: zoom-in;
}
.rfg-guide .rfg-shot:focus-visible {
  outline: 3px solid var(--rfg-red);
  outline-offset: 3px;
}
html.rfg-lb-open {
  overflow: hidden;
}
.rfg-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(20, 17, 15, 0.88);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
}
.rfg-lb *,
.rfg-lb *::before,
.rfg-lb *::after {
  box-sizing: border-box;
}
.rfg-lb-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  box-sizing: border-box;
  padding: 68px 24px 24px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.rfg-lb .rfg-lb-shot {
  flex: none;
  max-width: calc(100vw - 48px);
  margin: auto;
  cursor: default;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.rfg-lb .rfg-marker {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  font-size: 15px;
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 0, 0, 0.3);
}
.rfg-lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--rfg-ink, #1c1917);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
@media (max-width: 640px) {
  /* Readable size on a phone: drag to move around the picture. */
  .rfg-lb-scroll {
    padding: 68px 16px 16px;
  }
  .rfg-lb .rfg-lb-shot {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rfg-hero-waves path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .rfg-card {
    transition: none;
  }
}
