:root {
    --primary: #00966b;
    --primary-dark: #007a57;
    --primary-light: #00b87a;
    --primary-light-matt: #00b87a;
    --light-0-invert: #1a2332;
    --light-0: #ffffff;
    --light-1: rgba(0,0,0,0.08);
    --light-2: #f0f3f6;
    --light-3: #f8fafb;
    --dark-0: #1a2332;
    --dark-1: #5a6a7e;
    --text-light: #1a2332;
    --text-light-1: #94a3b8;
    --d-inner-dark: #0D1628;
    --d-inner-dark-1: #070D1B;
    --input-placeholder: #5a6a7e;
    --body-bg: #f8fafb;

    /* Landing design system tokens (mirrors landing.css) */
    --surface: #ffffff;
    --surface2: #f0f3f6;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.15);
    --accent: #00966b;
    --accent-dim: rgba(0,150,107,0.08);
    --accent-glow: rgba(0,150,107,0.18);
    --text: #1a2332;
    --text-muted: #5a6a7e;
    --text-faint: #94a3b8;
    --pill-bg: #eef2f6;
    --gold: #b8860b;
    --gold-dim: rgba(184,134,11,0.1);
    --nav-bg: rgba(248,250,251,0.85);
    --heading: #0f1a2a;
    --noise-opacity: 0.25;

    --link-blank: url('data:image/svg+xml, <svg fill="%2300966b" xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M11 10h1v3c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h3v1H1v10h10v-3zM6 2l2.25 2.25L5 7.5 6.5 9l3.25-3.25L12 8V2H6z"/></svg>');
    --link-image: url('data:image/svg+xml, <svg fill="%2300966b" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.25 4a.25.25 0 00-.25.25v15.5c0 .138.112.25.25.25h3.178L14 10.977a1.75 1.75 0 012.506-.032L22 16.44V4.25a.25.25 0 00-.25-.25H2.25zm3.496 17.5H21.75a1.75 1.75 0 001.75-1.75V4.25a1.75 1.75 0 00-1.75-1.75H2.25A1.75 1.75 0 00.5 4.25v15.5c0 .966.784 1.75 1.75 1.75h3.496zM22 19.75v-1.19l-6.555-6.554a.25.25 0 00-.358.004L7.497 20H21.75a.25.25 0 00.25-.25zM9 9.25a1.75 1.75 0 11-3.5 0 1.75 1.75 0 013.5 0zm1.5 0a3.25 3.25 0 11-6.5 0 3.25 3.25 0 016.5 0z"></path></svg>');
    --focus-shadow: 0 0 0 .2rem rgba(0, 150, 107, .25);
    --dark-box-shadow: none;
}

body.dark {
    --primary: #00C882;
    --primary-dark: #00A86E;
    --primary-light: #00E090;
    --primary-light-matt: #00E090;
    --primary-light-white-fore: rgba(0, 200, 130, .43);
    --light-0-invert: #DCE6F5;
    --light-0: #0D1628;
    --light-1: rgba(255,255,255,0.07);
    --light-2: #131E32;
    --light-3: #0D1628;
    --dark-1: #6B7D95;
    --dark-0: #DCE6F5;
    --text-light: #DCE6F5;
    --text-light-1: #6B7D95;
    --input-placeholder: #3A4A5E;
    --body-bg: #070D1B;

    /* Dark landing tokens */
    --surface: #0D1628;
    --surface2: #131E32;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);
    --accent: #00C882;
    --accent-dim: rgba(0,200,130,0.12);
    --accent-glow: rgba(0,200,130,0.25);
    --text: #DCE6F5;
    --text-muted: #6B7D95;
    --text-faint: #3A4A5E;
    --pill-bg: #0A1220;
    --gold: #F0C060;
    --gold-dim: rgba(240,192,96,0.12);
    --nav-bg: rgba(7,13,27,0.8);
    --heading: #F0F4FF;
    --noise-opacity: 0.5;

    --link-blank: url('data:image/svg+xml, <svg fill="%2300C882" opacity=".7" xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M11 10h1v3c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h3v1H1v10h10v-3zM6 2l2.25 2.25L5 7.5 6.5 9l3.25-3.25L12 8V2H6z"/></svg>');
    --link-image: url('data:image/svg+xml, <svg fill="%2300C882" opacity=".7" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.25 4a.25.25 0 00-.25.25v15.5c0 .138.112.25.25.25h3.178L14 10.977a1.75 1.75 0 012.506-.032L22 16.44V4.25a.25.25 0 00-.25-.25H2.25zm3.496 17.5H21.75a1.75 1.75 0 001.75-1.75V4.25a1.75 1.75 0 00-1.75-1.75H2.25A1.75 1.75 0 00.5 4.25v15.5c0 .966.784 1.75 1.75 1.75h3.496zM22 19.75v-1.19l-6.555-6.554a.25.25 0 00-.358.004L7.497 20H21.75a.25.25 0 00.25-.25zM9 9.25a1.75 1.75 0 11-3.5 0 1.75 1.75 0 013.5 0zm1.5 0a3.25 3.25 0 11-6.5 0 3.25 3.25 0 016.5 0z"></path></svg>');
    --focus-shadow: 0 0 0 .2rem rgba(0, 200, 130, .25);
    --dark-box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, .2);

    background-color: var(--body-bg);
    color: var(--text-light);
}

body {
    font-family: "DM Sans", "Source Sans Pro", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: var(--body-bg);
    color: var(--text);
    overflow-y: scroll;
}

/* Subtle noise texture — mirrors landing page backdrop */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: var(--noise-opacity);
}

body > *:not(.toast-holder) { position: relative; z-index: 1; }

