body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #dfdff8;
    background: #14193a;
    margin: 0;
    max-width: 800px;
    margin: 0 auto; /* Centers content */
    padding: 50px 20px;
}

header {
    text-align: left;
    margin-bottom: 40px;
}

h1 {
    font-size: 2em;
    font-family: sans-serif;
    margin: 0;
    color: #F7931A;
}

h2 {
    font-size: 1.5em;
    font-family: sans-serif;
    margin: 10px 0;
}

.author {
    font-style: italic;
    margin: 10px 0;
}

section {
    margin-bottom: 60px;
}

h3, h4, h5 {
    font-family: sans-serif;
}

blockquote {
    font-style: italic;
    color: #666;
}

p.center {
    text-align: center;
}

p.citation {
    font-size: 0.9em;
    color: #666;
    text-align: right;
    margin-top: -10px;
}

p.footnote {
    font-size: 0.8em;
    color: #666;
    margin-top: 20px;
}

.quote {
    border-left: 4px solid #ccc;
    padding-left: 20px;
    color: #F7931A; /* Orange for IRC quote, like in your screenshot */
}

.quote_mute {
    color: #b4b4b4;
    text-align: center;

}

.word-count {
    font-size: 0.9em;
    color: #666;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
    border-bottom: 1px dotted #ccc;
}

footer {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin-top: 80px;
}

/* Global link styling */
a {
    color: #F7931A;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:visited {
    color: #D97706;
}

a:hover {
    color: #B85C00;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }
    h1 {
        font-size: 1.5em;
        color: #F7931A;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 25, 58, 0.95); /* Semi-transparent dark */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(223, 223, 248, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px; /* Wider for better desktop spread */
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tighten logo + text gap */
.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #F7931A;
    font-family: sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;           /* Controls the space between icon and text – adjust to taste (0.3rem for tighter) */
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;        /* Prevents icon from shrinking */
    display: block;
}

.nav-logo span {
    line-height: 1;        /* Aligns text vertically with icon */
}

/* Hover effect on whole logo */
.nav-logo:hover {
    color: #FFB74D;
}

/* Optional: If icon is SVG, ensure color inheritance */
.nav-logo-icon path {
    fill: currentColor;    /* Makes icon match text color on hover */
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    position: relative;
    list-style: none !important;
}

.nav-item a {
    color: #dfdff8;
    text-decoration: none !important;
    font-family: sans-serif;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #F7931A;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #14193a;
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 8px;
    min-width: 220px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
}

.dropdown-menu li a:hover {
    background: rgba(247, 147, 26, 0.15);
}

/* Prevent right-side cutoff: flip last two dropdowns to open leftward */
.nav-menu > .nav-item:nth-last-child(-n+3) .dropdown-menu {
    left: auto;
    right: 0;                /* Align to right edge of parent */
}

/* Optional: Add a bit more breathing room or adjust width if menus are long */
.dropdown-menu {
    min-width: 220px;        /* Ensure enough width for text */
    white-space: nowrap;     /* Prevent wrapping inside menu items */
}

/* Mobile stack */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1.5rem;
    }
}

/* Content padding for fixed nav */
body {
    padding-top: 80px; /* Adjust to your nav height */
}

/* Bitcoin is... Teaser Grid – Always 2x2 (2 columns), full width, responsive stack only on tiny mobile */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 equal columns */
    grid-auto-rows: minmax(300px, auto);   /* Ensures rows are at least tall enough */
    gap: 2.5rem;                           /* Generous space between cards */
    margin: 4rem auto;
    padding: 0 5%;                         /* Full-width feel with edge breathing room */
    max-width: none;                       /* Remove any max-width limit – go full container width */
    width: 100%;
    align-items: stretch;
}

.teaser-column {
    background: rgba(20, 25, 58, 0.85);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;        /* Pushes content evenly, link at bottom */
    min-height: 380px;                     /* Forces equal card height across 2x2 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Make entire card clickable without visual changes */
.card-link {
    display: block;                    /* Fills the parent div */
    height: 100%;                      /* Covers full card height */
    text-decoration: none;             /* No underline ever */
    color: inherit;                    /* Inherits text color from parent – no blue */
}

.card-link:visited,
.card-link:active,
.card-link:focus {
    color: inherit;                    /* No purple/blue after visit or focus */
    outline: none;                     /* Optional: Remove default focus ring if you prefer custom */
}

/* Invisible overlay for full click area (preserves hover effects on parent) */
.card-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;                        /* Above content but transparent */
}

/* Ensure parent card allows positioning for ::after */
.teaser-column {
    position: relative;                /* Required for absolute ::after */
    cursor: pointer;                   /* Hand cursor on whole card */
}

/* Your existing hover stays on the card (not affected by link) */
.teaser-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(247, 147, 26, 0.25);
}

/* Optional: Slight hover tint on card background if desired (keeps text color unchanged) */
.teaser-column:hover {
    background: rgba(20, 25, 58, 0.95); /* Darker on hover for feedback */
}

.teaser-column h3 {
    font-size: 2.4rem;
    color: #F7931A;
    margin-bottom: 1.2rem;
    text-align: center;
}

.teaser-column p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;                          /* Text fills space evenly */
}

/* Only stack to single column on very small screens (e.g., phones in portrait) */
@media (max-width: 600px) {
    .teaser-grid {
        grid-template-columns: 1fr;        /* 1 column only below ~600px */
        gap: 2rem;
        padding: 0 1rem;
    }
    .teaser-column {
        min-height: auto;                  /* Content-driven height on mobile */
        padding: 2rem 1.5rem;
    }
}

/* Optional: Tighter gap on midsize screens if needed */
@media (max-width: 900px) {
    .teaser-grid {
        gap: 2rem;
        padding: 0 3%;
    }
}

details {
    cursor: pointer;
}

summary {
    list-style: none; /* Remove default arrow */
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

.expanded-content {
    padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(247, 147, 26, 0.15);
}

details[open] summary h3 {
    color: #FFB74D; /* Lighter orange when open */
}

.back-to-top {
    display: block;
    text-align: right;
    color: #F7931A;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.header-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}