/*!
Theme Name: fastai
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: fastai.news theme
Version: 1.1.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fastai
*/

/* ============================================================
   TABLE OF CONTENTS
   1.  CSS Custom Properties
   2.  Normalize & Reset
   3.  Base Typography
   4.  Hide Theme Native Header & Footer
   5.  Header Shell & Layout
   6.  Header Logo
   7.  Header Desktop Nav
   8.  Header Right Cluster & Search Toggle
   9.  Header Hamburger
   10. Header Nav Icons
   11. Header Search Bar
   12. Header Mobile Nav
   13. Header Mobile Breakpoint
   14. Homepage Wrapper
   15. Homepage Hero
   16. Homepage Section Bar
   17. Homepage Card Grid
   18. Homepage Cards
   19. Single Post Layout
   20. General Entry Content
   21. Blockquotes
   22. Code Blocks
   23. Category Tag Pills
   24. Images
   25. Tables
   26. Archive Wrapper & Year Tabs
   27. Archive Card Grid
   28. Footer Shell & Layout
   29. Footer Brand & Logo
   30. Footer Columns & Links
   31. Footer Base Bar
   32. Pagination
   33. Utility Classes
   34. WordPress Overrides
   35. Scrollbar & Selection
   36. Admin Bar Offset
   37. Accessibility
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
   ════════════════════════════════════════════════════════════ */

:root {
    --fan-navy:        #0b1929;
    --fan-surface:     #0f2035;
    --fan-deep:        #070f1a;
    --fan-teal:        #00d2c8;
    --fan-teal-dim:    rgba(0, 210, 200, 0.15);
    --fan-teal-border: rgba(0, 210, 200, 0.2);
    --fan-white:       #ffffff;
    --fan-bright:      #cde0f8;
    --fan-mid:         #8ba3c4;
    --fan-muted:       #5a7a9a;
    --fan-dim:         #3a5a7a;
    --fan-border:      rgba(255, 255, 255, 0.06);
    --fan-border-mid:  rgba(255, 255, 255, 0.1);
    --fan-radius-sm:   4px;
    --fan-radius-md:   8px;
    --fan-radius-lg:   12px;
    --fan-font:        system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --fan-mono:        'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --fan-header-h:    56px;
}

/* ════════════════════════════════════════════════════════════
   2. NORMALIZE & RESET
   ════════════════════════════════════════════════════════════ */

*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }
main { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; }

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; }

abbr[title] {
    border-bottom: none;
    text-decoration: underline dotted;
}

b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
img { border-style: none; }

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, input { overflow: visible; }
button, select { text-transform: none; }

button,
[type="button"],
[type="reset"],
[type="submit"] { -webkit-appearance: button; }

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }

[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details { display: block; }
summary { display: list-item; }
template, [hidden] { display: none; }

/* ════════════════════════════════════════════════════════════
   3. BASE TYPOGRAPHY & ELEMENTS
   ════════════════════════════════════════════════════════════ */

html,
body {
    background-color: var(--fan-navy) !important;
    color: var(--fan-mid) !important;
    font-family: var(--fan-font) !important;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--fan-header-h) !important;
}

.site,
#page,
#content,
#primary,
.site-content,
.content-area {
    background-color: var(--fan-navy) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fan-font);
    color: var(--fan-white);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-top: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p {
    color: var(--fan-mid);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

a {
    color: var(--fan-teal);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover { opacity: 0.8; }

ul, ol { margin: 0 0 1.5em 3em; }
ul { list-style: disc; }
ol { list-style: decimal; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }

embed, iframe, object { max-width: 100%; }
img { height: auto; max-width: 100%; }
figure { margin: 1em 0; }
table { margin: 0 0 1.5em; width: 100%; }

/* ════════════════════════════════════════════════════════════
   4. HIDE THEME NATIVE HEADER & FOOTER
   ════════════════════════════════════════════════════════════ */

.site-header,
header.site-header,
#masthead,
.main-navigation,
#site-navigation,
.site-footer,
footer.site-footer,
#colophon {
    display: none !important;
}

/* ════════════════════════════════════════════════════════════
   5. HEADER SHELL & LAYOUT
   ════════════════════════════════════════════════════════════ */

#fan-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    background: var(--fan-navy);
    border-bottom: 1px solid var(--fan-border);
    box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

#fan-header .fan-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--fan-header-h);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 28px;
}

