/* Scoped to .jy (tokens on :root) so it coexists with Bootstrap 3/4 and the legacy globals. */

/* Local fonts sized to the web fonts' width and line metrics, so text doesn't shift when they load. */
@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto");
  font-weight: 400;
  size-adjust: 99.31%;
  ascent-override: 100.7%;
  descent-override: 26.18%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto");
  font-weight: 400;
  size-adjust: 131.87%;
  ascent-override: 75.45%;
  descent-override: 18.58%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold");
  font-weight: 700;
  size-adjust: 129.91%;
  ascent-override: 76.59%;
  descent-override: 18.86%;
  line-gap-override: 0%;
}

:root {
  --jy-navy: #243a5a;
  --jy-midnight: #1a2940;
  --jy-midnight-deep: #152032;
  --jy-dusty: #6e86a6;
  --jy-sapphire: #4f6f96;
  --jy-lavender: #cab8eb; /* artboard value; the style guide says #b8abcf */
  --jy-charcoal: #111318;
  --jy-stone: #f7f6ed;
  --jy-fog: #eceaec;
  --jy-white: #fff;
  --jy-sky: #b8e6ff;
  --jy-sky-tint: #eaf7ff;
  --jy-aubergine: #382f49;
  --jy-coral: #f45d3d;
  /* Darker than the artboards', for 4.5:1. */
  --jy-sale: #ca2d0b;
  --jy-strike: #ee0004;
  --jy-star: #f6ca15;
  --jy-star-tile: #87898e;

  --jy-text: var(--jy-midnight);
  --jy-heading: var(--jy-navy);
  --jy-rule: var(--jy-midnight);
  --jy-focus: var(--jy-sapphire);

  --jy-font-display: "Unbounded", "Unbounded Fallback", sans-serif;
  --jy-font-body: "Outfit", "Outfit Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jy-font-mono: "GeistMono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Linear from the 393px artboard to the 1280px one. px, not rem: Bootstrap 3 sets html to 10px. */
  --jy-fs-display: clamp(32px, 29.16px + 0.722vw, 38.4px);
  --jy-fs-h2: clamp(24px, 21.87px + 0.541vw, 28.8px);
  --jy-fs-h3: clamp(16px, 14.58px + 0.361vw, 19.2px);
  --jy-fs-title: clamp(18px, 16.4px + 0.406vw, 21.6px);
  --jy-fs-lead: clamp(14px, 12.76px + 0.316vw, 16.8px);
  --jy-fs-body: clamp(14px, 13.82px + 0.045vw, 14.4px);
  --jy-fs-small: clamp(12px, 11.47px + 0.135vw, 13.2px);
  --jy-fs-xs: clamp(11px, 10.56px + 0.113vw, 12px);
  --jy-fs-cta: clamp(12px, 10.94px + 0.271vw, 14.4px);
  --jy-fs-caps: clamp(11px, 10.03px + 0.248vw, 13.2px); /* tracked uppercase labels; the chip floor on phones */

  --jy-lh-tight: 1.15;
  --jy-lh-snug: 1.35;
  --jy-lh-body: 1.55;
  --jy-track-caps: 0.06em;

  --jy-space-1: 4px;
  --jy-space-2: 8px;
  --jy-space-3: 12px;
  --jy-space-4: 16px;
  --jy-space-5: 24px;
  --jy-space-6: 32px;
  --jy-space-7: 48px;
  --jy-space-8: 64px;
  --jy-space-9: 96px;
  --jy-gutter: clamp(24px, 5vw, 64px);
  --jy-content-max: 1280px;
  --jy-section-y: 96px;

  --jy-radius-sm: 4px;
  --jy-radius: 8px;
  --jy-radius-pill: 999px;

  --jy-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --jy-dur-fast: 150ms;
  --jy-dur: 250ms;
}

