/* Rosemounts Practice Lab visual system · 18 August 2026
   Shared by Reading, Listening, and future IELTS practice modules. */

:root {
  --rm-navy: #0a2a44;
  --rm-navy-2: #103b5d;
  --rm-blue: #135786;
  --rm-gold: #f9b500;
  --rm-red: #c92629;
  --rm-green: #3f8122;
  --rm-ivory: #fbfaf7;
  --rm-cream: #fff4df;
  --rm-paper: #ffffff;
  --rm-ink: #1a1a1a;
  --rm-muted: #59636c;
  --rm-line: rgba(10, 42, 68, 0.18);
  --rm-line-strong: rgba(10, 42, 68, 0.34);
  --rm-serif: "Cormorant Garamond", Georgia, serif;
  --rm-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Compatibility with the original practice-page tokens. */
  --blue: var(--rm-navy);
  --gold: var(--rm-gold);
  --green: var(--rm-green);
  --red: var(--rm-red);
  --ink: var(--rm-ink);
  --muted: var(--rm-muted);
  --line: var(--rm-line);
  --bg: var(--rm-ivory);
  --card: var(--rm-paper);
  --blue-soft: #edf3f5;
  --gold-soft: var(--rm-cream);
  --green-soft: #eef6e9;
  --red-soft: #fbefec;
}

html { color-scheme: light; }

body {
  background: var(--rm-ivory);
  color: var(--rm-ink);
  font-family: var(--rm-sans);
}

h1, h2, h3, .dt, .lt, .notes .nh {
  font-family: var(--rm-serif);
  font-weight: 600;
}

a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rm-gold);
  outline-offset: 3px;
}

/* Shared Rosemounts masthead ------------------------------------------------ */

header {
  background: rgba(251, 250, 247, 0.98);
  color: var(--rm-navy);
  border-top: 3px solid var(--rm-red);
  border-bottom: 1px solid var(--rm-line);
  box-shadow: none;
  padding: 13px 0;
}

header .wrap,
header .hbar,
header .brandbar {
  max-width: 1160px;
}

header .brand,
header .brandbar {
  display: flex;
  align-items: center;
  gap: 18px;
}

header .brand::before,
header .brandbar::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 230px;
  height: 45px;
  background: url("assets/rosemounts-wordmark.webp") center / contain no-repeat;
}

header .brand > img.logo,
header .brandbar > img.logo { display: none; }

header .brandtext,
header .brandcopy {
  border-left: 1px solid var(--rm-line-strong);
  padding-left: 18px;
  color: var(--rm-navy);
  line-height: 1.35;
}

header .brandtext b,
header .brandcopy b {
  color: var(--rm-navy);
  font-size: 14px;
  font-weight: 700;
}

header .brandtext small,
header .brandcopy span {
  color: var(--rm-muted);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  opacity: 1;
  text-transform: uppercase;
}

header .badge {
  background: transparent;
  border: 1px solid var(--rm-line-strong);
  border-radius: 2px;
  color: var(--rm-navy);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

/* Landing pages ------------------------------------------------------------ */

body > .wrap { max-width: 1160px; }

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: clamp(42px, 6vw, 74px) clamp(24px, 6vw, 70px) 28px;
  background: var(--rm-navy);
  border-top: 5px solid var(--rm-gold);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(249, 181, 0, 0.34);
  border-radius: 50%;
  pointer-events: none;
}

