

@import url("./pnu-lecture-tokens.css");

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--pnu-blue);
}

:focus-visible {
  outline: 2px solid var(--pnu-blue);
  outline-offset: 2px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 8px 12px;
  color: var(--white);
  white-space: nowrap;
  background: var(--pnu-blue-dark);
  border-radius: var(--radius-sm);
  clip-path: inset(50%);
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}





.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--line-200);
  background: var(--white);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-900);
}

.brand-signature {
  display: block;
  width: 154px;
  max-width: 38vw;
  height: auto;
  flex: 0 1 auto;
}

.brand-text {
  font-weight: 600;
  font-size: 15px;
}

.course-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.lab-site-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--line-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--pnu-blue-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--line-200);
  text-underline-offset: 3px;
}

.lab-site-link:hover,
.lab-site-link:active {
  border-color: var(--pnu-blue);
  background: var(--surface-050);
  color: var(--pnu-blue-dark);
  text-decoration-color: currentColor;
}

.lab-site-link:visited {
  color: var(--pnu-blue-dark);
}

.lab-site-link:focus-visible {
  outline: 2px solid var(--pnu-green);
  outline-offset: 3px;
}

.nav-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--pnu-blue-dark);
  background: var(--surface-050);
  border: 1px solid var(--line-200);
  border-radius: 999px;
  padding: 5px 12px;
}

.nav-tag.is-current {
  background: var(--pnu-blue);
  border-color: var(--pnu-blue);
  color: var(--white);
}

.site-footer {
  border-top: 1px solid var(--line-200);
  margin-top: 56px;
}

.footer-inner {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px 20px;
  color: var(--ink-600);
  font-size: 12.5px;
}

.footer-course-code {
  flex: 1 1 460px;
  min-width: 0;
  color: var(--pnu-blue-dark);
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

.footer-contact {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 4px 6px;
  margin-left: auto;
  color: inherit;
  font-style: normal;
  line-height: 1.5;
}

.footer-contact-label,
.footer-contact-name {
  color: var(--ink-900);
  font-weight: 600;
}

.footer-contact-email {
  color: inherit;
}

.footer-email {
  color: var(--pnu-blue-dark);
  text-decoration: underline;
  text-decoration-color: var(--line-200);
  text-underline-offset: 3px;
}

.footer-email:hover {
  color: var(--pnu-blue);
  text-decoration-color: currentColor;
}

.footer-email:focus-visible {
  outline: 2px solid var(--pnu-green);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .site-header,
  .header-inner {
    min-height: 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .brand-signature {
    width: 118px;
  }

  .header-actions {
    display: contents;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    flex-wrap: wrap;
  }

  .lab-site-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .course-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    flex: 1 1 auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-course-code,
  .footer-contact {
    flex: none;
    width: 100%;
    margin-left: 0;
  }

  .footer-contact {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}





.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pnu-blue);
  margin: 0 0 10px;
}

.accent-rule {
  display: block;
  width: 54px;
  height: 3px;
  background: var(--pnu-green);
  border: 0;
  margin: 14px 0 18px;
  border-radius: 2px;
}

.page-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--pnu-blue-dark);
  margin: 0 0 10px;
  line-height: 1.25;
}

.page-subtitle {
  font-size: 16.5px;
  color: var(--ink-600);
  margin: 0 0 4px;
}

.section-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: var(--pnu-blue-dark);
  margin: 0 0 6px;
}

.session-lecture-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--pnu-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: auto;
}

.session-lecture-link:visited {
  color: inherit;
}

.session-lecture-link:hover {
  color: var(--pnu-blue);
  text-decoration-thickness: 3px;
}

.session-lecture-link:focus-visible {
  outline: 2px solid var(--pnu-green);
  outline-offset: 4px;
  border-radius: 2px;
}

.lead {
  color: var(--ink-900);
  font-size: 15.5px;
}

.keyterm {
  color: var(--pnu-blue);
  font-weight: 600;
}

.hero {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--line-200);
}

.page-body {
  padding: 36px 0 20px;
}

.lecture-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-600);
  margin: 0 0 14px;
}

.lecture-meta span {
  background: var(--surface-050);
  border: 1px solid var(--line-200);
  border-radius: 999px;
  padding: 4px 11px;
}

section + section,
.stack > * + * {
  margin-top: 40px;
}





.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.card .eyebrow {
  margin-bottom: 8px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  color: var(--pnu-blue-dark);
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-900);
}

