:root {
  --brown-950: #2f1b10;
  --brown-900: #4b2d18;
  --brown-800: #5b371f;
  --brown-700: #744a2c;
  --brown-500: #a16d43;
  --brown-300: #cfb28a;
  --cream-100: #fffaf2;
  --cream-150: #fbf2e4;
  --cream-200: #f2e7d4;
  --cream-300: #e6d1ac;
  --green-500: #2f7b4b;
  --red-500: #b44b31;
  --ink: #2d2019;
  --muted: #6b5a4a;
  --line: rgba(91, 55, 31, 0.14);
  --shadow: 0 18px 42px rgba(53, 30, 16, 0.08);
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 242, 214, 0.95), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, #f7efdf 100%);
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bree Serif", Georgia, serif;
  line-height: 1.08;
}

p,
li,
figcaption {
  line-height: 1.65;
}

.page-shell {
  width: min(calc(100% - 1.5rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  padding: 1.4rem;
  border: 1px solid rgba(255, 248, 239, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(75, 45, 24, 0.96), rgba(117, 74, 44, 0.93)),
    var(--brown-900);
  color: #fff9ef;
  box-shadow: 0 26px 56px rgba(44, 23, 11, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle at 85% 18%, rgba(255, 219, 153, 0.18), transparent 20%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 237, 196, 0.18), transparent 72%);
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero__logo {
  width: 112px;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 239, 0.16);
  box-shadow: 0 14px 34px rgba(19, 10, 3, 0.28);
}

.hero__eyebrow,
.hero__kicker,
.quality-banner__eyebrow,
.section-heading__index,
.meta-label,
.wiki-sidebar__eyebrow,
.wiki-sidebar__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero__eyebrow {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(255, 248, 239, 0.76);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  color: #f3d59a;
}

h1 {
  margin-top: 0.45rem;
  font-size: clamp(2.2rem, 7vw, 4.85rem);
  max-width: 11ch;
}

.hero__subtitle {
  margin: 0.65rem 0 0;
  font-size: clamp(1.15rem, 3.8vw, 1.7rem);
  font-weight: 700;
  color: #ffecbf;
}

.hero__lead {
  max-width: 58ch;
  margin: 1rem 0 0;
  font-size: 1rem;
  color: rgba(255, 248, 239, 0.9);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__meta div {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.1);
  border: 1px solid rgba(255, 248, 239, 0.1);
  backdrop-filter: blur(10px);
}

.meta-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 248, 239, 0.68);
}

.wiki-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.wiki-sidebar {
  display: none;
}

.wiki-sidebar__inner {
  position: sticky;
  top: 1.25rem;
  padding: 1.25rem 1.15rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.88);
  box-shadow: var(--shadow);
}

.wiki-sidebar__eyebrow,
.wiki-sidebar__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brown-500);
}

.wiki-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.wiki-nav a {
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid rgba(91, 55, 31, 0.08);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.wiki-nav a:hover {
  color: var(--brown-800);
}

.wiki-sidebar__note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(91, 55, 31, 0.1);
}

.wiki-sidebar__note p:last-child {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.wiki-article {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
}

.wiki-section {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(91, 55, 31, 0.12);
}

.wiki-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 1rem;
}

.section-heading__index {
  min-width: 2.8rem;
  padding-top: 0.3rem;
  color: var(--brown-500);
  font-size: 0.74rem;
  font-weight: 800;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
}

.section-heading p:not(.section-heading__index) {
  margin: 0.45rem 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.wiki-facts {
  display: grid;
  gap: 1rem;
}

.wiki-facts div,
.media-notes div,
.callout {
  padding-left: 1rem;
  border-left: 3px solid var(--cream-300);
}

.wiki-facts h3,
.media-notes h3,
.procedure-list h3,
.plate-row__body h3 {
  font-size: 1.15rem;
}

.wiki-facts p,
.media-notes p,
.plate-row__body p,
.procedure-list p,
.quality-banner p,
.footer p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.media-block {
  display: grid;
  gap: 1.1rem;
}

.kit-photo {
  margin: 0;
}

.kit-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(63, 45, 31, 0.12);
}

.kit-photo figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
}

.media-notes {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.plate-list {
  border-top: 1px solid rgba(91, 55, 31, 0.08);
}

.plate-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(91, 55, 31, 0.08);
}

.plate-row__visual {
  position: relative;
  width: 76px;
  height: 76px;
}

.plate-row__ring,
.plate-row__plate {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.plate-row__ring {
  width: 58px;
  height: 58px;
  border: 10px solid currentColor;
  border-radius: 16px;
  opacity: 0.24;
}

.plate-row__plate {
  width: 68px;
  height: 38px;
  border-radius: 12px;
  background: currentColor;
  box-shadow: inset 0 -10px 12px rgba(0, 0, 0, 0.14);
}

.plate-row__type {
  font-weight: 800;
  color: var(--brown-800);
}

.plate-row--red {
  color: #d6453f;
}

.plate-row--yellow {
  color: #d5ad1f;
}

.plate-row--blue {
  color: #416fb5;
}

.wiki-list {
  margin: 0;
  padding-left: 1.2rem;
}

.wiki-list li + li {
  margin-top: 0.6rem;
}

.wiki-list--tight li + li {
  margin-top: 0.45rem;
}

.procedure-list {
  counter-reset: procedure;
  margin: 0;
  padding: 0;
  list-style: none;
}

.procedure-list li {
  position: relative;
  padding: 0 0 1.15rem 4rem;
}

.procedure-list li + li {
  margin-top: 1rem;
}

.procedure-list li::before {
  counter-increment: procedure;
  content: counter(procedure);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--brown-800);
  color: #fff8ef;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(91, 55, 31, 0.16);
}