header.page_header {
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1025;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: top .5s ease;
}

header.page_header > .container {
    padding-top: 12px;
}

body.dark header.page_header {
    background: var(--nav-bg);
}

.logo {
    display: flex;
    align-items: center;
    min-width: 140px;
    background: none !important;
    background-image: none !important;
}

.logo a {
    background: none !important;
    background-image: none !important;
}

.logo .site-logo {
    font-family: 'Fraunces', 'DM Sans', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.6px;
    color: var(--text) !important;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
    transition: opacity 0.2s;
}

.logo .site-logo span {
    color: var(--accent) !important;
    font-style: italic;
    font-weight: 300;
}

.logo .site-logo:hover {
    opacity: 0.85;
    color: var(--text) !important;
    text-decoration: none;
}

.top-bar {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 44px;
}

.header-search-form {
    flex: 1 1 auto;
    max-width: 560px;
    margin: 0;
}

.searchbox,
.searchbox .searchbox-text,
.searchbox .searchbtn,
.searchbox .dropbtn {
    height: 38px;
}

.searchbox {
    box-shadow: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-hover);
    background: var(--surface2);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.searchbox:focus-within {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.searchbox > .searchbox-text {
    border: none;
    background: transparent;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 0 14px;
}

.searchbox > .searchbox-text:focus {
    box-shadow: none;
    outline: none;
}

.searchbox > .searchbox-text::placeholder {
    color: var(--text-faint);
}

.searchbox > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.dark .searchbox .searchbtn {
    background: var(--accent);
    color: #030A12;
}

.searchbox .searchbtn {
    background: var(--accent);
    color: #030A12;
    padding: 3px 10px;
    width: 40px;
    border: none;
    border-radius: 0;
    transition: background 0.2s;
}

.searchbox .searchbtn:hover {
    background: #00E090;
}

.searchbox .dropbtn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0 10px;
    border-radius: 0;
    position: relative;
}

.searchbox .dropbtn::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 1px;
    background: var(--border);
}

body.dark .searchbox .dropbtn {
    background: transparent;
    color: var(--text-muted);
}

nav.usermenu ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

nav.usermenu ul li {
    display: inline-block;
    list-style: none;
}

nav.usermenu ul li a {
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

nav.usermenu ul li a:hover {
    border-color: var(--border-hover);
    color: var(--text);
    text-decoration: none;
}

nav.usermenu ul li:last-child a {
    background: var(--accent);
    color: #030A12;
    border-color: var(--accent);
}

nav.usermenu ul li:last-child a:hover {
    background: #00E090;
    border-color: #00E090;
    color: #030A12;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

nav.sub-nav {
    padding: 6px 0 4px;
}

nav.sub-nav ul.desktop-only {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

nav.sub-nav ul.desktop-only::-webkit-scrollbar {
    display: none;
}

nav.sub-nav ul.mobile-only {
    padding: 0;
    margin: 0;
    display: none;
    gap: 6px;
}

nav.sub-nav ul li {
    display: inline-flex;
    align-items: center;
    text-align: center;
    flex-grow: 0;
    flex-shrink: 0;
    border-bottom: none;
    list-style: none;
    transition: none;
}

nav.sub-nav ul li a {
    padding: 7px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

nav.sub-nav ul li a:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
}

nav.sub-nav ul li.active a,
nav.sub-nav ul li.active:hover a {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(0,150,107,0.2);
}

body.dark nav.sub-nav ul li.active a,
body.dark nav.sub-nav ul li.active:hover a {
    border-color: rgba(0,200,130,0.25);
}

nav.sub-nav ul li:hover {
    cursor: pointer;
    border-color: transparent;
}

nav.sub-nav ul li svg {
    fill: currentColor;
}

.content {
    margin-top: 104px;
    padding-top: 1.5em;
    display: flex;
}

nav.sub-nav ul .more_tags_dropdown {
    min-width: 220px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

body.dark nav.sub-nav ul .more_tags_dropdown {
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

nav.sub-nav ul .more_tags_dropdown a {
    padding: 8px 14px;
    text-align: left;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

nav.sub-nav ul .more_tags_dropdown a:hover {
    background: var(--surface2);
    color: var(--text);
}

nav.sub-nav ul .more_tags_dropdown a:focus,
nav.sub-nav ul .more_tags_dropdown a:active,
nav.sub-nav ul .more_tags_dropdown a.active,
.usermenu-dropdown a:focus,
.usermenu-dropdown a:active,
.usermenu-dropdown a.active {
    color: var(--accent);
    background: var(--accent-dim);
}

nav.sub-nav ul .more_tags_dropdown,
.usermenu-dropdown {
    top: 6px;
}

.small-device-alert {
    display: none;
}

.left-frame {
    height: calc(100% - 104px - 1.5em);
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    width: 260px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

body.dark .left-frame {
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#show_more {
    display: inline-block;
    margin-top: .4em;
    margin-bottom: 1.25em;
}

.tinybar {
    --thumb: #bababa;
    --thumb-hover: #666;
    --track: #efefef;
    --track-hover: #ccc;

    /* Firefox only */
    scrollbar-width: thin;
    scrollbar-color: var(--thumb) var(--track);
}

body.dark .tinybar {
    --track: var(--body-bg);
    --track-hover: var(--light-0);
    --thumb: var(--light-1);
    --thumb-hover: var(--light-2);
}

.tinybar::-webkit-scrollbar-button {
    display: none;
    height: 13px;
    border-radius: 0;
}

.tinybar::-webkit-scrollbar-thumb {
    background-color: var(--thumb);
    border-radius: 2px;
}

.tinybar::-webkit-scrollbar-thumb:hover {
    background-color: var(--thumb-hover);
}

.tinybar::-webkit-scrollbar-track {
    background-color: var(--track);
}

.tinybar::-webkit-scrollbar-track:hover {
    background-color: var(--track-hover);
}

.tinybar::-webkit-scrollbar {
    width: 6px;
}

.left-frame-in {
    font-size: 1.2rem;
}

.right-frame {
    width: 260px;
    position: -webkit-sticky;
    position: sticky;
    top: calc(104px + 1.5em);
    height: max-content;
}

.right-frame > * + footer,
.right-frame > * + .scrolltop {
    margin-top: 1em;
}

.content-frame {
    max-width: 730px;
    width: calc(100% - 520px);
    padding: 0 1.25em;
    margin-left: 260px;
}

.lf-hidden > .content-frame {
    width: 100%;
    margin-left: 0;
}

.left-frame h2 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--heading);
    max-width: 240px;
    margin-bottom: 14px;
    line-height: 1.2;
}

/* Left-frame nav tabs override (bootstrap .nav-tabs comes from helpers.css) */
.left-frame #left-frame-tabs.nav-tabs {
    border: none;
    margin: 10px 0 12px;
    gap: 4px;
    display: flex;
    flex-wrap: wrap;
}

.left-frame #left-frame-tabs .nav-item {
    margin: 0;
    flex: 1 1 auto;
}

.left-frame #left-frame-tabs .nav-link {
    padding: 6px 10px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.left-frame #left-frame-tabs .nav-link:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--surface2);
}

.left-frame #left-frame-tabs .nav-link.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(0,150,107,0.25);
}

body.dark .left-frame #left-frame-tabs .nav-link.active {
    border-color: rgba(0,200,130,0.3);
}

