:root {
  --dn-ink: #0b1f3a;
  --dn-muted: #51637d;
  --dn-blue: #1f5aa6;
  --dn-green: #1f7a5d;
  --dn-orange: #b96313;
  --dn-red: #b94747;
  --dn-cream: #fff8e7;
  --dn-line: rgba(83, 151, 210, 0.26);
  --dn-margin: rgba(207, 71, 71, 0.55);
  --dn-border: #d8e2ef;
}

.notes-hero {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.notes-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.notes-paper-preview,
.math-notebook-page {
  color: var(--dn-ink);
  background:
    linear-gradient(90deg, transparent 0 54px, var(--dn-margin) 55px 57px, transparent 58px),
    repeating-linear-gradient(0deg, var(--dn-cream) 0 31px, var(--dn-line) 32px 33px);
  border: 1px solid #eadfcb;
  box-shadow: 0 18px 40px rgba(21, 49, 90, 0.12);
}

.notes-paper-preview {
  display: grid;
  gap: 0.9rem;
  min-height: 300px;
  padding: 3.5rem 2rem 2rem 5rem;
  border-radius: 8px;
  transform: rotate(1deg);
}

.notes-paper-preview span,
.note-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #163d7a;
  background: #dceafe;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-paper-preview strong {
  display: block;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(31, 90, 166, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.notes-year-grid,
.notes-topic-grid,
.vocab-grid,
.worked-grid,
.naplan-grid,
.answer-grid {
  display: grid;
  gap: 1rem;
}

.notes-year-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notes-year-card,
.notes-topic-link,
.vocab-card,
.worked-card,
.naplan-grid > div,
.mistake-mini,
.parent-box,
.remember-box,
.challenge-box,
.quick-revision {
  border: 1px solid var(--dn-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(21, 49, 90, 0.08);
}

.notes-year-card,
.notes-topic-link {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem;
  color: var(--dn-ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.notes-year-card:hover,
.notes-topic-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(21, 49, 90, 0.13);
}

.notes-year-card span,
.notes-topic-link span {
  color: var(--dn-blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.notes-topic-link small {
  color: var(--dn-muted);
}

.notes-disclaimer {
  margin-top: 1rem;
  color: var(--dn-muted);
  font-size: 0.92rem;
}

.notes-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.notes-tab {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--dn-border);
  border-radius: 999px;
  color: var(--dn-ink);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.notes-tab.is-active {
  color: #fff;
  background: var(--dn-blue);
}

.notes-strand-panel + .notes-strand-panel {
  margin-top: 2.2rem;
}

.notes-strand-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.notes-strand-title h2 {
  margin: 0;
}

.notes-strand-title span {
  color: var(--dn-blue);
  font-weight: 900;
}

.notes-topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detailed-note-shell {
  background: #f7fbff;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.math-notebook-page {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem) clamp(3.8rem, 8vw, 5.2rem);
  border-radius: 8px;
}

.math-note-header {
  position: relative;
  padding-bottom: 1rem;
}

.math-note-header h1 {
  margin: 1rem 0 0.4rem;
  color: #143d78;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.note-year {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--dn-red);
  font-weight: 900;
}

.note-strand {
  color: var(--dn-blue);
  font-weight: 900;
}

.note-source {
  color: var(--dn-muted);
  font-size: 0.94rem;
}

.note-section {
  margin-top: 1.6rem;
}

.note-section h2 {
  color: #184f91;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.green-section,
.remember-box,
.parent-box,
.challenge-box,
.quick-revision {
  padding: 1rem;
}

.green-section,
.remember-box {
  border-left: 5px solid var(--dn-green);
  background: rgba(239, 255, 248, 0.88);
}

.parent-box {
  border-left: 5px solid var(--dn-blue);
}

.challenge-box {
  border-left: 5px solid var(--dn-orange);
}

.quick-revision {
  border-left: 5px solid #6d5bd0;
}

.vocab-grid,
.naplan-grid,
.answer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vocab-card,
.worked-card,
.naplan-grid > div {
  padding: 1rem;
}

.vocab-card strong,
.worked-card span,
.naplan-grid strong {
  color: var(--dn-blue);
}

.method-list {
  display: grid;
  gap: 0.65rem;
  counter-reset: method;
  list-style: none;
  padding-left: 0;
}

.method-list li {
  position: relative;
  min-height: 2.25rem;
  padding: 0.75rem 0.75rem 0.75rem 3rem;
  border: 1px solid rgba(31, 122, 93, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.method-list li::before {
  counter-increment: method;
  content: counter(method);
  position: absolute;
  left: 0.75rem;
  top: 0.62rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--dn-green);
  font-weight: 900;
}

.worked-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.worked-card {
  background: #f6fbff;
}

.worked-card h3 {
  margin: 0.4rem 0;
}

.worked-card ol,
.parent-box ul,
.quick-revision ul,
.colour-list,
.try-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.25rem;
}

.visual-section,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.math-visual {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 1rem;
  border: 2px dashed rgba(31, 90, 166, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(45deg, rgba(31, 122, 93, 0.08) 0 10px, transparent 10px 20px);
  text-align: center;
}

.math-visual strong {
  color: var(--dn-blue);
  font-size: 1.2rem;
}

.math-visual div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.math-visual span {
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--dn-border);
  font-weight: 800;
}

.mistake-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(185, 71, 71, 0.18);
  border-left: 5px solid var(--dn-red);
  border-radius: 8px;
  background: #fff8f4;
}

.mistake-mini {
  margin-bottom: 0.65rem;
  padding: 0.85rem;
  border-left: 4px solid var(--dn-red);
}

.mistake-mini p {
  margin: 0.25rem 0 0;
}

.answer-grid details {
  border: 1px solid rgba(31, 90, 166, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.answer-grid summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  color: var(--dn-blue);
  font-weight: 900;
}

.answer-grid details p {
  padding: 0 1rem 0.85rem;
}

.note-header-top,
.note-title-grid,
.note-snapshot,
.note-two-column,
.mistake-layout {
  display: grid;
  gap: 1rem;
}

.note-header-top {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.note-title-grid {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.22fr);
  align-items: center;
}

.note-kicker {
  margin: 1rem 0 0;
  color: var(--dn-green);
  font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive;
  font-size: 1rem;
  font-weight: 900;
}

.note-doodle {
  justify-self: end;
  width: min(170px, 100%);
  padding: 0.7rem;
  border: 2px dashed rgba(31, 90, 166, 0.25);
  border-radius: 18px;
  background: #fffdf8;
  transform: rotate(1.5deg);
}

.note-doodle svg {
  display: block;
  width: 100%;
  fill: #fbe4a8;
  stroke: #184f91;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.note-doodle path {
  fill: none;
}

.note-snapshot {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.note-snapshot > div,
.rule-card,
.tip-card,
.example-strip article,
.naplan-panel,
.visual-card {
  border: 1px solid var(--dn-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(21, 49, 90, 0.08);
}

.note-snapshot > div {
  padding: 1rem;
}

.snapshot-label {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  color: #fff;
  background: var(--dn-green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.numbered-section {
  position: relative;
  padding-top: 0.2rem;
}

.numbered-section > h2 {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.8rem;
  color: #143d78;
  font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive;
}

.numbered-section > h2 > span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid rgba(31, 122, 93, 0.3);
  border-radius: 50%;
  color: #fff;
  background: var(--dn-green);
  font-family: inherit;
  font-weight: 900;
}

.lead-note {
  padding: 0.8rem 1rem;
  border-left: 5px solid var(--dn-blue);
  border-radius: 10px;
  background: #eef6ff;
  font-size: 1.05rem;
  font-weight: 700;
}

.note-two-column {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.rule-grid,
.tip-grid,
.example-strip {
  display: grid;
  gap: 0.9rem;
}

.rule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rule-card,
.tip-card,
.example-strip article {
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.rule-card::before,
.tip-card::before,
.example-strip article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--dn-blue);
}

.rule-card:nth-child(2)::before,
.tip-card:nth-child(2)::before,
.example-strip article:nth-child(2)::before {
  background: var(--dn-green);
}

.rule-card:nth-child(3)::before,
.tip-card:nth-child(3)::before {
  background: var(--dn-orange);
}

.rule-card strong,
.tip-card strong,
.example-strip span {
  color: #143d78;
  font-weight: 900;
}

.numbered-section h3 {
  margin: 1.2rem 0 0.65rem;
  color: var(--dn-green);
}

.mini-flow,
.thinking-flow-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
}

.mini-flow span,
.thinking-flow-diagram span {
  position: relative;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--dn-blue);
  font-weight: 900;
}

.mini-flow span:not(:last-child)::after,
.thinking-flow-diagram span:not(:last-child)::after {
  content: "->";
  position: absolute;
  right: -0.55rem;
  color: var(--dn-blue);
}

.example-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.naplan-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border-left: 6px solid #6d5bd0;
  background: #f6f4ff;
}

.mistake-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.remember-box h3,
.parent-box h3,
.challenge-box h3 {
  margin-top: 0;
}

.visual-card {
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 246, 255, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(83, 151, 210, 0.12) 31px 32px);
}

.visual-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 1rem;
}

.visual-card-header strong {
  color: #143d78;
  font-size: 1.1rem;
}

.visual-card-header p {
  margin: 0.15rem 0 0;
  color: var(--dn-muted);
}

.visual-icon {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: #eaf8ef;
}

.visual-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: var(--dn-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.coach-tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #fff8e6;
}

.coach-tip p {
  margin: 0;
  font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive;
  font-weight: 800;
}

.coach-face {
  position: relative;
  display: inline-block;
  width: 2.3rem;
  height: 2.3rem;
  border: 2px solid #184f91;
  border-radius: 50%;
  background: #fbe4a8;
}

.coach-face::before,
.coach-face::after {
  content: "";
  position: absolute;
  top: 0.82rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #184f91;
}

.coach-face::before {
  left: 0.7rem;
}

.coach-face::after {
  right: 0.7rem;
}

.place-value-diagram {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 2px solid #b9d3ef;
  border-radius: 12px;
}

.pv-column {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 0.6rem 0.35rem;
  border-right: 1px solid #b9d3ef;
  background: #fff;
  text-align: center;
}

.pv-column:last-child {
  border-right: 0;
}

.pv-column span {
  color: var(--dn-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.pv-column strong {
  color: var(--dn-blue);
  font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive;
  font-size: 2rem;
}

.number-line-diagram {
  position: relative;
  min-height: 150px;
}

.number-line-track {
  position: absolute;
  top: 78px;
  right: 8%;
  left: 8%;
  height: 5px;
  border-radius: 999px;
  background: var(--dn-blue);
}

.nl-point {
  position: absolute;
  top: 94px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b9d3ef;
  font-weight: 900;
}

.nl-start {
  left: 5%;
}

.nl-mid {
  left: 42%;
}

.nl-end {
  right: 4%;
}

.nl-jump {
  position: absolute;
  top: 38px;
  height: 52px;
  border: 3px solid var(--dn-green);
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
}

.nl-one {
  left: 11%;
  width: 34%;
}

.nl-two {
  left: 48%;
  width: 37%;
}

.fraction-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 2px solid #184f91;
  border-radius: 12px;
}

.fraction-row span {
  min-height: 72px;
  border-right: 2px solid #184f91;
  background: #fff;
}

.fraction-row span:last-child {
  border-right: 0;
}

.fraction-row .is-shaded {
  background: #9ed9b8;
}

.fraction-diagram p,
.area-grid-diagram em {
  display: block;
  margin: 0.65rem 0 0;
  color: var(--dn-muted);
  font-weight: 800;
}

.hundred-grid-diagram {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  max-width: 260px;
  margin: 0 auto;
}

.hundred-grid-diagram span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #e6eef8;
}

.hundred-grid-diagram .is-shaded {
  background: #6d5bd0;
}

.money-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}

.coin {
  display: inline-grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border: 4px solid #c28b2c;
  border-radius: 50%;
  background: #ffd66b;
  color: #6b4800;
  font-weight: 900;
}

.coin-large {
  width: 4.8rem;
  height: 4.8rem;
}

.coin-silver {
  border-color: #a6b3c5;
  background: #edf2f8;
  color: #465772;
}

.money-arrow {
  flex: 1 0 100%;
  text-align: center;
  font-weight: 900;
  color: var(--dn-blue);
}

.time-diagram {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.clock-face {
  position: relative;
  width: 120px;
  height: 120px;
  border: 8px solid #184f91;
  border-radius: 50%;
  background: #fff;
}

.clock-face::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #184f91;
  transform: translate(-50%, -50%);
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 5px;
  border-radius: 999px;
  background: var(--dn-red);
  transform-origin: bottom;
}

.hand.hour {
  height: 35px;
  transform: rotate(35deg);
}

.hand.minute {
  height: 48px;
  background: var(--dn-green);
  transform: rotate(100deg);
}

.time-jumps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 0.4rem;
}

.time-jumps span {
  padding: 0.5rem;
  border-radius: 999px;
  background: #eaf8ef;
  text-align: center;
  font-weight: 900;
}

.area-grid-diagram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.area-grid-diagram span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #dceafe;
  border: 1px solid #9dbfe6;
}

.area-grid-diagram em {
  grid-column: 1 / -1;
  font-style: normal;
  text-align: center;
}

.cube-stack-diagram {
  display: grid;
  grid-template-columns: repeat(6, 34px);
  justify-content: center;
  gap: 6px;
  perspective: 500px;
}

.cube-stack-diagram span {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, #9ed9b8, #5da0ef);
  box-shadow: 5px 5px 0 rgba(24, 79, 145, 0.18);
}

.angle-diagram,
.line-graph-diagram,
.parabola-diagram,
.triangle-diagram {
  display: block;
  width: 100%;
  min-height: 160px;
}

.angle-base,
.angle-arm,
.angle-arc,
.right-angle,
.graph-axis,
.graph-line,
.triangle-line,
.right-angle-mark {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.angle-base,
.angle-arm,
.graph-axis,
.triangle-line {
  stroke: #184f91;
  stroke-width: 7;
}

.angle-arc,
.right-angle,
.graph-line,
.right-angle-mark {
  stroke: var(--dn-green);
  stroke-width: 6;
}

.angle-diagram text,
.triangle-diagram text {
  fill: var(--dn-muted);
  font-size: 14px;
  font-weight: 900;
}

.shape-gallery-diagram,
.transform-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.shape-square,
.mini-shape {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  background: #5da0ef;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-right: 34px solid transparent;
  border-bottom: 64px solid #9ed9b8;
  border-left: 34px solid transparent;
}

.shape-hexagon {
  width: 70px;
  height: 58px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: #f7b267;
}

.shape-cube {
  width: 60px;
  height: 60px;
  background: #d5ccff;
  box-shadow: 10px 10px 0 rgba(109, 91, 208, 0.35);
}

.coordinate-diagram {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 260px;
  margin: 0 auto;
  border-left: 4px solid #184f91;
  border-bottom: 4px solid #184f91;
}

.coordinate-diagram span {
  aspect-ratio: 1;
  border-top: 1px solid #b9d3ef;
  border-right: 1px solid #b9d3ef;
  background: #fff;
}

.coordinate-diagram .is-point {
  position: relative;
  background: #fff;
}

.coordinate-diagram .is-point::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--dn-red);
}

.transform-diagram b {
  color: var(--dn-blue);
}

.mini-shape.shifted {
  transform: translateY(-10px);
  background: #9ed9b8;
}

.mini-shape.flipped {
  transform: scaleX(-1) rotate(45deg);
  background: #f7b267;
}

.bar-chart-diagram {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: center;
  height: 170px;
  border-bottom: 4px solid #184f91;
  border-left: 4px solid #184f91;
  padding: 0 1rem;
}

.bar-chart-diagram span {
  width: 2.4rem;
  height: var(--bar);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #6d5bd0, #5da0ef);
}

.chance-diagram {
  display: grid;
  gap: 1rem;
}

.chance-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 6px solid #184f91;
}