.jy {
  font-family: var(--jy-font-body);
  font-size: var(--jy-fs-body);
  line-height: var(--jy-lh-body);
  color: var(--jy-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.jy :where(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  font-family: var(--jy-font-display);
  font-size: inherit;
  font-weight: 600; /* artboard stems measure 0.186em: Unbounded SemiBold */
  line-height: var(--jy-lh-tight);
  letter-spacing: normal;
  text-transform: none;
  color: var(--jy-heading);
}

.jy :where(p) {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.jy :where(figure, blockquote, dl, dd) {
  margin: 0;
}

/* style.css and Bootstrap restyle every blockquote (18px grey type, 20/40 padding, left border). */
.jy :where(blockquote) {
  padding: 0;
  font-size: inherit;
  text-align: inherit;
  color: inherit;
  border: 0;
}

.jy :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Legacy a:hover/a:focus force #000 and kill the outline; components set --jy-link, not color. */
.jy :where(a),
.jy :where(a):hover,
.jy :where(a):focus {
  color: var(--jy-link, inherit);
  text-decoration: none;
}

.jy :where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--jy-focus);
  outline-offset: 3px;
}

/* Bootstrap 4 rings every focused button, mouse clicks included; keyboard focus keeps the ring above. */
.jy :where(a, button, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}

.jy :where(img, svg, video, picture) {
  display: block;
  max-width: 100%;
}

.jy :where(img, video) {
  height: auto;
}

.jy :where(button) {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.jy-visually-hidden {
  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 (prefers-reduced-motion: reduce) {
  .jy *,
  .jy *::before,
  .jy *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.jy-container {
  width: 100%;
  max-width: calc(var(--jy-content-max) + 2 * var(--jy-gutter));
  margin-inline: auto;
  padding-inline: var(--jy-gutter);
}

/* Plain sections space with margins, so neighbours collapse to one gap; tinted ones pad so the tint fills it. */
.jy-section {
  margin-block: var(--jy-section-y);
}

.jy-section--bg,
.jy-section--stone,
.jy-section--midnight,
.jy-section--charcoal {
  margin-block: 0;
  padding-block: var(--jy-section-y);
}

/* --jy-defer-size is the content box: a padded section leaves its padding out. */
.jy-section--defer {
  content-visibility: auto;
  contain-intrinsic-size: auto var(--jy-defer-size, 800px);
}

.jy-section--stone {
  background: var(--jy-stone);
}

.jy-section--midnight,
.jy-section--charcoal {
  --jy-text: var(--jy-white);
  --jy-heading: var(--jy-white);
  --jy-rule: var(--jy-white);
  --jy-focus: var(--jy-sky);
  color: var(--jy-text);
}

.jy-section--midnight {
  background: var(--jy-midnight-deep);
}

.jy-section--charcoal {
  background: var(--jy-charcoal);
}

/* Flex, not text-align: an inline-block title would pick up the line's strut below it. */
.jy-heading {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(30px, 22.7px + 1.86vw, 46.5px);
  text-align: center;
}

.jy-heading__title {
  padding: 0 16px 8px;
  font-size: var(--jy-fs-h2);
  background: linear-gradient(90deg, var(--jy-rule) 50%, transparent 0) left bottom / 6px 1px repeat-x;
}

.jy-heading--framed {
  margin-inline: clamp(8px, 2.706vw - 2.63px, 32px);
  padding-block: clamp(9px, 7.23px + 0.451vw, 13px);
  background:
    linear-gradient(90deg, var(--jy-rule) 50%, transparent 0) left top / 6px 1px repeat-x,
    linear-gradient(90deg, var(--jy-rule) 50%, transparent 0) left bottom / 6px 1px repeat-x;
}

.jy-heading--framed .jy-heading__title {
  padding: 0;
  font-size: var(--jy-fs-h3);
  background: none;
}

/* Cell (0,0) is empty; --flip starts on ink. */
.jy-checker {
  --cols: 2;
  --rows: 2;
  --cell: 16px;
  --ink: var(--jy-lavender);
  display: block;
  width: calc(var(--cols) * var(--cell));
  height: calc(var(--rows) * var(--cell));
  background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0)
    0 0 / calc(2 * var(--cell)) calc(2 * var(--cell));
}

.jy-checker--flip {
  background-image: conic-gradient(transparent 25%, var(--ink) 0 50%, transparent 0 75%, var(--ink) 0);
}

.jy-checker--fill {
  width: 100%;
}

/* Cells sized from the width, so exactly --cols span it and both ends land on whole cells. */
.jy-checker--fit {
  width: 100%;
  height: auto;
  aspect-ratio: var(--cols) / var(--rows);
  background-size: calc(200% / var(--cols)) calc(200% / var(--rows));
}

.jy-checker--center {
  margin-inline: auto;
}

/* Square paper grid, 28 -> 41px cells; sections set --line. Centred so both edges of a symmetric layout match.
   The desktop artboards stretch it (64x41, 48x31); the phone ones draw it square. */
.jy-grid-paper {
  --cell: clamp(28.4px, 22.68px + 1.454vw, 41.3px);
  --line: rgb(135 137 142 / 0.4);
  background:
    linear-gradient(var(--line) 1px, transparent 0) 50% 0 / var(--cell) var(--cell),
    linear-gradient(90deg, var(--line) 1px, transparent 0) 50% 0 / var(--cell) var(--cell);
}

/* Full-bleed scroll-snap list whose first item lines up with the content edge. Works without JS (swipe,
   trackpad, keyboard); home.js adds arrows under it and drag for mouse pointers. */
.jy-rail {
  --rail-inset: max(var(--jy-gutter), (100% - var(--jy-content-max)) / 2);
  position: relative;
}

.jy-rail__track {
  display: flex;
  gap: var(--rail-gap, 16px);
  padding-inline: var(--rail-inset);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--rail-inset);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.jy-rail__track::-webkit-scrollbar {
  display: none;
}

.jy-rail__track > * {
  flex: none;
  scroll-snap-align: start;
}

.jy-rail__track.is-dragging,
.jy-rail__track.is-gliding {
  scroll-snap-type: none;
}

.jy-rail__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* home.js sets is-static when nothing scrolls. */
.jy-rail.is-static .jy-rail__track {
  justify-content: center;
}

.jy-rail__controls {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.jy-rail__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--jy-white);
  background: var(--jy-navy);
  border-radius: var(--jy-radius-sm);
  transition: opacity var(--jy-dur) var(--jy-ease), background-color var(--jy-dur-fast) var(--jy-ease);
}

.jy-rail__btn:hover {
  background: var(--jy-midnight);
}

.jy-rail__btn .jy-icon {
  width: 14px;
  height: 14px;
}

.jy-rail__btn--prev .jy-icon {
  transform: scaleX(-1);
}

/* At an end the arrow dims but stays focusable, so keyboard focus is never dropped. */
.jy-rail__btn.is-off {
  opacity: 0.35;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .jy-rail.is-ready:not(.is-static) .jy-rail__controls {
    display: flex;
  }

  .jy-rail.is-ready:not(.is-static) .jy-rail__track {
    cursor: grab;
  }
}

.jy-icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
}

.jy-btn {
  --jy-link: var(--jy-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: clamp(38px, 36.67px + 0.338vw, 41px);
  padding: 0 24px;
  font-family: var(--jy-font-mono);
  font-size: var(--jy-fs-cta);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: var(--jy-white);
  background: var(--jy-sapphire);
  border-radius: var(--jy-radius-sm);
  transition: background-color var(--jy-dur-fast) var(--jy-ease);
}

.jy-btn .jy-icon {
  width: 0.7em;
  height: 0.7em;
  color: var(--jy-sky);
}

.jy-btn:hover {
  background: var(--jy-navy);
}

.jy-btn--navy {
  background: var(--jy-navy);
}

.jy-btn--navy:hover {
  background: var(--jy-midnight);
}

.jy-btn--block {
  width: 100%;
}

/* The artboards' tile buttons: 38 -> 42 tall, 12 -> 16 sides, 12 -> 13.2 type. */
.jy-btn--sm {
  gap: 10px;
  min-height: clamp(38px, 36.23px + 0.451vw, 42px);
  padding: 0 clamp(12px, 10.23px + 0.451vw, 16px);
  font-size: var(--jy-fs-small);
}

.jy-chip {
  display: inline-flex;
  align-items: center;
  min-height: clamp(18px, 16.67px + 0.338vw, 21px);
  padding: 0 6px;
  font-size: var(--jy-fs-xs);
  line-height: 1.2;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--jy-text);
  background: var(--jy-fog);
}

/* Opaque: 90% fog let a photo pull the sale text under 4.5:1. */
.jy-badge {
  display: inline-flex;
  align-items: center;
  min-height: clamp(28px, 24.46px + 0.902vw, 36px);
  padding: 0 8px;
  font-size: var(--jy-fs-caps);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jy-navy);
  background: var(--jy-fog);
}

