.webst-suttas-page { width: min(100% - 40px, 1040px); margin: 40px auto 72px; }
#content:has(.webst-suttas-index) {
    background-color: #fef9e1;
}
#content:has(.webst-suttas-index) .site-main {
    margin-top: 0;
}
.ast-separate-container:has(.webst-suttas-index) #primary {
    margin-top: 0;
}
#content .ast-container:has(.webst-suttas-index) {
    max-width: 1540px !important;
    padding-top: 0px;
}
.webst-suttas-page:has(.webst-suttas-index) {
    width: 100%;
    max-width: none;
    margin-top: 0;
}
.webst-suttas-languages { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.webst-suttas-languages a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.webst-suttas-search { margin: 18px 0; }
.webst-suttas-search label { display: block; margin-bottom: 8px; }
.webst-suttas-search .webst-suttas-search-modes { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 10px; padding: 0; border: 0; }
.webst-suttas-search .webst-suttas-search-modes label { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; }
.webst-suttas-search .webst-suttas-search-modes input { margin: 0; }
.webst-suttas-search > div { display: flex; gap: 12px; }
.webst-suttas-search input[type=search] { flex: 1; min-width: 0; height: 42px; padding: 8px 12px; line-height: 1.2; background: white; border: 1px solid #a98140; border-radius: 4px; }
.webst-suttas-search button { min-height: 42px; padding: 8px 26px; line-height: 1.2; border-radius: 4px; }
.webst-suttas-alphabet { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.webst-suttas-alphabet a, .webst-suttas-alphabet .is-disabled { display: inline-flex; align-items: center; justify-content: center; min-width: 45px; min-height: 38px; padding: 6px 10px; border: 1px solid #c79a51; border-radius: 7px; background: #fff; color: #473513; text-decoration: none; font-size: 22px; }
.webst-suttas-alphabet a:hover, .webst-suttas-alphabet a[aria-current="page"] { background: #d8aa55; color: #fff; text-decoration: none; }
.webst-suttas-alphabet .is-disabled { border-color: #d8d1c4; background: #f3efe7; color: #aaa39a; cursor: not-allowed; opacity: .65; }
.webst-suttas-results { transition: opacity .15s ease; }
.webst-suttas-results[aria-busy="true"] { opacity: .55; }
.webst-suttas-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c79a51; }
.webst-suttas-list li { margin: 0; padding: 16px 4px; border-bottom: 1px solid #e4d4bb; }
.webst-suttas-list a { display: block; }
.webst-suttas-index { padding: 24px clamp(20px, 4vw, 56px) clamp(20px, 4vw, 56px); color: #151b29; border-radius: 4px; }
.webst-suttas-index-heading { display: flex; align-items: center; gap: 16px; font-family: Georgia, serif; font-size: clamp(28px, 3vw, 40px); }
.webst-suttas-index-heading::after { content: ''; height: 2px; flex: 1; background: #c79a51; }
.webst-suttas-index a:focus-visible { outline: 3px solid #7d210c; outline-offset: 3px; }
.webst-suttas-index .webst-suttas-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; border: 0; margin: 0; padding: 0; list-style: none; }
.webst-suttas-index .webst-suttas-list li { min-width: 0; margin: 0; padding: 0; border: 1px solid #c79a51; border-radius: 12px; background: #fff; }
.webst-suttas-index .webst-suttas-list a { padding: 11px 16px; color: #151b29; font-size: 18px !important; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.webst-suttas-index .webst-suttas-list a:hover { color: #85210b; text-decoration: underline; }
.webst-suttas-index .webst-suttas-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; height: 100%; box-sizing: border-box; font: inherit; }
.webst-suttas-list-pali, .webst-suttas-list-translation { font: inherit; }
.webst-suttas-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.webst-suttas-pagination .webst-suttas-page-button { display: inline-flex; align-items: center; justify-content: center; width: 200px; min-height: 46px; padding: 10px 20px; border-radius: 13px; background: #d8aa55; color: #fff; font-weight: 600; line-height: 1.2; text-decoration: none; }
.webst-suttas-pagination .webst-suttas-page-button:hover { background: #c69742; color: #fff; text-decoration: none; }
.webst-sutta-reading { max-width: 820px; }
.webst-sutta-reading h1 { line-height: 1.3; margin-bottom: 32px; }
.webst-sutta-heading-pali, .webst-sutta-heading-translated { display: block; overflow-wrap: anywhere; }
.webst-sutta-heading-translated { margin-top: 12px; font-size: .75em; font-weight: 400; }
.webst-sutta-body { font-size: 1.125rem; line-height: 1.85; overflow-wrap: anywhere; }
.webst-sutta-paragraph { margin-bottom: 1em; scroll-margin-top: 80px; }
.webst-sutta-bold, .webst-sutta-chapter, .webst-sutta-subhead, .webst-sutta-subsubhead { font-weight: 700; }
.webst-sutta-center { display: block; text-align: center; }
.webst-sutta-gatha1, .webst-sutta-gatha2, .webst-sutta-gatha3, .webst-sutta-gathalast { display: block; padding-inline-start: 1.5em; }
@media (max-width: 520px) { .webst-suttas-search > div { flex-direction: column; } }