/* ════════════════════════════════════════════════════════════
   6. HEADER LOGO
   ════════════════════════════════════════════════════════════ */

#fan-header .fan-logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--fan-white) !important;
    text-decoration: none !important;
    flex-shrink: 0;
    font-family: var(--fan-font);
    line-height: 1;
}

#fan-header .fan-bolt {
    color: var(--fan-teal);
    display: inline-block;
    transform: scaleX(0.85);
}

/* ════════════════════════════════════════════════════════════
   7. HEADER DESKTOP NAV
   ════════════════════════════════════════════════════════════ */

#fan-header .fan-nav { flex: 1; }

#fan-header .fan-nav-list,
#fan-header .fan-nav > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
}

#fan-header .fan-nav-list li,
#fan-header .fan-nav > ul > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

#fan-header .fan-nav-list a,
#fan-header .fan-nav > ul > li > a {
    display: block;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fan-muted) !important;
    text-decoration: none !important;
    border-radius: var(--fan-radius-sm);
    transition: color 0.15s, background 0.15s;
    font-family: var(--fan-font);
    border-bottom: none !important;
}

#fan-header .fan-nav-list a:hover,
#fan-header .fan-nav > ul > li > a:hover,
#fan-header .fan-nav-list .current-menu-item > a,
#fan-header .fan-nav-list .current-category-ancestor > a {
    color: var(--fan-teal) !important;
    background: rgba(0,210,200,0.09);
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════
   8. HEADER RIGHT CLUSTER & SEARCH TOGGLE
   ════════════════════════════════════════════════════════════ */

#fan-header .fan-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.fan-x-link {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    margin-right: 4px;
}

.fan-x-link:hover { color: #fff; }

#fan-header .fan-search-toggle {
    background: none;
    border: none;
    color: var(--fan-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--fan-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    line-height: 1;
}

#fan-header .fan-search-toggle:hover { color: var(--fan-teal); }

/* ════════════════════════════════════════════════════════════
   9. HEADER HAMBURGER
   ════════════════════════════════════════════════════════════ */

#fan-header .fan-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 6px;
    border-radius: var(--fan-radius-sm);
}

#fan-header .fan-hamburger span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--fan-muted);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

#fan-header .fan-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--fan-teal);
}

#fan-header .fan-hamburger.is-open span:nth-child(2) { opacity: 0; }

#fan-header .fan-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--fan-teal);
}

/* ════════════════════════════════════════════════════════════
   10. HEADER NAV ICONS (Home, Contact, Browse)
   ════════════════════════════════════════════════════════════ */

#fan-header .fan-nav-list a[href="/"],
#fan-header .fan-nav-list a[href$="fastai.news/"],
#fan-header .fan-nav-list a[href*="contact"],
#fan-header .fan-nav-list a[href*="browse-by-topic"],
#fan-header .fan-nav > ul > li > a[href="/"],
#fan-header .fan-nav > ul > li > a[href$="fastai.news/"],
#fan-header .fan-nav > ul > li > a[href*="contact"],
#fan-header .fan-nav > ul > li > a[href*="browse-by-topic"] {
    font-size: 0 !important;
    padding: 8px 10px;
}

#fan-header .fan-nav-list a[href="/"]::before,
#fan-header .fan-nav-list a[href$="fastai.news/"]::before,
#fan-header .fan-nav-list a[href*="contact"]::before,
#fan-header .fan-nav-list a[href*="browse-by-topic"]::before,
#fan-header .fan-nav > ul > li > a[href="/"]::before,
#fan-header .fan-nav > ul > li > a[href$="fastai.news/"]::before,
#fan-header .fan-nav > ul > li > a[href*="contact"]::before,
#fan-header .fan-nav > ul > li > a[href*="browse-by-topic"]::before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 16px !important;
    color: var(--fan-muted);
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

