@font-face {
    font-family: 'font1';
    src: url('../assets/fonts/font1-Regular.woff2') format('woff2'),
        url('../assets/fonts/font1-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'font1';
    src: url('../assets/fonts/font1-Bold.woff2') format('woff2'),
        url('../assets/fonts/font1-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f8f8;
    --primary-text: #000000;
    --secondary-text: #333;
    --border-color: #e0e0e0;
    --toolbar-height: 56px;
    --font-serif: 'font1', serif;
    --font-sans: 'font1', sans-serif;
    --font-mono: 'font1', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Screen reader only - hides content visually but keeps it accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

a {
    color: var(--primary-text);
}

.site-header {
    padding: 2rem 5%;
    text-align: center;
    flex-shrink: 0;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 0;
    height: 1px;
    background-color: black;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-logo {
    height: 60px;
    width: auto;
}

.tagline {
    margin-top: 0.5rem;
    color: var(--secondary-text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.main-nav {
    align-self: center;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 80%;
    background-color: black;
}

.main-nav a {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-family: var(--font-mono);
}

.main-nav a.active-page {
    font-weight: bold;
    position: relative;
}

.main-nav a.active-page::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background-color: var(--primary-text);
}

#hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

#hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-text);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}


.hero-section {
    padding: 6rem 5%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-title h2 {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.hero-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    text-align: left;
}

.hero-cover {
    flex-basis: 300px;
    flex-shrink: 0;
}

.hero-cover canvas {
    width: 100%;
    height: auto;
    border: 1px solid var(--primary-text);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-info {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    line-height: 1.4;
    letter-spacing: 1px;
}

.hero-info h3,
.hero-info p,
.hero-info span {
    display: block;
}

.page-section {
    padding: 4rem 5%;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-section h2 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.alt-bg {
    background-color: var(--secondary-bg);
}

#my.page-section {
    font-family: var(--font-mono);
}

.my-section-gazeta {
    margin-bottom: 3rem;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.magazine-cover {
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: var(--primary-text);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.magazine-cover .magazine-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 250 / 375;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.magazine-info h3 {
    font-family: 'font1', var(--font-mono);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.magazine-info p,
.magazine-info span {
    font-family: var(--font-mono);
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    max-width: 350px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.team-member h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
}

.team-member-info {
    text-align: center;
}

.team-member-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.team-member-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0;
    margin-top: 0;
}

.team-member-bio.active {
    max-height: 20000px;
    padding: 1rem 0;
}

.team-member-works {
    margin-top: 1.5rem;
    text-align: left;
}

.works-category-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.works-category-group:last-child {
    margin-bottom: 0;
}

.works-category-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-member-works h4,
.author-works h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--primary-text);
    border-left: 3px solid var(--primary-text);
    padding-left: 1rem;
    text-align: left;
}

.team-member-works-list,
.author-works-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member-works-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-member-work-item {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.team-member-work-item:hover {
    background-color: var(--secondary-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-member-work-title {
    font-weight: 500;
    display: block;
}

.team-member-work-magazine {
    font-size: 0.85rem;
    color: var(--secondary-text);
    white-space: nowrap;
}

.team-member-works-empty {
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-style: italic;
}

.authors-section {
    margin-top: 4rem;
}

.authors-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-entry {
    border-bottom: 1px solid var(--border-color);
}

.author-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
}

.author-name {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    font-weight: 500;
}

.toggle-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.toggle-arrow.active {
    transform: rotate(180deg);
}

.author-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 1rem;
}

.author-bio.active {
    max-height: 20000px;
    padding: 0 1rem 1.5rem 1rem;
}

.author-works {
    margin-top: 1.5rem;
}

.author-works h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: var(--secondary-text);
}

.author-works-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-work-item {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.author-work-item:hover {
    background-color: var(--secondary-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-work-title {
    font-weight: 500;
    display: block;
}

.author-work-magazine {
    font-size: 0.85rem;
    color: var(--secondary-text);
    white-space: nowrap;
}

.author-works-empty {
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-style: italic;
    margin-top: 0.5rem;
}

.contact-section {
    text-align: center;
    max-width: 800px;
}

.contact-details {
    margin-top: 2rem;
    text-align: left;
    display: inline-block;
    font-family: var(--font-mono);
}

/* Major section blocks - large spacing between them */
.contact-section-block {
    margin-bottom: 2.5rem;
}

/* Section headers */
.contact-details .section-header {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Content within sections */
.contact-details p {
    margin-bottom: 0;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    margin-bottom: 0.5rem;
}

.contact-details li:last-child {
    margin-bottom: 0;
}

/* Redakcja list - items within this section */
.redakcja-list p {
    margin-bottom: 1rem;
}

.redakcja-list p:last-child {
    margin-bottom: 0;
}

/* Final note paragraph - extra spacing */
.final-note {
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.site-footer-bottom {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 0.9rem;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.site-footer-bottom p,
.site-footer-bottom a {
    font-family: var(--font-mono);
}

.pdf-reader-container {
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 85vh;
    border-top: 1px solid var(--border-color);
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--toolbar-height);
    min-height: var(--toolbar-height);
    width: 100%;
    background-color: var(--primary-bg);
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-button {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 0;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    width: 40px;
    height: 40px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08);
}

.toolbar-button:hover {
    border-color: #bbb;
    transform: translateY(-1px);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.12);
}

.toolbar-button:active {
    border-color: #ccc;
    transform: translateY(1px);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.08);
}

.toolbar-button svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    width: 20px;
    height: 20px;
}

.page-number-input,
.zoom-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    background-color: white;
    color: var(--primary-text);
    height: 40px;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-number-input {
    width: 60px;
}

.content {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

#sidebar {
    width: auto;
    min-width: 200px;
    max-width: 350px;
    flex-shrink: 0;
    background-color: var(--primary-bg);
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 10;
    border-right: 1px solid var(--border-color);
}

#sidebar.collapsed {
    width: 0;
    min-width: 0;
    border: none;
    overflow: hidden;
    padding: 0;
}

#viewport {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
    gap: 10px;
    background-color: #e9e9e9;
    min-width: 0;
    max-height: 100%;
    overscroll-behavior: contain;
    position: relative;
}

#viewport.is-scrolling {
    overflow: auto;
    justify-content: safe center;
    align-items: safe center;
}

.page-container {
    position: relative;
    margin: 0;
    flex: 0 0 auto;
    max-width: 100%;
    max-height: 100%;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#viewport.is-scrolling .page-container {
    max-height: none;
}

.page-container canvas {
    display: block;
    /* All sizing (width, height, aspect ratio) will now be
       handled exclusively by the inline styles from JavaScript,
       which prevents stretching and rendering errors. */
}

/* ADD THIS */
.textLayer {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    pointer-events: none;
    /* Let clicks/drags go through to the canvas */
    transform-origin: 0 0;
}

.textLayer>span {
    color: transparent;
    /* Make text invisible but selectable */
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
    line-height: 1;
    user-select: none;
}

.toc-sidebar {
    width: 0;
    min-width: 0;
    background-color: var(--primary-bg);
    overflow: hidden;
    transition: min-width 0.3s ease, width 0.3s ease, padding 0.3s ease;
    z-index: 10;
    border-right: none;
    flex-shrink: 0;
    padding: 0;
}

.toc-sidebar.visible {
    width: auto;
    min-width: 250px;
    max-width: 400px;
    border-right: 1px solid var(--border-color);
    padding: 1rem;
    overflow-y: auto;
}

.toc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-sidebar .toc-section-title {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.toc-sidebar .toc-section-title:first-child {
    margin-top: 0;
}

.toc-sidebar .toc-item {
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.toc-sidebar .toc-item:hover {
    background-color: var(--secondary-bg);
}

.toc-sidebar .toc-item-details {
    flex-grow: 1;
}

.toc-sidebar .toc-item-title {
    font-family: var(--font-mono);
    font-weight: 500;
    display: block;
}

.toc-sidebar .toc-item-author {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-text);
    display: block;
}

.toc-sidebar .toc-item-page {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
}

#thumbnail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

#thumbnail-container canvas,
.dual-thumbnail-container {
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

#thumbnail-container .active {
    border-color: #000;
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    /* Changed from fixed to absolute for section-specific loading */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    /* Lighter background for better integration */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    /* Lower z-index since it's inside the section */
}

/* Specific styling for the full-screen modal (search) to keep it fixed */
#search-modal.overlay {
    position: fixed;
    /* Keep search modal fixed */
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

.hero-loader {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
}

.hero-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid #000;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 1s linear infinite;
    /* Safari */
    animation: spin 1s linear infinite;
}

.loader-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 200px;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #333;
    transition: width 0.2s;
}

.search-content {
    background-color: var(--primary-bg);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    width: auto;
    min-width: 350px;
    margin-top: var(--toolbar-height);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
    pointer-events: auto;
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#search-input {
    flex-grow: 1;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 40px;
    font-size: 1rem;
    background-color: var(--secondary-bg);
}

.archive-controls {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#archive-search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
}

.archive-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-filter-btn.active {
    background-color: var(--primary-text);
    color: var(--primary-bg);
    border-color: var(--primary-text);
}

.archive-category-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.archive-results-list {
    display: grid;
    gap: 1rem;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.2s;
}

.archive-item:hover {
    background-color: var(--secondary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.archive-item-title {
    font-family: 'font1', serif;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.archive-item-author {
    font-size: 0.9rem;
    color: var(--secondary-text);
    display: block;
}

.archive-item-magazine-info {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 1rem;
}

/* --- SUBMISSION CALL SECTION --- */
.submission-call-section {
    padding: 4rem 5%;
}


.submission-call-content {
    text-align: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.submission-call-info {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

.submission-call-title {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.submission-call-theme {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.submission-call-details {
    font-family: var(--font-mono);
    /* CHANGED THIS LINE */
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.submission-call-button {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.submission-call-button:hover {
    background: #fff;
    color: #000;
}

.submission-call-image {
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.submission-call-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-color);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- PREMIERE ANNOUNCEMENT SECTION --- */
.premiere-announcement {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 4rem 5%;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premiere-content {
    max-width: 800px;
    margin: 0 auto;
}

.premiere-title {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.premiere-subtitle {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.premiere-date {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    color: #b0b0b0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    color: white;
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: #b0b0b0;
}

.countdown-separator {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: bold;
    color: #666;
}

.premiere-message {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-top: 2rem;
}

/* --- SOCIAL MEDIA SECTION (Glass Icons) --- */
.social-media-section {
    text-align: center;
    padding: 2rem 5%;
    /* Restored padding */
}

.social-media-section h2 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-media-section p {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    /* Reduced bottom margin */
}

.icon-btns {
    display: grid;
    grid-gap: 5em;
    grid-template-columns: repeat(2, 1fr);
    margin: auto;
    padding: 1.5em 0;
    /* Reduced vertical padding */
    overflow: visible;
    width: fit-content;
}

.icon-btn {
    background-color: transparent;
    outline: none;
    position: relative;
    width: 4.5em;
    height: 4.5em;
    perspective: 24em;
    transform-style: preserve-3d;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    color: var(--primary-text);
}

.icon-btn__back,
.icon-btn__front,
.icon-btn__label {
    transition:
        opacity 0.3s cubic-bezier(0.83, 0, 0.17, 1),
        transform 0.3s cubic-bezier(0.83, 0, 0.17, 1);
}

.icon-btn__back,
.icon-btn__front {
    border-radius: 1.25em;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.icon-btn__back {
    box-shadow: 0.5em -0.5em 0.75em hsla(223, 10%, 10%, 0.15);
    display: block;
    transform: rotate(15deg);
    transform-origin: 100% 100%;
}

.icon-btn__front {
    background-color: hsla(0, 0%, 100%, 0.15);
    box-shadow: 0 0 0 0.1em hsla(0, 0%, 100%, 0.3) inset;
    backdrop-filter: blur(0.75em);
    -webkit-backdrop-filter: blur(0.75em);
    display: flex;
    transform-origin: 80% 50%;
}

.icon-btn__icon {
    margin: auto;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-btn__icon svg {
    width: 100%;
    height: 100%;
}

.icon-btn__label {
    font-family: var(--font-mono);
    font-size: 1em;
    white-space: nowrap;
    text-align: center;
    line-height: 2;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    transform: translateY(0);
}

.icon-btn:focus-visible .icon-btn__back,
.icon-btn:hover .icon-btn__back {
    transform: rotate(25deg) translate3d(-0.5em, -0.5em, 0.5em);
}

.icon-btn:focus-visible .icon-btn__front,
.icon-btn:hover .icon-btn__front {
    transform: translateZ(2em);
}

.icon-btn:focus-visible .icon-btn__label,
.icon-btn:hover .icon-btn__label {
    opacity: 1;
    transform: translateY(20%);
}

.icon-btn--facebook .icon-btn__back {
    background: linear-gradient(hsl(0, 0%, 50%), hsl(0, 0%, 30%));
}

.icon-btn--instagram .icon-btn__back {
    background: linear-gradient(hsl(0, 0%, 50%), hsl(0, 0%, 30%));
}




/* --- DESKTOP-FIRST BUTTON VISIBILITY (FIX) --- */
.desktop-only-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-options-wrapper {
    display: none;
}


@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 8%;
    }

    .site-logo {
        height: 45px;
        max-width: 100%;
    }

    .logo {
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .main-nav {
        width: auto;
    }

    #hamburger-menu {
        display: block;
        position: static;
        z-index: 1002;
    }

    #hamburger-menu.active {
        position: fixed;
        top: 2rem;
        right: 8%;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        list-style: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        min-height: 100dvh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        padding: 6rem 8% 2rem;
    }

    .main-nav ul.active {
        transform: translateX(0);
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        position: static;
    }

    .main-nav ul li:not(:first-child)::before {
        display: none;
    }

    .main-nav li a {
        display: block;
        font-size: 1.8rem;
        font-weight: 500;
        padding: 1rem;
        text-decoration: none;
        color: var(--primary-text);
        transition: background-color 0.2s ease-in-out;
        background-color: transparent;
        border-radius: 0;
    }

    .main-nav li a:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

    .main-nav li a.active-page {
        font-weight: 700;
    }

    #hamburger-menu.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    #hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    #hamburger-menu.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.nav-open {
        overflow: hidden;
    }


    .hero-section {
        padding: 2rem 5%;
    }

    .hero-title h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .hero-details {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-cover {
        flex-basis: auto;
        max-width: 250px;
        width: 100%;
    }

    .hero-info {
        font-size: 1.5rem;
        line-height: 1.3;
        text-align: center;
    }

    .toolbar {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--toolbar-height);
        padding: 8px;
        row-gap: 8px;
        justify-content: space-between;
    }

    .toolbar-center {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: auto;
        z-index: 1001;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    #sidebar.collapsed {
        transform: translateX(-100%);
        width: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* --- MOBILE BUTTON VISIBILITY (FIX) --- */
    .desktop-only-buttons {
        display: none;
    }

    .mobile-options-wrapper {
        display: block;
        position: relative;
    }

    #more-options-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background-color: var(--primary-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 2001;
        display: none;
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    #more-options-menu.active {
        display: flex;
    }

    #more-options-menu .desktop-only-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    /* --- MOBILE ARCHIVE ITEMS FIX --- */
    .archive-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .archive-item-magazine-info {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .archive-category-title {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    /* --- MOBILE VIEWPORT FIX --- */
    body {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        /* Use JavaScript-calculated viewport height for Chrome */
        min-height: 100dvh;
        min-height: -webkit-fill-available;
    }

    html {
        height: -webkit-fill-available;
    }

    /* --- MOBILE SUBMISSION CALL --- */
    .submission-call-section {
        padding: 3rem 8%;
    }

    .submission-call-content {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .submission-call-info {
        order: 2;
        /* Text below image on mobile */
    }

    .submission-call-image {
        order: 1;
        /* Image on top on mobile */
        width: 100%;
        max-width: 320px;
    }

    .submission-call-title {
        font-size: 1.5rem;
    }

    .submission-call-theme {
        font-size: 2rem;
    }

    /* --- MOBILE PREMIERE ANNOUNCEMENT --- */
    .premiere-announcement {
        padding: 3rem 8%;
        min-height: 50vh;
    }

    .premiere-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .premiere-subtitle {
        font-size: 1.3rem;
    }

    .premiere-date {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .countdown-timer {
        gap: 1rem;
    }

    .countdown-value {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .premiere-message {
        font-size: 1rem;
    }

    /* --- SOCIAL MEDIA SECTION (Glass Icons) --- */
    .social-media-section h2 {
        font-size: 2rem;
    }

    .icon-btns {
        grid-gap: 3em;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .premiere-announcement {
        padding: 3rem 1rem;
    }

    .premiere-title {
        font-size: 1.5rem;
        padding: 0 5px;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {
    .premiere-announcement {
        padding: 3rem 0.5rem;
    }

    .countdown-timer {
        gap: 0.2rem;
    }

    .countdown-value {
        font-size: 1.4rem;
    }

    .countdown-separator {
        font-size: 1.1rem;
    }
}

/* --- EDITORIAL & TOC SECTIONS (SEO/AdSense Content) --- */
.editorial-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.editorial-intro p {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.editorial-intro p:last-child {
    margin-bottom: 0;
}

#spis-tresci h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.toc-intro {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.toc-section {
    margin-bottom: 2rem;
}

.toc-section h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.toc-list li a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--primary-text);
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toc-list li a:hover {
    background-color: var(--secondary-bg);
}

.toc-title {
    font-family: var(--font-mono);
    font-weight: 500;
    flex: 1;
}

.toc-author {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-left: 1rem;
    white-space: nowrap;
}

.toc-cta {
    text-align: center;
    margin-top: 2.5rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.toc-cta a {
    color: var(--primary-text);
    text-decoration: underline;
    font-weight: 500;
}

.toc-cta a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .editorial-intro p {
        font-size: 0.95rem;
    }

    #spis-tresci h2 {
        font-size: 1.5rem;
    }

    .toc-section h3 {
        font-size: 1.2rem;
    }

    .toc-list li a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .toc-author {
        margin-left: 0;
    }
}

/* --- ARCHIVE PAGE STYLES (SEO/AdSense Content) --- */
#archive-section h1 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.archive-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.archive-intro p {
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.archive-intro p:last-child {
    margin-bottom: 0;
}

.archive-item-static {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.archive-item-static .archive-item-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.archive-item-static .archive-item-title,
.archive-item-static .toc-title {
    font-family: 'font1', serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.archive-item-static .archive-item-author,
.archive-item-static .toc-author {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* For clickable items in reader ToC */
.archive-item-static.toc-clickable {
    cursor: pointer;
    transition: background-color 0.2s;
}

.archive-item-static.toc-clickable:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.archive-note {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    #archive-section h1 {
        font-size: 1.8rem;
    }

    .archive-intro p {
        font-size: 0.9rem;
    }
}

/* --- TEKST READER SECTION (Dynamic PDF Content) --- */
#tekst-reader {
    border-top: 1px solid var(--border-color);
}

.tekst-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tekst-header h2 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tekst-author {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--secondary-text);
    font-style: italic;
}

.tekst-content {
    max-width: 750px;
    margin: 0 auto;
}

.tekst-dynamic-content {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: justify;
}

.tekst-dynamic-content p {
    margin-bottom: 1.5rem;
    text-indent: 2rem;
}

.tekst-dynamic-content p:first-child {
    text-indent: 0;
}

.tekst-loading {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--secondary-text);
    font-style: italic;
    padding: 2rem 0;
}

.tekst-note,
.tekst-error {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--secondary-text);
    font-size: 1rem;
    padding: 2rem 0;
}

.tekst-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.tekst-nav-btn {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.tekst-nav-btn:hover {
    background: var(--primary-text);
    color: var(--primary-bg);
    border-color: var(--primary-text);
}

#tekst-page-info {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-text);
}

@media (max-width: 768px) {
    .tekst-header h2 {
        font-size: 1.4rem;
    }

    .tekst-author {
        font-size: 1rem;
    }

    .tekst-dynamic-content {
        font-size: 1.05rem;
        text-align: left;
    }

    .tekst-dynamic-content p {
        text-indent: 1.5rem;
    }

    .tekst-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .tekst-nav-btn {
        width: 100%;
    }
}

/* =====================================================
   EDITORIAL / OD REDAKCJI SECTION STYLES
   ===================================================== */
#od-redakcji .section-content {
    max-width: 800px;
    margin: 0 auto;
}

.editorial-content {
    text-align: center;
    font-family: var(--font-mono);
}

.editorial-content h2 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: none;
}

.editorial-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.editorial-content p:last-child {
    margin-bottom: 0;
}

.editorial-content p.signature {
    margin-top: 2rem;
    font-size: 1rem;
}

.editorial-content .remaster-notice {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.editorial-content .remaster-date {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

/* =====================================================
   COOKIE CONSENT POPUP STYLES
   ===================================================== */
.cookie-consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-content h3 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: left;
}

.cookie-content p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.5;
    flex: 1;
    min-width: 300px;
    margin: 0;
    text-align: left;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background-color: var(--primary-text);
    color: var(--primary-bg);
    border: 1px solid var(--primary-text);
}

.cookie-btn.accept:hover {
    background-color: transparent;
    color: var(--primary-text);
}

.cookie-btn.decline {
    background-color: transparent;
    color: var(--primary-text);
    border: 1px solid var(--border-color);
}

.cookie-btn.decline:hover {
    border-color: var(--primary-text);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-consent-popup {
        padding: 1.5rem 8%;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* =====================================================
   ADVERTISEMENT STYLES
   ===================================================== */
.ad-container {
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0; /* Reset margins when hidden */
}

.ad-container.is-active {
    display: flex;
    flex-direction: column; /* Stack label and ad vertically */
    align-items: center;
    margin: 2rem 0;
    width: 100%;
    overflow: hidden; /* Hide overflow if scaling fails */
}

.ad-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    align-self: center;
}

/* Mobile responsive fix for 728px banners */
@media (max-width: 768px) {
    #ad-728-top iframe, 
    #ad-728-bottom iframe {
        transform-origin: center top;
        transform: scale(0.45); /* Shrink to fit mobile (~320px) */
        margin-bottom: -45px; /* Compensate for empty space after scaling */
    }
    
    /* Slightly less scaling for tablets */
    @media (min-width: 480px) and (max-width: 768px) {
        #ad-728-top iframe, 
        #ad-728-bottom iframe {
            transform: scale(0.7);
            margin-bottom: -25px;
        }
    }
}

.ad-container iframe {
    max-width: 100%;
}
/* Event Invitation Section */
.event-invitation {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 3rem 5%;
}

.event-invitation-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

.event-poster {
    width: 260px;
}

.event-poster-img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #1a1a1a;
    box-shadow: 6px 6px 0 #1a1a1a;
}

.event-text {
    font-family: var(--font-serif);
}

.event-heading {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.75rem;
}

.event-text p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.event-details {
    background: #1a1a1a;
    color: #f5f0e8 !important;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0 !important;
    line-height: 1.8 !important;
}

.event-free {
    font-style: italic;
    color: #444 !important;
}

.event-fb-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.65rem 1.4rem;
    background: #1a1a1a;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}

.event-fb-btn:hover {
    background: #444;
}

@media (max-width: 768px) {
    .event-invitation-inner {
        grid-template-columns: 1fr;
    }
    .event-poster {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .event-heading {
        font-size: 1.2rem;
    }
}

/* --- ISSUE SELECTOR SECTION --- */
.issue-selector-section {
    padding: 3rem 5%;
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
}

.selector-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.selector-content h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.selector-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.selector-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 300px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.selector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-text);
}

.selector-card.active {
    border: 2px solid var(--primary-text);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.card-cover-wrapper {
    width: 200px;
    height: 285px;
    background: #eaeaea;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.selector-cover-canvas,
.selector-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-info .theme {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 0.75rem;
}

.card-info .type {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    background: #eaeaea;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.selector-card.active .card-info .type {
    background: var(--primary-text);
    color: var(--primary-bg);
}