.left-frame .exclusion-settings {
    background: var(--surface2);
    padding: 10px 12px;
    border-radius: 10px;
    margin: 0 0 12px;
    border: 1px solid var(--border);
}

.left-frame .exclusion-settings small {
    color: var(--text-faint);
    font-size: 11px;
    margin-bottom: 6px;
    display: block;
}

.left-frame ul.exclusion-choices > li > a {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
}

.left-frame ul.exclusion-choices > li > a.active {
    color: var(--accent);
    font-weight: 500;
}

.left-frame #show_more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    margin-bottom: 4px;
    padding: 8px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.left-frame #show_more:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.left-frame #category_holder h2 #popular_excluder svg {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.left-frame #category_holder h2 #popular_excluder:hover svg {
    opacity: 1;
    color: var(--accent);
}

.left-frame #category_holder .year-select {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.left-frame-in h1:not(.description) {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--heading);
    letter-spacing: -0.5px;
}

ul.topic-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

ul.topic-list li {
    padding: 0;
    border: none;
    background: transparent !important;
    line-height: 1.35;
    border-radius: 8px;
}

ul.topic-list li.active {
    padding: 0;
    background: var(--accent-dim) !important;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

ul.topic-list li.active:not(:first-child) {
    border-radius: 8px;
}

ul.topic-list li.active:hover {
    background: var(--accent-dim) !important;
}

ul.topic-list li.active a {
    color: var(--accent);
    font-weight: 500;
}

ul.topic-list li:hover {
    background: var(--surface2) !important;
}

ul.topic-list li a {
    padding: 9px 12px;
    display: grid;
    grid-gap: .5em;
    grid-template-columns: 1fr minmax(min-content, 40px);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13.5px;
    word-break: break-word;
    align-items: center;
    border-radius: 8px;
    transition: color 0.2s;
}

ul.topic-list li:not(.active) a:hover {
    color: var(--text);
}

ul.topic-list li small.total_entries {
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    background: var(--pill-bg);
    border-radius: 100px;
    padding: 2px 8px;
    min-width: 28px;
}

ul.topic-list li.active small.total_entries {
    color: var(--accent);
    background: rgba(0,150,107,0.15);
    font-weight: 600;
}

body.dark ul.topic-list li.active small.total_entries {
    background: rgba(0,200,130,0.2);
}

header.entry_header h1 {
    font-size: 1.5em;
    font-weight: 700;
}

header.entry_header .upper {
    display: grid;
    grid-template-columns: minmax(min-content, max-content) min-content;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
    grid-gap: .5rem;
}

header.entry_header .lower a:not(.active) {
    color: var(--dark-0);
}

header.entry_header > .lower > .title_sub {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    grid-gap: 1.25rem;
    height: min-content;
}

header.entry_header > .lower > .title_sub a:not(.dropdown-item) {
    transition: color .2s ease-in;
}

header.entry_header > .lower > .title_sub a:not(.dropdown-item):hover,
header.entry_header > .lower > .title_sub a:not(.dropdown-item):focus {
    color: var(--primary-light);
    text-decoration: none;
}

.pagination a {
    display: block;
    text-decoration: none;
    padding: 1px 8px;
    border: 1px solid var(--light-1);
    border-radius: 4px;
    box-shadow: var(--dark-box-shadow);
}

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

.pagination select,
.lf_pagination select {
    background: var(--light-0);
    min-width: 50px;
    max-width: 65px;
    padding: 2px;
    cursor: pointer;
    border-color: var(--light-1);
    border-radius: 4px;
    color: var(--text-light);
    box-shadow: var(--dark-box-shadow);
}

section.user_entries ul.entries {
    padding: 0;
    margin: 0;
    list-style: none;
}

section.user_entries ul.home li h2 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    letter-spacing: -0.3px;
}

section.user_entries ul.entries li h2 {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
    padding: 0;
    margin: 0 0 10px;
    line-height: 1.25;
}