#fan-header .fan-nav-list a[href="/"]:hover::before,
#fan-header .fan-nav-list a[href$="fastai.news/"]:hover::before,
#fan-header .fan-nav-list a[href*="contact"]:hover::before,
#fan-header .fan-nav-list a[href*="browse-by-topic"]:hover::before,
#fan-header .fan-nav > ul > li > a[href="/"]:hover::before,
#fan-header .fan-nav > ul > li > a[href$="fastai.news/"]:hover::before,
#fan-header .fan-nav > ul > li > a[href*="contact"]:hover::before,
#fan-header .fan-nav > ul > li > a[href*="browse-by-topic"]:hover::before {
    color: var(--fan-teal);
}

#fan-header .fan-nav-list a[href="/"]::before,
#fan-header .fan-nav-list a[href$="fastai.news/"]::before,
#fan-header .fan-nav > ul > li > a[href="/"]::before,
#fan-header .fan-nav > ul > li > a[href$="fastai.news/"]::before {
    content: '\f015' !important;
}

#fan-header .fan-nav-list a[href*="contact"]::before,
#fan-header .fan-nav > ul > li > a[href*="contact"]::before {
    content: '\f0e0' !important;
}

#fan-header .fan-nav-list a[href*="browse-by-topic"]::before,
#fan-header .fan-nav > ul > li > a[href*="browse-by-topic"]::before {
    content: '\f00a' !important;
}

/* ════════════════════════════════════════════════════════════
   11. HEADER SEARCH BAR
   ════════════════════════════════════════════════════════════ */

#fan-header .fan-search-bar {
    display: none !important;
    background: var(--fan-surface);
    border-top: 1px solid var(--fan-border);
    padding: 12px 24px;
}

#fan-header .fan-search-bar.is-open { display: block !important; }

#fan-header .fan-search-bar form {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

#fan-header .fan-search-bar input[type="search"] {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--fan-border-mid);
    border-radius: var(--fan-radius-sm);
    padding: 8px 14px;
    color: var(--fan-white);
    font-size: 14px;
    outline: none;
    font-family: var(--fan-font);
}

#fan-header .fan-search-bar input[type="search"]:focus {
    border-color: var(--fan-teal);
    background: rgba(0,210,200,0.04);
}

#fan-header .fan-search-bar button[type="submit"] {
    background: var(--fan-teal);
    color: var(--fan-navy);
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: var(--fan-radius-sm);
    padding: 8px 18px;
    cursor: pointer;
    font-family: var(--fan-font);
    transition: opacity 0.15s;
}

#fan-header .fan-search-bar button[type="submit"]:hover { opacity: 0.88; }

/* ════════════════════════════════════════════════════════════
   12. HEADER MOBILE NAV
   ════════════════════════════════════════════════════════════ */

#fan-header .fan-mobile-nav {
    display: none !important;
    background: var(--fan-surface);
    border-top: 1px solid var(--fan-border);
}

#fan-header .fan-mobile-nav.is-open { display: block !important; }

#fan-header .fan-mobile-nav-list,
#fan-header .fan-mobile-nav > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 8px 0 16px !important;
}

#fan-header .fan-mobile-nav-list li,
#fan-header .fan-mobile-nav > ul > li { margin: 0 !important; }

#fan-header .fan-mobile-nav-list a,
#fan-header .fan-mobile-nav > ul > li > a {
    display: block;
    padding: 13px 28px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fan-muted) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--fan-border) !important;
    transition: color 0.15s, padding-left 0.15s;
    font-family: var(--fan-font);
}

#fan-header .fan-mobile-nav-list a:hover,
#fan-header .fan-mobile-nav > ul > li > a:hover {
    color: var(--fan-teal) !important;
    padding-left: 36px;
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════
   13. HEADER MOBILE BREAKPOINT
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    #fan-header .fan-nav       { display: none; }
    #fan-header .fan-hamburger { display: flex; }
    #fan-header .fan-header-inner {
        padding: 0 16px !important;
        gap: 12px !important;
    }
}

/* ════════════════════════════════════════════════════════════
   14. HOMEPAGE WRAPPER
   ════════════════════════════════════════════════════════════ */

.home.page .site-main,
.home.page .entry-content,
.home.page .entry-header,
.home.page .entry-title {
    display: none !important;
}

#fan-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ════════════════════════════════════════════════════════════
   15. HOMEPAGE HERO
   ════════════════════════════════════════════════════════════ */

.fan-hp-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    border-bottom: 1px solid var(--fan-border);
}

