/*
Theme Name: JNTUK Materials
Theme URI: https://jntukmaterials.com/
Author: JNTUK Materials
Description: A lightweight, purpose-built theme for the JNTUK study-material library.
Version: 1.6.10
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: jntuk-materials
*/

/* Same-origin variable faces: one compact Latin file per family. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/public-sans-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin-variable.woff2")
    format("woff2");
}

:root {
  --jm-blue: #0c71c3;
  --jm-deep: #084a80;
  --jm-navy: #142334;
  --jm-gold: #c99a52;
  --jm-maroon: #7c2a35;
  --jm-paper: #f4f8fb;
  --jm-white: #fff;
  --jm-muted: #5f6f80;
  --jm-line: #d7e2eb;
  --jm-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --jm-body:
    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  background: var(--jm-paper);
  color: var(--jm-navy);
  font-family: var(--jm-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar {
  --wp-admin-bar-height: 32px;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--jm-blue);
}
button,
input,
select,
textarea {
  font: inherit;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.screen-reader-text:focus {
  position: fixed !important;
  left: 12px !important;
  top: 12px !important;
  z-index: 1000000 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  clip: auto !important;
  background: #fff;
  color: var(--jm-navy);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
#page-container {
  min-height: 60vh;
}
.jm-theme-main {
  min-height: 55vh;
  background: var(--jm-paper);
}
.jm-theme-shell {
  width: min(100% - 44px, 1080px);
  margin: 0 auto;
}
.jm-theme-narrow {
  width: min(100% - 44px, 820px);
  margin: 0 auto;
}
.jm-theme-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 84px) 0;
  border-bottom: 6px solid var(--jm-gold);
  background: linear-gradient(125deg, var(--jm-blue), var(--jm-deep));
  color: #fff;
}
.jm-theme-hero:after {
  content: "FILE";
  position: absolute;
  right: clamp(14px, 5vw, 70px);
  bottom: -0.17em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.13);
  font: 800 clamp(105px, 19vw, 230px) / 0.8 var(--jm-display);
  letter-spacing: -0.07em;
}
.jm-theme-hero-inner {
  position: relative;
  z-index: 1;
}
.jm-theme-kicker {
  display: block;
  color: #f3d4a3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.jm-theme-hero h1 {
  max-width: 940px;
  margin: 10px 0 16px;
  color: #fff;
  font: 800 clamp(36px, 6vw, 68px) / 0.98 var(--jm-display);
  letter-spacing: -0.045em;
}
.jm-theme-hero p {
  max-width: 680px;
  margin: 0;
  color: #e3eff8;
  font-size: 15px;
  line-height: 1.7;
}
.jm-theme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: #d9e9f5;
  font-size: 11px;
  font-weight: 700;
}
.jm-theme-meta a {
  color: #f3d4a3;
  text-decoration: none;
}
.jm-theme-content {
  padding: clamp(30px, 5vw, 58px) 0 22px;
}
.jm-theme-prose {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--jm-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(20, 35, 52, 0.045);
}
.jm-theme-prose > h1:first-child {
  display: none;
}
.jm-theme-prose h2,
.jm-theme-prose h3,
.jm-theme-prose h4 {
  color: var(--jm-deep);
  font-family: var(--jm-display);
  line-height: 1.15;
}
.jm-theme-prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(25px, 4vw, 35px);
  letter-spacing: -0.03em;
}
.jm-theme-prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 21px;
}
.jm-theme-prose p,
.jm-theme-prose li {
  font-size: 15px;
  line-height: 1.78;
}
.jm-theme-prose ul,
.jm-theme-prose ol {
  padding-left: 22px;
}
.jm-theme-prose a {
  font-weight: 700;
}
.jm-theme-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.jm-theme-prose th,
.jm-theme-prose td {
  padding: 10px 12px;
  border: 1px solid var(--jm-line);
  text-align: left;
}
.jm-theme-prose blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--jm-gold);
  background: #f6f9fc;
  color: var(--jm-muted);
}
.jm-source-docket {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  margin: 0 0 34px;
  border: 1px solid #b9cfdf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(8, 74, 128, 0.09);
}
.jm-source-docket:after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 96px;
  height: 5px;
  background: var(--jm-gold);
  content: "";
}
.jm-source-rail {
  display: flex;
  min-height: 100%;
  padding: 28px 18px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--jm-deep);
  color: #fff;
}
.jm-source-rail span {
  color: #f4d49e;
  font: 800 36px/1 var(--jm-display);
  letter-spacing: -0.04em;
}
.jm-source-rail strong {
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.17em;
}
.jm-source-body {
  padding: clamp(25px, 4vw, 38px);
}
.jm-source-eyebrow {
  color: var(--jm-maroon);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.jm-theme-prose .jm-source-body h2 {
  margin: 7px 0 10px;
  color: var(--jm-navy);
  font-size: clamp(24px, 3.6vw, 34px);
}
.jm-theme-prose .jm-source-body > p {
  max-width: 650px;
  margin: 0;
  color: var(--jm-muted);
  font-size: 13px;
  line-height: 1.7;
}
.jm-source-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  background: var(--jm-line);
  border: 1px solid var(--jm-line);
}
.jm-source-facts div {
  padding: 11px 12px;
  background: #f7fafc;
}
.jm-source-facts dt {
  color: var(--jm-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.jm-source-facts dd {
  margin: 3px 0 0;
  color: var(--jm-navy);
  font-size: 11px;
  font-weight: 800;
}
.jm-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.jm-theme-prose .jm-source-actions a {
  display: inline-flex;
  min-height: 43px;
  padding: 10px 14px;
  align-items: center;
  gap: 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.jm-source-primary {
  background: var(--jm-blue);
  color: #fff;
}
.jm-source-primary:hover {
  background: var(--jm-deep);
  color: #fff;
}
.jm-source-secondary {
  border: 1px solid #b7cad9;
  background: #fff;
  color: var(--jm-deep);
}
.jm-source-secondary span {
  padding: 2px 5px;
  background: #fff1d7;
  color: #6d481c;
  font-size: 7px;
  letter-spacing: 0.08em;
}
.jm-source-body small {
  display: block;
  max-width: 700px;
  margin-top: 16px;
  color: #6d7885;
  font-size: 9px;
  line-height: 1.55;
}
.jm-source-docket a:focus-visible {
  outline: 3px solid var(--jm-gold);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .jm-source-docket {
    grid-template-columns: 1fr;
  }
  .jm-source-rail {
    min-height: 70px;
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
  }
  .jm-source-rail span {
    font-size: 29px;
  }
  .jm-source-rail strong {
    text-align: right;
  }
  .jm-source-body {
    padding: 23px 19px 27px;
  }
  .jm-source-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jm-theme-prose .jm-source-actions a {
    width: 100%;
    justify-content: space-between;
  }
}
.jm-index {
  padding: clamp(38px, 6vw, 70px) 0;
}
.jm-index-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--jm-line);
}
.jm-index-head h1 {
  margin: 7px 0 0;
  color: var(--jm-navy);
  font: 800 clamp(35px, 6vw, 56px) / 0.98 var(--jm-display);
  letter-spacing: -0.045em;
}
.jm-index-head p {
  max-width: 500px;
  margin: 0;
  color: var(--jm-muted);
  font-size: 13px;
  text-align: right;
}
.jm-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.jm-post-card {
  position: relative;
  display: flex;
  min-height: 250px;
  padding: 23px;
  flex-direction: column;
  border: 1px solid var(--jm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--jm-navy);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20, 35, 52, 0.04);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease;
}
.jm-post-card:hover {
  transform: translateY(-3px);
  border-color: #91b9d7;
}
.jm-post-card-label {
  color: var(--jm-maroon);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.jm-post-card h2 {
  margin: 34px 0 12px;
  color: var(--jm-navy);
  font: 800 23px/1.08 var(--jm-display);
  letter-spacing: -0.025em;
}
.jm-post-card p {
  margin: 0 0 20px;
  color: var(--jm-muted);
  font-size: 12px;
  line-height: 1.65;
}
.jm-post-card-open {
  margin-top: auto;
  color: var(--jm-blue);
  font-size: 11px;
  font-weight: 800;
}
.jm-pagination {
  margin-top: 28px;
}
.jm-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jm-pagination a,
.jm-pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--jm-line);
  border-radius: 5px;
  background: #fff;
  color: var(--jm-deep);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.jm-pagination .current {
  border-color: var(--jm-blue);
  background: var(--jm-blue);
  color: #fff;
}
.jm-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 24px;
  padding: 9px;
  border: 1px solid #c7d6e2;
  border-radius: 8px;
  background: #fff;
}
.jm-search-form input {
  min-height: 48px;
  padding: 11px 14px;
  border: 0;
  color: var(--jm-navy);
}
.jm-search-form input:focus {
  outline: 3px solid rgba(201, 154, 82, 0.36);
}
.jm-search-form button {
  min-height: 48px;
  padding: 11px 20px;
  border: 0;
  border-radius: 5px;
  background: var(--jm-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.jm-search-form button:hover {
  background: var(--jm-deep);
}
.jm-empty {
  padding: clamp(55px, 9vw, 110px) 0;
  text-align: center;
}
.jm-empty-code {
  color: var(--jm-blue);
  font: 800 clamp(80px, 18vw, 180px) / 0.8 var(--jm-display);
  letter-spacing: -0.08em;
}
.jm-empty h1 {
  margin: 28px 0 12px;
  font: 800 clamp(34px, 6vw, 58px) / 1 var(--jm-display);
  letter-spacing: -0.04em;
}
.jm-empty p {
  max-width: 570px;
  margin: 0 auto;
  color: var(--jm-muted);
}
.jm-empty .jm-search-form {
  max-width: 680px;
  margin: 28px auto 0;
  text-align: left;
}
.jm-theme-main a:focus-visible {
  outline: 3px solid var(--jm-gold);
  outline-offset: 3px;
}
@media (max-width: 840px) {
  .jm-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jm-index-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .jm-index-head p {
    text-align: left;
  }
}
@media (max-width: 580px) {
  .jm-theme-shell,
  .jm-theme-narrow {
    width: min(100% - 32px, 1080px);
  }
  .jm-post-grid {
    grid-template-columns: 1fr;
  }
  .jm-post-card {
    min-height: 220px;
  }
  .jm-search-form {
    grid-template-columns: 1fr;
  }
  .jm-theme-hero:after {
    opacity: 0.55;
  }
}
@media (max-width: 782px) {
  body.admin-bar {
    --wp-admin-bar-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .jm-theme-main * {
    transition: none !important;
  }
}

/*
 * Responsive course-ledger system, July 2026.
 * The content is treated like a university register: strong rules, stamped
 * regulation codes and quiet paper surfaces keep dense material scannable.
 */
