/* Ndejje University timetable theme. Light only — FET pages have almost no CSS of their own. */
html { color-scheme: light only; }
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4f5fa;
  color: #1c2b24;
  font-family: var(--font-sans), "Segoe UI", "Liberation Sans", Calibri, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: #273272; }
a:hover { color: #1e2a62; }
.ndu-public-hide { display: none !important; }

.ndu-bar {
  background: #fff;
  color: #273272;
  padding: 0.85rem 1.75rem 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 0;
}
.ndu-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.ndu-logo {
  display: block;
  height: auto;
  max-height: 5.5rem;
  width: auto;
  max-width: min(32rem, 75vw);
  object-fit: contain;
}
.ndu-logo-link {
  display: block;
  line-height: 0;
}
.ndu-product {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: #273272;
  border-left: 1px solid #d0d4e4;
  padding-left: 1rem;
}
.ndu-product span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-crest {
  height: 3.5rem;
  width: auto;
}
.ndu-kicker-light {
  margin: 0;
  color: #8A171A;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.ndu-phone-only { display: none !important; }
.ndu-bar a.ndu-home,
.ndu-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff;
  background: #8A171A;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  white-space: nowrap;
  width: max-content;
  justify-self: end;
  align-self: center;
}
.ndu-signin:hover { background: #a51f24; color: #fff; }
.ndu-account {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
}
button.ndu-signin {
  border: 0;
  cursor: pointer;
  font: inherit;
}
a.ndu-signin-ghost,
button.ndu-signin-ghost {
  background: transparent;
  color: #273272;
  border: 1.5px solid #273272;
}
a.ndu-signin-ghost:hover,
button.ndu-signin-ghost:hover {
  background: #273272;
  color: #fff;
}

.ndu-subbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  background: #273272;
  color: #c9cde0;
  padding: 0.55rem 1.75rem 0.6rem;
  font-size: 0.82rem;
  border-bottom: 4px solid #8A171A;
}
.ndu-subbar span + span::before {
  content: "";
}
.ndu-subbar a,
.ndu-subbar button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.ndu-subbar a:hover,
.ndu-subbar button:hover {
  text-decoration: underline;
}
.ndu-sample-logins {
  background: #fff8ea;
  border-bottom: 1px solid #d9d3c2;
}
.ndu-sample-logins-inner {
  max-width: none;
  margin: 0;
  padding: 0.7rem 1.25rem 0.85rem;
}
.ndu-sample-logins-inner > p {
  margin: 0 0 0.45rem;
  color: #8A171A;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.ndu-sample-logins ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.45rem 0.75rem;
}
.ndu-sample-logins a {
  display: grid;
  gap: 0.05rem;
  text-decoration: none;
  color: #273272;
  background: #fff;
  border: 1px solid #d9d3c2;
  border-left: 3px solid #8A171A;
  padding: 0.45rem 0.65rem 0.5rem;
}
.ndu-sample-logins a:hover { border-color: #273272; }
.ndu-sample-logins strong {
  font-size: 0.82rem;
}
.ndu-sample-logins span,
.ndu-sample-logins code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #4a5070;
}
.ndu-sample-logins code {
  color: #8A171A;
  font-weight: 700;
}
.ndu-bar h1 {
  margin: 0.1rem 0 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.ndu-bar .sub {
  margin: 0.2rem 0 0;
  color: #c9cde0;
  font-size: 0.95rem;
}
.ndu-bar .meta {
  text-align: right;
  font-size: 0.88rem;
  color: #b8bdd4;
}

.ndu-wrap {
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.25rem 2.5rem;
}
.ndu-wrap-home {
  padding-bottom: 0;
}

.ndu-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}
.ndu-facts div {
  background: #fff;
  border: 1px solid #d0d4e4;
  border-top: 3px solid #8A171A;
  padding: 0.7rem 0.85rem 0.8rem;
}
.ndu-facts dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A171A;
  font-weight: 700;
}
.ndu-facts dd {
  margin: 0.25rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.ndu-note {
  background: #f8eaea;
  border: 1px solid #e4c3c4;
  border-left: 4px solid #8A171A;
  padding: 0.9rem 1rem;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: #3a2450;
}

.ndu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}
.ndu-actions a, .ndu-actions button {
  display: inline-block;
  background: #fff;
  color: #273272;
  border: 1px solid #c5cad8;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}
.ndu-actions a.primary, .ndu-actions button.primary {
  background: #273272;
  color: #fff;
  border-color: #273272;
}
.ndu-actions a:hover, .ndu-actions button:hover { border-color: #8A171A; }

.ndu-card {
  background: #fff;
  border: 1px solid #d0d4e4;
  overflow: auto;
}
.ndu-card h2 {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #273272;
  color: #f7f8fc;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.12rem;
  font-weight: 650;
}
.ndu-card h2 span {
  font-weight: 500;
  color: #c9cde0;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.ndu-ok {
  background: #e8eaf6;
  border: 1px solid #b7bdd4;
  color: #1e2a62;
  padding: 0.65rem 0.9rem;
  margin: 0 0 1rem;
}

/* FET dumps institution/comments as unclassed tables. The Ndejje header already shows that. */
.ndu-wrap > table:not([border]):not([class]) {
  display: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  text-align: center;
  page-break-inside: avoid;
}
table[border], table.odd_table, table.even_table {
  margin: 0 0 1.25rem;
  border: 1px solid #d0d4e4 !important;
}
caption {
  text-align: left;
  padding: 0.85rem 1rem 0.7rem;
  font-size: 1.05rem;
  background: #273272;
  color: #f7f8fc;
}
caption .institution { display: block; font-size: 0.78rem; color: #c9cde0; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
caption .name { font-weight: 650; }

thead th, thead td {
  background: #1e2a62;
  color: #f7f8fc;
  font-weight: 600;
  padding: 0.65rem 0.7rem;
  border: 1px solid #3d4a8a;
}
tbody th {
  background: #eef0f7;
  color: #273272;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d5d8e6;
  font-weight: 650;
  white-space: nowrap;
}
td {
  border: 1px solid #d5d8e6;
  padding: 0.55rem 0.5rem;
  vertical-align: middle;
  background: #fff;
}
tbody tr:nth-child(even) td { background: #f7f8fc; }
tr.foot td {
  background: #f4f5fa !important;
  color: #5c574c;
  font-size: 0.85rem;
  text-align: right;
  padding: 0.7rem 0.9rem;
}

td a {
  display: inline-block;
  min-width: 4.2rem;
  padding: 0.28rem 0.65rem;
  background: #273272;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}
td a:hover { background: #1e2a62; }
td:has(> a) { background: #f4f5fb !important; }

.ndu-card table caption { display: none; }
.ndu-card thead th, .ndu-card thead td { background: #1e2a62; }

table.detailed {
  margin: 0 auto;
  border: 0;
  width: auto;
}
td.detailed {
  border: 0;
  border-bottom: 1px dashed #c5cad8;
  background: transparent !important;
  padding: 0.15rem 0.3rem;
  font-size: 0.9rem;
}

th.daySeparator, tr.daySeparator, td.daySeparator { background: #c9cde0; }

p.back { margin: 1.5rem 0 0; }
p.back a { font-weight: 600; }

.ndu-toc {
  background: #fbfaf6;
  border: 1px solid #e2e4ee;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.ndu-toc p {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8A171A;
}
.ndu-toc ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ndu-foot {
  max-width: none;
  margin: 0;
  padding: 0 1.25rem 2rem;
  color: #6b6356;
  font-size: 0.85rem;
}

.ndu-slot {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
  padding: 0.15rem 0.1rem;
}
.ndu-slot .code {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: #273272;
  font-weight: 700;
}
.ndu-slot .title { font-weight: 650; color: #1c2b24; }
.ndu-slot .lect { color: #1c2b24; }
.ndu-slot .venue { color: #8A171A; font-style: italic; }
.ndu-slot-move {
  cursor: grab;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
}
.ndu-slot-move:active { cursor: grabbing; }
.ndu-drag-handle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #8A171A;
  line-height: 1;
}
.ndu-drag-hint {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #273272;
}
.ndu-clash {
  position: sticky;
  top: 0.5rem;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1.5px solid #8A171A;
  background: #fff4f4;
  color: #6b1214;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 8px 24px rgba(138, 23, 26, 0.12);
}
.ndu-clash strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ndu-clash p { margin: 0.25rem 0 0; font-size: 0.92rem; line-height: 1.35; }
.ndu-clash-close {
  flex: none;
  border: 1px solid #8A171A;
  background: #fff;
  color: #8A171A;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
}
.ndu-drop-ok { outline: 2px dashed #273272; background: #eef0f8; }
.ndu-drop-clash { outline: 2px solid #8A171A; background: #fff4f4; }
.ndu-slot + .ndu-slot {
  border-top: 1px dashed #d0d4e4;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}
tr.community-hour th,
tr.community-hour td,
td.community-hour,
th.community-hour {
  background: #eef0f8 !important;
  color: #8A171A;
  text-align: center;
  font-style: italic;
  vertical-align: middle;
}
.ndu-community .title { color: #8A171A; }
.ndu-community .lect { font-size: 0.78rem; }

table.faculty-print td {
  vertical-align: top;
  min-width: 9.5rem;
}
table.faculty-print caption { display: none; }

caption .term {
  display: block;
  font-size: 0.8rem;
  color: #c9cde0;
  font-weight: 500;
  margin-top: 0.15rem;
}

.ndu-finder {
  background: #fff;
  border: 1px solid #d0d4e4;
  border-top: 4px solid #8A171A;
  box-shadow: 0 12px 32px rgba(39, 50, 114, 0.08);
  margin: 0 0 1.25rem;
}
.ndu-finder-head {
  padding: 1.2rem 1.35rem 0.95rem;
}
.ndu-finder-head h2 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.7rem;
  font-weight: 650;
  color: #273272;
}
.ndu-finder-lead {
  margin: 0;
  max-width: 36rem;
  color: #5c574c;
  font-size: 0.95rem;
}
.ndu-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: #f7f8fc;
  border-top: 1px solid #e2e4ee;
  border-bottom: 1px solid #e2e4ee;
  padding: 0.45rem 1.35rem;
}
.ndu-kinds a {
  color: #273272;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  padding: 0.42rem 0.8rem;
}
.ndu-kinds a[aria-current="page"] {
  background: #273272;
  color: #f7f8fc;
}
.ndu-kinds a:hover { color: #1e2a62; }
.ndu-kinds a[aria-current="page"]:hover { color: #f7f8fc; }

.ndu-view-nav {
  background: #fff;
  border-top: 0;
  padding-top: 0.2rem;
}
.ndu-kinds + .ndu-view-nav {
  border-top: 1px dashed #dfe3ef;
}
.ndu-switch-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #e6e9f4;
  color: #273272;
  font-size: 0.62rem;
  font-weight: 800;
}
.ndu-switch a[aria-current="page"] .ndu-switch-key,
.ndu-switch a.is-active .ndu-switch-key,
.ndu-switch button.is-active .ndu-switch-key {
  background: #8a171a;
  color: #fff;
}

.ndu-finder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem 1.1rem;
  padding: 1.15rem 1.35rem 0.35rem;
}
.ndu-find-class {
  margin: 0.15rem 1.1rem 1.1rem;
  padding: 0;
  border: 1px solid #d0d4e4;
  border-left: 4px solid #8A171A;
  background: #fff;
  box-shadow: 0 10px 28px rgba(39, 50, 114, 0.06);
}
.ndu-find-class-head {
  padding: 1rem 1.2rem 0.85rem;
  background: #f7f8fc;
  border-bottom: 1px solid #e2e4ee;
}
.ndu-find-class-head h3 {
  margin: 0.18rem 0 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.35rem;
  font-weight: 650;
  color: #273272;
}
.ndu-find-class-head p:last-child {
  margin: 0.35rem 0 0;
  max-width: 40rem;
  color: #5c574c;
  font-size: 0.92rem;
  line-height: 1.4;
}
.ndu-find-steps {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(13rem, 1.15fr) minmax(16rem, 1.5fr);
  gap: 0;
  padding: 0;
}
.ndu-find-steps label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0.9rem 1rem 1.05rem;
  background: #fff;
  border: 0;
  border-right: 1px solid #e2e4ee;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
.ndu-find-steps label:nth-child(-n+3) { border-bottom: 1px solid #e2e4ee; }
.ndu-find-steps label:nth-child(3),
.ndu-find-steps label:nth-child(5) { border-right: 0; }
.ndu-find-steps label:nth-child(4) { grid-column: 1 / 3; }
.ndu-find-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.35rem;
}
.ndu-find-num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: #eef0f8;
  color: #273272;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.ndu-find-steps label.is-set {
  background: #fbfcfe;
}
.ndu-find-steps label.is-set .ndu-find-num {
  background: #273272;
  color: #fff;
}
.ndu-find-steps select {
  margin-top: 0.15rem;
  min-height: 2.55rem;
  padding: 0.5rem 0.65rem;
  border: 1.5px solid #c5cad8;
  background: #fff;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 650;
}
.ndu-find-steps label.is-set select {
  border-color: #273272;
}
.ndu-find-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid #e2e4ee;
  background: #fbfcfe;
}
.ndu-find-foot .ndu-applied {
  margin: 0;
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}
.ndu-applied-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-find-foot .ndu-applied ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ndu-find-foot .ndu-applied li {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.28rem 0.55rem;
  border: 1px solid #d0d4e4;
  border-left: 3px solid #8A171A;
  background: #fff;
  color: #273272;
  font-size: 0.82rem;
  font-weight: 650;
}
.ndu-find-foot .ndu-finder-actions {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0.4rem;
  justify-content: flex-start;
}
.ndu-find-foot .ndu-btn-primary,
.ndu-find-foot .ndu-btn-print {
  min-height: 2.15rem;
  width: auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}
.ndu-finder label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-finder select {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid #c5cad8;
  background: #fff;
  color: #273272;
  padding: 0.62rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  min-height: 2.7rem;
}
.ndu-finder select:focus {
  outline: 2px solid #8A171A;
  outline-offset: 1px;
  border-color: #8A171A;
}
.ndu-applied {
  margin: 0.35rem 1.35rem 0;
  font-size: 0.9rem;
  color: #4a4338;
}
.ndu-applied a {
  font-weight: 700;
  color: #273272;
}
.ndu-find-foot .ndu-applied a {
  margin-left: 0.15rem;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ndu-finder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  padding: 1rem 1.35rem 1.25rem;
  margin-top: 0.85rem;
  border-top: 1px solid #e2e4ee;
}
.ndu-btn-primary,
.ndu-btn-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.65rem 1.3rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border: 0;
}
.ndu-btn-primary {
  background: #273272;
  color: #fff;
}
.ndu-btn-primary:hover { background: #1e2a62; }
.ndu-btn-print {
  background: #fff;
  color: #273272;
  border: 1.5px solid #273272;
}
.ndu-btn-print:hover {
  background: #f7f8fc;
  border-color: #8A171A;
}

.ndu-switch-stack {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid #d0d4e4;
  border-radius: 0.65rem;
  background: #f7f8fc;
}
.ndu-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}
.ndu-switch-label {
  min-width: 2.7rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-switch a,
.ndu-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.55rem;
  padding: 0.12rem 0.48rem;
  border: 1px solid #c9cde0;
  border-radius: 999px;
  background: #fff;
  color: #273272;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.ndu-switch a:hover,
.ndu-switch button:hover {
  border-color: #273272;
  background: #eef0f8;
}
.ndu-switch a[aria-current="page"],
.ndu-switch a.is-active,
.ndu-switch button.is-active {
  border-color: #273272;
  background: #273272;
  color: #fff;
}
.ndu-views {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}
.ndu-finder > .ndu-views {
  padding: 0.65rem 1.35rem 0.95rem;
  border-top: 1px solid #e2e4ee;
}

.ndu-document {
  background: #fff;
  border: 1px solid #d0d4e4;
  box-shadow: 0 16px 40px rgba(39, 50, 114, 0.08);
  padding: 1.75rem 1.4rem 1.8rem;
  overflow: auto;
}
.ndu-letterhead {
  text-align: center;
  border-bottom: 3px double #273272;
  padding-bottom: 1.05rem;
  margin-bottom: 1.2rem;
}
.ndu-letterhead img,
.ndu-letterhead-logo {
  display: block;
  margin: 0 auto 0.65rem;
  width: min(22rem, 88%);
  height: auto;
}
.ndu-letterhead-uni {
  margin: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #273272;
}
.ndu-letterhead-motto {
  margin: 0.25rem 0 0;
  font-family: var(--font-serif), Georgia, serif;
  font-style: italic;
  color: #8A171A;
  font-size: 0.92rem;
}
.ndu-letterhead-faculty,
.ndu-letterhead h2 {
  margin: 0.7rem 0 0.2rem;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: #273272;
}
.ndu-letterhead-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.05rem;
  font-weight: 650;
  color: #273272;
}
.ndu-letterhead-sheet,
.ndu-letterhead-title.ndu-letterhead-sheet {
  font-size: 1.28rem;
  font-weight: 650;
  color: #8A171A;
}
.ndu-sheet-block { margin: 0 0 2.1rem; }
.ndu-sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  background: #273272;
  border: 1px solid #273272;
  border-bottom: 0;
  border-radius: 0.45rem 0.45rem 0 0;
}
.ndu-sheet-toolbar-name {
  margin: 0;
  min-width: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  color: #f4f5fa;
}
.ndu-sheet-print {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}
.ndu-sheet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.28rem 0.8rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
}
.ndu-sheet-btn-print {
  background: #fff;
  border-color: #fff;
  color: #273272;
}
.ndu-sheet-btn-print:hover { background: #eef0f8; }
.ndu-sheet-btn-pdf {
  background: #8A171A;
  border-color: #8A171A;
  color: #fff;
}
.ndu-sheet-btn-pdf:hover {
  background: #6f1214;
  border-color: #6f1214;
}
.ndu-sheet-btn-short { display: none; }
.ndu-sheet-block caption { display: none; }
.ndu-print-section { display: none; }
.ndu-sheet-block > table,
.ndu-sheet-block > div > table { margin-top: 0; }
.ndu-letterhead-meta {
  margin: 0;
  color: #5c574c;
  font-size: 0.92rem;
}
.ndu-view-label {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.05rem;
  color: #273272;
}
.ndu-view-label span {
  display: block;
  font-family: var(--font-sans), "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: #6b6356;
  font-weight: 500;
}

@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { padding: 10mm; }
  @page {
    @top-left { content: none; }
    @top-center { content: none; }
    @top-right { content: none; }
    @bottom-left { content: none; }
    @bottom-center { content: none; }
    @bottom-right { content: none; }
  }
  .ndu-bar, .ndu-subbar, .ndu-sample-logins, .ndu-finder, .ndu-wrap-home, .ndu-views, .ndu-public-views, .ndu-public-toolbar, .ndu-keys, .ndu-switch-stack, .ndu-actions, .ndu-foot, p.back, .ndu-agenda,
  .ndu-btn-print, .ndu-btn-primary, .ndu-toc, .ndu-view-label, .ndu-clash, .ndu-drag-hint, .ndu-drag-handle, .ndu-sheet-toolbar, .ndu-exam-sign { display: none !important; }
  body.ndu-printing-section .ndu-print-skip,
  body.ndu-printing-section .ndu-toc,
  body.ndu-printing-section .ndu-finder,
  body.ndu-printing-section .ndu-switch-stack,
  body.ndu-printing-section .back { display: none !important; }
  body.ndu-printing-section table caption { display: none !important; }
  body { background: #fff !important; color: #000; }
  .ndu-wrap { max-width: none; padding: 0; }
  .ndu-document {
    border: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }
  .ndu-letterhead,
  header.ndu-letterhead {
    display: block !important;
    text-align: center;
    margin: 0 0 0.45rem;
    border-bottom: 3px solid #273272;
    padding-bottom: 0.4rem;
  }
  .ndu-letterhead img, .ndu-letterhead-logo { width: min(11.5rem, 36%); max-width: 11.5rem; height: auto; }
  .ndu-letterhead h2 { font-size: 12pt; }
  .ndu-letterhead-title, .ndu-letterhead-sheet { font-size: 10.5pt; }
  .ndu-letterhead-meta { display: none !important; }
  body.ndu-print-all .ndu-print-section { display: table-row !important; }
  .ndu-print-credit {
    display: block !important;
    margin: 1.1rem 0 0;
    text-align: center;
    font-family: var(--font-serif), Georgia, serif;
    font-size: 8.5pt;
    font-style: italic;
    color: #273272;
  }
  body.ndu-print-all thead tr.ndu-print-section th {
    background: #fff !important;
    color: #8A171A !important;
    font-family: var(--font-serif), Georgia, serif !important;
    font-size: 12pt !important;
    font-weight: 650 !important;
    text-align: center !important;
    padding: 7px 8px !important;
    border: 2px solid #000 !important;
  }
  body.ndu-print-all .ndu-sheet-block { break-after: page; page-break-after: always; }
  body.ndu-print-all .ndu-sheet-block:last-child { break-after: auto; page-break-after: auto; }
  caption { background: #fff !important; color: #273272 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  caption .institution, caption .term { color: #333 !important; }
  thead th, thead td { background: #273272 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.faculty-print:not(.ndu-exam-axis):not(.ndu-exam-official-table),
  table.odd_table, table.even_table, table[border]:not(.ndu-exam-axis):not(.ndu-exam-official-table),
  .ndu-document table:not(.ndu-exam-official-table):not(.ndu-exam-axis),
  .ndu-sheet-block table:not(.ndu-exam-official-table):not(.ndu-exam-axis) {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed;
    font-size: 8pt;
    page-break-inside: avoid;
    border: 2.25px solid #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  table.faculty-print:not(.ndu-exam-axis):not(.ndu-exam-official-table) th,
  table.faculty-print:not(.ndu-exam-axis):not(.ndu-exam-official-table) td,
  table.odd_table th, table.odd_table td,
  table.even_table th, table.even_table td,
  table[border]:not(.ndu-exam-axis):not(.ndu-exam-official-table) th,
  table[border]:not(.ndu-exam-axis):not(.ndu-exam-official-table) td,
  .ndu-document table:not(.ndu-exam-official-table):not(.ndu-exam-axis) th,
  .ndu-document table:not(.ndu-exam-official-table):not(.ndu-exam-axis) td,
  .ndu-sheet-block:not(:has(.ndu-exam-official-table)):not(:has(.ndu-exam-axis)) th,
  .ndu-sheet-block:not(:has(.ndu-exam-official-table)):not(:has(.ndu-exam-axis)) td {
    border: 2px solid #000 !important;
    padding: 3px 4px !important;
    min-width: 0 !important;
    vertical-align: top;
    overflow: visible !important;
    white-space: normal !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ndu-slot, .ndu-slot-print {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 7.5pt;
    line-height: 1.2;
    min-width: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
  }
  .ndu-print-only.ndu-slot-print, .ndu-slot-print { display: flex !important; }
  .ndu-slot > label, .ndu-slot-move, .ndu-drag-handle, .ndu-drag-hint, .ndu-slot .when { display: none !important; }
  .ndu-slot .code, .ndu-slot .title, .ndu-slot .year, .ndu-slot .lect, .ndu-slot .venue,
  .ndu-slot-print .code, .ndu-slot-print .title, .ndu-slot-print .year, .ndu-slot-print .lect, .ndu-slot-print .venue {
    display: block !important;
    visibility: visible !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .ndu-slot .venue, .ndu-slot-print .venue { font-style: italic; color: #8A171A; }
  .ndu-hours { display: none !important; }
}

.ndu-find-toggle { display: none; }
.ndu-agenda {
  margin: 0 0 1rem;
  border: 1px solid #d0d4e4;
  background: #fff;
  overflow: hidden;
}
.ndu-agenda-days {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #e2e4ee;
  background: #273272;
}
.ndu-agenda-days button {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-width: 48px;
  min-height: 52px;
  padding: 0.3rem 0.45rem;
  border: 0;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: #d7dbee;
  scroll-snap-align: start;
}
.ndu-agenda-dow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ndu-agenda-num {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1;
}
.ndu-agenda-days button[data-busy="0"] { opacity: 0.55; }
.ndu-agenda-days button.is-active {
  background: #fff;
  color: #273272;
}
.ndu-agenda-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem 0.25rem;
}
.ndu-agenda-head h3 {
  margin: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.12rem;
  font-weight: 650;
  color: #273272;
}
.ndu-agenda-head p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #8A171A;
}
.ndu-agenda-stream { padding: 0.15rem 0.75rem 0.9rem; }
.ndu-agenda-band { margin: 0 0 0.7rem; }
.ndu-agenda-band h4 {
  margin: 0 0 0.4rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-agenda-band ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ndu-agenda-empty,
.ndu-agenda-lunch {
  margin: 0;
  padding: 0.4rem 0.15rem;
  color: #6b6356;
  font-size: 12px;
}
.ndu-agenda-lunch {
  margin: 0.35rem 0 0.55rem;
  padding: 0.35rem 0;
  border-top: 1px dashed #d0d4e4;
  border-bottom: 1px dashed #d0d4e4;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-micro {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid #e2e4ee;
  background: #fff;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
}
.ndu-micro.is-openable { cursor: pointer; }
.ndu-micro-bar {
  flex: 0 0 5px;
  background: #273272;
}
.ndu-micro-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  padding: 0.5rem 0.65rem 0.55rem;
}
.ndu-micro-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.ndu-micro-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #273272;
}
.ndu-micro-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 750;
  color: #1b2248;
  line-height: 1.3;
}
.ndu-micro-lect {
  font-size: 12px;
  color: #5c574c;
}
.ndu-micro-dots {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.2rem;
}
.ndu-micro-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #273272;
}
.ndu-micro-room {
  flex: 0 0 auto;
  max-width: 7.5rem;
  padding: 0.18rem 0.4rem;
  border: 1px solid #ead0d1;
  background: #fbf4f4;
  color: #8A171A;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
}
.ndu-agenda-band.is-community .ndu-micro { background: #fbf6e8; }

@media (max-width: 767px) {
  .ndu-bar {
    padding: 0.45rem 0.8rem;
    gap: 0.5rem;
  }
  .ndu-logo { max-height: 2.65rem; max-width: 11.5rem; }
  .ndu-signin {
    min-height: 44px;
    padding: 0 0.8rem;
    font-size: 0.7rem;
  }
  .ndu-subbar,
  .ndu-finder-head,
  .ndu-letterhead,
  .ndu-exam-official-head,
  .ndu-exam-legend,
  .ndu-exam-sign,
  .ndu-toc,
  .ndu-view-label,
  .ndu-switch.ndu-views,
  .ndu-phone-hide,
  .ndu-find-foot .ndu-btn-print { display: none !important; }
  .ndu-exam-rules .ndu-subbar {
    display: flex !important;
    padding: 0.45rem 0.8rem 0.5rem;
    font-size: 0.75rem;
  }
  .ndu-sheet-toolbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    padding: 0.35rem 0.45rem 0.35rem 0.6rem;
    border-bottom: 1px solid #1d2658;
    border-radius: 0.55rem;
  }
  .ndu-sheet-toolbar-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
    line-height: 1.25;
  }
  .ndu-sheet-print {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.28rem;
  }
  .ndu-sheet-btn {
    min-height: 30px;
    padding: 0 0.55rem;
    font-size: 11px;
    gap: 0.2rem;
  }
  .ndu-sheet-btn svg {
    width: 12px;
    height: 12px;
  }
  .ndu-sheet-btn-long { display: none; }
  .ndu-sheet-btn-short { display: inline; }
  .ndu-wrap-home { margin: 0; padding: 0; }
  .ndu-finder {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }
  .ndu-kinds {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.2rem;
    padding: 0.3rem 0.65rem;
    background: #fff;
    border-color: #eef0f6;
  }
  .ndu-kinds a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.8rem;
  }
  .ndu-finder .ndu-switch-stack {
    margin: 0;
    padding: 0.4rem 0.65rem 0.55rem;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #e2e4ee;
  }
  .ndu-finder .ndu-switch {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ndu-finder .ndu-switch a {
    min-height: 40px;
    white-space: nowrap;
  }
  .ndu-find-class {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e2e4ee;
  }
  .ndu-find-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "kicker chevron" "value chevron";
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0.55rem 0.9rem;
    border: 0;
    background: #f7f8fc;
    text-align: left;
  }
  .ndu-find-toggle-kicker {
    grid-area: kicker;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8A171A;
  }
  .ndu-find-toggle strong {
    grid-area: value;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #273272;
  }
  .ndu-find-toggle-chevron {
    grid-area: chevron;
    font-size: 12px;
    font-weight: 800;
    color: #273272;
  }
  .ndu-find-body { display: none; }
  .ndu-find-body.is-open { display: block; }
  .ndu-find-class-head { display: none; }
  .ndu-find-steps select,
  .ndu-finder select,
  .ndu-find-foot .ndu-btn-primary,
  .ndu-find-foot .ndu-btn-print {
    min-height: 44px;
  }
  .ndu-public-sheet .ndu-sheet-desktop { display: none !important; }
  .ndu-wrap {
    padding: 0.7rem 0.7rem 1.1rem;
  }
  .ndu-agenda {
    border: 0;
    border-radius: 0.9rem;
    box-shadow: 0 10px 28px rgba(39, 50, 114, 0.1);
  }
  .ndu-foot { font-size: 12px; padding: 0.5rem 0.7rem 1.2rem; }
}

@media (min-width: 768px) {
  .ndu-agenda { display: none !important; }
  .ndu-sheet,
  .ndu-exam-axis {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.faculty-print .yAxis,
  table.odd_table .yAxis,
  table.even_table .yAxis,
  .ndu-exam-axis .time-head {
    position: sticky;
    left: 0;
    z-index: 1;
  }
}

@media (max-width: 900px) {
  .ndu-finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ndu-find-steps { grid-template-columns: 1fr 1fr; }
  .ndu-find-steps label:nth-child(4) { grid-column: auto; }
  .ndu-find-steps label:nth-child(3) { border-right: 1px solid #e2e4ee; }
  .ndu-find-steps label:nth-child(2n) { border-right: 0; }
  .ndu-find-steps label:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
}
@media (max-width: 720px) {
  .ndu-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .ndu-product { display: none; }
  .ndu-signin { justify-self: end; align-self: center; }
  .ndu-bar .meta { text-align: left; }
  tbody th { white-space: normal; }
  .ndu-finder-grid,
  .ndu-find-steps { grid-template-columns: 1fr; }
  .ndu-find-steps label,
  .ndu-find-steps label:nth-child(4),
  .ndu-find-steps label:nth-child(5) { grid-column: auto; border-right: 0; }
  .ndu-find-foot .ndu-btn-primary, .ndu-find-foot .ndu-btn-print { width: auto; }
  .ndu-view-nav { padding: 0.3rem 0.65rem 0.45rem; }
}

.ndu-dash-hero {
  margin: 0 0 1.2rem;
}
.ndu-dash-hero h1,
.ndu-dash-card h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.45rem;
  font-family: var(--font-serif), Georgia, serif;
  color: #273272;
}
.ndu-dash-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.8rem;
}
.ndu-dash-jump a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 40px;
  border: 1px solid #d9d3c2;
  border-radius: 0.5rem;
  background: #fff;
  color: #273272;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.ndu-dash-hero h1 { font-size: 1.85rem; }
.ndu-dash-card h2 { font-size: 1.25rem; }
.ndu-dash-lead,
.ndu-dash-meta,
.ndu-dash-empty {
  margin: 0;
  color: #5c574c;
  font-size: 0.95rem;
}
.ndu-dash-meta { margin-top: 0.35rem; font-size: 0.86rem; }
.ndu-dash-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.2rem;
}
@media (min-width: 900px) {
  .ndu-dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
.ndu-dash-card {
  background: #fff;
  border: 1px solid #d9d3c2;
  border-radius: 0.7rem;
  padding: 1rem 1.1rem 1.15rem;
}
.ndu-dash-papers { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
.ndu-dash-paper {
  border-left: 4px solid #8A171A;
  background: #f8f6ef;
  padding: 0.7rem 0.85rem;
}
.ndu-dash-paper h3 {
  margin: 0.2rem 0;
  font-size: 1rem;
  color: #1c2b24;
}
.ndu-dash-when {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-dash-paper p { margin: 0; font-size: 0.88rem; color: #5c574c; }
.ndu-dash-empty { margin-top: 0.7rem; }
.ndu-dash-rules {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.ndu-dash-rules li { display: grid; gap: 0.15rem; }
.ndu-dash-rules strong { color: #273272; font-size: 0.92rem; }
.ndu-dash-rules span { color: #5c574c; font-size: 0.88rem; line-height: 1.45; }
.ndu-dash-start {
  padding-left: 1.2rem;
  list-style: decimal;
}
.ndu-dash-start li {
  display: list-item;
  color: #3b3830;
  font-size: 0.95rem;
  line-height: 1.4;
}
.ndu-dash-table { margin-bottom: 1.5rem; }

.ndu-welcome {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.ndu-welcome .ndu-foot {
  margin-top: auto;
  padding-bottom: 1.1rem;
}
.ndu-welcome-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
}
.ndu-welcome-bar .ndu-signin {
  justify-self: auto;
}
.ndu-welcome-bar .ndu-signin:disabled {
  opacity: 0.38;
  cursor: default;
}
.ndu-welcome-crest {
  display: block;
  margin: 0 auto 0.75rem;
  height: auto;
  max-height: 5.5rem;
  width: auto;
  max-width: min(18rem, 72vw);
  object-fit: contain;
}
.ndu-welcome-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 1.5rem;
}
.ndu-welcome-stage.is-sheet {
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.9rem;
}
.ndu-welcome-hero,
.ndu-welcome-panel {
  width: min(40rem, 100%);
  background: #fff;
  border: 1px solid #d9d3c2;
  border-radius: 1rem;
  padding: 1.7rem 1.5rem 1.6rem;
  box-shadow: 0 10px 30px rgba(39, 50, 114, 0.06);
}
.ndu-welcome-hero { text-align: center; }
.ndu-welcome-stage.is-sheet .ndu-welcome-panel {
  width: min(40rem, 100%);
  margin: 0 auto;
}
.ndu-welcome-stage.is-sheet .ndu-guest-sheet {
  width: min(72rem, 100%);
  margin: 0 auto;
}
.ndu-welcome-hero h1,
.ndu-guest-head h1 {
  margin: 0.2rem 0 0.7rem;
  font-family: var(--font-serif), Georgia, serif;
  color: #273272;
  font-weight: 650;
}
.ndu-welcome-hero h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); line-height: 1.2; }
.ndu-welcome-lead,
.ndu-welcome-motto,
.ndu-welcome-foot {
  margin: 0 auto;
  max-width: 36rem;
  color: #5c574c;
  font-size: 0.98rem;
  line-height: 1.5;
}
.ndu-welcome-motto {
  margin-top: 0.9rem;
  font-family: var(--font-serif), Georgia, serif;
  font-style: italic;
  color: #273272;
}
.ndu-welcome-sections,
.ndu-mini-section {
  display: grid;
  gap: 0.7rem;
  text-align: left;
}
.ndu-welcome-hero .ndu-welcome-lead { margin-top: 0.35rem; }
.ndu-welcome-hero .ndu-welcome-actions { margin-top: 1.15rem; }
.ndu-welcome-sections { margin-top: 1.15rem; gap: 0.9rem; }
.ndu-mini-section h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #273272;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ndu-welcome-hero .ndu-mini-section h2 { justify-content: center; }
.ndu-welcome-actions {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .ndu-welcome-hero .ndu-welcome-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .ndu-welcome-hero .ndu-welcome-actions { grid-template-columns: 1fr 1fr 1fr; }
}
.ndu-welcome-btn,
.ndu-welcome-choice,
.ndu-welcome-back,
.ndu-guest-tabs button,
.ndu-guest-crumbs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid #273272;
  background: #fff;
  color: #273272;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.ndu-welcome-btn { width: 100%; border-radius: 0.55rem; }
.ndu-welcome-btn-main,
.ndu-guest-tabs button.is-active {
  background: #8A171A;
  border-color: #8A171A;
  color: #fff;
}
.ndu-welcome-btn:hover,
.ndu-welcome-choice:hover,
.ndu-guest-crumbs button:hover {
  background: #f4f5fa;
}
.ndu-welcome-btn-main:hover { background: #a51f24; color: #fff; }
.ndu-welcome-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.ndu-welcome-progress button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  border: 1px solid #e4dfd0;
  border-radius: 0.5rem;
  background: #faf8f2;
  color: #7a7466;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.ndu-welcome-progress button:disabled { opacity: 0.45; cursor: default; }
.ndu-welcome-progress .is-active button {
  background: #8A171A;
  border-color: #8A171A;
  color: #fff;
}
.ndu-welcome-progress .is-done button {
  background: #273272;
  border-color: #273272;
  color: #fff;
}
.ndu-welcome-choices {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .ndu-welcome-years { grid-template-columns: 1fr 1fr; }
}
.ndu-welcome-choice {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-items: start;
  gap: 0.7rem;
  text-align: left;
  border-radius: 0.6rem;
}
.ndu-choice-ico {
  display: inline-flex;
  min-width: 2.4rem;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  border-radius: 0.45rem;
  background: #eef0f8;
  color: #8A171A;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.ndu-welcome-choice span { display: grid; gap: 0.1rem; min-width: 0; }
.ndu-welcome-choice strong { font-size: 0.92rem; line-height: 1.25; }
.ndu-welcome-choice em {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 550;
  color: #5c574c;
}
.ndu-share { display: grid; gap: 0.35rem; }
.ndu-share-link {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  color: #273272;
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-all;
}
.ndu-cal { display: grid; gap: 0.35rem; }
.ndu-cal-note {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  color: #5c574c;
  font-size: 0.78rem;
  line-height: 1.4;
}
.ndu-welcome-back {
  margin-top: 0.35rem;
  min-height: 36px;
  width: auto;
  border-color: transparent;
  background: transparent;
  font-weight: 650;
  font-size: 0.85rem;
}
.ndu-guest-table { padding-bottom: 2rem; }
.ndu-guest-head { margin: 1.2rem 0 1rem; display: grid; gap: 0.75rem; }
.ndu-guest-head .ndu-welcome-lead { margin: 0; max-width: none; }
.ndu-guest-dl { width: min(22rem, 100%); }
.ndu-guest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ndu-guest-tabs button {
  min-height: 36px;
  padding: 0.3rem 0.65rem;
  border-radius: 0.45rem;
  flex: 1 1 6.5rem;
  font-size: 0.75rem;
}
.ndu-guest-sheet {
  background: #fff;
  border: 1px solid #d9d3c2;
  border-radius: 0.8rem;
  padding: 0.9rem 0.9rem 1.2rem;
}
.ndu-exam-guest > .ndu-no-print.flex { display: none; }
@media (max-width: 767px) {
  .ndu-desk-only { display: none !important; }
  span.ndu-phone-only { display: inline !important; }
  .ndu-dash-jump.ndu-phone-only { display: grid !important; }
  .ndu-welcome-crest { max-height: 4.4rem; max-width: 12.5rem; }
  .ndu-welcome-hero { text-align: center; }
  .ndu-welcome-hero .ndu-mini-section h2 { justify-content: center; }
  .ndu-account { gap: 0.3rem; }
  .ndu-signin {
    min-height: 40px;
    padding: 0 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
  .ndu-welcome-stage {
    padding: 0.7rem 0.7rem 1rem;
  }
  .ndu-welcome-hero,
  .ndu-welcome-panel {
    padding: 1.15rem 0.95rem 1.1rem;
    border-radius: 0.75rem;
    box-shadow: none;
  }
  .ndu-welcome-hero h1 { font-size: 1.45rem; margin-bottom: 0.35rem; }
  .ndu-welcome-lead { font-size: 0.86rem; }
  .ndu-welcome-hero .ndu-welcome-actions { margin-top: 0.95rem; }
  .ndu-welcome-sections { gap: 0.7rem; }
  .ndu-welcome-years { grid-template-columns: 1fr 1fr; }
  .ndu-choice-ico { min-width: 2.1rem; min-height: 2.1rem; font-size: 0.62rem; }
  .ndu-welcome-choice { min-height: 44px; padding: 0.4rem 0.55rem; }
  .ndu-welcome-choice strong { font-size: 0.82rem; }
  .ndu-guest-head { margin: 0.7rem 0 0.7rem; }
  .ndu-guest-head h1 { font-size: 1.15rem; margin: 0; }
  .ndu-guest-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ndu-guest-tabs button { flex: none; min-height: 44px; font-size: 0.68rem; padding: 0.35rem 0.25rem; }
  .ndu-guest-sheet { padding: 0.55rem; border-radius: 0.6rem; }
  .ndu-dash-card h2 { font-size: 1.05rem; }
}

/* ---- Public navigation (2026-10 redesign) ---- */
.ndu-product {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.25;
}
.ndu-product span {
  font-family: var(--font-sans), "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #6b6f86;
}

/* Compact, professional account buttons */
.ndu-bar a.ndu-home,
.ndu-signin {
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
a.ndu-signin-ghost,
button.ndu-signin-ghost {
  border: 1px solid #c9cde0;
  color: #273272;
  background: #fff;
}
a.ndu-signin-ghost:hover,
button.ndu-signin-ghost:hover {
  border-color: #273272;
  background: #f4f5fa;
  color: #273272;
}
.ndu-signin:focus-visible,
.ndu-mainnav a:focus-visible,
.ndu-segmented button:focus-visible,
.ndu-exam-tabs button:focus-visible {
  outline: 2px solid #c8a24a;
  outline-offset: 2px;
}

/* Main menu: Teaching · Tests · Examination · Recess */
.ndu-mainnav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  background: #273272;
  padding: 0 1.75rem;
  border-bottom: 3px solid #8A171A;
}
.ndu-mainnav-tabs {
  display: flex;
  flex-wrap: wrap;
}
.ndu-mainnav-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  color: #c9cde0;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  /* Underline drawn inside the tab so nothing overflows the bar (no scrollbar). */
  box-shadow: inset 0 -3px 0 transparent;
}
.ndu-mainnav-tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.ndu-mainnav-tabs a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -3px 0 #c8a24a;
}
.ndu-mainnav-aside {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: #c9cde0;
}
.ndu-mainnav-aside a { color: #fff; font-weight: 600; text-decoration: none; }
.ndu-mainnav-aside a:hover { text-decoration: underline; }
.ndu-mainnav-status {
  padding: 0.1rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
}

/* Examination finder: Campus → Faculty → Study time → View */
.ndu-exam-menu {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 1rem 0;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(39, 50, 114, 0.06);
}
.ndu-exam-menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
}
.ndu-exam-menu-label {
  min-width: 6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  gap: 3px;
  background: #f1f2f8;
  border: 1px solid #e2e4ee;
  border-radius: 8px;
}
.ndu-segmented button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #273272;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.38rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
}
.ndu-segmented button:hover { background: #fff; }
.ndu-segmented button.is-active {
  background: #273272;
  color: #fff;
  box-shadow: 0 1px 2px rgba(39, 50, 114, 0.25);
}
.ndu-exam-select {
  min-width: min(26rem, 100%);
  padding: 0.45rem 0.6rem;
  border: 1px solid #c9cde0;
  border-radius: 8px;
  background: #fff;
  color: #1c2b24;
  font: inherit;
  font-size: 0.9rem;
}
.ndu-exam-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0.2rem -1rem 0;
  padding: 0 1rem;
  border-top: 1px solid #e2e4ee;
  flex-wrap: wrap;
}
.ndu-exam-tabs button {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4a4f6a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem 0.6rem;
  white-space: nowrap;
  cursor: pointer;
}
.ndu-exam-tabs button:hover { color: #273272; }
.ndu-exam-tabs button.is-active {
  color: #273272;
  border-bottom-color: #8A171A;
}

/* Papers on a day */
.ndu-day-papers {
  margin-top: 0.75rem;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-radius: 10px;
  overflow: hidden;
}
.ndu-day-papers table { border: 0; }
.ndu-day-papers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #f7f8fc;
  border-bottom: 1px solid #e2e4ee;
}
.ndu-day-papers-head p {
  margin: 0;
  font-weight: 700;
  color: #273272;
  text-align: center;
}
.ndu-day-papers-kicker {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-day-papers-count {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b6f86;
}
.ndu-day-papers-head button {
  width: 2rem;
  height: 2rem;
  border: 1px solid #c9cde0;
  border-radius: 6px;
  background: #fff;
  color: #273272;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.ndu-day-papers-head button:disabled { opacity: 0.35; cursor: default; }
.ndu-day-papers-empty { margin: 0.75rem 0 0; color: #6b6f86; font-size: 0.9rem; }

@media (max-width: 640px) {
  .ndu-mainnav { padding: 0 0.5rem; }
  .ndu-mainnav-aside { display: none; }
  .ndu-mainnav-tabs { width: 100%; flex-wrap: nowrap; }
  .ndu-mainnav-tabs a { flex: 1 1 0; justify-content: center; padding: 0.7rem 0.25rem; font-size: 0.82rem; }
  .ndu-exam-menu-label { min-width: 100%; }
  .ndu-segmented { display: flex; width: 100%; }
  .ndu-segmented button { flex: 1 1 auto; }
}
@media print {
  .ndu-mainnav, .ndu-exam-menu, .ndu-day-papers { display: none !important; }
}

/* ---- Examination page: live papers board in the top-right corner (where Print was) ---- */
.ndu-board {
  width: min(25rem, 100%);
  margin-left: auto;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-top: 4px solid #273272;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(39, 50, 114, 0.08);
  padding: 0.9rem;
}
.ndu-board-head { margin-bottom: 0.6rem; }
.ndu-board-title {
  margin: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.1rem;
  font-weight: 650;
  color: #273272;
}
.ndu-board-clock { margin: 0.1rem 0 0; font-size: 0.76rem; color: #6b6f86; }
.ndu-board-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem;
  background: #f7f8fc;
  border: 1px solid #e2e4ee;
  border-radius: 8px;
}
.ndu-board-day p { margin: 0; text-align: center; font-weight: 700; color: #273272; font-size: 0.9rem; }
.ndu-board-day p span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-board-day button {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid #c9cde0;
  border-radius: 6px;
  background: #fff;
  color: #273272;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.ndu-board-day button:disabled { opacity: 0.35; cursor: default; }
.ndu-board-today {
  margin-top: 0.4rem;
  border: 0;
  background: none;
  color: #273272;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.ndu-board-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0;
}
.ndu-board-counts span {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f1f2f8;
  color: #4a4f6a;
  font-size: 0.72rem;
  font-weight: 600;
}
.ndu-board-counts span.is-live { background: #e7f5ec; color: #1f5c35; }
.ndu-board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ndu-board-paper {
  border: 1px solid #e2e4ee;
  border-left: 4px solid #c9cde0;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}
.ndu-board-paper.is-live { border-left-color: #1f8a4c; background: #f3fbf6; }
.ndu-board-paper.is-next { border-left-color: #c8a24a; }
.ndu-board-paper.is-done { opacity: 0.6; }
.ndu-board-paper-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.ndu-board-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6f86;
}
.ndu-board-status.is-live { color: #1f8a4c; }
.ndu-board-status.is-next { color: #8a6a1f; }
.ndu-board-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #1f8a4c;
  animation: ndu-pulse 1.6s ease-in-out infinite;
}
@keyframes ndu-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(31, 138, 76, 0); }
}
@media (prefers-reduced-motion: reduce) { .ndu-board-dot { animation: none; } }
.ndu-board-time { font-size: 0.74rem; font-weight: 600; color: #273272; white-space: nowrap; }
.ndu-board-paper-name { margin: 0.25rem 0 0.2rem; font-size: 0.86rem; line-height: 1.3; color: #1c2b24; }
.ndu-board-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.74rem;
  color: #6b6f86;
}
.ndu-board-when { margin: 0.25rem 0 0; font-size: 0.72rem; font-weight: 600; color: #273272; }
.ndu-board-empty { font-size: 0.86rem; color: #6b6f86; }
.ndu-board-empty p { margin: 0 0 0.4rem; }
.ndu-board-empty button {
  border: 1px solid #c9cde0;
  border-radius: 6px;
  background: #fff;
  color: #273272;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}
@media print { .ndu-board { display: none !important; } }

/* ---- Examination rules page (2026-10 redesign, screen only; print uses its own CSS) ---- */
.ndu-exam-rules { background: #f4f5fa; }
.ndu-rules-nav .ndu-mainnav-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.2rem;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.ndu-rules-nav .ndu-mainnav-tabs button:hover { color: #f3dfa6; }
.ndu-rules-nav .ndu-mainnav-aside { gap: 0.4rem; }

/* Side menu with icons */
.ndu-exam-rules .ndu-rules-side {
  border-color: #e2e4ee;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(39, 50, 114, 0.05);
  scrollbar-width: thin;
}
.ndu-exam-rules .ndu-rules-jump { gap: 0.15rem; }
.ndu-exam-rules .ndu-rules-jump a {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  color: #3a4060;
  font-size: 0.86rem;
  font-weight: 600;
}
.ndu-exam-rules .ndu-rules-jump a svg { color: #8A171A; }
.ndu-rules-jump-num { font-size: 0.68rem; font-weight: 700; color: #a0a4b8; }
.ndu-exam-rules .ndu-rules-jump a:hover { background: #f1f2f8; color: #273272; }
.ndu-exam-rules .ndu-rules-jump a[aria-current="location"] { background: #273272; color: #fff; }
.ndu-exam-rules .ndu-rules-jump a[aria-current="location"] svg,
.ndu-exam-rules .ndu-rules-jump a[aria-current="location"] .ndu-rules-jump-num { color: #f3dfa6; }

/* Toolbar and document card */
.ndu-exam-rules .ndu-rules-toolbar,
.ndu-exam-rules .ndu-rules-doc {
  border-color: #e2e4ee;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(39, 50, 114, 0.05);
}
.ndu-exam-rules .ndu-rules-doc { padding: 1.6rem 1.7rem 2rem; }
.ndu-rules-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ndu-exam-rules .ndu-rules-actions .ndu-btn-print {
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #273272;
  color: #fff;
  border: 1px solid #273272;
}
.ndu-exam-rules .ndu-rules-actions .ndu-btn-print:hover { background: #1e2a62; }
.ndu-exam-rules .ndu-rules-actions .ndu-btn-print-ghost { background: #fff; color: #273272; border-color: #c9cde0; }
.ndu-exam-rules .ndu-rules-actions .ndu-btn-print-ghost:hover { background: #f4f5fa; border-color: #273272; }
.ndu-rules-main > .ndu-rules-actions { justify-content: flex-end; }

/* Title block and official-document notice */
.ndu-exam-rules .ndu-rules-head { border-bottom: 0; padding-bottom: 0; }
.ndu-exam-rules .ndu-rules-head h1 { font-size: 1.9rem; letter-spacing: -0.01em; }
.ndu-exam-rules .ndu-rules-official {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: none;
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c9d3f0;
  border-left: 4px solid #273272;
  border-radius: 8px;
  background: #f2f5fd;
  color: #273272;
  font-size: 0.93rem;
  font-weight: 600;
}
.ndu-exam-rules .ndu-rules-official svg { flex: none; margin-top: 0.1rem; }

/* Section headings: icon badge + number */
.ndu-exam-rules .ndu-rules-section { margin-top: 2rem; }
.ndu-exam-rules .ndu-rules-section h2.ndu-rules-h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e2e4ee;
  font-size: 1.3rem;
}
.ndu-rules-h2-icon {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border-radius: 8px;
  background: #273272;
  color: #fff;
}
.ndu-rules-h2-num {
  font-family: var(--font-sans), "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8A171A;
}

/* Small icon marks inside lists and cards */
.ndu-rules-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #eef0f8;
  color: #273272;
}
.ndu-rules-mark.is-alert { background: #f8e9e9; color: #8A171A; }

/* Start here checklist */
.ndu-exam-rules .ndu-rules-tiles li {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  border: 1px solid #e2e4ee;
  border-top: 3px solid #273272;
  border-radius: 9px;
  font-weight: 600;
  color: #273050;
}
.ndu-exam-rules .ndu-rules-tiles li::before { display: none; }

/* Cards */
.ndu-exam-rules .ndu-rules-item,
.ndu-exam-rules .ndu-rules-block {
  border: 1px solid #e2e4ee;
  border-radius: 9px;
  background: #fff;
}
.ndu-rules-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem !important;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ndu-exam-rules .ndu-rules-allowed { border-top: 3px solid #1f8a4c; }
.ndu-rules-allowed .ndu-rules-tag { background: #e7f5ec; color: #1f5c35; }
.ndu-exam-rules .ndu-rules-banned { border-top: 3px solid #8A171A; }
.ndu-rules-banned .ndu-rules-tag { background: #f8e9e9; color: #8A171A; }
.ndu-exam-rules .ndu-rules-special { border-top: 3px solid #c8a24a; }
.ndu-rules-special .ndu-rules-tag { background: #fff6e0; color: #7a5a12; }

/* Policy references */
.ndu-exam-rules .ndu-rules-goto {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #f1f2f8;
  color: #4a4f6a;
  font-size: 0.76rem;
  font-weight: 600;
}
.ndu-exam-rules .ndu-rules-goto svg { color: #273272; flex: none; }

/* Malpractice */
.ndu-exam-rules .ndu-rules-card {
  border: 1px solid #ecd9d9;
  border-left: 4px solid #8A171A;
  border-radius: 9px;
  background: #fffafa;
}
.ndu-rules-rule { display: flex; align-items: center; gap: 0.55rem; }
.ndu-rules-rule .ndu-rules-mark { width: 1.8rem; height: 1.8rem; }
.ndu-exam-rules .ndu-rules-offence { font-weight: 600; color: #2c2a26; }
.ndu-exam-rules .ndu-rules-penalty {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0.6rem 0 !important;
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  background: #f8e9e9;
  color: #6f1214;
}
.ndu-exam-rules .ndu-rules-penalty svg { flex: none; margin-top: 0.15rem; }
.ndu-exam-rules .ndu-rules-confirm {
  border-radius: 7px;
  border-color: #c8a24a;
  background: #fff8ea;
}

/* If you are caught: numbered steps */
.ndu-exam-rules .ndu-rules-steps {
  list-style: none;
  padding: 0;
  counter-reset: caught-step;
  gap: 0.5rem 1.2rem;
}
.ndu-exam-rules .ndu-rules-steps li {
  counter-increment: caught-step;
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  margin: 0;
}
.ndu-exam-rules .ndu-rules-steps li::before {
  content: counter(caught-step);
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #273272;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Who to ask */
.ndu-exam-rules .ndu-rules-offices li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid #e2e4ee;
  border-radius: 9px;
  background: #fff;
  font-weight: 600;
}

/* Grade and index tables */
.ndu-exam-rules .ndu-rules-scale,
.ndu-exam-rules .ndu-rules-table { border-radius: 8px; overflow: hidden; }
.ndu-exam-rules .ndu-rules-scale th,
.ndu-exam-rules .ndu-rules-table th { background: #273272; color: #fff; }
.ndu-exam-rules .ndu-rules-scale tbody tr:nth-child(even),
.ndu-exam-rules .ndu-rules-table tbody tr:nth-child(even) { background: #f7f8fc; }

@media (max-width: 640px) {
  .ndu-exam-rules .ndu-rules-doc { padding: 1rem 0.85rem 1.2rem; }
  .ndu-exam-rules .ndu-rules-head h1 { font-size: 1.4rem; }
  .ndu-rules-nav .ndu-mainnav-aside { display: none; }
}
.ndu-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.ndu-board-print {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid #c9cde0;
  border-radius: 6px;
  background: #fff;
  color: #273272;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.ndu-board-print:hover { border-color: #273272; background: #f4f5fa; }
.ndu-board-print:disabled { opacity: 0.45; cursor: default; }
.ndu-board-more {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem;
  border: 1px dashed #c9cde0;
  border-radius: 7px;
  background: #f7f8fc;
  color: #273272;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 640px) { .ndu-board { width: 100%; } }

/* ---- Compact papers board beside the "Examination timetable" title ---- */
.ndu-exam-top { align-items: center; }
.ndu-exam-top .ndu-page-title { margin: 0.1rem 0 0.25rem; }
.ndu-exam-top > .ndu-board {
  position: relative;
  width: min(28rem, 100%);
  margin-left: auto;
  padding: 0.6rem 0.7rem 0.65rem;
  border-top-width: 3px;
}
.ndu-exam-top .ndu-board-head { align-items: center; gap: 0.5rem; }
.ndu-exam-top .ndu-board-day {
  flex: 1 1 auto;
  padding: 0.25rem;
  border-radius: 7px;
}
.ndu-exam-top .ndu-board-day p { font-size: 0.86rem; }
.ndu-exam-top .ndu-board-day p span { font-size: 0.6rem; }
.ndu-exam-top .ndu-board-day button { width: 1.7rem; height: 1.7rem; font-size: 1rem; }
.ndu-exam-top .ndu-board-counts { margin: 0.45rem 0 0.4rem; gap: 0.3rem; align-items: center; }
.ndu-exam-top .ndu-board-counts span { font-size: 0.68rem; padding: 0.1rem 0.5rem; }
.ndu-exam-top .ndu-board-counts .ndu-board-clock {
  margin: 0 0 0 auto;
  padding: 0;
  background: none;
  color: #6b6f86;
  font-weight: 500;
}
.ndu-board-feature {
  padding: 0.45rem 0.6rem;
  border: 1px solid #e2e4ee;
  border-left: 4px solid #c8a24a;
  border-radius: 7px;
  background: #fffdf6;
}
.ndu-board-feature.is-live { border-left-color: #1f8a4c; background: #f3fbf6; }
.ndu-board-feature .ndu-board-paper-name {
  margin: 0.15rem 0;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ndu-exam-top .ndu-board-empty { font-size: 0.82rem; }
.ndu-exam-top .ndu-board-empty p { margin: 0.1rem 0 0.35rem; }
.ndu-exam-top .ndu-board-more { margin-top: 0.4rem; padding: 0.3rem; font-size: 0.76rem; }
.ndu-board-drop {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  width: 100%;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(28, 34, 80, 0.18);
}
@media (max-width: 900px) {
  .ndu-exam-top > .ndu-board { width: 100%; margin-left: 0; }
}

/* ---- Examination menu fills its card: Faculty | Campus side by side, tabs full width ---- */
.ndu-exam-menu .ndu-exam-tabs button { flex: 1 1 0; text-align: center; }
@media (min-width: 900px) {
  .ndu-exam-menu {
    grid-template-columns: minmax(18rem, 1fr) minmax(0, 1.4fr);
    column-gap: 1.5rem;
    row-gap: 0.75rem;
    align-items: end;
    padding-top: 0.85rem;
  }
  .ndu-exam-menu .ndu-exam-menu-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.35rem;
  }
  .ndu-exam-menu .ndu-exam-menu-label { min-width: 0; }
  .ndu-exam-menu .ndu-exam-select { width: 100%; min-width: 0; }
  .ndu-exam-menu .ndu-segmented { display: flex; width: 100%; }
  .ndu-exam-menu .ndu-segmented button { flex: 1 1 auto; white-space: nowrap; }
  .ndu-exam-menu .ndu-exam-tabs { grid-column: 1 / -1; }
}

/* ---- Exam page on phones and tablets (audit 2026-10-28) ---- */
/* The menu never grows wider than its card. */
@media (max-width: 899px) { .ndu-exam-menu { grid-template-columns: minmax(0, 1fr); } }
.ndu-exam-menu .ndu-exam-select { min-width: 0; max-width: 100%; }
@media (max-width: 899px) {
  .ndu-exam-menu { padding: 0.8rem 0.8rem 0; }
  .ndu-exam-menu .ndu-exam-menu-row { display: grid; gap: 0.35rem; }
  .ndu-exam-menu .ndu-exam-menu-label { min-width: 0; }
  .ndu-exam-menu .ndu-exam-select { width: 100%; }
  .ndu-exam-menu .ndu-segmented {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr));
    width: 100%;
  }
  .ndu-exam-menu .ndu-exam-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    margin: 0.2rem -0.8rem 0;
    padding: 0 0.8rem;
  }
}
/* Phones: the day-by-day list replaces the wide examination grid (no sideways scrolling). */
@media (max-width: 767px) {
  .ndu-exam-public .ndu-exam-axis.ndu-sheet-desktop { display: none !important; }
  .ndu-wrap { padding: 0.6rem 0.5rem 1.2rem; }
  .ndu-document { padding: 0.9rem 0.75rem 1.1rem; box-shadow: none; }
  .ndu-exam-top .ndu-page-title { font-size: 1.5rem; }
}

/* Day picker on phones: a 7-column calendar grid instead of a sideways-scrolling strip. */
.ndu-agenda-days {
  position: static;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: visible;
  scroll-snap-type: none;
  gap: 0.3rem;
}
.ndu-agenda-days button { min-width: 0; min-height: 48px; padding: 0.25rem 0.1rem; }
/* Phones: campus buttons and view tabs wrap and fill each row (no lone item on its own line). */
@media (max-width: 899px) {
  .ndu-exam-menu .ndu-segmented { display: flex; flex-wrap: wrap; }
  .ndu-exam-menu .ndu-segmented button { flex: 1 1 auto; }
  .ndu-exam-menu .ndu-exam-tabs { display: flex; flex-wrap: wrap; }
  .ndu-exam-menu .ndu-exam-tabs button { flex: 1 1 auto; padding-inline: 0.7rem; }
}

/* Tap targets of at least 24px (WCAG 2.2 AA) for links in the navy bar. */
.ndu-mainnav-aside a { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.2rem 0; }
/* Teaching finder chips (KEY / View) wrap on phones instead of scrolling sideways. */
@media (max-width: 767px) {
  .ndu-finder .ndu-switch { flex-wrap: wrap; overflow-x: visible; }
  .ndu-finder .ndu-switch a { white-space: normal; }
}
/* Day buttons sized for the 7-column grid. */
.ndu-agenda-days button { font-size: 0.8rem; line-height: 1.15; }
.ndu-agenda-days .ndu-agenda-dow { font-size: 0.72rem; }
.ndu-agenda-days .ndu-agenda-num { font-size: 0.95rem; }

/* Rules page on phones and tablets: compact two-column section list, full-width actions. */
@media (max-width: 960px) {
  .ndu-exam-rules .ndu-rules-side { padding: 0.6rem; }
  .ndu-exam-rules .ndu-rules-side-kicker { margin-bottom: 0.4rem; }
  .ndu-exam-rules .ndu-rules-jump {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.3rem;
  }
  .ndu-exam-rules .ndu-rules-jump a {
    grid-template-columns: 1rem minmax(0, 1fr);
    min-height: 2.4rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid #e2e4ee;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .ndu-exam-rules .ndu-rules-jump-num { display: none; }
  .ndu-exam-rules .ndu-rules-toolbar { gap: 0.6rem; }
  .ndu-exam-rules .ndu-rules-toolbar > div:first-child { flex: 1 1 100%; }
  .ndu-exam-rules .ndu-rules-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ndu-exam-rules .ndu-rules-actions .ndu-btn-print { width: 100%; }
}

/* ---- Examination Notice Board (panel on the exam page + /notice-board) ---- */
.ndu-notice-panel {
  width: min(28rem, 100%);
  margin-left: auto;
  padding: 0.65rem 0.75rem 0.7rem;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-top: 3px solid #8A171A;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(39, 50, 114, 0.08);
}
.ndu-notice-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.ndu-notice-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A171A;
}
.ndu-countdown-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
.ndu-countdown-unit {
  display: grid;
  justify-items: center;
  padding: 0.35rem 0.2rem;
  border-radius: 8px;
  background: #273272;
  color: #fff;
}
.ndu-countdown-unit strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ndu-countdown-unit span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c9cde0; }
.ndu-countdown-note { margin: 0.35rem 0 0; font-size: 0.76rem; color: #4a4f6a; }
.ndu-countdown-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #e7f5ec;
  color: #1f5c35;
  font-weight: 700;
}
.ndu-countdown-live.is-ended { background: #f1f2f8; color: #4a4f6a; }
.ndu-notice-pinned {
  margin-top: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-left: 4px solid #c8a24a;
  border-radius: 7px;
  background: #fffaf0;
}
.ndu-notice-pinned.is-important { border-left-color: #8A171A; background: #fdf3f3; }
.ndu-notice-pinned-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0; font-size: 0.85rem; font-weight: 700; color: #1c2b24; }
.ndu-notice-pinned-body {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #3a3f52;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ndu-notice-tag {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #273272;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ndu-notice-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; margin-top: 0.55rem; }
.ndu-notice-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid #c9cde0;
  border-radius: 7px;
  color: #273272;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.ndu-notice-links a:hover { border-color: #273272; background: #f4f5fa; }
.ndu-notice-links a.is-primary { background: #273272; border-color: #273272; color: #fff; }
.ndu-notice-links a.is-primary:hover { background: #1e2a62; }
@media (max-width: 900px) { .ndu-exam-top > .ndu-notice-panel { width: 100%; margin-left: 0; } }

/* Notice cards */
.ndu-notice-card {
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-left: 4px solid #c8a24a;
  border-radius: 10px;
}
.ndu-notice-card.is-important { border-left-color: #8A171A; }
.ndu-notice-card-head { display: flex; align-items: center; gap: 0.45rem; color: #8A171A; }
.ndu-notice-card.is-info .ndu-notice-card-head { color: #273272; }
.ndu-notice-card h3 { margin: 0; font-family: var(--font-serif), Georgia, serif; font-size: 1.1rem; color: #1c2b24; }
.ndu-notice-card > p { margin: 0.45rem 0 0; line-height: 1.5; color: #2c3044; }
.ndu-notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; font-size: 0.78rem; color: #6b6f86 !important; }
.ndu-notice-meta a { display: inline-flex; align-items: center; gap: 0.2rem; min-height: 1.5rem; color: #273272; font-weight: 700; }

/* /notice-board page */
.ndu-noticeboard { display: grid; gap: 1rem; max-width: 72rem; margin: 0 auto; }
.ndu-noticeboard-head .ndu-page-title { margin: 0.15rem 0 0.25rem; }
.ndu-noticeboard-lead { margin: 0; color: #4a4f6a; }
.ndu-noticeboard h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.2rem;
  color: #273272;
}
.ndu-noticeboard-countdown {
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-top: 4px solid #8A171A;
  border-radius: 12px;
}
.ndu-noticeboard-countdown .ndu-countdown-units { max-width: 34rem; gap: 0.6rem; }
.ndu-noticeboard-countdown .ndu-countdown-unit { padding: 0.7rem 0.3rem; border-radius: 10px; }
.ndu-noticeboard-countdown .ndu-countdown-unit strong { font-size: 2.2rem; }
.ndu-noticeboard-countdown .ndu-countdown-note { font-size: 0.92rem; margin-top: 0.6rem; }
.ndu-noticeboard-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 960px) { .ndu-noticeboard-grid { grid-template-columns: minmax(0, 1fr) 22rem; } }
.ndu-noticeboard-list { display: grid; gap: 0.75rem; }
.ndu-noticeboard-side { display: grid; gap: 0.75rem; }
.ndu-noticeboard-side .ndu-board { width: 100%; margin: 0; }
.ndu-noticeboard-policy {
  padding: 0.9rem;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-top: 4px solid #273272;
  border-radius: 10px;
}
.ndu-noticeboard-policy p { margin: 0 0 0.6rem; font-size: 0.88rem; color: #4a4f6a; }
.ndu-noticeboard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  margin-top: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #273272;
  border-radius: 8px;
  background: #273272;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.ndu-noticeboard-btn:hover { background: #1e2a62; color: #fff; }
.ndu-noticeboard-btn.is-ghost { background: #fff; color: #273272; border-color: #c9cde0; }
.ndu-noticeboard-btn.is-ghost:hover { border-color: #273272; background: #f4f5fa; }
@media (max-width: 640px) {
  .ndu-noticeboard-countdown .ndu-countdown-unit strong { font-size: 1.6rem; }
}

/* ---- Notice board v2: exam-page buttons, hero, notice cards, quick links ---- */
.ndu-exam-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.ndu-notice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #273272;
  border-radius: 999px;
  background: #273272;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(39, 50, 114, 0.18);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.ndu-notice-btn:hover { background: #1e2a62; color: #fff; transform: translateY(-1px); }
.ndu-notice-btn svg { color: #f3dfa6; }
.ndu-notice-btn.is-ghost { background: #fff; color: #273272; border-color: #c9cde0; box-shadow: none; }
.ndu-notice-btn.is-ghost svg { color: #273272; }
.ndu-notice-btn.is-ghost:hover { background: #f4f5fa; border-color: #273272; color: #273272; }
.ndu-notice-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) { .ndu-notice-btn { transition: none; } .ndu-notice-btn:hover { transform: none; } }

/* Hero: title + countdown on one navy band */
.ndu-nb-hero {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 1.6rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #273272 0%, #1e2a62 60%, #3a1f4a 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(39, 50, 114, 0.25);
  border-bottom: 4px solid #c8a24a;
}
@media (min-width: 960px) { .ndu-nb-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); } }
.ndu-nb-kicker { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #f3dfa6; }
.ndu-nb-hero h1 { margin: 0.25rem 0 0.4rem; font-family: var(--font-serif), Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.ndu-nb-hero-text p:last-child { margin: 0; color: #d6d9ea; max-width: 34rem; }
.ndu-nb-count-title { margin: 0 0 0.5rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #f3dfa6; }
.ndu-nb-hero .ndu-countdown-units { gap: 0.5rem; }
.ndu-nb-hero .ndu-countdown-unit {
  padding: 0.65rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}
.ndu-nb-hero .ndu-countdown-unit strong { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.ndu-nb-hero .ndu-countdown-note { color: #d6d9ea; font-size: 0.85rem; }
.ndu-nb-hero .ndu-countdown-live { background: rgba(255, 255, 255, 0.12); color: #fff; }

.ndu-nb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.ndu-nb-section-head h2 { margin: 0 !important; }
.ndu-nb-section-head span { font-size: 0.8rem; color: #6b6f86; }
.ndu-nb-empty { margin: 0; padding: 1rem; border: 1px dashed #c9cde0; border-radius: 10px; color: #6b6f86; background: #fff; }

/* Notice cards: date tile + content */
.ndu-notice-card {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #e2e4ee;
  border-left: 4px solid #c8a24a;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(39, 50, 114, 0.05);
}
.ndu-notice-card.is-important { border-left-color: #8A171A; }
.ndu-notice-card.is-pinned { box-shadow: 0 6px 18px rgba(138, 23, 26, 0.1); }
.ndu-notice-date {
  display: grid;
  place-items: center;
  align-content: center;
  height: 3.6rem;
  border-radius: 10px;
  background: #f1f2f8;
  color: #273272;
}
.ndu-notice-card.is-important .ndu-notice-date { background: #fdf0f0; color: #8A171A; }
.ndu-notice-date strong { font-family: var(--font-serif), Georgia, serif; font-size: 1.4rem; line-height: 1; }
.ndu-notice-date span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ndu-notice-content { min-width: 0; }
.ndu-notice-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 0.35rem; }
.ndu-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #f1f2f8;
  color: #4a4f6a;
  font-size: 0.7rem;
  font-weight: 700;
}
.ndu-notice-pill.is-important { background: #fdf0f0; color: #8A171A; }
.ndu-notice-pill.is-info { background: #fff6e0; color: #7a5a12; }
.ndu-notice-pill.is-audience { background: #273272; color: #fff; }
.ndu-notice-card h3 { margin: 0; font-family: var(--font-serif), Georgia, serif; font-size: 1.15rem; line-height: 1.3; color: #1c2b24; }
.ndu-notice-body { margin: 0.4rem 0 0; white-space: pre-line; line-height: 1.55; color: #2c3044; }
.ndu-notice-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.65rem 0 0; font-size: 0.78rem; color: #6b6f86; }
.ndu-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #273272;
  color: #fff !important;
  font-weight: 650;
  text-decoration: none;
}
.ndu-notice-link:hover { background: #1e2a62; }
@media (max-width: 480px) {
  .ndu-notice-card { grid-template-columns: 1fr; }
  .ndu-notice-date { grid-auto-flow: column; gap: 0.35rem; justify-content: start; height: auto; padding: 0.3rem 0.6rem; width: max-content; }
  .ndu-notice-date strong { font-size: 1rem; }
}

/* Quick links */
.ndu-nb-links {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  border: 1px solid #e2e4ee;
  border-top: 4px solid #273272;
  border-radius: 12px;
  background: #fff;
}
.ndu-nb-side-title { margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8A171A; }
.ndu-nb-links a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid #eef0f6;
  border-radius: 10px;
  color: #273272;
  text-decoration: none;
}
.ndu-nb-links a:hover { border-color: #c9cde0; background: #f7f8fc; }
.ndu-nb-link-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 8px; background: #f1f2f8; color: #8A171A; }
.ndu-nb-links strong { display: block; font-size: 0.88rem; }
.ndu-nb-links small { display: block; font-size: 0.74rem; color: #6b6f86; }

/* Editable rules: paragraphs inside tiles, offices and steps sit tight; closing notes under a section. */
.ndu-exam-rules .ndu-rules-tiles li p,
.ndu-exam-rules .ndu-rules-offices li p,
.ndu-exam-rules .ndu-rules-steps li p { margin: 0; }
.ndu-exam-rules .ndu-rules-steps li > div { min-width: 0; }
.ndu-rules-outro { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; }
.ndu-rules-outro p:not(.ndu-rules-goto) { flex: 1 1 100%; margin: 0; }