.wiki-section--split {
  display: grid;
  gap: 1.25rem;
}

.callout {
  padding: 0.2rem 0 0.2rem 1rem;
}

.callout--success {
  border-left-color: var(--green-500);
}

.callout--alert {
  border-left-color: var(--red-500);
}

.section-heading--compact {
  margin-bottom: 0.75rem;
}

.quality-banner {
  position: relative;
  overflow: hidden;
  margin-top: 1.4rem;
  padding: 1.5rem;
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(75, 45, 24, 0.98), rgba(103, 66, 37, 0.98)),
    var(--brown-900);
  color: #fff9ef;
}

.quality-banner::after {
  content: "";
  position: absolute;
  inset: auto -2rem -3rem auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 155, 0.18), transparent 72%);
}

.quality-banner__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f3d59a;
}

.quality-banner h2 {
  margin-top: 0.65rem;
  max-width: 14ch;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
}

.quality-banner p:last-child {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  color: rgba(255, 249, 239, 0.88);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem 0 0;
  color: var(--muted);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__brand img {
  width: 72px;
  border-radius: 16px;
}

.footer__brand p,
.footer__date {
  margin: 0;
}

/* ── Kimoun colours ── */
/* --k-blue: #1a6080   --k-blue-dark: #0f3d52   --k-orange: #d94f1e */

/* ── Kimoun topbar ── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kimoun-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.9rem 1.5rem;
  background: #0f3d52;
  color: #e8f4fb;
  border-bottom: 3px solid #d94f1e;
}

.kimoun-topbar__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.kimoun-topbar__message {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(232, 244, 251, 0.9);
}

.kimoun-topbar__message strong {
  color: #fff;
}

.kimoun-topbar__message em {
  font-style: italic;
  color: #a8d4ea;
}

.kimoun-topbar__cta {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: #d94f1e;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, transform 120ms ease;
}

.kimoun-topbar__cta:hover {
  background: #b83e16;
  transform: translateY(-1px);
}

/* ── Kimoun footer ── */

.kimoun-footer {
  margin-top: 0;
  background: #0f3d52;
  color: #c8dfe9;
  font-size: 0.9rem;
}

.kimoun-footer__inner {
  display: grid;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}

.kimoun-footer__logo {
  height: 52px;
  width: auto;
  display: block;
}

.kimoun-footer__slogan {
  margin: 0.9rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.kimoun-footer__slogan a {
  color: #fff;
  text-decoration: none;
  transition: color 150ms ease;
}

.kimoun-footer__slogan a:hover {
  color: #d94f1e;
}

.kimoun-footer__notice-label,
.kimoun-footer__contact-label {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.kimoun-footer__notice p {
  margin: 0 0 0.6rem;
  line-height: 1.6;
  color: #a8c8da;
}

.kimoun-footer__tagline {
  font-style: italic;
  color: #c5dde8 !important;
  font-weight: 600;
}

.kimoun-footer__creds {
  font-size: 0.78rem;
  color: rgba(168, 200, 218, 0.6) !important;
}

.kimoun-footer__contact p {
  margin: 0 0 0.4rem;
  line-height: 1.55;
}

.kimoun-footer__contact a {
  color: #c8dfe9;
  text-decoration: none;
  transition: color 150ms ease;
}

.kimoun-footer__contact a:hover {
  color: #fff;
}

.kimoun-footer__hours {
  color: rgba(168, 200, 218, 0.75);
  font-size: 0.82rem;
}

.kimoun-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(168, 200, 218, 0.6);
}

.kimoun-footer__bottom p {
  margin: 0;
}

.kimoun-footer__bottom a {
  color: rgba(168, 200, 218, 0.85);
  text-decoration: none;
}

.kimoun-footer__bottom a:hover {
  color: #fff;
}

@media (min-width: 720px) {
  .page-shell {
    width: min(calc(100% - 2.5rem), var(--max-width));
    padding-top: 1.5rem;
  }

  .hero {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 1.8rem;
  }

  .hero__brand {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero__logo {
    width: 146px;
  }

  .hero__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wiki-article {
    padding: 1.8rem;
  }

  .wiki-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wiki-section--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .kimoun-footer__inner {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: start;
    padding: 3rem 2.5rem 2rem;
  }

  .kimoun-footer__bottom {
    padding: 1rem 2.5rem;
  }
}

@media (min-width: 980px) {
  .wiki-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }

  .wiki-sidebar {
    display: block;
  }

  .wiki-article {
    padding: 2rem 2.4rem;
  }

  .media-block {
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .kit-photo {
    position: sticky;
    top: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .wiki-article,
  .wiki-sidebar__inner,
  .quality-banner {
    animation: lift-in 600ms ease-out both;
  }

  .wiki-article {
    animation-delay: 80ms;
  }

  .wiki-sidebar__inner {
    animation-delay: 120ms;
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
