:root {
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-muted: #f7f7f8;
  --surface-pressed: #e8e8ed;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.09);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, 0.1);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.075);
  --header-bg: rgba(245, 245, 247, 0.9);
  --shell: min(1240px, calc(100% - 48px));
  color-scheme: light;
}

html[data-theme="dark"] {
  --page: #000000;
  --surface: #1c1c1e;
  --surface-muted: #242426;
  --surface-pressed: #353537;
  --text: #f5f5f7;
  --secondary: #a1a1a6;
  --tertiary: #8e8e93;
  --border: rgba(255, 255, 255, 0.11);
  --blue: #2997ff;
  --blue-soft: rgba(41, 151, 255, 0.15);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
  --header-bg: rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
summary {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.3);
  outline-offset: 2px;
}

body.menu-open {
  overflow: hidden;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--page);
  font-size: 14px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: var(--page);
  font-size: 13px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 28px;
}

.nav-links a {
  color: var(--secondary);
  font-size: 13px;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.menu-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-pressed);
}

.theme-toggle svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.menu-toggle {
  display: grid;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  z-index: 90;
  inset: 56px 0 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  z-index: 99;
  top: 56px;
  right: 0;
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  display: flex;
  width: min(420px, 100%);
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px;
  border-left: 1px solid var(--border);
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.14);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-heading,
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.drawer-heading > div,
.card-heading > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drawer-heading span:first-child,
.card-heading span:first-child {
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.drawer-heading h2,
.card-heading h3 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.drawer-heading h2 {
  font-size: 25px;
}

.drawer-hint {
  margin-top: 4px;
  color: var(--tertiary);
  font-size: 11px;
}

.drawer-nav {
  display: grid;
  border-block: 1px solid var(--border);
}

.drawer-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  color: var(--secondary);
  font-size: 14px;
}

.drawer-nav a:last-child {
  border-bottom: 0;
}

.drawer-nav a:hover {
  color: var(--blue);
}

.drawer-version {
  align-self: center;
  margin: 4px auto 0;
  border: 0;
  background: transparent;
  color: var(--tertiary);
  cursor: default;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.56;
  -webkit-user-select: none;
  user-select: none;
}

.drawer-tool {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-muted);
}

.drawer-tool .timer-display {
  width: 154px;
  height: 154px;
  margin-block: 18px;
}

.drawer-tool .timer-display strong {
  font-size: 34px;
}

.hero {
  padding-block: 76px 54px;
}

.overline {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.hero h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(56px, 7.4vw, 92px);
  font-weight: 650;
  letter-spacing: -0.062em;
  line-height: 0.93;
}

.hero h1 span {
  color: var(--tertiary);
}

.hero-copy {
  max-width: 600px;
  margin: 0;
  color: var(--secondary);
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.hero-credit {
  margin: 17px 0 0;
  color: var(--secondary);
  font-size: 13px;
}

.hero-credit strong {
  color: var(--text);
  font-weight: 580;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 28px;
  color: var(--secondary);
  font-size: 13px;
}

.hero-meta span {
  position: relative;
}

.hero-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tertiary);
  content: "";
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.library-section {
  padding-block: 36px 76px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 27px;
}

.section-header h2 {
  margin: 7px 0 0;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 630;
  letter-spacing: -0.047em;
  line-height: 1;
}

.section-header > p {
  max-width: 410px;
  margin: 0 0 4px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.5;
  text-align: right;
}

.section-header > p span {
  padding-inline: 5px;
  color: var(--tertiary);
}

.resource-browser {
  display: grid;
  min-height: 660px;
  grid-template-columns: 205px 165px 225px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.browser-pane {
  min-width: 0;
  border-right: 1px solid var(--border);
}

.branch-pane {
  padding: 18px 12px;
  background: var(--surface-muted);
}

.pane-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 7px 13px;
}

.pane-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.pane-title span {
  min-width: 25px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--surface-pressed);
  color: var(--secondary);
  font-size: 11px;
  text-align: center;
}

.branch-search {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  margin: 0 3px 12px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}

.branch-search:focus-within {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.branch-search svg {
  width: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--secondary);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.branch-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.branch-search input::placeholder {
  color: var(--tertiary);
}

.branch-list,
.semester-list,
.subject-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.branch-list {
  max-height: 625px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-pressed) transparent;
}