@media (max-width: 768px) {
    .fan-hp-hero { grid-template-columns: 1fr; }
}

.fan-hp-hero-img {
    display: block;
    overflow: hidden;
    background: var(--fan-surface);
}

.fan-hp-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.fan-hp-hero-img:hover img { transform: scale(1.02); }

.fan-hp-hero-body {
    padding: 32px 28px;
    border-left: 1px solid var(--fan-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background: var(--fan-surface);
}

.fan-hp-hero-body h2 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0;
}

.fan-hp-hero-body h2 a {
    color: var(--fan-white);
    text-decoration: none;
    border-bottom: none;
}

.fan-hp-hero-body h2 a:hover { color: var(--fan-bright); opacity: 1; }

.fan-hp-hero-body p {
    font-size: 13px;
    color: var(--fan-mid);
    line-height: 1.6;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   16. HOMEPAGE SECTION BAR
   ════════════════════════════════════════════════════════════ */

.fan-hp-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 12px;
    border-bottom: 1px solid var(--fan-border);
    margin-bottom: 1px;
}

.fan-hp-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fan-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fan-hp-section-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 14px;
    background: var(--fan-teal);
    border-radius: 2px;
}

.fan-hp-see-all {
    font-size: 12px;
    color: var(--fan-teal);
    text-decoration: none;
    border-bottom: none !important;
}

.fan-hp-see-all:hover { opacity: 0.8; }

.fan-hp-meta {
    font-size: 11px;
    color: var(--fan-dim);
    margin-top: auto;
}

/* ════════════════════════════════════════════════════════════
   17. HOMEPAGE CARD GRID
   ════════════════════════════════════════════════════════════ */

.fan-hp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 0;
    padding: 16px 0;
}

.fan-hp-grid.fan-hp-cat-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .fan-hp-grid { grid-template-columns: repeat(2, 1fr); }
    .fan-hp-grid.fan-hp-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .fan-hp-grid,
    .fan-hp-grid.fan-hp-cat-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   18. HOMEPAGE CARDS
   ════════════════════════════════════════════════════════════ */

.fan-hp-card {
    background: var(--fan-surface);
    border-radius: var(--fan-radius-md);
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fan-hp-card:hover { background: #132840; }

.fan-hp-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--fan-surface);
}

.fan-hp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.fan-hp-card:hover .fan-hp-card-img img { transform: scale(1.03); }

.fan-hp-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fan-hp-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--fan-bright);
    line-height: 1.4;
    margin: 0;
}

.fan-hp-card-body h3 a {
    color: var(--fan-bright);
    text-decoration: none;
    border-bottom: none;
}

.fan-hp-card-body h3 a:hover { color: var(--fan-white); opacity: 1; }

/* ════════════════════════════════════════════════════════════
   19. SINGLE POST LAYOUT
   ════════════════════════════════════════════════════════════ */

.single .entry-header,
.single .entry-content {
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.single .entry-header { padding: 20px 24px 0; }

.single .post-thumbnail {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.single .post-thumbnail img,
.single .wp-post-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--fan-radius-md);
    margin: 0;
}

.single .entry-content { padding: 20px 24px 40px; }

.single .entry-content p:first-of-type {
    color: var(--fan-white) !important;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.65;
    border-left: 3px solid var(--fan-teal);
    padding-left: 16px;
    margin-bottom: 1.75rem;
}

.single .entry-content p { color: var(--fan-mid); font-size: 1rem; font-weight: 400; }

.single .entry-content h2 { font-size: 1.35rem; color: var(--fan-white); margin: 2rem 0 0.75rem; }
.single .entry-content h3 { font-size: 1.1rem; color: var(--fan-bright); margin: 1.5rem 0 0.5rem; }

.single .entry-content a {
    color: var(--fan-teal);
    border-bottom: 1px solid var(--fan-teal-border);
}

.single .entry-content a:hover { border-bottom-color: var(--fan-teal); opacity: 1; }

.single .entry-content ul,
.single .entry-content ol { color: var(--fan-mid); padding-left: 1.5rem; margin-bottom: 1.25rem; }

.single .entry-content li { margin-bottom: 0.5rem; }
.single .entry-content strong { color: var(--fan-bright); font-weight: 600; }