section.user_entries ul.entries li h2 a {
    color: var(--accent);
    text-decoration: none;
}

section.user_entries ul.entries li h2 a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

section.user_entries ul.entries li {
    padding: 0;
    list-style: none;
    height: auto;
}

section.user_entries ul li .entry-actions a:focus,
section.user_entries ul li .entry-actions a:active {
    background: var(--accent-dim);
    color: var(--accent);
}

section.user_entries article.entry {
    padding: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text);
}

section.user_entries article.entry p {
    overflow: hidden;
    line-height: 1.65;
    max-height: 15em;
    word-wrap: break-word;
    margin-bottom: 0;
}

section.user_entries article.entry.permalink p {
    max-height: none;
}

footer.entry-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    align-items: center;
}

footer.entry-footer > .meta {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

footer.entry-footer > .meta > a.permalink {
    font-size: 12px;
    color: var(--text-faint);
    padding-right: 0;
}

footer.entry-footer > .meta > a.username {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

footer.entry-footer > .meta > a.username:hover {
    color: var(--accent);
    text-decoration: none;
}

footer.entry-footer > .meta > a.action {
    width: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

footer.entry-footer > .feedback {
    display: grid;
    grid-template-columns: repeat(3, 50px);
}

footer.entry-footer > .feedback svg,
section.ama-comments aside.votes svg {
    display: block;
    fill: var(--dark-1);
    transition: fill .2s ease;
}

footer.entry-footer > .feedback > div {
    display: grid;
    grid-template-columns: repeat(2, 25px);
    align-items: center;
}

footer.entry-footer > .feedback > .social > a.facebook svg:hover {
    fill: #3b5998;
}

footer.entry-footer > .feedback > .social > a.twitter svg:hover {
    fill: #38a1f3;
}

.votes > a.downvote.active svg {
    fill: darkred;
}

footer.entry-footer > .meta > a.action svg,
header.entry-individual > .mobile > a.action svg,
footer.entry-footer > .feedback > .favorites > a.favorite.active svg,
.votes > a.upvote.active svg {
    fill: var(--primary-light);
}

@media (hover) {
    ul.threads li:hover {
        background: var(--light-2);
    }

    .votes > a.upvote svg:hover,
    footer.entry-footer > .feedback > .favorites > a.favorite svg:hover {
        fill: var(--primary-light);
    }

    .votes > a.downvote svg:hover {
        fill: darkred;
    }
}

footer.entry-footer > .feedback > .favorites > a.fav-count {
    text-align: center;
}

footer.entry-footer > .feedback > .favorites > .favorites-list {
    min-width: 0;
    max-height: 250px;
    overflow-y: auto;
}

footer.entry-footer > .feedback > .favorites > .favorites-list a {
    display: block;
    padding: 0 1em;
}

section.user_entries ul li.entry-full.owner footer.entry-footer > .feedback,
body#ua section.user_entries ul li.entry-full footer.entry-footer > .feedback {
    grid-template-columns: repeat(2, 50px);
}

section.ama-comments {
    margin-top: 1.75em;
    margin-left: .75em;
    border-left: 2px solid var(--light-1);
}

section.ama-comments .comment:not(:first-child) {
    margin-top: 2em;
}

section.ama-comments aside.votes strong {
    margin: 1em 0;
    font-size: 1.25rem;
    color: var(--dark-1);
}

form#signup small,
.fs-90 {
    font-size: 90%;
}

.fw-600 {
    font-weight: 600;
}

mark {
    padding: 0;
    background-color: yellow;
}

.datepick select {
    min-width: max-content;
}

body.dark .btn-django,
body.dark .btn-django-link {
    background-color: var(--primary-light-white-fore);
}

.btn-django {
    padding: .5em 1em;
    background: var(--primary-dark);
    color: #fff;
    font-size: 1em;
}

.btn-django.stretch {
    width: 100%;
}

.btn-django:hover,
.btn-django-link:hover {
    color: var(--text-light-1);
}

nav#user-navigation {
    display: flex;
    gap: 10px;
    align-items: center;
    height: auto;
}

nav#user-navigation > a {
    height: 38px;
    text-decoration: none;
    display: inline-flex;
    gap: 6px;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

nav#user-navigation > a > span:not(.user-badge) {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

nav#user-navigation > a:hover,
nav#user-navigation > a:focus,
nav#user-navigation > a:active {
    color: var(--accent);
    border-color: var(--border-hover);
    text-decoration: none;
}

nav#user-navigation > a svg {
    flex-shrink: 0;
}

nav#user-navigation > a#user-dropdown {
    cursor: pointer;
    background: var(--surface);
    border-color: var(--border);
}

nav#user-navigation > a#user-dropdown:hover {
    border-color: var(--accent);
    color: var(--accent);
}

body a,
body a[role="button"]:not(.dropdown-item) {
    color: var(--primary-light);
}

.text-formatted img,
article.entry img {
    display: block;
    max-height: 600px;
}

a[data-img] + a[data-img] {
    margin-left: .35rem;
}

article.entry a[data-img]::after,
article.entry a[target="_blank"]::after,
.text-formatted a[data-img]::after,
.text-formatted a[target="_blank"]::after {
    display: inline-block;
    content: '';
    background-repeat: no-repeat;
    background-size: 1em 1em;
    height: 1em;
    width: 1em;
}

article.entry a[target="_blank"]::after,
.text-formatted a[target="_blank"]::after {
    background-image: var(--link-blank);
    top: 1px;
    left: 1px;
    position: relative;
}

