html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 18px;

    background: #000;
    color: #302b24; 	

    font-family: Georgia, "Times New Roman", serif;
}

.page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.site-title {
    margin: 12px 0 2px 0;
	color: #efe6d6;
    text-align: center;
    font-size: 34px;
    font-weight: normal;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    color: #ffffff;
}

.site-subtitle {
    margin: 0 0 22px 0;
    text-align: center;
    color: #756d62;
    font-size: 15px;
}


/* ---------------------------------------------------------
   FEATURED SAYING
   --------------------------------------------------------- */

.parchment {
    width: 100%;
    max-width: 800px;
    min-height: 260px;

    margin: 0 auto;

    padding: 48px 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 245, 203, 0.95) 0%,
            rgba(235, 211, 156, 0.96) 68%,
            rgba(205, 171, 111, 0.98) 100%
        );

    border: 1px solid #b59359;
    border-radius: 5px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.18),
        inset 0 0 45px rgba(104, 68, 24, 0.16);
}

.saying-text {
    display: block;

    text-align: center;
    line-height: 1.4;

    font-size: clamp(25px, 4vw, 39px);
    font-style: italic;

    color: #3b2d1e;
}

.variant-summary {
    min-height: 25px;
    margin: 11px 0 4px 0;

    text-align: center;
    color: #766b5c;
    font-size: 14px;
}

.saying-buttons {
    margin: 5px 0 34px 0;
    text-align: center;
}

.saying-buttons input {
    min-width: 115px;
    margin: 5px;

    padding: 9px 20px;

    border: 1px solid #88745b;
    border-radius: 4px;

    background: #fff;
    color: #332d27;

    font-family: Arial, sans-serif;
    font-size: 15px;

    cursor: pointer;
}

.saying-buttons input:hover {
    background: #eee8dd;
}


/* ---------------------------------------------------------
   PUBLIC NOTE FORM
   --------------------------------------------------------- */

.panel {
    margin-top: 20px;
    padding: 20px 24px;

    background: #fff;

    border: 1px solid #d9d1c5;
    border-radius: 5px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
}

.panel h2 {
    margin-top: 0;
    font-weight: normal;
}

.help-text {
    color: #70695f;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.field-label {
    display: block;

    margin-top: 15px;
    margin-bottom: 5px;

    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
}

.text-field {
    width: 100%;
    max-width: 390px;

    padding: 8px;

    border: 1px solid #aaa;
    border-radius: 3px;

    font-family: Arial, sans-serif;
    font-size: 16px;
}

.memo-field {
    width: 100%;
    min-height: 115px;

    padding: 9px;

    border: 1px solid #aaa;
    border-radius: 3px;

    resize: vertical;

    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

.submit-button {
    margin-top: 13px;

    padding: 9px 22px;

    font-family: Arial, sans-serif;
    font-size: 15px;
}

.status {
    display: block;

    margin-top: 12px;

    font-family: Arial, sans-serif;
    font-size: 14px;
}


/* ---------------------------------------------------------
   RECENT NOTES
   --------------------------------------------------------- */

.recent-notes {
    margin-top: 30px;
}

.recent-notes h2 {
    font-weight: normal;
}

.note {
    margin-bottom: 1px;
    padding: 13px 15px;

    background: #fff;
    border-bottom: 1px solid #e1dbd1;
}

.note-header {
    margin-bottom: 6px;

    font-family: Arial, sans-serif;
    font-size: 13px;
}

.note-name {
    font-weight: bold;
}

.note-date {
    margin-left: 8px;
    color: #898177;
}

.note-text {
    white-space: pre-wrap;

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.footer {
    margin: 35px 0 20px 0;

    text-align: center;

    color: #8a8176;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

/* ---------------------------------------------------------
   XIPHOD
   --------------------------------------------------------- */

.xiphod-link {
    margin: 38px auto 15px auto;
    text-align: center;
}

.xiphod-link img {
    width: 25%;
    max-width: 350px;
    min-width: 190px;
    height: auto;
    border: 0;
}

.xiphod-link img:hover {
    opacity: .85;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    .site-title {
        font-size: 29px;
    }

    .parchment {
        min-height: 220px;
        padding: 32px 22px;
    }

    .saying-text {
        font-size: clamp(23px, 7vw, 31px);
    }

    .saying-buttons input {
        min-width: 42%;
        padding: 11px 12px;
    }

    .panel {
        padding: 16px;
    }

    .text-field {
        max-width: none;
    }
	
    .xiphod-link img {
        width:65%;
        max-width:300px;
        min-width:0;
    }
}

/* ---------------------------------------------------------
   DISCUSS PAGE
   --------------------------------------------------------- */

.panel h3 {
    margin-top: 28px;
    margin-bottom: 8px;

    font-weight: normal;
    font-size: 21px;
}

.discussion-text {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.variant-item {
    margin: 10px 0;
    padding: 11px 14px;

    background: #f7f4ed;
    border-left: 3px solid #b79255;

    font-size: 17px;
}

.variant-note {
    margin-top: 5px;

    color: #766e63;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.discussion-placeholder {
    padding: 18px;

    background: #f4f1e9;
    border: 1px dashed #aaa196;

    color: #6f675d;

    font-family: Arial, sans-serif;
    font-style: italic;
}

.discuss-buttons {
    margin-top: 28px;
}

.discuss-buttons input {
    margin-right: 8px;
    padding: 9px 17px;

    font-family: Arial, sans-serif;
    font-size: 14px;

    cursor: pointer;
}

/* ---------------------------------------------------------
   SEARCH PAGE
   --------------------------------------------------------- */

.search-placeholder {
    margin-top: 25px;
    padding: 18px 22px;

    background: #f7f4ed;
    border-left: 3px solid #b79255;

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.search-placeholder ul {
    margin-bottom: 0;
}


.note-title {
    margin-bottom: 4px;
    font-size: 16px;
}

.note-header {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #555;
}

.note-text {
    margin-top: 8px;
    white-space: pre-wrap;
}


/* v3.7 discussion note formatting */
.discussion-note {
    margin-top: 12px;
    padding: 10px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
}

.discussion-note .note-text {
    margin-top: 8px;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.note-header {
    margin-top: 4px;
}


/* discussion layout refinement */
.note-title-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 6px;
}

.note-title {
    font-size: 16px;
}

.note-header {
    margin: 0;
}

.discussion-divider {
    border-top: 1px solid #c8c0b4;
    margin: 14px 0;
}

#pnlDiscussionPosts .note-actions {
    margin-top: 6px;
}


.discussion-top-divider {
    border-top: 3px solid #c8c0b4;
    margin: 14px 0 18px 0;
}


/* Vox Antiqua archive catalog styling */
.vox-table {
    font-family: Consolas, "Courier New", monospace;
    margin-top: 12px;
}

.vox-header, .vox-row {
    display: flex;
    gap: 18px;
    line-height: 1.8;
}

.vox-id {
    width: 70px;
    flex-shrink: 0;
}

.vox-saying {
    flex: 1;
}

.vox-activity {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
}

.vox-details {
    width: 70px;
    flex-shrink: 0;
    text-align: right;
}

.vox-discuss {
    width: 70px;
    flex-shrink: 0;
}