.branch-item,
.semester-item,
.subject-item {
  display: grid;
  width: 100%;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.branch-item {
  min-height: 43px;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 13px;
}

.branch-item:hover,
.semester-item:hover,
.subject-item:hover {
  background: var(--surface-pressed);
}

.branch-item:active,
.semester-item:active,
.subject-item:active {
  transform: scale(0.985);
}

.branch-item.active {
  background: var(--blue);
  color: #ffffff;
}

.branch-code {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.branch-item.active .branch-code {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.branch-item > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branch-item i,
.subject-item i {
  font-size: 18px;
  font-style: normal;
  opacity: 0.38;
}

.branch-item.active i {
  opacity: 0.8;
}

.no-results {
  margin: 28px 8px;
  color: var(--secondary);
  font-size: 13px;
  text-align: center;
}

.pane-loading {
  margin: 18px 8px;
  color: var(--tertiary);
  font-size: 13px;
}

.semester-pane {
  padding: 20px 10px;
  background: var(--surface);
}

.semester-list {
  padding-top: 10px;
}

.semester-item {
  min-height: 55px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 9px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.semester-item.active {
  background: var(--blue-soft);
}

.semester-code {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--secondary);
  font-size: 10px;
  font-weight: 700;
}

.semester-item.active .semester-code {
  border-color: transparent;
  background: var(--blue);
  color: #ffffff;
}

.semester-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.semester-item strong {
  font-size: 12px;
  font-weight: 580;
  white-space: nowrap;
}

.semester-item small {
  color: var(--tertiary);
  font-size: 10px;
}

.semester-item i {
  font-size: 18px;
  font-style: normal;
  opacity: 0.38;
}

.semester-list.semesters-entering .semester-item {
  animation: semester-item-enter 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.subject-pane {
  padding: 20px 12px;
  background: var(--surface);
}

.pane-context {
  display: flex;
  min-height: 51px;
  flex-direction: column;
  gap: 4px;
  padding: 0 7px 13px;
  border-bottom: 1px solid var(--border);
}

.pane-context span {
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.pane-context strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-list {
  padding-top: 10px;
}

.subject-item {
  min-height: 55px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 9px;
}

.subject-item.active {
  background: var(--blue-soft);
}

.subject-list.subjects-entering .subject-item {
  animation: subject-item-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.subject-monogram {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--secondary);
  font-size: 9px;
  font-weight: 700;
}

.subject-item.active .subject-monogram {
  border-color: transparent;
  background: var(--blue);
  color: #ffffff;
}

.subject-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.subject-item strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 570;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-item small {
  color: var(--tertiary);
  font-size: 11px;
}

.content-pane {
  min-width: 0;
  padding: 20px 24px 26px;
}

.browser-path {
  display: flex;
  min-height: 31px;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--tertiary);
  font-size: 12px;
  white-space: nowrap;
}

.browser-path span,
.browser-path strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-path i {
  font-style: normal;
  opacity: 0.45;
}

.browser-path strong {
  color: var(--text);
  font-weight: 550;
}

.subject-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding-block: 24px 22px;
}

.subject-header.subject-entering {
  animation: subject-header-enter 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.subject-code {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: var(--text);
  color: var(--page);
  font-size: 11px;
  font-weight: 700;
}

.subject-header h3 {
  margin: 0 0 4px;
  font-size: 23px;
  font-weight: 630;
  letter-spacing: -0.035em;
}

.subject-header p {
  max-width: 520px;
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.4;
}

.subject-header .subject-contributor {
  margin-top: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.subject-status {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--secondary);
  font-size: 11px;
  white-space: nowrap;
}

.subject-actions {
  display: flex;
  align-self: start;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.subject-syllabus {
  color: var(--blue);
  font-size: 12px;
  font-weight: 570;
  white-space: nowrap;
}

.subject-syllabus:hover {
  text-decoration: underline;
}

.subject-syllabus.unavailable {
  color: var(--tertiary);
  pointer-events: none;
  text-decoration: none;
}

.unit-list {
  border-top: 1px solid var(--border);
}

.unit-row {
  border-bottom: 1px solid var(--border);
}

.unit-list.units-entering .unit-row {
  animation: unit-row-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.unit-row > summary {
  display: grid;
  min-height: 68px;
  grid-template-columns: 38px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 11px;
  padding: 10px 5px;
  cursor: pointer;
  list-style: none;
}

.unit-row > summary::-webkit-details-marker {
  display: none;
}

.unit-row > summary:hover .unit-title strong {
  color: var(--blue);
}

.unit-index {
  color: var(--tertiary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.unit-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.unit-title strong {
  font-size: 14px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.unit-title small {
  overflow: hidden;
  color: var(--secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-title .unit-contributor {
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.unit-count {
  color: var(--tertiary);
  font-size: 11px;
  white-space: nowrap;
}

.chevron {
  position: relative;
  width: 20px;
  height: 20px;
}

.chevron::before,
.chevron::after {
  position: absolute;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--tertiary);
  content: "";
  transition: transform 0.2s ease;
}

.chevron::before {
  left: 3px;
  transform: rotate(45deg);
}

.chevron::after {
  right: 3px;
  transform: rotate(-45deg);
}

.unit-row[open] .chevron::before {
  transform: rotate(-45deg);
}

.unit-row[open] .chevron::after {
  transform: rotate(45deg);
}

.material-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 16px 49px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--border);
}

.lab-row > summary .unit-index {
  color: var(--blue);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.workshop-row > summary .unit-index {
  color: var(--blue);
  font-weight: 650;
  letter-spacing: 0.04em;
}

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

.core-resource-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
}

.unit-row[open] .material-list {
  animation: materials-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top center;
}

@keyframes subject-item-enter {
  from {
    opacity: 0;
    transform: translate3d(-10px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes semester-item-enter {
  from {
    opacity: 0;
    transform: translate3d(-8px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes subject-header-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes unit-row-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes materials-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -5px, 0) scaleY(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleY(1);
  }
}

.material-item {
  display: grid;
  min-height: 76px;
  grid-template-columns: 33px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--surface-muted);
  transition: background 0.18s ease;
}

.material-folder {
  grid-column: 1 / -1;
  min-width: 0;
  background: var(--surface-muted);
}

.material-folder > summary.material-item {
  list-style: none;
  cursor: pointer;
}

.material-folder > summary.material-item::-webkit-details-marker {
  display: none;
}

.material-folder > summary.material-item:hover {
  background: var(--surface-pressed);
}

.material-folder-chevron {
  display: inline-block;
  font-size: 15px;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.material-folder[open] .material-folder-chevron {
  transform: rotate(180deg);
}

.material-folder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--border);
  background: var(--border);
}

.material-folder-list .material-item {
  min-height: 68px;
  background: var(--surface);
}

.material-folder[open] .material-folder-list {
  animation: materials-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top center;
}

a.material-item:hover,
button.material-item:hover {
  background: var(--surface-pressed);
}

button.material-item {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.material-item.unavailable {
  color: var(--tertiary);
}

.material-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
}

.material-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.material-icon svg path[d^="m9"] {
  fill: currentColor;
  stroke: none;
}

.material-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.material-copy strong {
  font-size: 13px;
  font-weight: 590;
}

.material-copy small {
  overflow: hidden;
  color: var(--secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unavailable .material-copy small {
  color: var(--tertiary);
}

.material-action {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 560;
}

.unavailable .material-action {
  color: var(--tertiary);
}

.material-action i {
  font-style: normal;
}

.skeleton {
  height: 68px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, var(--surface-muted), transparent);
  background-size: 200% 100%;
  animation: loading 1.2s infinite linear;
}

@keyframes loading {
  to { background-position: -200% 0; }
}

.empty-state {
  padding: 80px 24px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
}

.syllabus-section {
  padding-block: 88px;
  background: var(--surface);
}

.syllabus-section .overline {
  font-size: 16px;
  letter-spacing: 0.13em;
}

.syllabus-section .section-header h2 {
  font-size: clamp(42px, 5.2vw, 64px);
}

.syllabus-section .section-header > p {
  font-size: 16px;
}

.help-section {
  padding-block: 86px 96px;
}

.help-heading {
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  border-top: 1px solid var(--border);
}

.contact-card {
  border-bottom: 1px solid var(--border);
}

.profile-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.profile-trigger img {
  width: 92px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.86) contrast(1.02);
}

.contact-card:nth-child(2) .profile-trigger img {
  object-position: center 30%;
}

.profile-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.profile-copy strong {
  font-size: 18px;
  font-weight: 610;
  letter-spacing: -0.025em;
}

.profile-copy small {
  color: var(--secondary);
  font-size: 13px;
}

.profile-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-pressed);
  color: var(--secondary);
  font-size: 17px;
}

.profile-trigger:hover .profile-arrow,
.profile-trigger[aria-expanded="true"] .profile-arrow {
  background: var(--blue);
  color: #ffffff;
}

.contact-reveal {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 0 17px 110px;
  border-top: 1px solid var(--border);
}

.contact-reveal:not([hidden]) {
  display: flex;
}

.contact-reveal a {
  color: var(--blue);
  font-size: 15px;
  font-weight: 560;
}

.contact-reveal i {
  font-style: normal;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.contact-method-label,
.creator-social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.contact-method-label em {
  color: var(--tertiary);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-method-value {
  color: var(--blue);
}

.social-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--surface-pressed);
  color: var(--text);
}

.social-icon.whatsapp,
.whatsapp-group-logo {
  overflow: hidden;
  background: transparent;
}

.social-icon svg,
.whatsapp-group-logo svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon.whatsapp img,
.whatsapp-group-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon.whatsapp {
  border-radius: 50%;
}

.creator-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.creator-social-link {
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text) !important;
  text-decoration: none;
}

.creator-social-link:hover {
  background: var(--surface-muted);
}

.creator-social-link.instagram .social-icon {
  color: #d62976;
}

.creator-social-link.linkedin .social-icon {
  background: #0a66c2;
  color: #ffffff;
}

.whatsapp-group-section {
  padding-bottom: 96px;
}

.whatsapp-group-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.whatsapp-group-logo {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
}

.whatsapp-group-card .overline {
  margin-bottom: 8px;
}

.whatsapp-group-card h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: -0.045em;
}

.whatsapp-group-card p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--secondary);
}

.whatsapp-group-status,
.whatsapp-group-action {
  min-width: 210px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--secondary);
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}

.whatsapp-group-status strong {
  color: var(--text);
  font-size: 22px;
}

.whatsapp-group-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #25d366;
  color: #081d10;
  font-size: 16px;
  font-weight: 680;
  text-decoration: none;
}

.whatsapp-group-action i {
  font-style: normal;
}

@media (max-width: 760px) {
  .whatsapp-group-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
  }

  .whatsapp-group-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }

  .whatsapp-group-status,
  .whatsapp-group-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.syllabus-list {
  border-top: 1px solid var(--border);
}

.syllabus-group {
  border-bottom: 1px solid var(--border);
}

.syllabus-group > .group-summary {
  display: grid;
  min-height: 108px;
  grid-template-columns: 48px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 16px;
  padding-inline: 6px;
  cursor: pointer;
  list-style: none;
}

.syllabus-group > .group-summary::-webkit-details-marker {
  display: none;
}

.group-index {
  color: var(--tertiary);
  font-size: 14px;
}

.group-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.group-copy strong {
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 630;
  letter-spacing: -0.04em;
}

.group-copy small,
.group-count {
  color: var(--secondary);
  font-size: 14px;
}

.group-count {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.group-chevron {
  position: relative;
  width: 18px;
  height: 18px;
}

.group-chevron::before,
.group-chevron::after {
  position: absolute;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--tertiary);
  content: "";
  transition: transform 0.2s ease;
}

.group-chevron::before {
  left: 2px;
  transform: rotate(45deg);
}

.group-chevron::after {
  right: 2px;
  transform: rotate(-45deg);
}

.syllabus-group[open] .group-chevron::before {
  transform: rotate(-45deg);
}

.syllabus-group[open] .group-chevron::after {
  transform: rotate(45deg);
}

.group-contents {
  padding: 0 0 24px 58px;
  border-top: 1px solid var(--border);
  animation: folder-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.syllabus-folder {
  border-bottom: 1px solid var(--border);
}

.syllabus-folder:last-child {
  border-bottom: 0;
}

.syllabus-folder > summary {
  display: grid;
  min-height: 92px;
  grid-template-columns: 42px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 12px;
  padding-inline: 4px;
  cursor: pointer;
  list-style: none;
}

.syllabus-folder > summary::-webkit-details-marker {
  display: none;
}

.folder-index {
  color: var(--tertiary);
  font-size: 13px;
}

.folder-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.folder-copy strong {
  font-size: 20px;
  font-weight: 610;
  letter-spacing: -0.025em;
}

.folder-copy small,
.folder-count {
  color: var(--secondary);
  font-size: 14px;
}

.folder-count {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.folder-chevron {
  position: relative;
  width: 16px;
  height: 16px;
}

.folder-chevron::before,
.folder-chevron::after {
  position: absolute;
  top: 7px;
  width: 7px;
  height: 1px;
  background: var(--tertiary);
  content: "";
  transition: transform 0.2s ease;
}

.folder-chevron::before {
  left: 2px;
  transform: rotate(45deg);
}

.folder-chevron::after {
  right: 2px;
  transform: rotate(-45deg);
}

.syllabus-folder[open] .folder-chevron::before {
  transform: rotate(-45deg);
}

.syllabus-folder[open] .folder-chevron::after {
  transform: rotate(45deg);
}

.folder-contents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
  padding: 0 4px 24px 54px;
  animation: folder-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes folder-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.syllabus-item {
  display: grid;
  min-height: 88px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--border);
}

a.syllabus-item:hover strong {
  color: var(--blue);
}

.syllabus-index {
  color: var(--tertiary);
  font-size: 13px;
}

.syllabus-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.syllabus-item strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.syllabus-item small {
  color: var(--secondary);
  font-size: 14px;
}

.syllabus-item i {
  color: var(--blue);
  font-size: 13px;
  font-style: normal;
}

.syllabus-item.unavailable {
  color: var(--tertiary);
}

.folder-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 104px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--tertiary);
}

.folder-empty strong {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 580;
}

.folder-empty span {
  font-size: 14px;
}

.study-section {
  padding-block: 110px 130px;
}

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

.study-card {
  min-height: 350px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-heading > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-heading span:first-child {
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.card-heading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.card-heading time,
.timer-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--secondary);
  font-size: 11px;
}

.task-form {
  display: flex;
  gap: 8px;
  margin: 24px 0 15px;
}

.task-form input {
  min-width: 0;
  height: 42px;
  flex: 1;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
  background: var(--surface-muted);
  font-size: 14px;
}

.task-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.task-form button,
.primary-button,
.secondary-button {
  height: 42px;
  padding: 0 17px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 570;
}

.task-form button,
.primary-button {
  border: 0;
  background: var(--blue);
  color: #ffffff;
}

.task-form button:hover,
.primary-button:hover {
  filter: brightness(1.07);
}

.task-list {
  display: flex;
  max-height: 195px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.task-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--border);
}