.card-dark {
  background: var(--pnu-blue-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.card-dark .eyebrow {
  color: var(--white);
}

.card-dark h3 {
  color: var(--white);
  margin: 0 0 6px;
  font-size: 15.5px;
}

.card-dark p {
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}





.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14.5px;
  margin-top: 18px;
}

.callout::before {
  content: "";
  flex: 0 0 4px;
  align-self: stretch;
  border-radius: 2px;
}

.callout.take {
  background: var(--callout-bg);
  color: var(--ink-900);
}

.callout.take::before {
  background: var(--pnu-green);
}

.callout.caution {
  background: var(--alert-050);
  color: var(--ink-900);
}

.callout.caution::before {
  background: var(--alert-700);
}

.callout b {
  color: var(--alert-700);
}

.callout.take b {
  color: var(--pnu-blue-dark);
}





.checkpoint {
  background: var(--pnu-blue-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 26px 30px;
  margin-top: 40px;
}

.checkpoint .eyebrow {
  color: var(--white);
}

.checkpoint h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}

.checkpoint details {
  border-top: 1px solid var(--white);
  padding: 12px 0;
}

.checkpoint details:last-of-type {
  border-bottom: 1px solid var(--white);
}

.checkpoint summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}

.checkpoint summary::-webkit-details-marker {
  display: none;
}

.checkpoint summary::before {
  content: "▸";
  display: inline-block;
  width: 1.1em;
  color: var(--pnu-green);
  transition: transform 0.15s ease;
}

.checkpoint details[open] summary::before {
  transform: rotate(90deg);
}

.checkpoint .answer {
  margin: 10px 0 2px 1.1em;
  font-size: 14px;
  color: var(--white);
  max-width: 65ch;
}





.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  border: 1.4px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--pnu-blue);
  border-color: var(--pnu-blue);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--pnu-blue-dark);
  border-color: var(--pnu-blue-dark);
}

.btn-accent {
  background: var(--pnu-green);
  border-color: var(--pnu-green);
  color: var(--white);
}

.btn-accent:hover:not(:disabled) {
  filter: brightness(0.93);
}

.btn-outline {
  background: var(--white);
  border-color: var(--line-200);
  color: var(--ink-900);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--pnu-blue);
  color: var(--pnu-blue-dark);
}

.btn-outline.is-active {
  border-color: var(--pnu-blue);
  background: var(--surface-050);
  color: var(--pnu-blue-dark);
}

input[type="text"],
input[type="number"] {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.4px solid var(--line-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  width: 100%;
}

input[type="range"] {
  accent-color: var(--pnu-blue);
  width: 100%;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
}





.tabbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-200);
  padding-bottom: 10px;
  margin-top: 20px;
}

.tab-panel {
  padding-top: 18px;
}

.tab-panel[hidden] {
  display: none;
}





.stage {
  background: var(--surface-050);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.stage-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin: 0 0 12px;
}

.control-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}





table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

table.spec caption {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-600);
  margin-bottom: 8px;
}

table.spec th,
table.spec td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-200);
}

table.spec thead th {
  color: var(--ink-600);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}

table.spec tbody tr:last-child td {
  border-bottom: none;
}

td.mono,
th.mono,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}





.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
}

.chip.blue {
  background: var(--callout-bg);
  color: var(--pnu-blue-dark);
}

.chip.green {
  background: var(--surface-050);
  color: var(--pnu-blue-dark);
}

.chip.red {
  background: var(--alert-050);
  color: var(--alert-700);
}

.chip.gray {
  background: var(--surface-050);
  color: var(--ink-600);
  border: 1px solid var(--line-200);
}





.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gallery-card:hover {
  border-color: var(--pnu-blue);
  transform: translateY(-2px);
}

.gallery-card .thumb {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--white);
}

.gallery-card .thumb,
.gallery-card .thumb.ds,
.gallery-card .thumb.ml {
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-blue-dark));
  border-bottom: 4px solid var(--pnu-green);
}

.gallery-card .body {
  padding: 16px 18px 18px;
}

.gallery-card .body .eyebrow {
  margin-bottom: 6px;
}

.gallery-card h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  color: var(--pnu-blue-dark);
}

.gallery-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-600);
}

