/*
 * RoboParty VI 3.0 design tokens for the web.
 *
 * Source: VI manual vol. 1 (foundations, draft 2) and vol. 3 (office and
 * digital, draft 1), 2026-11. Values are copied from the manual; change them
 * only when the manual changes. Sizes are in rem so they follow the visitor's
 * browser settings; at a 16px root they equal the manual's pixel values.
 */

:root {
  --icon-stroke-width: var(--rp-icon-stroke); /* stroke width of the Horizon header icons */
  /* Brand and action (vol. 3, 2.3) */
  --rp-blue: #0a3c96; /* logo, headings, buttons, links */
  --rp-blue-hover: #08357f; /* pointer over the primary button */
  --rp-blue-pressed: #062b66; /* while pressed */
  --rp-focus: #3f78c7; /* keyboard focus ring, 2px */
  --rp-blue-soft: #e6eef9; /* selected item, secondary button hover */

  /* Tints and shades (vol. 1, 4.2). For layering only: backgrounds, states
     and text levels. They are not extra brand colours. The two middle tints
     (#6fa0da, #3f78c7) are for colour blocks, not for text backgrounds. */
  --rp-tint-1: #e6eef9;
  --rp-tint-2: #ccddf3;
  --rp-tint-3: #a3c1e8;
  --rp-tint-4: #6fa0da;
  --rp-tint-5: #3f78c7;
  --rp-shade-1: #08357f;
  --rp-shade-2: #062b66;
  --rp-shade-3: #041f4a;
  --rp-shade-4: #02122e;

  /* Neutrals (vol. 3, 2.3) */
  --rp-text: #1d1d1f; /* body text */
  --rp-text-secondary: #6e6e73; /* captions, notes */
  --rp-line: #e8e8ed; /* dividers, borders */
  --rp-surface: #f5f5f7; /* cards and section backgrounds */
  --rp-page: #ffffff; /* page background */
  --rp-dark: #02122e; /* dark sections; text on it is white */

  /* Status (vol. 3, 2.3). Always shown together with text or an icon. */
  --rp-success: #198548;
  --rp-warning: #b25e00;
  --rp-error: #c8102e;

  /* Typefaces (vol. 1, 5.8). Core covers Latin and figures; Barlow fills the
     characters Core lacks; Chinese uses the visitor's system typeface. */
  --rp-font-sans: "RoboParty Core", Barlow, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --rp-font-product: "RoboParty Stretch", "RoboParty Core", Barlow, sans-serif; /* product names, uppercase */
  --rp-font-display: "RoboParty Grid", "RoboParty Core", Barlow, sans-serif; /* large display lines, uppercase */
  --rp-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* code and logs */

  --rp-weight-light: 300; /* headings */
  --rp-weight-regular: 400; /* body */
  --rp-weight-bold: 700; /* emphasis, table headers */

  /* Type scale: size / line height (vol. 3, 2.4) */
  --rp-text-display: 4rem; /* 64 / 72 */
  --rp-leading-display: 4.5rem;
  --rp-text-h1: 3rem; /* 48 / 56 */
  --rp-leading-h1: 3.5rem;
  --rp-text-h2: 2rem; /* 32 / 40 */
  --rp-leading-h2: 2.5rem;
  --rp-text-h3: 1.5rem; /* 24 / 32 */
  --rp-leading-h3: 2rem;
  --rp-text-lead: 1.25rem; /* 20 / 32 */
  --rp-leading-lead: 2rem;
  --rp-text-body: 1rem; /* 16 / 28 */
  --rp-leading-body: 1.75rem;
  --rp-text-aux: 0.875rem; /* 14 / 24 */
  --rp-leading-aux: 1.5rem;
  --rp-text-note: 0.75rem; /* 12 / 20, the smallest size */
  --rp-leading-note: 1.25rem;

  /* Spacing: multiples of 8px only (vol. 3, 2.2) */
  --rp-space-8: 0.5rem;
  --rp-space-16: 1rem;
  --rp-space-24: 1.5rem;
  --rp-space-32: 2rem;
  --rp-space-48: 3rem;
  --rp-space-64: 4rem;
  --rp-space-80: 5rem; /* above each page section */
  --rp-space-96: 6rem;

  /* Components (vol. 3, 2.5) */
  --rp-control-height: 2.75rem; /* 44px buttons and inputs */
  --rp-control-height-compact: 2.25rem; /* 36px, with 14px text */
  --rp-tag-height: 1.5rem; /* 24px */
  --rp-radius-pill: 999px; /* buttons: half their height */
  --rp-radius-input: 8px; /* inputs, code blocks */
  --rp-radius-tag: 12px;
  --rp-radius-card: 16px;
  --rp-card-padding: 1.5rem; /* 24px */
  --rp-icon-stroke: 1.5px; /* on the 24px icon grid */

  /* Screen grid (vol. 3, 2.2): phone first */
  --rp-columns: 4;
  --rp-margin: 20px;
  --rp-gutter: 12px;
  --rp-content-max: 1440px; /* widest content area; wider screens add side space */
  --rp-header-height: 56px;
}