:root {
  --jm-ink: #142334;
  --jm-slate: #52677b;
  --jm-pale: #edf4f9;
  --jm-paper-deep: #e7eef5;
  --jm-blue-soft: #dcecf7;
  --jm-gold-soft: #fff4df;
  --jm-danger: #7c2a35;
  --jm-rule: #cbd9e5;
  --jm-shadow: 0 14px 34px rgba(20, 35, 52, 0.07);
  --jm-code:
    ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --jm-content: 1180px;
  --jm-reading: 800px;
}

body {
  background: #f3f7fb;
  color: var(--jm-ink);
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #cfe7f8;
  color: #102b41;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
button,
a {
  -webkit-tap-highlight-color: rgba(12, 113, 195, 0.14);
}
.jm-theme-shell {
  width: min(100% - 44px, var(--jm-content));
}
.jm-theme-narrow {
  width: min(100% - 44px, var(--jm-reading));
}

/* Standard posts, archives, search and error states. */
body .jm-theme-hero {
  padding: clamp(48px, 7vw, 78px) 0;
  border-bottom: 0;
  background: #084a80;
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.13);
}

body .jm-theme-hero::before {
  content: "";
  position: absolute;
  top: clamp(48px, 7vw, 78px);
  bottom: clamp(48px, 7vw, 78px);
  left: max(22px, calc((100% - var(--jm-content)) / 2));
  width: 6px;
  background: #c99a52;
}

body .jm-theme-hero::after {
  content: none;
}
body .jm-theme-hero-inner {
  padding-left: 28px;
}
body .jm-theme-kicker {
  color: #f1cf99;
  font-family: var(--jm-code);
  font-size: 10px;
  letter-spacing: 0.12em;
}

body .jm-theme-hero h1 {
  max-width: 980px;
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.98;
}

body .jm-theme-content {
  padding: clamp(30px, 5vw, 58px) 0 10px;
}
body .jm-theme-prose {
  padding: clamp(24px, 4.5vw, 46px);
  border: 1px solid var(--jm-rule);
  border-top: 5px solid #0c71c3;
  border-radius: 4px;
  box-shadow: var(--jm-shadow);
}

body .jm-theme-prose h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe7ee;
}

body .jm-theme-prose p,
body .jm-theme-prose li {
  font-size: clamp(15px, 1.7vw, 16px);
}
body .jm-theme-prose table {
  width: 100%;
  font-size: 14px;
}
body .jm-theme-prose th {
  background: #edf4f9;
  color: #084a80;
}
body .jm-theme-prose th,
body .jm-theme-prose td {
  padding: 12px 14px;
}

body .jm-index {
  padding: clamp(40px, 6vw, 72px) 0;
}
body .jm-index-head {
  margin-bottom: 30px;
  border-bottom: 2px solid #cbd9e5;
}
body .jm-index-head h1 {
  font-size: clamp(38px, 6vw, 58px);
}
body .jm-post-grid {
  gap: 18px;
}
body .jm-post-card {
  min-height: 238px;
  padding: 24px;
  overflow: hidden;
  border-color: var(--jm-rule);
  border-radius: 4px;
  box-shadow: none;
}

body .jm-post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #d9e7f1;
  transition: background-color 160ms ease;
}

body .jm-post-card:hover {
  border-color: #8eb8d6;
  box-shadow: var(--jm-shadow);
}
body .jm-post-card:hover::before {
  background: #0c71c3;
}
body .jm-post-card-label {
  font-family: var(--jm-code);
  font-size: 10px;
}
body .jm-post-card h2 {
  margin-top: 28px;
  font-size: clamp(21px, 2.4vw, 25px);
}
body .jm-search-form {
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(20, 35, 52, 0.05);
}
body .jm-search-form button {
  border-radius: 3px;
}
body .jm-theme-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 20px;
  color: #b9cedd;
  font-family: var(--jm-code);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
body .jm-theme-breadcrumbs a {
  color: #f1cf99;
  text-decoration: none;
}
body .jm-theme-breadcrumbs a:hover {
  color: #ffffff;
}

/* Homepage: an engineering-paper search desk rather than a generic hero. */
.home .jm-full-bleed-entry {
  --accent: #0c71c3;
  --accent-hover: #084a80;
  --accent-text: #095f9d;
  --deep: #084a80;
  --navy: #142334;
  --ink: #142334;
  --ink-2: #52677b;
  --muted: #5e6d7e;
  --bg: #f3f7fb;
  --surface: #ffffff;
  --border: #d4e0ea;
  --border-2: #c5d5e2;
  --hairline: #e7edf3;
  --chip-bg: #e4f0f8;
  --tag-bg: #edf3f8;
  --tag-text: #084a80;
  --bold-border: #244057;
  background: #f3f7fb;
}

.home .jm-full-bleed-entry .hero {
  position: relative;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(34px, 6vw, 76px);
  padding: clamp(54px, 8vw, 94px)
    max(22px, calc((100vw - var(--jm-content)) / 2));
  overflow: hidden;
  border-bottom: 1px solid #cfdae4;
  background-color: #edf4f9;
  background-image:
    linear-gradient(rgba(8, 74, 128, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 74, 128, 0.045) 1px, transparent 1px);
  background-size: 30px 30px;
}

.home .jm-full-bleed-entry .hero::before {
  content: "";
  position: absolute;
  top: clamp(54px, 8vw, 94px);
  bottom: clamp(54px, 8vw, 94px);
  left: max(22px, calc((100vw - var(--jm-content)) / 2));
  width: 7px;
  background: #c99a52;
}

.home .jm-full-bleed-entry .hero > div:first-child {
  padding-left: 30px;
}
.home .jm-full-bleed-entry .hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #142334;
  font-size: clamp(45px, 7vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.home .jm-full-bleed-entry .hero h1 em {
  color: #0c71c3;
  text-decoration: underline;
  text-decoration-color: #c99a52;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
}

.home .jm-full-bleed-entry .hero-lead {
  max-width: 610px;
  color: #52677b;
  font-size: 17px;
}
.home .jm-full-bleed-entry .search {
  max-width: 620px;
  border: 2px solid #244057;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #0c71c3;
}

.home .jm-full-bleed-entry .search button {
  min-height: 52px;
}
.home .jm-full-bleed-entry .chip {
  min-height: 38px;
  border-radius: 3px;
}
.home .jm-full-bleed-entry .stats {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 420px;
  border: 1px solid #bfcfdb;
  border-left: 8px solid #c99a52;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 12px 12px 0 rgba(8, 74, 128, 0.09);
}

.home .jm-full-bleed-entry .stat,
.home .jm-full-bleed-entry .stat-wide {
  grid-column: auto;
  padding: 20px 24px;
  border-bottom: 1px solid #dce5ed;
  border-radius: 0;
  background: transparent;
  color: #142334;
  transform: none;
}

.home .jm-full-bleed-entry .stat:last-child {
  border-bottom: 0;
}
.home .jm-full-bleed-entry .stat-num {
  color: #084a80;
  font-family: var(--jm-code);
  font-size: 31px;
}
.home .jm-full-bleed-entry .stat-label {
  color: #5e6d7e;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.home .jm-full-bleed-entry > section {
  width: min(100% - 44px, var(--jm-content));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 76px) 0 0;
}

.home .jm-full-bleed-entry > section h2 {
  margin-bottom: 24px;
  font-size: clamp(29px, 4vw, 42px);
}

.home .jm-full-bleed-entry .branch-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.home .jm-full-bleed-entry .branch {
  min-height: 98px;
  padding: 16px;
  border-color: #cddae5;
  border-radius: 4px;
  box-shadow: none;
}

.home .jm-full-bleed-entry .branch:hover {
  border-color: #0c71c3;
  box-shadow: 0 9px 22px rgba(8, 74, 128, 0.08);
}
.home .jm-full-bleed-entry .monogram {
  width: 46px;
  height: 46px;
  border-radius: 3px;
  background: #084a80;
  color: #ffffff;
  font-family: var(--jm-code);
  box-shadow: 3px 3px 0 #c99a52;
}

.home .jm-full-bleed-entry .branch-name {
  line-height: 1.3;
}
.home .jm-full-bleed-entry .sem-row {
  justify-content: flex-start;
  margin-top: 28px;
  padding: 20px;
  border-top: 1px solid #ccd9e4;
  border-bottom: 1px solid #ccd9e4;
  background: #edf4f9;
}

.home .jm-full-bleed-entry .toggle button,
.home .jm-full-bleed-entry .sem-chip {
  min-height: 44px;
  border-radius: 3px;
}
.home .jm-full-bleed-entry .toggle button:first-child {
  border-radius: 3px 0 0 3px;
}
.home .jm-full-bleed-entry .toggle button:last-child {
  border-radius: 0 3px 3px 0;
}
.home .jm-full-bleed-entry .panels {
  gap: 20px;
}
.home .jm-full-bleed-entry .feed,
.home .jm-full-bleed-entry .card {
  border-radius: 4px;
}
.home .jm-full-bleed-entry .card {
  border: 1px solid #ccd9e4;
}
.home .jm-full-bleed-entry .card-deep {
  border-color: #084a80;
}

.home .jm-full-bleed-entry .feed-date {
  color: #68727d;
}