.gallery-card .tags {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.placeholder-card {
  border: 1.4px dashed var(--line-200);
  border-radius: var(--radius-md);
  padding: 18px;
  color: var(--ink-600);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
}





.nav-link {
  text-decoration: none;
}

.tabbar [role="tab"][aria-selected="true"] {
  border-color: var(--pnu-blue);
  background: var(--callout-bg);
  color: var(--pnu-blue-dark);
}

.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .split-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.code-box {
  background: var(--pnu-blue-dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  margin: 14px 0 0;
  overflow-x: auto;
  white-space: pre;
}

.code-box .cm {
  opacity: 0.62;
}

.code-box .hl {
  background: var(--white);
  border-radius: 3px;
}

.log-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.log-list li {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-200);
  font-size: 13.5px;
  color: var(--ink-900);
}

.log-list li:last-child {
  border-bottom: none;
}

.log-list .call {
  font-family: var(--mono);
  color: var(--pnu-blue-dark);
  font-weight: 700;
}

.log-list .ret {
  color: var(--ink-600);
}

.cell-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cell-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.cell {
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border: 1.6px solid var(--pnu-blue);
  border-radius: 8px;
  background: var(--white);
  color: var(--pnu-blue-dark);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cell.is-empty {
  border-style: dashed;
  border-color: var(--line-200);
  color: var(--ink-600);
  font-weight: 500;
}

.cell.is-new {
  border-color: var(--pnu-green);
  background: var(--surface-050);
}

.cell.is-moved {
  background: var(--callout-bg);
}

.cell.is-focus {
  background: var(--pnu-blue);
  border-color: var(--pnu-blue);
  color: var(--white);
}

.cell.is-alert {
  border-color: var(--alert-700);
  background: var(--alert-050);
  color: var(--alert-700);
}

.cell.is-muted {
  opacity: 0.45;
}

.cell-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-600);
  min-height: 15px;
}

.readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.readout-item {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.readout-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
}

.readout-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--pnu-blue-dark);
  font-variant-numeric: tabular-nums;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 180px;
  min-width: 0;
}

.field output {
  font-weight: 700;
  color: var(--pnu-blue-dark);
  font-variant-numeric: tabular-nums;
}

.input-sm {
  max-width: 110px;
}

select {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.4px solid var(--line-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
}

.note {
  font-size: 13px;
  color: var(--ink-600);
  margin: 8px 0 0;
}

.text-good {
  color: var(--pnu-blue-dark);
  font-weight: 700;
}

.text-bad {
  color: var(--alert-700);
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

table.spec td.num,
table.spec th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.spec tr.is-focus td {
  background: var(--callout-bg);
}



.plot {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
}

.plot text {
  fill: var(--ink-600);
  font-family: var(--font-sans);
  font-size: 11px;
}

.plot .axis {
  stroke: var(--ink-600);
  stroke-width: 1;
}

.plot .grid {
  stroke: var(--line-200);
  stroke-width: 1;
}

.plot .ln {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.plot .ln.blue { stroke: var(--pnu-blue); }
.plot .ln.green { stroke: var(--pnu-green); }
.plot .ln.dark { stroke: var(--pnu-blue-dark); }
.plot .ln.muted { stroke: var(--ink-600); stroke-dasharray: 5 4; stroke-width: 1.6; }
.plot .ln.alert { stroke: var(--alert-700); }
.plot .ln.thin { stroke-width: 1.4; }

.plot .dot { stroke-width: 1.6; }
.plot .dot.blue { fill: var(--pnu-blue); stroke: var(--pnu-blue-dark); }
.plot .dot.green { fill: var(--pnu-green); stroke: var(--pnu-blue-dark); }
.plot .dot.white { fill: var(--white); stroke: var(--ink-600); }
.plot .dot.dark { fill: var(--pnu-blue-dark); stroke: var(--ink-900); }
.plot .dot.alert { fill: var(--alert-050); stroke: var(--alert-700); }
.plot .dot.muted { fill: var(--surface-050); stroke: var(--line-200); }

.plot .area { fill: var(--callout-bg); stroke: none; }
.plot .area.green { fill: var(--surface-050); }
.plot .bar { fill: var(--pnu-blue); }
.plot .bar.green { fill: var(--pnu-green); }
.plot .bar.muted { fill: var(--line-200); }
.plot .bar.alert { fill: var(--alert-700); }
.plot .label-strong { fill: var(--pnu-blue-dark); font-weight: 700; font-size: 12px; }

.plot .edge {
  stroke: var(--ink-600);
  stroke-width: 1.6;
  fill: none;
}

.plot .edge.is-path {
  stroke: var(--pnu-green);
  stroke-width: 3.2;
}

.plot .edge.is-muted {
  stroke: var(--line-200);
}

.plot .vnode circle {
  fill: var(--white);
  stroke: var(--pnu-blue);
  stroke-width: 2;
}

.plot .vnode text {
  fill: var(--pnu-blue-dark);
  font-weight: 700;
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: central;
}

.plot .vnode.is-path circle { fill: var(--surface-050); stroke: var(--pnu-green); stroke-width: 2.6; }
.plot .vnode.is-visited circle { fill: var(--callout-bg); }
.plot .vnode.is-focus circle { fill: var(--pnu-blue); stroke: var(--pnu-blue-dark); }
.plot .vnode.is-focus text { fill: var(--white); }
.plot .vnode.is-alert circle { fill: var(--alert-050); stroke: var(--alert-700); }
.plot .vnode.is-alert text { fill: var(--alert-700); }
.plot .vnode.is-muted { opacity: 0.4; }
.plot .vnode.is-click { cursor: pointer; }

.plot .tag {
  font-size: 10.5px;
  font-weight: 700;
  text-anchor: middle;
  fill: var(--pnu-blue-dark);
}



.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.quiz-card {
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--white);
}

.quiz-card .q {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-900);
}

.quiz-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quiz-options .btn {
  font-size: 12.5px;
  padding: 7px 10px;
}

.quiz-options .btn.correct {
  background: var(--surface-050);
  border-color: var(--pnu-green);
  color: var(--pnu-blue-dark);
}

.quiz-options .btn.wrong {
  background: var(--alert-050);
  border-color: var(--alert-200);
  color: var(--alert-700);
}

.quiz-reason {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-600);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  background: var(--surface-050);
  border: 1px solid var(--line-200);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--pnu-blue-dark);
  margin-top: 16px;
}

