/* =========================================
   IMYEON / FORUM NEWSPAPER
   Theme colors
   ========================================= */

.newspaper-wrap,
.imyeon-stories {
    --imyeon-bg: #101116;
    --imyeon-panel: #181920;
    --imyeon-red: #F04465;
    --imyeon-cyan: #25DDF5;
    --imyeon-white: #F4F0EC;
    --imyeon-muted: #C6C6CE;
    --imyeon-border: rgba(255, 255, 255, .09);
    --imyeon-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

/* =========================================
   NEWSPAPER OVERVIEW
   ========================================= */

.newspaper-wrap {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.newspaper-wrap *,
.newspaper-wrap *::before,
.newspaper-wrap *::after {
    box-sizing: border-box;
}

.newspaper-heading {
    padding: 15px;
    font-size: 32px;
    font-weight: bold;
	text-align: center;
	font-family: font-family: Arial, Helvetica, sans-serif;
}


/* =========================================
   IMYEON / THE ONES BEHIND THE INK
   CSS ONLY - 500PX EDITION
   ========================================= */

.imy-directory {
    --imy-bg: #101116;
    --imy-panel: #181920;
    --imy-red: #F04465;
    --imy-cyan: #25DDF5;
    --imy-white: #F4F0EC;
    --imy-muted: #9999A5;

    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    background: var(--imy-bg);
    color: var(--imy-white);
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* RADIO CONTROLS */

.imy-directory .imy-radio {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* HEADER */

.imy-header {
    padding: 12px 5px 17px;
}

.imy-topline {
    display: flex;
    justify-content: space-between;
    color: var(--imy-cyan);
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.imy-heading {
    font-size: clamp(25px, 7vw, 37px);
    line-height: .92;
    font-weight: 900;
    letter-spacing: -1.8px;
    text-transform: uppercase;
    margin: 0;
}

.imy-heading span {
    color: var(--imy-red);
}

.imy-subheading {
    margin-top: 12px;
    color: var(--imy-muted);
    font-size: 9px;
    line-height: 1.7;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.imy-line {
    height: 1px;
    background: linear-gradient(90deg, var(--imy-red), var(--imy-cyan), transparent);
    margin: 13px 0;
}

/* PORTRAIT GRID */

.imy-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
	margin-left: 3px;
}

.imy-grid > .imy-card {
    display: block !important;
    position: relative !important;
    flex: 0 0 calc(33.333% - 8px) !important;
    width: calc(33.333% - 8px) !important;
    max-width: calc(33.333% - 8px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    cursor: pointer;
}

.imy-card-image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #25252D;
}

.imy-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(65%) contrast(1.08);
    transition: transform .5s ease, filter .5s ease;
}

.imy-card:hover .imy-card-image img {
    filter: grayscale(10%) contrast(1.05);
    transform: scale(1.045);
}

.imy-card-image:after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(10,10,14,.95));
    pointer-events: none;
}

.imy-card-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

.imy-card-number {
    display: block;
    color: var(--imy-cyan);
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.imy-card-name {
    display: block;
    color: var(--imy-white);
    font-size: clamp(10px, 2.5vw, 13px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.imy-card-role {
    display: block;
    margin-top: 4px;
    color: var(--imy-red);
    font-size: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* ACTIVE PORTRAIT INDICATOR */

#imy-lilith:checked ~ .imy-grid label[for="imy-lilith"],
#imy-watcher:checked ~ .imy-grid label[for="imy-watcher"],
#imy-collector:checked ~ .imy-grid label[for="imy-collector"],
#imy-oracle:checked ~ .imy-grid label[for="imy-oracle"],
#imy-liar:checked ~ .imy-grid label[for="imy-liar"],
#imy-unknown:checked ~ .imy-grid label[for="imy-unknown"] {
    outline-color: var(--imy-red);
}

#imy-lilith:checked ~ .imy-grid label[for="imy-lilith"] .imy-card-number,
#imy-watcher:checked ~ .imy-grid label[for="imy-watcher"] .imy-card-number,
#imy-collector:checked ~ .imy-grid label[for="imy-collector"] .imy-card-number,
#imy-oracle:checked ~ .imy-grid label[for="imy-oracle"] .imy-card-number,
#imy-liar:checked ~ .imy-grid label[for="imy-liar"] .imy-card-number,
#imy-unknown:checked ~ .imy-grid label[for="imy-unknown"] .imy-card-number {
    color: var(--imy-red);
}

/* PROFILE AREA */

.imy-profiles {
    width: 100%;
    margin-top: 17px;
}

.imy-profile {
    display: none;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    background: var(--imy-panel);
    border-top: 2px solid var(--imy-red);
    animation: imy-reveal .3s ease;
}

@keyframes imy-reveal {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SHOW SELECTED PROFILE */

#imy-lilith:checked ~ .imy-profiles #profile-lilith,
#imy-watcher:checked ~ .imy-profiles #profile-watcher,
#imy-collector:checked ~ .imy-profiles #profile-collector,
#imy-oracle:checked ~ .imy-profiles #profile-oracle,
#imy-liar:checked ~ .imy-profiles #profile-liar,
#imy-unknown:checked ~ .imy-profiles #profile-unknown {
    display: block;
}

/* PROFILE HEADER */

.imy-profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--imy-cyan);
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.imy-confidential {
    color: var(--imy-red);
    font-weight: bold;
}

.imy-profile-title {
    color: var(--imy-white);
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.imy-profile-role {
    margin-top: 6px;
    color: var(--imy-red);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.imy-profile-intro {
    margin: 12px 0;
    color: #C6C6CE;
    font-size: 11px;
    line-height: 1.8;
    font-style: italic;
}

/* PROFILE IMAGE + FACTS */

.imy-profile-main {
    display: grid !important;
    grid-template-columns: 37% minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: stretch !important;
    width: 100% !important;
}

.imy-profile-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #25252D;
    filter: grayscale(30%);
}

.imy-profile-facts {
    display: grid;
    grid-template-columns: 1fr;
    align-content: stretch;
    gap: 8px;
    min-width: 0;
}

.imy-fact {
    border-bottom: 1px solid #303039;
    padding-bottom: 6px;
}

.imy-fact-label {
    display: block;
    color: var(--imy-cyan);
    font-size: 7px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.imy-fact-value {
    color: var(--imy-white);
    font-size: 10px;
    line-height: 1.5;
}

/* TEXT SECTIONS */

.imy-section {
    margin-top: 16px;
}

.imy-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--imy-red);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.imy-section-title:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #393943;
}

.imy-section-text {
    color: #C6C6CE;
    font-size: 11px;
    line-height: 1.85;
}

.imy-highlight {
    margin-top: 13px;
    padding: 11px;
    background: #22232B;
    border-left: 2px solid var(--imy-cyan);
}

.imy-highlight-title {
    color: var(--imy-cyan);
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* CLOSE BUTTON */

.imy-close {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 10px;
    border: 1px solid #45454F;
    color: var(--imy-muted);
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s ease;
}

.imy-close:hover {
    border-color: var(--imy-red);
    color: var(--imy-red);
}

/* PROFILE FOOTER */

.imy-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #393943;
    color: var(--imy-muted);
    font-size: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.imy-footer strong {
    color: var(--imy-red);
}

/* DIRECTORY FOOTER */

.imy-bottom {
    margin-top: 15px;
    padding: 10px 0 3px;
    border-top: 1px solid #393943;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--imy-muted);
    font-size: 7px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* SMALL SCREENS */

@media(max-width: 370px) {
    .imy-grid {
        gap: 6px !important;
    }

    .imy-card-info {
        padding: 5px;
    }

    .imy-profile {
        padding: 10px;
    }
}

#profile-lilith .imy-profile-main {
    display: grid !important;
    grid-template-columns: 37% minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: start !important;
    width: 100% !important;
}

#profile-lilith .imy-profile-image {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 !important;
}

#profile-lilith .imy-profile-facts {
    display: grid !important;
    grid-column: 2 !important;
    min-width: 0 !important;
}

.newspaper-content {
    padding: 22px;
}

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 252px);
    justify-content: start;
    gap: 16px;
    align-items: stretch;
}