/* Updates are navigation rows, not paragraphs of underlined metadata.
   Scope to this section so ordinary editorial links retain their underlines. */
.home .jm-full-bleed-entry #updates .feed {
  border: 1px solid #d4e0ea;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(20, 35, 52, 0.035);
}
.home .jm-full-bleed-entry #updates .feed-head {
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 22px 24px;
  border-bottom: 1px solid #dce6ee;
  background: #f8fafc;
}
.home .jm-full-bleed-entry #updates .feed-head h3 {
  margin: 0;
  color: #142334;
  font: 800 clamp(21px, 2.2vw, 25px)/1.25 var(--jm-display);
  letter-spacing: -0.035em;
}
.home .jm-full-bleed-entry #updates .feed-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #084a80;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.home .jm-full-bleed-entry #updates .feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 9px 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #e2eaf1;
  color: #142334;
  background: #fff;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.home .jm-full-bleed-entry #updates .feed-row:last-child { border-bottom: 0; }
.home .jm-full-bleed-entry #updates .feed-row .tag {
  grid-area: 1 / 1;
  justify-self: start;
  width: auto;
  padding: 3px 8px;
  border-radius: 5px;
  background: #edf4f9;
  color: #084a80;
  font: 800 10px/1.6 var(--jm-body);
  letter-spacing: 0.065em;
}
.home .jm-full-bleed-entry #updates .feed-row:nth-of-type(2) .tag {
  background: #edf6f1;
  color: #326348;
}
.home .jm-full-bleed-entry #updates .feed-row:last-child .tag {
  background: #fbf3e6;
  color: #77551f;
}
.home .jm-full-bleed-entry #updates .feed-date {
  grid-area: 1 / 2;
  width: auto;
  padding: 0;
  color: #5f6f80;
  font: 500 11px/1.5 var(--jm-body);
}
.home .jm-full-bleed-entry #updates .feed-title {
  grid-area: 2 / 1 / 3 / 3;
  min-width: 0;
  color: #142334;
  font: 650 17px/1.45 var(--jm-body);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.home .jm-full-bleed-entry #updates .feed-row::after {
  content: "";
  grid-area: 1 / 3 / 3 / 4;
  justify-self: center;
  width: 9px;
  height: 9px;
  border-top: 2px solid #628099;
  border-right: 2px solid #628099;
  transform: rotate(45deg);
}
.home .jm-full-bleed-entry #updates .feed-row:hover,
.home .jm-full-bleed-entry #updates .feed-row:focus-visible { background: #f1f7fc; }
.home .jm-full-bleed-entry #updates .feed-row:hover .feed-title,
.home .jm-full-bleed-entry #updates .feed-row:focus-visible .feed-title {
  color: #084a80;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.home .jm-full-bleed-entry #updates a:focus-visible {
  outline: 3px solid #c99a52;
  outline-offset: -3px;
}
.home .jm-full-bleed-entry #updates .card {
  border-radius: 12px;
  padding: 24px;
  box-shadow: none;
}
.home .jm-full-bleed-entry #updates .card h3 {
  font: 800 24px/1.2 var(--jm-display);
  letter-spacing: -0.025em;
}
.home .jm-full-bleed-entry #updates .card p {
  font-size: 14px;
  line-height: 1.65;
}
.home .jm-full-bleed-entry #updates .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .home .jm-full-bleed-entry #updates .feed-head { padding: 18px 20px 14px; gap: 4px 16px; }
  .home .jm-full-bleed-entry #updates .feed-row { padding: 18px 20px; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 8px 10px; }
  .home .jm-full-bleed-entry #updates .feed-title { font-size: 16px; }
  .home .jm-full-bleed-entry #updates .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .jm-full-bleed-entry #updates .feed-row { transition: none; }
}

/* Ad labels are intentionally quiet, but remain readable at their small size. */
body .jm-ad-placement .jm-ad-label {
  color: #607184;
}

/* Master hubs: one clear branch register and semester index. */
body .jm-master {
  background: #f3f7fb;
}
body .jm-master .jm-master-head {
  padding: clamp(48px, 7vw, 78px)
    max(22px, calc((100vw - var(--jm-content)) / 2));
  border-bottom: 0;
  background: #084a80;
}

body .jm-master .jm-master-head > div {
  position: relative;
  max-width: var(--jm-content);
  padding-left: 30px;
}

body .jm-master .jm-master-head > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: #c99a52;
}

body .jm-master .jm-master-head h1 {
  font-size: clamp(42px, 7vw, 72px) !important;
}
body .jm-master .jm-master-body {
  max-width: var(--jm-content);
  padding: 42px 22px 64px;
}
body .jm-master .jm-notice {
  padding: 16px 18px;
  border: 1px solid #e1c6cb;
  border-left: 6px solid #7c2a35;
  background: #fff7f8;
}

body .jm-master .jm-branch-grid {
  gap: 14px;
}
body .jm-master .jm-branch-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border-color: #cddae5;
  border-radius: 4px;
  box-shadow: none;
}

body .jm-master .jm-branch-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #0c71c3;
}

body .jm-master .jm-badge {
  width: 60px;
  height: 52px;
  border-radius: 3px;
  font-family: var(--jm-code);
  box-shadow: 3px 3px 0 #c99a52;
}

body .jm-master .jm-mini-links a {
  min-height: 42px;
  border-radius: 3px;
}
body .jm-master .jm-card-footer {
  padding-top: 4px;
}
body .jm-master .jm-semester-index {
  margin-top: 52px;
  border-top: 2px solid #cbd9e5;
}
body .jm-master .jm-semester-links a,
body .jm-master .jm-paper {
  border-radius: 3px;
}

/* Branch records: regulation first, then the relevant semester ledger. */
body .jr-page {
  background: #f3f7fb;
}
body .jr-page .jr-topbar {
  background: #edf4f9;
}
body .jr-page .jr-topbar .jr-shell {
  min-height: 48px;
}
body .jr-page .jr-home-link {
  display: none;
}
body .jr-page .jr-hero {
  border-bottom: 0;
  background: #084a80;
}
body .jr-page .jr-hero .jr-shell {
  padding-top: clamp(46px, 7vw, 74px);
  padding-bottom: clamp(46px, 7vw, 74px);
}
body .jr-page .jr-hero-copy {
  padding-left: 28px;
}
body .jr-page .jr-hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: #c99a52;
}

body .jr-page .jr-hero h1 {
  font-size: clamp(42px, 7vw, 72px) !important;
}
body .jr-page .jr-code {
  right: 24px;
  bottom: -0.08em;
  font-size: clamp(96px, 16vw, 180px);
  opacity: 0.72;
}
body .jr-page .jr-record {
  border-bottom-color: #cad8e3;
}
body .jr-page .jr-record .jr-shell {
  grid-template-columns: 180px minmax(0, 1fr);
}
body .jr-page .jr-record-label {
  border-right-color: #cad8e3;
}
body .jr-page .jr-tab {
  min-height: 76px;
}
body .jr-page .jr-content {
  padding: clamp(38px, 6vw, 68px) 0;
}
body .jr-page .jr-sem-grid {
  gap: 14px;
}
body .jr-page .jr-sem-card {
  min-height: 184px;
  border-color: #cddae5;
  border-radius: 4px;
  box-shadow: none;
}

body .jr-page .jr-term,
body .jr-page .jr-empty-state,
body .jr-page .jr-footnav a {
  border-radius: 3px;
}
body.page .jr-page #legacy-library {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #cbd9e5;
  border-left: 7px solid var(--branch);
  border-top-width: 1px;
  border-radius: 4px;
  background: #f8fbfd;
  box-shadow: none;
}

body.page .jr-page #legacy-library .jr-term {
  border-radius: 3px;
  box-shadow: none;
}
body.page .jr-page #legacy-library .jr-term-code {
  border-radius: 3px;
  font-family: var(--jm-code);
}
body.page .jr-page #legacy-library .jr-count {
  border-radius: 3px;
  box-shadow: none;
}

/* Download subjects: put the file decision before decorative treatment. */
body.single-post .jm-subject-experience {
  background: #f3f7fb;
}
body.single-post .jm-subject-experience .jm-subject-hero {
  padding: clamp(48px, 7vw, 78px) max(22px, calc((100vw - 1080px) / 2));
  border-bottom: 0;
  background: #084a80;
}

body.single-post .jm-subject-experience .jm-subject-hero::before {
  content: "";
  position: absolute;
  top: clamp(48px, 7vw, 78px);
  bottom: clamp(48px, 7vw, 78px);
  left: max(22px, calc((100vw - 1080px) / 2));
  width: 7px;
  background: #c99a52;
}

body.single-post .jm-subject-experience .jm-subject-hero::after {
  content: none;
}
body.single-post .jm-subject-experience .jm-subject-hero > * {
  margin-left: 30px;
}
body.single-post .jm-subject-experience .jm-subject-hero h1 {
  max-width: 940px;
  font-size: clamp(38px, 6vw, 64px) !important;
  line-height: 0.98 !important;
}

body.single-post .jm-subject-experience .jm-subject-kicker {
  font-family: var(--jm-code);
}
body.single-post .jm-subject-experience .jm-subject-breadcrumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 0 0 20px 30px;
  color: #b9cedd;
  font-family: var(--jm-code);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
body.single-post .jm-subject-experience .jm-subject-breadcrumbs a {
  color: #f1cf99 !important;
  text-decoration: none !important;
}
body.single-post .jm-subject-experience .jm-subject-breadcrumbs a:hover {
  color: #ffffff !important;
}
body.single-post .jm-subject-experience .jm-download-desk {
  border: 1px solid #c4d4e1;
  border-left: 7px solid #0c71c3;
  border-top-width: 1px;
  border-radius: 4px;
  box-shadow: var(--jm-shadow);
}

