@font-face {
  font-family: 'Poppins';
  src: url('/assets/brand/Poppins-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --brand-blue: #1e3a5f;
  --brand-cyan: #74c0fc;
  --brand-silver: #c0c5ce;
  --brand-white: #ffffff;
  --body-font: 'Avenir Medium', 'Avenir', 'Avenir Next', 'Trebuchet MS', Arial, sans-serif;
  --navy: var(--brand-blue);
  --deep: var(--brand-blue);
  --cyan: var(--brand-cyan);
  --ink: var(--brand-blue);
  --muted: #526171;
  --paper: #f5f7fa;
  --line: var(--brand-silver);
  --white: var(--brand-white);
  --accent: var(--brand-blue);
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; min-height: 44px; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 20px; background: white; padding: 16px; z-index: 100; }
.skip-link:focus { top: 16px; }
.site-header { min-height: 136px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 5%; background: white; color: var(--brand-blue); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: flex; align-items: center; gap: 24px; flex-shrink: 0; padding: 8px 12px; }
.brand-logo { width: 104px; height: auto; display: block; }
.brand-sub { font-size: 10px; font-weight: 500; letter-spacing: .16em; padding: 14px 0 14px 24px; border-left: 1px solid var(--brand-silver); }
.site-header nav { display: flex; gap: 28px; font-size: 13px; }
.site-header nav a { text-decoration: none; padding: 10px 0; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { background: var(--brand-blue); color: white; display: flex; justify-content: space-between; padding: 50px 5% 55px; gap: 40px; position: relative; overflow: hidden; border-bottom: 3px solid var(--brand-cyan); }
.hero-copy { max-width: 720px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-blue); }
.hero .eyebrow { color: var(--brand-cyan); }
h1, h2, h3 { font-family: Poppins, Arial, sans-serif; font-weight: 700; margin: 0; letter-spacing: -.03em; }
h1 { font-size: clamp(34px,4vw,56px); line-height: 1.15; margin: 18px 0 20px; }
.hero h1 span { color: var(--brand-cyan); }
.hero p { color: #e1e8f1; line-height: 1.7; font-size: 15px; max-width: 540px; }
.hero-aside { align-self: flex-end; display: flex; gap: 35px; padding-bottom: 4px; }
.stat strong { font-family: Poppins, sans-serif; font-size: 32px; font-weight: 700; display: block; }
.stat span { font-size: 11px; color: #e1e8f1; line-height: 1.5; display: block; max-width: 100px; }
.library-layout { display: grid; grid-template-columns: 245px 1fr; max-width: 1600px; margin: auto; min-height: 650px; }
.sidebar { padding: 35px 22px 35px 28px; border-right: 1px solid var(--line); }
.sidebar .eyebrow { display: block; margin: 0 10px 18px; }
.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; color: var(--muted); padding: 10px 12px; border-radius: 6px; font-size: 12px; }
.category-button .cat-code { font-size: 9px; color: #526171; font-weight: 700; width: 20px; }
.category-button.active { color: var(--brand-blue); background: #deeffd; box-shadow: inset 3px 0 var(--brand-blue); }
.category-button:hover { background: #e8edf4; }
.category-button.active .cat-code { color: var(--brand-blue); }
main.library { padding: 32px 36px 55px; min-width: 0; }
.search-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.search-wrap { flex: 1; display: flex; align-items: center; border: 1px solid var(--brand-silver); border-radius: 7px; background: white; padding: 0 16px; box-shadow: 0 2px 4px #1e3a5f08; min-width: 0; }
.search-icon { font-size: 24px; color: #526171; padding-right: 10px; }
.search-wrap input { border: 0; background: transparent; padding: 16px 4px; font-size: 14px; width: 100%; min-width: 0; outline-offset: 0; }
.search-wrap button { border: 0; background: transparent; color: #526171; font-size: 20px; padding: 0 8px; }
.view-toggle { display: flex; border: 1px solid var(--brand-silver); border-radius: 6px; padding: 4px; background: white; flex-shrink: 0; }
.view-toggle button { border: 0; background: transparent; color: var(--muted); padding: 0 14px; font-size: 12px; border-radius: 4px; min-height: 38px; }
.view-toggle button.active { background: var(--brand-blue); color: white; }
.filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter label { font-size: 9px; font-weight: 700; letter-spacing: .1em; display: block; margin-bottom: 5px; color: var(--muted); }
select { border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 12px; padding: 9px 28px 9px 10px; max-width: 250px; }
.mobile-category { display: none; }
.clear-button { border: 0; color: var(--brand-blue); font-size: 11px; background: transparent; align-self: flex-end; padding: 8px; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 29px 0 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.results-heading h2 { font-size: 20px; }
.results-heading p { font-size: 11px; color: var(--muted); margin: 0; }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.resource-card { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease; }
.resource-card:hover { border-color: var(--brand-blue); }
.card-art { display: flex; align-items: center; justify-content: center; background: #e8edf4; height: 215px; padding: 15px; text-decoration: none; position: relative; }
.cover { height: 185px; width: auto; filter: drop-shadow(4px 5px 4px #1e3a5f23); }
.typographic-cover { padding: 17px 20px; background: var(--brand-blue); color: white; width: 145px; height: 185px; display: flex; flex-direction: column; justify-content: space-between; border-left: 3px solid var(--brand-cyan); box-shadow: 4px 5px 4px #1e3a5f18; font-family: Poppins, sans-serif; font-size: 13px; line-height: 1.3; font-weight: 700; }
.cover-brand { display: flex; align-items: center; gap: 8px; font-family: var(--body-font); font-size: 7px; font-weight: 500; letter-spacing: .14em; color: white; }
.cover-logo { background: white; border-radius: 2px; padding: 4px; width: 31px; height: 33px; object-fit: contain; }
.typographic-cover small { font-family: var(--body-font); font-size: 6px; font-weight: 500; line-height: 1.6; color: #e1e8f1; }
.card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 9px; }
.resource-card h3 { font-size: 15px; line-height: 1.45; }
.resource-card h3 a { text-decoration: none; }
.resource-card h3 a:hover { text-decoration: underline; }
.resource-card p { font-size: 11px; color: var(--muted); line-height: 1.75; margin: 11px 0 20px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 5px; }
.status { font-size: 9px; padding: 6px 8px; border-radius: 4px; font-weight: 500; background: #eef0f4; color: #455564; display: inline-block; }
.status-available { background: var(--brand-blue); color: white; }
.arrow-link { font-size: 18px; text-decoration: none; min-width: 34px; min-height: 34px; display: grid; place-items: center; color: var(--brand-blue); }
.topic-folder { border: 1px solid var(--line); background: white; border-radius: 6px; margin-bottom: 18px; }
.topic-folder summary { padding: 18px 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 700; }
.topic-folder summary small { margin-left: auto; font-size: 10px; font-weight: 500; color: var(--muted); }
.folder-mark { color: var(--brand-blue); font-size: 20px; }
.topic-folder .resource-grid { padding: 4px 18px 18px; }
.empty-state { background: white; border: 1px dashed var(--brand-silver); border-radius: 8px; padding: 40px; min-height: 200px; }
.empty-state h3 { font-size: 20px; margin: 15px 0; }
.empty-state p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.site-footer { border-top: 1px solid var(--line); padding: 25px 5%; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; color: var(--muted); background: white; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 72px; height: auto; padding: 8px; }
.site-footer a { color: var(--brand-blue); }
.content-page { max-width: 1100px; margin: auto; padding: 45px 30px 70px; }
.content-page h1 { font-size: 38px; }
.content-page h2 { font-size: 23px; margin: 32px 0 16px; }
.content-page p, .content-page li { font-size: 14px; line-height: 1.9; color: var(--muted); }
.back-link { font-size: 12px; color: var(--brand-blue); text-decoration: none; }
.detail-layout { display: grid; grid-template-columns: 300px 1fr; gap: 55px; margin-top: 28px; }
.detail-art { background: #e8edf4; padding: 30px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; min-height: 380px; gap: 20px; }
.detail-art > img { max-height: 400px; box-shadow: 3px 6px 14px #1e3a5f20; }
.detail-art .typographic-cover { width: 220px; height: 310px; font-size: 21px; padding: 25px; }
.detail-art .cover-brand { font-size: 9px; }
.detail-art .cover-logo { width: 42px; height: 44px; }
.detail-art small { font-size: 9px; }
.detail-layout h1 { font-size: 36px; }
.detail-meta { font-size: 11px; color: var(--brand-blue); letter-spacing: .05em; margin: 15px 0; }
.notice { padding: 20px; background: #eaf5fe; border-left: 3px solid var(--brand-blue); font-size: 13px; color: var(--brand-blue); line-height: 1.8; margin: 25px 0; }
.notice p { margin: 5px 0; color: inherit; font-size: 13px; }
.primary-link { display: inline-flex; min-height: 44px; align-items: center; background: var(--brand-blue); color: white; border-radius: 5px; padding: 12px 20px; text-decoration: none; font-size: 13px; }
.details-list { margin-top: 30px; }
.details-list dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-blue); font-weight: 700; margin-top: 20px; }
.details-list dd { margin: 8px 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { background: #e8edf4; font-size: 10px; color: var(--brand-blue); padding: 14px; }
td { padding: 14px; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.7; }
td strong { display: block; }
td small { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.text-panel { padding: 25px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.text-panel h2 { margin-top: 0; }
.inline-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1450px) { .resource-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1100px) {
  .hero-aside { gap: 18px; }
  .resource-grid, .topic-folder .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-layout { grid-template-columns: 215px 1fr; }
  main.library { padding: 28px 24px; }
  .site-header nav { gap: 16px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 116px; padding: 14px 16px; gap: 8px; }
  .brand { gap: 12px; padding: 6px; }
  .brand-logo { width: 80px; }
  .brand-sub { font-size: 8px; padding-left: 12px; max-width: 80px; line-height: 1.8; }
  .site-header nav { gap: 16px; font-size: 11px; }
  .site-header nav a:last-child { display: none; }
  .hero { padding: 35px 22px; display: block; }
  .hero-aside { margin-top: 28px; gap: 35px; }
  .stat strong { font-size: 26px; }
  .hero p { font-size: 13px; }
  .library-layout { display: block; }
  .sidebar { display: none; }
  .mobile-category { display: block; }
  main.library { padding: 25px 20px; }
  .search-row { display: block; }
  .view-toggle { margin-top: 12px; width: fit-content; }
  .filters { gap: 10px; }
  .filters select { max-width: 180px; font-size: 11px; }
  .results-heading { display: block; }
  .results-heading p { margin-top: 10px; }
  .resource-grid { gap: 14px; }
  .card-content { padding: 15px; }
  .card-art { height: 205px; padding: 12px 12px 24px; }
  .cover { height: 166px; }
  .typographic-cover { height: 166px; width: 126px; font-size: 12px; }
  .cover-logo { width: 26px; height: 27px; }
  .resource-card h3 { font-size: 13px; }
  .resource-card p { font-size: 10px; }
  .card-kicker { font-size: 8px; }
  .status { font-size: 8px; padding: 5px; }
  .site-footer { display: block; padding: 20px 22px; line-height: 1.8; }
  .footer-brand { margin-bottom: 16px; }
  .content-page { padding: 30px 22px; }
  .detail-layout { display: block; }
  .detail-art { max-width: 300px; min-height: 300px; margin: 25px auto; }
  .detail-layout h1 { font-size: 30px; }
  .two-columns, .topic-folder .resource-grid { grid-template-columns: 1fr; }
  .topic-folder summary { font-size: 12px; padding: 15px; }
  .topic-folder summary small { font-size: 9px; }
  .empty-state { padding: 25px; }
}
@media (max-width: 420px) {
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { display: grid; grid-template-columns: 125px 1fr; }
  .card-art { height: 100%; padding: 13px 8px 40px; }
  .cover { height: auto; width: 90px; }
  .typographic-cover { width: 95px; height: 145px; padding: 10px; font-size: 10px; }
  .typographic-cover small { font-size: 5px; }
  .cover-brand { font-size: 5px; gap: 4px; }
  .cover-logo { width: 21px; height: 22px; padding: 3px; }
  .card-content { padding: 15px 12px; }
  .resource-card p { margin-bottom: 12px; }
  .hero h1 { font-size: 34px; }
  .site-header nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.resource-card p.resource-author { margin-top: 0; color: var(--brand-blue); font-weight: 700; }

.collection-intro { padding: 0 20px 20px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.collection-intro p { margin: 0 0 10px; }
.collection-intro a { color: var(--brand-blue); display: inline-flex; align-items: center; min-height: 44px; }
.collection-page .eyebrow { display: block; margin-top: 30px; }
.collection-page .resource-grid { margin-top: 32px; }
@media (max-width: 760px) { .collection-page .resource-grid { grid-template-columns: 1fr; } }
