/* ============================================================
   menu.css — shared styles for Tolkienion sidebar & content menus
   ============================================================ */

/* --- Sidebar menu (body.menu) -------------------------------- */

body.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    gap: 6px;
}

.menu-btn {
    display: block;
    width: 90px;
    padding: 4px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    font-weight: bold;
    color: #ffeeaa;
    text-decoration: none;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid #ffeeaa;
    border-radius: 5px;
    transition: background-color 0.15s, color 0.15s;
}

.menu-btn:link,
.menu-btn:visited { color: #ffeeaa; }

.menu-btn:hover {
    background-color: #ffeeaa;
    color: #4d2200;
}

.menu-divider {
    width: 90px;
    border: none;
    border-top: 1px solid rgba(255, 238, 170, 0.3);
    margin: 6px 0;
}

.menu-heading {
    font-size: 8pt;
    font-weight: bold;
    text-align: center;
    color: rgba(255, 238, 170, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Content menu (body.main) --------------------------------
   Used for deeper listing pages (e.g. poem/chapter indexes)
   that load inside the mainclient iframe.
   ------------------------------------------------------------ */

body.main {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: #ffeeaa;
    padding: 12px 14px;
    line-height: 1.6;
}

body.main h1 {
    font-size: 13pt;
    color: #ffffee;
    margin: 0 0 12px 0;
}

body.main h2 {
    font-size: 9pt;
    color: #ffffee;
    margin: 12px 0 2px 0;
}

body.main h3 {
    font-size: 9pt;
    color: #ffffff;
    margin: 12px 0 2px 0;
}

body.main a:link,
body.main a:visited {
    color: #ffcc66;
    text-decoration: none;
}

body.main a:hover {
    color: #ffffee;
    text-decoration: underline;
}

body.main ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.main ul li::before {
    content: '\2022\00a0'; /* bullet + nbsp */
    color: rgba(255, 238, 170, 0.5);
}

/* Prose pages (e.g. Silmarillion) — justified text with readable line width */
body.main.prose {
    text-align: justify;
    max-width: 780px;
}
