/* Radical AFL Professionals - 1970s Newspaper Style */

:root {
    --ink-black: #1a1a1a;
    --paper-white: #f5f1e8;
    --aged-paper: #e8e4db;
    --red-highlight: #c41e3a;
    --dark-red: #8b1a2d;
}

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

body {
    font-family: 'Courier New', 'Courier', monospace;
    background-color: #2a2a2a;
    color: var(--ink-black);
    line-height: 1.6;
    padding: 20px;
}

.newspaper-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--paper-white);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    border: 1px solid #ccc;
}

/* Masthead - RAP Logo Style */
.masthead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 4px solid var(--ink-black);
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
    gap: 30px;
}

.logo-container {
    flex: 0 0 auto;
}

/* SVG Logo */
.rap-logo-svg {
    height: auto;
    width: 250px;
    max-width: 100%;
    display: block;
}

.rap-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 5px;
}

.rap-letters {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 5em;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.75;
    color: var(--ink-black);
    display: block;
    /* Approximating the distinctive RAP logo blocks */
    text-shadow:
        3px 0 0 var(--ink-black),
        0 3px 0 var(--ink-black),
        -3px 0 0 var(--ink-black);
}

.rap-subscript {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    margin-left: 5px;
    display: block;
}

.rap-full-name {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border-top: 2px solid var(--ink-black);
    padding-top: 5px;
}

.masthead-taglines {
    flex: 1;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.3;
    padding-top: 10px;
}

.masthead-taglines p {
    margin: 2px 0;
    font-style: italic;
}

.masthead-taglines a,
.masthead-taglines a:visited {
    color: var(--ink-black);
    text-decoration: none;
    border-bottom: 1px dotted var(--ink-black);
    transition: color 0.2s, border-color 0.2s;
}

.masthead-taglines a:hover {
    color: var(--red-highlight);
    border-bottom-color: var(--red-highlight);
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--aged-paper);
    border: 2px solid var(--ink-black);
    padding: 15px 20px;
    margin-bottom: 30px;
}

.table-of-contents h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 5px;
}

.table-of-contents ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.table-of-contents li {
    flex: 1 1 200px;
}

.table-of-contents a,
.table-of-contents a:visited {
    color: var(--ink-black);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dotted var(--ink-black);
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: var(--red-highlight);
    border-bottom-color: var(--red-highlight);
}

/* Content Grid - Classic newspaper columns */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
    border-top: 2px solid var(--ink-black);
    padding-top: 20px;
}

.cover-image {
    grid-row: span 1;
}

.cover-photo {
    width: 100%;
    height: auto;
    border: 3px solid var(--ink-black);
    display: block;
}

.cover-caption {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-style: italic;
    text-align: center;
    margin-top: 8px;
    padding: 5px;
    background-color: var(--aged-paper);
    border: 1px solid var(--ink-black);
}

/* Illustration placeholder */
.illustration-placeholder {
    background-color: #d0d0d0;
    border: 2px solid var(--ink-black);
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--ink-black);
    color: var(--paper-white);
    padding: 3px 8px;
    margin-bottom: 10px;
}

.placeholder-desc {
    font-style: italic;
    font-size: 0.85em;
    color: #555;
}