@media (max-width: 560px) {
  .hero {
    padding: 28px 0 6px;
  }
  .page-body {
    padding: 26px 0 10px;
  }
  .checkpoint {
    padding: 22px 18px 24px;
  }
}






.week-section {
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--line-200);
}

.week-section:first-child {
  padding-top: 0;
}

.week-section:last-child {
  border-bottom: 0;
}

.session-group {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 3px solid var(--pnu-green);
}

.session-title {
  margin: 0 0 12px;
  color: var(--pnu-blue-dark);
  font-size: 17px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 96px;
  padding: 16px 18px;
  color: var(--ink-900);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.topic-card:hover {
  border-color: var(--pnu-blue);
  transform: translateY(-2px);
}

.topic-card-title {
  color: var(--pnu-blue-dark);
  font-size: 16px;
  font-weight: 700;
}

.topic-card-meta {
  color: var(--ink-600);
  font-size: 13px;
}

.problem-set-action-row {
  margin-top: 12px;
}

.problem-set-action {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  color: var(--pnu-green-text);
  text-decoration: none;
  background: var(--pnu-green-tint);
  border: 1px solid var(--pnu-green);
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.problem-set-action:hover {
  background: rgba(0, 166, 81, 0.2);
  transform: translateY(-1px);
}

.problem-set-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pnu-green) 35%, transparent);
  outline-offset: 3px;
}

.problem-set-action-label {
  padding: 4px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 750;
  background: var(--pnu-green-text);
  border-radius: 999px;
}

.problem-set-action-title {
  color: var(--pnu-blue-dark);
  font-size: 15px;
}

.topic-example + .topic-example {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--line-200);
}

.topic-state {
  min-height: 116px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
}

.state-meter {
  width: 100%;
  height: 7px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--surface-050);
  border-radius: 999px;
}

.state-meter span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--pnu-green);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.state-name {
  margin: 0 0 5px;
  color: var(--pnu-blue-dark);
  font-weight: 700;
}

.state-result {
  margin: 0;
  color: var(--ink-900);
}

.topic-pager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-200);
}

.pager-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--pnu-blue-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface-050);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
}

.pager-link:hover {
  border-color: var(--pnu-blue);
}

.pager-link.is-all {
  color: var(--white);
  background: var(--pnu-blue);
  border-color: var(--pnu-blue);
}

.pager-link.is-disabled {
  color: var(--ink-600);
  opacity: 0.45;
}

@media (max-width: 560px) {
  .session-group {
    padding-left: 12px;
  }

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

  .problem-set-action {
    grid-template-columns: auto 1fr;
  }

  .topic-pager {
    gap: 6px;
  }
}


.eyebrow-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.eyebrow-link:hover {
  color: var(--pnu-blue-dark);
}

.eyebrow-link span[aria-hidden="true"] {
  display: inline-block;
  margin-left: 0.3em;
  text-decoration: none;
}

.page-title .check-mark {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.3em;
  padding: 0.14em;
  border-radius: 50%;
  vertical-align: -0.08em;
  background: var(--pnu-blue-dark);
  color: var(--white);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.publication-lecture-tail {
  white-space: nowrap;
}


.publication-lecture .publication-lecture-tail {
  display: inline;
  margin-left: 0;
  font-size: inherit;
  text-decoration: inherit;
}
