/* ============================================================
   67 CYNIC — main.css
   Vintage 2000s / high-contrast Web 2.0 aesthetic:
   hard 2px black borders, solid offset shadows, glossy nav bar,
   tag chips, Verdana/Trebuchet MS, electric blue + hot pink + acid yellow.
   ============================================================ */

:root {
    --ink: #111111;
    --paper: #ffffff;
    --panel: #f2f2f2;
    --blue: #1348b8;
    --blue-dark: #0b3d91;
    --blue-light: #2b6fd4;
    --wire: #0099d6;
    --pink: #ff2d95;
    --yellow: #ffe600;
    --gray-text: #444444;
    --gray-dim: #666666;
    --line: #111111;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

a { color: var(--blue); text-decoration: underline; }
a:hover { color: var(--pink); }
img { max-width: 100%; height: auto; }

/* ============ TICKER (headline marquee) ============ */

.ticker {
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid var(--pink);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 0;
}

.ticker-track {
    display: inline-block;
    animation: ticker-scroll 60s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-seg { display: inline-block; padding-right: 60px; }

.ticker a { color: #fff; text-decoration: none; }
.ticker a:hover { color: var(--yellow); }
.ticker i { font-style: normal; color: var(--pink); padding: 0 14px; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============ MASTHEAD ============ */

.masthead { background: var(--panel); }

.masthead-banner { display: block; }

.masthead-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 3px solid var(--ink);
}

.masthead-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: bold;
    color: var(--gray-dim);
}

.masthead-strip .wm-text { color: var(--ink); }
.masthead-strip .wm-text strong { color: var(--blue); }

.web2badge {
    display: inline-block;
    background: linear-gradient(180deg, #4d8fe8 0%, #1348b8 55%, #0b3d91 100%);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 10px;
    border: 1px solid var(--ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 1px 1px 0 var(--ink);
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

/* ============ NAV ============ */

.sitenav {
    background: linear-gradient(180deg, #3d7be0 0%, #1348b8 50%, #0b3d91 100%);
    border-bottom: 3px solid var(--ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.sitenav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sitenav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.sitenav ul a {
    display: block;
    padding: 9px 14px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.sitenav ul a:hover, .sitenav ul a.active {
    background: var(--yellow);
    color: var(--ink);
    text-shadow: none;
}

.sitenav-right { display: flex; align-items: center; gap: 10px; }

.nav-search { display: flex; }

.nav-search input {
    font-family: Verdana, sans-serif;
    font-size: 11px;
    padding: 5px 8px;
    border: 2px solid var(--ink);
    border-right: none;
    background: #fff;
    width: 160px;
}

.nav-search button {
    font-family: Verdana, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 10px;
    background: var(--ink);
    color: var(--yellow);
    border: 2px solid var(--ink);
    cursor: pointer;
}

.nav-search button:hover { background: var(--pink); color: #fff; }

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.rss-link:hover { color: var(--yellow); }

.rss-sq {
    width: 11px;
    height: 11px;
    background: #f77b00;
    border: 1px solid var(--ink);
    display: inline-block;
}

/* ============ LAYOUT ============ */

.site-main { padding: 24px 16px 40px; }

.layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.content-col { min-width: 0; }

/* ============ SECTION TITLES ============ */

.section-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    margin: 8px 0 20px;
    color: var(--ink);
    border-bottom: 4px solid var(--ink);
    padding-bottom: 8px;
    display: inline-block;
}

.section-title::after { content: none; }

.section-count { font-size: 0.9rem; color: var(--gray-dim); font-weight: bold; }

/* ============ ENTRY CARDS (front page) ============ */

.entries-list { display: flex; flex-direction: column; gap: 24px; }

.entry-card {
    background: var(--paper);
    border: 3px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink), 7px 7px 0 var(--pink);
    padding: 18px 20px;
}

.entry-card:hover { box-shadow: 4px 4px 0 var(--ink), 9px 9px 0 var(--pink); }

.entry-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
    margin-bottom: 8px;
}

.entry-date {
    background: var(--yellow);
    border: 1px solid var(--ink);
    color: var(--ink);
    font-weight: bold;
    padding: 1px 8px;
    box-shadow: inset -1px -1px 0 rgba(0,0,0,0.25);
}

.entry-source {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
    margin: 0 0 10px;
}

.entry-source a {
    color: var(--wire);
    font-weight: bold;
}

.entry-source a:hover { color: var(--pink); }

/* PAPER TRAIL — the 2006 hyperlink web: dense, cyan, underlined */
.paper-trail {
    margin-top: 30px;
}

.paper-trail p {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.paper-trail ul {
    margin: 0;
    padding-left: 18px;
}

.paper-trail li {
    margin: 4px 0;
    font-size: 0.95rem;
}

.paper-trail a {
    color: var(--wire);
}

.paper-trail a:hover { color: var(--pink); }

.entry-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 10px;
}

.entry-title a { color: var(--blue); text-decoration: none; }
.entry-title a:hover { color: var(--pink); text-decoration: underline; }

.entry-excerpt {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--gray-text);
}

/* ============ TAG CHIPS ============ */

.entry-tags, .post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-tags { margin: 12px 0 0; }

.tag-chip {
    display: inline-block;
    background: var(--yellow);
    border: 1px solid var(--ink);
    color: var(--ink);
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 2px 9px;
    box-shadow: inset -1px -1px 0 rgba(0,0,0,0.25), inset 1px 1px 0 #fffbe0;
}

.tag-chip:hover { background: var(--pink); color: #fff; }
.tag-chip-active { background: var(--blue); color: #fff; }
.tag-count { opacity: 0.7; font-weight: normal; }

.tag-chip-sm { font-size: 9px; padding: 1px 7px; }
.tag-chip-1 { font-size: 9px; }
.tag-chip-2 { font-size: 10px; }
.tag-chip-3 { font-size: 12px; font-weight: 900; }

/* ============ PAGINATION ============ */

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 12px;
}

.pagination a, .pagination .current {
    display: inline-block;
    border: 2px solid var(--ink);
    padding: 4px 12px;
    background: var(--paper);
    text-decoration: none;
    font-weight: bold;
}

.pagination a:hover { background: var(--yellow); }

.pagination .current {
    background: var(--ink);
    color: var(--yellow);
}

.pagination .ellipsis { padding: 4px 6px; font-weight: bold; }

/* ============ EMPTY STATE ============ */

.empty-state {
    border: 2px dashed var(--ink);
    background: var(--panel);
    padding: 32px;
    text-align: center;
}

.empty-state h2 {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.empty-state p { margin: 0; color: var(--gray-text); }

/* ============ ARTICLE PAGE ============ */

.post-detail {
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink), 9px 9px 0 var(--pink);
    background: var(--paper);
    padding: 26px 30px;
}

.post-header {
    background: var(--panel);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    margin: -26px -30px 20px;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
    font-weight: bold;
}

.post-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 10px 0 6px;
    color: var(--ink);
}

.post-body { font-size: 13px; line-height: 1.8; color: #222; }

.post-body h2 {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    margin: 28px 0 10px;
    color: var(--blue);
}

.post-body h3 {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 22px 0 8px;
    color: var(--blue);
}

.post-body p { margin: 0 0 16px; }
.post-body a { color: var(--blue); }
.post-body a:hover { color: var(--pink); }

.post-body strong { font-weight: 900; color: var(--ink); }

.post-body blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    background: #eef3ff;
    border-left: 5px solid var(--blue);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 14px;
    line-height: 1.7;
}

.post-body hr {
    border: none;
    border-top: 3px solid var(--ink);
    margin: 26px 0;
}

.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 24px; }
.post-body li { margin-bottom: 6px; }

.post-body code {
    background: var(--panel);
    border: 1px solid #ccc;
    padding: 1px 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* Featured image (sits directly below the headline, above the tag row) */
.post-featured { margin: 0 0 14px; }

.post-featured-link {
    display: block;
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--pink);
}

.post-featured img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.post-featured figcaption {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
    margin-top: 8px;
    font-weight: bold;
}

/* Prev/Next nav */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.post-nav-link {
    display: block;
    border: 2px solid var(--ink);
    background: var(--panel);
    padding: 12px 14px;
    text-decoration: none;
    min-height: 60px;
}

.post-nav-link:hover { background: var(--yellow); }

.post-nav-older { text-align: right; }

.post-nav-dir {
    display: block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
    margin-bottom: 4px;
}

.post-nav-title {
    display: block;
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-weight: 900;
    font-size: 13px;
    color: var(--blue);
    line-height: 1.3;
}

.post-nav-empty { visibility: hidden; }

/* ============ COMMENTS ============ */

.comments-section { margin-top: 32px; }

.comments-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--blue);
    border-bottom: 3px solid var(--ink);
    padding-bottom: 6px;
    margin: 0 0 20px;
}

.comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }

.comment-item {
    display: flex;
    gap: 12px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 12px 14px;
}

.comment-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    background: var(--paper);
    border: 2px solid var(--pink);
    color: var(--ink);
    font-weight: 900;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Trebuchet MS', Verdana, sans-serif;
}

.comment-content { min-width: 0; flex: 1; }

.comment-author {
    font-weight: 900;
    font-size: 12px;
    color: var(--blue);
}

.comment-trip {
    font-weight: 400;
    font-size: 10px;
    color: var(--gray-dim);
}

/* Retro comment challenge: small, plain, 2005-forum energy */
.challenge-field label {
    font-size: 11px;
    font-style: italic;
    color: var(--gray-dim);
}
.challenge-field input[type="text"] {
    max-width: 160px;
}

.comment-date { font-size: 10px; color: var(--gray-dim); margin-bottom: 6px; }
.comment-text { font-size: 12px; color: #333; word-wrap: break-word; }

.comments-empty { color: var(--gray-dim); font-size: 12px; }

/* Comment form */
.comment-form {
    margin-top: 28px;
    border: 2px solid var(--ink);
    background: var(--panel);
    padding: 18px;
}

.comment-form h4 {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    color: var(--ink);
}

.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.comment-form label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 10px 0 4px;
    color: var(--gray-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.search-form input,
.login-box input {
    width: 100%;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    padding: 7px 9px;
    border: 2px solid var(--ink);
    background: #fff;
}

.comment-form textarea { min-height: 110px; resize: vertical; }

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.btn {
    display: inline-block;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 18px;
    background: var(--blue);
    color: #fff;
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.btn:hover { background: var(--pink); color: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-submit { margin-top: 12px; }

.comment-fineprint {
    font-size: 9px;
    color: var(--gray-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 12px 0 0;
}

/* ============ RELATED TAGS ============ */

.related-tags { margin-top: 32px; }

.related-tags-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 10px;
}

.related-tags-list, .tags-cloud { display: flex; gap: 8px; flex-wrap: wrap; }

.tags-cloud-section { border-top: 3px solid var(--ink); }

/* ============ ARCHIVE ============ */

.archive-group { margin-bottom: 32px; }

.archive-group-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    background: var(--yellow);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    display: inline-block;
    padding: 4px 14px;
    margin: 0 0 14px;
}

.archive-count { color: var(--gray-dim); font-size: 0.85rem; }

.archive-items { list-style: none; margin: 0; padding: 0; }

.archive-item {
    display: flex;
    gap: 14px;
    align-items: baseline;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    padding: 9px 0;
}

.archive-date {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--gray-dim);
    min-width: 52px;
}

.archive-link { font-weight: bold; font-size: 13px; }

.archive-source {
    font-size: 11px;
    color: var(--gray-dim);
    margin-left: 8px;
}

.archive-source a {
    color: var(--gray-text);
    font-weight: bold;
    text-decoration: none;
}

.archive-source a:hover { color: var(--pink); text-decoration: underline; }

.archive-tags { display: flex; gap: 5px; width: 100%; padding-left: 66px; }

/* ============ SEARCH ============ */

.search-form {
    display: flex;
    gap: 8px;
    max-width: 460px;
    margin-bottom: 24px;
}

.search-form input { flex: 1; }

.search-result-count { font-size: 11px; color: var(--gray-dim); text-transform: uppercase; letter-spacing: 0.04em; }

/* ============ PAGE ARTICLES (about/privacy/terms) ============ */

.page-article {
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--yellow);
    background: var(--paper);
    padding: 28px 32px;
    max-width: 760px;
}

.page-article h1 {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 4px;
}

.page-article h2 {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--blue);
    border-bottom: 2px solid var(--ink);
    padding-bottom: 4px;
    margin: 28px 0 12px;
}

.page-lede { font-size: 14px; font-weight: bold; color: var(--gray-text); }

.page-updated {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
    font-weight: bold;
    margin: 0 0 18px;
}

.page-signoff { font-style: italic; color: var(--gray-dim); }

/* ============ LOGIN ============ */

.login-wrap { display: flex; justify-content: center; padding: 24px 0; }

.login-box {
    width: 100%;
    max-width: 400px;
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--pink);
    background: var(--paper);
    padding: 28px;
}

