:root {
    /* Colors */
    --bg: #000;
    --text: #fff;
    --accent: #f0cd1f;
    --text-gray: #ccc;
    --text-gray-alt: #656e81;

    /* Typography */
    --font-family: "Fusion Pixel 8px Proportional KR", Times, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --base-font-size: 16px;
    --line-height: 1.4;

    /* Borders */
    --border-color: var(--text);
    --border-width: 0.3rem;
    --border-style: double;
    --radius: 6px;

    /*OC Cards Border*/
    --oc-border-style: groove;
    --oc-border-width: 2px;
    --oc-border-color: white;

    /* Layout */
    --site-max-width: 900px;
    --site-padding: 1.5rem;
    --gap-default: 40px;
}

/* Global */
* {
    background-color: var(--bg);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-family);
    box-sizing: border-box;
    line-height: var(--line-height);
}

/*Navigation Bar*/
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    gap: var(--gap-default);
    flex-wrap: wrap;
    text-align: center;
}

ul li {
    float: left;
}

ul li a {
    display: block;
    color: var(--accent);
    text-align: center;
    padding: 14px 16px;
}

ul li a:hover {
    color: var(--text);
}

/*Site Padding*/
.site {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-padding);
}

/*Banner*/
.banner {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

/*Socials*/
.socials {
    display: flex;
    justify-content: center;
    gap: var(--gap-default);
    flex-wrap: wrap;
    text-align: center;
}

/*Icons*/
.logo {
    width: 32px;
    height: 32px;
    fill: var(--text);
}

/* News Title */
.h1_style {
    color: var(--accent);
    font-size: 2rem;
    letter-spacing: 0.08em;
    margin: 1.25rem 0 0.75rem;
    display: inline-block;
    font-weight: 700;
}

/* News header/title/date */
.news_header {
    display: flex;
    align-items: center;
    justify-content:space-between
}
.title_style {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-gray);
}

.date_style {
    font-size: 0.95rem;
    color: var(--text-gray-alt);
    white-space: nowrap;
    flex-shrink: 0;
}

/* News image/desc */
.news_pic {
    display: block;
    width: 100%;
    max-height: 480px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0.75rem 0;
}

.news_desc {
    margin: 0.5rem 0 1.5rem;
    font-size: 1rem;
    color: var(--text-gray);
}

/*OCportrait Gallery*/
.ocportrait_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 6px;
    padding: 6px;
}

.ocportrait_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: var(--radius);
    border-style: var(--oc-border-style);
    border-width: var(--oc-border-width);
    border-color: var(--oc-border-color);
    overflow: hidden;
    padding: 8px;
    margin: 2px;
    gap: 6px;
    max-width: 160px;
}

.ocportrait_image {
    width: 72px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 6px;
}

.ocportrait_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ocportrait_name {
    margin-top: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ocportrait_card a {
    color: inherit;
    text-decoration: none;
}

/* Newspaper */
.npaper_container {
    width: 320px;
    max-width: 45%;
    min-width: 220px;
    margin: 64px auto;
    font-size: 0.9rem;
}

.npaper_link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    border-width: var(--border-width);
    border-style: var(--border-style);
    border-color: var(--border-color);
    overflow: hidden;
    padding: 8px;
}

.npaper_image {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
}

.npaper_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.npaper_title {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.npaper_sub {
    font-size: 0.88em;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.npaper_date {
    font-size: 0.78em;
    color: var(--text-gray-alt);
}

/* Small variant & responsive tweaks */
.npaper_container.small {
    width: 240px;
    font-size: 0.85rem;
}

@media (max-width:420px) {
    .npaper_container {
        width: 90%;
        max-width: 320px;
    }

    .npaper_image {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }
}


/* Horizontal Gallery*/
.hgallery_gallery {
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
    gap: 6px;
    padding: 6px;
  }
  
  .hgallery_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: var(--radius);
    border-style: var(--oc-border-style);
    border-width: var(--oc-border-width);
    border-color: var(--oc-border-color);
    overflow: hidden;
    padding: 8px;
    margin: 2px;
    gap: 6px;
    max-width: fit-content;
  }
  
  .hgallery_image {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
  }
  
  .hgallery_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }


/* Font-face kept as-is */
@font-face {
    font-family: 'Fusion Pixel 8px Proportional KR';
    src: url(resources/fusion-pixel-8px-proportional-kr-latin-400-normal.woff);
}