.greek-library { max-width: 52rem; margin: 0 auto; padding: 1.5rem max(1rem, 3vw) 3rem; }
.greek-library h1, .greek-comparison > :is(h2, h3) { font-family: Georgia, serif; }
.greek-library h1 { margin-bottom: .35rem; font-size: clamp(2rem, 6vw, 3rem); }
.greek-library form { display: grid; grid-template-columns: 2fr 1.25fr auto; align-items: end; gap: .6rem; margin: 1.5rem 0 .75rem; }
.greek-library label { display: grid; gap: .35rem; min-width: 0; }
.greek-library input, .greek-library select, .greek-library button { font: inherit; color: inherit; background: var(--surf, #16222f); border: 1px solid #466080; border-radius: .45rem; padding: .55rem .65rem; min-height: 44px; min-width: 0; }
.greek-library button { cursor: pointer; }
.greek-library a, .greek-comparison a { color: var(--glow, #85b8ff); }
[data-theme="lamp"] .greek-library :is(input, select, button) { background: #fffaf0; }
[data-theme="lamp"] :is(.greek-library, .greek-comparison) a { color: #224e7d; }
.greek-library :focus-visible, .greek-comparison :focus-visible { outline: 2px solid #6fa6e8; outline-offset: 3px; }
.greek-comparison { margin-top: 1.4rem; border-top: 1px solid #466080; padding-top: 1rem; }
.greek-comparison > :is(h2, h3) { margin: 0 0 .5rem; font-size: 1.35rem; }
.greek-card { border: 1px solid #466080; border-radius: .55rem; margin: .7rem 0; padding: .7rem .9rem; overflow-wrap: anywhere; }
.greek-card :is(h3, h4) { margin: .15rem 0 .35rem; font-size: 1rem; }
.greek-card p { margin: .35rem 0; }
.greek-card .greek-quote { font: 1.15rem/1.65 "Gentium Book Plus", Georgia, serif; }
.greek-card mark { background: transparent; color: inherit; font-weight: bold; text-decoration: underline #6fa6e8; text-underline-offset: .18em; }
.greek-meta { font-size: .87rem; }
@media (max-width: 620px) { .greek-library form { grid-template-columns: 1fr; } }