/* Wide image placeholder (2 columns) */
.wide-image-placeholder {
    grid-column: span 2;
    background-color: #d0d0d0;
    border: 2px solid var(--ink-black);
    padding: 30px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Articles */
.article {
    break-inside: avoid;
}

.article-headline {
    font-family: 'Arial Black', 'Impact', sans-serif;
    font-size: 1.8em;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.02em;
    border-bottom: 3px solid var(--ink-black);
    padding-bottom: 5px;
}

.article h3.article-headline {
    font-size: 1.3em;
    border-bottom-width: 2px;
}

/* Article headline links - black with red hover */
.article-headline a,
.article-headline a:visited {
    color: var(--ink-black);
    text-decoration: none;
}

.article-headline a:hover {
    color: var(--red-highlight);
    text-decoration: underline;
}

.byline {
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-text {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.article-text p {
    margin-bottom: 12px;
    text-indent: 1.5em;
}

.article-text p:first-of-type {
    text-indent: 0;
}

/* Drop cap for first letter */
.drop-cap::first-letter {
    font-size: 3.5em;
    font-weight: bold;
    line-height: 0.8;
    float: left;
    margin: 5px 5px 0 0;
    font-family: 'Georgia', serif;
}

/* Sidebar elements */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.boxed-content {
    border: 3px solid var(--ink-black);
    padding: 15px;
    background-color: var(--aged-paper);
    text-align: center;
}

.boxed-content h3 {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.3em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.boxed-content p {
    font-weight: bold;
    font-style: italic;
}

/* Tactics List Styling */
.tactics-list {
    background-color: var(--aged-paper);
    border: 3px double var(--ink-black);
    padding: 15px;
    align-self: start;
}

.tactics-checklist p {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9em;
    line-height: 1.4;
}

.tactics-checklist p::before {
    content: "☐";
    position: absolute;
    left: 0;
    font-size: 1.2em;
    font-weight: bold;
}

.tactics-checklist p strong {
    font-weight: bold;
    display: block;
}

/* About Section */
.about-section {
    background-color: var(--aged-paper);
    border: 2px solid var(--ink-black);
    padding: 25px;
    margin-bottom: 30px;
}

.about-section h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 8px;
}

.about-section p {
    margin-bottom: 12px;
}

/* Footer */
.footer {
    text-align: center;
    border-top: 3px solid var(--ink-black);
    padding-top: 20px;
    font-size: 0.9em;
}

.footer p {
    margin-bottom: 8px;
}

.footer a {
    color: var(--dark-red);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid var(--dark-red);
}

.footer a:hover {
    color: var(--red-highlight);
    border-bottom-color: var(--red-highlight);
}

/* Responsive Design */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cover-image {
        grid-row: span 1;
    }

    .main-article {
        grid-column: 1 / -1;
    }

    .masthead {
        flex-direction: column;
        gap: 15px;
    }

    .masthead-taglines {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .newspaper-container {
        padding: 20px;
    }

    .rap-logo-svg {
        width: 180px;
    }

    .rap-letters {
        font-size: 3.5em;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cover-image {
        grid-row: span 1;
        max-width: 300px;
        margin: 0 auto;
    }

    .wide-image-placeholder {
        grid-column: span 1;
    }

    .table-of-contents ul {
        flex-direction: column;
        gap: 10px;
    }

    .masthead {
        flex-direction: column;
    }

    .masthead-taglines {
        text-align: left;
    }
}

/* ============================================
   MASSED HEADS (Credits Section)
   ============================================ */
.massed-heads {
    background-color: var(--paper-white);
    border: 8px double var(--ink-black);
    padding: 15px 25px;
    margin: 30px 0;
    position: relative;
}

/* Decorative corner pattern using pseudo-elements */
.massed-heads::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid var(--ink-black);
    pointer-events: none;
}

.massed-heads-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-align: center;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 8px;
}

.massed-heads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    margin-bottom: 12px;
}

.massed-heads-roles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.massed-heads-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding: 4px 0;
    border-bottom: 1px dashed #ccc;
}

.massed-heads-row:last-child {
    border-bottom: none;
}

.role-label {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: lowercase;
    color: var(--ink-black);
}

.role-names {
    font-family: 'Georgia', serif;
    font-size: 0.95em;
    line-height: 1.3;
}

.role-names a {
    color: var(--ink-black);
    text-decoration: none;
    border-bottom: 1px dotted var(--ink-black);
    transition: color 0.2s, border-color 0.2s;
}

.role-names a:hover {
    color: var(--red-highlight);
    border-bottom-color: var(--red-highlight);
}

.role-subtext {
    font-size: 0.85em;
    font-style: italic;
    color: #555;
}

.massed-heads-row-small .role-names {
    font-size: 0.85em;
}

.massed-heads-info {
    font-family: 'Georgia', serif;
    font-size: 0.85em;
    line-height: 1.35;
    padding-left: 20px;
    border-left: 2px solid var(--ink-black);
}

.massed-heads-reprint {
    margin-bottom: 8px;
    font-style: italic;
}

.massed-heads-memberships {
    font-size: 0.9em;
}

.massed-heads-bottom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    padding-top: 8px;
    border-top: 2px solid var(--ink-black);
    margin-top: 5px;
}

.massed-heads-tagline {
    text-align: center;
    padding-top: 10px;
    border-top: 2px solid var(--ink-black);
}

.tagline-rap {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

.tagline-main {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.tagline-copyright {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Responsive: Massed Heads */
@media (max-width: 768px) {
    .massed-heads-grid {
        grid-template-columns: 1fr;
    }

    .massed-heads-info {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--ink-black);
        padding-top: 15px;
    }

    .massed-heads-bottom {
        grid-template-columns: 1fr;
    }

    .massed-heads-row {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .massed-heads {
        padding: 15px;
    }

    .massed-heads-title {
        font-size: 1.5em;
        letter-spacing: 0.15em;
    }

    .massed-heads-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .role-label {
        font-size: 0.75em;
        border-bottom: 1px solid #ddd;
        padding-bottom: 3px;
    }

    .tagline-rap {
        font-size: 1.4em;
    }

    .tagline-main {
        font-size: 1.1em;
    }
}

/* Print styles for authentic newspaper printing */
@media print {
    body {
        background-color: white;
    }

    .newspaper-container {
        box-shadow: none;
        max-width: 100%;
    }

    .table-of-contents,
    .footer {
        break-inside: avoid;
    }
}

/* Accent elements for radical aesthetic */
.solidarity-marker {
    display: inline-block;
    color: var(--red-highlight);
    font-weight: bold;
}

.raised-fist {
    display: inline-block;
    font-size: 1.2em;
}

/* Read more links */
.read-more,
.read-more:visited {
    color: var(--dark-red);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--red-highlight);
}

.toc-meta {
    font-size: 0.85em;
    font-style: italic;
    color: #666;
    font-weight: normal;
}

/* ============================================
   LAYOUT ELEMENTS SYSTEM
   Images, Pull Quotes, Sidebars, Diagrams
   ============================================ */

/* Base layout element */
.layout-element {
    margin: 20px 0;
    box-sizing: border-box;
}

/* Clear floats after layout elements */
.layout-element-clear {
    clear: both;
}

/* ---- SIZE MODIFIERS ---- */
.layout-element.size-small {
    width: 25%;
    min-width: 150px;
}

.layout-element.size-medium {
    width: 40%;
    min-width: 200px;
}

.layout-element.size-large {
    width: 60%;
    min-width: 280px;
}

.layout-element.size-full {
    width: 100%;
    clear: both;
}

/* ---- FLOAT MODIFIERS ---- */
.layout-element.float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
}

.layout-element.float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
}