@media (min-width: 768px) {
  :root {
    --rp-columns: 8;
    --rp-margin: 40px;
    --rp-gutter: 16px;
    --rp-header-height: 64px;
  }
}

@media (min-width: 1280px) {
  :root {
    --rp-columns: 12;
    --rp-margin: 72px;
  }
}

/* Base rules that follow from the manual. */
body {
  background: var(--rp-page);
  color: var(--rp-text);
  font-family: var(--rp-font-sans);
  font-size: var(--rp-text-body);
  line-height: var(--rp-leading-body);
  font-weight: var(--rp-weight-regular);
  letter-spacing: 0; /* tracking is always 0; keep the typeface's own kerning */
  font-kerning: normal;
  font-synthesis: none; /* no browser-made bold or italic */
}

/* The focus ring is required on every interactive element. */
:focus-visible {
  outline: 2px solid var(--rp-focus);
  outline-offset: 2px;
}

/* Core's zero is slashed by default. Use this where it cannot be confused
   with the letter O. */
.rp-zero-plain {
  font-feature-settings: "ss01";
}

/* Content area: margins outside a content box of at most 1440px. */
.rp-container {
  width: 100%;
  max-width: calc(var(--rp-content-max) + 2 * var(--rp-margin));
  margin-inline: auto;
  padding-inline: var(--rp-margin);
}