.hero .kicker,
.title .kicker {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--rm-gold);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 13px 0 11px;
  color: #fff;
  font-size: clamp(48px, 6.2vw, 75px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.hero .stats {
  position: relative;
  z-index: 1;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero .stat b { color: var(--rm-gold); font-weight: 600; }
.hero .stat span { color: rgba(255, 255, 255, 0.72); }

.tier { margin: 48px 0; }
.th h2 { color: var(--rm-navy); font-size: 34px; font-weight: 600; }
.th p { color: var(--rm-muted); }

.grid { gap: 14px; }

.drill,
.lab {
  position: relative;
  background: var(--rm-paper);
  border: 1px solid var(--rm-line);
  border-top: 3px solid var(--rm-gold);
  border-left-width: 1px;
  border-radius: 2px;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.drill:hover,
.lab:hover {
  background: #fffdf8;
  border-color: var(--rm-gold);
  box-shadow: none;
  transform: none;
}

.rc,
.lab .tag,
.lvl {
  background: transparent;
  border: 1px solid var(--rm-line-strong);
  border-radius: 2px;
  color: var(--rm-navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dt,
.lt {
  color: var(--rm-navy);
  font-size: 26px;
  font-weight: 600;
}

.dd,
.ld { color: var(--rm-muted); line-height: 1.65; }

.di,
.li {
  border-top: 1px solid var(--rm-line);
  color: var(--rm-muted);
}

.startstrip,
.note {
  background: var(--rm-paper);
  border: 1px solid var(--rm-line);
  border-left: 4px solid var(--rm-gold);
  border-radius: 2px;
  color: var(--rm-muted);
}

.note { border-left-color: var(--rm-green); }
.startstrip h3, .note h3 { color: var(--rm-navy); }
.startstrip a, .note a { color: var(--rm-blue); font-weight: 700; }
footer, .stamp { color: var(--rm-muted); }

/* Reading Lab landing page ------------------------------------------------- */

.brandbar + * { min-width: 0; }

body > .wrap > h1 {
  margin-top: 18px;
  color: var(--rm-navy);
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.lede {
  color: var(--rm-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Teaching and adaptive drill pages --------------------------------------- */

.hbar { max-width: 1040px; }
.wrap { max-width: 1040px; }

.title { margin: 38px 0 18px; }

.title h1 {
  color: var(--rm-navy);
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-top: 10px;
}

.title .sub {
  max-width: 800px;
  color: var(--rm-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 10px;
}

.card,
details.strategy,
.levelbar,
.lvcard {
  border: 1px solid var(--rm-line);
  border-radius: 3px;
  box-shadow: none;
}

.card { padding: 22px 24px; }
.card h2 { color: var(--rm-navy); font-size: 28px; font-weight: 600; }
.card h3 { color: var(--rm-navy); font-size: 22px; font-weight: 600; }

details.strategy {
  background: #f1f4f2;
  border-left: 4px solid var(--rm-navy);
}

details.strategy > summary {
  color: var(--rm-navy);
  font-weight: 700;
}

.worked {
  background: var(--rm-cream);
  border-left: 4px solid var(--rm-gold);
}

.worked .ans { color: #785700; }

.levelbar {
  background: var(--rm-paper);
  border-top: 3px solid var(--rm-gold);
}

.lv,
.nav,
.mini,
.dot,
.checkbtn,
.btn {
  border-radius: 2px;
  box-shadow: none;
}

.lv.on,
.dot.active,
.checkbtn,
.btn {
  background: var(--rm-navy);
  border-color: var(--rm-navy);
}

.passage,
.bank,
.q,
.opt,
.fbi,
.tline,
.limit,
.warnbar {
  border-radius: 2px;
}

.passage {
  border-left: 3px solid var(--rm-gold);
  background: #fffdf8;
}

.bank { background: #f2f4f2; border-color: var(--rm-line); }
.q { border-color: var(--rm-line); }
.qnum, .gnum { color: var(--rm-navy); }
.tag { color: var(--rm-muted); }

.scorebar {
  background: rgba(251, 250, 247, 0.98);
  border-top: 1px solid var(--rm-line-strong);
  box-shadow: none;
}

.scorein b { color: var(--rm-navy); }
.meter { border-radius: 0; background: #dbe0df; }
.meter i { background: var(--rm-green); }

.player {
  background: var(--rm-navy);
  border-left: 4px solid var(--rm-gold);
  border-radius: 2px;
}

.pbtn,
.pmini,
.seek,
.seek::-webkit-slider-thumb,
.seek::-moz-range-thumb { border-radius: 2px; }

.pbtn { color: #2f2500; }
.layout .ltitle { color: var(--rm-navy); }
.gap { border-radius: 2px 2px 0 0; }

/* Full-passage IELTS runner: restrained brand alignment ------------------- */

#top,
#bot {
  background: var(--rm-ivory);
  border-color: var(--rm-line-strong);
}

#top { border-top: 3px solid var(--rm-gold); padding-top: 7px; }
#cand { color: var(--rm-navy); }
#cand b { color: var(--rm-navy); }

#lvlpill,
#clock,
.tbtn,
#rev,
.arrow,
#finish,
.nb,
.qhead,
.optbox,
.summary,
.qn,
select.ans,
.textans,
#panel,
#ctx,
#card,
.bd div,
.msg,
#card button,
.ra,
.rf {
  border-radius: 2px;
}

#lvlpill,
#clock { border-color: var(--rm-line-strong); }

#finish,
.nb.done,
.q.cur .qn {
  background: var(--rm-navy);
  border-color: var(--rm-navy);
}

.qhead {
  background: #f2f3ef;
  border-left: 3px solid var(--rm-gold);
}

#split { background: #e7e8e3; border-color: var(--rm-line-strong); }
#card h2, #card .big, .bd b, .rsec { color: var(--rm-navy); }
#card h2, .rsec { font-family: var(--rm-serif); font-weight: 600; }
#card button { background: var(--rm-navy); border-color: var(--rm-navy); }
#card button.sec { color: var(--rm-navy); }
.msg { border-left-color: var(--rm-gold); background: var(--rm-cream); }
.nb.cur { outline-color: var(--rm-gold); }
mark.hl { background: #ffe39a; }

@media (max-width: 760px) {
  header .brand::before,
  header .brandbar::before { width: 190px; height: 39px; }

  header .brandtext,
  header .brandcopy { padding-left: 14px; }

  .hero { margin-top: 18px; padding: 38px 24px 24px; }
  .hero::after { width: 240px; height: 240px; right: -100px; bottom: -120px; }
  .tier { margin: 36px 0; }
  .title { margin-top: 28px; }
  .card { padding: 18px; }

  #mobiletabs {
    background: var(--rm-ivory);
    border-color: var(--rm-line-strong);
  }

  #mobiletabs button { border-radius: 2px; }
  #mobiletabs button[aria-selected="true"] {
    background: var(--rm-navy);
    border-color: var(--rm-navy);
  }
}

@media (max-width: 520px) {
  header .brandtext,
  header .brandcopy { display: none; }

  header .brand::before,
  header .brandbar::before { width: 178px; }

  .hero h1 { font-size: 46px; }
  .hero p { font-size: 15.5px; }
  .title h1 { font-size: 39px; }
  .th h2 { font-size: 30px; }
}

@media print {
  header { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