.login-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 6px;
}

.login-sub { font-size: 11px; color: var(--gray-dim); margin: 0 0 18px; }

.login-box label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 12px 0 4px;
}

.btn-login { width: 100%; margin-top: 18px; }

/* ============ 404 ============ */

.notfound-article { box-shadow: 8px 8px 0 var(--pink); }

.notfound-art {
    margin: -28px -32px 24px;
    border-bottom: 3px solid var(--ink);
}

.notfound-art img {
    display: block;
    width: 100%;
    height: auto;
}

.notfound-art figcaption {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-dim);
    font-weight: bold;
    padding: 6px 16px;
    background: var(--panel);
    text-align: left;
}

.notfound-num {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: var(--pink);
    -webkit-text-stroke: 2px var(--ink);
    line-height: 1;
    margin: 0;
}

/* ============ FOOTER ============ */

.site-footer {
    background: var(--panel);
    border-top: 3px solid var(--ink);
    padding: 22px 16px;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
}

.site-footer .footer-links { margin-bottom: 10px; }
.site-footer .footer-links a { color: var(--blue); font-weight: bold; margin: 0 10px; }
.site-footer .footer-links a:hover { color: var(--pink); }
.site-footer .footer-copyright { display: block; margin-bottom: 4px; }

/* ============ FLASH MESSAGES ============ */

