.library-main { overflow: clip; }
.library-main [hidden] { display: none !important; }
.library-hero { padding-top: 145px; padding-bottom: 0; background: radial-gradient(ellipse at 87% 35%, #44348038, transparent 56%); }
.library-hero .breadcrumb { margin-bottom: 40px; }
.library-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5%; align-items: center; }
.library-hero h1 { font-size: clamp(46px, 5.1vw, 77px); font-weight: 500; line-height: 1.12; margin-top: 25px; }
.library-hero h1 em { font-style: normal; color: #bda6ff; }
.library-hero .page-intro { max-width: 650px; }
.library-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.library-art { height: 420px; position: relative; perspective: 850px; isolation: isolate; }
.library-orbit { position: absolute; inset: 8% 0; border: 1px solid #8b78cf40; border-radius: 50%; transform: rotate(-30deg); box-shadow: 0 0 75px #7b50ff13, inset 0 0 70px #6f4ffc0c; }
.library-art-card { width: 245px; height: 165px; padding: 22px; position: absolute; border: 1px solid #b7a4fa60; border-radius: 15px; background: linear-gradient(135deg, #3c2c69, #1d1c38); box-shadow: -5px 7px 0 #1a1630, 0 25px 50px #0005, inset 0 1px 0 #ffffff30; transform: rotateY(-15deg) rotateZ(-8deg); }
.library-art-card span { font-size: 9px; letter-spacing: .16em; color: #e0d6fa; }
.library-art-card strong { font-family: Manrope, Arial, sans-serif; font-size: 24px; line-height: 1.13; font-weight: 500; letter-spacing: -.03em; display: block; margin-top: 12px; }
.library-art-card i { height: 3px; width: 80px; display: block; margin-top: 20px; border-radius: 3px; background: linear-gradient(90deg, #ad82ff, #63ccf9); box-shadow: 0 0 16px #8863fa66; }
.art-understand { top: 6px; left: 5%; }
.art-create { top: 135px; left: 28%; background: linear-gradient(135deg, #24495f, #182437); border-color: #85cbea66; transform: rotateY(-15deg) rotateZ(7deg); }
.art-measure { top: 264px; left: 9%; background: linear-gradient(135deg, #3d3d3c, #222234); border-color: #d9d29c60; }
.art-measure i { background: linear-gradient(90deg, #73c9ef, #f5d76e); }
.library-stats { margin-top: 90px; display: flex; gap: 50px; align-items: center; border-block: 1px solid var(--line); padding: 25px 0; }
.library-stats p { display: flex; align-items: center; gap: 13px; font-size: 12px; }
.library-stats strong { font-family: Manrope, Arial, sans-serif; font-size: 29px; color: #f2effb; font-weight: 500; }
.library-stats > span { margin-left: auto; font-size: 11px; color: #a9a5bf; text-align: right; }
.library-stats time { display: block; color: #ded8ef; }
.library-section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.library-section-head h2 { font-size: clamp(33px, 4vw, 55px); margin-top: 20px; }
.library-section-head > p { max-width: 370px; font-size: 14px; line-height: 1.8; }
.library-paths { padding-bottom: 80px; }
.library-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.library-path { background: linear-gradient(135deg, #22203980, #141322); border: 1px solid #a999f22c; border-radius: 17px; overflow: hidden; }
.library-path summary { padding: 25px; list-style: none; cursor: pointer; }
.library-path summary::-webkit-details-marker, .library-application summary::-webkit-details-marker { display: none; }
.path-number { font-family: Manrope, Arial, sans-serif; font-size: 28px; color: #bca2ff; display: block; line-height: 1; margin-bottom: 24px; }
.path-audience { display: block; font-size: 10px; color: #bfb6d7; margin-bottom: 14px; }
.library-path h3 { font-size: 24px; line-height: 1.16; font-weight: 500; margin-bottom: 14px; }
.library-path summary p { font-size: 13px; min-height: 65px; }
.path-open { margin-top: 22px; padding-top: 15px; border-top: 1px solid #a999f226; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #d5c5ff; }
.path-open > span, .library-application summary span { font-size: 20px; line-height: 1; }
.library-path[open] .path-open > span, .library-application[open] summary span { transform: rotate(45deg); }
.path-readings { padding: 0 25px 25px; }
.path-readings ol { margin: 0; padding-left: 19px; color: #b5a5d4; font-size: 12px; }
.path-readings li { padding: 7px 0; }
.path-readings a { display: flex; gap: 12px; justify-content: space-between; color: #ded8ed; }
.path-readings p { margin-top: 20px; font-size: 12px; }
.path-readings strong { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: .08em; color: #e7ce79; text-transform: uppercase; }
.library-browser { padding-top: 65px; background: radial-gradient(ellipse at 100% 0, #1b214033, transparent 60%), #0d0d1b; border-block: 1px solid #bba5ff12; }
.library-controls { padding: 24px; background: #ffffff03; border: 1px solid #a999f225; border-radius: 17px; }
.library-search-row { display: grid; grid-template-columns: 2fr .85fr .85fr; gap: 20px; }
.library-controls label { display: block; font-size: 11px; color: #c6bedb; }
.library-controls input, .library-controls select { border: 1px solid #a999f237; border-radius: 8px; background: #0c0c1c; padding: 12px 14px; min-height: 47px; font-size: 13px; margin-top: 7px; }
.library-controls input::placeholder { color: #a6a0b7; }
.library-controls option { background: #151329; }
.library-topic-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.library-topic-filters button { padding: 9px 13px; border: 1px solid #a999f22c; background: #ffffff03; border-radius: 22px; font-size: 11px; color: #c5bed5; display: inline-flex; gap: 12px; align-items: center; }
.library-topic-filters button span { font-size: 9px; color: #b7a7dc; }
.library-topic-filters button[aria-pressed="true"] { background: #6f4ffc24; border-color: #a993f5; color: #f4efff; box-shadow: 0 0 16px #6f4ffc0c; }
.library-results-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 25px 0; min-height: 30px; }
.library-results-bar p { font-size: 12px; color: #b4adc9; }
.library-results-bar button { background: none; border: 0; border-bottom: 1px solid #c4a9ff66; color: #d4c1ff; font-size: 12px; padding: 3px 0; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.library-card { position: relative; display: flex; flex-direction: column; padding: 27px; background: linear-gradient(145deg, #1c1b30, #131322); border: 1px solid #a999f22a; border-radius: 16px; scroll-margin-top: 124px; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.library-card::before { content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--resource-accent), transparent); opacity: .65; }
.library-card:target, .library-card:focus-within { border-color: var(--resource-accent); box-shadow: 0 0 25px #a58bff0b; }
.library-card-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 26px; }
.library-topic { font-size: 10px; color: var(--resource-accent); }
.library-number { color: #858096; font-size: 10px; }
.library-publisher { font-size: 10px; line-height: 1.7; color: #c4bad8; margin-bottom: 12px; }
.library-card h3 { font-size: clamp(21px, 1.7vw, 26px); font-weight: 500; line-height: 1.22; letter-spacing: -.035em; }
.library-summary { margin-top: 17px; font-size: 13px; line-height: 1.8; color: #b7b0c9; }
.library-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.library-tags span { border: 1px solid #ffffff13; border-radius: 5px; padding: 3px 8px; font-size: 9px; color: #c3b9d8; }
.library-application { margin: 22px 0; border-block: 1px solid #ffffff12; }
.library-application summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 0; cursor: pointer; font-size: 12px; color: #dfd0ff; }
.library-application > div { padding-bottom: 20px; }
.library-application h4 { margin: 16px 0 7px; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--resource-accent); }
.library-application h4:first-child { margin-top: 4px; }
.library-application p { font-size: 12px; line-height: 1.8; }
.library-sources { margin-top: auto; }
.library-access { font-size: 9px; line-height: 1.7; color: #a8a1b8; margin-bottom: 12px; }
.library-sources a { display: flex; gap: 10px; justify-content: space-between; align-items: center; font-size: 12px; line-height: 1.6; padding: 7px 0; color: #e6def7; }
.library-sources a > span[aria-hidden] { color: var(--resource-accent); }
.library-sources a:hover, .path-readings a:hover { color: var(--yellow); }
.library-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.library-more { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; margin-top: 35px; }
.library-more .button {
  background: #211a35;
  color: #f4efff;
  border: 1px solid #9f82d9;
  cursor: pointer;
}
.library-more .button:hover { background: #302348; border-color: #c3a5ff; }
.library-more .button:focus-visible { outline: 2px solid #cbb3ff; outline-offset: 4px; }
.library-more .text-link { font-size: 12px; }
.library-empty { font-size: 14px; padding: 35px; text-align: center; border: 1px dashed #b49aff55; border-radius: 12px; }
.library-deeper { background: radial-gradient(ellipse at 0 70%, #4932671c, transparent 70%); }
.library-question-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 30px; }
.library-question-grid article { border-top: 1px solid #bb9dff44; padding-top: 25px; }
.library-question-grid h3 { font-size: 25px; line-height: 1.2; font-weight: 500; }
.library-question-grid p { font-size: 13px; margin-top: 18px; line-height: 1.85; }
.library-question-grid ul { list-style: none; margin: 20px 0 0; padding: 0; }
.library-question-grid a { color: #cdbaf6; font-size: 11px; display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-top: 1px solid #ffffff0c; }
.library-method { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10%; border-block: 1px solid var(--line); background: #11101f; }
.library-method h2 { font-size: clamp(34px, 4vw, 53px); margin-top: 25px; }
.library-method-copy p { font-size: 14px; line-height: 1.9; margin-bottom: 22px; }
.library-method-copy .library-review { color: #c5bbdd; font-size: 10px; margin-bottom: 0; }
.library-notes .resource-card { min-height: 270px; }
.library-notes .resource-card h3 { font-size: 30px; }
@media (hover: hover) {
  .library-card:hover { border-color: #ad99f260; }
  .library-path:hover { border-color: #ad99f269; }
  .library-topic-filters button:hover { border-color: #a993f5; color: #fff; }
}
@media (max-width: 1100px) {
  .library-stats { gap: 25px; }
  .library-stats p { gap: 8px; font-size: 10px; }
  .library-art { transform: scale(.85); transform-origin: 50% 50%; }
  .library-art-card { width: 220px; }
  .library-grid, .library-question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-path summary p { min-height: 0; }
}
@media (max-width: 760px) {
  .library-hero { padding-top: 120px; }
  .library-hero .breadcrumb { margin-bottom: 30px; }
  .library-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .library-hero h1 { font-size: clamp(40px, 8.7vw, 62px); }
  .library-hero .page-intro { font-size: 16px; }
  .library-hero-actions { gap: 22px; }
  .library-art { width: 300px; max-width: 100%; height: 385px; justify-self: center; transform: scale(.84); transform-origin: top center; margin-bottom: -35px; }
  .library-art-card { width: 220px; height: 165px; padding: 22px; }
  .library-art-card strong { font-size: 24px; }
  .art-create { top: 135px; left: 26%; }
  .art-measure { top: 264px; }
  .library-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
  .library-stats p { display: block; font-size: 10px; }
  .library-stats strong { display: block; font-size: 27px; }
  .library-stats > span { grid-column: 1 / -1; margin-left: 0; text-align: left; font-size: 10px; }
  .library-stats time { display: inline; margin-left: 5px; }
  .library-section-head { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 30px; }
  .library-section-head > p { max-width: 100%; }
  .library-path-grid, .library-grid, .library-question-grid, .library-method { grid-template-columns: 1fr; }
  .library-path summary { padding: 24px; }
  .library-path summary p { min-height: 0; }
  .path-number { margin-bottom: 17px; font-size: 24px; }
  .library-path h3 { font-size: 26px; }
  .library-search-row { grid-template-columns: 1fr 1fr; gap: 17px 12px; }
  .library-search-row .library-search { grid-column: 1 / -1; }
  .library-controls { padding: 20px 15px; }
  .library-controls input, .library-controls select { font-size: 16px; padding: 10px 12px; }
  .library-controls input::placeholder { font-size: 12px; }
  .library-topic-filters { gap: 7px; margin-top: 20px; }
  .library-topic-filters button { font-size: 10px; padding: 9px 10px; gap: 7px; }
  .library-card { padding: 25px; scroll-margin-top: 106px; }
  .library-card h3 { font-size: 27px; }
  .library-card-top { margin-bottom: 23px; }
  .library-publisher, .library-topic { font-size: 11px; }
  .library-summary { font-size: 14px; }
  .library-access { font-size: 10px; }
  .library-sources a, .library-application summary { font-size: 13px; }
  .library-application p { font-size: 13px; }
  .library-method { gap: 32px; }
  .library-question-grid { gap: 32px; }
  .library-more { gap: 23px; }
  .library-results-bar p { font-size: 11px; }
}