body.single-post .jm-subject-experience .jm-download-head {
  padding: 24px 26px;
  background: #edf4f9;
}
body.single-post .jm-subject-experience .jm-file-count {
  border-radius: 3px;
  font-family: var(--jm-code);
}
body.single-post .jm-subject-experience .jm-file-row {
  min-height: 84px;
}
body.single-post .jm-subject-experience .jm-file-number {
  border-radius: 3px;
  font-family: var(--jm-code);
}
body.single-post .jm-subject-experience .jm-file-action {
  min-height: 42px;
  border-radius: 3px;
}
body.single-post .jm-subject-experience .jm-subject-content {
  border-color: #cbd9e5;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(20, 35, 52, 0.045);
}

body.single-post .jm-subject-experience .jm-is-pending {
  border-left-color: #c99a52;
  border-top-width: 1px;
}
body.single-post .jm-subject-experience .jm-pending-actions a {
  border-radius: 3px;
}

/* Blog: release log on a study desk, with fewer and wider columns. */
body.jm-blog-redesign .jm-blog-hero {
  border-bottom: 0;
  background: #084a80;
}
body.jm-blog-redesign .jm-blog-hero::after {
  content: none;
}
body.jm-blog-redesign .jm-blog-hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}
body.jm-blog-redesign .jm-blog-hero-grid > div:first-child {
  padding-left: 28px;
  border-left: 7px solid #c99a52;
}

body.jm-blog-redesign .jm-blog-current {
  border-radius: 4px;
  background: rgba(20, 35, 52, 0.34);
  backdrop-filter: none;
}

body.jm-blog-redesign .jm-blog-find {
  width: min(820px, calc(100% - 44px));
  border-radius: 4px;
}
body.jm-blog-redesign .jm-blog-find button {
  border-radius: 3px;
}
body.jm-blog-redesign .jm-blog-section-head {
  border-bottom: 2px solid #cbd9e5;
}
body.jm-blog-redesign .jm-blog-collections {
  gap: 16px;
}
body.jm-blog-redesign .jm-blog-collection {
  min-height: 220px;
  border-color: #cbd9e5;
  border-radius: 4px;
  box-shadow: none;
}

