/* The four real-life example websites. They share one layout, and each site
   has its own brand colours, so they look like four different websites.
   These sites are light only, like many real websites with a fixed brand look. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1d2433;
  --text-muted: #4f5a6b;
  --border: #e1e4ea;
  --focus: #1d4ed8;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 24px rgb(16 24 40 / 8%);

  /* Brand colours, set by each site below. */
  --accent: #1d4ed8;
  --accent-text: #1d4ed8;
  --accent-soft: #e8efff;
  --on-accent: #ffffff;
}

/* Dapur Cilik: warm kitchen colours */
.rl-linear {
  --bg: #fffaf4;
  --accent: #c2410c;
  --accent-text: #9a3412;
  --accent-soft: #ffedd5;
}

/* Koop Sekolah Online: fresh shop colours */
.rl-cabang {
  --bg: #f4faf9;
  --accent: #0f766e;
  --accent-text: #115e59;
  --accent-soft: #dcf3ef;
}

/* Dunia Aisyah: a bright personal site */
.rl-roda {
  --bg: #fffbf2;
  --accent: #be185d;
  --accent-text: #9d174d;
  --accent-soft: #fde7f1;
}

/* Muzium Sains Cilik: deep museum blue */
.rl-hierarki {
  --bg: #f5f7fc;
  --accent: #1e3a8a;
  --accent-text: #1e3a8a;
  --accent-soft: #e3e9fa;
}

/* ---------- Header ---------- */

.rl-header {
  background: var(--accent);
  color: var(--on-accent);
}

.rl-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 16px;
}

.rl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.rl-brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 1.6rem;
}

.rl-brand-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.rl-brand-tagline {
  display: block;
  font-size: 0.9rem;
}

.rl-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--on-accent);
  border-radius: 999px;
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
}

.rl-menu-link:hover {
  background: var(--on-accent);
  color: var(--accent-text);
}

.rl-menu-link--up {
  background: var(--on-accent);
  color: var(--accent-text);
}

.rl-header :focus-visible {
  outline-color: var(--on-accent);
}

/* ---------- Page ---------- */

.rl-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

.rl-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* The gap above sets the space between blocks, so blocks have no outer margins. */
.rl-article > * {
  margin-top: 0;
  margin-bottom: 0;
}

.rl-hero {
  display: grid;
  gap: 20px;
  align-items: center;
}

.rl-hero-picture {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 4.5rem;
  line-height: 1;
}

.rl-kicker {
  margin: 0 0 6px;
  color: var(--accent-text);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rl-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
}

.rl-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.15rem;
}

@media (min-width: 720px) {
  .rl-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
  }

  .rl-hero-picture {
    max-width: 220px;
    font-size: 6.5rem;
  }
}

/* ---------- Content blocks ---------- */

.rl-text {
  max-width: 65ch;
}

.rl-block-title,
.rl-section-title {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 800;
}

.rl-list,
.rl-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-list li {
  position: relative;
  padding-left: 28px;
}

.rl-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.rl-steps {
  counter-reset: step;
}

.rl-steps li {
  position: relative;
  min-height: 36px;
  padding: 5px 0 0 52px;
  counter-increment: step;
}

.rl-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

.rl-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
}

.rl-facts div {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.rl-facts dt {
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rl-facts dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.rl-note {
  max-width: 65ch;
  padding: 16px 18px;
  border-radius: 12px;
}

.rl-note p {
  margin: 0;
}

.rl-note-title {
  font-weight: 800;
}

.rl-note--info {
  background: #e8f1ff;
  color: #1e3a8a;
}

.rl-note--warning {
  background: #fff1dc;
  color: #7c2d12;
}

.rl-note--success {
  background: #e3f6e9;
  color: #14532d;
}

.rl-price-amount {
  color: var(--accent-text);
  font-size: 2.2rem;
  font-weight: 800;
}

.rl-price-detail {
  color: var(--text-muted);
  font-weight: 700;
}

/* ---------- Cards (links to the pages below) ---------- */

.rl-cards-section {
  margin-top: 36px;
}

.rl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.rl-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.rl-card-picture {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 2.2rem;
}

.rl-card-title {
  color: var(--accent-text);
  font-size: 1.1rem;
  font-weight: 800;
}

.rl-card-text {
  color: var(--text-muted);
}

/* ---------- Linear: progress and Sebelumnya / Seterusnya ---------- */

.rl-progress {
  margin-bottom: 20px;
}

.rl-progress-text {
  margin: 0 0 8px;
  color: var(--accent-text);
  font-weight: 800;
}

.rl-stepper {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-stepper li {
  padding-top: 10px;
  border-top: 6px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.rl-stepper li.is-done {
  border-top-color: var(--accent-soft);
}

.rl-stepper li.is-current {
  border-top-color: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.rl-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.rl-pager-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-text);
  text-decoration: none;
}

.rl-pager-link--next {
  grid-column: 2;
  background: var(--accent);
  color: var(--on-accent);
  text-align: right;
}

.rl-pager-link:hover {
  box-shadow: var(--shadow);
}

.rl-pager-label {
  font-weight: 800;
}

.rl-pager-title {
  font-size: 0.95rem;
}

.rl-pager-end {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 479px) {
  .rl-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-pager-link--next {
    grid-column: auto;
  }
}

/* ---------- Hierarki: level and tour links ---------- */

.rl-level {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

.rl-tour {
  margin-top: 36px;
}

.rl-tour-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-tour-link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 14px 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.rl-tour-link:hover {
  background: var(--accent-soft);
}

.rl-tour-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.2rem;
}

.rl-tour-direction {
  display: block;
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rl-tour-title {
  display: block;
  font-weight: 800;
}

/* ---------- Footer ---------- */

.rl-footer {
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.rl-footer p {
  margin: 4px 0;
}

.rl-footer-note {
  font-size: 0.85rem;
}