.chance-line span {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.spinner {
  position: relative;
  width: 115px;
  height: 115px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#5da0ef 0 90deg, #9ed9b8 90deg 190deg, #f7b267 190deg 280deg, #d5ccff 280deg 360deg);
}

.spinner span {
  position: absolute;
  inset: 48% auto auto 48%;
  width: 45px;
  height: 5px;
  border-radius: 999px;
  background: #184f91;
  transform: rotate(-30deg);
  transform-origin: left center;
}

.balance-diagram {
  position: relative;
  min-height: 160px;
}

.balance-beam {
  position: absolute;
  top: 54px;
  left: 12%;
  right: 12%;
  display: flex;
  justify-content: space-between;
  border-top: 6px solid #184f91;
}

.balance-beam span {
  display: inline-grid;
  min-width: 82px;
  min-height: 48px;
  place-items: center;
  margin-top: 18px;
  border-radius: 12px;
  background: #eaf8ef;
  color: #0b1f3a;
  font-weight: 900;
}

.balance-stand {
  position: absolute;
  top: 57px;
  left: calc(50% - 5px);
  width: 10px;
  height: 90px;
  border-radius: 999px;
  background: #184f91;
}

.line-graph-diagram circle {
  fill: var(--dn-red);
}

.triangle-fill {
  fill: #eef6ff;
}

.power-diagram {
  display: grid;
  min-height: 135px;
  place-items: center;
  gap: 0.4rem;
}

.power-diagram strong {
  color: #143d78;
  font-size: 4rem;
}

.power-diagram span {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: #eaf8ef;
  font-weight: 900;
}

.ratio-diagram {
  display: grid;
  gap: 0.9rem;
}

.ratio-row {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 0.35rem;
}

.ratio-row.alt {
  grid-template-columns: repeat(3, 1fr);
}

.ratio-row span {
  min-height: 44px;
  border-radius: 10px;
  background: #5da0ef;
}

.ratio-row.alt span {
  background: #9ed9b8;
}

@media (max-width: 980px) {
  .notes-hero-grid,
  .notes-year-grid,
  .notes-topic-grid,
  .vocab-grid,
  .worked-grid,
  .naplan-grid,
  .answer-grid,
  .visual-section,
  .two-col,
  .note-title-grid,
  .note-snapshot,
  .note-two-column,
  .rule-grid,
  .example-strip,
  .naplan-panel,
  .mistake-layout {
    grid-template-columns: 1fr;
  }

  .notes-paper-preview {
    transform: none;
  }

  .note-doodle {
    justify-self: start;
    max-width: 140px;
  }
}

@media (max-width: 720px) {
  .notes-paper-preview,
  .math-notebook-page {
    padding-left: 2.2rem;
    background:
      linear-gradient(90deg, transparent 0 25px, var(--dn-margin) 26px 28px, transparent 29px),
      repeating-linear-gradient(0deg, var(--dn-cream) 0 31px, var(--dn-line) 32px 33px);
  }

  .note-year {
    position: static;
    display: block;
    margin-top: 0.6rem;
  }

  .note-header-top {
    grid-template-columns: 1fr;
  }

  .place-value-diagram {
    grid-template-columns: 1fr;
  }

  .pv-column {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid #b9d3ef;
  }

  .pv-column:last-child {
    border-bottom: 0;
  }

  .naplan-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .no-print,
  .nav-wrap,
  .site-footer,
  .footer,
  .announcement,
  .mobile-bottom-nav {
    display: none !important;
  }

  body,
  .detailed-note-shell,
  .section {
    background: #fff !important;
  }

  .section {
    padding: 0 !important;
  }

  .container {
    max-width: none !important;
    width: 100% !important;
  }

  .math-notebook-page {
    box-shadow: none;
    border-color: #d8d0bd;
  }

  .note-section,
  .worked-card,
  .vocab-card,
  .naplan-grid > div,
  .mistake-mini {
    break-inside: avoid;
  }
}