.flash {
    border: 2px solid var(--ink);
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 4px 4px 0 var(--ink);
}

.flash-success { background: #d9f2d9; }
.flash-error { background: #ffd9d9; }
.flash-info { background: #fff8d9; }

/* ============ SIDEBAR ============ */

.sidebar { display: flex; flex-direction: column; gap: 18px; }

.side-box {
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 5px 5px 0 var(--blue);
}

.side-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--ink);
    color: var(--yellow);
    margin: 0;
    padding: 7px 12px;
}

.side-text { padding: 12px 14px; margin: 0; font-size: 11px; color: var(--gray-text); line-height: 1.6; }

.side-list { list-style: none; margin: 0; padding: 10px 14px; }

.side-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #ccc;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.side-list li:last-child { border-bottom: none; }

.side-list a { text-decoration: none; font-weight: bold; }
.side-list a:hover { text-decoration: underline; }

.side-count { color: var(--gray-dim); font-size: 10px; }

.about-box { background: #fffdf0; }

.powered-box { box-shadow: 5px 5px 0 var(--pink); }

.powered-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 16px;
    background: var(--panel);
}

.powered-top { font-size: 8px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray-dim); font-weight: bold; }
.powered-name {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 16px;
    font-weight: 900;
    background: var(--blue);
    color: #fff;
    padding: 4px 14px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 2px 2px 0 var(--ink);
}
.powered-sub { font-size: 8px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-dim); }

