/* Radford Mathematics homepage, 7 November 2026.
   Deliberately scoped to rm-home-notebook; shared lesson styles stay shared. */
.rm-home-notebook {
  --home-ink: #101b37;
  --home-muted: #536177;
  --home-blue: #064ee8;
  --home-rule: #dfe5ef;
  --home-width: 1392px;
  --home-gutter: clamp(20px, 4.2vw, 64px);
  margin: 0;
  background: #fff;
  color: var(--home-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.rm-home-notebook *, .rm-home-notebook *::before, .rm-home-notebook *::after { box-sizing: border-box; }
.rm-home-notebook a { text-underline-offset: .22em; }
.rm-home-notebook a:focus-visible, .rm-home-notebook button:focus-visible { outline: 3px solid #1457d4; outline-offset: 5px; }
.rm-home-notebook main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.rm-home-notebook .rm-home-skip { position: absolute; top: 8px; left: 16px; transform: translateY(-180%); z-index: 9999; padding: 12px 16px; background: #fff; color: var(--home-ink); border: 2px solid var(--home-blue); }
.rm-home-notebook .rm-home-skip:focus { transform: none; }

/* Keep the existing navigation and contact dialog; theme only this homepage. */
.rm-home-notebook .rm-site-navbar { background: #fff; color: var(--home-ink); box-shadow: none; border-bottom: 1px solid var(--home-rule); }
.rm-home-notebook .rm-navbar-inner { width: 100%; max-width: var(--home-width); min-height: 82px; margin-inline: auto; padding: 14px var(--home-gutter); gap: 20px; flex-wrap: wrap; }
.rm-home-notebook .rm-navbar-brand { gap: 11px; color: var(--home-ink); flex-shrink: 0; min-width: 0; }
.rm-home-notebook .rm-navbar-logo { width: 48px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.rm-home-notebook .rm-navbar-title { color: var(--home-ink); font-size: clamp(20px, 1.8vw, 26px); font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.rm-home-notebook .rm-navbar-subtitle { display: none; }
.rm-home-notebook .rm-navbar-inner > nav { width: auto; min-width: 0; }
.rm-home-notebook .rm-navbar-links { gap: 1px; flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
.rm-home-notebook .rm-navbar-links a { padding: 11px 8px; border-radius: 6px; color: var(--home-ink); font-size: 13px; font-weight: 650; min-height: 44px; }
.rm-home-notebook .rm-navbar-links a:hover, .rm-home-notebook .rm-navbar-links a.is-active { color: #0343bd; background: #f0f5ff; }
.rm-home-notebook .rm-navbar-links a.rm-contact { border: 1px solid #dbe2ed; background: #fff; color: var(--home-ink); padding-inline: 13px; }
.rm-home-notebook .rm-navbar-links a.rm-contact:hover { background: #f0f5ff; }

/* A permanent, readable notice, separate from the learning resources. */
.rm-home-notebook .rm-home-update { display: flex; align-items: center; flex-wrap: wrap; column-gap: 22px; row-gap: 6px; width: calc(100% - var(--home-gutter) * 2); max-width: calc(var(--home-width) - var(--home-gutter) * 2); margin: 22px auto 0; padding: 14px 19px; border: 1px solid #e8dac0; border-radius: 9px; background: #fffaf0; color: #554321; font-size: 13px; line-height: 1.5; }
.rm-home-notebook .rm-home-update-label { display: flex; align-items: center; gap: 9px; color: #684b18; }
.rm-home-notebook .rm-home-update-label strong { font-weight: 750; }
.rm-home-notebook .rm-home-update-dot { width: 8px; height: 8px; border-radius: 50%; background: #a76812; flex: 0 0 auto; }
.rm-home-notebook .rm-home-update p { margin: 0; }
.rm-home-notebook .rm-home-update > a { color: #684b18; margin-left: auto; font-weight: 650; text-decoration-thickness: 1px; padding-block: 3px; }
.rm-home-notebook .rm-home-update > a span { display: inline-block; margin-left: 6px; }

.rm-home-notebook .rm-notebook-hero { width: 100%; max-width: var(--home-width); margin: 0 auto; padding: 38px var(--home-gutter) 42px; display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(24px, 3.6vw, 52px); align-items: center; }
.rm-home-notebook .rm-notebook-copy { min-width: 0; padding-block: 12px; }
.rm-home-notebook .rm-notebook-kicker { margin: 0 0 22px; color: #486185; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .18em; }
.rm-home-notebook .rm-notebook-copy h1 { margin: 0; color: var(--home-ink); font-size: clamp(41px, 4.45vw, 64px); line-height: 1.055; letter-spacing: -.052em; }
.rm-home-notebook .rm-notebook-title-main { display: block; font-weight: 790; }
.rm-home-notebook .rm-notebook-title-next { display: block; margin-top: 12px; color: #1d54ad; font-size: .69em; font-weight: 450; letter-spacing: -.045em; line-height: 1.12; }
.rm-home-notebook .rm-notebook-intro { max-width: 560px; margin: 24px 0 0; color: var(--home-muted); font-size: 17px; line-height: 1.65; }
.rm-home-notebook .rm-notebook-intro strong { font-weight: 600; color: #394a65; }
.rm-home-notebook .rm-notebook-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.rm-home-notebook .rm-notebook-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 13px 18px; border: 1px solid #bdcbe2; border-radius: 7px; text-decoration: none; color: var(--home-ink); background: #fff; font-weight: 650; font-size: 14px; line-height: 1.4; transition: background-color .15s ease, border-color .15s ease; }
.rm-home-notebook .rm-notebook-button:hover { background: #f2f6ff; border-color: #7e9bc9; }
.rm-home-notebook .rm-notebook-primary { background: var(--home-blue); border-color: var(--home-blue); color: #fff; }
.rm-home-notebook .rm-notebook-primary:hover { background: #033fc0; border-color: #033fc0; }
.rm-home-notebook .rm-notebook-art { width: 100%; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e5eaf0; border-radius: 14px; background: #fafbfd; }
.rm-home-notebook .rm-notebook-art img { display: block; width: 100%; height: auto; object-fit: contain; }

.rm-home-notebook .rm-notebook-courses { width: 100%; max-width: var(--home-width); margin: 0 auto; padding: 28px var(--home-gutter) 38px; scroll-margin-top: 110px; }
.rm-home-notebook .rm-notebook-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 22px; padding-top: 24px; border-top: 1px solid var(--home-rule); }
.rm-home-notebook .rm-notebook-eyebrow { margin: 0 0 9px; color: #5d6b82; font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.rm-home-notebook .rm-notebook-section-heading h2 { margin: 0; color: var(--home-ink); font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.035em; line-height: 1.2; }
.rm-home-notebook .rm-notebook-section-heading > p { flex: 0 0 auto; margin: 0; color: var(--home-muted); font-size: 13px; line-height: 1.6; }
.rm-home-notebook .rm-notebook-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rm-home-notebook .rm-notebook-course { display: flex; flex-direction: column; min-width: 0; padding: 25px 25px 22px; color: var(--home-ink); text-decoration: none; border: 1px solid var(--home-rule); border-top: 3px solid var(--course-color); border-radius: 10px; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.rm-home-notebook .rm-notebook-ai { --course-color: #12623f; --course-bg: #e6f3eb; }
.rm-home-notebook .rm-notebook-aasl { --course-color: #1c55b5; --course-bg: #eaf1ff; }
.rm-home-notebook .rm-notebook-aahl { --course-color: #7139a1; --course-bg: #f3ecfb; }
.rm-home-notebook .rm-notebook-course:hover { border-color: var(--course-color); background: #fbfcfe; }
.rm-home-notebook .rm-notebook-course-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.rm-home-notebook .rm-notebook-course-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; border-radius: 6px; color: var(--course-color); background: var(--course-bg); font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -.03em; }
.rm-home-notebook .rm-notebook-course-level { color: #647187; font-size: 11px; font-weight: 600; }
.rm-home-notebook .rm-notebook-course h3 { margin: 0 0 12px; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.18; letter-spacing: -.035em; font-weight: 700; }
.rm-home-notebook .rm-notebook-course p { margin: 0 0 23px; color: var(--home-muted); font-size: 14px; line-height: 1.65; }
.rm-home-notebook .rm-notebook-course-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--home-rule); margin-top: auto; color: var(--course-color); font-weight: 700; font-size: 13px; }
.rm-home-notebook .rm-notebook-course-link > span { font-size: 19px; line-height: 1; }
.rm-home-notebook .rm-notebook-course:hover .rm-notebook-course-link { text-decoration: underline; }

.rm-home-notebook .rm-notebook-resources { width: 100%; max-width: var(--home-width); margin: 0 auto; padding: 20px var(--home-gutter) 60px; }
.rm-home-notebook .rm-notebook-resources > h2 { font-size: 24px; margin: 0 0 20px; color: var(--home-ink); letter-spacing: -.03em; }
.rm-home-notebook .rm-notebook-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rm-home-notebook .rm-notebook-resource-grid > a { display: flex; flex-direction: column; min-width: 0; padding: 23px; border: 1px solid #e7ebf2; border-radius: 9px; background: #f8faff; color: var(--home-ink); text-decoration: none; }
.rm-home-notebook .rm-notebook-resource-type { margin-bottom: 13px; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: #60718c; }
.rm-home-notebook .rm-notebook-resource-grid h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.025em; }
.rm-home-notebook .rm-notebook-resource-grid p { margin: 0 0 20px; color: var(--home-muted); font-size: 13px; line-height: 1.65; }
.rm-home-notebook .rm-notebook-resource-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: #1c4d97; font-size: 13px; font-weight: 700; }
.rm-home-notebook .rm-notebook-resource-grid > a:hover { background: #f0f5ff; border-color: #aebfda; }
.rm-home-notebook .rm-site-footer { margin: 0; width: 100%; background: #f7f9fc; color: var(--home-ink); border-top: 1px solid var(--home-rule); }
.rm-home-notebook .rm-footer-inner { width: 100%; max-width: var(--home-width); margin: 0 auto; padding: 30px var(--home-gutter); }
.rm-home-notebook .rm-footer-inner nav { flex-wrap: wrap; gap: 8px 18px; }
.rm-home-notebook .rm-footer-inner a { color: #214e92; padding-block: 6px; }
.rm-home-notebook .rm-footer-inner p, .rm-home-notebook .rm-footer-inner span { color: var(--home-muted); }

@media (max-width: 1200px) {
  .rm-home-notebook .rm-navbar-inner { gap: 10px; }
  .rm-home-notebook .rm-navbar-inner > nav { width: 100%; }
  .rm-home-notebook .rm-navbar-links { justify-content: flex-start; }
  .rm-home-notebook .rm-home-update { column-gap: 18px; }
  .rm-home-notebook .rm-home-update > a { margin-left: 0; }
  .rm-home-notebook .rm-notebook-hero { padding-block: 30px; gap: 30px; }
  .rm-home-notebook .rm-notebook-intro { font-size: 16px; }
  .rm-home-notebook .rm-notebook-section-heading > p { display: none; }
  .rm-home-notebook .rm-notebook-course { padding: 22px 20px 20px; }
}
@media (max-width: 800px) {
  .rm-home-notebook .rm-home-update { font-size: 13px; row-gap: 5px; padding: 13px 16px; }
  .rm-home-notebook .rm-home-update-label { width: 100%; }
  .rm-home-notebook .rm-home-update > a { display: inline-block; }
  .rm-home-notebook .rm-notebook-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 30px; padding-bottom: 25px; }
  .rm-home-notebook .rm-notebook-copy { padding: 0; }
  .rm-home-notebook .rm-notebook-copy h1 { max-width: 650px; font-size: clamp(39px, 6.7vw, 54px); }
  .rm-home-notebook .rm-notebook-title-next { font-size: .7em; }
  .rm-home-notebook .rm-notebook-kicker { margin-bottom: 17px; }
  .rm-home-notebook .rm-notebook-intro { margin-top: 20px; max-width: 640px; }
  .rm-home-notebook .rm-notebook-art { max-width: 570px; margin-inline: auto; }
  .rm-home-notebook .rm-notebook-courses { padding-top: 12px; }
  .rm-home-notebook .rm-notebook-course-grid { gap: 12px; }
  .rm-home-notebook .rm-notebook-course { padding: 20px 16px 17px; }
  .rm-home-notebook .rm-notebook-course h3 { font-size: 22px; }
  .rm-home-notebook .rm-notebook-resource-grid { gap: 12px; }
  .rm-home-notebook .rm-notebook-resource-grid > a { padding: 20px 16px; }
}
@media (max-width: 620px) {
  .rm-home-notebook .rm-navbar-inner { padding: 12px 20px 9px; }
  .rm-home-notebook .rm-navbar-brand { gap: 10px; }
  .rm-home-notebook .rm-navbar-logo { width: 40px; height: 35px; }
  .rm-home-notebook .rm-navbar-title { font-size: 23px; }
  .rm-home-notebook .rm-navbar-links { gap: 0; }
  .rm-home-notebook .rm-navbar-links a { font-size: 12px; padding: 9px 8px; min-height: 44px; }
  .rm-home-notebook .rm-navbar-links a.rm-contact { padding-inline: 10px; }
  .rm-home-notebook .rm-home-update { margin-top: 17px; }
  .rm-home-notebook .rm-home-update > a { padding-block: 7px; }
  .rm-home-notebook .rm-notebook-copy h1 { font-size: clamp(36px, 9.5vw, 48px); }
  .rm-home-notebook .rm-notebook-title-next { font-size: .7em; margin-top: 13px; }
  .rm-home-notebook .rm-notebook-intro { font-size: 16px; line-height: 1.65; }
  .rm-home-notebook .rm-notebook-actions { margin-top: 23px; }
  .rm-home-notebook .rm-notebook-button { min-height: 48px; padding: 13px 16px; font-size: 14px; }
  .rm-home-notebook .rm-notebook-course-grid, .rm-home-notebook .rm-notebook-resource-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .rm-home-notebook .rm-notebook-course { padding: 23px; }
  .rm-home-notebook .rm-notebook-course-top { margin-bottom: 17px; }
  .rm-home-notebook .rm-notebook-course h3 { font-size: 26px; }
  .rm-home-notebook .rm-notebook-course p { max-width: 440px; font-size: 15px; }
  .rm-home-notebook .rm-notebook-course-link { font-size: 14px; }
  .rm-home-notebook .rm-notebook-resources { padding-top: 5px; padding-bottom: 40px; }
  .rm-home-notebook .rm-notebook-resource-grid > a { padding: 23px; }
  .rm-home-notebook .rm-notebook-resource-grid h3 { font-size: 21px; }
  .rm-home-notebook .rm-notebook-resource-grid p { font-size: 14px; }
}
@media (max-width: 380px) {
  .rm-home-notebook .rm-navbar-title { font-size: 21px; }
  .rm-home-notebook .rm-navbar-links a { padding-inline: 6px; }
  .rm-home-notebook .rm-notebook-actions { flex-direction: column; align-items: stretch; }
  .rm-home-notebook .rm-notebook-title-next { font-size: .68em; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-home-notebook .rm-notebook-button, .rm-home-notebook .rm-notebook-course { transition: none; }
}