.task-item input {
  accent-color: var(--blue);
}

.task-item > span {
  flex: 1;
  font-size: 13px;
}

.task-item.done > span {
  color: var(--tertiary);
  text-decoration: line-through;
}

.task-item button {
  border: 0;
  background: transparent;
  color: var(--tertiary);
  cursor: pointer;
  font-size: 17px;
}

.task-empty {
  margin: 48px 0 0;
  color: var(--tertiary);
  font-size: 13px;
  text-align: center;
}

.timer-card {
  display: flex;
  flex-direction: column;
}

.timer-display {
  --progress: 0%;
  position: relative;
  display: flex;
  width: 190px;
  height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 25px auto 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 67%, transparent 68%),
    conic-gradient(var(--blue) var(--progress), var(--surface-pressed) 0);
}

.timer-display strong {
  font-size: 42px;
  font-weight: 560;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.timer-display span {
  margin-top: 2px;
  color: var(--tertiary);
  font-size: 11px;
}

.timer-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
}

.secondary-button:hover {
  background: var(--surface-pressed);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer .shell {
  display: grid;
  min-height: 88px;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.site-footer span,
.site-footer a {
  color: var(--secondary);
  font-size: 12px;
}

.site-footer a:hover {
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .resource-browser {
    grid-template-columns: 180px 150px 205px minmax(0, 1fr);
  }

  .material-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  :root {
    --shell: min(100% - 30px, 720px);
  }

  .hero {
    padding-block: 58px 36px;
  }

  .resource-browser {
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .browser-pane {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .branch-list,
  .semester-list,
  .subject-list {
    display: flex;
    max-height: 220px;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 3px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    touch-action: pan-y;
  }

  .branch-item {
    min-height: 50px;
  }

  .semester-list {
    max-height: 135px;
  }

  .semester-item {
    min-height: 58px;
  }

  .subject-item {
    min-height: 58px;
  }

  .branch-pane,
  .semester-pane,
  .subject-pane {
    padding: 14px 12px;
  }

  .pane-context {
    min-height: 0;
    padding-bottom: 10px;
  }

  .subject-list {
    max-height: 235px;
  }

  .content-pane {
    padding: 18px 20px 24px;
  }

  .folder-contents {
    grid-template-columns: 1fr;
    padding-left: 40px;
  }

  .group-contents {
    padding-left: 44px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    padding: 22px 18px 30px;
  }

  .hero {
    padding-block: 48px 26px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .hero-copy {
    max-width: 420px;
    font-size: 17px;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-header > p {
    max-width: 520px;
    text-align: left;
  }

  .library-section {
    padding-block: 30px 64px;
  }

  .content-pane {
    padding: 16px 13px 20px;
  }

  .browser-path span:nth-of-type(2),
  .browser-path i:first-of-type {
    display: none;
  }

  .subject-header {
    grid-template-columns: 43px minmax(0, 1fr);
    padding-inline: 3px;
  }

  .subject-code {
    width: 43px;
    height: 43px;
  }

  .subject-header h3 {
    font-size: 20px;
  }

  .subject-actions {
    grid-column: 2;
    align-items: flex-start;
    margin: -5px 0 0;
  }

  .unit-row > summary {
    grid-template-columns: 30px minmax(0, 1fr) 20px;
  }

  .unit-count {
    display: none;
  }

  .unit-title small {
    max-width: 220px;
  }

  .material-list {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .material-folder-list {
    grid-template-columns: 1fr;
  }

  .syllabus-section {
    padding-block: 66px;
  }

  .syllabus-section .overline {
    font-size: 15px;
  }

  .syllabus-section .section-header h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .syllabus-group > .group-summary {
    min-height: 96px;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 10px;
    padding-inline: 2px;
  }

  .group-count {
    display: none;
  }

  .group-copy strong {
    font-size: 25px;
  }

  .group-copy small {
    font-size: 13px;
  }

  .group-contents {
    padding: 0 0 18px 22px;
  }

  .syllabus-folder > summary {
    min-height: 88px;
    grid-template-columns: 32px minmax(0, 1fr) auto 20px;
    gap: 9px;
  }

  .folder-copy strong {
    font-size: 19px;
  }

  .folder-count {
    font-size: 12px;
  }

  .folder-contents {
    padding: 0 0 18px 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .help-section {
    padding-block: 66px 72px;
  }

  .site-footer .shell {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 24px;
    text-align: center;
  }
}

@media (max-width: 430px) {
  :root {
    --shell: calc(100% - 22px);
  }

  .hero h1 {
    font-size: 46px;
  }

  .resource-browser {
    border-radius: 14px;
  }

  .material-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding-inline: 11px;
  }

  .profile-trigger {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 13px;
  }

  .profile-trigger img {
    width: 76px;
    height: 88px;
    border-radius: 12px;
  }

  .profile-copy strong {
    font-size: 16px;
  }

  .contact-reveal {
    padding-left: 89px;
  }

  .drawer-hint {
    display: none;
  }
}

/* Practice Hub — full-screen, multi-step (semester -> subject -> unit -> quiz) */
body.no-scroll {
  overflow: hidden;
}

.drawer-nav-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--secondary);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.drawer-nav-button:hover {
  color: var(--blue);
}

.practice-hub,
.calc-hub,
.placement-hub,
.scholarship-hub {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.practice-hub.open,
.calc-hub.open,
.placement-hub.open,
.scholarship-hub.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.practice-hub-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px min(6vw, 40px) 16px;
  border-bottom: 1px solid var(--border);
}

.practice-hub-title {
  flex: 1;
  min-width: 0;
}

.practice-hub-title h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.practice-back,
.practice-close {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.practice-back:hover,
.practice-close:hover {
  background: var(--surface-pressed);
}

.practice-hub-body {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 22px min(6vw, 40px) 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.practice-disclaimer {
  margin: 0;
  padding: 0 min(6vw, 40px) 18px;
  color: var(--tertiary);
  font-size: 11.5px;
  text-align: center;
}

.practice-option {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.15s ease;
}

.practice-option:hover {
  background: var(--surface-pressed);
}

.practice-option strong {
  font-size: 15px;
  font-weight: 600;
}

.practice-option-sub {
  color: var(--secondary);
  font-size: 12.5px;
  text-align: right;
}

.practice-option > span:not(.practice-option-sub) {
  color: var(--tertiary);
}

.practice-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.practice-loading .skeleton {
  height: 64px;
  border-radius: 12px;
}

.practice-error p {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--secondary);
  font-size: 13.5px;
}

.practice-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: var(--surface-muted);
}

.practice-progress {
  margin: 0 0 10px;
  color: var(--tertiary);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.practice-question {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
}

.practice-toggle {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
}

.practice-answer {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
}

.practice-answer.show {
  display: block;
}

.practice-quiz-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.practice-quiz-actions .primary-button {
  min-width: 200px;
}

@media (max-width: 640px) {
  .practice-hub-header {
    padding: 16px 18px 14px;
  }

  .practice-hub-body {
    padding: 18px 18px 14px;
  }

  .practice-disclaimer {
    padding: 0 18px 16px;
  }

  .practice-quiz-actions {
    justify-content: stretch;
  }

  .practice-quiz-actions .primary-button {
    width: 100%;
  }
}

/* Placements & Notices */
.placement-tabs {
  display: flex;
  gap: 28px;
  padding: 0 min(6vw, 40px);
  border-bottom: 1px solid var(--border);
}

.placement-tab {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 570;
}

.placement-tab.active {
  border-bottom-color: var(--blue);
  color: var(--text);
}

.notice-tab-count {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.placement-hub-body {
  flex: 1;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 42px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.placement-loading-block,
.placement-loading-line {
  border-radius: 20px;
  background: linear-gradient(90deg, var(--surface-muted), var(--surface-pressed), var(--surface-muted));
  background-size: 200% 100%;
  animation: loading 1.2s infinite linear;
}

.placement-loading-block {
  height: 250px;
}

.placement-loading-line {
  grid-column: 1 / -1;
  height: 72px;
  border-radius: 12px;
}

.placement-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.placement-kicker,
.placement-section-heading p {
  margin: 0 0 9px;
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.placement-intro h3 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.placement-intro div > p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.55;
}

.placement-source-link {
  padding-bottom: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 570;
  white-space: nowrap;
}

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

.placement-year-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-muted);
}

.placement-year-card:first-child {
  border-color: rgba(255, 255, 255, 0.12);
  background: #161617;
  color: #f5f5f7;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.placement-year-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.placement-year-heading p {
  margin: 0 0 5px;
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.placement-year-card:first-child .placement-year-heading p {
  color: #a1a1a6;
}

.placement-year-heading h4 {
  margin: 0;
  font-size: 28px;
  font-weight: 630;
  letter-spacing: -0.035em;
}

.placement-year-heading a {
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 580;
  white-space: nowrap;
}

.placement-year-card:first-child .placement-year-heading a {
  color: #64b5ff;
}

.placement-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  margin-top: 50px;
}

.placement-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.placement-metric strong {
  overflow: hidden;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 630;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.placement-metric span {
  color: var(--secondary);
  font-size: 11.5px;
}

.placement-year-card:first-child .placement-metric span {
  color: #a1a1a6;
}

.placement-section {
  margin-top: 64px;
}

.placement-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.placement-section-heading h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.placement-section-heading > span {
  color: var(--tertiary);
  font-size: 12px;
}

.placement-history {
  border-top: 1px solid var(--border);
}

.placement-history-row {
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  transition: color 150ms ease, padding 150ms ease;
}

a.placement-history-row:hover {
  padding-inline: 8px;
  color: var(--blue);
}

.placement-history-row > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.placement-history-row strong {
  font-size: 17px;
  font-weight: 610;
}

.placement-history-row span {
  color: var(--secondary);
  font-size: 12px;
}

.placement-history-values {
  display: flex;
  align-items: center;
  gap: 26px;
}

.placement-history-values span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.placement-history-values b {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.placement-history-values i,
.placement-report i {
  color: var(--tertiary);
  font-style: normal;
}

.placement-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.placement-report {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid var(--border);
}

.placement-report:nth-child(odd) {
  margin-right: 24px;
}

.placement-report:hover strong,
.notice-item:hover strong {
  color: var(--blue);
}

.placement-report > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.placement-report strong {
  font-size: 13.5px;
  font-weight: 590;
  transition: color 150ms ease;
}

.placement-report small {
  color: var(--secondary);
  font-size: 11.5px;
}

.placement-footnote {
  margin: 28px 0 0;
  color: var(--tertiary);
  font-size: 11.5px;
  line-height: 1.55;
}

.notice-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-muted);
}

.notice-status-copy,
.notice-status-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-status-copy > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notice-status-copy strong {
  font-size: 13.5px;
  font-weight: 600;
}

.notice-status-copy small {
  color: var(--secondary);
  font-size: 11.5px;
}

.notice-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tertiary);
  box-shadow: 0 0 0 5px var(--surface-pressed);
}

.notice-live-dot.live {
  background: #30d158;
  box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.13);
}

.notice-status-actions button,
.notice-status-actions a {
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  background: var(--surface-pressed);
  color: var(--secondary);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 570;
}

.notice-status-actions a {
  color: var(--blue);
}

.notice-list {
  border-top: 1px solid var(--border);
}

.notice-item {
  display: grid;
  min-height: 88px;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.notice-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.notice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.notice-copy strong {
  font-size: 14.5px;
  font-weight: 590;
  line-height: 1.4;
  transition: color 150ms ease;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tertiary);
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notice-meta b {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--blue);
  color: #ffffff;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.notice-arrow {
  color: var(--tertiary);
  font-size: 15px;
  text-align: right;
}

.placement-error {
  padding: 56px 0;
  text-align: center;
}

.placement-error p {
  margin: 0 0 16px;
  color: var(--secondary);
  font-size: 14px;
}

@media (max-width: 720px) {
  .placement-tabs {
    gap: 22px;
    padding-inline: 18px;
  }

  .placement-hub-body {
    width: calc(100% - 36px);
    padding-top: 26px;
  }

  .placement-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 26px;
  }

  .placement-intro h3 {
    font-size: 34px;
  }

  .placement-source-link {
    justify-self: start;
  }

  .placement-feature-grid,
  .placement-loading,
  .placement-report-grid {
    grid-template-columns: 1fr;
  }

  .placement-loading-line {
    grid-column: auto;
  }

  .placement-year-card {
    min-height: 238px;
    padding: 22px;
    border-radius: 20px;
  }

  .placement-metrics {
    margin-top: 38px;
  }

  .placement-section {
    margin-top: 48px;
  }

  .placement-history-row {
    min-height: 112px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 18px;
  }

  .placement-history-values {
    justify-content: space-between;
    gap: 14px;
  }

  .placement-history-values span {
    text-align: left;
  }

  .placement-history-values i {
    margin-left: auto;
  }

  .placement-report:nth-child(odd) {
    margin-right: 0;
  }

  .notice-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-status-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .notice-item {
    min-height: 100px;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 12px;
  }

  .notice-number {
    width: 34px;
    height: 34px;
  }
}

/* Scholarships — daily official opportunities */
.scholarship-hub-body {
  flex: 1;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 42px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.scholarship-feature {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: radial-gradient(circle at 88% 12%, rgba(41, 151, 255, 0.34), transparent 38%), #111113;
  color: #f5f5f7;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.scholarship-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.24);
}

.scholarship-feature p {
  margin: 0 0 16px;
  color: #64b5ff;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.12em;
}

.scholarship-feature h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.scholarship-feature div > span {
  display: block;
  max-width: 680px;
  margin-top: 20px;
  color: #a1a1a6;
  font-size: 14px;
  line-height: 1.6;
}

.scholarship-feature-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.scholarship-feature-foot small {
  color: #a1a1a6;
  font-size: 12px;
}

.scholarship-feature-foot b {
  color: #64b5ff;
  font-size: 13px;
  font-weight: 620;
}

.scholarship-section {
  margin-top: 58px;
}

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

.scholarship-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-muted);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.scholarship-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.scholarship-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.scholarship-card-meta i {
  font-style: normal;
}

.scholarship-card-meta b {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--blue);
  color: #ffffff;
  font-size: 8px;
}

.scholarship-card h4 {
  margin: 22px 0 10px;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.scholarship-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 12.5px;
  line-height: 1.55;
}

.scholarship-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--tertiary);
  font-size: 11px;
}