.jy-badge--sale {
  color: var(--jy-sale);
}

/* Auto margins centre the row when it fits; the block padding keeps the focus ring unclipped. */
.jy-tabs {
  display: flex;
  gap: 8px;
  margin-block: -6px;
  padding: 6px var(--jy-gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.jy-tabs::-webkit-scrollbar {
  display: none;
}

.jy-tabs > :first-child {
  margin-left: auto;
}

.jy-tabs > :last-child {
  margin-right: auto;
}

.jy-tab {
  flex: none;
  min-height: clamp(28px, 26.23px + 0.451vw, 32px);
  padding: 0 12px;
  font-family: var(--jy-font-display);
  font-size: var(--jy-fs-lead);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  color: var(--jy-navy);
  transition: background-color var(--jy-dur-fast) var(--jy-ease), color var(--jy-dur-fast) var(--jy-ease);
}

.jy-tab[aria-selected="true"] {
  color: var(--jy-sky);
  background: var(--jy-navy);
}

@media (hover: hover) {
  .jy-tab[aria-selected="false"]:hover {
    background: var(--jy-fog);
  }
}

.jy-card__link {
  --jy-link: var(--jy-sapphire);
  display: block;
}

.jy-card__media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--jy-fog);
}

.jy-card__img,
.jy-card__hover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jy-card__hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--jy-dur) var(--jy-ease);
}