article.entry a[data-img]::after,
.text-formatted a[data-img]::after {
    background-image: var(--link-image);
    margin-left: 5px;
    position: relative;
    top: 3px;
}

body a:hover {
    color: var(--primary-dark);
}

section.user-comments {
    background: var(--light-1);
    padding: 1em;
    border-radius: 4px;
}

body.dark .editor-buttons button.add-code {
    background: var(--d-inner-dark);
}

.editor-buttons button.add-code {
    background: var(--light-0);
    color: var(--dark-0);
    border-radius: 4px;
    border: none;
    margin-bottom: .5rem;
    padding: .1em .4em;
}

.editor-buttons .add-code:not(:last-child) {
    margin-right: .25em;
}

.editor-buttons button.add-code:hover {
    background: var(--light-2);
}

section.user-comments textarea.entry_editor {
    margin: .5em 0 1em;
    width: 100%;
    padding: .5em;
    font-size: 16px;
}

.topic-categories-list {
    background: var(--light-1);
    padding: 1em;
    border-radius: 4px;
}

.topic-categories-list ul {
    margin: 0;
    padding: 0;
}

section.topic-categories-list ul li {
    list-style-type: none;
    display: inline-block;
}

section.topic-categories-list ul li:not(:last-child) a {
    margin-right: 1em;
}

.topic-categories-list h2 {
    font-size: 1.3em;
}

a.more-entries-button {
    display: block;
    width: 100%;
    border: 1px solid var(--light-1);
    padding: .25em;
    text-align: center;
    font-size: 1em;
    border-radius: 3px;
    text-decoration: none;
}

body.dark a.more-entries-button {
    background: var(--light-1);
}

body.dark a.more-entries-button:hover,
a.more-entries-button:hover {
    background: var(--light-2);
}

body.dark ul.autocomplete {
    border-color: var(--light-2);
}

ul.autocomplete {
    width: 100%;
    display: none;
    border: 1px solid #999;
    border-radius: 3px;
    background: var(--light-0);
    padding-left: 0;
    list-style: none;
    overflow: auto;
    z-index: 1;
    box-shadow: var(--dark-box-shadow);
}

ul.autocomplete li {
    padding: .3em 1em;
    white-space: nowrap;
    cursor: default;
}

ul.autocomplete li.selected {
    background: var(--light-2);
}

ul.autocomplete li.no-results {
    text-align: center;
}

ul.autocomplete mark {
    color: inherit;
    background: none;
    font-weight: 700;
}

.dj-hidden {
    display: none;
}

section.user-info h1,
article.post h2 {
    font-weight: 700;
}

section.user-info ul.user-links,
ul.user-stats {
    padding: 0;
    margin: 0 0 .25em;
}

section.user-info ul.user-stats li {
    font-size: .9em;
}

section.user-info ul.user-stats li::after {
    content: " \00b7";
    margin: .3em;
}

section.user-info ul.user-stats li.nobullet::after {
    content: none;
}

section.user-info ul.user-links:last-child {
    margin: 0;
}

section.user-info ul.user-links li,
ul.user-stats li {
    list-style-type: none;
    display: inline;
}

section.user-info ul.user-links li {
    margin-right: .8em;
}

.user-stats-nav {
    border-bottom: 1px solid var(--light-1);
    padding: .4em 0;
}

.user-stats-nav ul li {
    list-style-type: none;
    display: inline;
    margin-right: 1em;
    padding: .4em 0;
    border-bottom: 3px solid transparent;
    font-weight: 600;
}

.user-stats-nav ul li.active {
    border-bottom: 3px solid var(--primary-light);
}

.user-stats-nav ul li a {
    padding: 0 .4em;
}