/* ============ FRONT PAGE: HERO THUMBNAIL + COMMENT BADGE (2026-09-22) ============ */

.entry-thumb {
    float: right;
    display: block;
    width: 200px;
    margin: 4px 0 10px 14px;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--pink);
    line-height: 0;
}
.entry-thumb img { width: 100%; height: auto; display: block; }
.entry-thumb:hover { box-shadow: 5px 5px 0 var(--pink); }

/* keep the float from poking out of the card when content is short */
.entry-card::after { content: ""; display: table; clear: both; }

.comment-badge {
    display: inline-block;
    margin-top: 12px;
    font-size: 10px;
    font-weight: bold;
    color: var(--blue);
    text-decoration: none;
    border: 1px dashed var(--blue);
    padding: 2px 8px;
    background: #fff;
}
.comment-badge:hover {
    color: var(--pink);
    border-color: var(--pink);
    background: #fff0f7;
}

/* ============ SIDEBAR: QUOTE OF THE DAY + GOSSIP MAILBOX (2026-09-22) ============ */

.quote-box { box-shadow: 5px 5px 0 var(--pink); background: #fffdf5; }
.quote-body { padding: 12px 14px; }
.quote-text {
    margin: 0 0 6px;
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: bold;
    line-height: 1.4;
    color: var(--ink);
}
.quote-attr {
    margin: 0;
    font-size: 10px;
    color: var(--gray-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mailbox-box { box-shadow: 5px 5px 0 var(--yellow); background: #fffef2; }
.side-fineprint {
    margin: -8px 14px 12px;
    font-size: 9px;
    font-style: italic;
    color: var(--gray-dim);
}

/* ============ FOOTER: 88x31 WEB 2.0 MICRO-BADGES (2026-09-22) ============ */

.badge-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.retro-badge { display: block; }
.retro-badge-link { line-height: 0; }
.retro-badge-link:hover .retro-badge { transform: translate(-1px, -1px); }

/* ============ LIGHTBOX (legacy anchor) ============ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
    max-width: 95vw;
    max-height: 92vh;
    border: 3px solid var(--ink);
    box-shadow: 10px 10px 0 var(--pink);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 20px;
    background: var(--yellow);
    color: var(--ink);
    border: 2px solid var(--ink);
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    padding: 6px 14px;
    cursor: pointer;
    font-family: Verdana, sans-serif;
}

.lightbox-close:hover { background: var(--pink); color: #fff; }

/* ============ ADMIN (dark) ============ */

.admin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    border: 2px solid var(--ink);
    background: #1a1a1e;
    min-height: 520px;
}

.admin-sidebar {
    background: #121215;
    padding: 20px 0;
    border-right: 2px solid var(--ink);
}

.admin-sidebar h3 {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    padding: 14px 20px 6px;
    margin: 0;
}

.admin-sidebar a {
    display: block;
    padding: 8px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    border-left: 3px solid transparent;
}

.admin-sidebar a:hover { background: #222; color: #fff; }
.admin-sidebar a.active {
    background: #222;
    color: var(--yellow);
    border-left: 3px solid var(--yellow);
    font-weight: bold;
}

.admin-content { padding: 26px 28px; color: #ddd; min-width: 0; }

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 2px solid #333;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.admin-page-header h1 {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.admin-hello { color: #888; font-size: 12px; }
.admin-dim { color: #888; font-size: 11px; }
.admin-slug { word-break: break-all; }
.admin-link { color: var(--yellow); }
.admin-mt { margin-top: 36px; }

.admin-section-title {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #333;
    padding-bottom: 6px;
    margin: 0 0 16px;
}

.admin-mt { margin-top: 36px; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.stat-card {
    background: #222228;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 var(--blue);
    padding: 16px;
    text-align: center;
}

.stat-number {
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--yellow);
}

.stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    font-weight: bold;
}

/* Panels */
.admin-panel {
    background: #222228;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 var(--pink);
    padding: 16px 18px;
    margin-bottom: 22px;
}

.admin-panel-title {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0 0 12px;
}

.admin-note { font-size: 11px; color: #888; margin: 12px 0 0; }

.mod-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mod-label { font-size: 11px; text-transform: uppercase; font-weight: bold; color: #aaa; }

.mod-radio { font-size: 12px; color: #ccc; display: flex; align-items: center; gap: 6px; }

.mod-row input[type="text"] {
    background: #111;
    border: 2px solid #444;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table th {
    text-align: left;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    border-bottom: 2px solid #333;
    padding: 8px 10px;
}

.admin-table td {
    border-bottom: 1px solid #2a2a2e;
    padding: 10px;
    vertical-align: top;
}

.admin-table tr:hover td { background: #202024; }

.comment-preview { max-width: 320px; }

/* Badges */
.badge {
    display: inline-block;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border: 1px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
}

.badge-published { background: #2e7d32; color: #fff; }
.badge-draft { background: #616161; color: #fff; }
.badge-review { background: var(--yellow); color: var(--ink); }
.badge-hidden { background: #b71c1c; color: #fff; }
.badge-pending { background: var(--yellow); color: var(--ink); }
.badge-approved { background: #2e7d32; color: #fff; }

/* Forms */
.admin-form { max-width: 760px; }

.admin-form label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin: 16px 0 6px;
}

.field-hint { color: #666; font-weight: normal; text-transform: none; letter-spacing: 0; }

.admin-form input[type="text"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    background: #111;
    border: 2px solid #444;
    color: #fff;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    padding: 9px 10px;
}

.admin-form textarea { min-height: 300px; resize: vertical; }

.admin-form .CodeMirror {
    background: #111;
    color: #ddd;
    font-size: 12px;
    border: 2px solid #444;
}

.admin-form .easymde-toolbar {
    background: #18181c;
    border-color: #444;
}

.admin-form .easymde-toolbar button {
    color: #ccc;
    border-color: transparent;
}

.admin-form .easymde-toolbar button.active,
.admin-form .easymde-toolbar button:hover {
    background: #2a2a30;
    color: var(--yellow);
}

.form-actions { margin-top: 22px; display: flex; gap: 10px; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* Buttons */
.btn-sm { padding: 5px 12px; font-size: 10px; box-shadow: 2px 2px 0 var(--ink); }

.btn-secondary {
    background: #444;
    color: #fff;
}

.btn-secondary:hover { background: #666; color: #fff; }

.btn-danger {
    background: #b71c1c;
}

.btn-danger:hover { background: #d32f2f; color: #fff; }

.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.inline-form { display: inline-block; margin: 0; }

/* Review cards */
.review-card {
    background: #222228;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 var(--blue);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.review-card-header h3 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-family: 'Trebuchet MS', Verdana, sans-serif;
}

.review-card-body {
    font-size: 12px;
    color: #bbb;
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.review-tags {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.review-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* New key box */
.new-key-box {
    background: #222228;
    border: 2px solid var(--yellow);
    padding: 16px 18px;
    margin-bottom: 20px;
}

.new-key-label { margin: 0 0 8px; font-size: 12px; color: var(--yellow); font-weight: bold; }

.new-key-value {
    display: block;
    background: #111;
    border: 2px dashed #555;
    color: #7CFC00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 10px;
    margin-bottom: 10px;
    word-break: break-all;
}

/* Pre block */
.admin-pre {
    background: #111;
    border: 2px solid #333;
    padding: 14px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #9fd69f;
    overflow-x: auto;
    white-space: pre;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 0 8px;
        border-right: none;
        border-bottom: 2px solid var(--ink);
        padding: 10px;
    }
    .admin-sidebar h3 { padding: 6px 10px 2px; width: 100%; }
    .admin-sidebar a { padding: 6px 10px; }
}

@media (max-width: 640px) {
    .post-detail { padding: 18px; }
    .post-header { margin: -18px -18px 16px; }
    .post-title { font-size: 1.7rem; }
    .page-article { padding: 20px; }
    .notfound-art { margin: -20px -20px 18px; }
    .comment-form-row { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-older { text-align: left; }
    .sitenav-inner { justify-content: center; }
    .notfound-num { font-size: 4rem; }
    .section-title { font-size: 1.4rem; }
}
