/* ==========================================================================
   Base / reset / shared primitives
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.1;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; }

/* ---- Display headings ---------------------------------------------------- */
.display {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: .2px;
}

/* Hand-drawn underline that sits beneath a heading word */
.underline-scribble {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 2px;
  color: var(--pink);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--pink {
  background: var(--pink);
  color: #1a1206; /* --pink (#FF9933) is too light for white text to clear 4.5:1 contrast - same
                      fix already applied to the dashboards' own primary buttons */
  box-shadow: var(--shadow-pink);
}
.btn--pink:hover { background: var(--pink-hover); }

.btn--outline {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid #DCDCDC;
}
.btn--outline:hover { border-color: var(--ink); }

.btn--lime {
  background: var(--lime-btn);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.btn--white {
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.btn__icon { width: 18px; height: 18px; flex: none; }

/* ---- Pills --------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ---- Utility ------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* Slot for supplied artwork that has not been provided yet.
   Sized and positioned exactly as in the reference so dropping the real
   asset in is a one-line swap. */
.art-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.art-slot > img { width: 100%; height: 100%; object-fit: contain; }

/* Visible marker when a supplied illustration has not been dropped in yet.
   Delete this rule once assets/img/* are populated. */
.art-slot.is-missing {
  border: 1.5px dashed #C9C9C9;
  background: repeating-linear-gradient(45deg, #FAFAFA, #FAFAFA 8px, #F2F2F2 8px, #F2F2F2 16px);
}
.art-slot.is-missing::after {
  content: attr(data-asset);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .3px;
  color: #9A9A9A;
  text-align: center;
  padding: 0 8px;
}
