/* ================================================================
   George Gerbner Archive — Penn-branded Redesign
   Penn Blue #011F5B · Acumin Pro (sans-serif fallback stack)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --penn-blue:        #011F5B;
  --penn-blue-mid:    #1D4199;
  --penn-blue-light:  #82AFCA;
  --penn-blue-pale:   #DDE8F2;
  --penn-gold:        #C89211;
  --penn-red:         #990000;
  --sidebar-bg:       #011F5B;
  --sidebar-w:        270px;
  --gray-50:          #F8F9FB;
  --gray-100:         #F1F3F7;
  --gray-200:         #E2E7EF;
  --gray-500:         #8492A6;
  --gray-700:         #3D4A5C;
  --gray-900:         #111827;
  --white:            #FFFFFF;
  --font-main: 'Acumin Pro', 'Acumin Variable Concept', 'Source Sans 3', -apple-system,
               BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--gray-50);
  margin: 0;
  padding: 0;
}

a { color: var(--penn-blue); }
a:hover { color: var(--penn-blue-mid); }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: var(--penn-blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.header-eyebrow {
  background: rgba(0,0,0,0.30);
  padding: 5px 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-eyebrow-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-eyebrow a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.header-eyebrow a:hover { color: #fff; }
.header-eyebrow .pipe {
  color: rgba(255,255,255,0.25);
  margin: 0 8px;
}

.header-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.site-logo:hover { color: inherit; text-decoration: none; }

.logo-bar {
  width: 4px;
  height: 44px;
  background: var(--penn-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.logo-text-block .archive-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
}

.logo-text-block .archive-sub {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 1px;
}

.header-asc-logo-link {
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 20px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-asc-logo-link:hover { opacity: 0.9; text-decoration: none; }

.header-logo-img {
  background: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.20);
  max-height: 42px;
  width: auto;
  display: block;
}

/* ================================================================
   BREADCRUMB BAR
   ================================================================ */
.breadcrumb-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 9px 28px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.breadcrumb-bar .bc-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1400px;
}

.breadcrumb-bar .bc-item + .bc-item::before {
  content: '›';
  margin: 0 8px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1;
}

.breadcrumb-bar .bc-item a {
  color: var(--penn-blue);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-bar .bc-item a:hover { text-decoration: underline; }

.breadcrumb-bar .bc-item.bc-active {
  color: var(--gray-700);
  font-weight: 400;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.site-body {
  display: flex;
  min-height: calc(100vh - 160px);
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar-bg);
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-label {
  padding: 18px 20px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
}

/* Nav list — level 1 */
.g-nav {
  list-style: none;
  margin: 0;
  padding: 6px 0 20px;
}

.g-nav > li > a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  line-height: 1.35;
}
.g-nav > li > a:hover {
  background: rgba(255,255,255,0.09);
  color: #fff;
  border-left-color: var(--penn-gold);
}
.g-nav > li > a.nav-open,
.g-nav > li > a.nav-active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
  border-left-color: var(--penn-gold);
}

/* Nav sub-list — level 2 */
.g-nav-sub {
  list-style: none;
  margin: 0;
  padding: 2px 0 6px;
  background: rgba(0,0,0,0.18);
}

.g-nav-sub li a {
  display: block;
  padding: 7px 18px 7px 34px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  line-height: 1.35;
}
.g-nav-sub li a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-left-color: rgba(255,255,255,0.3);
}
.g-nav-sub li a.nav-active {
  color: #fff;
  font-weight: 600;
  border-left-color: var(--penn-gold);
  background: rgba(255,255,255,0.1);
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 36px 44px 60px;
  background: var(--white);
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--penn-blue);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-divider {
  height: 3px;
  background: linear-gradient(to right, var(--penn-blue), var(--penn-blue-pale));
  border: none;
  border-radius: 2px;
  margin: 10px 0 28px;
  width: 80px;
}

.section-image {
  float: right;
  margin: 0 0 24px 32px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(1,31,91,0.14);
  max-width: 200px;
  height: auto;
}

/* Section intro text (landing pages) */
.section-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
  max-width: 820px;
}
.section-intro p { margin-bottom: 1.1em; }
.section-intro h2, .section-intro h3 {
  color: var(--penn-blue);
  font-weight: 600;
  margin-top: 1.5em;
}

