/* Learn Radiation Medicine: fixes and additions on top of the original styles. */

/* Header wordmark beside the logo */
.lrm-wordmark {
  margin-left: .6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  text-align: left;
  color: #4c1d95;
}
@media (min-width: 640px) { .lrm-wordmark { font-size: 1.25rem; } }

/* Readable footer text on all screens */
footer p, footer a, footer span, footer li { font-size: max(14px, 1em); }

/* Tab rows: never push the page wider than the screen */
[role="tablist"] { max-width: 100%; }
@media (max-width: 767px) {
  [role="tablist"] {
    flex-wrap: wrap !important;
    height: auto !important;
    justify-content: center !important;
    gap: 4px;
    overflow: visible !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  [role="tablist"] > [role="tab"] {
    flex: 0 1 auto !important;
    white-space: normal !important;
    min-height: 40px;
    font-size: 14px !important;
  }
  [role="tablist"] > [role="tab"] span { font-size: 14px !important; }
  /* Long breadcrumb titles wrap instead of overflowing */
  nav[aria-label="breadcrumb"], main nav, .container nav { flex-wrap: wrap; }
  h1 { overflow-wrap: anywhere; }
}
html, body { overflow-x: hidden; }

/* Home: "Why learn here" cards */
.lrm-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 auto 1rem;
  text-align: left;
}
@media (min-width: 768px) { .lrm-features { grid-template-columns: 1fr 1fr; } }
.lrm-feature {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, .15);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.lrm-feature h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: .35rem; color: #1e293b; }
.lrm-feature p { color: #475569; font-size: 1rem; line-height: 1.6; }
.lrm-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.lrm-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: .75rem; font-weight: 500;
  border: 1px solid currentColor; color: hsl(var(--primary));
  background: #fff;
}
.lrm-btn-outline:hover { background: hsl(var(--primary) / .06); }