/* 12 / 8 / 4 column grid. Children span whole columns. */
.rp-grid {
  display: grid;
  grid-template-columns: repeat(var(--rp-columns), minmax(0, 1fr));
  column-gap: var(--rp-gutter);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* The hidden attribute must win over any author display rule. */
[hidden] {
  display: none !important;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Unclassed headings look like body text; use the .rp-text-* classes. */
h1,
h2,
h3,
h4,
h5,
h6 {
  font: inherit;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

a {
  color: inherit;
}

/* Page frame: the footer sits at the bottom on short pages. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

/* The header group wrapper is the sticky element, because a sticky element
   only sticks inside its parent. */
.shopify-section-group-header-group {
  position: sticky;
  top: 0;
  z-index: 40;
}

.rp-skip-link {
  position: fixed;
  z-index: 100;
  top: var(--rp-space-8);
  left: var(--rp-space-16);
  transform: translateY(-200%);
  padding: var(--rp-space-8) var(--rp-space-16);
  border-radius: var(--rp-radius-input);
  color: #ffffff;
  background: var(--rp-blue);
  text-decoration: none;
}

.rp-skip-link:focus {
  transform: translateY(0);
}

.rp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.rp-section {
  background: var(--rp-page);
  padding-block: var(--rp-space-48);
}

@media (min-width: 768px) {
  .rp-section {
    padding-block: var(--rp-space-80);
  }
}

.rp-section--surface {
  background: var(--rp-surface);
}

.rp-section--blue {
  background: var(--rp-blue);
  color: #ffffff;
}

.rp-section--dark {
  background: var(--rp-dark);
  color: #ffffff;
}

/* On blue and dark sections headings, links and secondary text turn white. */
:is(.rp-section--blue, .rp-section--dark) :is(.rp-heading, .rp-link) {
  color: inherit;
}

:is(.rp-section--blue, .rp-section--dark) .rp-secondary {
  color: var(--rp-tint-2);
}

/* ==========================================================================
   Type
   Display, h1 and h2 step down one level below 768px.
   ========================================================================== */

.rp-text-display {
  font-size: 3rem;
  line-height: 3.5rem;
  font-weight: var(--rp-weight-light);
}

.rp-text-h1 {
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: var(--rp-weight-light);
}

.rp-text-h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: var(--rp-weight-light);
}

@media (min-width: 768px) {
  .rp-text-display {
    font-size: var(--rp-text-display);
    line-height: var(--rp-leading-display);
  }

  .rp-text-h1 {
    font-size: var(--rp-text-h1);
    line-height: var(--rp-leading-h1);
  }

  .rp-text-h2 {
    font-size: var(--rp-text-h2);
    line-height: var(--rp-leading-h2);
  }
}

.rp-text-h3 {
  font-size: var(--rp-text-h3);
  line-height: var(--rp-leading-h3);
  font-weight: var(--rp-weight-regular);
}

.rp-text-lead {
  font-size: var(--rp-text-lead);
  line-height: var(--rp-leading-lead);
  font-weight: var(--rp-weight-regular);
}

.rp-text-body {
  font-size: var(--rp-text-body);
  line-height: var(--rp-leading-body);
  font-weight: var(--rp-weight-regular);
}

.rp-text-aux {
  font-size: var(--rp-text-aux);
  line-height: var(--rp-leading-aux);
  font-weight: var(--rp-weight-regular);
}

.rp-text-note {
  font-size: var(--rp-text-note);
  line-height: var(--rp-leading-note);
  font-weight: var(--rp-weight-regular);
}

/* The store's owner asked for slightly bolder headings with 5% letter spacing (2026-11-30),
   which departs from the brand manual's Light headings with zero tracking. */
.rp-heading {
  color: var(--rp-blue);
  font-weight: var(--rp-weight-regular);
  letter-spacing: 0.05em;
}

.rp-product-name {
  font-family: var(--rp-font-product);
  font-weight: var(--rp-weight-bold);
  text-transform: uppercase;
}

.rp-secondary {
  color: var(--rp-text-secondary);
}

.rp-bold {
  font-weight: var(--rp-weight-bold);
}

/* ==========================================================================
   Links
   ========================================================================== */

.rp-link {
  color: var(--rp-blue);
  text-decoration: none;
}

.rp-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Buttons: pill, 44px high (36px compact)
   ========================================================================== */

.rp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rp-space-8);
  height: var(--rp-control-height);
  padding: 0 var(--rp-space-24);
  border: 1.5px solid transparent;
  border-radius: var(--rp-radius-pill);
  font-family: inherit;
  font-size: var(--rp-text-body);
  line-height: var(--rp-leading-aux);
  font-weight: var(--rp-weight-regular);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  color: var(--rp-blue);
  -webkit-appearance: none;
  appearance: none;
}

.rp-button--compact {
  height: var(--rp-control-height-compact);
  font-size: var(--rp-text-aux);
  line-height: var(--rp-leading-aux);
}

/* Primary: blue fill. Also the default look of a bare .rp-button--primary. */
.rp-button--primary {
  background: var(--rp-blue);
  border-color: var(--rp-blue);
  color: #ffffff;
}

.rp-button--primary:hover {
  background: var(--rp-blue-hover);
  border-color: var(--rp-blue-hover);
}

.rp-button--primary:active {
  background: var(--rp-blue-pressed);
  border-color: var(--rp-blue-pressed);
}

/* Secondary: white with a blue outline. */
.rp-button--secondary {
  background: var(--rp-page);
  border-color: var(--rp-blue);
  color: var(--rp-blue);
}

.rp-button--secondary:hover {
  background: var(--rp-blue-soft);
}

.rp-button--secondary:active {
  background: var(--rp-tint-2);
}

/* Text button: blue text only. */
.rp-button--text {
  padding-inline: var(--rp-space-8);
  background: transparent;
  border-color: transparent;
  color: var(--rp-blue);
}

.rp-button--text:hover {
  background: var(--rp-blue-soft);
}

.rp-button--text:active {
  background: var(--rp-tint-2);
}

/* On a blue section: white button, blue text. */
.rp-button--on-blue {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--rp-blue);
}

.rp-button--on-blue:hover {
  background: var(--rp-blue-soft);
  border-color: var(--rp-blue-soft);
}

.rp-button--on-blue:active {
  background: var(--rp-tint-2);
  border-color: var(--rp-tint-2);
}