body.jm-blog-redesign .jm-blog-count {
  border-radius: 3px;
  font-family: var(--jm-code);
}
body.jm-blog-redesign .jm-blog-branches {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.jm-blog-redesign .jm-blog-branch {
  min-height: 172px;
}
body.jm-blog-redesign .jm-blog-monogram {
  border-radius: 2px;
  font-family: var(--jm-code);
}
body.jm-blog-redesign .jm-blog-archive {
  border-left-width: 7px;
}

/* Legal and contact pages: a desktop policy index that becomes a mobile guide. */
body .jm-policy {
  background: #f3f7fb;
}
body .jm-policy .jm-policy-hero {
  position: relative;
  padding: clamp(48px, 7vw, 78px)
    max(22px, calc((100vw - var(--jm-content)) / 2));
  border-bottom: 0;
  background: #084a80;
}

body .jm-policy .jm-policy-hero::before {
  content: "";
  position: absolute;
  top: clamp(48px, 7vw, 78px);
  bottom: clamp(48px, 7vw, 78px);
  left: max(22px, calc((100vw - var(--jm-content)) / 2));
  width: 7px;
  background: #c99a52;
}

body .jm-policy .jm-policy-hero > * {
  margin-left: 30px;
}
body .jm-policy .jm-policy-main {
  width: min(100% - 44px, var(--jm-content));
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 34px;
  align-items: start;
}

body .jm-policy .jm-policy-updated,
body .jm-policy .jm-policy-main > section {
  grid-column: 2;
}
body .jm-policy .jm-policy-nav {
  position: sticky;
  top: 116px;
  grid-column: 1;
  grid-row: 1 / span 99;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 16px;
  border: 1px solid #cbd9e5;
  border-left: 6px solid #c99a52;
  background: #ffffff;
}

body .jm-policy .jm-policy-nav a {
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid #e7edf3;
  border-radius: 0;
}
body .jm-policy .jm-policy-main > section {
  margin-top: 14px;
  border-color: #cbd9e5;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(20, 35, 52, 0.035);
}

body .jm-policy .jm-policy-callout {
  border-left-width: 7px !important;
}
body.page-id-2903 .jm-policy .jm-policy-main {
  display: block;
  max-width: 900px;
}
body.page-id-2903 .jm-policy .jm-policy-main > section {
  padding: clamp(24px, 4vw, 38px);
}
body .jm-contact-form input,
body .jm-contact-form select,
body .jm-contact-form textarea {
  min-height: 48px;
  border-radius: 3px;
}
body .jm-contact-form button {
  min-height: 46px;
  border-radius: 3px;
}

@media (max-width: 1100px) {
  .home .jm-full-bleed-entry .branch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.jm-blog-redesign .jm-blog-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home .jm-full-bleed-entry .hero {
    grid-template-columns: 1fr;
  }
  .home .jm-full-bleed-entry .stats {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home .jm-full-bleed-entry .stat {
    border-right: 1px solid #dce5ed;
    border-bottom: 0;
  }
  .home .jm-full-bleed-entry .stat:last-child {
    border-right: 0;
  }
  body .jm-master .jm-branch-grid {
    grid-template-columns: 1fr;
  }
  body.jm-blog-redesign .jm-blog-hero-grid {
    grid-template-columns: 1fr;
  }
  body .jm-policy .jm-policy-main {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  body .jm-policy .jm-policy-updated {
    order: 0;
    width: 100%;
  }
  body .jm-policy .jm-policy-nav {
    position: static;
    order: 1;
    width: 100%;
    margin: 0 0 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body .jm-policy .jm-policy-nav a {
    justify-content: center;
    text-align: center;
  }
  body .jm-policy .jm-policy-main > section {
    order: 2;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .jm-theme-shell,
  .jm-theme-narrow {
    width: min(100% - 32px, var(--jm-content));
  }
  body .jm-theme-hero::before {
    left: 16px;
  }
  body .jm-theme-hero-inner {
    padding-left: 22px;
  }
  body .jm-theme-hero h1 {
    font-size: clamp(34px, 10vw, 50px);
  }
  body .jm-theme-prose {
    padding: 22px 20px;
  }
  body .jm-post-card {
    min-height: 0;
  }

  .home .jm-full-bleed-entry .hero,
  body .jm-master .jm-master-head,
  body.single-post .jm-subject-experience .jm-subject-hero,
  body .jm-policy .jm-policy-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home .jm-full-bleed-entry .hero::before,
  body.single-post .jm-subject-experience .jm-subject-hero::before,
  body .jm-policy .jm-policy-hero::before {
    left: 16px;
  }
  .home .jm-full-bleed-entry .hero > div:first-child,
  body.single-post .jm-subject-experience .jm-subject-hero > *,
  body .jm-policy .jm-policy-hero > * {
    margin-left: 0;
    padding-left: 22px;
  }
  body.single-post .jm-subject-experience .jm-subject-breadcrumbs {
    margin-left: 0;
  }

  .home .jm-full-bleed-entry > section,
  body .jm-policy .jm-policy-main {
    width: min(100% - 32px, var(--jm-content));
  }
  .home .jm-full-bleed-entry .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home .jm-full-bleed-entry .panels {
    grid-template-columns: 1fr;
  }
  .home .jm-full-bleed-entry .feed-row {
    flex-wrap: wrap;
  }
  .home .jm-full-bleed-entry .feed-date {
    width: 100%;
    padding-left: 0;
  }

  body .jr-page .jr-record .jr-shell {
    grid-template-columns: 1fr;
  }
  body .jr-page .jr-record-label {
    border-right: 0;
  }
  body .jr-page .jr-code {
    right: -10px;
    opacity: 0.4;
  }
  body .jr-page .jr-sem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.page .jr-page #legacy-library {
    padding: 22px 14px;
  }

  body.single-post .jm-subject-experience .jm-download-desk,
  body.single-post .jm-subject-experience .jm-subject-notes {
    width: min(100% - 32px, 1080px);
  }
  body.single-post .jm-subject-experience .jm-file-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  body.single-post .jm-subject-experience .jm-file-action {
    grid-column: 2;
    justify-self: start;
  }
  body.jm-blog-redesign .jm-blog-branches {
    grid-template-columns: 1fr;
  }
  body .jm-policy .jm-policy-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  .home .jm-full-bleed-entry .hero h1 {
    font-size: clamp(40px, 13vw, 56px);
  }
  .home .jm-full-bleed-entry .search {
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 4px 4px 0 #0c71c3;
  }
  .home .jm-full-bleed-entry .search-glyph {
    display: none;
  }
  .home .jm-full-bleed-entry .search input {
    width: 100%;
    padding-left: 14px;
  }
  .home .jm-full-bleed-entry .search button {
    width: 100%;
  }
  .home .jm-full-bleed-entry .chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home .jm-full-bleed-entry .chip {
    display: grid;
    place-items: center;
    padding: 8px;
    text-align: center;
  }
  .home .jm-full-bleed-entry .stats {
    grid-template-columns: 1fr;
  }
  .home .jm-full-bleed-entry .stat {
    border-right: 0;
    border-bottom: 1px solid #dce5ed;
  }
  .home .jm-full-bleed-entry .branch-grid {
    grid-template-columns: 1fr;
  }
  .home .jm-full-bleed-entry .branch {
    min-height: 86px;
  }
  .home .jm-full-bleed-entry .sem-row {
    align-items: stretch;
    padding: 16px;
  }
  .home .jm-full-bleed-entry .sem-label,
  .home .jm-full-bleed-entry .sem-caption {
    width: 100%;
  }
  .home .jm-full-bleed-entry .toggle {
    width: 100%;
  }
  .home .jm-full-bleed-entry .toggle button {
    flex: 1;
  }
  .home .jm-full-bleed-entry .sem-chip {
    flex: 1 1 calc(50% - 8px);
    display: grid;
    place-items: center;
  }

  body .jm-master .jm-master-head > div {
    padding-left: 22px;
  }
  body .jm-master .jm-master-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  body .jm-master .jm-card-head {
    align-items: flex-start;
  }
  body .jm-master .jm-mini-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .jr-page .jr-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  body .jr-page .jr-hero-copy {
    padding-left: 22px;
  }
  body .jr-page .jr-sem-grid {
    grid-template-columns: 1fr;
  }
  body .jr-page .jr-tabs {
    margin: 0;
  }
  body .jr-page .jr-tab {
    padding: 14px 10px;
  }

  body.single-post .jm-subject-experience .jm-download-head {
    align-items: flex-start;
    padding: 20px;
  }
  body.single-post .jm-subject-experience .jm-file-list {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.single-post .jm-subject-experience .jm-pending-actions a {
    width: 100%;
    justify-content: center;
  }
  body.jm-blog-redesign .jm-blog-find {
    width: calc(100% - 32px);
  }
  body.jm-blog-redesign .jm-blog-collection {
    min-height: 0;
  }
  body .jm-policy .jm-policy-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
  body .jm-contact-form button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .home .jm-full-bleed-entry .chips {
    grid-template-columns: 1fr;
  }
  body .jm-master .jm-mini-links,
  body .jm-policy .jm-policy-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .jm-full-bleed-entry *,
  .jm-master *,
  .jr-page *,
  .jm-subject-experience *,
  .jm-blog *,
  .jm-policy * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* R23 syllabus reader: semester spine, subject index and course ledger. */
.jm-r23-entry {
  --r23-blue: #0c71c3;
  --r23-deep: #084a80;
  --r23-ink: #142334;
  --r23-slate: #52677b;
  --r23-gold: #c99a52;
  --r23-maroon: #7c2a35;
  --r23-paper: #f3f7fb;
  --r23-rule: #cbd9e5;
  display: block;
  min-height: 70vh;
  background: var(--r23-paper);
  color: var(--r23-ink);
}

.jm-r23-shell {
  width: min(100% - 44px, var(--jm-content));
  margin-inline: auto;
}

.jm-r23-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 66px) 0 clamp(44px, 7vw, 76px);
  background-color: var(--r23-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff;
}

.jm-r23-hero::after {
  position: absolute;
  right: -4vw;
  bottom: -0.36em;
  color: transparent;
  content: "R23";
  font: 800 clamp(150px, 25vw, 320px) / 0.8 var(--jm-display);
  letter-spacing: -0.08em;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.jm-r23-breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: clamp(28px, 5vw, 48px);
  color: #a9c1d4;
  font-family: var(--jm-code);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.jm-r23-breadcrumbs a {
  color: #f1cf99;
  text-decoration: none;
}

.jm-r23-breadcrumbs a:hover {
  color: #fff;
}

.jm-r23-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(36px, 7vw, 84px);
  align-items: end;
}

.jm-r23-hero-copy {
  position: relative;
  padding-left: 30px;
}

.jm-r23-hero-copy::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--r23-gold);
  content: "";
}

.jm-r23-kicker {
  display: block;
  color: #f1cf99;
  font-family: var(--jm-code);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jm-r23-hero h1 {
  max-width: 830px;
  margin: 12px 0 17px;
  color: #fff;
  font: 800 clamp(42px, 6.6vw, 76px) / 0.91 var(--jm-display);
  letter-spacing: -0.052em;
}

.jm-r23-hero h1 span {
  display: block;
  margin-top: 9px;
  color: #cfe4f2;
  font-size: 0.53em;
  line-height: 1;
  letter-spacing: -0.035em;
}

.jm-r23-hero-copy > p {
  max-width: 690px;
  margin: 0;
  color: #dceaf4;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
}

.jm-r23-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 27px 0 0;
}

.jm-r23-hero-facts div {
  min-width: 118px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.jm-r23-hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.jm-r23-hero-facts dt {
  color: #9fbbcf;
  font-family: var(--jm-code);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jm-r23-hero-facts dd {
  margin: 3px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.jm-r23-stamp {
  position: relative;
  display: flex;
  min-height: 242px;
  padding: 26px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-left: 8px solid var(--r23-gold);
  background: rgba(20, 35, 52, 0.38);
  box-shadow: 12px 12px 0 rgba(2, 30, 52, 0.18);
}

.jm-r23-stamp span,
.jm-r23-stamp small {
  font-family: var(--jm-code);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.jm-r23-stamp span {
  color: #f1cf99;
  font-size: 12px;
}

.jm-r23-stamp strong {
  color: #fff;
  font: 800 74px/0.85 var(--jm-display);
  letter-spacing: -0.08em;
}

.jm-r23-stamp small {
  color: #bad0df;
  font-size: 8px;
}

.jm-r23-semester-nav {
  border-bottom: 1px solid var(--r23-rule);
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 35, 52, 0.035);
}

.jm-r23-semester-nav .jm-r23-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.jm-r23-branch-link {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--r23-rule);
  color: var(--r23-deep) !important;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
}

.jm-r23-branch-link span {
  display: grid;
  width: 40px;
  height: 34px;
  place-items: center;
  background: var(--r23-deep);
  color: #fff;
  font-family: var(--jm-code);
  font-size: 10px;
  box-shadow: 3px 3px 0 var(--r23-gold);
}

.jm-r23-semester-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
}

.jm-r23-semester-links a,
.jm-r23-semester-links > span {
  position: relative;
  display: flex;
  min-height: 74px;
  padding: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e3eaf0;
  color: var(--r23-deep);
  font: 800 18px/1 var(--jm-display);
  text-decoration: none;
}

.jm-r23-semester-links small {
  margin-bottom: 5px;
  color: #7a8998;
  font: 800 7px/1 var(--jm-code);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.jm-r23-semester-links a:hover {
  background: #edf5fa;
}

.jm-r23-semester-links .is-current {
  background: var(--r23-deep);
  color: #fff;
}

.jm-r23-semester-links .is-current::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--r23-gold);
  content: "";
}

.jm-r23-semester-links .is-current small {
  color: #c6d9e7;
}

.jm-r23-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-top: clamp(34px, 5vw, 58px);
  padding-bottom: clamp(52px, 7vw, 86px);
}

.jm-r23-spine {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.jm-r23-record-card,
.jm-r23-index {
  border: 1px solid var(--r23-rule);
  background: #fff;
}

.jm-r23-record-card {
  position: relative;
  overflow: hidden;
  padding: 21px 20px 19px;
  border-top: 7px solid var(--r23-gold);
  background: var(--r23-deep);
  color: #fff;
}

.jm-r23-record-card::after {
  position: absolute;
  right: -0.1em;
  bottom: -0.25em;
  color: rgba(255, 255, 255, 0.05);
  content: attr(data-semester);
  font: 800 94px/0.8 var(--jm-display);
}

.jm-r23-record-label {
  color: #f1cf99;
  font-family: var(--jm-code);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.jm-r23-record-card > strong {
  display: block;
  margin: 17px 0 8px;
  color: #fff;
  font: 800 52px/0.85 var(--jm-display);
  letter-spacing: -0.07em;
}

.jm-r23-record-card > p {
  margin: 0;
  color: #c5d8e6;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.jm-r23-record-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.jm-r23-record-card dl div {
  padding: 10px 0;
}

.jm-r23-record-card dt {
  color: #9db8cb;
  font: 800 7px/1 var(--jm-code);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jm-r23-record-card dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.jm-r23-record-card > a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none !important;
}

.jm-r23-record-card > a span {
  color: #f1cf99;
  font-size: 16px;
}

.jm-r23-index {
  max-height: calc(100vh - 440px);
  min-height: 160px;
  overflow-y: auto;
  scrollbar-color: #afc7d8 #edf3f7;
  scrollbar-width: thin;
}

.jm-r23-index > span {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  padding: 13px 15px;
  border-bottom: 1px solid var(--r23-rule);
  background: #edf4f9;
  color: var(--r23-deep);
  font-family: var(--jm-code);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jm-r23-index ol {
  margin: 0;
  padding: 7px 14px 12px;
  list-style: none;
}

.jm-r23-index li + li {
  border-top: 1px solid #e8eef3;
}

.jm-r23-index a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  padding: 10px 0;
  color: #40566a !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.38;
  text-decoration: none !important;
}

.jm-r23-index a:hover {
  color: var(--r23-blue) !important;
}

.jm-r23-index a small {
  color: #90a2b2;
  font-family: var(--jm-code);
  font-size: 8px;
}

.jm-r23-reader {
  min-width: 0;
}

.jm-r23-index-mobile {
  display: none;
}

.jm-r23-document {
  min-width: 0;
  padding: clamp(24px, 4.5vw, 52px);
  border: 1px solid var(--r23-rule);
  border-left: 7px solid var(--r23-blue);
  background: #fff;
  box-shadow: var(--jm-shadow);
}

.jm-r23-document > .jm-source-docket {
  grid-template-columns: 88px minmax(0, 1fr);
  margin: 0 0 clamp(34px, 5vw, 50px);
  border-color: #b8cedd;
  border-radius: 3px;
  box-shadow: none;
}

.jm-r23-document .jm-source-rail {
  padding: 23px 14px;
}

.jm-r23-document .jm-source-rail span {
  font-size: 30px;
}

.jm-r23-document .jm-source-body {
  padding: clamp(22px, 3.5vw, 32px);
}

.jm-r23-document .jm-source-body h2 {
  margin: 6px 0 9px;
  padding: 0;
  border: 0;
  color: var(--r23-ink);
  font: 800 clamp(23px, 3vw, 31px) / 1.04 var(--jm-display);
  letter-spacing: -0.035em;
}

.jm-r23-document .jm-source-body > p {
  font-size: 12px;
}

.jm-r23-document .jm-source-actions a {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.jm-r23-document > p:first-of-type {
  margin: 0 0 32px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--r23-rule);
  color: #40566a;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.75;
}

.jm-r23-document > h2 {
  margin: clamp(36px, 6vw, 60px) 0 20px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--r23-rule);
  color: var(--r23-deep);
  font: 800 clamp(29px, 4vw, 42px) / 1 var(--jm-display);
  letter-spacing: -0.04em;
  scroll-margin-top: 105px;
}

.jm-r23-document > h2:first-of-type {
  margin-top: 0;
}

.jm-r23-document > h3 {
  position: relative;
  margin: clamp(37px, 5vw, 52px) 0 12px;
  padding: 0 0 0 19px;
  color: var(--r23-ink);
  font: 800 clamp(22px, 3vw, 30px) / 1.12 var(--jm-display);
  letter-spacing: -0.025em;
  scroll-margin-top: 105px;
}

.jm-r23-document > h3::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--r23-gold);
  content: "";
}

.jm-r23-document > h3 + p {
  margin-top: 0;
  color: var(--r23-slate);
  font-size: 14px;
  line-height: 1.7;
}

.jm-r23-document > p,
.jm-r23-document > li {
  color: #33495d;
  font-size: 15px;
  line-height: 1.75;
}

.jm-r23-document > ul,
.jm-r23-document > ol {
  margin: 16px 0 26px;
  padding: 17px 20px 17px 40px;
  border-left: 5px solid #b9d4e7;
  background: #f4f8fb;
}

.jm-r23-document > ul li,
.jm-r23-document > ol li {
  margin: 8px 0;
  padding-left: 4px;
  color: #33495d;
  font-size: 14px;
  line-height: 1.65;
}

.jm-r23-document > ul li::marker,
.jm-r23-document > ol li::marker {
  color: var(--r23-blue);
  font-weight: 800;
}

.jm-r23-document > p > em:only-child {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid #d5e0e8;
  background: #f8fafc;
  color: #627184;
  font-family: var(--jm-code);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.jm-r23-document > hr {
  margin: 44px 0;
  border: 0;
  border-top: 2px solid var(--r23-rule);
}

.jm-r23-table-scroll {
  width: 100%;
  margin: 20px 0 clamp(38px, 6vw, 58px);
  overflow-x: auto;
  border: 1px solid #bfcfdb;
  background: #fff;
  scrollbar-color: #8eb3cd #eaf1f6;
  scrollbar-width: thin;
}

.jm-r23-table-scroll:focus-visible {
  outline: 3px solid var(--r23-gold);
  outline-offset: 3px;
}

.jm-r23-document .jm-r23-table-scroll table {
  display: table;
  width: 100%;
  min-width: 690px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 12px;
}

.jm-r23-document .jm-r23-table-scroll th,
.jm-r23-document .jm-r23-table-scroll td {
  padding: 12px 13px;
  border: 0;
  border-right: 1px solid #d6e0e8;
  border-bottom: 1px solid #d6e0e8;
  text-align: left;
  vertical-align: top;
}

.jm-r23-document .jm-r23-table-scroll th {
  background: var(--r23-deep);
  color: #fff;
  font-family: var(--jm-code);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jm-r23-document .jm-r23-table-scroll tbody tr:nth-child(even) td {
  background: #f4f8fb;
}

.jm-r23-document .jm-r23-table-scroll th:first-child,
.jm-r23-document .jm-r23-table-scroll td:first-child {
  width: 48px;
  color: var(--r23-deep);
  font-family: var(--jm-code);
  font-weight: 800;
  text-align: center;
}

.jm-r23-document .jm-r23-table-scroll th:first-child {
  color: #fff;
}

.jm-r23-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.jm-r23-pager a {
  display: flex;
  min-height: 86px;
  padding: 18px 20px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--r23-rule);
  border-left: 6px solid var(--r23-gold);
  background: #fff;
  color: var(--r23-deep) !important;
  text-decoration: none !important;
}

.jm-r23-pager a.is-next {
  align-items: flex-end;
  border-right: 6px solid var(--r23-blue);
  border-left-width: 1px;
  text-align: right;
}

.jm-r23-pager small {
  color: var(--r23-slate);
  font-family: var(--jm-code);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jm-r23-pager strong {
  margin-top: 5px;
  font: 800 24px/1 var(--jm-display);
}

/* Official-syllabus reading register: useful academic context before commerce. */
.jm-r23-books {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--r23-rule);
  border-top: 7px solid var(--r23-gold);
  background: #fff;
  box-shadow: var(--jm-shadow);
}

.jm-r23-books-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 38px);
  padding: clamp(24px, 4vw, 38px);
  align-items: stretch;
}