.single .entry-meta { font-size: 12px; color: var(--fan-dim); margin-bottom: 16px; }
.single .entry-meta a { color: var(--fan-dim); border-bottom: none; }

.single .entry-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 12px;
    color: var(--fan-dim);
    border-top: 1px solid var(--fan-border);
}

.single #primary,
.single #main,
.single .site-main,
.single article { padding-top: 0 !important; margin-top: 0 !important; }

.single .entry-title,
.single .entry-title a { color: var(--fan-teal); }

.single .entry-title a:hover { color: var(--fan-white); }

/* ════════════════════════════════════════════════════════════
   20. GENERAL ENTRY CONTENT
   ════════════════════════════════════════════════════════════ */

.entry-content,
.fan-content-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
    color: var(--fan-mid);
    font-size: 16px;
    line-height: 1.75;
}

.entry-header,
.fan-article-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

.fan-article-header h1,
.entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fan-white);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}

.fan-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--fan-dim);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fan-border);
}

.entry-content h2 { font-size: 1.35rem; color: var(--fan-white); margin: 2rem 0 0.75rem; }
.entry-content h3 { font-size: 1.1rem; color: var(--fan-bright); margin: 1.5rem 0 0.5rem; }
.entry-content p { color: var(--fan-mid); margin-bottom: 1.25rem; }

.entry-content a {
    color: var(--fan-teal);
    border-bottom: 1px solid var(--fan-teal-border);
}

.entry-content a:hover { border-bottom-color: var(--fan-teal); opacity: 1; }

.entry-content ul,
.entry-content ol { color: var(--fan-mid); padding-left: 1.5rem; margin-bottom: 1.25rem; }

.entry-content li { margin-bottom: 0.5rem; }
.entry-content strong { color: var(--fan-bright); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   21. BLOCKQUOTES
   ════════════════════════════════════════════════════════════ */

blockquote,
.entry-content blockquote {
    border-left: 3px solid var(--fan-teal);
    margin: 2rem 0;
    padding: 16px 20px;
    background: var(--fan-surface);
    border-radius: 0 var(--fan-radius-md) var(--fan-radius-md) 0;
    color: var(--fan-bright);
    font-size: 15px;
    font-style: normal;
    line-height: 1.65;
}

blockquote p { color: var(--fan-bright) !important; margin-bottom: 0; }

blockquote cite {
    display: block;
    font-size: 12px;
    color: var(--fan-muted);
    margin-top: 10px;
    font-style: normal;
}

/* ════════════════════════════════════════════════════════════
   22. CODE BLOCKS
   ════════════════════════════════════════════════════════════ */

code,
.entry-content code {
    font-family: var(--fan-mono);
    font-size: 13px;
    background: var(--fan-surface);
    color: var(--fan-teal);
    padding: 2px 6px;
    border-radius: var(--fan-radius-sm);
    border: 1px solid var(--fan-border-mid);
}

pre,
.entry-content pre {
    font-family: var(--fan-mono);
    font-size: 13px;
    background: var(--fan-deep);
    color: var(--fan-bright);
    padding: 20px;
    border-radius: var(--fan-radius-md);
    border: 1px solid var(--fan-border-mid);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

pre code { background: none; border: none; padding: 0; color: inherit; }

/* ════════════════════════════════════════════════════════════
   23. CATEGORY TAG PILLS
   ════════════════════════════════════════════════════════════ */

.fan-tag,
.cat-links a,
.entry-meta .cat-links a,
.post-categories a {
    display: inline-block;
    background: var(--fan-teal-dim);
    color: var(--fan-teal) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--fan-radius-sm);
    text-decoration: none;
    margin-right: 4px;
    margin-bottom: 8px;
    border-bottom: none !important;
}

.fan-tag:hover,
.cat-links a:hover { background: rgba(0, 210, 200, 0.25); opacity: 1; }

/* ════════════════════════════════════════════════════════════
   24. IMAGES
   ════════════════════════════════════════════════════════════ */

.entry-content img,
.wp-post-image { max-width: 100%; height: auto; border-radius: var(--fan-radius-md); display: block; }

.entry-content figure { margin: 1.5rem 0; }

.entry-content figcaption,
.entry-content .wp-caption-text { font-size: 12px; color: var(--fan-muted); text-align: center; margin-top: 8px; }

.page .post-thumbnail {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.page .post-thumbnail img,
.page .wp-post-image { width: 100%; height: auto; display: block; border-radius: var(--fan-radius-md); margin: 0; }

.page .entry-title { display: none !important; }

.page .entry-header { padding-top: 0 !important; margin-top: 0 !important; }

.page #primary,
.page .site-main,
.page article { padding-top: 0 !important; margin-top: 0 !important; }

/* ════════════════════════════════════════════════════════════
   25. TABLES
   ════════════════════════════════════════════════════════════ */

.fan-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--fan-radius-md);
    border: 1px solid var(--fan-border-mid);
}