@media (hover: hover) and (pointer: fine) {
  .jy-card__link:hover .jy-card__hover.is-loaded {
    opacity: 1;
  }
}

.jy-card__media .jy-badge {
  position: absolute;
  top: 0;
  left: 0;
}

.jy-card__media .jy-badge--bestseller {
  top: auto;
  bottom: 8px;
  left: 8px;
  overflow: hidden;
  color: #4a2c00;
  background: linear-gradient(135deg, #f7d774 0%, #fff3b8 45%, #e6b422 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.jy-badge--bestseller::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-20deg);
  animation: jy-badge-shine 2.6s ease-in-out infinite;
}

@keyframes jy-badge-shine {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}

/* Above the hover photo, which is appended later. */
.jy-card__media .jy-badge,
.jy-card__media .jy-card__add {
  z-index: 1;
}

/* Outside the link: a button can't sit inside one. */
.jy-card {
  position: relative;
}

.jy-card__actions {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 2 / 3;
  pointer-events: none;
}

.jy-card__wish,
.jy-card__add {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.jy-card__wish {
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  color: var(--jy-sapphire);
}

.jy-card__wish .jy-icon {
  width: 19px;
  height: 18px;
  fill: var(--jy-fog);
}

.jy-card__wish[aria-pressed="true"] .jy-icon {
  fill: currentColor;
}

.jy-card__add {
  right: 8px;
  bottom: 8px;
  width: clamp(32px, 30.23px + 0.451vw, 36px);
  height: clamp(32px, 30.23px + 0.451vw, 36px);
  color: var(--jy-white);
  background: var(--jy-sapphire);
  border-radius: var(--jy-radius-sm);
  transition: background-color var(--jy-dur-fast) var(--jy-ease);
}

.jy-card__add .jy-icon {
  width: 100%;
  height: 100%;
}

@media (hover: hover) {
  .jy-card__wish:hover {
    color: var(--jy-navy);
  }

  .jy-card__add:hover {
    background: var(--jy-navy);
  }
}

.jy-card__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 0;
  border-bottom: 1px solid var(--jy-fog);
}

.jy-card__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--jy-fs-caps);
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jy-sapphire);
  transition: color var(--jy-dur-fast) var(--jy-ease);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jy-card__price {
  font-size: var(--jy-fs-body);
  line-height: 1.4;
  color: var(--jy-midnight);
}