@keyframes rotate {
    from {
        transform: rotate(1deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinning {
    transform: rotate(360deg);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    vertical-align: bottom;
    margin-left: 3px;
}

ul.threads {
    padding: 0;
}

ul.threads li {
    padding: .3em .3em .3em .6em;
    list-style-type: none;
    border-bottom: 2px solid var(--light-1);
    margin-bottom: 1em;
    transition: border-bottom-color .3s ease-in-out;
}

ul.threads li > a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
}

ul.threads li.unread {
    border-left: 3px solid var(--primary);
    padding-left: .75em;
}

ul.threads li.selected {
    background: var(--light-1);
    border-color: var(--primary-light);
}

ul.chat {
    padding: 0;
    max-width: 90%;
}

ul.chat li.bubble {
    list-style-type: none;
    border-radius: 4px;
    padding: .6em;
    position: relative;
    max-width: 60%;
    margin: 1em 0;
    word-break: break-word;
}

ul.chat li.bubble:not(:nth-last-child(-n+10)) {
    display: none;
}

ul.chat li.bubble > span.date-info {
    display: flex;
    align-items: center;
}

ul.chat li.bubble.received {
    border: 1px solid var(--light-1);
    left: 0;
}

ul.chat li.bubble.sent {
    left: 50%;
    background: var(--light-1);
}

ul.chat li.bubble.sent > span.date-info {
    justify-content: flex-end;
}

span.chat-quick-links,
span.chat-quick-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

section.chat-reply form {
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
}

section.chat-reply form textarea {
    width: inherit;
    flex-grow: 1;
    padding: .5em;
    font-size: 16px;
}

.people-list {
    padding: 0 1em;
    margin: .5em;
}

.people-list li {
    list-style-type: none;
}

body.dark .profile-badges a {
    background: var(--primary-light-white-fore);
}

.profile-badges a {
    display: inline-block;
    color: #fff;
    background: var(--primary-light);
    padding: .45em 1em;
    text-decoration: none;
    border-radius: 3px;
}

.profile-badges a.badge-item {
    margin-right: .4em;
}

.profile-badges a:hover {
    color: var(--text-light-1);
}

.blackquote-container {
    background: #f3f3f3;
    padding: 1em;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

body.dark .blackquote-container {
    background-color: var(--light-1);
}

blockquote.user-pin .entry-content {
    display: block;
    margin-bottom: 1em;
}

section.user_entries ul.profile li {
    padding: .6em 0;
}

a.expand::after {
    vertical-align: baseline;
    position: relative;
    left: 2px;
    content: '\25BE';
    color: inherit;
    padding: 2px;
}

.topic-dropdown a.dropdown-item:focus,
.topic-dropdown a.dropdown-item:active {
    background: var(--light-2);
    color: inherit;
}

.topic-dropdown a.dropdown-item .input-group input.searchbox-text {
    padding: 0 .3em;
    font-size: 14px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.nice-filter .sep {
    color: var(--dark-0);
}

.nice-filter a.active {
    color: var(--primary-light);
    font-weight: 700;
}

ul.category-list-all li {
    align-items: center;
    list-style-type: none;
    padding: 1em;
}

ul.category-list-all li article {
    flex: 1;
    margin-right: .75rem;
}

ul.category-list-all li:hover {
    background: var(--light-3);
}

.lf_pagination {
    align-items: center;
    margin: 10px 0 12px;
    display: flex;
    gap: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.lf_pagination.index {
    margin: 10px 0 12px;
}

.lf_pagination.index a {
    width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 32px;
    line-height: 1;
    box-shadow: none;
}

.lf_pagination.index select {
    height: 32px;
    min-width: 56px;
}

.lf_pagination.stretch {
    display: flex;
}

.lf_pagination.stretch a.number {
    flex-grow: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 .35em;
    box-shadow: none;
}

.lf_pagination.stretch select {
    flex-grow: 1;
    text-align: center;
    display: inline;
    max-width: none;
    margin: 0 .5em;
}

.lf_pagination a {
    display: inline-flex;
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    background: var(--surface);
    transition: all 0.2s;
}

.lf_pagination a:hover {
    background: var(--surface2);
    border-color: var(--border-hover);
    color: var(--text);
    text-decoration: none;
}

select.mobile-topic-list {
    width: 100%;
    padding: .3em;
}

.refresh-button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-button:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

form.memento textarea {
    height: auto;
    padding: .4em .6em;
    width: 100%;
}

div.read_more {
    color: var(--primary-light);
    font-size: 1rem;
    display: inline-block;
    margin-top: .5rem;
}

div.read_more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.year-select {
    width: 100%;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-light);
}

.refresh-button-mobile {
    border: 1px solid var(--light-1);
    background: var(--light-0);
    color: inherit;
    border-radius: 3px;
    width: 100%;
    padding: .25em 0;
    margin-bottom: 1em;
}

a.search-closer:active {
    background: inherit;
}

.topic-title {
    word-wrap: break-word;
}

.topic-title small {
    font-size: 1rem;
    margin-left: .5em;
}

.form-group label strong,
.topic-title small strong {
    font-weight: 600;
}

.modal-open {
    overflow: hidden;
    overflow-y: scroll;
    padding-right: 0 !important;
}

.dropdown-advanced-search {
    width: calc(100% - 32px);
    min-width: 300px;
}

.btn-django-link {
    background: var(--primary-dark);
    color: #fff;
}

.btn-django-link.stretch {
    width: 100%;
}

body.dark .btn-django-link.faded {
    background: rgba(43, 255, 166, .2);
}

.btn-django-link.faded {
    background: var(--primary-light);
}

li.profile-stat-expand .dropdown-menu .dropdown-item {
    padding: .5rem 1.5rem;
    color: var(--primary-light);
}

li.profile-stat-expand .dropdown-menu .dropdown-item:focus,
li.profile-stat-expand .dropdown-menu .dropdown-item:active {
    background: inherit;
}

footer.body-footer {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

body.dark footer.body-footer {
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

footer.body-footer > .body-footer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

footer.body-footer .body-footer-title {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--text);
    margin: 0;
    line-height: 1;
}

footer.body-footer .body-footer-title span {
    color: var(--accent);
    font-style: italic;
    font-weight: 300;
}

footer.body-footer .theme-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.2s;
}

footer.body-footer .theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

footer.body-footer .theme-toggle-btn svg {
    width: 16px;
    height: 16px;
}

footer.body-footer > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

footer.body-footer > ul > li > a {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

footer.body-footer > ul > li > a:hover {
    color: var(--accent);
    text-decoration: none;
    transform: translateX(2px);
}

/* Dev info (right-frame version marker) */
.devinfo {
    margin-top: 14px;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.devinfo-version {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faint);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.devinfo-version:hover {
    color: var(--accent);
    text-decoration: none;
}

.devinfo-tagline {
    font-size: 10.5px;
    color: var(--text-faint);
    font-style: italic;
    letter-spacing: 0.01em;
}

/* Language switcher */
.right-frame > form[action*="set_language"] {
    margin-top: 10px;
    padding: 0 4px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.right-frame > form[action*="set_language"] > button {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.right-frame > form[action*="set_language"] > button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.password-help ul {
    list-style-type: decimal;
    margin: 1em;
    padding: 0;
}

#wish-list > li {
    border: 0;
}

body.dark #wish-list > li.owner {
    background: var(--light-1);
}

#wish-list > li.owner {
    background: #f3f3f3;
    padding-left: 1em;
}

.exclusion-button {
    vertical-align: sub;
    margin-left: 3px;
}

#popular_excluder.active svg {
    fill: var(--primary-light);
}

.exclusion-settings {
    background: var(--light-1);
    padding: .5em;
    border-radius: 4px;
    margin: 0 0 .25em;
}

ul.exclusion-choices {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.exclusion-choices > li {
    display: inline-block;
}

ul.exclusion-choices > li:not(:last-child) {
    margin-right: .75em;
}

ul.exclusion-choices > li > a.active {
    color: var(--dark-1);
}

.toast-holder {
    position: fixed;
    top: 140px;
    right: 5%;
    z-index: 5000;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 160px;
}

.toast-body.error {
    border-left: 4px solid red;
}

.toast-body.info {
    border-left: 4px solid var(--primary-dark);
}

#main {
    scroll-margin-top: 100px;
}

.content-skipper {
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25rem;
    text-align: center;
    transform: translateY(-200%);
    z-index: 10;
    padding: .5em;
    max-width: 300px;
    background: var(--light-0);
    border: 2px solid var(--primary-light);
    transition: transform .3s ease-in-out;
    color: inherit;
}

.content-skipper:focus {
    transform: translateY(0%);
}

.image-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1em;
}

.image-list .img-fluid {
    margin: 0 auto;
    max-height: 220px;
    border-radius: 4px;
}

.image-detail {
    display: grid;
    border: 2px solid var(--light-1);
    border-radius: 4px;
    align-items: end;
    background: var(--light-1);
    padding: .1rem;
    width: 100%;
}

.image-detail span {
    user-select: all;
}

textarea.expandable {
    height: 9rem;
    transition: height .4s;
}

.fs-16,
.pw-text {
    font-size: 16px;
}

.svg-group {
    display: inline-flex;
    align-items: center;
}

.danger-area {
    background: #dc3545;
    color: #f8f9fa;
}

.danger-area input,
.danger-area select {
    border: 0;
}

.dropdown-menu.icon-assisted .dropdown-item {
    padding: .5rem 1.5rem;
    font-size: 1rem;
}

.dropdown-menu.icon-assisted .dropdown-item:focus svg,
.dropdown-menu.icon-assisted .dropdown-item:active svg {
    color: inherit;
}

.dropdown-menu.icon-assisted .dropdown-item > svg {
    --icon-color: rgba(27, 27, 27, .75);

    margin-right: 1em;
    height: 1.35rem;
    width: 1.35rem;
    color: var(--icon-color); /* Not 'fill' for :hov effects! */
}

body.dark .dropdown-menu.icon-assisted .dropdown-item > svg {
    --icon-color: rgba(255, 255, 255, .75);
}

.mobile-nav-wrapper {
    background: var(--light-0);
    position: fixed;
    bottom: 0;
    display: none;
    width: 100%;
}

nav.mobile-nav {
    background: inherit;
    display: grid;
    grid-template-columns: repeat(5, max-content);
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--light-1);
    height: 50px;
    position: relative;
    bottom: env(safe-area-inset-bottom);
}

nav.mobile-nav > a {
    color: var(--dark-0);
    max-height: 28px;
    position: relative;
}

nav.mobile-nav > a.active {
    color: var(--primary-light);
}

nav#user-navigation > a > .user-badge,
nav.mobile-nav > a .user-badge {
    z-index: 10;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--primary-light-matt);
    color: var(--light-0);
}

/** MEDIA QUERIES **/

/** CONTAINER WIDTHS **/
@media (min-width: 576px) {
    .container {
        max-width: 776px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 968px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1160px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/** CONTAINER WIDTHS END **/

@media (max-width: 1092px) {
    .content {
        flex-direction: column;
    }

    .content-frame {
        width: calc(100% - 260px);
    }

    .lf-hidden > .content-frame {
        margin: 0 auto;
    }

    .right-frame {
        margin-top: 1em;
        margin-left: calc(260px + 1em);
        width: calc(100% - 260px - 2em);
    }

    .lf-hidden > .right-frame {
        width: 730px;
        margin: 1em auto 0;
    }

    footer.body-footer > ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 850px) {
    .search-dates {
        grid-template-columns: none;
        grid-gap: 0;
    }
}

/** MOBILE VERSION SWITCH **/
@media (max-width: 810px) {
    .content {
        margin-top: 78px;
        padding-top: .75em;
    }

    header.page_header > .container {
        padding-top: 10px;
    }

    .top-bar {
        min-height: 40px;
        margin-bottom: 8px;
    }

    nav.sub-nav ul.mobile-only {
        display: flex;
    }

    nav.sub-nav ul li a {
        padding: 7px 14px;
    }

    nav.sub-nav ul.desktop-only,
    nav#user-navigation,
    body .left-frame,
    nav.usermenu {
        display: none !important;
    }

    .mobile-nav-wrapper {
        display: block;
    }

    body#au {
        margin-bottom: 50px; /* space occupied by nav.mobile-nav */
    }

    .right-frame,
    .lf-hidden > .right-frame {
        margin-top: 1em;
        width: 100%;
        margin-left: 0;
    }

    body .content-frame {
        display: block;
        margin-left: 0;
        width: 100%;
        padding: 0;
    }

    section.user_entries ul li.entry-full {
        padding: 16px 18px;
        border-radius: 10px;
    }

    section.user_entries ul li.entry-full:hover {
        transform: none;
    }

    .stretch-mobile {
        width: 100%;
    }

    .logo .site-logo {
        font-size: 18px;
    }
}

/** MOBILE VERSION SWITCH END **/

@media (min-width: 615px) {
    header.entry-individual > .mobile {
        display: none;
    }

    .settings-nav-mobile {
        display: none;
    }
}

@media (max-width: 615px) {
    .logo {
        min-width: auto;
    }

    .logo .site-logo {
        font-size: 17px;
    }

    .pagination a,
    .pagination select {
        max-height: 26px;
    }

    section.user_entries ul li.entry-full:not(:first-child) {
        margin-top: .5em;
    }

    section.user_entries article.entry {
        padding-top: 0;
    }

    header.entry-individual > .mobile {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: space-between;
        margin-bottom: .75em;
    }

    header.entry-individual > .mobile > a.permalink {
        font-size: 90%;
        line-height: .75;
        color: var(--dark-1);
    }

    footer.entry-footer > .feedback {
        display: grid;
        grid-template-columns: 75px 50px auto;
        height: 21px;
        grid-gap: 25px;
    }

    footer.entry-footer > .feedback > .social {
        grid-template-columns: repeat(2, 25px);
        justify-content: end;
        order: 3;
        grid-gap: 25px;
    }

    footer.entry-footer > .feedback > .votes {
        grid-gap: 25px;
    }

    section.user_entries ul li.entry-full.owner footer.entry-footer > .feedback,
    body#ua section.user_entries ul li.entry-full footer.entry-footer > .feedback {
        grid-template-columns: 50px auto;
    }

    footer.entry-footer > .feedback > div {
        grid-template-columns: repeat(2, 1fr);
        align-content: center;
    }

    footer.entry-footer > .meta {
        display: none;
    }

    .image-list {
        grid-template-columns: 1fr;
    }

    .image-list .img-fluid {
        max-height: initial;
    }

    .settings-nav-expander {
        display: block;
    }

    .settings-nav-tabs {
        display: none;
    }
}

@media (max-width: 525px) {
    header.entry_header > .lower {
        display: grid !important;
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        grid-gap: .75rem;
    }

    header.entry_header > .lower:not(.paginated) {
        grid-gap: 0;
    }

    body#ua header.entry_header > .lower {
        grid-template-columns: max-content max-content;
        grid-template-rows: none;
    }

    header.entry_header > .lower > .pagination {
        justify-content: flex-end;
    }

    header.entry_header > .lower > .title_sub {
        justify-content: space-between;
        grid-gap: 0;
    }

    body#ua header.entry_header > .lower > .title_sub {
        grid-template-columns: max-content max-content;
        grid-gap: 1.25rem;
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    body#ua header.entry_header > .lower {
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
    }

    .logo .site-logo {
        font-size: 16px;
    }
}