.fan-table,
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }

.fan-table thead tr,
.entry-content table thead tr { background: var(--fan-surface); border-bottom: 1px solid var(--fan-border-mid); }

.fan-table th,
.entry-content table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fan-muted);
}

.fan-table td,
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--fan-border); color: var(--fan-mid); }

.fan-table tbody tr:hover,
.entry-content table tbody tr:hover { background: var(--fan-surface); }

.fan-table tbody tr:last-child td,
.entry-content table tbody tr:last-child td { border-bottom: none; }

/* ════════════════════════════════════════════════════════════
   26. ARCHIVE WRAPPER & YEAR TABS
   ════════════════════════════════════════════════════════════ */

.archive article {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.archive .entry-header,
.archive .entry-meta,
.archive .entry-content,
.archive .entry-footer,
.archive .post-thumbnail { display: none !important; }

.fan-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.archive .page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

.fan-year-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--fan-border);
    margin-bottom: 24px;
}

.fan-year-tab {
    background: var(--fan-surface);
    border: 1px solid var(--fan-border-mid);
    border-radius: var(--fan-radius-sm);
    color: var(--fan-muted);
    font-family: var(--fan-font);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.fan-year-tab:hover { border-color: var(--fan-teal); color: var(--fan-teal); }

.fan-year-tab--active {
    background: var(--fan-teal);
    border-color: var(--fan-teal);
    color: var(--fan-navy);
}

.fan-year-tab--active:hover { color: var(--fan-navy); }

.fan-year-count {
    background: rgba(0,0,0,0.18);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   27. ARCHIVE CARD GRID
   ════════════════════════════════════════════════════════════ */

.fan-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) { .fan-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .fan-archive-grid { grid-template-columns: 1fr; } }

.fan-arc-card {
    background: var(--fan-surface);
    border-radius: var(--fan-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background 0.15s;
}

.fan-arc-card:hover { background: #132840; }

.fan-arc-card-img {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--fan-surface);
}

.fan-arc-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fan-arc-card:hover .fan-arc-card-img img { transform: scale(1.03); }

.fan-arc-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fan-arc-card-body h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0; color: var(--fan-bright); }

.fan-arc-card-body h3 a { color: var(--fan-bright); text-decoration: none; border-bottom: none; }
.fan-arc-card-body h3 a:hover { color: var(--fan-white); opacity: 1; }

.fan-arc-meta { font-size: 11px; color: var(--fan-dim); margin-top: auto; }

/* ════════════════════════════════════════════════════════════
   28. FOOTER SHELL & LAYOUT
   ════════════════════════════════════════════════════════════ */

#fan-footer {
    background: var(--fan-deep);
    border-top: 1px solid var(--fan-border);
    padding: 32px 24px 0;
    margin-top: 40px;
}

.fan-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fan-border);
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   29. FOOTER BRAND & LOGO
   ════════════════════════════════════════════════════════════ */

.fan-footer-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--fan-white) !important;
    text-decoration: none !important;
    font-family: var(--fan-font);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
    border-bottom: none !important;
}

.fan-footer-bolt { color: var(--fan-teal); display: inline-block; transform: scaleX(0.85); }

.fan-footer-tagline { font-size: 12px; color: var(--fan-muted); margin: 0; }

.fan-footer-bio {
    font-size: 12px;
    color: var(--fan-muted);
    line-height: 1.6;
    margin: 10px 0 0;
    max-width: 220px;
}

.fan-footer-pbn-link {
    display: inline-block;
    opacity: 0.75;
    transition: opacity 0.15s;
    border-bottom: none !important;
}

