
html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.4;
}
a:link    { color: #0033cc; text-decoration: underline; }
a:visited { color: #663399; text-decoration: underline; }
a:hover   { color: #cc3300; }

.topbar {
    background: #000000;
    color: #ffffff;
    height: 22px;
    line-height: 22px;
    font-size: 11px;
    font-weight: bold;
    padding: 0 12px 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a:link, .topbar a:visited {
    color: #ffffff;
    text-decoration: none;
}
.topbar a:hover { color: #ffcc33; }
.topbar .sep { color: #cccccc; font-weight: normal; }
.topbar form { margin: 0; padding: 0; display: inline; }
.topbar input.q {
    background: #ffffff;
    border: 1px solid #555;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    padding: 0 4px;
    height: 16px;
    vertical-align: middle;
    width: 120px;
}
.topbar input.go {
    background: #dddddd;
    border: 1px outset #cccccc;
    color: #000;
    font-family: Verdana, sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 0 4px;
    height: 18px;
    vertical-align: middle;
    cursor: pointer;
}

.headband {
    background: #c4cfdf
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='560' height='86' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23c4cfdf'/><stop offset='1' stop-color='%23dde4ec'/></linearGradient></defs><rect width='560' height='86' fill='url(%23g)'/><circle cx='240' cy='30' r='14' fill='%23a8b6c8' opacity='0.7'/><rect x='254' y='42' width='80' height='30' fill='%239fb0c4' opacity='0.6'/><path d='M 200 86 Q 260 50 320 86' fill='%23b2c0d2' opacity='0.5'/></svg>") repeat-x;
    height: 86px;
    border-bottom: 1px solid #6a89af;
    position: relative;
}
.headband .logo-box {
    background: #4068a0;
    color: #ffffff;
    float: left;
    width: 162px;
    height: 86px;
    padding: 8px 0 0 12px;
    box-sizing: border-box;
    cursor: pointer;
}
.headband .logo-box .logo-main {
    font-family: Verdana, Arial, sans-serif;
    font-weight: bold;
    font-size: 22px;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.headband .logo-box .logo-sub {
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px;
}
.headband .brand {
    position: absolute;
    right: 12px;
    top: 16px;
    text-align: right;
    color: #000000;
}
.headband .brand .badge {
    display: inline-block;
    vertical-align: middle;
    width: 46px;
    height: 46px;
    margin-right: 6px;
    background: #ffffff;
    border: 1px solid #6a89af;
    color: #4068a0;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: bold;
    line-height: 46px;
    text-align: center;
}
.headband .brand .text {
    display: inline-block;
    vertical-align: middle;
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    line-height: 1.15;
}
.headband .brand .text .sub {
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 3px;
}
.headband .brand .wordmark {
    margin-top: 14px;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-weight: bold;
    font-size: 22px;
    color: #000000;
    text-align: right;
}

.navbar {
    background: #7c9ac1;
    color: #ffffff;
    height: 24px;
    line-height: 24px;
    font-weight: bold;
    font-size: 11px;
    padding: 0 0 0 12px;
}
.navbar a:link, .navbar a:visited {
    color: #ffffff;
    text-decoration: none;
}
.navbar a:hover { color: #ffcc33; }
.navbar .sep { color: #b8cbe0; font-weight: normal; padding: 0 6px; }

table.layout {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}
td.sidebar {
    width: 186px;
    vertical-align: top;
    padding: 14px;
    background: #ffffff;
    border-right: 2px solid #cc6633;
}
td.content {
    vertical-align: top;
    padding: 14px 22px;
    background: #ffffff;
}
/* Cap inner content widths for readability while chrome fills the viewport */
td.content .single .body,
td.content .promo,
td.content .post,
td.content .pagination,
td.content .now-box,
td.content .intro-callout {
    max-width: 920px;
}
td.content .lower table,
td.content table.topic-cards {
    max-width: 960px;
}

.sidebar h3 {
    font-size: 11px;
    font-weight: bold;
    color: #000000;
    margin: 14px 0 4px 0;
}
.sidebar h3:first-child { margin-top: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 1px 0; }
.sidebar input.q {
    width: 102px;
    border: 1px solid #888;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    padding: 1px 3px;
    vertical-align: middle;
}
.sidebar input.go {
    background: #dddddd;
    border: 1px outset #cccccc;
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    vertical-align: middle;
    color: #000;
    cursor: pointer;
}
.sidebar .about-blurb {
    color: #000;
    font-size: 11px;
    line-height: 1.4;
}
.sidebar .count { color: #555; font-size: 10px; }
.sidebar .rss-btn {
    display: inline-block;
    background: #ff6600;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 10px;
    padding: 1px 5px;
    text-decoration: none;
    margin-right: 4px;
}
.sidebar form.subscribe input[type=email] {
    width: 102px;
    border: 1px solid #888;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    padding: 1px 3px;
    margin-top: 3px;
    vertical-align: middle;
}
.sidebar li.active a { font-weight: bold; color: #cc3300; }
.flash {
    margin: 6px 0;
    padding: 4px 6px;
    background: #fff7d8;
    border: 1px solid #cc9933;
    color: #663300;
    font-size: 11px;
}
.flash.err {
    background: #fde0e0;
    border-color: #cc3333;
    color: #800000;
}
.sub-count { color: #555; font-size: 10px; margin-top: 2px; }

.promo {
    margin: 6px 0 18px 0;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 12px;
}
.promo .feature-tag {
    display: inline-block;
    background: #cc6633;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 6px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.promo table { border-collapse: collapse; }
.promo td.logo { vertical-align: top; padding-right: 14px; }
.promo td.txt  { vertical-align: top; }
.promo .head {
    font-size: 14px;
    font-weight: bold;
    color: #0033cc;
    text-decoration: underline;
    display: block;
    margin-bottom: 4px;
    line-height: 1.25;
}
.promo .meta { color: #555; font-size: 10px; margin-bottom: 6px; }
.promo .meta a { color: #555; }
.promo .body { color: #000; font-size: 11px; }
.promo .read-more { margin-top: 6px; }

h2.section {
    font-size: 13px;
    font-weight: bold;
    color: #000000;
    margin: 8px 0 10px 0;
    padding-bottom: 3px;
    border-bottom: 2px solid #7c9ac1;
}
h2.section .filter-tag { color: #cc6633; }
h2.section .clear {
    float: right;
    font-size: 10px;
    font-weight: normal;
}

.post {
    margin-bottom: 16px;
    padding-left: 14px;
    position: relative;
}
.post:before {
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 7px; height: 7px;
    background: #1f3d7a;
}
.post .title { font-size: 12px; font-weight: bold; margin: 0 0 2px 0; }
.post .title a { color: #0033cc; }
.post .meta { color: #555; font-size: 10px; margin-bottom: 4px; }
.post .meta a { color: #555; text-decoration: underline; }
.post .excerpt { color: #000; font-size: 11px; margin-bottom: 4px; }
.post .read-more { font-size: 11px; }
.post .count { color: #555; font-size: 10px; font-weight: normal; }

.pagination { margin: 8px 0 4px 0; font-size: 11px; }
.pagination a { font-weight: bold; }
.pagination .dis { color: #999; }

.single-back { font-size: 11px; margin-bottom: 8px; }
.single h1 {
    font-size: 18px;
    color: #000;
    margin: 4px 0 4px 0;
    line-height: 1.2;
}
.single .meta {
    color: #555;
    font-size: 11px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #cccccc;
}
.single .body p { margin: 0 0 0.9em 0; font-size: 12px; line-height: 1.55; }
.single .body ul { font-size: 12px; line-height: 1.55; }
.single .nav-posts {
    margin-top: 18px;
    padding-top: 8px;
    border-top: 1px solid #cccccc;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

hr.rule {
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 14px 0 12px 0;
}
.lower table { border-collapse: collapse; width: 100%; }
.lower td { vertical-align: top; padding: 6px 16px 12px 0; width: 33.33%; }
.lower a { font-weight: bold; }
.lower .banner { margin-bottom: 4px; }
.lower .pop-label {
    color: #cc6633;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer {
    border-top: 1px solid #cccccc;
    margin-top: 18px;
    padding-top: 8px;
    font-size: 11px;
    color: #000;
}
.footer a { color: #0033cc; cursor: pointer; }

body.text-only .headband,
body.text-only .navbar,
body.text-only .topbar,
body.text-only td.sidebar,
body.text-only .lower,
body.text-only .promo .logo,
body.text-only .post:before,
body.text-only .feature-tag {
    display: none !important;
}
body.text-only .promo { border: 0; padding: 0; }
body.text-only td.content { padding: 16px; }
body.text-only h2.section { border: 0; }
body.text-only .post { padding-left: 0; }

/* --- home landing additions --- */
.intro-callout {
    margin: 6px 0 18px 0;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 14px;
}
.intro-callout table { border-collapse: collapse; }
.intro-callout td.portrait { vertical-align: top; padding-right: 16px; }
.intro-callout td.txt { vertical-align: top; }
.intro-callout .name {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 4px;
}
.intro-callout .role {
    color: #555;
    font-size: 11px;
    margin-bottom: 10px;
}
.intro-callout .blurb {
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.intro-callout .cta a { font-weight: bold; }

.now-box {
    background: #f7f3e6;
    border: 1px solid #cbb37a;
    padding: 8px 12px;
    margin: 4px 0 18px 0;
}
.now-box ul { margin: 0; padding-left: 16px; }
.now-box li {
    font-size: 11px;
    line-height: 1.5;
    padding: 1px 0;
}
.now-stamp {
    font-size: 10px;
    color: #777;
    margin-top: 8px;
    border-top: 1px dashed #cbb37a;
    padding-top: 4px;
}

.curated-note {
    font-size: 11px;
    color: #555;
    margin: -4px 0 12px 0;
}

.post.pinned .excerpt { font-style: italic; color: #444; }
.post.pinned .excerpt b { color: #000; font-style: normal; }

table.topic-cards { border-collapse: collapse; width: 100%; margin-bottom: 12px; }
table.topic-cards td {
    vertical-align: top;
    padding: 4px 16px 12px 0;
    width: 50%;
}
.topic-cards .topic-name {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 3px;
    border-left: 3px solid #cc6633;
    padding-left: 6px;
}
.topic-cards .topic-name a { color: #0033cc; }
.topic-cards .topic-desc {
    font-size: 11px;
    color: #555;
    margin: 4px 0 6px 0;
    padding-left: 9px;
}
.topic-cards .topic-links {
    font-size: 11px;
    padding-left: 9px;
}
.topic-cards .topic-links a { display: block; margin: 1px 0; }

/* ============================================================
   Responsive: stack on narrow viewports
   ============================================================ */
@media (max-width: 760px) {
    /* topbar wraps vertically */
    .topbar {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        line-height: 1.6;
        padding: 4px 10px;
        text-align: left;
    }
    .topbar span { display: block; padding: 2px 0; }
    .topbar form {
        display: block;
        margin: 2px 0;
    }
    .topbar input.q { width: 60%; }

    /* headband: stack badge + brand block under logo */
    .headband {
        height: auto;
        min-height: 86px;
    }
    .headband .logo-box {
        float: none;
        width: 100%;
        height: auto;
        padding: 8px 12px;
    }
    .headband .brand {
        position: static;
        text-align: left;
        padding: 8px 12px;
    }
    .headband .brand .wordmark {
        text-align: left;
        margin-top: 6px;
    }

    /* navbar wraps */
    .navbar {
        height: auto;
        line-height: 1.8;
        padding: 4px 8px;
    }
    .navbar .sep { padding: 0 3px; }

    /* main layout: stack sidebar + content */
    table.layout, table.layout > tbody, table.layout > tbody > tr {
        display: block;
        width: 100%;
    }
    table.layout > tbody > tr > td.sidebar,
    table.layout > tbody > tr > td.content {
        display: block;
        width: auto;
        max-width: none;
        box-sizing: border-box;
    }
    td.sidebar {
        border-right: 0;
        border-bottom: 2px solid #cc6633;
        padding: 12px;
    }
    td.content {
        padding: 14px;
    }
    td.content .single .body,
    td.content .promo,
    td.content .post,
    td.content .pagination,
    td.content .now-box,
    td.content .intro-callout {
        max-width: none;
    }

    /* promo / intro-callout: stack logo above text */
    .promo table, .intro-callout table { width: 100%; }
    .promo td.logo, .intro-callout td.portrait,
    .promo td.txt,  .intro-callout td.txt {
        display: block;
        width: 100%;
        padding: 0 0 8px 0;
    }

    /* lower banners + topic cards: 1 column */
    .lower table, table.topic-cards { width: 100%; }
    .lower td, table.topic-cards td {
        display: block;
        width: 100%;
        padding: 6px 0 12px 0;
    }

    /* single post: smaller heading */
    .single h1 { font-size: 16px; }

    /* hide section heading float-right "clear filter" on mobile -> wraps */
    h2.section .clear, h2.section .filter-tag {
        display: inline-block;
    }
}

/* Very narrow (phones) */
@media (max-width: 420px) {
    body { font-size: 12px; }
    .single .body p { font-size: 13px; }
    .headband .logo-box .logo-main { font-size: 18px; }
    .headband .brand .text { font-size: 12px; }
    .headband .brand .wordmark { font-size: 18px; }
}