/* Individual magazine card */

.newspaper-card {
    display: flex;
    flex-direction: column;
    width: 252px;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    justify-self: start;
    padding: 0 0 22px;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        rgba(0, 0, 0, .96),
        rgba(8, 12, 16, .94)
    );

    border: 1px solid var(--imyeon-border);
    border-top: 2px solid var(--imyeon-cyan);
    box-shadow: var(--imyeon-shadow);
}

.newspaper-card__header {
    height: 88px;
    flex-shrink: 0;
    padding: 15px 15px 10px;
}

.newspaper-card__date {
    margin-bottom: 7px;
    color: var(--imyeon-red);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.newspaper-card__title {
    margin: 0;
    color: var(--imyeon-white);
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.newspaper-card__title a {
    color: inherit;
    text-decoration: none;
}

.newspaper-card__title a:hover {
    color: var(--imyeon-cyan);
}

.newspaper-card__cover-link {
    display: block;
    margin: 0 15px;
}

.newspaper-card__cover {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .18);
}

.newspaper-card__footer {
    margin-top: auto;
    padding: 15px 15px 0;
}

.newspaper-card__button {
    display: inline-block;
    padding: 9px 13px;
    background: var(--imyeon-red);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    border-left: 3px solid var(--imyeon-cyan);
    transition: background .2s ease, color .2s ease;
}

.newspaper-card__button a:link, a:visited, a:hover {
}

.newspaper-card__button:hover {
    background: var(--imyeon-cyan);
    color: #101116;
}

/* =========================================
   ARTICLE CONTENT
   Existing IMYEON article styling
   ========================================= */

.imyeon-stories {
    max-width: 760px;
    margin: 30px auto;
    padding: 24px;
    background: var(--imyeon-bg);
    color: var(--imyeon-white);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    border: 1px solid #30313B;
    position: relative;
    overflow: hidden;
}

.imyeon-stories *,
.imyeon-stories *::before,
.imyeon-stories *::after {
    box-sizing: border-box;
}

.imyeon-stories .imyeon-kicker {
    color: var(--imyeon-cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.imyeon-stories .imyeon-main-title {
    margin: 0;
    color: var(--imyeon-white);
    font-size: clamp(30px, 6vw, 48px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    text-align: center;
}

.imyeon-stories .imyeon-main-subtitle {
    margin: 14px 0 28px;
    color: var(--imyeon-muted);
    font-size: 13px;
    line-height: 1.7;
    font-style: italic;
}

.imyeon-stories .imyeon-divider {
    height: 2px;
    margin-bottom: 26px;
    background: linear-gradient(
        90deg,
        var(--imyeon-red),
        var(--imyeon-cyan),
        transparent
    );
}

.imyeon-stories .imyeon-story {
    position: relative;
    margin: 0 0 20px;
    padding: 22px;
    background: var(--imyeon-panel);
    border-left: 3px solid var(--imyeon-red);
}

.imyeon-stories .imyeon-story:nth-of-type(even) {
    border-left-color: var(--imyeon-cyan);
}

.imyeon-stories .imyeon-story-title {
    margin: 0 0 8px;
    color: var(--imyeon-red);
    font-size: clamp(20px, 4vw, 27px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

.imyeon-stories .imyeon-story-subtitle {
    margin: 0 0 14px;
    color: var(--imyeon-white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.imyeon-stories .imyeon-story-text {
    margin: 0;
    color: var(--imyeon-muted);
    font-size: 13px;
    line-height: 1.85;
}

.imyeon-stories .imyeon-page {
    display: block;
    margin-top: 17px;
    padding-top: 10px;
    border-top: 1px solid #393943;
    color: var(--imyeon-cyan);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.imyeon-stories .imyeon-story:nth-of-type(even) .imyeon-story-title {
    color: var(--imyeon-cyan);
}

.imyeon-stories .imyeon-footer {
    padding: 18px 0 2px;
    color: var(--imyeon-cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .imyeon-stories {
        padding: 14px;
    }

    .imyeon-stories .imyeon-story {
        padding: 16px;
    }

    .newspaper-content {
        padding: 12px;
    }

    .newspaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(0, 252px));
    }
}