.rp-button--danger {
  background: var(--rp-error);
  border-color: var(--rp-error);
  color: #ffffff;
}

.rp-button--danger:hover {
  background: color-mix(in srgb, var(--rp-error) 85%, #000000);
  border-color: color-mix(in srgb, var(--rp-error) 85%, #000000);
}

.rp-button--danger:active {
  background: color-mix(in srgb, var(--rp-error) 70%, #000000);
  border-color: color-mix(in srgb, var(--rp-error) 70%, #000000);
}

/* Disabled: the colour fades to about 40% and hover and press do nothing. */
.rp-button[disabled],
.rp-button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.rp-button--primary[disabled]:hover,
.rp-button--primary[aria-disabled="true"]:hover,
.rp-button--primary[disabled]:active,
.rp-button--primary[aria-disabled="true"]:active {
  background: var(--rp-blue);
  border-color: var(--rp-blue);
}

.rp-button--secondary[disabled]:hover,
.rp-button--secondary[aria-disabled="true"]:hover,
.rp-button--secondary[disabled]:active,
.rp-button--secondary[aria-disabled="true"]:active {
  background: var(--rp-page);
}

.rp-button--text[disabled]:hover,
.rp-button--text[aria-disabled="true"]:hover,
.rp-button--text[disabled]:active,
.rp-button--text[aria-disabled="true"]:active {
  background: transparent;
}

.rp-button--on-blue[disabled]:hover,
.rp-button--on-blue[aria-disabled="true"]:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.rp-button--danger[disabled]:hover,
.rp-button--danger[aria-disabled="true"]:hover {
  background: var(--rp-error);
  border-color: var(--rp-error);
}

/* ==========================================================================
   Tags: 24px high, 12px text
   ========================================================================== */

.rp-tag {
  display: inline-flex;
  align-items: center;
  height: var(--rp-tag-height);
  padding: 0 var(--rp-space-8);
  border: 1px solid var(--rp-blue);
  border-radius: var(--rp-radius-tag);
  font-size: var(--rp-text-note);
  line-height: var(--rp-leading-note);
  color: var(--rp-blue);
  background: transparent;
  white-space: nowrap;
}

.rp-tag--solid {
  background: var(--rp-blue);
  color: #ffffff;
}

/* ==========================================================================
   Cards: flat, no shadow
   ========================================================================== */

.rp-card {
  background: var(--rp-page);
  border-radius: var(--rp-radius-card);
  padding: var(--rp-card-padding);
}

.rp-card--bordered {
  border: 1px solid var(--rp-line);
}

/* ==========================================================================
   Form fields
   ========================================================================== */

.rp-field {
  display: flex;
  flex-direction: column;
  gap: var(--rp-space-8);
}

.rp-field__label {
  font-size: var(--rp-text-aux);
  line-height: var(--rp-leading-aux);
  font-weight: var(--rp-weight-bold);
  color: var(--rp-text);
}

.rp-input,
.rp-select {
  display: block;
  width: 100%;
  height: var(--rp-control-height);
  padding: 0 var(--rp-space-16);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-input);
  background: var(--rp-page);
  font-size: var(--rp-text-body);
  line-height: var(--rp-leading-body);
  color: var(--rp-text);
  -webkit-appearance: none;
  appearance: none;
}

textarea.rp-input {
  height: auto;
  min-height: calc(var(--rp-control-height) * 2);
  padding-block: 0.625rem;
  resize: vertical;
}

.rp-input::placeholder {
  color: var(--rp-text-secondary);
  opacity: 1;
}

.rp-input:focus,
.rp-select:focus {
  border-color: var(--rp-blue);
}

.rp-input:focus-visible,
.rp-select:focus-visible {
  outline: 2px solid var(--rp-focus);
  outline-offset: 2px;
}

.rp-input[aria-invalid="true"],
.rp-select[aria-invalid="true"],
.rp-field--error .rp-input,
.rp-field--error .rp-select {
  border-color: var(--rp-error);
}

.rp-input[disabled],
.rp-select[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* The select arrow is a line chevron in the standard blue. */
.rp-select {
  padding-right: var(--rp-space-48);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A3C96' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--rp-space-16) center;
  background-size: 20px 20px;
  cursor: pointer;
}

.rp-field__hint {
  font-size: var(--rp-text-aux);
  line-height: var(--rp-leading-aux);
  color: var(--rp-text-secondary);
}

.rp-field__error {
  font-size: var(--rp-text-aux);
  line-height: var(--rp-leading-aux);
  color: var(--rp-error);
}

/* ==========================================================================
   Tables: horizontal lines only
   ========================================================================== */

.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--rp-text-body);
  line-height: var(--rp-leading-body);
}

.rp-table th,
.rp-table td {
  padding-block: var(--rp-space-16);
  padding-inline: 0 var(--rp-space-16);
  border: 0;
  border-bottom: 1px solid var(--rp-line);
  text-align: left;
  vertical-align: top;
}

.rp-table th {
  font-weight: var(--rp-weight-bold);
}

.rp-table th:last-child,
.rp-table td:last-child {
  padding-right: 0;
}

/* ==========================================================================
   Data: a large Light figure with its label below
   ========================================================================== */

.rp-data {
  display: flex;
  flex-direction: column;
  gap: var(--rp-space-8);
}

.rp-data__value {
  font-size: var(--rp-text-h2);
  line-height: var(--rp-leading-h2);
  font-weight: var(--rp-weight-light);
}

@media (min-width: 768px) {
  .rp-data__value {
    font-size: var(--rp-text-h1);
    line-height: var(--rp-leading-h1);
  }
}

.rp-data__label {
  font-size: var(--rp-text-aux);
  line-height: var(--rp-leading-aux);
  color: var(--rp-text-secondary);
}

/* ==========================================================================
   Rich text from the admin
   ========================================================================== */

.rp-rte > * + * {
  margin-top: var(--rp-space-16);
}

.rp-rte h2 {
  margin-top: var(--rp-space-48);
  font-size: var(--rp-text-h3);
  line-height: var(--rp-leading-h3);
  font-weight: var(--rp-weight-regular);
}

.rp-rte h3,
.rp-rte h4,
.rp-rte h5,
.rp-rte h6 {
  margin-top: var(--rp-space-32);
  font-weight: var(--rp-weight-bold);
}

.rp-rte > :first-child {
  margin-top: 0;
}

.rp-rte h2 + *,
.rp-rte h3 + *,
.rp-rte h4 + * {
  margin-top: var(--rp-space-8);
}

.rp-rte ul,
.rp-rte ol {
  padding-left: var(--rp-space-24);
}

.rp-rte li + li {
  margin-top: var(--rp-space-8);
}

.rp-rte a {
  color: var(--rp-blue);
  text-decoration: underline;
}

.rp-rte a:hover {
  color: var(--rp-blue-hover);
}

.rp-rte strong,
.rp-rte b {
  font-weight: var(--rp-weight-bold);
}

.rp-rte img {
  border-radius: var(--rp-radius-card);
}

.rp-rte table {
  width: 100%;
  border-collapse: collapse;
}

.rp-rte th,
.rp-rte td {
  padding-block: var(--rp-space-16);
  padding-inline: 0 var(--rp-space-16);
  border: 0;
  border-bottom: 1px solid var(--rp-line);
  text-align: left;
  vertical-align: top;
}

.rp-rte th {
  font-weight: var(--rp-weight-bold);
}

/* Motion is limited to short colour changes, and only when allowed. */
@media (prefers-reduced-motion: no-preference) {
  .rp-button,
  .rp-input,
  .rp-select {
    transition: background-color 160ms, border-color 160ms, color 160ms;
  }
}

/* Icons and prices from the shared snippets. */
.rp-icon {
  flex-shrink: 0;
}

.rp-price {
  font-variant-numeric: tabular-nums;
}

/* Plain zero for the cart count: the slashed zero reads as a prohibited sign
   next to the word (VI skill: allowed where it cannot be mistaken for O). */
[data-cart-count] {
  font-feature-settings: "ss01";
}

/* Password page: a bar like the site header's left part. */
.rp-password-bar {
  height: var(--rp-header-height);
  background: var(--rp-page);
  border-bottom: 1px solid var(--rp-line);
}

.rp-password-bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.rp-password-bar__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Logo sizes match the logo in sections/header.liquid. */
.rp-password-bar__brand img {
  height: 32px;
  width: auto;
  aspect-ratio: 791 / 270;
}