/* ================================================================
   DOCUMENT LIST
   ================================================================ */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--penn-blue-light);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px 14px;
  margin-bottom: 10px;
  transition: border-left-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.doc-item:hover {
  border-left-color: var(--penn-blue);
  box-shadow: 0 2px 10px rgba(1,31,91,0.08);
  background: #fff;
}

.doc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 6px;
  line-height: 1.45;
  display: block;
}

.doc-description {
  font-size: 13px;
  color: var(--gray-700);
  margin: 0 0 8px;
  line-height: 1.6;
}

.doc-meta {
  display: inline-block;
  font-size: 12px;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 6px 12px;
  margin: 4px 0 10px;
  line-height: 1.6;
}
.doc-meta br { display: block; }

.doc-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  color: var(--penn-blue);
  background: transparent;
  border: 1.5px solid var(--penn-blue);
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-view:hover {
  background: var(--penn-blue);
  color: #fff;
  text-decoration: none;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  color: #fff;
  background: var(--penn-blue);
  border: 1.5px solid var(--penn-blue);
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn-download:hover {
  background: var(--penn-blue-mid);
  border-color: var(--penn-blue-mid);
  color: #fff;
  text-decoration: none;
}

/* ================================================================
   HOME PAGE
   ================================================================ */
.home-main {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

/* ── Slideshow ── */
.home-hero {
  width: 100%;
  background: var(--penn-blue);
}

.slideshow {
  position: relative;
  width: 100%;
  height: 320px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.slideshow-track { width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  height: 280px;
  width: auto;
  max-width: 100%;
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* Prev / Next buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(1,31,91,0.55);
  color: #fff;
  border: none;
  width: 40px;
  height: 56px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-btn:hover { background: rgba(1,31,91,0.85); }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.slide-dot.active {
  background: var(--penn-gold);
  border-color: var(--penn-gold);
}

/* ── Home intro & cards ── */
.home-intro {
  padding: 36px 44px 52px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--penn-blue);
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  color: inherit;
  transition: border-top-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.home-card:hover {
  border-top-color: var(--penn-gold);
  box-shadow: 0 4px 16px rgba(1,31,91,0.10);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.home-card-icon {
  font-size: 22px;
  color: var(--penn-blue);
  line-height: 1;
}

.home-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--penn-blue);
  line-height: 1.3;
}

.home-card-desc {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Responsive home */
@media (max-width: 900px) {
  .home-cards { grid-template-columns: repeat(2, 1fr); }
  .home-intro  { padding: 24px 24px 40px; }
}
@media (max-width: 600px) {
  .home-cards { grid-template-columns: 1fr; }
  .home-intro  { padding: 20px 16px 36px; }
  .slideshow   { height: 200px; }
  .slide img   { height: 170px; }
}

/* ================================================================
   BIOGRAPHY PAGE
   ================================================================ */
.bio-layout {
  max-width: 820px;
}

.bio-intro {
  margin-bottom: 32px;
}

.bio-lead {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--gray-700);
  font-weight: 400;
  border-left: 4px solid var(--penn-gold);
  padding-left: 20px;
  margin: 0;
}

.bio-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bio-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}
.bio-section:last-child {
  border-bottom: none;
}

.bio-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--penn-blue);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.bio-years {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: none;
}

.bio-section p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray-700);
  margin: 0 0 1em;
}
.bio-section p:last-child { margin-bottom: 0; }

.bio-quote {
  border-left: 4px solid var(--penn-blue-light);
  margin: 20px 0;
  padding: 14px 20px;
  background: var(--penn-blue-pale);
  border-radius: 0 6px 6px 0;
  font-size: 15.5px;
  font-style: italic;
  color: var(--penn-blue);
  line-height: 1.7;
}
.bio-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  color: var(--penn-blue-mid);
  letter-spacing: 0.03em;
}

.bio-honors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bio-honors li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
}
.bio-honors li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--penn-gold);
  border-radius: 50%;
}

/* ================================================================
   COLLECTION METADATA CARD (About the Archive)
   ================================================================ */
.collection-meta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(1,31,91,0.06);
}