.jy-card__strike {
  margin-left: 6px;
  color: var(--jy-strike);
}

.jy-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.jy-card__chips:not(:has(> li:not([hidden]))) {
  display: none;
}

.jy-card__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-top: 4px;
}

.jy-swatch {
  position: relative;
  flex: none;
  width: 30px;
  height: 24px;
}

.jy-swatch::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  background: var(--swatch, var(--jy-fog));
  box-shadow: inset 0 0 0 1px rgb(17 19 24 / 0.12); /* keeps white swatches visible */
  transition: border-radius var(--jy-dur-fast) var(--jy-ease);
}

.jy-swatch[aria-pressed="true"]::before,
span.jy-swatch::before {
  border-radius: var(--jy-radius-pill);
  box-shadow: inset 0 0 0 1px rgb(17 19 24 / 0.12), 0 2px 0 var(--jy-star-tile);
}

@media (hover: hover) {
  .jy-swatch[aria-pressed="false"]:hover::before {
    box-shadow: inset 0 0 0 1px rgb(17 19 24 / 0.12), 0 2px 0 var(--jy-fog);
  }

  .jy-card__link:hover .jy-card__name {
    color: var(--jy-navy);
  }
}

.jy .jy-swatch:focus-visible {
  outline-offset: 1px;
}

.jy-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, auto);
  background: var(--jy-fog);
}

.jy-media > img,
.jy-media > video,
.jy-media > picture,
.jy-media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- VIP band + footer
   Site chrome, so it lives here and not in home.css: every page gets it at launch. Gaps are the artboards'
   ink gaps converted to line boxes with Outfit's metrics. */

.jy-vip {
  --jy-focus: var(--jy-sky);
  padding: 66px 0 48px;
  text-align: center;
  color: var(--jy-white);
  background: var(--jy-charcoal);
}

.jy-vip__crown {
  width: clamp(45px, 38.49px + 1.657vw, 60px);
  height: auto;
  margin-inline: auto;
}

/* Uppercase as drawn, but untracked: the ink widths match Outfit's own spacing. */
.jy-vip__label {
  margin-top: 2.5px;
  font-family: var(--jy-font-body);
  font-size: clamp(12px, 10.94px + 0.271vw, 14.4px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--jy-sky);
}

.jy-vip__lead {
  margin-top: 1px;
  font-size: var(--jy-fs-lead);
  font-weight: 400;
  line-height: 1.4;
}

.jy-vip__form {
  max-width: 345px;
  margin: clamp(16.5px, 12.95px + 0.902vw, 24.5px) auto 0;
}

.jy-vip__row {
  display: flex;
  align-items: center;
}

.jy-vip__row--join {
  justify-content: center;
}

/* Scoped twice to beat style.css's input[type=tel] rules. 16px floor: iOS zooms into smaller fields. */
.jy-vip .jy-vip__input {
  flex: 1;
  min-width: 0;
  height: clamp(36px, 34.23px + 0.451vw, 40px);
  margin: 0;
  padding: 0 8px 0 16px;
  font: 400 max(16px, var(--jy-fs-lead)) / 1 var(--jy-font-body);
  text-overflow: ellipsis;
  color: var(--jy-white);
  caret-color: var(--jy-sky);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--jy-star-tile);
  border-radius: 0;
  box-shadow: none;
  outline: none;
  transition: border-color var(--jy-dur-fast) var(--jy-ease);
}

.jy-vip .jy-vip__input::placeholder {
  color: var(--jy-star-tile);
  opacity: 1;
}

.jy-vip .jy-vip__input:focus {
  border: 0;
  border-bottom: 2px solid var(--jy-sky);
}

.jy-vip .jy-vip__input[aria-invalid="true"] {
  border-bottom-color: var(--jy-coral);
}

