.studies-page { --study-border: #e2d4bf; --study-muted: #746858; }
.study-container { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.study-main { padding: 1rem 0 3rem; }
.study-breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem .6rem; margin: .35rem 0 1rem; font-size: .87rem; color: var(--study-muted); }
.study-breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.study-hero { padding: clamp(1.3rem, 3vw, 2.6rem); border: 1px solid var(--study-border); border-top: 4px solid #b28a4b; background: linear-gradient(120deg, #fffdf8, #f7edda); border-radius: 12px; margin-bottom: 1.5rem; }
.study-eyebrow { color: #80542f; font: 700 .76rem/1.4 system-ui, sans-serif; letter-spacing: .11em; text-transform: uppercase; margin: 0 0 .7rem; }
.study-hero h1 { max-width: 1000px; font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.15; overflow-wrap: anywhere; }
.study-intro { max-width: 76ch; color: #655847; margin: .8rem 0 0; font-size: 1.08rem; }
.study-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; color: var(--study-muted); font: .83rem/1.6 system-ui, sans-serif; margin-top: 1rem; }
.study-category-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.study-category-links a { padding: .45rem .75rem; border: 1px solid var(--study-border); border-radius: 6px; background: #fffdf8; font-size: .9rem; }
.study-category-links a[aria-current="page"] { color: #fffdf8; background: #795032; border-color: #795032; }
.study-index-panel { border: 1px solid var(--study-border); background: #fffdf8; border-radius: 12px; padding: clamp(1rem, 2.5vw, 2rem); }
.study-index-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem; }
.study-index-heading h2 { margin: 0; font-size: 1.6rem; }
.study-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin: 1.2rem 0 .6rem; max-width: 680px; }
.study-search label { grid-column: 1 / -1; font: 600 .86rem/1.4 system-ui, sans-serif; }
.study-search input { width: 100%; min-width: 0; border: 1px solid #cbb99a; border-radius: 6px; background: #fff; padding: .7rem .85rem; color: #2f2418; font: 1rem/1.4 system-ui, sans-serif; }
.study-search button, .study-print { border: 1px solid #cbb99a; border-radius: 6px; background: #f8efdd; color: #624225; cursor: pointer; padding: .6rem .8rem; font: 600 .86rem/1.4 system-ui, sans-serif; }
.study-search-count { color: var(--study-muted); font: .83rem/1.5 system-ui, sans-serif; }
.study-alphabet { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 1.5rem; }
.study-alphabet a { display: grid; place-items: center; min-width: 36px; min-height: 36px; border: 1px solid var(--study-border); background: #fbf6eb; border-radius: 5px; font: 600 .85rem/1 system-ui, sans-serif; }
.study-letter-group { scroll-margin-top: var(--study-scroll-offset, 180px); }
.study-letter { border-bottom: 1px solid var(--study-border); padding: .45rem 0; font-size: 1.4rem; color: #876138; margin: 1.5rem 0 0; }
.study-entry-list { list-style: none; padding: 0; margin: 0; }
.study-entry { padding: 1.2rem 0; border-bottom: 1px solid #eee4d3; }
.study-entry:last-child { border-bottom: 0; }
.study-entry h3 { font-size: 1.26rem; line-height: 1.35; margin: 0 0 .4rem; }
.study-entry h3 a { text-decoration: underline; text-decoration-color: #d0b693; text-underline-offset: 4px; }
.study-entry p { color: #635b4e; margin: .3rem 0; max-width: 95ch; font-size: .98rem; line-height: 1.65; }
.study-entry-meta { color: var(--study-muted); font: .78rem/1.5 system-ui, sans-serif; }
.study-empty { padding: 1.2rem; border-left: 3px solid #b28a4b; background: #fbf5e9; }
.study-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.study-category-card { padding: 1.4rem; background: #fffdf8; border: 1px solid var(--study-border); border-radius: 10px; }
.study-category-card h2 { font-size: 1.4rem; }
.study-category-card p { color: #635b4e; }
.study-category-card ul { padding-left: 1.2rem; }
.study-category-card li { margin: .45rem 0; }
.study-category-card .study-count { font: .8rem/1.5 system-ui, sans-serif; color: var(--study-muted); }
.study-reading-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.study-sidebar { position: sticky; top: var(--study-scroll-offset, 180px); min-width: 0; }
.study-toc { border: 1px solid var(--study-border); border-radius: 8px; background: #fffdf8; }
.study-toc summary { cursor: pointer; font-weight: 700; padding: .9rem 1rem; }
.study-toc nav { max-height: min(65vh, calc(100vh - var(--study-scroll-offset, 180px) - 70px)); overflow-y: auto; padding: 0 .8rem 1rem; scrollbar-width: thin; }
.study-toc ol { list-style: none; padding: 0; margin: 0; }
.study-toc li { margin: 0; }
.study-toc a { display: block; border-left: 2px solid #eadfcd; padding: .4rem .6rem; font-size: .83rem; line-height: 1.45; }
.study-toc a:hover, .study-toc a[aria-current="location"] { border-color: #9b7342; background: #faf0de; text-decoration: none; color: #563b21; }
.study-toc .study-toc-sub a { padding-left: 1.1rem; font-size: .78rem; color: #746858; }
.study-sidebar-links { display: grid; gap: .6rem; margin: 1rem 0; font-size: .85rem; }
.study-reading-panel { min-width: 0; border: 1px solid var(--study-border); border-radius: 10px; background: #fffdf8; }
.study-article-body { padding: clamp(1.2rem, 3.3vw, 3.2rem); font-size: 1.08rem; line-height: 1.82; overflow-wrap: anywhere; }
.study-article-body > :first-child { margin-top: 0; }
.study-article-body p { margin: .8em 0; }
.study-article-body li { margin: .35em 0; }
.study-article-body li p { margin: .4em 0; }
.study-article-body ul, .study-article-body ol { padding-left: 1.5rem; }
.study-article-body h2 { font-size: 1.6rem; line-height: 1.3; margin: 2.1em 0 .7em; padding-bottom: .4em; border-bottom: 1px solid #eadfcd; }
.study-article-body h3 { font-size: 1.28rem; line-height: 1.4; margin: 1.7em 0 .5em; }
.study-article-body h4 { font-size: 1.1rem; margin: 1.5em 0 .5em; }
.study-article-body [id], #study-text { scroll-margin-top: var(--study-scroll-offset, 180px); }
.study-article-body a { text-decoration: underline; text-underline-offset: 3px; }
.study-article-body hr { border: 0; border-top: 1px solid #eadfcd; margin: 2rem 0; }
.study-article-body blockquote { border-left: 3px solid #b28a4b; background: #faf4e7; padding: .6rem 1.1rem; margin: 1.2rem 0; }
.study-table-scroll { overflow-x: auto; max-width: 100%; margin: 1.4rem 0; border: 1px solid #e2d4bf; border-radius: 5px; }
.study-table-scroll table { width: 100%; border-collapse: collapse; margin: 0; font-size: .9rem; line-height: 1.6; }
.study-table-scroll td, .study-table-scroll th { border: 1px solid #e2d4bf; padding: .65rem .75rem; vertical-align: top; min-width: 130px; }
.study-table-scroll th { background: #f5ead4; text-align: left; }
.study-article-body img { height: auto; display: block; margin: 1rem auto; }
.study-media-link { font-size: .85rem; }
.study-article-end { border-top: 1px solid #e2d4bf; padding: 1.2rem 2rem; background: #fbf6eb; font-size: .88rem; }
.study-article-end p { margin: .4rem 0; }
.study-next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.study-next-prev a { background: #fffdf8; border: 1px solid var(--study-border); border-radius: 8px; padding: 1rem; }
.study-next-prev span { display: block; color: var(--study-muted); font: .75rem/1.5 system-ui, sans-serif; margin-bottom: .3rem; }
.study-next-prev .study-next { text-align: right; grid-column: 2; }
.study-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.2rem; font-size: .88rem; }
.study-skip { position: absolute; top: -100px; left: 1rem; z-index: 10000; padding: .7rem 1rem; background: #fff; color: #54351e; }
.study-skip:focus { top: 1rem; }
.studies-page :focus-visible { outline: 3px solid #916b32; outline-offset: 3px; }
.studies-page [hidden] { display: none !important; }
@media (max-width: 960px) {
  .study-reading-layout { grid-template-columns: minmax(0, 1fr); }
  .study-sidebar { position: static; }
  .study-toc nav { max-height: 45vh; }
  .study-sidebar-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
}
@media (max-width: 600px) {
  .study-container { width: calc(100% - 24px); }
  .study-category-grid { grid-template-columns: 1fr; }
  .study-hero { padding: 1.2rem; }
  .study-hero h1 { font-size: 1.9rem; }
  .study-article-body { padding: 1.2rem; font-size: 1.03rem; line-height: 1.8; }
  .study-article-body h2 { font-size: 1.4rem; }
  .study-article-end { padding: 1rem 1.2rem; }
  .study-next-prev { gap: .6rem; font-size: .9rem; }
  .study-next-prev a { padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .studies-page { scroll-behavior: auto; } html:has(.studies-page) { scroll-behavior: auto; } }
@media print {
  .studies-page { background: white; color: black; }
  .studies-page .site-header, .studies-page .site-footer, .study-sidebar, .study-category-links, .study-tools, .study-next-prev, .study-breadcrumbs, .copy-float-wrap { display: none !important; }
  .study-container { width: 100%; }
  .study-reading-layout { display: block; }
  .study-hero, .study-reading-panel { background: white; border: 0; padding: 0; }
  .study-hero h1 { font-size: 24pt; }
  .study-article-body { padding: 0; font-size: 11pt; line-height: 1.55; }
  .study-table-scroll { overflow: visible; }
  .study-table-scroll td, .study-table-scroll th { min-width: 0; }
  .study-article-body h2, .study-article-body h3 { break-after: avoid; }
  .study-article-body img, .study-article-body tr { break-inside: avoid; }
}
