.mobile-dock,
.mobile-filter-entry,
.active-filters,
.comparison-mobile {
  display: none;
}
.filter-sheet {
  border: 0;
  padding: 0;
  color: var(--ink);
}
.preview-context > summary {
  display: none;
}
.hero-lead-mobile {
  display: none;
}
.course-dialog .course-state {
  padding: 14px 20px;
  background: #f9f1f2;
  border-left: 3px solid var(--wine);
  color: var(--wine);
}

@media (max-width: 700px), (max-width: 950px) and (pointer: coarse) {
  :root {
    --mobile-bottom-space: var(
      --mobile-dock-height,
      calc(76px + env(safe-area-inset-bottom))
    );
  }
  html {
    scroll-padding-top: calc(var(--mobile-header-height, 76px) + 20px);
    -webkit-text-size-adjust: 100%;
  }
  body,
  body.has-comparison {
    padding-bottom: var(--mobile-bottom-space);
  }
  body.has-comparison {
    --mobile-bottom-space: var(
      --mobile-comparison-height,
      calc(86px + env(safe-area-inset-bottom))
    );
  }
  .container {
    width: calc(100% - 40px);
  }
  :is(h1, h2, h3, p, dd, dt, a, button, label, summary) {
    overflow-wrap: break-word;
  }
  .utility-bar {
    padding-top: env(safe-area-inset-top);
  }
  .nav-shell {
    min-height: 76px;
    gap: 6px;
  }
  .nav-shell .brand-logo {
    width: min(245px, calc(100vw - 148px));
  }
  :is(.nav-search, .nav-toggle) {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }
  :is(.icon-button, .cinema-choices button) {
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }
  :is(.button, .text-link, summary) {
    min-height: 48px;
  }
  .button {
    font-size: 0.875rem;
  }
  :is(input, select, textarea) {
    font-size: 1rem !important;
  }
  .site-menu {
    max-height: calc(
      100dvh - var(--mobile-header-height, 76px) - var(--mobile-bottom-space)
    );
    overscroll-behavior: contain;
    overflow-y: auto;
  }
  .site-menu > a,
  .career-menu > summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
  }
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(max(70px, 4.6rem), 1fr));
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    padding: 8px max(12px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    background: #fff;
    border-top: 1px solid #c8d7d0;
    box-shadow: 0 -6px 24px #17352b0c;
  }
  .mobile-dock :is(a, button) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 60px;
    border: 0;
    border-radius: 4px;
    padding: 5px 2px;
    font-size: 0.6875rem;
    line-height: 1.4;
    font-weight: 500;
    background: transparent;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .mobile-dock :is(a, button) > span {
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .mobile-dock :is(a, button):active,
  .mobile-dock [aria-current] {
    background: #edf4f1;
    color: var(--teal);
  }
  .mobile-dock .icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
  }
  :is(.dialog-open, .has-comparison, .mobile-input-active) .mobile-dock,
  html:not(.experience-ready) .mobile-dock button,
  html:not(.experience-ready) .mobile-filter-entry {
    display: none;
  }
  html:not(.experience-ready) .mobile-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cinema-hero {
    height: min(660px, calc(100svh - 235px));
    min-height: max(450px, var(--mobile-hero-min, 450px));
    padding: 0;
    background: #203b32;
  }
  .cinema-stage {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .cinema-stage :is(.hero-media, .cinema-image) {
    height: 100%;
    object-position: 63% 35%;
    transform-origin: 63% 35%;
  }
  .cinema-stage [data-scene="1"] img {
    object-position: 72% 35%;
  }
  .cinema-stage [data-scene="2"] img {
    object-position: 58% 35%;
  }
  .cinema-hero .hero-scrim {
    inset: 0;
    height: 100%;
    background: linear-gradient(
      0deg,
      #142d27 0%,
      #142d27ed 27%,
      #142d27b0 49%,
      #142d2720 78%,
      #142d2700 100%
    );
  }
  .cinema-hero .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    padding-bottom: 24px;
  }
  .cinema-hero .hero-copy {
    padding: 0;
    max-width: none;
    width: 100%;
  }
  .cinema-hero .eyebrow {
    font-size: 0.625rem;
    margin-bottom: 8px;
  }
  .cinema-hero h1 {
    font-size: 3.25rem;
    margin-bottom: 10px;
    line-height: 1;
    overflow-wrap: anywhere;
  }
  .cinema-hero .hero-statement {
    font-size: 1.75rem;
    line-height: 1.12;
    margin-bottom: 14px;
  }
  .cinema-hero .hero-lead {
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 365px;
    margin-bottom: 18px;
  }
  .cinema-hero .hero-secondary {
    display: none;
  }
  .hero-lead-wide {
    display: none;
  }
  .hero-lead-mobile {
    display: inline;
  }
  .cinema-hero .hero-actions {
    display: block;
  }
  .cinema-hero .button {
    display: flex;
    justify-content: space-between;
    min-height: 50px;
    padding: 13px 18px;
    max-width: 365px;
  }
  .cinema-hero .hero-status {
    font-size: 0.6875rem;
    line-height: 1.5;
    margin-top: 12px;
    max-width: 365px;
  }
  .cinema-controls {
    inset: 44px 16px auto auto;
    gap: 8px;
  }
  .cinema-choices {
    gap: 4px;
  }
  .cinema-choices button,
  .cinema-pause {
    width: 44px;
    height: 44px;
    font-size: 0.6875rem;
    background: #17342cd9;
  }
  .cinema-hero .hero-image-note {
    top: 14px;
    right: 16px;
    font-size: 0.5625rem;
    max-width: calc(100% - 32px);
    padding: 3px 5px;
  }
  .quick-links a {
    min-height: 58px;
  }

  .mobile-filter-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    border-block: 1px solid var(--line);
  }
  .mobile-filter-entry > span {
    font-size: 0.8125rem;
    color: var(--teal);
    font-weight: 500;
  }
  [data-filter-total] {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    border-radius: 50%;
    font-size: 0.6875rem;
    background: var(--teal);
    color: #fff;
  }
  [data-filter-total][hidden] {
    display: none;
  }
  .active-filters:not(:empty) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
  }
  .filter-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    min-height: 44px;
    max-width: 100%;
    border: 1px solid #c4d4cd;
    border-radius: 4px;
    background: #edf4f1;
    font-size: 0.8125rem;
    text-align: left;
  }
  .filter-chip img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  .filter-sheet {
    width: 100%;
    max-width: none;
    max-height: min(740px, var(--mobile-visible-height, 100dvh));
    margin: auto 0 0;
    border-radius: 8px 8px 0 0;
    padding: 0 20px calc(18px + env(safe-area-inset-bottom));
    background: #fff;
    overscroll-behavior: contain;
  }
  .filter-sheet::backdrop {
    background: #102f24b3;
  }
  .filter-sheet-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 0 20px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
  }
  .filter-sheet-heading .eyebrow {
    font-size: 0.625rem;
    margin-bottom: 8px;
  }
  .filter-sheet-heading h2 {
    font-size: 2rem;
  }
  .filter-sheet .explorer-filters {
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px 0 20px;
    gap: 22px;
    border: 0;
  }
  .filter-sheet .segmented {
    grid-column: auto;
  }
  .segmented span {
    font-size: 0.8125rem;
    min-height: 48px;
    display: grid;
    place-items: center;
  }
  .field-label {
    font-size: 0.8125rem;
  }
  .field-label :is(input, select) {
    min-height: 52px;
  }
  .filter-sheet-actions {
    display: flex;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    position: sticky;
    bottom: 0;
    background: #fff;
  }
  .filter-sheet-actions .button {
    flex: 1;
    justify-content: center;
  }
  .explorer-intro {
    padding-bottom: 26px;
  }
  :is(.explorer-intro, .document-intro) h1 {
    font-size: 2.5rem;
  }
  :is(.explorer-intro, .document-intro) p:not(.eyebrow) {
    font-size: 0.9375rem;
  }
  .results-heading {
    padding-block: 18px;
  }
  .explorer-page .results-heading > p:first-child {
    display: none;
  }
  .results-heading p,
  .media-note {
    font-size: 0.75rem;
  }
  .explorer-card h2 {
    font-size: 2rem;
  }
  .career-state {
    font-size: 0.75rem;
  }
  .explorer-card :is(dt, .explorer-category) {
    font-size: 0.75rem;
  }
  .explorer-card-actions {
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 12px;
  }
  .explorer-card-actions :is(label, a) {
    min-height: 48px;
  }
  .comparison-dock {
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  }
  .comparison-dock > div {
    display: block;
  }
  .dock-selections {
    display: none;
  }
  .dock-actions {
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .dock-actions > span {
    font-size: 0.75rem;
    flex: 1 1 4rem;
  }
  .dock-actions .button {
    font-size: 0.8125rem;
    padding: 12px 16px;
    flex: 1 1 9rem;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .experience-dialog {
    position: fixed;
    inset: var(--mobile-visible-top, 0px) 0 auto;
    width: 100%;
    max-width: none;
    height: var(--mobile-visible-height, 100dvh);
    max-height: var(--mobile-visible-height, 100dvh);
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior: contain;
  }
  .experience-dialog[open] {
    display: flex;
    flex-direction: column;
  }
  .dialog-heading {
    padding: 22px 20px 18px;
    flex-shrink: 0;
    background: #fff;
    gap: 16px;
  }
  .dialog-heading h2 {
    font-size: 1.875rem;
    line-height: 1.1;
  }
  .dialog-heading > div {
    min-width: 0;
    max-height: 38dvh;
    overflow-y: auto;
  }
  .dialog-heading .icon-button {
    width: 48px;
    height: 48px;
  }
  .global-search-form {
    flex-shrink: 0;
  }
  .search-count {
    font-size: 0.8125rem;
    flex-shrink: 0;
  }
  .search-results {
    flex: 1;
    min-height: 0;
    max-height: none;
  }
  .search-group strong {
    font-size: 0.9375rem;
  }
  .search-group :is(h3, small) {
    font-size: 0.75rem;
  }
  .search-bottom {
    flex-shrink: 0;
    gap: 0 18px;
    padding-block: 6px;
    font-size: 0.75rem;
  }
  .search-bottom a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .compare-notice {
    font-size: 0.75rem;
    flex-shrink: 0;
    padding-bottom: 18px;
  }
  .comparison-scroll {
    display: none;
  }
  .comparison-mobile {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    padding: 0 20px 25px;
  }
  .comparison-selected > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }
  .comparison-selected > div > img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .comparison-selected > div > span {
    flex: 1;
    min-width: 0;
  }
  .comparison-selected strong {
    display: block;
    font: 500 1.375rem/1.08 var(--serif);
  }
  .comparison-selected small {
    display: block;
    font-size: 0.6875rem;
    margin-top: 7px;
    color: var(--teal);
  }
  .comparison-selected button {
    border: 0;
  }
  .comparison-criterion {
    border-top: 1px solid var(--line);
    padding-block: 25px;
  }
  .comparison-criterion h3 {
    font: 600 0.875rem/1.4 var(--sans);
    color: var(--teal);
    margin-bottom: 16px;
  }
  .comparison-criterion dl {
    margin: 0;
  }
  .comparison-criterion dl > div {
    padding: 12px 0;
  }
  .comparison-criterion dt {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .comparison-criterion dd {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  .comparison-criterion small {
    font-size: 0.75rem;
    color: var(--muted);
  }
  .comparison-criterion a {
    color: var(--wine);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .comparison-criterion a .icon {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
  }

  .degree-anchor-nav a {
    font-size: 0.6875rem;
  }
  .curriculum-heading > p {
    font-size: 0.9375rem;
  }
  .curriculum-status {
    font-size: 0.75rem;
  }
  .period-tabs {
    position: sticky;
    top: calc(
      var(--mobile-header-height, 76px) + var(--mobile-degree-height, 60px)
    );
    z-index: 12;
    background: #fff;
    margin-block: 24px 16px;
    padding-block: 6px;
  }
  .period-tabs button {
    padding: 14px 4px;
    min-height: 50px;
    text-align: center;
  }
  .period-tabs button > span,
  .period-tabs small {
    display: none;
  }
  .period-tabs strong {
    font-size: 0.75rem;
  }
  .curriculum-course summary {
    gap: 10px;
    min-height: 76px;
    padding-block: 20px;
  }
  .course-index {
    font-size: 0.6875rem;
  }
  .course-name {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  .course-hours {
    font-size: 0.75rem;
  }
  .course-reading {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 20px 30px;
    flex: 1;
  }
  .course-state {
    font-size: 0.8125rem;
  }
  .course-reading .course-detail {
    background: white;
    padding: 26px 0 0;
    margin: 0;
  }
  .course-reading dl {
    display: block;
    margin-bottom: 24px;
  }
  .course-reading dl > div {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }
  .course-reading dt,
  .course-reading p {
    font-size: 0.875rem;
    line-height: 1.65;
  }
  .course-reading dd {
    font-size: 1.125rem;
  }
  .course-reading .course-review-note {
    font-size: 0.9375rem;
    color: var(--wine);
  }
  .document-row h2 {
    font-size: 1.625rem;
  }
  .document-category,
  .document-metadata {
    font-size: 0.6875rem;
  }
  .document-row-note {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .document-code {
    font-size: 0.75rem;
  }
  .document-actions .button,
  .document-actions .text-link {
    font-size: 0.8125rem;
  }
  .document-actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .document-dialog .dialog-heading {
    order: 0;
  }
  .preview-context {
    order: 1;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
  }
  .preview-context > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 20px;
    font-size: 0.8125rem;
    color: var(--teal);
    list-style: none;
  }
  .preview-context > summary::-webkit-details-marker {
    display: none;
  }
  .preview-context[open] > summary .icon {
    transform: rotate(45deg);
  }
  .preview-note {
    padding: 0 20px 18px;
    max-height: 25dvh;
    overflow-y: auto;
    font-size: 0.8125rem;
  }
  .preview-canvas {
    order: 2;
    height: auto;
    min-height: 0;
    flex: 1;
    padding: 16px;
  }
  .preview-toolbar {
    order: 3;
    padding: 10px 16px;
    flex-shrink: 0;
    gap: 8px;
    flex-wrap: wrap;
  }
  .preview-toolbar .icon-button,
  .preview-toolbar select {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .preview-toolbar > div {
    gap: 4px;
  }
  .preview-toolbar .button {
    padding: 11px 12px;
    font-size: 0.75rem;
  }
  .preview-toolbar span {
    font-size: 0.75rem;
  }
  .preview-accessibility {
    order: 4;
    font-size: 0.6875rem;
    padding: 8px 20px 10px;
    flex-shrink: 0;
  }
  .degree-source,
  .document-context {
    font-size: 0.8125rem;
  }
  .footer-bottom {
    padding-bottom: 12px;
  }
}
@media (max-width: 370px) {
  .cinema-hero h1 {
    font-size: 2.875rem;
  }
  .cinema-hero .hero-statement {
    font-size: 1.5rem;
  }
  .cinema-hero .hero-lead {
    font-size: 0.8125rem;
  }
  .cinema-hero .hero-content {
    padding-bottom: 20px;
  }
  .dock-actions {
    gap: 8px;
  }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .filter-sheet[open] {
    animation: filter-entrance 180ms ease-out;
  }
  @keyframes filter-entrance {
    from {
      transform: translateY(24px);
      opacity: 0.6;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
