/* Core Palette Variable Assignment */
:root {
    --bg-color: #121214;
    --text-color: #c5c6c7;
    --accent-color: #66fcf1; 
    --dim-accent: #45a29e;
    --border-color: #1f2833;
}

/* Base Global Document Overrides */
html, body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: 'Courier New', Courier, monospace !important;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

/* Center & Constraint Container Spacing */
#meta, #tlogs, main, .container {
    max-width: 750px;
    width: 100%;
    margin: 0 auto !important;
    box-sizing: border-box;
}

/* Format layout header link text colors */
#meta h1 a {
    color: var(--accent-color) !important;
    text-decoration: none;
}

/* Content block positioning */
#tlogs {
    margin-top: 20px;
    width: 100%;
    display: block;
}

/* COLLAPSE THE GHOST BOX: Target the paragraph with the anchor tag and zero it out */
#tlogs > p:has(a[name]) {
    display: block !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Also ensure the line breaks inside the ghost container don't render space */
#tlogs > p:has(a[name]) br {
    display: none !important;
}

/* Format actual content block entry cards safely */
.entry {
    background: #1a1a1d !important;
    border: 1px solid var(--border-color) !important;
    padding: 25px !important;
    border-radius: 4px !important;
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    box-sizing: border-box;
}

/* Style links embedded within blog posts and index navigation */
#tlogs a, a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

#tlogs a:hover, a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}
