/* tubb.ca — ported from WordPress custom CSS */

/* Base Typography */
body {
    font-family: Verdana, sans-serif;
    font-size: 10pt;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    text-transform: none;
    background: #fff;
    color: #404040;
    word-wrap: break-word;
}

/* Site container */
.site {
    margin: 1.5em auto 0;
    max-width: 1088px;
    padding: 0 1.75em;
}

/* Paragraphs */
p {
    font-size: 10pt;
    margin: 0 0 1.2em 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: Verdana, sans-serif;
    font-weight: bold;
    text-transform: none;
    line-height: 1.2;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    text-decoration: none;
    border: none;
    padding-bottom: 0;
}
h1 { font-size: 14pt; }
h2 { font-size: 12pt; }
h3, h4, h5, h6 { font-size: 11pt; }

/* Page Titles - no underline */
.page-title {
    text-align: center;
    font-size: 14pt;
    font-weight: bold;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
    border: none;
}

/* Site Header */
.site-header {
    margin-bottom: 3.5em;
    position: relative;
    padding-top: 1.75em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.site-title {
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    border: none !important;
    text-decoration: none !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
}

.site-title a {
    font-size: 16pt;
    text-transform: uppercase;
    font-family: Verdana, sans-serif;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #404040;
}

/* Navigation */
.main-navigation {
    display: inline-block;
    font-size: 10pt;
    text-align: left;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
}

.main-navigation li {
    display: inline-block;
    margin-left: 1.75em;
    position: relative;
}

.main-navigation a {
    font-family: Verdana, sans-serif;
    font-size: 10pt;
    text-transform: none;
    text-decoration: underline;
    border: none;
    box-shadow: none;
    color: #404040;
}

.main-navigation a:hover,
.main-navigation a:focus {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Dropdown arrows on parent items */
.main-navigation li:has(> .sub-menu) > a {
    position: relative;
    padding-right: 1em;
}

.main-navigation li:has(> .sub-menu) > a::after {
    content: "\203A";
    display: block;
    transform: rotate(90deg);
    font-size: 1.4em;
    line-height: 1;
    position: absolute;
    top: 10%;
    right: -0.25em;
}

/* Sub-menus */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    padding: 0.5em 0;
    min-width: 180px;
    z-index: 99;
    list-style: none;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    display: block;
    margin: 0;
    padding: 0.2em 1em;
}

/* Post Titles */
h1.entry-title,
header.entry-header h1.entry-title,
h2.entry-title {
    font-family: Verdana, sans-serif;
    font-weight: bold;
    text-transform: none;
    margin-bottom: 0.3em;
    text-decoration: none;
    border: none;
    line-height: 1.4;
}

/* Entry content */
.entry-content {
    margin: 0 0 1.75em;
}

.entry-content a {
    color: #404040;
    text-decoration: underline;
}

.entry-content a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Entry meta (date) */
.entry-meta {
    font-size: 10pt;
    font-style: italic;
    margin: 0 0 1.75em;
    padding-top: 0.2em;
    border-top: none;
    color: #999;
}

.entry-date {
    display: inline;
    font-size: 10pt;
    color: #999;
    text-decoration: none;
    font-style: normal;
    font-weight: normal;
}

/* Blockquotes */
blockquote {
    font-size: 10pt;
    margin: 0.6em 0 0.6em 1em;
    padding-left: 0.6em;
    border-left: 1.5px solid #999;
    color: #555;
    font-style: italic;
}
blockquote:before {
    display: none;
}

/* Lists */
ul, ol {
    margin-left: 0;
    padding-left: 0;
}
li {
    font-size: 10pt;
    padding-bottom: 10pt;
}

/* Footnotes */
.footnotes ol {
    padding-left: 15pt;
    font-size: 10pt;
}
.footnote-back {
    display: none;
}

/* References */
.references {
    font-size: 10pt;
}
.csl-entry {
    padding-bottom: 10pt;
    padding-left: 22px;
    text-indent: -22px;
}

/* Links */
a {
    color: #404040;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* Images */
img {
    height: auto;
    max-width: 100%;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 10pt;
    margin-bottom: 1.75em;
}
th, td {
    text-align: left;
    padding: 0.4em 0.8em;
    border-bottom: 1px solid #ddd;
}
th {
    font-weight: bold;
    text-transform: uppercase;
}

/* Code */
pre, code {
    font-family: "SF Mono", Menlo, monospace;
    font-size: 9pt;
}
pre {
    background: #f5f5f5;
    padding: 1em;
    overflow-x: auto;
    margin-bottom: 1.2em;
}

/* Hide unnecessary metadata */
.tags-list,
.tag-links,
.categories-list {
    display: none !important;
}

/* Remove horizontal rules */
hr {
    display: none;
}

/* Post list (archive / home) */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.post-list li {
    margin-bottom: 0.5em;
    padding-bottom: 0;
    display: block;
}
.post-list .entry-date {
    color: #999;
    font-size: 10pt;
    margin-right: 0.5em;
}
.post-list a {
    text-decoration: underline;
}
.post-list a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Footer */
.site-footer {
    margin-top: 3.5em;
    padding-top: 1em;
    border-top: none;
    font-size: 10pt;
    font-style: italic;
    color: #999;
}

/* Hentry spacing */
.hentry {
    margin-bottom: 3.5em;
}

/* Two-column layout for page headers (hub pages) */
.page-two-col {
    display: flex;
    gap: 2em;
    margin-bottom: 2em;
}
.page-two-col .page-side {
    width: 30%;
    min-width: 180px;
    flex-shrink: 0;
}
.page-two-col .page-content {
    flex: 1;
    min-width: 0;
}

/* Two-column layout for post listings (home page) — matches WordPress Libre 2 */
.post-listing .hentry {
    display: flex;
    gap: 2em;
}
.post-listing .hentry .entry-side {
    width: 30%;
    min-width: 180px;
    flex-shrink: 0;
}
.post-listing .hentry .entry-content {
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* Post navigation (prev/next) — matches WordPress Libre 2 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3.5em;
    padding: 1.5em 0;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
    font-size: 10pt;
}
.post-navigation a {
    text-decoration: underline;
    color: #404040;
}
.nav-label {
    display: block;
    font-style: italic;
    text-decoration: underline;
    margin-bottom: 0.3em;
    font-size: 10pt;
}
.nav-previous {
    max-width: 48%;
}
.nav-next {
    max-width: 48%;
    text-align: right;
    margin-left: auto;
}

/* Entry category */
.entry-category {
    font-size: 10pt;
    color: #999;
    margin-left: 0.5em;
}

/* Pagination */
.pagination {
    margin-top: 2em;
    font-size: 10pt;
}
.pagination a {
    text-decoration: underline;
    color: #404040;
}
.pagination a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Responsive */
@media screen and (max-width: 720px) {
    .site {
        margin-top: 1.5em;
        padding: 0 1.75em;
    }
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-navigation {
        text-align: left;
        margin-top: 0.875em;
    }
    .main-navigation li {
        margin-left: 0;
        margin-right: 1.75em;
    }
    .page-two-col {
        flex-direction: column;
        gap: 0;
    }
    .page-two-col .page-side {
        width: 100%;
        min-width: 0;
    }
    .post-listing .hentry {
        flex-direction: column;
        gap: 0;
    }
    .post-listing .hentry .entry-side {
        width: 100%;
        min-width: 0;
    }
}

@media screen and (min-width: 1120px) {
    .site {
        width: 992px;
    }
}

@media screen and (min-width: 1280px) {
    .site {
        width: 1088px;
    }
}

/* Print styles */
@media print {
    .main-navigation,
    .site-footer {
        display: none;
    }
    .site {
        margin: 0;
        padding: 0;
    }
    h1, h2, h3, h4, h5, h6 {
        text-transform: uppercase;
        text-decoration: none;
        font-weight: normal;
    }
}