.jm-r23-books-mark {
  display: flex;
  min-height: 162px;
  padding: 17px 14px;
  flex-direction: column;
  justify-content: space-between;
  border-left: 7px solid var(--r23-gold);
  background: var(--r23-deep);
  color: #fff;
}

.jm-r23-books-mark span {
  color: #f1cf99;
  font: 800 9px/1 var(--jm-code);
  letter-spacing: 0.13em;
}

.jm-r23-books-mark strong {
  color: #fff;
  font: 800 25px/0.83 var(--jm-display);
  letter-spacing: -0.055em;
}

.jm-r23-books-intro {
  align-self: center;
}

.jm-r23-books-kicker,
.jm-r23-book-subject {
  color: var(--r23-blue);
  font: 800 9px/1.35 var(--jm-code);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.jm-r23-books-intro h2 {
  max-width: 650px;
  margin: 8px 0 12px;
  color: var(--r23-ink) !important;
  font: 800 clamp(29px, 4vw, 43px) / 0.98 var(--jm-display);
  letter-spacing: -0.045em;
}

.jm-r23-books-intro > p {
  max-width: 680px;
  margin: 0 0 16px;
  color: var(--r23-slate);
  font-size: 13px;
  line-height: 1.65;
}

.jm-r23-books-source {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--r23-deep) !important;
  font: 800 9px/1.45 var(--jm-code);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: #a8bdcc;
  text-underline-offset: 4px;
}

.jm-r23-book-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px 0 0;
  border-top: 1px solid var(--r23-rule);
  background: var(--r23-rule);
  list-style: none;
}

.jm-r23-book {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: clamp(21px, 3.5vw, 30px);
  background: #fff;
}

.jm-r23-book-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b9cbd8;
  border-bottom: 5px solid var(--r23-gold);
  color: var(--r23-deep);
  font: 800 11px/1 var(--jm-code);
}

.jm-r23-book h3 {
  margin: 8px 0 7px;
  color: var(--r23-ink) !important;
  font: 800 clamp(19px, 2.3vw, 24px) / 1.08 var(--jm-display);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.jm-r23-book p {
  margin: 0;
}

.jm-r23-book-authors {
  color: #314a60;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.jm-r23-book-edition {
  margin-top: 3px !important;
  color: #697d8f;
  font: 700 9px/1.5 var(--jm-code);
}

.jm-r23-book-coverage {
  margin-top: 13px !important;
  color: var(--r23-slate);
  font-size: 11px;
  line-height: 1.6;
}

.jm-r23-book-link {
  display: inline-flex;
  max-width: 100%;
  margin-top: 17px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--r23-deep) !important;
  font-size: 10px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--r23-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.jm-r23-book-link span {
  color: var(--r23-blue);
  font-size: 15px;
}

.jm-r23-book-link .jm-r23-book-paid-link {
  color: #53697b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.jm-r23-books-disclosure {
  margin: 0;
  padding: 13px clamp(24px, 4vw, 38px);
  border-top: 1px solid var(--r23-rule);
  background: #edf4f9;
  color: #53697b;
  font-size: 10px;
  line-height: 1.6;
}

.jm-r23-books-disclosure strong {
  color: var(--r23-ink);
}

.jm-r23-books-disclosure--affiliate {
  border-bottom: 1px solid var(--r23-rule);
  background: #fff8ea;
  color: #42586a;
  font-size: 12px;
}

.jm-r23-books-disclosure--affiliate + .jm-r23-book-list {
  border-top: 0;
}

.jm-r23-entry a:focus-visible,
.jm-r23-entry summary:focus-visible {
  outline: 3px solid var(--r23-gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .jm-r23-hero-grid {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 35px;
  }
  .jm-r23-stamp {
    min-height: 210px;
    padding: 22px;
  }
  .jm-r23-stamp strong {
    font-size: 62px;
  }
  .jm-r23-layout {
    grid-template-columns: 1fr;
  }
  .jm-r23-spine {
    display: none;
  }
  .jm-r23-index-mobile {
    display: block;
    margin: 0 0 16px;
    border: 1px solid var(--r23-rule);
    border-left: 6px solid var(--r23-gold);
    background: #fff;
  }
  .jm-r23-index-mobile summary {
    display: flex;
    min-height: 56px;
    padding: 14px 17px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--r23-deep);
    cursor: pointer;
    list-style: none;
  }
  .jm-r23-index-mobile summary::-webkit-details-marker {
    display: none;
  }
  .jm-r23-index-mobile summary span {
    font-weight: 800;
  }
  .jm-r23-index-mobile summary strong {
    color: var(--r23-slate);
    font-family: var(--jm-code);
    font-size: 9px;
    text-transform: uppercase;
  }
  .jm-r23-index-mobile nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    border-top: 1px solid var(--r23-rule);
    background: var(--r23-rule);
  }
  .jm-r23-index-mobile nav a {
    padding: 11px 13px;
    background: #fff;
    color: #40566a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
  }
}

