/* BUSM3125 Strategy prototype: RMIT Online Canvas look.
   Values from the BUSM3125 Figma Make template guide (27 Nov 2026) and the Figma peg. */
:root {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333; background: #fff; font-synthesis: none;
  --navy: #000054; --red: #e60028; --link: #0074e7; --border: #e3e3e3; --off-white: #f3f3f3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; }
button, input { font: inherit; }
button { color: inherit; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a .ext { display: inline-block; width: 0.8em; height: 0.8em; margin-left: 4px; vertical-align: baseline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }
.skip-link:focus { left: 8px; }

.app-shell { display: grid; grid-template-columns: 285px minmax(0, 1fr); min-height: 100vh; }

/* sidebar */
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid #c7c7c7; background: #fff; z-index: 20; }
.sidebar-head { min-height: 92px; padding: 20px 24px; color: #fff; background: var(--navy); display: flex; align-items: center; justify-content: space-between; }
.sidebar-head span, .sidebar-head strong { display: block; }
.sidebar-head span { font-size: 14px; letter-spacing: 0.08em; }
.sidebar-head strong { margin-top: 5px; font-size: 24px; }
.close-menu { display: none; color: #fff; }
.nav-group { padding: 22px 0 8px; }
.nav-group + .nav-group { border-top: 1px solid var(--border); }
.nav-group h2 { margin: 0 22px 10px; color: #555; font-size: 14px; line-height: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.035em; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group a { display: block; padding: 10px 22px; border-left: 4px solid transparent; color: #333; text-decoration: none; font-size: 15px; line-height: 21px; }
.nav-group a span { display: block; margin-bottom: 2px; color: #666; font-size: 12px; }
.nav-group a:hover { background: #f6f6f6; text-decoration: underline; }
.nav-group a.active { color: var(--navy); border-left-color: var(--red); background: #f2f2f7; font-weight: 700; }

main { min-width: 0; }
.course-bar { height: 58px; padding: 0 38px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); font-size: 16px; }
.course-bar-week { margin-left: auto; color: #666; }
.icon-button { border: 0; padding: 6px; background: transparent; cursor: pointer; display: inline-flex; }
.menu-button { display: none; }

/* banner */
.banner { position: relative; margin-bottom: 60px; }
.banner > img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 46%; }
.quarter-circle { position: absolute; z-index: 1; right: 0; top: 0; width: 180px; height: 180px; border-radius: 0 0 0 180px; background: var(--red); }
.title-card { position: relative; z-index: 2; margin: -95px 0 0 48px; width: min(760px, 100% - 96px); border: 1px solid var(--navy); background: #fff; }
.breadcrumbs { min-height: 46px; padding: 8px 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #fff; background: var(--navy); font-size: 20px; line-height: 30px; }
.breadcrumbs b { color: var(--red); font-size: 28px; line-height: 20px; }
.title-card h1 { margin: 14px 15px 2px; color: var(--navy); font-size: 30px; line-height: 45px; font-weight: 400; }
.title-card p { margin: 5px 15px 18px; color: var(--navy); display: flex; align-items: center; gap: 9px; font-size: 16px; line-height: 24px; }
.title-card p svg { width: 19px; flex: 0 0 19px; }

/* page content */
.page-content { width: min(800px, 100% - 96px); margin: 0 0 90px 48px; }
.page-content > *:first-child { margin-top: 0; }
.page-content p, .page-content li { font-size: 20px; line-height: 30px; }
.page-content p { margin: 35px 0 0; max-width: 740px; }
.page-content ul, .page-content ol { max-width: 660px; margin: 26px 0 0; padding-left: 30px; }
.page-content li { margin: 7px 0; line-height: 36px; padding-left: 4px; }
.page-content h2 { margin: 55px 0 0; color: var(--navy); font-size: 28px; line-height: 42px; font-weight: 400; max-width: 740px; }
.page-content h3 { margin: 35px 0 0; color: var(--navy); font-size: 24px; line-height: 36px; font-weight: 400; }

.overview { max-width: 800px; padding: 20px 30px 25px; border: 1px solid var(--border); border-radius: 10px; box-shadow: 5px 5px 25px rgba(46, 61, 73, 0.2); }
.overview > span { font-size: 16px; line-height: 24px; font-weight: 700; }
.overview h2 { margin-top: 4px; }
.overview p { margin-top: 8px; }

.action-heading { display: flex; align-items: center; gap: 12px; }
.action-heading svg { flex: 0 0 28px; width: 28px; height: 28px; }

.content-box { margin-top: 35px; max-width: 740px; padding: 8px 30px 28px; border: 1px solid var(--border); border-radius: 5px; }
.content-box p { margin-top: 20px; }

.resources .resource-label { margin-bottom: 5px; }
.resource-item { max-width: 740px; margin: 12px 0 24px; padding: 16px 20px; border-left: 4px solid var(--navy); background: #f5f5f5; }
.resource-item > a { font-size: 18px; line-height: 28px; }
.page-content .resource-item p, .page-content .source { margin: 6px 0 0; font-size: 16px; line-height: 24px; }
.page-content .resource-item p { margin-top: 3px; }

.page-content .table-caption { margin-bottom: 12px; }
.table-scroll { width: 90%; overflow-x: auto; margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 25px; }
th, td { padding: 10px; border: 1px solid #404040; background: #ececec; text-align: left; vertical-align: top; }
th { font-weight: 700; }

/* collapsible: accordion panels and Reveal feedback */
.accordion-list { margin-top: 35px; display: grid; gap: 12px; max-width: 740px; }
.collapsible { max-width: 740px; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
.collapsible.reveal { margin-top: 35px; }
.collapsible > summary { list-style: none; min-height: 72px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; color: var(--navy); font-size: 20px; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary:hover { background: #f8f8f8; }
.collapsible > summary strong { font-weight: 400; }
.collapsible > summary small { display: block; margin-top: 3px; color: #555; font-size: 15px; }
.collapsible > summary svg { flex: 0 0 auto; transition: transform 0.18s; }
.collapsible[open] > summary svg { transform: rotate(180deg); }
.collapsible-body { padding: 0 30px 30px; border-top: 1px solid var(--border); }
.page-content .collapsible-body p { font-size: 18px; line-height: 28px; margin-top: 22px; }
.page-content .model-answer { padding-left: 20px; border-left: 3px solid #333; color: var(--navy); font-size: 22px; line-height: 34px; }

.link-list { display: grid; gap: 0; margin-top: 35px; }
.page-content .link-list p { margin-top: 12px; }

.references p { padding-left: 28px; text-indent: -28px; overflow-wrap: anywhere; }
.page-content .references p { font-size: 17px; line-height: 27px; margin-top: 18px; }

.course-figure { width: 90%; margin: 35px 0 0; border: 3px solid var(--off-white); padding: 20px 20px 0; }
.course-figure.compact { width: 65%; }
.course-figure img { display: block; width: 100%; height: auto; }
.course-figure figcaption { margin: 20px -20px 0; padding: 10px 16px; background: var(--off-white); font-size: 16px; line-height: 24px; }
.course-figure figcaption strong, .course-figure figcaption span { display: block; }
.course-figure figcaption strong { color: var(--navy); font-weight: 400; }

/* practice quiz (stands in for the native Canvas quiz) */
.quiz { margin-top: 35px; max-width: 740px; }
.quiz fieldset { margin: 0 0 25px; padding: 25px 30px; border: 1px solid var(--border); border-radius: 5px; }
.quiz legend { padding: 0 8px; color: var(--navy); font-size: 20px; line-height: 30px; }
.quiz label { display: flex; align-items: center; gap: 12px; padding: 10px; font-size: 18px; cursor: pointer; }
.quiz label:hover { background: #f6f6f6; }
.quiz input { width: 19px; height: 19px; accent-color: var(--navy); flex: 0 0 19px; }
.page-content .answer-feedback { padding: 14px 18px; border-left: 4px solid #a23a2a; background: #fbf2f0; margin: 4px 10px 8px; font-size: 16px; line-height: 24px; }
.page-content .answer-feedback.correct { border-left-color: #16733a; background: #f1f6f1; }
.canvas-button { min-height: 44px; padding: 9px 16px; border: 1px solid #8c8c8c; border-radius: 4px; background: #fff; color: #333; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 700; font-size: 16px; text-decoration: none; }
.canvas-button:hover { background: #f5f5f5; }
.canvas-button.primary { color: #fff; border-color: var(--navy); background: var(--navy); }
.canvas-button svg { width: 19px; height: 19px; }
.quiz-result { margin-top: 20px; padding: 20px; background: #f1f6f1; font-size: 18px; line-height: 28px; }

.page-footer { margin: 0 48px 35px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.page-footer > span { color: #666; font-size: 14px; }

/* course home */
.home-weeks { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.home-weeks li { padding: 0 !important; }
.home-weeks a, .home-weeks .soon { display: block; padding: 16px 20px; border: 1px solid var(--border); border-radius: 5px; font-size: 20px; }
.home-weeks .soon { color: #666; }

.sidebar-scrim { display: none; }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); transform: translateX(-105%); transition: transform 0.22s; box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-scrim:not([hidden]) { display: block; position: fixed; z-index: 19; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0, 0, 0, 0.45); }
  .close-menu, .menu-button { display: inline-flex; }
  .course-bar { padding: 0 22px; }
}
@media (max-width: 700px) {
  .course-bar-week { display: none; }
  .banner { margin-bottom: 40px; }
  .banner > img { height: 245px; }
  .quarter-circle { width: 105px; height: 105px; border-radius: 0 0 0 105px; }
  .title-card { margin: -80px 16px 0; width: calc(100% - 32px); }
  .breadcrumbs { font-size: 15px; line-height: 23px; }
  .title-card h1 { margin-top: 12px; font-size: 26px; line-height: 36px; }
  .page-content { width: calc(100% - 32px); margin: 0 16px 70px; }
  .page-content p, .page-content li { font-size: 18px; line-height: 28px; }
  .page-content h2 { font-size: 25px; line-height: 36px; }
  .overview { padding: 20px; }
  .table-scroll, .course-figure, .course-figure.compact { width: 100%; }
  .page-footer { margin: 0 16px 25px; }
  .page-footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { scroll-behavior: auto !important; transition: none !important; }
}
