:root {
    --ink: #243036;
    --ink-soft: #566268;
    --paper: #fbf7ee;
    --paper-deep: #f2eadb;
    --cream: #fffdf8;
    --wine: #8e2d45;
    --wine-dark: #672033;
    --wine-soft: #f2e1e4;
    --gold: #b78a45;
    --gold-soft: #ead9b7;
    --teal: #426a67;
    --line: rgba(72, 57, 43, .14);
    --line-strong: rgba(72, 57, 43, .24);
    --shadow: 0 24px 70px rgba(52, 37, 29, .10);
    --radius: 22px;
    --font-fa: Tahoma, "Segoe UI", Arial, sans-serif;
    --font-poem: Georgia, "Times New Roman", Tahoma, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.public-site { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-fa); line-height: 1.9; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wine); }
button, input, select, textarea { font: inherit; }
::selection { color: #fff; background: var(--wine); }
.skip-link { position: fixed; top: -60px; right: 20px; z-index: 9999; color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 0 0 10px 10px; transition: top .2s; }
.skip-link:focus { top: 0; }
.ornament-line { height: 5px; background: linear-gradient(90deg, var(--wine-dark) 0 33%, var(--gold) 33% 66%, var(--teal) 66%); }
.container-xxl { --bs-gutter-x: 2rem; }
.site-header { position: sticky; top: 0; z-index: 1020; background: rgba(251, 247, 238, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.site-header .navbar { min-height: 86px; padding: .55rem 0; }
.brand-lockup { display: inline-flex; gap: 12px; align-items: center; margin: 0 0 0 28px; color: var(--ink); }
.brand-lockup:hover { color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; color: #fff; background: var(--wine); border: 1px solid rgba(255,255,255,.2); border-radius: 50% 50% 42% 58%; box-shadow: inset 0 0 0 4px rgba(255,255,255,.12), 0 8px 20px rgba(105,32,51,.18); font-family: var(--font-poem); font-size: 27px; font-weight: 700; transform: rotate(-2deg); }
.brand-mark.small { width: 44px; height: 44px; flex-basis: 44px; font-size: 23px; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-lockup > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.brand-lockup strong { font-family: var(--font-poem); font-size: 1.42rem; }
.brand-lockup small { margin-top: 4px; color: var(--ink-soft); font-size: .68rem; }
.navbar-nav { gap: 4px; }
.navbar-nav .nav-link { position: relative; color: var(--ink); padding: .75rem .8rem !important; font-size: .9rem; font-weight: 700; }
.navbar-nav .nav-link::after { content: ""; position: absolute; right: .8rem; bottom: .4rem; width: 0; height: 2px; background: var(--wine); transition: width .2s; }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: calc(100% - 1.6rem); }
.navbar-nav .fal-link { color: var(--wine); }
.header-search { display: flex; align-items: center; width: 230px; margin-inline: 12px; padding: 5px 7px 5px 5px; background: rgba(255,255,255,.65); border: 1px solid var(--line-strong); border-radius: 999px; }
.header-search input { min-width: 0; width: 100%; padding: 5px 8px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .82rem; }
.header-search button { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; color: #fff; background: var(--wine); border: 0; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.account-button { display: inline-flex; align-items: center; justify-content: center; min-width: 66px; padding: 8px 13px; color: var(--wine); border: 1px solid var(--wine); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.account-button:hover { color: #fff; background: var(--wine); }
.flash-stack { position: fixed; top: 104px; right: 50%; z-index: 1050; width: min(92vw, 760px); transform: translateX(50%); }
.flash-stack .alert { border: 0; border-radius: 14px; box-shadow: var(--shadow); }
.hero-section { position: relative; min-height: 660px; overflow: hidden; color: #fff; background: #263d40; isolation: isolate; }
.hero-section::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 18% 20%, rgba(183,138,69,.18), transparent 30%), radial-gradient(circle at 85% 85%, rgba(142,45,69,.25), transparent 34%), linear-gradient(135deg, #243d40, #17292d 60%, #1c3033); }
.hero-pattern { position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.55) 18px 19px), repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,.25) 18px 19px); mask-image: linear-gradient(to left, #000, transparent 82%); }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(330px,.82fr); gap: 70px; align-items: center; min-height: 555px; padding-top: 52px; padding-bottom: 110px; }
.eyebrow { margin: 0 0 9px; color: var(--wine); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.hero-copy .eyebrow { color: var(--gold-soft); }
.hero-copy h1 { max-width: 700px; margin: 0 0 20px; font-family: var(--font-poem); font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; }
.hero-copy h1 span { color: #efd9ae; }
.hero-lead { max-width: 650px; margin: 0 0 28px; color: rgba(255,255,255,.76); font-size: 1.05rem; line-height: 2.05; }
.hero-search { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; max-width: 720px; padding: 8px 10px 8px 8px; background: #fffdf8; border: 1px solid rgba(255,255,255,.5); border-radius: 16px; box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.hero-search > span { color: var(--wine); font-size: 1.45rem; }
.hero-search input { min-width: 0; padding: 8px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.hero-search button { padding: 13px 22px; color: #fff; background: var(--wine); border: 0; border-radius: 11px; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-poetry { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 20px; border: 1px solid transparent; border-radius: 10px; font-size: .83rem; font-weight: 900; transition: transform .2s, background .2s, color .2s; }
.btn-poetry:hover { transform: translateY(-2px); }
.btn-poetry.solid { color: #fff; background: var(--wine); border-color: var(--wine); }
.btn-poetry.solid:hover { color: #fff; background: var(--wine-dark); }
.hero-actions .btn-poetry.solid { color: var(--ink); background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-poetry.ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); }
.btn-poetry.ghost:hover { color: #fff; border-color: #fff; }
.hero-verse { display: flex; justify-content: center; }
.verse-frame { position: relative; width: min(100%, 430px); padding: 58px 42px 46px; text-align: center; background: rgba(255,253,248,.07); border: 1px solid rgba(234,217,183,.38); border-radius: 45% 45% 19px 19px / 18% 18% 19px 19px; box-shadow: inset 0 0 40px rgba(255,255,255,.035); }
.verse-frame::before, .verse-frame::after { content: ""; position: absolute; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(234,217,183,.8), transparent); }
.verse-frame::before { top: 26px; } .verse-frame::after { bottom: 24px; }
.quote-mark { position: absolute; top: 8px; right: 50%; color: var(--gold-soft); font-family: var(--font-poem); font-size: 5rem; line-height: 1; transform: translateX(50%); opacity: .4; }
.verse-frame p { margin: 9px 0; font-family: var(--font-poem); font-size: clamp(1.2rem,2vw,1.65rem); line-height: 2.1; }
.verse-frame small { display: inline-block; margin-top: 20px; color: var(--gold-soft); }
.stats-ribbon { position: absolute; right: 50%; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; width: min(calc(100% - 32px), 1200px); min-height: 104px; padding: 16px 34px; color: var(--ink); background: var(--cream); border-radius: 22px 22px 0 0; box-shadow: 0 -14px 50px rgba(0,0,0,.13); transform: translateX(50%); }
.stats-ribbon > div { display: flex; flex-direction: column; align-items: center; }
.stats-ribbon strong { font-family: var(--font-poem); font-size: 1.7rem; line-height: 1.2; }
.stats-ribbon span { color: var(--ink-soft); font-size: .73rem; }
.stats-ribbon i { width: 1px; height: 40px; background: var(--line-strong); }
.section { padding: 100px 0; }
.poets-section { position: relative; background: var(--paper); }
.latest-section { background: #f2eadf; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: var(--font-poem); font-size: clamp(2rem,3.8vw,3.35rem); line-height: 1.3; }
.section-heading > p:not(.eyebrow), .split-heading > div > p:last-child { margin: 8px 0 0; color: var(--ink-soft); }
.split-heading { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; }
.alphabet-filter { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 590px; }
.alphabet-filter button { min-width: 31px; height: 31px; padding: 0 7px; color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: .75rem; }
.alphabet-filter button:hover, .alphabet-filter button.active { color: #fff; background: var(--wine); }
.poet-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.poet-card { position: relative; overflow: hidden; min-height: 420px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(49,37,27,.045); transition: transform .25s, box-shadow .25s; }
.poet-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.poet-card[hidden] { display: none; }
.poet-portrait-wrap { position: relative; display: grid; place-items: center; height: 210px; overflow: hidden; background: radial-gradient(circle at 50% 55%, #e6d8c3, #cdbca3); }
.poet-portrait-wrap::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: repeating-radial-gradient(circle at 50% 120%, transparent 0 16px, rgba(114,86,53,.2) 17px 18px); }
.poet-portrait { position: relative; z-index: 1; width: 155px; height: 175px; object-fit: cover; object-position: top; filter: sepia(.18) saturate(.85); border-radius: 50% 50% 16px 16px; }
.poet-monogram { position: relative; z-index: 1; display: grid; place-items: center; width: 136px; height: 136px; color: var(--wine); background: rgba(255,253,248,.67); border: 1px solid rgba(142,45,69,.16); border-radius: 50%; font-family: var(--font-poem); font-size: 4.6rem; box-shadow: inset 0 0 0 9px rgba(255,255,255,.35); }
.portrait-ring { position: absolute; z-index: 2; width: 173px; height: 173px; border: 1px solid rgba(142,45,69,.2); border-radius: 50%; }
.poet-card-body { padding: 21px 22px 18px; }
.poet-card h3 { margin: 0; font-family: var(--font-poem); font-size: 1.45rem; }
.poet-card h3 a::after { content: ""; position: absolute; inset: 0; }
.poet-card-body > small { display: block; min-height: 22px; color: var(--gold); font-size: .7rem; }
.poet-card-body > p { min-height: 67px; margin: 8px 0 12px; color: var(--ink-soft); font-size: .79rem; line-height: 1.8; }
.poet-card-meta { display: flex; gap: 9px; color: var(--ink-soft); font-size: .7rem; }
.poet-card-meta span { padding: 3px 8px; background: var(--paper-deep); border-radius: 999px; }
.filter-empty { padding: 40px; text-align: center; color: var(--ink-soft); }
.text-link { color: var(--wine); font-weight: 800; }
.latest-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.latest-card { display: grid; grid-template-columns: 52px 1fr 40px; gap: 17px; align-items: center; min-height: 148px; padding: 20px; background: rgba(255,253,248,.74); border: 1px solid var(--line); border-radius: 16px; transition: background .2s, transform .2s; }
.latest-card:hover { background: #fff; transform: translateY(-3px); }
.latest-number { color: rgba(142,45,69,.28); font-family: var(--font-poem); font-size: 2rem; }
.latest-card h3 { margin: 3px 0 4px; font-family: var(--font-poem); font-size: 1.15rem; line-height: 1.55; }
.latest-card p { margin: 0; color: var(--ink-soft); font-size: .77rem; }
.latest-card .poem-kicker { color: var(--wine); font-size: .65rem; font-weight: 800; }
.round-arrow { display: grid; place-items: center; width: 36px; height: 36px; color: var(--wine); border: 1px solid rgba(142,45,69,.28); border-radius: 50%; transition: .2s; }
.latest-card:hover .round-arrow, .refined-list a:hover .round-arrow, .catalog-list a:hover .round-arrow { color: #fff; background: var(--wine); }
.page-paper { min-height: 68vh; padding: 24px 0 100px; background: var(--paper); }
.page-paper::before { content: ""; position: fixed; inset: 91px 0 0; z-index: -1; opacity: .35; pointer-events: none; background-image: radial-gradient(rgba(91,72,49,.09) .6px, transparent .6px); background-size: 7px 7px; }
.poetry-breadcrumb { min-width: 0; margin: 12px 0 34px; overflow: visible; }
.poetry-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; min-width: 0; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .75rem; }
.poetry-breadcrumb li:not(:last-child)::after { content: "←"; margin-right: 8px; color: var(--gold); }
.poetry-breadcrumb li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.poetry-breadcrumb li:last-child { color: var(--ink); font-weight: 800; }
.page-heading { display: flex; gap: 30px; align-items: center; justify-content: space-between; margin-bottom: 42px; padding: 30px 0 38px; border-bottom: 1px solid var(--line-strong); }
.page-heading h1 { margin: 0; font-family: var(--font-poem); font-size: clamp(2.5rem,5vw,4.7rem); line-height: 1.25; }
.page-heading > div:first-child > p:last-child { max-width: 760px; margin: 10px 0 0; color: var(--ink-soft); }
.heading-seal { display: grid; place-items: center; width: 108px; height: 108px; flex: 0 0 108px; color: var(--wine); border: 2px solid var(--wine); border-radius: 50% 50% 44% 56%; font-family: var(--font-poem); font-size: 1.35rem; transform: rotate(-5deg); box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--wine); }
.path-title { color: var(--gold) !important; font-size: .78rem; }
.intro-prose { max-width: 900px; margin: -15px 0 55px; padding: 26px 30px; background: rgba(255,255,255,.55); border-right: 4px solid var(--wine); border-radius: 12px; color: var(--ink-soft); }
.content-section { margin-top: 90px; }
.content-section.compact-top { margin-top: 45px; }
.poet-profile { display: grid; grid-template-columns: 230px 1fr 180px; gap: 45px; align-items: start; padding: 42px; background: var(--cream); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.profile-portrait { display: grid; place-items: center; width: 210px; height: 250px; overflow: hidden; background: linear-gradient(160deg,#e6d8c4,#c9b799); border: 9px solid var(--paper-deep); border-radius: 48% 48% 20px 20px; box-shadow: 0 14px 35px rgba(65,46,30,.15); }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: sepia(.18); }
.profile-portrait span { color: var(--wine); font-family: var(--font-poem); font-size: 6rem; }
.profile-copy h1 { margin: 0; font-family: var(--font-poem); font-size: clamp(2.7rem,5vw,4.6rem); }
.latin-name { margin: 0 0 15px; color: var(--gold); font-size: .8rem; }
.profile-bio { color: var(--ink-soft); line-height: 2.1; }
.bio-details { margin-top: 16px; }
.bio-details summary { width: max-content; color: var(--wine); cursor: pointer; font-weight: 800; }
.bio-details > div { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.profile-stats { display: grid; gap: 12px; }
.profile-stats div { padding: 17px 14px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.profile-stats strong { display: block; color: var(--wine); font-family: var(--font-poem); font-size: 1.55rem; }
.profile-stats span { color: var(--ink-soft); font-size: .72rem; }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.book-card { position: relative; min-height: 240px; overflow: hidden; padding: 28px 28px 24px 42px; background: var(--cream); border: 1px solid var(--line); border-radius: 7px 18px 18px 7px; box-shadow: 7px 8px 0 rgba(104,75,49,.08); transition: transform .2s; }
.book-card:hover { transform: translateY(-5px) rotate(.3deg); }
.book-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 15px; background: var(--wine); box-shadow: inset -3px 0 rgba(255,255,255,.15); }
.book-icon { color: var(--gold); font-family: var(--font-poem); font-size: .75rem; }
.book-card h3 { margin: 8px 0; font-family: var(--font-poem); font-size: 1.45rem; }
.book-card p { color: var(--ink-soft); font-size: .78rem; }
.book-meta { display: flex; gap: 8px; font-size: .7rem; color: var(--ink-soft); }
.book-meta span { padding: 3px 8px; background: var(--paper); border-radius: 999px; }
.stretched-link-label { position: absolute; right: 28px; bottom: 20px; color: var(--wine); font-size: .75rem; font-weight: 800; }
.refined-list, .catalog-list { overflow: hidden; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
.refined-list > a, .catalog-list > a { display: grid; grid-template-columns: 48px 1fr 40px; gap: 18px; align-items: center; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.refined-list > a:last-child, .catalog-list > a:last-child { border-bottom: 0; }
.refined-list > a:hover, .catalog-list > a:hover { background: #fff; }
.list-index { color: var(--gold); font-family: var(--font-poem); font-size: 1.2rem; }
.list-copy { display: flex; flex-direction: column; }
.list-copy strong { font-family: var(--font-poem); font-size: 1.05rem; }
.list-copy small { color: var(--wine); font-size: .68rem; }
.list-copy em { margin-top: 5px; color: var(--ink-soft); font-size: .76rem; font-style: normal; }
.chapter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.chapter-card { display: grid; grid-template-columns: 42px 1fr 26px; gap: 14px; align-items: center; min-height: 108px; padding: 17px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.chapter-card:hover { border-color: rgba(142,45,69,.42); box-shadow: 0 13px 35px rgba(67,45,29,.07); }
.chapter-number { color: rgba(142,45,69,.35); font-family: var(--font-poem); font-size: 1.45rem; }
.chapter-card strong, .chapter-card small { display: block; }
.chapter-card strong { font-family: var(--font-poem); }
.chapter-card small { margin-top: 3px; color: var(--ink-soft); font-size: .68rem; }
.chapter-card b { color: var(--wine); }
.result-count { color: var(--wine); background: var(--wine-soft); padding: 6px 13px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.pagination-wrap, .admin-pagination { display: flex; justify-content: center; margin-top: 34px; }
.pagination { gap: 5px; }
.page-link { color: var(--ink); background: var(--cream); border-color: var(--line); border-radius: 8px !important; }
.page-link:hover, .active > .page-link { color: #fff; background: var(--wine); border-color: var(--wine); }
.empty-state { grid-column: 1 / -1; padding: 65px 25px; text-align: center; background: rgba(255,255,255,.45); border: 1px dashed var(--line-strong); border-radius: 18px; }
.empty-symbol { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 12px; color: var(--wine); border: 1px solid var(--wine); border-radius: 50%; font-family: var(--font-poem); font-size: 2rem; }
.empty-state h3 { font-family: var(--font-poem); }
.empty-state p { color: var(--ink-soft); }
.poem-container { max-width: 1180px; }
.poem-article { padding: 32px 54px 50px; background: rgba(255,253,248,.92); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.poem-header { width: 100%; max-width: 950px; margin: 0 auto 24px; text-align: center; }
.poem-header h1 { width: 100%; max-width: 100%; margin: 6px auto 12px; font-family: var(--font-poem); font-size: clamp(1.55rem,2.35vw,2.45rem); line-height: 1.6; overflow-wrap: anywhere; text-wrap: pretty; }
.poem-header .eyebrow a { color: inherit; }
.poem-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; justify-content: center; color: var(--ink-soft); font-size: .72rem; }
.poem-meta span { position: relative; }
.poem-meta span:not(:last-child)::after { content: "◆"; margin-right: 18px; color: var(--gold); font-size: .45rem; }
.poem-meta b { color: var(--ink); }
.poem-tools { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 24px; }
.poem-tools button, .poem-tools a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 11px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .69rem; }
.poem-tools button:hover, .poem-tools a:hover { color: var(--wine); border-color: rgba(142,45,69,.35); }
.audio-deck { display: grid; grid-template-columns: 170px 1fr; gap: 22px; margin: 38px auto; padding: 18px; background: #eef1ed; border: 1px solid rgba(66,106,103,.18); border-radius: 17px; }
.audio-title { display: flex; gap: 12px; align-items: center; padding: 7px 12px; }
.audio-title > span { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--teal); border-radius: 50%; font-size: 1.25rem; }
.audio-title strong, .audio-title small { display: block; }
.audio-title small { color: var(--ink-soft); font-size: .68rem; }
.audio-tracks { display: grid; gap: 8px; }
.audio-track { display: grid; grid-template-columns: minmax(120px,1fr) minmax(250px,2fr); gap: 15px; align-items: center; padding: 8px 10px; background: rgba(255,255,255,.65); border-radius: 10px; }
.audio-track strong, .audio-track small { display: block; }
.audio-track strong { font-size: .78rem; }
.audio-track small { color: var(--ink-soft); font-size: .65rem; }
.audio-track audio { width: 100%; height: 35px; }
.poem-stage { position: relative; max-width: 950px; margin: 45px auto; padding: 35px 25px; }
.poem-stage::before { display: none; }
.stage-ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); opacity: .72; }
.stage-ornament::before, .stage-ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.stage-ornament.bottom { margin-top: 32px; }
.poem-text { position: relative; z-index: 1; padding: 22px 0; }
.couplet { position: relative; display: grid; grid-template-columns: 1fr 24px 1fr; gap: 8px; align-items: baseline; min-height: 64px; padding: 10px 30px; font-family: var(--font-fa); font-size: clamp(1.06rem,2.1vw,1.48rem); line-height: 2.1; }
.couplet p { margin: 0; }
.hemistich-right { text-align: left; }
.hemistich-left { text-align: right; }
.couplet-divider { color: var(--gold); text-align: center; font-size: .42rem; }
.couplet-centered { padding-inline: 75px; }
.verse-number { position: absolute; right: 0; top: 50%; display: none; width: 26px; color: rgba(142,45,69,.5); font-family: var(--font-fa); font-size: .62rem; text-align: center; transform: translateY(-50%); }
.poem-text.numbers-on .verse-number { display: block; }
.poem-text.numbers-disabled .verse-number { display: none !important; }
.poem-text.posting-disabled .verse-permalink { display: none !important; }
.verse-row, .prose-block { position: relative; max-width: 800px; margin: 0 auto; padding: 9px 35px; text-align: center; }
.verse-row p { margin: 0; font-family: var(--font-fa); font-size: clamp(1.06rem,2.1vw,1.48rem); line-height: 2.1; }
.prose-block { margin-block: 20px; padding: 24px 34px; text-align: right; background: rgba(242,234,219,.55); border-right: 3px solid var(--gold); border-radius: 10px; }
.prose-block p { margin: 0; line-height: 2.15; }
.orphan-line { color: var(--ink); }
[data-verse-id].active-reading { color: var(--wine); text-shadow: 0 0 22px rgba(142,45,69,.2); }
.poem-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.poem-navigation a { display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: auto auto; gap: 2px 10px; align-items: center; min-width: 0; min-height: 80px; padding: 14px 16px; background: var(--paper); border: 1px solid transparent; border-radius: 12px; }
.poem-navigation a:hover { border-color: rgba(142,45,69,.22); background: var(--cream); }
.poem-navigation a.previous > span { grid-column: 1; grid-row: 1 / span 2; }
.poem-navigation a.previous > small, .poem-navigation a.previous > strong { grid-column: 2; min-width: 0; }
.poem-navigation a.next { grid-template-columns: minmax(0,1fr) 34px; text-align: left; }
.poem-navigation a.next > span { grid-column: 2; grid-row: 1 / span 2; }
.poem-navigation a.next > small, .poem-navigation a.next > strong { grid-column: 1; min-width: 0; }
.poem-navigation small, .poem-navigation strong { display: block; }
.poem-navigation small { color: var(--wine); font-size: .65rem; }
.poem-navigation strong { overflow-wrap: anywhere; font-family: var(--font-poem); font-size: .92rem; line-height: 1.75; }
.poem-navigation a > span { color: var(--wine); font-size: 1.3rem; }
.similar-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.similar-grid a { display: flex; flex-direction: column; min-height: 150px; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 13px; }
.similar-grid a:hover { border-color: rgba(142,45,69,.35); transform: translateY(-3px); }
.similar-grid small { color: var(--wine); font-size: .65rem; }
.similar-grid strong { margin: 7px 0 auto; font-family: var(--font-poem); }
.similar-grid span { color: var(--ink-soft); font-size: .68rem; }
.contribution-section { display: grid; grid-template-columns: 290px 1fr; gap: 45px; margin-top: 90px; padding-top: 55px; border-top: 1px solid var(--line-strong); }
.contribution-intro h2 { font-family: var(--font-poem); font-size: 2.1rem; }
.contribution-intro > p:last-child { color: var(--ink-soft); font-size: .8rem; }
.contribution-accordion .accordion-item { overflow: hidden; margin-bottom: 10px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px !important; }
.contribution-accordion .accordion-button { font-weight: 800; }
.contribution-accordion .accordion-button:not(.collapsed) { color: var(--wine); background: var(--wine-soft); box-shadow: none; }
.contribution-accordion .form-control, .contribution-accordion .form-select, .profile-settings .form-control { background: #fff; border-color: var(--line-strong); }
.published-comments { grid-column: 2; margin-top: 30px; }
.published-comments h3 { margin-bottom: 18px; font-family: var(--font-poem); }
.published-comments article { display: grid; grid-template-columns: 42px 1fr; gap: 13px; margin-bottom: 10px; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.comment-avatar { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--teal); border-radius: 50%; }
.published-comments header { display: flex; justify-content: space-between; }
.published-comments time { color: var(--ink-soft); font-size: .68rem; }
.published-comments p { margin: 6px 0 0; color: var(--ink-soft); font-size: .82rem; }
.search-shell { max-width: 1120px; }
.search-heading { margin-bottom: 28px; }
.advanced-search { padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 12px 38px rgba(59,42,30,.06); }
.search-primary { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px 7px 12px; border: 1px solid var(--line-strong); border-radius: 12px; }
.search-primary > span { color: var(--wine); font-size: 1.5rem; }
.search-primary input { min-width: 0; padding: 9px; background: transparent; border: 0; outline: 0; font-size: 1rem; }
.search-primary button { padding: 11px 24px; color: #fff; background: var(--wine); border: 0; border-radius: 9px; font-weight: 800; }
.search-filters { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 17px; }
.search-filters label { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: .68rem; }
.search-filters select, .search-filters input { width: 100%; height: 41px; padding: 6px 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: .75rem; }
.search-filters > a { padding: 8px; color: var(--wine); font-size: .7rem; text-align: center; }
.search-results { margin-top: 55px; }
.search-result-card { margin-bottom: 13px; padding: 24px 27px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; transition: transform .2s, box-shadow .2s; }
.search-result-card:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(49,35,27,.07); }
.result-meta { display: flex; gap: 8px; align-items: center; color: var(--wine); font-size: .62rem; }
.result-meta i { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }
.search-result-card h3 { margin: 7px 0; font-family: var(--font-poem); font-size: 1.15rem; }
.search-result-card > p { margin: 0; color: var(--ink-soft); font-size: .72rem; }
.search-result-card mark { color: var(--wine-dark); background: #f7df8e; padding: 0 2px; }
.result-footer { display: flex; justify-content: space-between; margin-top: 12px; color: var(--ink-soft); font-size: .64rem; }
.result-footer a { color: var(--wine); font-weight: 800; }
.auth-page .site-header, .auth-page .site-footer, .auth-page .ornament-line { display: none; }
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; background: var(--cream); }
.auth-shell.single { display: grid; grid-template-columns: minmax(320px,560px); place-content: center; background: radial-gradient(circle at 50% 0,#f0e3ce,transparent 50%),var(--paper); }
.auth-art { position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; background: #263d40; }
.auth-art::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: repeating-linear-gradient(45deg,transparent 0 20px,#fff 21px 22px),repeating-linear-gradient(-45deg,transparent 0 20px,#fff 21px 22px); }
.auth-verse { position: relative; max-width: 470px; padding: 60px; text-align: center; border: 1px solid rgba(234,217,183,.4); border-radius: 50% 50% 22px 22px / 20% 20% 22px 22px; }
.auth-verse > span { display: block; color: var(--gold-soft); font-family: var(--font-poem); font-size: 5rem; line-height: .6; opacity: .5; }
.auth-verse p { font-family: var(--font-poem); font-size: 1.65rem; line-height: 2.2; }
.auth-verse small { color: var(--gold-soft); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; width: min(100%, 560px); margin: auto; padding: 60px 70px; }
.auth-shell.single .auth-panel { min-width: min(92vw,560px); background: var(--cream); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.auth-brand { display: inline-flex; gap: 10px; align-items: center; width: max-content; margin-bottom: 55px; }
.auth-brand strong { font-family: var(--font-poem); font-size: 1.3rem; }
.auth-copy h1 { margin: 0; font-family: var(--font-poem); font-size: 3.2rem; }
.auth-copy > p:last-child { color: var(--ink-soft); }
.auth-form { display: grid; gap: 18px; margin-top: 26px; }
.auth-form label { color: var(--ink-soft); font-size: .76rem; font-weight: 700; }
.auth-form label input:not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; }
.auth-form label input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(142,45,69,.1); }
.auth-form .remember { display: flex; gap: 8px; align-items: center; }
.auth-form button { padding: 13px; color: #fff; background: var(--wine); border: 0; border-radius: 10px; font-weight: 900; }
.back-home { margin-top: 25px; color: var(--wine); font-size: .75rem; }
.otp-input { text-align: center; letter-spacing: .45em; font-size: 1.4rem !important; }
.profile-settings { padding-bottom: 60px; }
.settings-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.settings-card { padding: 28px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
.settings-card h2 { margin-bottom: 23px; font-family: var(--font-poem); }
.security-state { display: flex; gap: 13px; align-items: center; margin-bottom: 24px; padding: 15px; background: var(--paper); border-radius: 12px; }
.security-state > span { display: grid; place-items: center; width: 45px; height: 45px; color: #fff; background: var(--ink-soft); border-radius: 50%; font-size: 1.2rem; }
.security-state.enabled > span { background: var(--teal); }
.security-state strong, .security-state p { display: block; margin: 0; }
.security-state p { color: var(--ink-soft); font-size: .72rem; }
.input-button { display: flex; gap: 8px; }
.setup-secret { margin-bottom: 20px; }
.setup-secret code { display: block; overflow-wrap: anywhere; padding: 13px; background: #eef1ed; border-radius: 8px; text-align: center; }
.setup-secret details { margin-top: 10px; font-size: .7rem; }
.setup-secret textarea { width: 100%; margin-top: 7px; font-size: .65rem; }
.site-footer { position: relative; padding: 72px 0 24px; color: rgba(255,255,255,.78); background: #1b2b2e; }
.footer-ornament { position: absolute; top: -13px; right: 50%; display: flex; align-items: center; width: min(70%,700px); color: var(--gold); transform: translateX(50%); }
.footer-ornament::before,.footer-ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.footer-ornament span { margin: 0 10px; }
.footer-brand { display: flex; gap: 14px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--font-poem); font-size: 1.4rem; }
.footer-brand p { max-width: 480px; margin: 6px 0 0; font-size: .78rem; }
.site-footer h2 { margin: 0 0 10px; color: var(--gold-soft); font-family: var(--font-poem); font-size: 1rem; }
.site-footer .col-6 a, .site-footer .col-lg-2 a { display: block; padding: 3px 0; font-size: .75rem; }
.footer-note { font-size: .72rem; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .67rem; }
.toast { color: var(--ink); background: var(--cream); }
@media (max-width: 1199px) {
    .poet-grid { grid-template-columns: repeat(3,1fr); }
    .hero-inner { gap: 35px; }
    .header-search { width: 190px; }
    .search-filters { grid-template-columns: repeat(2,1fr); }
    .search-filters > a { grid-column: 2; }
}
@media (max-width: 991px) {
    .site-header .navbar-collapse { margin-top: 14px; padding: 15px; background: var(--cream); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
    .brand-lockup { margin-left: 0; }
    .navbar-toggler { border-color: var(--line-strong); }
    .header-search { width: 100%; margin: 10px 0; }
    .account-button { width: 100%; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 70px; }
    .hero-verse { display: none; }
    .hero-copy { max-width: 780px; }
    .poet-grid { grid-template-columns: repeat(2,1fr); }
    .section-heading.split-heading { align-items: flex-start; flex-direction: column; }
    .alphabet-filter { justify-content: flex-start; }
    .poet-profile { grid-template-columns: 190px 1fr; }
    .profile-portrait { width: 180px; height: 220px; }
    .profile-stats { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); }
    .category-grid, .chapter-grid { grid-template-columns: repeat(2,1fr); }
    .poem-article { padding-inline: 28px; }
    .similar-grid { grid-template-columns: repeat(2,1fr); }
    .contribution-section { grid-template-columns: 1fr; }
    .published-comments { grid-column: 1; }
    .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .container-xxl { --bs-gutter-x: 1.25rem; }
    .hero-section { min-height: 680px; }
    .hero-inner { min-height: 575px; padding-bottom: 125px; }
    .hero-copy h1 { font-size: 3.3rem; }
    .hero-search { grid-template-columns: 25px 1fr; }
    .hero-search button { grid-column: 1 / -1; }
    .stats-ribbon { grid-template-columns: repeat(2,1fr); gap: 9px; padding: 14px; }
    .stats-ribbon i { display: none; }
    .stats-ribbon strong { font-size: 1.25rem; }
    .section { padding: 70px 0; }
    .poet-grid { grid-template-columns: 1fr; }
    .poet-card { min-height: 0; }
    .poet-portrait-wrap { height: 185px; }
    .latest-grid { grid-template-columns: 1fr; }
    .latest-card { grid-template-columns: 40px 1fr; }
    .latest-card .round-arrow { display: none; }
    .poet-profile { grid-template-columns: 1fr; padding: 25px; text-align: center; }
    .profile-portrait { margin: auto; }
    .profile-bio { text-align: right; }
    .profile-stats { grid-template-columns: 1fr 1fr 1fr; }
    .category-grid, .chapter-grid { grid-template-columns: 1fr; }
    .page-heading { align-items: flex-start; }
    .heading-seal { display: none; }
    .refined-list > a, .catalog-list > a { grid-template-columns: 34px 1fr; padding-inline: 14px; }
    .refined-list .round-arrow, .catalog-list .round-arrow { display: none; }
    .poem-article { padding: 24px 10px 34px; border-radius: 17px; }
    .poem-header h1 { font-size: clamp(1.45rem,7vw,2rem); line-height: 1.65; }
    .poem-stage { padding-inline: 0; }
    .poem-stage::before { display: none; }
    .couplet { grid-template-columns: 1fr; gap: 0; padding: 14px 28px; border-bottom: 1px solid rgba(72,57,43,.08); }
    .hemistich-right, .hemistich-left { text-align: center; }
    .couplet-divider { display: none; }
    .couplet-centered { padding-inline: 28px; }
    .verse-number { right: 4px; }
    .audio-deck { grid-template-columns: 1fr; }
    .audio-track { grid-template-columns: 1fr; }
    .poem-navigation { grid-template-columns: 1fr; }
    .poem-navigation a.next { grid-template-columns: minmax(0,1fr) 34px; }
    .similar-grid { grid-template-columns: 1fr; }
    .contribution-section { margin-top: 55px; }
    .search-filters { grid-template-columns: 1fr; }
    .search-filters > a { grid-column: 1; }
    .search-primary { grid-template-columns: 26px 1fr; }
    .search-primary button { grid-column: 1/-1; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-panel { padding: 45px 25px; }
    .footer-bottom { gap: 10px; flex-direction: column; }
}
@media print {
    .ornament-line,.site-header,.site-footer,.poetry-breadcrumb,.poem-tools,.audio-deck,.poem-navigation,.similar-section,.contribution-section,.flash-stack { display: none !important; }
    body.public-site,.page-paper { color: #000; background: #fff; }
    .poem-paper { padding: 0; }
    .poem-article { border: 0; box-shadow: none; padding: 0; }
    .poem-stage::before { display: none; }
    .couplet,.verse-row { break-inside: avoid; }
    .poem-text { font-size: 12pt; }
}

.contributor-credits { grid-column: 2; margin-top: 12px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--cream) 82%, white); }
.contributor-credits strong { display: block; margin-bottom: 5px; font-family: var(--font-poem); }
.contributor-credits p { margin: 0; color: var(--ink-soft); }
@media (max-width: 991.98px) { .contributor-credits { grid-column: 1; } }

/* Theme presets - v1.0.8 */
body.public-site.theme-classic {
    --ink:#243036;--ink-soft:#566268;--paper:#fbf7ee;--paper-deep:#f2eadb;--cream:#fffdf8;
    --wine:#8e2d45;--wine-dark:#672033;--wine-soft:#f2e1e4;--gold:#b78a45;--gold-soft:#ead9b7;--teal:#426a67;
    --line:rgba(72,57,43,.14);--line-strong:rgba(72,57,43,.24);--shadow:0 24px 70px rgba(52,37,29,.10);
}
body.public-site.theme-midnight {
    --ink:#edf3f5;--ink-soft:#aebbc2;--paper:#101922;--paper-deep:#16232e;--cream:#1a2732;
    --wine:#4e8fbd;--wine-dark:#2d638a;--wine-soft:#1d3547;--gold:#d3aa5b;--gold-soft:#ead7ad;--teal:#4f9c8c;
    --line:rgba(222,235,240,.11);--line-strong:rgba(222,235,240,.20);--shadow:0 24px 70px rgba(0,0,0,.28);
}
body.public-site.theme-emerald {
    --ink:#24332f;--ink-soft:#60706a;--paper:#f4f1e8;--paper-deep:#e8e3d5;--cream:#fffdf7;
    --wine:#216b5a;--wine-dark:#164b40;--wine-soft:#dcebe5;--gold:#a77a3c;--gold-soft:#e6d1a7;--teal:#2b736b;
    --line:rgba(39,68,59,.14);--line-strong:rgba(39,68,59,.24);--shadow:0 24px 70px rgba(31,54,46,.10);
}
body.public-site.theme-ivory {
    --ink:#1f2933;--ink-soft:#61707c;--paper:#fafafa;--paper-deep:#eef1f4;--cream:#ffffff;
    --wine:#315d87;--wine-dark:#234463;--wine-soft:#e1eaf2;--gold:#8c6c3f;--gold-soft:#e8dcc7;--teal:#477977;
    --line:rgba(31,41,51,.11);--line-strong:rgba(31,41,51,.20);--shadow:0 24px 70px rgba(31,41,51,.08);
    --radius:16px;
}

body.public-site.theme-midnight .site-header{background:rgba(16,25,34,.94)}
body.public-site.theme-emerald .site-header{background:rgba(244,241,232,.95)}
body.public-site.theme-ivory .site-header{background:rgba(250,250,250,.96)}
body.public-site.theme-midnight .header-search,
body.public-site.theme-midnight .hero-search,
body.public-site.theme-midnight .latest-card,
body.public-site.theme-midnight .intro-prose,
body.public-site.theme-midnight .empty-state,
body.public-site.theme-midnight .contribution-accordion .form-control,
body.public-site.theme-midnight .contribution-accordion .form-select,
body.public-site.theme-midnight .profile-settings .form-control{background:rgba(255,255,255,.07);color:var(--ink)}
body.public-site.theme-midnight .hero-search input,
body.public-site.theme-midnight .header-search input{color:var(--ink)}
body.public-site.theme-midnight .latest-section{background:#131f29}
body.public-site.theme-emerald .latest-section{background:#eae5d9}
body.public-site.theme-ivory .latest-section{background:#f1f4f7}
body.public-site.theme-midnight .latest-card:hover,
body.public-site.theme-midnight .refined-list>a:hover,
body.public-site.theme-midnight .catalog-list>a:hover{background:#21303b}
body.public-site.theme-midnight .poet-monogram{background:rgba(255,255,255,.06)}
body.public-site.theme-midnight .poem-article{background:rgba(26,39,50,.94)}
body.public-site.theme-midnight .audio-deck,
body.public-site.theme-midnight .setup-secret code{background:#172631}
body.public-site.theme-midnight .audio-track{background:rgba(255,255,255,.06)}
body.public-site.theme-midnight .prose-block{background:rgba(255,255,255,.045)}
body.public-site.theme-midnight .poem-navigation a:hover{background:#21303b}
body.public-site.theme-midnight .search-result-card mark{background:#5c4a24;color:#fff1c7}
body.public-site.theme-midnight .site-footer{background:#091119}
body.public-site.theme-midnight .auth-art{background:#0e1a24}
body.public-site.theme-emerald .site-footer{background:#17332c}
body.public-site.theme-emerald .auth-art{background:#214a40}
body.public-site.theme-ivory .site-footer{background:#202c36}
body.public-site.theme-ivory .auth-art{background:#263f55}

body.public-site.theme-midnight .page-paper,
body.public-site.theme-midnight .category-page,
body.public-site.theme-midnight .poem-page,
body.public-site.theme-midnight .search-page{background:var(--paper);color:var(--ink)}
body.public-site.theme-midnight .admin-card,
body.public-site.theme-midnight .settings-card{color:var(--ink)}

/* Verse permalinks, per-verse SEO pages and human verification — v1.0.8 */
.account-links { display:flex;align-items:center;gap:8px; }
.account-link-subtle { color:var(--ink-soft);font-size:.72rem;font-weight:800; }
.verse-text { position:relative; }
.verse-permalink { display:inline-grid;place-items:center;width:22px;height:22px;margin-inline-start:7px;color:var(--ink-soft);border:1px solid transparent;border-radius:50%;font-family:var(--font-fa);font-size:.62rem;line-height:1;opacity:0;transform:translateY(-1px);transition:opacity .18s,border-color .18s,color .18s;vertical-align:middle; }
[data-verse-id]:hover .verse-permalink,.verse-permalink:focus-visible { color:var(--wine);border-color:var(--line-strong);opacity:1; }
[data-verse-id]:target { border-radius:10px;outline:3px solid color-mix(in srgb,var(--gold) 34%,transparent);background:color-mix(in srgb,var(--gold-soft) 22%,transparent);scroll-margin-top:130px; }
.captcha-field { display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px);grid-template-areas:"copy copy" "challenge answer";gap:14px;align-items:stretch;width:100%;min-width:0;padding:16px;background:color-mix(in srgb,var(--cream) 88%,white);border:1px solid var(--line-strong);border-radius:12px; }
.captcha-copy { grid-area:copy;min-width:0;align-self:end; }
.captcha-copy label { display:block;margin:0 0 3px;font-weight:900; }.captcha-copy small { display:block;color:var(--ink-soft);font-size:.67rem;line-height:1.65; }
.captcha-challenge { grid-area:challenge;display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:8px;align-items:stretch;min-width:0;width:100%; } .captcha-challenge img { grid-column:1;display:block;width:100%;max-width:230px;min-width:0;height:72px;justify-self:center;background:#f5f1e8;border:1px solid var(--line);border-radius:10px;object-fit:cover; }
.captcha-refresh { grid-column:2;display:flex;flex-direction:column;align-items:center;justify-content:center;width:62px;min-width:0;max-width:62px;height:72px;color:var(--wine);background:transparent;border:1px solid var(--line-strong);border-radius:10px;font-weight:900; }.captcha-refresh span { font-size:.58rem; }.captcha-refresh:hover { color:#fff;background:var(--wine); }
.captcha-field>.form-control { grid-area:answer;width:100%;max-width:100%;min-width:0;min-height:52px;text-align:center;direction:ltr;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.1rem;font-weight:900;letter-spacing:.15em; }
.captcha-honeypot { position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important; }
.auth-form .captcha-field { grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "challenge" "answer";align-items:stretch;padding:14px; }.auth-form .captcha-challenge { justify-content:space-between; }.auth-form .captcha-challenge img { width:100%;max-width:230px; }.auth-alternatives { display:flex;gap:7px;justify-content:center;margin-top:18px;color:var(--ink-soft);font-size:.72rem; }.auth-alternatives a { color:var(--wine);font-weight:900; }
.verse-seo-page { padding-bottom:100px; }.verse-focus { overflow:hidden;max-width:1050px;margin:26px auto 0;background:var(--cream);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow); }
.verse-focus-header { display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:35px;align-items:center;padding:55px 60px 48px;background:linear-gradient(135deg,color-mix(in srgb,var(--paper-deep) 75%,var(--cream)),var(--cream));border-bottom:1px solid var(--line); }
.verse-focus-header h1 { max-width:760px;margin:10px 0 0;font-family:var(--font-poem);font-size:clamp(1.8rem,4vw,3.5rem);font-weight:600;line-height:1.75; }
.verse-source-poet { display:grid;grid-template-columns:76px 1fr;grid-template-rows:auto auto;gap:3px 12px;align-items:center; }.verse-source-poet img,.verse-source-poet>span { grid-row:1/3;width:76px;height:94px;object-fit:cover;object-position:top center;background:var(--paper-deep);border:1px solid var(--line-strong);border-radius:45% 45% 10px 10px; }.verse-source-poet>span { display:grid;place-items:center;font-family:var(--font-poem);font-size:2.8rem; }.verse-source-poet small { align-self:end;color:var(--wine);font-size:.62rem; }.verse-source-poet strong { align-self:start;font-family:var(--font-poem);font-size:1rem; }
.verse-source-facts { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 45px;background:var(--paper);border-bottom:1px solid var(--line); }.verse-source-facts>div { display:flex;flex-direction:column;min-height:84px;padding:17px 18px;border-left:1px solid var(--line); }.verse-source-facts>div:last-child { border-left:0; }.verse-source-facts span { color:var(--ink-soft);font-size:.6rem; }.verse-source-facts strong,.verse-source-facts a { margin-top:3px;font-family:var(--font-poem);font-size:.88rem; }
.verse-context { display:grid;grid-template-columns:260px 1fr;gap:45px;padding:55px 60px; }.verse-context header h2,.verse-context-note h2 { margin:3px 0;font-family:var(--font-poem);font-size:1.65rem; }.verse-context header>p:last-child { color:var(--ink-soft);font-size:.72rem;line-height:1.9; }.verse-context ol { margin:0;padding:0;list-style:none;border-top:1px solid var(--line); }.verse-context li { display:grid;grid-template-columns:42px 1fr auto;gap:14px;align-items:center;min-height:70px;padding:10px 12px;border-bottom:1px solid var(--line); }.verse-context li>span { color:var(--ink-soft);font-family:var(--font-poem);font-size:.78rem; }.verse-context li p { margin:0;font-family:var(--font-poem);font-size:1.08rem;line-height:1.9; }.verse-context li>a { display:grid;place-items:center;width:26px;height:26px;color:var(--wine);border:1px solid var(--line);border-radius:50%;font-size:.65rem; }.verse-context li>b { color:var(--wine);font-size:.58rem; }.verse-context li.current { background:var(--wine-soft);border-right:3px solid var(--wine); }
.verse-context-note { margin:0 60px 45px;padding:24px 28px;background:var(--paper);border-right:3px solid var(--gold); }.verse-context-note p { margin:5px 0 0;color:var(--ink-soft);font-size:.78rem;line-height:2; }.verse-context-note a { color:var(--wine);font-weight:900; }
.verse-navigation { display:grid;grid-template-columns:1fr 1fr;gap:1px;margin:0 60px;background:var(--line);border:1px solid var(--line); }.verse-navigation a { position:relative;display:grid;grid-template-columns:1fr auto;gap:3px 14px;min-height:98px;padding:18px 22px;background:var(--cream); }.verse-navigation small { color:var(--wine);font-size:.6rem; }.verse-navigation strong { grid-column:1;font-family:var(--font-poem);font-size:.85rem;line-height:1.8; }.verse-navigation span { grid-column:2;grid-row:1/3;align-self:center;color:var(--wine);font-size:1.35rem; }
.verse-focus-footer { display:flex;gap:12px;align-items:center;justify-content:center;padding:35px 30px 45px; }.verse-focus-footer button { min-height:45px;padding:9px 19px;color:var(--wine);background:transparent;border:1px solid var(--wine);border-radius:10px;font-weight:900; }
.theme-midnight .captcha-field { background:#0d2030; }.theme-midnight .verse-focus { color:var(--ink);background:#0d2030;border-color:var(--line-strong); }.theme-midnight .verse-focus-header { background:linear-gradient(135deg,#102a3e,#081824); }.theme-midnight .verse-source-facts,.theme-midnight .verse-context-note { background:#091a28; }.theme-midnight .verse-navigation a { color:var(--ink);background:#0d2030; }
.theme-emerald .verse-focus { border-radius:0;box-shadow:10px 12px 0 rgba(30,96,79,.08),var(--shadow); }.theme-emerald .verse-focus-header { border-bottom:4px double var(--wine); }.theme-emerald .verse-navigation { border-color:var(--line-strong); }.theme-emerald .verse-navigation a { border-radius:0; }
.theme-ivory .verse-focus { border-radius:0;border-color:#111;box-shadow:none; }.theme-ivory .verse-focus-header { grid-template-columns:1fr 170px;background:#fbfaf6;border-bottom:1px solid #111; }.theme-ivory .verse-focus-header h1 { font-size:clamp(2.2rem,5vw,4.8rem);font-weight:500;line-height:1.45; }.theme-ivory .verse-source-facts { border-color:#111; }.theme-ivory .verse-context { grid-template-columns:180px 1fr; }.theme-ivory .verse-navigation { background:#111;border-color:#111; }.theme-ivory .verse-navigation a { border-radius:0; }
@media(max-width:991px){.captcha-field{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "challenge" "answer"}.captcha-challenge{justify-content:flex-start}.verse-focus-header{grid-template-columns:1fr}.verse-source-poet{max-width:240px}.verse-source-facts{grid-template-columns:repeat(2,1fr)}.verse-context{grid-template-columns:1fr}.theme-ivory .verse-context{grid-template-columns:1fr}}
@media(max-width:767px){.verse-permalink{opacity:.55}.captcha-challenge{align-items:stretch}.captcha-challenge img{height:auto;min-height:72px}.verse-focus-header{padding:32px 20px}.verse-source-facts{grid-template-columns:1fr;padding:0 20px}.verse-source-facts>div{min-height:64px;border-left:0;border-bottom:1px solid var(--line)}.verse-context{gap:20px;padding:35px 20px}.verse-context li{grid-template-columns:32px 1fr}.verse-context li>a,.verse-context li>b{grid-column:2}.verse-context-note{margin:0 20px 30px}.verse-navigation{grid-template-columns:1fr;margin:0 20px}.verse-focus-footer{flex-direction:column}.verse-focus-footer>*{width:100%}}

/* Theme preview controls — v1.0.11 */
.theme-preview-bar{position:sticky;top:0;z-index:1100;display:flex;justify-content:center;align-items:center;gap:16px;min-height:38px;padding:7px 16px;color:#fff;background:#172329;border-bottom:1px solid rgba(255,255,255,.16);font-family:Tahoma,"Segoe UI",sans-serif;font-size:.64rem}.theme-preview-bar a{padding:3px 9px;color:#f1d59d;border:1px solid rgba(241,213,157,.35);border-radius:999px}.theme-preview-bar a:hover{color:#172329;background:#f1d59d}
@media(max-width:767px){.theme-preview-bar{position:relative;flex-wrap:wrap;gap:7px;text-align:center}}

/* v1.0.11 poet directory-first layout */
.poet-directory-intro{margin-top:28px;align-items:center}
.poet-directory-copy{align-self:center}
.poet-directory-note{max-width:620px;margin:14px 0 0;color:var(--ink-soft);font-size:.86rem;line-height:1.9}
.poet-works-first{margin-top:38px}
.poet-about-section{margin-bottom:20px}
.poet-about-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:30px;padding:38px 42px;background:var(--cream);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
.poet-about-mark{display:grid;place-items:center;align-self:start;min-height:110px;padding:18px 10px;color:var(--wine);background:var(--wine-soft);border:1px solid var(--line-strong);font-family:var(--font-poem);font-size:1.35rem;font-weight:800}
.poet-about-copy{font-size:.92rem;line-height:2.15}
.poet-about-copy p{margin:0}
.poet-about-lead{font-family:var(--font-poem);font-size:1.08rem;line-height:2.1}
.poet-about-full{margin-top:20px;padding-top:20px;border-top:1px solid var(--line);color:var(--ink-soft)}
@media(max-width:767px){.poet-directory-intro{margin-top:18px}.poet-works-first{margin-top:26px}.poet-about-card{grid-template-columns:1fr;padding:24px}.poet-about-mark{min-height:auto;justify-self:start;padding:8px 18px}.poet-about-copy{text-align:right}}

/* DurNama 1.0.19 — shared public mobile overflow hardening */
html,body.public-site{max-width:100%;overflow-x:hidden}
body.public-site img,body.public-site svg,body.public-site video,body.public-site canvas,body.public-site audio{max-width:100%}
body.public-site .container-xxl,body.public-site main,body.public-site section,body.public-site article,body.public-site nav,body.public-site header,body.public-site footer,body.public-site form,body.public-site .page-paper,body.public-site .poem-container,body.public-site .poem-article,body.public-site .poem-stage,body.public-site .poem-text,body.public-site .poet-profile,body.public-site .category-grid,body.public-site .chapter-grid,body.public-site .catalog-list,body.public-site .refined-list,body.public-site .search-shell,body.public-site .verse-focus{min-width:0}
body.public-site h1,body.public-site h2,body.public-site h3,body.public-site p,body.public-site a,body.public-site strong,body.public-site em,body.public-site small{overflow-wrap:anywhere}
@media(max-width:767.98px){
body.public-site{font-size:15px}body.public-site .container-xxl{width:100%!important;max-width:100%!important;padding-inline:12px!important;margin-inline:auto!important}
body.public-site .page-paper{padding:10px 0 50px}body.public-site .page-heading{flex-direction:column;align-items:stretch;gap:9px;margin-bottom:18px;padding:12px 0 16px}body.public-site .page-heading h1{font-size:clamp(1.65rem,8.5vw,2.35rem)}body.public-site .heading-seal{display:none}
body.public-site .content-section{margin-top:34px}body.public-site .content-section.compact-top{margin-top:19px}body.public-site .section-heading{gap:7px;margin-bottom:15px}body.public-site .section-heading h2{font-size:clamp(1.4rem,7vw,1.95rem)}body.public-site .section-heading.split-heading{align-items:stretch}
body.public-site .poet-profile{width:100%;max-width:100%;grid-template-columns:1fr!important;gap:13px;padding:14px!important}body.public-site .profile-copy{min-width:0}body.public-site .profile-stats{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px}body.public-site .profile-stats div{min-width:0;padding:8px 4px}
body.public-site .category-grid,body.public-site .chapter-grid,body.public-site .similar-grid{width:100%;grid-template-columns:minmax(0,1fr)!important;gap:8px}body.public-site .book-card{min-width:0;min-height:145px;padding:15px 16px 42px 27px}body.public-site .chapter-card{grid-template-columns:30px minmax(0,1fr) 18px;gap:8px;min-height:72px;padding:10px}
body.public-site .refined-list,body.public-site .catalog-list{width:100%;max-width:100%}body.public-site .refined-list>a,body.public-site .catalog-list>a{grid-template-columns:27px minmax(0,1fr)!important;gap:8px;min-width:0;padding:11px 9px!important}body.public-site .list-copy{min-width:0}body.public-site .round-arrow{display:none!important}body.public-site .pagination{max-width:100%;flex-wrap:wrap;justify-content:center}
body.public-site .poem-container{width:100%!important;max-width:100%!important;padding-inline:5px!important}body.public-site .poem-article{width:100%;max-width:100%;padding:16px 6px 25px!important}body.public-site .poem-header{width:100%;max-width:100%;margin-bottom:13px}body.public-site .poem-header h1{max-width:100%;font-size:clamp(1.3rem,6.8vw,1.8rem)}body.public-site .poem-meta{gap:4px 9px;font-size:.62rem}body.public-site .poem-tools{gap:4px;margin-top:12px}
body.public-site .audio-deck,body.public-site .audio-track{width:100%;grid-template-columns:minmax(0,1fr)!important}body.public-site .poem-stage{width:100%;max-width:100%;margin:18px auto;padding:8px 0!important}body.public-site .poem-stage::before{display:none}body.public-site .poem-text{width:100%;max-width:100%;padding:6px 0}body.public-site .couplet{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr)!important;gap:0;padding:9px 18px!important}body.public-site .couplet p{text-align:center!important;min-width:0}body.public-site .couplet-divider{display:none!important}body.public-site .verse-row,body.public-site .prose-block{width:100%;max-width:100%;padding:8px 18px 8px 10px!important}body.public-site .poem-navigation{grid-template-columns:minmax(0,1fr)!important;gap:6px;width:100%;margin-top:15px}
body.public-site .advanced-search,body.public-site .search-shell,body.public-site .search-results,body.public-site .search-result-card{width:100%;max-width:100%}body.public-site .search-filters{grid-template-columns:minmax(0,1fr)!important}body.public-site .search-filters>a{grid-column:1!important}body.public-site .result-meta,body.public-site .result-footer{flex-wrap:wrap}
body.public-site .contribution-section{width:100%;grid-template-columns:minmax(0,1fr)!important}body.public-site .published-comments{grid-column:1}body.public-site .captcha-field{grid-template-columns:minmax(0,1fr)!important}body.public-site .captcha-challenge{width:100%;max-width:100%}
body.public-site .verse-focus{width:100%;max-width:100%;box-shadow:none}body.public-site .verse-focus-header,body.public-site .verse-source-facts,body.public-site .verse-context,body.public-site .verse-navigation{grid-template-columns:minmax(0,1fr)!important}body.public-site .verse-context ol{min-width:0;padding:0}body.public-site .verse-context li{grid-template-columns:26px minmax(0,1fr);min-width:0}body.public-site .verse-focus-footer{flex-direction:column}body.public-site .verse-focus-footer>*{width:100%;max-width:100%}
}
@media(max-width:420px){body.public-site .container-xxl{padding-inline:9px!important}body.public-site .poem-container{padding-inline:3px!important}}


/* DurNama 1.0.23: reading table follows the same content width as navigation below it. */
@media (min-width:768px){.poem-page .poem-stage{width:100%;max-width:100%;margin-inline:auto}}

/* DurNama reading-table refinements */
.poem-page .poem-stage,
.poem-page .poem-stage p,
.poem-page .poem-stage .verse-text,
.poem-page .poem-stage .verse-permalink { font-family: var(--font-fa); }
[data-poet-card-url] { cursor: pointer; }
[data-poet-card-url]:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }


/* DurNama v1.0.24: clean poem ledger alignment and ornament-free separators. */
.stage-ornament > span,.couplet-divider{font-size:0!important;}
@media (min-width:768px){.poem-page .poem-header{width:100%;max-width:100%;margin-inline:auto;}}
.poem-page .stage-ornament{display:block;height:1px;gap:0;background:linear-gradient(90deg,transparent,var(--gold),transparent);}
.poem-page .stage-ornament::before,.poem-page .stage-ornament::after{display:none!important;content:none!important;}

/* DurNama v1.0.25: whole-card category navigation. */
body.public-site [data-card-url],body.public-site [data-poet-card-url]{cursor:pointer}
body.public-site [data-card-url]:focus-visible,body.public-site [data-poet-card-url]:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* DurNama v1.0.26: About page and expanded poet-aware search. */
.search-filters{grid-template-columns:repeat(5,minmax(0,1fr)) auto}
.search-within-poet{display:block;margin-top:5px;color:var(--ink-soft);font-size:.72rem;font-weight:600}
.about-shell{padding-block:36px 80px}
.about-copy{max-width:900px;margin:28px auto 0;padding:34px 38px;background:var(--cream);border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 38px rgba(59,42,30,.06)}
.about-copy p{margin:0 0 1.25em;font-size:1rem;line-height:2.15;text-align:justify}
.about-copy p:last-child{margin-bottom:0}
.about-copy h2,.about-copy h3,.about-copy h4{margin:1.35em 0 .55em;font-family:var(--font-poem);line-height:1.7}.about-copy h2{font-size:1.45rem}.about-copy h3{font-size:1.25rem}.about-copy h4{font-size:1.08rem}.about-copy ul,.about-copy ol{margin:0 0 1.25em;padding-right:1.6em;line-height:2}.about-copy blockquote{margin:1.25em 0;padding:14px 18px;background:rgba(242,234,219,.58);border-right:3px solid var(--gold);border-radius:9px}.about-copy a{color:var(--wine);text-decoration:underline;text-underline-offset:3px}.about-copy hr{margin:1.6em 0;border:0;border-top:1px solid var(--line-strong)}.about-copy>:first-child{margin-top:0}.about-copy>:last-child{margin-bottom:0}
@media(min-width:992px){
    body.public-site .search-filters{grid-template-columns:repeat(5,minmax(0,1fr)) auto!important}
    body.public-site .search-filters>a{grid-column:auto!important}
}
@media(min-width:768px) and (max-width:991px){
    body.public-site .search-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    body.public-site .search-filters>a{grid-column:2!important}
}
@media(max-width:767px){
    body.public-site .search-filters{grid-template-columns:minmax(0,1fr)!important}
    body.public-site .search-filters>a{grid-column:1!important}
    .about-shell{padding-block:22px 48px}
    .about-copy{padding:22px 18px;border-radius:13px}
    .about-copy p{font-size:.92rem;line-height:2}
}

/* DurNama 1.0.34 — Google Authenticator challenge */
.two-factor-challenge-panel .auth-copy h1{margin-bottom:7px}.auth-recovery-option{margin-top:18px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.38)}.auth-recovery-option>summary{cursor:pointer;color:var(--wine);font-size:.72rem;font-weight:900}.auth-recovery-option .recovery-auth-form{margin-top:14px}.auth-recovery-option>p{margin:11px 0 0;color:var(--ink-soft);font-size:.62rem;line-height:1.65}.auth-cancel-form{margin:0}.auth-cancel-form .back-home{padding:0;background:transparent;border:0;font-weight:700;text-align:left}.auth-cancel-form .back-home:hover{text-decoration:underline}

/* Frontend light/dark mode toggle — v1.0.46 */
.durnama-mode-toggle{position:fixed;left:18px;bottom:18px;z-index:1090;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;color:var(--ink);background:color-mix(in srgb,var(--cream) 94%,transparent);border:1px solid var(--line-strong);border-radius:999px;box-shadow:0 8px 28px rgba(0,0,0,.13);font-family:Tahoma,"Segoe UI",sans-serif;font-size:.7rem;font-weight:800;backdrop-filter:blur(8px)}
.durnama-mode-toggle:hover{color:#fff;background:var(--wine);border-color:var(--wine)}
.durnama-mode-toggle-icon{font-size:1rem;line-height:1}.durnama-mode-toggle.is-dark .durnama-mode-toggle-icon{transform:rotate(180deg)}
html[data-color-mode="dark"] .durnama-mode-toggle{color:#f2eee7;background:rgba(24,29,31,.94);border-color:rgba(255,255,255,.22)}
html[data-color-mode="dark"] .durnama-mode-toggle:hover{background:var(--wine)}
@media(max-width:767px){.durnama-mode-toggle{left:10px;bottom:10px;padding:8px 10px}.durnama-mode-toggle [data-dark-mode-label]{display:none}}

/* v1.0.49: poem-reading verse permalink markers remain hidden; long-title, breadcrumb, and About rich-text fixes added. */
body.public-site .poem-page .poem-text .verse-permalink{display:none!important}

/* DurNama 1.0.52 — compact CAPTCHA controls and published notes beside the poem reading flow. */
.captcha-field { --captcha-control-height: 64px; }
.captcha-field .captcha-challenge { align-items: center; }
.captcha-field .captcha-challenge img,
.captcha-field .captcha-refresh,
.captcha-field > .form-control {
    height: var(--captcha-control-height) !important;
    min-height: var(--captcha-control-height) !important;
    max-height: var(--captcha-control-height) !important;
    box-sizing: border-box;
}
.captcha-field .captcha-challenge img { object-fit: cover; }
.captcha-field > .form-control { padding-block: 8px; }

.poem-published-comments {
    grid-column: auto;
    width: 100%;
    margin: 14px 0 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line-strong);
}
.poem-published-comments h3 { margin-bottom: 12px; }
.poem-published-comments article { margin-bottom: 8px; }
.poem-published-comments time { white-space: nowrap; }
.poem-published-comments + .poem-navigation { margin-top: 8px; }

@media (max-width: 767.98px) {
    .captcha-field { --captcha-control-height: 58px; }
    .captcha-field .captcha-challenge { grid-template-columns: minmax(0,1fr) 58px; }
    .captcha-refresh { width: 58px; max-width: 58px; }
    .poem-published-comments { margin-top: 10px; padding-top: 14px; }
    .poem-published-comments article { grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 13px; }
    .poem-published-comments .comment-avatar { width: 36px; height: 36px; }
    .poem-published-comments header { gap: 8px; align-items: flex-start; flex-wrap: wrap; }
}