.fan-footer-pbn-link:hover { opacity: 1; }

.fan-footer-pbn-logo { height: 36px; width: auto; display: block; border-radius: 0; }

/* ════════════════════════════════════════════════════════════
   30. FOOTER COLUMNS & LINKS
   ════════════════════════════════════════════════════════════ */

.fan-footer-col { min-width: 140px; }

.fan-footer-col-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fan-muted);
    margin-bottom: 12px;
}

.fan-footer-links { list-style: none; margin: 0; padding: 0; }
.fan-footer-links li { margin-bottom: 8px; }

.fan-footer-links a {
    font-size: 13px;
    color: var(--fan-dim);
    text-decoration: none;
    border-bottom: none !important;
    transition: color 0.15s;
}

.fan-footer-links a:hover { color: var(--fan-teal); opacity: 1; }

/* ════════════════════════════════════════════════════════════
   31. FOOTER BASE BAR
   ════════════════════════════════════════════════════════════ */

.fan-footer-base {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
    font-size: 12px;
    color: var(--fan-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fan-footer-editorial { font-size: 12px; color: var(--fan-dim); }

/* ════════════════════════════════════════════════════════════
   32. PAGINATION
   ════════════════════════════════════════════════════════════ */

.pagination { display: flex; gap: 8px; justify-content: center; padding: 24px; }

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--fan-radius-sm);
    font-size: 13px;
    font-weight: 500;
    background: var(--fan-surface);
    color: var(--fan-mid);
    border: 1px solid var(--fan-border-mid);
    text-decoration: none;
}

.pagination a:hover { border-color: var(--fan-teal); color: var(--fan-teal); opacity: 1; }

.pagination .current {
    background: var(--fan-teal);
    color: var(--fan-navy);
    border-color: var(--fan-teal);
    font-weight: 700;
}

.post-navigation,
.nav-links { display: none !important; }

/* ════════════════════════════════════════════════════════════
   33. UTILITY CLASSES
   ════════════════════════════════════════════════════════════ */

.fan-divider { border: none; border-top: 1px solid var(--fan-border); margin: 2rem 0; }

.fan-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: var(--fan-radius-sm);
}

.fan-badge-teal { background: var(--fan-teal-dim); color: var(--fan-teal); }
.fan-badge-dim  { background: rgba(255,255,255,0.06); color: var(--fan-muted); }

.fan-ad-unit { margin: 28px 0; overflow: hidden; }

/* ════════════════════════════════════════════════════════════
   34. WORDPRESS OVERRIDES
   ════════════════════════════════════════════════════════════ */

#wpadminbar { background: var(--fan-deep) !important; }

.wp-block-image figcaption { color: var(--fan-muted); font-size: 12px; }

.wp-block-quote {
    border-left: 3px solid var(--fan-teal) !important;
    background: var(--fan-surface);
    padding: 16px 20px !important;
    margin: 2rem 0 !important;
    border-radius: 0 var(--fan-radius-md) var(--fan-radius-md) 0;
}

.wp-block-separator { border-color: var(--fan-border-mid) !important; }

.wp-block-code,
.wp-block-preformatted {
    background: var(--fan-deep) !important;
    color: var(--fan-bright) !important;
    border: 1px solid var(--fan-border-mid) !important;
    border-radius: var(--fan-radius-md) !important;
    font-family: var(--fan-mono) !important;
}

/* ════════════════════════════════════════════════════════════
   35. SCROLLBAR & SELECTION
   ════════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--fan-navy); }
::-webkit-scrollbar-thumb { background: var(--fan-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fan-teal); }

::selection { background: rgba(0, 210, 200, 0.25); color: var(--fan-white); }

/* ════════════════════════════════════════════════════════════
   36. ADMIN BAR OFFSET
   ════════════════════════════════════════════════════════════ */

.admin-bar #fan-header { top: 32px; }

@media screen and (max-width: 782px) {
    .admin-bar #fan-header { top: 46px; }
}

/* ════════════════════════════════════════════════════════════
   37. ACCESSIBILITY
   ════════════════════════════════════════════════════════════ */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

#primary[tabindex="-1"]:focus { outline: 0; }

.alignleft  { float: left;  margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em;  margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }