/* Scoped styles: affect only Hand of Vecna session journals. */
.hov-session-page { 
    margin: 0; 
    padding: 16px; 
    box-sizing: border-box; }
.hov-session-page *, .hov-session-page *::before, .hov-session-page *::after { box-sizing: border-box; }
.hov-session-header { 
    border: 1px solid #785c81; 
    margin: 12px auto; 
    max-width: 900px; 
    padding: 12px 18px; }
.hov-session-header h1 { 
    margin: 0; 
    font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hov-session-header p { 
    margin: 6px 0 0; }
.hov-session-page .hov-nav { 
    max-width: 100%; }
.hov-log-container { 
    width: min(1100px, 100%); 
    margin: 0 auto; }
.hov-session-page .hov-log-panel { 
    margin: 18px auto; 
    padding: clamp(14px, 3vw, 28px); 
    border: 1px solid #785c81; 
    border-radius: 16px; 
    background: rgba(248, 236, 219, .93); 
    color: #281b2c; 
    text-align: left; 
    box-shadow: 0 3px 10px rgba(35, 20, 40, .15); }
/* SESSION TITLE BOX */
.hov-session-page .hov-log-panel.hov-session-title {
    text-align: center;

    /* Automatically fit the box to the text */
    width: fit-content;
    max-width: 100%;

    /* Space inside the box */
    padding: 15px 30px;

    /* Center the box horizontally */
    margin: 12px auto 20px;

    /* Allow the height to adjust automatically */
    height: auto;
    min-height: 0;
}

/* Game number and date */
.hov-session-page .hov-session-title h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 8px;
    padding: 0;
}

/* Session title */
.hov-session-page .hov-session-subtitle {
    font-size: 20px;
    font-weight:bold;
    line-height: 1.3;
    font-style: italic;
    margin: 0;
    padding: 0;
}
.hov-log-panel h2 { margin-top: 0; }
.hov-log-panel h3 { margin-top: 1.4em; }
.hov-log-panel p, .hov-log-panel li { line-height: 1.6; }
.hov-session-page .hov-table-scroll { width: 100%; overflow-x: auto; }
.hov-session-page table.hov-roster { 
    width: 100%; 
    min-width: 690px; 
    border-collapse: collapse; 
    border-spacing: 0; 
    font-size: .95rem; }

/* ADVENTURING PARTY TABLE */
/* Table contents */
.hov-session-page .hov-roster td {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

/* Table column headings */
.hov-session-page .hov-roster th {
    font-size: 16px;
    font-weight: bold;
}

.hov-session-page .hov-roster th, .hov-session-page .hov-roster td { 
    border: 1px solid #a18a9f; 
    padding: 9px; 
    text-align: left; 
    background: rgba(255, 250, 239, .88); }
.hov-session-page .hov-roster th { background: #e5d2b7; }
.hov-session-page .hovGameLogJournal { font-family: 'Comic Sans MS', Arial, sans-serif; }
.hov-session-page .hov-journal-entry { margin: 20px 0; }
.hov-session-page .hov-combat { margin: 20px 0; padding: 12px 18px; border-left: 5px solid #a63e48; background: #f9e7e1; color: #3c2024; border-radius: 8px; }
.hov-session-page .hov-combat h3 { margin-top: 0; }
.hov-session-page .hov-note { font-size: .9rem; font-style: italic; }
.hov-session-page .hov-session-pagination { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0; }
.hov-session-page .hov-session-pagination a { background: url('/images/bkg_base.jpg'); color: #211522; border: 1px solid #65516e; border-radius: 12px; padding: 8px 14px; text-decoration: none; }
.hov-session-page .hov-session-pagination a:hover, .hov-session-page .hov-session-pagination a:focus-visible { outline: 2px solid #68458b; }
.hov-session-footer { text-align: center; margin: 30px auto 15px; }
@media (max-width: 600px) { .hov-session-page { padding: 8px; } .hov-session-page .hov-log-panel { margin: 12px auto; } }

/* COMBAT SECTION */

.hov-log-panel.combat {
    border: 2px solid #8b0000;
    background-color: rgba(139, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
}

/* Combat heading */
.hov-log-panel.combat h2 {
    color: #8b0000;
    font-weight: bold;
}

/* Round headings - Red text without underline */
.hov-log-panel.combat h3 {
    color: #b22222;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 0;
}

/* Combat descriptions and lists */
.hov-log-panel.combat p,
.hov-log-panel.combat li {
    color: #8b0000;
}
/* Combat round titles: red, with no underline or dividing line. */
.hov-session-page .hov-log-panel.combat h3 {
    color: #b22222;
    font-weight: bold;
    border: 0;
    border-bottom: none;
    text-decoration: none;
    padding-bottom: 0;
    background-image: none;
}