@media (max-width: 760px) {
  .jm-r23-shell {
    width: calc(100% - 32px);
  }
  .jm-r23-hero {
    padding: 30px 0 42px;
  }
  .jm-r23-breadcrumbs {
    margin-bottom: 29px;
  }
  .jm-r23-hero-grid {
    display: block;
  }
  .jm-r23-hero-copy {
    padding-left: 22px;
  }
  .jm-r23-hero h1 {
    font-size: clamp(39px, 12vw, 58px);
  }
  .jm-r23-hero h1 span {
    font-size: 0.58em;
  }
  .jm-r23-stamp {
    position: absolute;
    right: -24px;
    bottom: -38px;
    z-index: -1;
    width: 180px;
    min-height: 175px;
    opacity: 0.2;
  }
  .jm-r23-hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
  }
  .jm-r23-hero-facts div,
  .jm-r23-hero-facts div:first-child {
    min-width: 0;
    padding: 0 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
  .jm-r23-hero-facts div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .jm-r23-semester-nav .jm-r23-shell {
    display: block;
    width: 100%;
  }
  .jm-r23-branch-link {
    min-height: 58px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--r23-rule);
  }
  .jm-r23-semester-links {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .jm-r23-semester-links a,
  .jm-r23-semester-links > span {
    min-width: 76px;
    min-height: 64px;
  }
  .jm-r23-layout {
    width: 100%;
    padding: 24px 16px 56px;
  }
  .jm-r23-index-mobile nav {
    grid-template-columns: 1fr;
  }
  .jm-r23-document {
    padding: 20px 18px 30px;
    border-left-width: 5px;
    box-shadow: none;
  }
  .jm-r23-document > .jm-source-docket {
    grid-template-columns: 1fr;
  }
  .jm-r23-document .jm-source-rail {
    min-height: 62px;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
  }
  .jm-r23-document .jm-source-rail span {
    font-size: 27px;
  }
  .jm-r23-document .jm-source-rail strong {
    text-align: right;
  }
  .jm-r23-document .jm-source-body {
    padding: 22px 17px 25px;
  }
  .jm-r23-document .jm-source-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jm-r23-document .jm-source-actions a {
    width: 100%;
  }
  .jm-r23-document > h2 {
    font-size: clamp(28px, 9vw, 38px);
  }
  .jm-r23-document > h3 {
    padding-left: 15px;
    font-size: clamp(22px, 7vw, 28px);
  }
  .jm-r23-document > ul,
  .jm-r23-document > ol {
    padding: 15px 15px 15px 32px;
  }
  .jm-r23-table-scroll {
    width: calc(100% + 2px);
  }
  .jm-r23-books {
    margin-top: 16px;
    border-top-width: 6px;
    box-shadow: none;
  }
  .jm-r23-books-head {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 22px 18px 25px;
  }
  .jm-r23-books-mark {
    min-height: 58px;
    padding: 12px 14px;
    flex-direction: row;
    align-items: center;
  }
  .jm-r23-books-mark strong {
    font-size: 19px;
    line-height: 0.78;
    text-align: right;
  }
  .jm-r23-books-intro h2 {
    font-size: clamp(29px, 9vw, 38px);
  }
  .jm-r23-book-list {
    grid-template-columns: 1fr;
  }
  .jm-r23-book {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 22px 18px;
  }
  .jm-r23-book-number {
    width: 38px;
    height: 38px;
  }
  .jm-r23-books-disclosure {
    padding: 14px 18px;
  }
  .jm-r23-pager a {
    min-height: 76px;
    padding: 15px;
  }
}

@media (max-width: 460px) {
  .jm-r23-hero-facts dd {
    font-size: 10px;
  }
  .jm-r23-index-mobile summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .jm-r23-pager {
    grid-template-columns: 1fr;
  }
  .jm-r23-pager a.is-next {
    align-items: flex-start;
    border-right-width: 1px;
    border-left: 6px solid var(--r23-blue);
    text-align: left;
  }
}

@media print {
  .jm-r23-semester-nav,
  .jm-r23-spine,
  .jm-r23-index-mobile,
  .jm-r23-pager,
  .jm-r23-document .jm-source-actions,
  .jm-r23-document .jm-source-body small {
    display: none !important;
  }
  .jm-r23-hero {
    padding: 24px 0;
    background: #fff;
    color: #000;
  }
  .jm-r23-hero-copy {
    padding-left: 18px;
    border-color: #777;
  }
  .jm-r23-hero h1,
  .jm-r23-hero h1 span,
  .jm-r23-hero-copy > p,
  .jm-r23-hero-facts dd {
    color: #000;
  }
  .jm-r23-stamp,
  .jm-r23-breadcrumbs {
    display: none;
  }
  .jm-r23-layout {
    display: block;
    width: 100%;
    padding: 20px 0;
  }
  .jm-r23-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .jm-r23-document > h2,
  .jm-r23-document > h3 {
    break-after: avoid;
  }
  .jm-r23-document > ul,
  .jm-r23-table-scroll {
    break-inside: avoid;
  }
  .jm-r23-books {
    border: 1px solid #aaa;
    box-shadow: none;
    break-inside: avoid;
  }
  .jm-r23-book-link,
  .jm-r23-books-source {
    display: none;
  }
}

/* R23 directory: an academic course map rather than a generic card archive. */
.jm-r23-directory {
  --r23d-deep: #094f83;
  --r23d-ink: #11263a;
  --r23d-blue: #0b72bd;
  --r23d-gold: #d3a04d;
  --r23d-paper: #f3f7fa;
  --r23d-rule: #cad9e5;
  --r23d-muted: #5f7182;
  --r23d-code: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow: hidden;
  background: var(--r23d-paper);
  color: var(--r23d-ink);
}

.jm-r23-directory *,
.jm-r23-directory *::before,
.jm-r23-directory *::after {
  box-sizing: border-box;
}

.jm-r23-index-shell {
  width: min(100% - 44px, 1180px);
  margin-inline: auto;
}

.jm-r23-index-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 3.6vw, 48px) 0 clamp(52px, 7vw, 92px);
  overflow: hidden;
  background: var(--r23d-deep);
  color: #fff;
}

.jm-r23-index-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 86%);
}

.jm-r23-index-hero::after {
  position: absolute;
  z-index: -1;
  right: -0.05em;
  bottom: -0.27em;
  color: rgba(255, 255, 255, 0.032);
  content: "R23";
  font: 800 clamp(190px, 29vw, 430px) / 0.8 var(--jm-display);
  letter-spacing: -0.1em;
  pointer-events: none;
}

.jm-r23-index-crumbs {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(44px, 7vw, 86px);
  color: #a9c8dc;
  font: 800 10px/1.2 var(--r23d-code);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.jm-r23-index-crumbs a {
  color: #fff !important;
  text-decoration: none;
}

.jm-r23-index-crumbs a:hover {
  color: #f2ca8b !important;
}

.jm-r23-index-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: end;
}

.jm-r23-index-kicker,
.jm-r23-section-head > div > span,
.jm-r23-degree-map-head span,
.jm-r23-authority-note > span {
  display: block;
  font: 800 10px/1.3 var(--r23d-code);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jm-r23-index-kicker {
  margin-bottom: 19px;
  color: #f2ca8b;
}

.jm-r23-index-intro h1 {
  max-width: 700px;
  margin: 0 !important;
  color: #fff !important;
  font: 800 clamp(48px, 6.2vw, 82px) / 0.94 var(--jm-display) !important;
  letter-spacing: -0.064em;
}

.jm-r23-index-intro h1 span {
  display: block;
  color: #f4cc8c;
}

.jm-r23-index-intro > p:not(.jm-r23-index-scope) {
  max-width: 650px;
  margin: 26px 0 0;
  color: #d4e4ef;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.72;
}

.jm-r23-index-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 27px 0 0;
  color: #aac6d8;
  font: 700 11px/1.4 var(--r23d-code);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.jm-r23-index-scope strong {
  color: #fff;
}

.jm-r23-index-scope span {
  position: relative;
}

.jm-r23-index-scope span::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 3px;
  background: var(--r23d-gold);
  content: "";
  transform: translateY(-50%);
}

.jm-r23-degree-map {
  position: relative;
  padding: 25px 25px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 6px solid var(--r23d-gold);
  background: rgba(5, 42, 70, 0.42);
  box-shadow: 16px 16px 0 rgba(5, 37, 62, 0.42);
}

.jm-r23-degree-map-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.jm-r23-degree-map-head span {
  margin-bottom: 6px;
  color: #9fc0d5;
}

.jm-r23-degree-map-head h2 {
  max-width: 320px;
  margin: 0 !important;
  color: #fff !important;
  font: 800 22px/1.14 var(--jm-display) !important;
  letter-spacing: -0.035em;
}

.jm-r23-degree-map-head > strong {
  color: transparent;
  font: 800 42px/0.9 var(--jm-display);
  letter-spacing: -0.07em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.42);
}

.jm-r23-degree-map ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 24px 0 18px;
  padding: 0;
  list-style: none;
}

.jm-r23-degree-map ol::before {
  position: absolute;
  top: 26px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: rgba(242, 202, 139, 0.48);
  content: "";
}

.jm-r23-degree-map li {
  position: relative;
  min-width: 0;
}