.collection-meta-item {
  flex: 1 1 220px;
  padding: 16px 22px;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.collection-meta-item:last-child { border-right: none; }

.collection-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.collection-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--penn-blue);
  line-height: 1.4;
}

/* ── Series list ── */
.series-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.series-item {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  transition: background 0.12s;
}
.series-item:last-child { border-bottom: none; }
.series-item:hover { background: var(--gray-50); }

.series-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.series-numeral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--penn-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  padding: 0 6px;
}

.series-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--penn-blue);
  flex: 1;
}

.series-size {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}

.series-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0;
}

/* ================================================================
   PHOTO GALLERY (Photographs section)
   ================================================================ */
#pnlPhotos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 8px 0 24px;
}

/* Override the legacy inline float divs */
#pnlPhotos > div[style*="float"] {
  float: none !important;
  width: auto !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 130px !important;
}

/* Thumbnail image */
#pnlPhotos img {
  width: 106px;
  height: 106px;
  object-fit: cover;
  border: 1px solid var(--gray-200) !important;
  border-radius: 4px;
  padding: 0 !important;
  display: block;
  transition: box-shadow 0.15s, border-color 0.15s;
}
#pnlPhotos a:hover img {
  border-color: var(--penn-blue) !important;
  box-shadow: 0 2px 10px rgba(1,31,91,0.18);
}

/* Photo title */
#pnlPhotos > div[style*="float"] > div[id*="divPhotoTitle"] {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  line-height: 1.3;
  max-width: 120px;
  word-break: break-word;
}

/* View/Download buttons under each photo */
#pnlPhotos > div[style*="float"] > div[id*="div_VD"] {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hide the legacy tables inside photo items */
#pnlPhotos table {
  display: contents;
}
#pnlPhotos td, #pnlPhotos tr, #pnlPhotos tbody {
  display: contents;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--penn-blue);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 36px 40px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col { display: flex; flex-direction: column; gap: 3px; }

.footer-col .footer-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.footer-col p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

.footer-col-right {
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.footer-penn-link,
.footer-asc-link {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-penn-link:hover,
.footer-asc-link:hover { color: rgba(255,255,255,0.85) !important; }

.footer-bottom {
  padding: 14px 40px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* ================================================================
   ASC / PENN LOGO — handled via .header-logo-img in the header
   Fallback for any inline occurrences in page content
   ================================================================ */
.main-content img[src$="asc_logo.png"] {
  display: none; /* hide inline content copies — logo lives in header now */
}

/* ================================================================
   MOBILE NAV TOGGLE (hamburger)
   ================================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 6px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  border-radius: 4px;
  transition: background 0.15s;
  order: -1; /* sits before the logo on flex row */
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); }

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Animate to × when open */
body.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  cursor: pointer;
}
body.nav-open .nav-overlay { display: block; }
body.nav-open { overflow: hidden; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 240px; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 220px; }
  .main-content { padding: 24px 24px 48px; }
}

@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-toggle { display: flex; }

  /* Sidebar slides in as fixed overlay */
  .sidebar {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-w) - 20px);
    height: 100%;
    z-index: 950;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.35);
    overflow-y: auto;
  }

  body.nav-open .sidebar { left: 0; }

  /* Main fills full width since sidebar is out of flow */
  .main-content {
    padding: 20px 20px 48px;
    min-width: 0;
    width: 100%;
  }

  /* Hide ASC logo link to save space */
  .header-asc-logo-link { display: none; }
  .header-body { gap: 12px; padding: 10px 20px; }
  .breadcrumb-bar { padding: 8px 20px; }
}

@media (max-width: 480px) {
  .header-body { padding: 10px 14px; }
  .breadcrumb-bar { padding: 7px 14px; font-size: 11.5px; }
  .logo-text-block .archive-name { font-size: 17px; }
  .main-content { padding: 16px 14px 40px; }
  .page-title { font-size: 21px; }
  .section-image { float: none; max-width: 100%; margin: 0 0 16px; }
  .doc-actions { flex-direction: column; }
  .btn-view, .btn-download { justify-content: center; }
  .footer-top { flex-direction: column; gap: 20px; padding: 28px 20px 20px; }
  .footer-col-right { align-items: flex-start; }
  .footer-bottom { padding: 12px 20px; }
}