/* Legal pages */
.lrm-legal { max-width: 820px; padding-top: 3rem; padding-bottom: 4rem; }
.lrm-legal-body h1 { font-size: 2rem; font-weight: 700; margin-bottom: .25rem; font-family: "Playfair Display", Georgia, serif; }
.lrm-legal-body h2 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.lrm-legal-body p, .lrm-legal-body li { font-size: 1rem; line-height: 1.7; color: #334155; }
.lrm-legal-body ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
.lrm-legal-body li { margin: .35rem 0; }
.lrm-legal-body a { color: hsl(var(--primary)); text-decoration: underline; }
.lrm-legal-body .lrm-updated { color: #64748b; font-size: .9rem; margin-bottom: 1.25rem; }

/* Contact form status */
.lrm-form-status { margin-top: .75rem; font-size: .95rem; color: #475569; }
.lrm-form-status.lrm-ok { color: #166534; }
.lrm-form-status.lrm-error { color: #b91c1c; }
.lrm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Section titles on the home page */
.lrm-h2 { font-family: "Playfair Display", Georgia, serif; font-size: 1.875rem; font-weight: 700; color: #1e293b; }
@media (min-width: 768px) { .lrm-h2 { font-size: 2.25rem; } }

/* Home page hero with the animated park background */
.lrm-park-hero{background:#eef6ff;min-height:86vh;display:flex;align-items:flex-start!important;padding-top:3rem!important;padding-bottom:15rem!important}
@media (min-width:768px){.lrm-park-hero{min-height:88vh;padding-top:5rem!important;padding-bottom:17rem!important}}
.lrm-park-hero h1,.lrm-park-hero p{text-shadow:0 0 14px #fff,0 0 4px #fff}

/* License and Cyclotron placeholder pages */
.lrm-soon{max-width:720px;margin:0 auto;padding:4rem 1.25rem 5rem;text-align:center}
.lrm-soon-icon{width:120px;height:120px;margin:0 auto 1.25rem}
.lrm-soon-icon svg{width:100%;height:100%}
.lrm-soon h1{font-size:2.4rem;line-height:1.2;margin:0 0 .75rem;font-weight:700}
.lrm-soon-badge{display:inline-block;background:#f5f3ff;color:#6d28d9;border:1px solid #ddd6fe;border-radius:999px;padding:.3rem .9rem;font-size:.9rem;font-weight:600;margin-bottom:1.25rem}
.lrm-soon p{color:#475569;font-size:1.05rem;line-height:1.7;margin:.5rem 0}
.lrm-soon-lead{font-size:1.15rem!important;color:#1e293b!important}
.lrm-soon-actions{margin-top:2rem;display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}
.lrm-soon-btn{display:inline-block;padding:.75rem 1.4rem;border-radius:12px;background:#b91c1c;color:#fff;font-weight:600;text-decoration:none}
.lrm-soon-btn.alt{background:#fff;color:#0f172a;border:1px solid #e2e8f0}

/* Header: justified italic menu on its own row */
.lrm-headrow{flex-wrap:wrap}
.lrm-navlink{font-style:italic;white-space:nowrap;font-size:1rem;letter-spacing:.01em}
.lrm-active{color:#5b21b6!important;background:#f3e8ff!important;font-weight:600}
@media (min-width:1024px){
  .lrm-nav{order:3;width:100%;justify-content:space-between;border-top:1px solid #ede9fe;padding:4px 0 2px;margin-top:2px}
}
@media (min-width:1280px){.lrm-navlink{font-size:1.06rem}}
@media (min-width:1024px) and (max-width:1279px){.lrm-navlink{font-size:.9rem;padding-left:.4rem!important;padding-right:.4rem!important}}
@media (min-width:1024px){.lrm-headrow img{height:88px!important}}

/* Topic sections shown as linked cards */
.lrm-seclinks-intro{color:#7f1d1d;opacity:.8;margin:0 0 1.25rem;font-size:1.05rem}
.lrm-seclinks-grid{display:grid;gap:14px}
@media (min-width:768px){.lrm-seclinks-grid{grid-template-columns:1fr 1fr}}
.lrm-seclink{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid #fecaca;border-radius:16px;padding:18px 18px;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.lrm-seclink:hover{border-color:#ef4444;box-shadow:0 6px 18px rgba(127,29,29,.08);transform:translateY(-1px)}
.lrm-seclink-num{flex-shrink:0;width:42px;height:42px;border-radius:12px;background:#fee2e2;color:#b91c1c;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:.95rem}
.lrm-seclink-body{flex:1;display:flex;flex-direction:column;gap:4px}
.lrm-seclink-title{font-weight:700;color:#7f1d1d;font-size:1.12rem;line-height:1.3;text-decoration:underline;text-decoration-color:#fca5a5;text-underline-offset:4px}
.lrm-seclink:hover .lrm-seclink-title{color:#dc2626;text-decoration-color:#dc2626}
.lrm-seclink-desc{color:#57534e;font-size:.93rem;line-height:1.5}
.lrm-seclink-arrow{flex-shrink:0;color:#dc2626;margin-top:10px}
.lrm-section-extra:empty{display:none}
.lrm-section-extra{margin-top:2rem}

/* Radiotherapy hub role cards */
.lrm-roles{display:grid;gap:20px}
@media (min-width:900px){.lrm-roles{grid-template-columns:repeat(3,1fr)}}
.lrm-role{display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:#fef2f2;border:1px solid #fca5a5;border-radius:24px;padding:28px 24px;text-decoration:none;transition:transform .2s,box-shadow .2s,border-color .2s}
.lrm-role:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(127,29,29,.12);border-color:#dc2626}
.lrm-role-icon{display:inline-flex;padding:14px;border-radius:16px;background:#fee2e2;color:#dc2626}
.lrm-role-title{font-size:1.6rem;font-weight:700;color:#7f1d1d;text-decoration:underline;text-decoration-color:#fca5a5;text-underline-offset:5px}
.lrm-role:hover .lrm-role-title{color:#b91c1c;text-decoration-color:#dc2626}
.lrm-role-desc{color:#57534e;line-height:1.55}
.lrm-role-meta{margin-top:auto;display:inline-flex;align-items:center;gap:6px;color:#dc2626;font-weight:600;font-size:.95rem}
.lrm-back{display:block;width:max-content;margin:0 auto 14px;color:#dc2626;font-weight:700;font-size:.95rem;text-decoration:none}
.lrm-back:hover{color:#b91c1c;text-decoration:underline}

/* For Technologists page: animated linac background behind the top section */
.lrm-tech-bg{position:absolute;top:0;left:0;right:0;z-index:0;pointer-events:none;overflow:hidden}
.lrm-tech-canvas{display:block;width:100%;height:100%}
.lrm-tech-page>*:not(.lrm-tech-bg){position:relative;z-index:1}
.lrm-tech-page>section:first-of-type{padding-bottom:17rem!important}
@media (min-width:768px){.lrm-tech-page>section:first-of-type{padding-bottom:25rem!important}}
.lrm-tech-page h1,.lrm-tech-page>section:first-of-type p{text-shadow:0 0 14px #fff,0 0 4px #fff}

/* Working of Linear Accelerator: embedded interactive explorer */
.lrm-linac-wrap{padding:24px 0 40px}
.lrm-linac-frame{display:block;width:100%;min-height:1400px;border:0;background:#f5f8fb}

/* License page: profession cards */
.lrm-lic-cards{display:grid;gap:16px;margin:2rem 0 .5rem;text-align:left}
@media (min-width:640px){.lrm-lic-cards{grid-template-columns:1fr 1fr}}
.lrm-lic-card{display:flex;flex-direction:column;gap:8px;padding:22px;border:1px solid #a5f3fc;border-radius:18px;background:#ecfeff;text-decoration:none;transition:transform .2s,box-shadow .2s,border-color .2s}
.lrm-lic-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(8,145,178,.15);border-color:#0891b2}
.lrm-lic-title{font-size:1.4rem;font-weight:700;color:#155e75;text-decoration:underline;text-decoration-color:#67e8f9;text-underline-offset:5px}
.lrm-lic-desc{color:#475569;font-size:.98rem;line-height:1.5}
.lrm-lic-go{color:#0891b2;font-weight:700;font-size:.95rem;margin-top:4px}

/* Radiotherapy Hub: video background behind the top section */
.lrm-rt-hero{position:relative;overflow:hidden;min-height:62vh;display:flex;align-items:center;padding:5rem 0 5rem;background:#0f172a url(/media/radiotherapy-bg.jpg) center/cover no-repeat}
.lrm-rt-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.lrm-rt-shade{position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse at center,rgba(15,23,42,.55) 0%,rgba(15,23,42,.3) 60%,rgba(15,23,42,.15) 100%),linear-gradient(to bottom,rgba(15,23,42,0) 70%,rgba(255,255,255,.9) 100%)}
.lrm-rt-hero .container{position:relative;z-index:2}
.lrm-rt-hero h1{color:#fff!important;text-shadow:0 2px 18px rgba(0,0,0,.6)}
.lrm-rt-hero p{color:#f1f5f9!important;opacity:1!important;text-shadow:0 1px 10px rgba(0,0,0,.7)}
@media (max-width:640px){.lrm-rt-hero{min-height:52vh;padding:3.5rem 0}}
.lrm-nm-hero{background-image:url(/media/nuclear-bg.jpg)}
.lrm-nm-hero h1{color:#fff!important}
.lrm-rd-hero{background-image:url(/media/radiology-bg.jpg)}
.lrm-int-cards .lrm-lic-card{background:#fdf4ff;border-color:#f0abfc}
.lrm-int-cards .lrm-lic-title{color:#86198f;text-decoration-color:#f0abfc}
.lrm-int-cards .lrm-lic-go{color:#c026d3}
.lrm-int-cards .lrm-lic-card:hover{border-color:#c026d3;box-shadow:0 8px 22px rgba(192,38,211,.15)}
