/* ============================================================
   GLOBAL RESET + BASE
   ============================================================ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 112.5%; /* 18px base */
    font-family: "Times New Roman", serif;
    color: #444;
    line-height: 1.5;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

p {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", serif;
    color: #444;
    margin: 1rem 0 0.5rem;
}

h1 {
    font-size: 2.1rem;
    #font-style: italic;
    #letter-spacing: -1px;
    letter-spacing: 0;
}

h2 {
    font-size: 1.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.45rem;
    font-weight: bold;
}

h4 {
    font-size: 1.1rem;
    color: #0066ff;
}

h5 {
    font-weight: bold;
}

h6 {
    font-size: 0.85rem;
    font-style: italic;
}

blockquote {
	font-family: Arial, Tahoma, sans-serif;
	font-size: 120%;
	padding-left: 36px;
	padding-left: 2rem;
    margin: 1rem 0;
}

pre {
    background: #eee;
    font-family: "Courier New", Courier, monospace;
    padding: 1rem;
    overflow: auto;
}

code, kbd, tt, var {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.95rem;
}

/* ============================================================
   LINKS
   ============================================================ */

a {
    color: #7F2E16;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #206cdf;
}

a:active {
    color: #7F2E16;
}

/* ============================================================
   SELECTION
   ============================================================ */

::selection {
    background: #7F2E16;
    color: #fff;
}

::-moz-selection {
    background: #7F2E16;
    color: #fff;
}

/* ============================================================
   IMAGES
   ============================================================ */

img {
    max-width: 400px;
    max-height: 400px;
    display: inline-block;
    height: auto;
}

.thumb-rounded {
    margin: 5px;
    padding: 3px;
    vertical-align: middle;
    border-radius: 8px;
    float: left;
}

@media (max-width: 600px) {
    .thumb-rounded {
        float: none;
        display: block;
        margin: 0 auto 10px;
    }
}

/* ============================================================
   TABLES
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

td, th {
    padding: 6px 8px;
    vertical-align: top;
}

@media (max-width: 600px) {
    table {
        font-size: 0.85rem;
    }
    td, th {
        padding: 4px 6px;
    }
}

/* ============================================================
   LAYOUT
   ============================================================ */

.page-body {
    padding: 15px;
}

.page-wrapper {
    width: 100%;
    padding: 0;
}

.page-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.page-wrapper, .page-inner {
    overflow: visible !important;
}

.post-content {
    max-width: 1300px;
    margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    text-align: left;
}

.header-img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
    .header-left,
    .header-right {
        width: 80%;
        max-width: 300px;
    }
}

.nav-icons img {
    vertical-align: middle;
    margin-right: 6px;
}

/* ============================================================
   BYLINE + ADS
   ============================================================ */

.byline-ad-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.byline-ad-row h4 {
    margin: 0 0 0.25em;
}

.byline-block {
    flex: 1 1 0;
    min-width: 0;
}

.ad-wrapper {
    flex: 0 0 auto;
    max-width: 320px;
}

.adsbygoogle {
    display: block !important;
}

@media (max-width: 600px) {
    .adsbygoogle {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .ad-wrapper {
        max-width: 100%;
    }
}

/* ============================================================
   COMMENTS
   ============================================================ */

.comments p {
    margin-bottom: 4px;
}

.comments hr {
    margin: 10px 0;
}

/* ============================================================
   FORMS (COMMENT FORM)
   ============================================================ */

form {
    margin: 1.5rem 0;
}

label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    max-width: 600px;
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: "Times New Roman", serif;
    color: #444;
    background: #fff;
    box-sizing: border-box;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input[type="submit"] {
    background: #444;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.75rem;
}

input[type="submit"]:hover {
    background: #7F2E16;
}

/* COMMENT FORM LAYOUT */
form#comments {
    max-width: 100%;
    margin: 1.5rem 0;
}

/* Put name + email on one row */
form#comments .comment-top-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* prevents overflow on small screens */
}

/* Inputs share the row evenly */
form#comments .comment-top-row input[type="text"],
form#comments .comment-top-row input[type="email"] {
    flex: 1;
    min-width: 200px; /* prevents shrinking too small */
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: "Times New Roman", serif;
    box-sizing: border-box;
}

/* Textarea spans full width */
form#comments textarea {
    width: 100%;
    min-height: 160px;
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: "Times New Roman", serif;
    box-sizing: border-box;
    margin-top: 12px;
}

/* ============================================================
   MEDIA GRID
   ============================================================ */

/* .media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.media-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
} */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, auto));
    gap: 10px;
    margin: 10px 0;
}

.media-grid img {
    width: auto;        /* stop stretching */
    height: auto;
    max-width: 150px;   /* your desired limit */
    max-height: 150px;
    object-fit: contain;
}

/* ============================================================
   MISC
   ============================================================ */

.news-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sub-menu {
    display: inline-block;
}

.sub-menu img {
    min-width: 48px;
    min-height: 48px;
}

.thumb-figure {
    display: inline-block;
    margin: 5px;
    padding: 3px;
    vertical-align: middle;
    float: left;
    max-width: 400px; /* matches your global img max */
}

.thumb-figure img {
    border-radius: 8px;
    display: block;
}

.thumb-figure figcaption {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

/* replacement for &middot;
.nav-sep {
    width: 10px;
    height: auto;
    vertical-align: middle;
    margin: 0 6px;
    opacity: 0.85;
}
*/

.nav-sep {
    width: 10px;
    height: 10px;        /* forces predictable scaling */
    object-fit: contain; /* keeps aspect ratio */
    display: inline-block;
    vertical-align: middle;
    margin: 0 6px;
    opacity: 0.85;
}