.layout-element.float-none {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

/* ---- IMAGE PLACEHOLDERS ---- */
.layout-image {
    background-color: #d0d0d0;
    border: 3px solid var(--ink-black);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    text-align: center;
}

.layout-image .element-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--ink-black);
    color: var(--paper-white);
    padding: 3px 8px;
    margin-bottom: 10px;
}

.layout-image .element-description {
    font-style: italic;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 8px;
}

.layout-image .element-caption {
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #999;
    padding-top: 8px;
    margin-top: 8px;
    width: 100%;
}

/* Image size indicators */
.layout-image .element-size {
    font-family: 'Courier New', monospace;
    font-size: 0.65em;
    color: #888;
    margin-top: 5px;
}

/* ---- PULL QUOTES ---- */
.layout-pullquote {
    background-color: var(--aged-paper);
    border-left: 5px solid var(--red-highlight);
    border-right: 5px solid var(--red-highlight);
    padding: 20px 25px;
    position: relative;
}

.layout-pullquote .pullquote-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3em;
    font-style: italic;
    font-weight: bold;
    line-height: 1.4;
    color: var(--ink-black);
    text-align: center;
}

.layout-pullquote .pullquote-text::before {
    content: '"';
    font-size: 2.5em;
    color: var(--red-highlight);
    position: absolute;
    left: 10px;
    top: 5px;
    line-height: 1;
}

.layout-pullquote .pullquote-text::after {
    content: '"';
    font-size: 2.5em;
    color: var(--red-highlight);
    position: absolute;
    right: 10px;
    bottom: -10px;
    line-height: 1;
}

.layout-pullquote .pullquote-attribution {
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    text-align: right;
    margin-top: 10px;
    color: #666;
    font-style: normal;
}

/* Smaller pullquotes when floated */
.layout-pullquote.size-small .pullquote-text,
.layout-pullquote.size-medium .pullquote-text {
    font-size: 1.1em;
}

.layout-pullquote.size-small .pullquote-text::before,
.layout-pullquote.size-small .pullquote-text::after,
.layout-pullquote.size-medium .pullquote-text::before,
.layout-pullquote.size-medium .pullquote-text::after {
    font-size: 1.8em;
}

/* ---- SIDEBARS ---- */
.layout-sidebar {
    background-color: var(--aged-paper);
    border: 3px solid var(--ink-black);
    padding: 20px;
}

.layout-sidebar .sidebar-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.layout-sidebar .sidebar-content {
    font-size: 0.95em;
    line-height: 1.5;
}

.layout-sidebar .sidebar-content p {
    margin-bottom: 10px;
    text-indent: 0;
}

/* Sidebar placeholder mode */
.layout-sidebar.placeholder-mode {
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.layout-sidebar .element-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--dark-red);
    color: var(--paper-white);
    padding: 3px 8px;
    align-self: flex-start;
    margin-bottom: 10px;
}

/* ---- DIAGRAMS ---- */
.layout-diagram {
    background-color: var(--paper-white);
    border: 3px solid var(--ink-black);
    padding: 20px;
    text-align: center;
}

.layout-diagram .element-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: #336699;
    color: var(--paper-white);
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 10px;
}

.layout-diagram .diagram-container {
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout-diagram .element-caption {
    font-size: 0.85em;
    font-style: italic;
    margin-top: 10px;
    color: #666;
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 768px) {
    .layout-element.size-small,
    .layout-element.size-medium {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

    .layout-element.size-large {
        width: 100%;
    }

    .layout-pullquote .pullquote-text {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .layout-element {
        margin: 15px 0;
    }

    .layout-image {
        padding: 15px;
        min-height: 80px;
    }

    .layout-pullquote {
        padding: 15px;
    }

    .layout-pullquote .pullquote-text::before,
    .layout-pullquote .pullquote-text::after {
        display: none;
    }
}
