/* ============================================================
   Kit v1 parts: small pieces shared by several sections
   (section head, image slot, arrow, pill, tap-size link, ruled band,
   skip link, language switch, icon sprite).
   Load after base.css and before the section CSS. Semantic tokens only.
   ============================================================ */

/* ---- skip link: hidden until focused (keyboard users) ---- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--action);
  color: var(--on-action);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---- icon sprite holder (symbols only, never shown) ---- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- headings styled as labels keep the body family ---- */
h2.t-label, h3.t-label { font-family: var(--font-body); }

/* ---- section head ---- */
.s-head { margin-bottom: var(--space-7); }
.s-head > .t-label { margin-bottom: var(--space-4); }
.s-head > .t-lead { margin-top: var(--space-4); }
.s-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}
.s-head--row > .t-label { margin: 0; }

/* ---- ruled band: hairline at the top of the content, no top padding ---- */
.band--ruled { padding-top: 0; }
.band--ruled > .container {
  padding-top: var(--section-y);
  background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * max(var(--margin), 16px)) var(--hairline) no-repeat;
}

/* ---- link with a 44px tap area ---- */
.link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}

/* ---- round arrow (doors) ---- */
.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
}
.arrow-circle svg { width: 20px; height: 20px; transition: transform var(--t-fast) var(--ease); }
a:hover .arrow-circle svg { transform: translateX(4px); }

/* ---- pill link ---- */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 var(--space-4);
  border: var(--hairline) solid var(--rule-strong);
  border-radius: var(--radius-pill);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-ui);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pill:hover { background: var(--fg); color: var(--bg); }

/* ---- image slot: a real image, or a flat placeholder block with a caption ---- */
.media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-quiet);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--8x5 { aspect-ratio: 8 / 5; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--5x7 { aspect-ratio: 5 / 7; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__cap {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-3);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  color: var(--fg-muted);
}
.band--quiet .media { background: var(--surface); }
.band--dark .media { background: var(--surface); }
.band--dark.band--raised .media { background: var(--rule); }

/* ---- language switch (partials/lang-switch.html) ---- */
.lang-switch ul { display: flex; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  font-size: var(--fs-small);
  color: var(--fg-soft);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current] {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: var(--hairline);
  text-underline-offset: 6px;
}