.scholarship-card-foot i {
  color: var(--blue);
  font-size: 16px;
  font-style: normal;
}

@media (max-width: 720px) {
  .scholarship-hub-body {
    width: calc(100% - 36px);
    padding-top: 22px;
  }

  .scholarship-feature {
    min-height: 330px;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .scholarship-feature h3 {
    font-size: 38px;
  }

  .scholarship-feature-foot {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .scholarship-card {
    min-height: 226px;
  }
}

/* SGPA / CGPA Calculator */
.calc-tabs {
  display: flex;
  gap: 4px;
  padding: 14px min(6vw, 40px) 0;
  border-bottom: 1px solid var(--border);
}

.calc-tab {
  border: 0;
  background: none;
  padding: 10px 4px 12px;
  margin-right: 22px;
  color: var(--secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.calc-tab.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

.calc-section-label {
  margin: 4px 0 2px;
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 92px 28px;
  gap: 8px;
  align-items: center;
}

.calc-input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}

.calc-input:focus {
  outline: 2px solid var(--blue-soft);
  border-color: var(--blue);
}

select.calc-input {
  padding-right: 6px;
}

.calc-remove {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--secondary);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.calc-remove:hover {
  background: var(--surface-pressed);
  color: var(--text);
}

.calc-add-button {
  align-self: flex-start;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: none;
  color: var(--secondary);
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.calc-add-button:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.calc-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}

.calc-result-card > div:first-child {
  color: var(--secondary);
  font-size: 12.5px;
}

.calc-result-value {
  font-size: 30px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.calc-result-sub {
  color: var(--tertiary);
  font-size: 11.5px;
}

.calc-save-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.calc-save-row .calc-input {
  flex: 1;
}

.calc-link-button {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--blue);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.calc-scale-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
}

.calc-scale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 28px;
  gap: 8px;
  align-items: center;
}

.calc-semester-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
}

.calc-semester-item strong {
  display: block;
  font-size: 14.5px;
}

.calc-semester-item small {
  color: var(--secondary);
  font-size: 12px;
}

.calc-semester-sgpa {
  color: var(--blue);
  font-size: 16px;
  font-weight: 640;
  margin-right: 6px;
}

@media (max-width: 640px) {
  .calc-row {
    grid-template-columns: minmax(0, 1fr) 52px 76px 28px;
  }

  .calc-tabs {
    padding: 12px 18px 0;
  }
}
