.reader-page { color: #322b30; }
.reader-page .site-nav { gap: 20px; }
.reader-page .site-nav a { font-size: .78rem; }
.reader-hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; padding: 42px 48px; border-radius: 22px; background: linear-gradient(115deg,#74162f,#952143); color: #fff; box-shadow: 0 16px 32px #74162f14; }
.reader-hero::after { content: ''; position: absolute; z-index: -1; width: 350px; height: 350px; right: -110px; top: -170px; border: 50px solid #ffffff05; border-radius: 50%; }
.reader-hero-copy { max-width: 760px; }
.reader-eyebrow { display: block; margin-bottom: 14px; color: #f5d9b3; font: 700 .7rem/1.5 Arial,sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.reader-hero h1 { font-size: clamp(1.9rem,3.3vw,2.8rem); line-height: 1.15; letter-spacing: -.035em; color: #fff; }
.reader-subtitle { margin-top: 17px; color: #f5e4eb; font: 400 1rem/1.6 Arial,sans-serif; }
.reader-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; font: 400 .8rem/1.4 Arial,sans-serif; }
.reader-meta span { padding: 6px 12px; border: 1px solid #ffffff30; border-radius: 30px; background: #ffffff09; }
.reader-illustration { flex: 0 0 160px; width: 160px; color: #edc99c; }
.reader-intro { max-width: 960px; padding: 28px 2px; font: 400 1.02rem/1.85 Arial,sans-serif; color: #62575e; }
.reader-layout { display: grid; grid-template-columns: 268px minmax(0,1fr); align-items: start; gap: 30px; margin-bottom: 56px; }
.reader-sidebar { position: sticky; top: 24px; }
.reader-index { border: 1px solid #eadde2; background: #fff; border-radius: 16px; padding: 22px 12px 12px; box-shadow: 0 5px 20px #3a0a0a04; }
.reader-index h2 { margin: 0 10px 16px; color: #62575e; font: 700 .7rem/1.5 Arial,sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.reader-index a { display: flex; align-items: start; gap: 11px; padding: 14px 10px; border-radius: 9px; text-decoration: none; font: 400 .88rem/1.5 Arial,sans-serif; transition: background .15s,color .15s; }
.reader-index a + a { border-top: 1px solid #f4ecef; }
.reader-index a:hover,.reader-index a:focus-visible { background: #f8f0f3; color: #74162f; }
.index-number { flex-shrink: 0; color: #952143; font-size: .7rem; font-weight: 700; padding-top: 2px; }
.index-arrow { margin-left: auto; color: #a38c75; }
.reader-related { display: flex; justify-content: space-between; gap: 8px; padding: 20px 10px; color: #74162f; font: 700 .85rem/1.5 Arial,sans-serif; text-decoration: none; }
.reader-related:hover { text-decoration: underline; text-underline-offset: 4px; }
.reader-main { min-width: 0; }
.glossary-tools { margin-bottom: 32px; }
.glossary-tools label { display: block; color: #74162f; margin-bottom: 8px; font: 700 .85rem/1.5 Arial,sans-serif; }
.glossary-search-box { display: flex; align-items: center; gap: 12px; padding: 4px 14px; min-height: 56px; background: #fff; border: 1px solid #cbb9c0; border-radius: 12px; }
.glossary-search-box:focus-within { outline: 3px solid #c2a57a; outline-offset: 3px; border-color: #74162f; }
.glossary-search-box svg { flex-shrink: 0; width: 22px; height: 22px; color: #952143; }
.glossary-search-box input { width: 100%; min-width: 0; padding: 12px 0; font: 400 1rem/1.4 Arial,sans-serif; border: 0; background: transparent; color: #322b30; outline: none; }
.glossary-search-box input::placeholder { color: #82747b; }
.glossary-search-box button { border: 0; border-radius: 6px; padding: 9px; background: #f8f0f3; color: #74162f; font: 700 .8rem/1 Arial,sans-serif; }
#glossary-status { margin-top: 10px; color: #71636a; font: 400 .8rem/1.5 Arial,sans-serif; }
.glossary-group + .glossary-group { margin-top: 38px; }
.reader-section-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.section-number { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 11px; background: #952143; color: #fff; font: 700 .8rem/1 Arial,sans-serif; }
.reader-section-heading h2 { font-size: 1.15rem; line-height: 1.45; letter-spacing: -.02em; color: #74162f; scroll-margin-top: 32px; }
.glossary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0; }
.term-card { min-width: 0; padding: 24px; border: 1px solid #eadde2; border-top: 3px solid #c2a57a; border-radius: 3px 3px 14px 14px; background: #fff; box-shadow: 0 5px 18px #3a0a0a04; }
.term-card dt { margin: 0 0 12px; color: #74162f; font: 700 1.05rem/1.4 Arial,sans-serif; }
.term-card dd { margin: 0; color: #62575e; font: 400 .96rem/1.8 Arial,sans-serif; overflow-wrap: anywhere; }
.glossary-empty { border: 1px dashed #cbb9c0; background: #fff; border-radius: 14px; padding: 36px; text-align: center; }
.glossary-empty h2 { color: #74162f; font-size: 1.1rem; }
.glossary-empty p { margin-top: 12px; font: 400 1rem/1.6 Arial,sans-serif; }
.reader-back-top { display: inline-flex; gap: 14px; margin-top: 28px; color: #74162f; font: 700 .85rem/1.5 Arial,sans-serif; text-decoration: none; }
.reader-back-top:hover { text-decoration: underline; text-underline-offset: 4px; }
.terms-layout { margin-top: 32px; }
.terms-section { background: #fff; padding: 30px 34px; border: 1px solid #eadde2; border-radius: 16px; box-shadow: 0 5px 18px #3a0a0a04; margin-bottom: 20px; }
.terms-section h2 { color: #74162f; font-size: 1.22rem; line-height: 1.5; letter-spacing: -.02em; padding-bottom: 18px; border-bottom: 1px solid #eadde2; scroll-margin-top: 55px; }
.terms-section h3 { color: #74162f; font: 700 1.05rem/1.5 Arial,sans-serif; margin-top: 28px; padding-left: 14px; border-left: 3px solid #c2a57a; }
.terms-section p { margin: 18px 0 0; font: 400 1rem/1.9 Arial,sans-serif; color: #51474e; overflow-wrap: anywhere; }
.reader-page .site-footer { margin-top: 20px; }
@media (min-width: 701px), print {
  .reader-intro, .term-card dd, .terms-section p {
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
  }
}
@media(min-width:1400px) { .reader-layout { grid-template-columns: 290px minmax(0,1fr); gap: 40px; } .term-card { padding: 28px; } }
@media(max-width:1000px) { .reader-layout { grid-template-columns: 225px minmax(0,1fr); gap: 22px; } .glossary-grid { grid-template-columns: 1fr; } .reader-hero { padding: 34px; gap: 24px; } .reader-illustration { flex-basis: 110px; width: 110px; } .reader-page .site-header { flex-wrap: wrap; } }
@media(max-width:700px) { .reader-hero { padding: 28px 24px; border-radius: 16px; } .reader-illustration { display: none; } .reader-hero h1 { font-size: 1.9rem; } .reader-subtitle { font-size: .93rem; } .reader-intro { padding-block: 24px; font-size: 1rem; } .reader-layout { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; } .reader-sidebar { position: static; } .reader-index { padding: 18px 10px 10px; } .reader-index a { padding: 12px 10px; } .reader-related { padding-block: 16px; } .glossary-tools { margin-bottom: 26px; } .term-card { padding: 22px; } .terms-section { padding: 24px 22px; } .terms-section h2 { font-size: 1.12rem; } .reader-page .site-nav { gap: 8px 20px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } .reader-index a { transition: none; } }
@media print { .reader-sidebar,.glossary-tools,.reader-back-top,.site-nav,.breadcrumb,.reader-illustration { display: none !important; } body.reader-page { background: #fff; } .reader-layout { display: block; } .reader-hero { background: #fff; color: #74162f; border-bottom: 2px solid #952143; border-radius: 0; padding: 20px 0; box-shadow: none; } .reader-hero h1,.reader-eyebrow,.reader-subtitle,.reader-meta { color: #74162f; } .reader-hero::after { display: none; } .term-card,.terms-section { box-shadow: none; break-inside: avoid; } .reader-page .site-footer { background: #fff; color: #74162f; } }