.jm-r23-degree-map li > small {
  display: block;
  margin-bottom: 17px;
  color: #9fc0d5;
  font: 700 8px/1 var(--r23d-code);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.jm-r23-degree-map li::after {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--r23d-deep);
  background: var(--r23d-gold);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.jm-r23-degree-map li a {
  display: grid;
  min-height: 63px;
  align-content: center;
  padding: 9px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.jm-r23-degree-map li a:hover {
  border-color: #f2ca8b;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.jm-r23-degree-map li a span {
  color: #a8c6d9;
  font: 700 7px/1.2 var(--r23d-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jm-r23-degree-map li a strong {
  margin-top: 4px;
  color: #fff;
  font: 800 18px/1 var(--jm-display);
}

.jm-r23-degree-map > p {
  margin: 0;
  color: #9fc0d5;
  font-size: 10px;
  line-height: 1.55;
}

.jm-r23-index-body {
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(70px, 9vw, 116px);
}

.jm-r23-common-year {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: clamp(58px, 8vw, 96px);
  padding: 20px 24px;
  border: 1px solid var(--r23d-rule);
  border-left: 6px solid var(--r23d-gold);
  background: #fff;
}

.jm-r23-common-year-mark {
  color: var(--r23d-deep);
  font: 800 34px/1 var(--jm-display);
  letter-spacing: -0.05em;
  text-align: center;
}

.jm-r23-common-year > div {
  padding-left: 22px;
  border-left: 1px solid var(--r23d-rule);
}

.jm-r23-common-year strong {
  color: var(--r23d-ink);
  font: 800 16px/1.35 var(--jm-display);
}

.jm-r23-common-year p {
  margin: 3px 0 0;
  color: var(--r23d-muted);
  font-size: 12px;
  line-height: 1.55;
}

.jm-r23-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--r23d-rule);
}

.jm-r23-section-head > div > span {
  margin-bottom: 9px;
  color: var(--r23d-blue);
}

.jm-r23-section-head h2 {
  max-width: 720px;
  margin: 0 !important;
  color: var(--r23d-ink) !important;
  font: 800 clamp(32px, 4.3vw, 52px) / 0.98 var(--jm-display) !important;
  letter-spacing: -0.055em;
}

.jm-r23-section-head > p {
  margin: 0;
  color: var(--r23d-muted);
  font-size: 13px;
  line-height: 1.65;
}

.jm-r23-branch-group {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  padding: 34px 0 52px;
}

.jm-r23-branch-group + .jm-r23-branch-group {
  border-top: 1px solid var(--r23d-rule);
}

.jm-r23-branch-group > header {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.jm-r23-branch-group > header > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid var(--r23d-deep);
  color: var(--r23d-deep);
  font: 800 10px/1 var(--r23d-code);
}

.jm-r23-branch-group.is-specialisation > header > span {
  border-color: var(--r23d-gold);
  background: var(--r23d-gold);
  color: #fff;
}

.jm-r23-branch-group h3 {
  margin: 0 !important;
  color: var(--r23d-ink) !important;
  font: 800 18px/1.15 var(--jm-display) !important;
  letter-spacing: -0.025em;
}

.jm-r23-branch-group > header p {
  margin: 5px 0 0;
  color: var(--r23d-muted);
  font-size: 10px;
  line-height: 1.45;
}

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

.jm-r23-branch-card {
  display: grid;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--r23d-rule);
  border-top: 4px solid var(--r23d-deep);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.is-specialisation .jm-r23-branch-card {
  border-top-color: var(--r23d-gold);
}

.jm-r23-branch-card:hover {
  border-right-color: #9bb7cb;
  border-bottom-color: #9bb7cb;
  border-left-color: #9bb7cb;
  box-shadow: 8px 8px 0 #e4edf3;
  transform: translate(-2px, -2px);
}

.jm-r23-branch-card-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.jm-r23-branch-code {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-right: 1px solid var(--r23d-rule);
  color: var(--r23d-deep);
  font: 800 19px/1 var(--jm-display);
  letter-spacing: -0.04em;
}

.is-specialisation .jm-r23-branch-code {
  color: #8a5d19;
}

.jm-r23-branch-card h4 {
  margin: 0 !important;
  color: var(--r23d-ink) !important;
  font: 800 19px/1.16 var(--jm-display) !important;
  letter-spacing: -0.025em;
}

.jm-r23-branch-card-head p {
  margin: 5px 0 0;
  color: var(--r23d-muted);
  font-size: 10px;
  line-height: 1.45;
}

.jm-r23-branch-semesters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-top: 20px;
}

.jm-r23-branch-semesters a {
  display: grid;
  min-height: 49px;
  align-content: center;
  padding: 5px 2px;
  border: 1px solid #d8e3eb;
  background: #f7fafc;
  color: var(--r23d-deep) !important;
  text-align: center;
  text-decoration: none !important;
}

.jm-r23-branch-semesters a:hover {
  border-color: var(--r23d-blue);
  background: #eaf4fb;
}

.jm-r23-branch-semesters span {
  color: #607184;
  font: 700 6px/1 var(--r23d-code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jm-r23-branch-semesters strong {
  margin-top: 4px;
  color: inherit;
  font: 800 12px/1 var(--jm-display);
}

.jm-r23-branch-overview {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #e4ebf0;
  color: var(--r23d-deep) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none !important;
}

.jm-r23-branch-overview span {
  color: var(--r23d-gold);
  font-size: 17px;
}

.jm-r23-semester-finder {
  margin-top: clamp(62px, 9vw, 112px);
  scroll-margin-top: 110px;
}

.jm-r23-semester-ledger {
  border-top: 5px solid var(--r23d-deep);
  background: #fff;
  box-shadow: 11px 11px 0 #e1eaf0;
}

.jm-r23-semester-ledger details {
  scroll-margin-top: 110px;
  border-right: 1px solid var(--r23d-rule);
  border-bottom: 1px solid var(--r23d-rule);
  border-left: 1px solid var(--r23d-rule);
}

.jm-r23-semester-ledger summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto 24px;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  padding: 15px 20px;
  color: var(--r23d-ink);
  cursor: pointer;
  list-style: none;
}

.jm-r23-semester-ledger summary::-webkit-details-marker {
  display: none;
}

.jm-r23-semester-ledger details[open] summary {
  background: var(--r23d-deep);
  color: #fff;
}

.jm-r23-semester-year,
.jm-r23-semester-count {
  color: #657587;
  font: 800 9px/1.2 var(--r23d-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jm-r23-semester-ledger details[open] .jm-r23-semester-year,
.jm-r23-semester-ledger details[open] .jm-r23-semester-count {
  color: #afd0e3;
}

.jm-r23-semester-ledger summary > strong {
  color: inherit;
  font: 800 20px/1 var(--jm-display);
}

.jm-r23-semester-toggle {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.jm-r23-semester-toggle::before,
.jm-r23-semester-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.jm-r23-semester-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.jm-r23-semester-ledger details[open] .jm-r23-semester-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.jm-r23-semester-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--r23d-rule);
}

.jm-r23-semester-branches a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  background: #fff;
  color: var(--r23d-ink) !important;
  text-decoration: none !important;
}

.jm-r23-semester-branches a:hover {
  background: #edf6fc;
}

.jm-r23-semester-branches a > span {
  color: var(--r23d-deep);
  font: 800 11px/1 var(--r23d-code);
  letter-spacing: 0.04em;
}

.jm-r23-semester-branches a > strong {
  color: inherit;
  font-size: 12px;
  line-height: 1.35;
}

.jm-r23-semester-branches a > i {
  color: var(--r23d-gold);
  font-size: 18px;
  font-style: normal;
}

.jm-r23-authority-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  margin-top: clamp(54px, 7vw, 84px);
  padding: 26px 0 0;
  border-top: 1px solid var(--r23d-rule);
}

.jm-r23-authority-note > span {
  width: max-content;
  padding: 7px 9px;
  border: 1px solid var(--r23d-gold);
  color: #875a17;
}

.jm-r23-authority-note h2 {
  margin: 0 !important;
  color: var(--r23d-ink) !important;
  font: 800 19px/1.25 var(--jm-display) !important;
  letter-spacing: -0.025em;
}

.jm-r23-authority-note p {
  margin: 5px 0 0;
  color: var(--r23d-muted);
  font-size: 12px;
}

.jm-r23-directory a:focus-visible,
.jm-r23-directory summary:focus-visible {
  outline: 3px solid var(--r23d-gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .jm-r23-index-hero-grid {
    grid-template-columns: 1fr;
  }
  .jm-r23-degree-map {
    width: min(100%, 670px);
  }
  .jm-r23-branch-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .jm-r23-branch-group > header {
    max-width: 430px;
  }
}

@media (max-width: 720px) {
  .jm-r23-index-shell {
    width: min(100% - 32px, 1180px);
  }
  .jm-r23-index-hero {
    padding-top: 22px;
    padding-bottom: 52px;
  }
  .jm-r23-index-crumbs {
    margin-bottom: 46px;
  }
  .jm-r23-index-intro h1 {
    font-size: clamp(43px, 14.5vw, 66px) !important;
  }
  .jm-r23-index-scope {
    display: grid;
    gap: 5px;
  }
  .jm-r23-index-scope span::before {
    display: none;
  }
  .jm-r23-degree-map {
    width: 100%;
    padding: 20px 18px 18px;
    box-shadow: 8px 8px 0 rgba(5, 37, 62, 0.42);
  }
  .jm-r23-degree-map ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 7px;
  }
  .jm-r23-degree-map ol::before,
  .jm-r23-degree-map li::after {
    display: none;
  }
  .jm-r23-degree-map li > small {
    margin-bottom: 5px;
  }
  .jm-r23-common-year {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 17px 16px;
  }
  .jm-r23-common-year-mark {
    font-size: 25px;
  }
  .jm-r23-common-year > div {
    padding-left: 14px;
  }
  .jm-r23-section-head {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .jm-r23-section-head h2 {
    font-size: clamp(31px, 10vw, 44px) !important;
  }
  .jm-r23-branch-grid {
    grid-template-columns: 1fr;
  }
  .jm-r23-branch-card {
    padding: 18px 15px;
  }
  .jm-r23-branch-card-head {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 13px;
  }
  .jm-r23-branch-semesters {
    gap: 4px;
  }
  .jm-r23-branch-semesters a {
    min-height: 48px;
  }
  .jm-r23-semester-ledger summary {
    grid-template-columns: 66px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 14px;
  }
  .jm-r23-semester-count {
    display: none;
  }
  .jm-r23-semester-branches {
    grid-template-columns: 1fr;
  }
  .jm-r23-semester-branches a {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }
  .jm-r23-authority-note {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 390px) {
  .jm-r23-index-shell {
    width: min(100% - 24px, 1180px);
  }
  .jm-r23-degree-map-head > strong {
    display: none;
  }
  .jm-r23-branch-code {
    font-size: 17px;
  }
  .jm-r23-branch-card h4 {
    font-size: 17px !important;
  }
  .jm-r23-branch-semesters strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jm-r23-branch-card,
  .jm-r23-degree-map li a,
  .jm-r23-semester-toggle::after {
    transition: none;
  }
}

@media print {
  .jm-r23-index-hero {
    padding: 24px 0;
    background: #fff;
    color: #000;
  }
  .jm-r23-index-hero::before,
  .jm-r23-index-hero::after,
  .jm-r23-degree-map,
  .jm-r23-index-crumbs,
  .jm-r23-semester-finder {
    display: none !important;
  }
  .jm-r23-index-intro h1,
  .jm-r23-index-intro h1 span,
  .jm-r23-index-intro > p:not(.jm-r23-index-scope),
  .jm-r23-index-scope,
  .jm-r23-index-scope strong {
    color: #000 !important;
  }
  .jm-r23-branch-card {
    break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
  }
}