@media (max-width: 350px) {
    header.entry_header > .lower > .title_sub {
        grid-template-columns: max-content;
        grid-gap: .75rem;
    }
}

@media (max-width: 300px) {
    body#au form.header-search-form {
        display: none;
    }

    .topic-search-expander {
        display: block;
    }
}

@media (max-width: 225px) {
    .small-device-alert {
        display: block;
        background: red;
        color: #fff;
    }
}

/* ============================================= */
/* ROLE-BASED STYLING + BADGES                     */
/* ============================================= */

/* Student entries — italic body (CLAUDE.md spec) */
.entry-full.role-ST article.entry {
    font-style: italic;
}

/* Profile-page badge (kept for profile.html) */
.badge-role {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 6px;
    border: 1px solid transparent;
    display: inline-block;
}

.badge-role-ST {
    background: rgba(200,150,240,0.12);
    color: #C896F0;
    border-color: rgba(200,150,240,0.2);
}

.badge-role-IN {
    background: rgba(96,160,240,0.12);
    color: #60A0F0;
    border-color: rgba(96,160,240,0.2);
}

.badge-role-PH {
    background: rgba(0,200,130,0.12);
    color: var(--accent);
    border-color: rgba(0,200,130,0.2);
}

.badge-role-AD {
    background: var(--gold-dim);
    color: var(--gold);
    border-color: rgba(240,192,96,0.25);
}