/* Sits inside the field's height: 30 -> 34 tall, 16px sides. */
.jy-vip__submit {
  flex: none;
  min-height: 0;
  height: clamp(30px, 28.23px + 0.451vw, 34px);
  padding: 0 16px;
  font-size: var(--jy-fs-small);
}

/* Coral reads 5.7:1 on charcoal. Empty, it takes no room but stays a live region. */
.jy-vip__error {
  font-size: var(--jy-fs-small);
  line-height: 1.4;
  text-align: left;
  color: var(--jy-coral);
}

.jy-vip__error:not(:empty) {
  margin-top: 8px;
  padding-left: 16px;
}

.jy-vip__note {
  max-width: 345px;
  margin: 14px auto 0;
  font-size: var(--jy-fs-small);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.62);
  text-wrap: pretty;
}

/* The perk is the reason to sign up: its own line, brighter; the consent stays quiet under it. */
.jy-vip__perk {
  display: block;
  color: var(--jy-white);
}

.jy-vip__label--follow {
  margin-top: clamp(32.9px, 25.9px + 1.781vw, 48.7px);
}

.jy-vip__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.jy-vip__social {
  --jy-link: var(--jy-white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--jy-radius-pill);
  transition: color var(--jy-dur-fast) var(--jy-ease), background-color var(--jy-dur-fast) var(--jy-ease),
    border-color var(--jy-dur-fast) var(--jy-ease);
}

.jy-vip__social:hover {
  --jy-link: var(--jy-charcoal);
  background: var(--jy-sky);
  border-color: var(--jy-sky);
}

.jy-vip__social .jy-icon {
  width: 18px;
  height: 18px;
}

.jy-footer {
  --jy-footer-top: clamp(53.4px, 52.51px + 0.226vw, 55.4px);
  --jy-footer-headset: clamp(41.2px, 35.26px + 1.511vw, 54.6px);
  --jy-footer-title-gap: clamp(4.4px, 3.65px + 0.192vw, 6.1px);
  --jy-focus: var(--jy-sky);
  color: var(--jy-white);
  background: var(--jy-midnight);
}

/* Help on top, a full-width rule, then the links; side by side from 1152, where three link columns in half
   the width first fit the longest link ("Returns & Exchanges", 135px). */
.jy-footer__help {
  padding: var(--jy-footer-top) var(--jy-gutter) 48px;
  text-align: center;
  border-bottom: 2px solid var(--jy-white);
}

.jy-footer__headset {
  width: var(--jy-footer-headset);
  height: auto;
  margin-inline: auto;
}

.jy-footer__title {
  font-family: var(--jy-font-body);
  font-size: var(--jy-fs-title);
  font-weight: 600;
  line-height: 1.2;
  color: var(--jy-sky);
}

.jy-footer__help .jy-footer__title {
  margin-top: var(--jy-footer-title-gap);
}

.jy-footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(17.8px, 14.17px + 0.924vw, 26px);
  max-width: 512px;
  margin: clamp(18.2px, 14.7px + 0.891vw, 26.1px) auto 0;
  padding-inline: 12px;
  background: var(--jy-white);
}

.jy-footer__contact a {
  --jy-link: var(--jy-charcoal);
  --jy-focus: var(--jy-sapphire);
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: clamp(33px, 29.9px + 0.789vw, 40px);
  font-size: var(--jy-fs-body);
  line-height: 1.2;
}

.jy-footer__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Inside the white bar, where the ring can be seen. */
.jy-footer__contact a:focus-visible {
  outline-offset: -2px;
}

.jy-footer__contact img {
  width: clamp(14.3px, 11.11px + 0.812vw, 21.5px);
  height: auto;
}

.jy-footer__hours {
  margin-top: clamp(7.2px, 5.25px + 0.496vw, 11.6px);
  font-size: var(--jy-fs-body);
  line-height: 1.4;
  color: var(--jy-sky);
  text-wrap: balance;
}

