/* Mafia Scene News Hub (1932) */

.ms-news-outer {
    padding: 40px 16px;
}

/* Paper base */
.ms-news-hub.ms-paper {
    position: relative;
    max-width: 1250px;
    margin: 0 auto;
    padding: 42px 38px;
    background: #f5f1e6;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    border: 1px solid rgba(0,0,0,0.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* Subtle paper grain + print noise */
.ms-news-hub.ms-paper::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.02),
            rgba(0,0,0,0.02) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0,0,0,0.015),
            rgba(0,0,0,0.015) 1px,
            transparent 1px,
            transparent 6px
        );
    mix-blend-mode: multiply;
    opacity: 0.6;
}

/* Distressed edges (torn/rough) */
.ms-news-hub.ms-paper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(20px 18px at 0% 0%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 65%),
        radial-gradient(26px 20px at 100% 0%, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0) 65%),
        radial-gradient(24px 20px at 0% 100%, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0) 65%),
        radial-gradient(22px 18px at 100% 100%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 65%),

        radial-gradient(10px 10px at 5% 2%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(12px 12px at 22% 1.5%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(10px 10px at 48% 1.2%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(12px 12px at 76% 1.8%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(10px 10px at 94% 2.2%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 70%),

        radial-gradient(12px 12px at 2% 18%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(10px 10px at 1.5% 46%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(12px 12px at 2.2% 74%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%),

        radial-gradient(12px 12px at 98% 24%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(10px 10px at 98.5% 52%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(12px 12px at 97.8% 78%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%),

        radial-gradient(10px 10px at 6% 98%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(12px 12px at 30% 98.5%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(10px 10px at 58% 98%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 70%),
        radial-gradient(12px 12px at 84% 98.6%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%);

    opacity: 0.55;
}

/* Masthead */
.ms-news-header {
    text-align: center;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.ms-masthead-topline {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.8;
}

.ms-news-header h1 {
    font-size: 54px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.05;
}

.ms-masthead-subline {
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.ms-dot {
    padding: 0 8px;
}

.ms-news-header::after {
    content: "";
    display: block;
    margin: 18px auto 0;
    width: 100%;
    height: 6px;
    border-top: 2px solid #000;
    border-bottom: 1px solid #000;
    opacity: 0.9;
}

/* Breaking */
.ms-breaking {
    position: relative;
    z-index: 1;
    margin: 22px 0 34px;
    padding: 24px 26px;
    background: rgba(255,255,255,0.55);
    border: 3px double #000;
}

.ms-breaking-kicker {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.ms-breaking-headline {
    font-size: 30px;
    margin: 0 0 10px;
    line-height: 1.15;
}

.ms-breaking-headline a {
    color: inherit;
    text-decoration: none;
}

.ms-breaking-headline a:hover {
    text-decoration: underline;
}

.ms-breaking-excerpt {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 10px;
}

.ms-breaking-meta {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Grid layout */
.ms-front-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 34px;
    align-items: start;
}

.ms-front-left {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.ms-front-right {
    position: sticky;
    top: 24px;
}

/* Category sections */
.ms-category {
    break-inside: avoid;
}

.ms-section-title {
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 800;
    padding-bottom: 8px;
    border-bottom: 1px solid #000;
    margin-bottom: 18px;
}

.ms-story {
    margin-bottom: 14px;
}

.ms-story-title {
    font-size: 18px;
    margin: 0 0 6px;
    line-height: 1.2;
}

.ms-story.is-lead .ms-story-title {
    font-size: 20px;
}

.ms-story-title a {
    color: inherit;
    text-decoration: none;
}

.ms-story-title a:hover {
    text-decoration: underline;
}

.ms-story-meta {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.78;
    margin-bottom: 6px;
}

.ms-story-excerpt {
    font-size: 15px;
    line-height: 1.42;
}

.ms-section-more a {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px dotted #000;
    color: inherit;
    opacity: 0.9;
}

.ms-section-more a:hover {
    opacity: 1;
}

/* Sidebar boxes */
.ms-sidebox {
    background: rgba(255,255,255,0.50);
    border: 2px solid #000;
    padding: 14px;
    margin-bottom: 14px;
}

.ms-sidebox-title {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 2px solid #000;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

/* Headlines list */
.ms-headlines {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ms-headlines li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dotted rgba(0,0,0,0.45);
}

.ms-headlines li:last-child {
    border-bottom: 0;
}

.ms-headlines a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.25;
}

.ms-headlines a:hover {
    text-decoration: underline;
}

.ms-headlines-time {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.75;
    white-space: nowrap;
}

/* The Wire (dispatch style) */
.ms-wire-forum {
    margin-bottom: 14px;
}

.ms-wire-forum:last-child {
    margin-bottom: 0;
}

.ms-wire-forum-title {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 10px 0 8px;
    opacity: 0.88;
}

.ms-wire-topics {
    list-style: none;
    padding: 0;
    margin: 0;

    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.3;
}

.ms-wire-topics li {
    padding: 8px 0;
    border-bottom: 1px dotted rgba(0,0,0,0.40);
}

.ms-wire-topics li:last-child {
    border-bottom: 0;
}

.ms-wire-topics a {
    color: inherit;
    text-decoration: none;
    line-height: 1.2;
}

.ms-wire-topics a:hover {
    text-decoration: underline;
}

.ms-wire-meta {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 3px;
    white-space: nowrap;
}

/* Crime Blotter */
.ms-blotter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ms-blotter li {
    padding: 8px 0;
    border-bottom: 1px dotted rgba(0,0,0,0.45);
    font-size: 14px;
    line-height: 1.3;
}

.ms-blotter li:last-child {
    border-bottom: 0;
}

.ms-blotter-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ms-muted {
    opacity: 0.75;
    font-size: 14px;
    margin: 0;
}

/* Footer */
.ms-news-footer {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    text-align: center;
}

.ms-footer-rule {
    width: 100%;
    height: 6px;
    border-top: 2px solid #000;
    border-bottom: 1px solid #000;
    margin-bottom: 14px;
    opacity: 0.9;
}

.ms-footer-text {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Safety: if any prefix markup slips in, keep it tiny and non-disruptive */
.bbpmm-prefix,
.bbpm-prefix,
.topic-prefix,
.bbp-topic-prefix {
    font-size: 10px !important;
    letter-spacing: 1px !important;
    padding: 1px 4px !important;
    border: 1px solid rgba(0,0,0,0.4) !important;
    background: transparent !important;
    color: #111 !important;
    text-transform: uppercase !important;
    opacity: 0.75 !important;
    display: inline-block !important;
    margin-right: 6px !important;
    line-height: 1.1 !important;
}


/* Responsive */
@media (max-width: 1100px) {
    .ms-front-grid {
        grid-template-columns: 1fr;
    }
    .ms-front-right {
        position: relative;
        top: 0;
    }
    .ms-front-left {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ms-news-hub.ms-paper {
        padding: 28px 18px;
    }
    .ms-news-header h1 {
        font-size: 38px;
    }
    .ms-front-left {
        grid-template-columns: 1fr;
    }
    .ms-breaking-headline {
        font-size: 24px;
    }
}