.badge-verified {
    color: var(--accent);
    font-size: .8em;
    margin-left: 4px;
    vertical-align: middle;
}

/* Entry role pill (shown next to username in entry meta) */
.entry-role-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    line-height: 1.4;
    vertical-align: middle;
    margin-left: 4px;
}

.entry-role-badge.role-ST {
    background: rgba(200,150,240,0.12);
    color: #C896F0;
    border-color: rgba(200,150,240,0.2);
}

.entry-role-badge.role-IN {
    background: rgba(96,160,240,0.12);
    color: #60A0F0;
    border-color: rgba(96,160,240,0.2);
}

.entry-role-badge.role-PH {
    background: rgba(0,200,130,0.12);
    color: var(--accent);
    border-color: rgba(0,200,130,0.2);
}

.entry-role-badge.role-AD {
    background: var(--gold-dim);
    color: var(--gold);
    border-color: rgba(240,192,96,0.25);
}

/* ============================================= */
/* ENTRY CARD — landing design language           */
/* ============================================= */

section.user_entries ul li.entry-full {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

section.user_entries ul li.entry-full::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}

section.user_entries ul li.entry-full:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

body.dark section.user_entries ul li.entry-full:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

section.user_entries ul li.entry-full:hover::before {
    opacity: 1;
}

/* Remove default list-item dot in sub-lists */
section.user_entries ul li.entry-full {
    list-style: none;
}

/* ============================================= */
/* LEFT FRAME LIST GROUP ITEMS                     */
/* ============================================= */

.left-frame .list-group-item {
    border: none;
    background: transparent;
    transition: background 0.15s;
}

.left-frame .list-group-item:hover {
    background: var(--surface2);
}

/* ============================================= */
/* BUTTONS                                         */
/* ============================================= */

.btn-django {
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-django:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}