/* Bootstrap gives address a bottom margin; browsers italicise it. */
.jy-footer__address {
  margin: 0;
  font-size: var(--jy-fs-lead);
  font-style: normal;
  line-height: 1.43;
  color: var(--jy-stone);
}

.jy-footer__map {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.jy-footer__pin {
  width: clamp(11.4px, 8.97px + 0.609vw, 16.8px);
  height: auto;
  margin: clamp(16.4px, 12.24px + 1.06vw, 25.8px) auto clamp(0.6px, -3.26px + 0.981vw, 9.3px);
}

.jy-footer__lines {
  display: block;
}

/* Says the address opens Maps, which a phone can't show on hover. */
.jy-footer__directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: var(--jy-fs-body);
  line-height: 1.4;
  color: var(--jy-sky);
}

.jy-footer__directions .jy-icon {
  width: 0.7em;
  height: 0.7em;
}

.jy-footer__map:hover .jy-footer__directions span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jy-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 0;
  padding: 48px var(--jy-gutter) 0;
}

.jy-footer__group {
  min-width: 0;
  padding-left: 8px;
}

/* On phones an odd group out takes the whole row and splits its links in two columns, aligned with the
   columns above (8px gap = the groups' inset). */
.jy-footer__group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.jy-footer__group:last-child:nth-child(odd) .jy-footer__links {
  columns: 2;
  column-gap: 8px;
}

.jy-footer__links {
  margin-top: clamp(20px, 19.07px + 0.237vw, 22.1px);
}

.jy-footer__links li {
  font-size: var(--jy-fs-body);
  line-height: clamp(24.5px, 22.95px + 0.395vw, 28px);
  break-inside: avoid;
}

/* Inline-block, so the tap target is the whole 24.5px row, not just the text. */
.jy-footer__links a {
  --jy-link: var(--jy-white);
  display: inline-block;
}

.jy-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jy-footer__base {
  padding: 32px var(--jy-gutter) calc(clamp(24px, 21.34px + 0.677vw, 30px) + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

/* Block, so no line box adds a descender gap under the logo. */
.jy-footer__logo {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.jy-footer__logo img {
  width: clamp(82px, 65.16px + 4.284vw, 120px);
  height: auto;
}

/* Fine print floors at 12px (the phone artboard draws 10). The logo-to-copyright gap shrinks as it widens. */
.jy-footer__copy {
  margin-top: clamp(15.6px, 37.53px - 1.714vw, 30.8px);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.jy-footer__legal {
  max-width: 36em;
  margin: 6px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.7);
  text-wrap: balance;
}

.jy-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px) {
  .jy-vip__form {
    max-width: 320px;
  }

  /* Wide enough for the consent sentence on one line under the perk. */
  .jy-vip__note {
    max-width: 400px;
  }

  .jy-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    max-width: 720px;
    margin-inline: auto;
  }

  .jy-footer__group {
    padding-left: 0;
  }

  .jy-footer__group:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .jy-footer__group:last-child:nth-child(odd) .jy-footer__links {
    columns: auto;
  }
}

@media (min-width: 1152px) {
  /* The base sits under the help column, so the rule runs from the top to its last line. */
  .jy-footer__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    max-width: var(--jy-content-max);
    margin-inline: auto;
    padding-bottom: calc(clamp(24px, 21.34px + 0.677vw, 30px) + env(safe-area-inset-bottom, 0px));
  }

  .jy-footer__help {
    grid-area: 1 / 1;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .jy-footer__base {
    grid-area: 2 / 1;
    padding: 40px var(--jy-gutter) 0;
  }

  /* Group titles on the help title's line (the headset is 51.9/54.6 as tall as wide); the rule's 2px come
     out of the inset so the links start where drawn. */
  .jy-footer__nav {
    grid-area: 1 / 2 / 3;
    align-content: start;
    max-width: none;
    margin: 0;
    padding: calc(var(--jy-footer-top) + var(--jy-footer-headset) * 0.9505 + var(--jy-footer-title-gap))
      var(--jy-gutter) 0 calc(var(--jy-gutter) - 2px);
    border-left: 2px solid var(--jy-white);
  }
}
