﻿/*=======================================================================
  AUTO NEWS REALTIME
=======================================================================*/

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #ffffff;
    color: #161616;
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e4e8;
}

.header-inner,
.category-nav-inner,
.main-content,
.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    display: block;
    max-width: 250px;
    max-height: 54px;
}

.text-logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.realtime-mark {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border: 1px solid #d9dde4;
    border-radius: 13px;
    color: #666666;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.category-nav {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #dedede;
}

.category-nav-inner {
    display: flex;
    min-height: 48px;
}

.category-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.category-nav a:hover {
    background: #f6f7f8;
    text-decoration: none;
}

.main-content {
    padding-top: 34px;
    padding-bottom: 70px;
}

.section-kicker {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.realtime-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.realtime-heading h1 {
    margin: 2px 0 0;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -1px;
}

.realtime-source {
    color: #8a8f98;
    font-size: 12px;
}

.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.portal-news-card {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.portal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 17px;
    background: #f5f6f8;
}

.portal-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.portal-card-title strong {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.portal-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid #d8dce2;
    border-radius: 50%;
    background: #ffffff;
    color: #30343b;
    font-size: 11px;
    font-weight: 900;
}

.portal-card-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    color: #31353a;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
}

.portal-card-more:hover {
    text-decoration: none;
}

.portal-card-body {
    padding: 9px 18px 13px;
}

.portal-news-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    min-height: 77px;
    padding: 13px 0 11px;
    border-bottom: 1px solid #eceef1;
}

.portal-news-row:last-child {
    border-bottom: 0;
}

.portal-rank {
    padding-top: 2px;
    color: #050505;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.3;
}

.portal-news-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: #17191c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.48;
    letter-spacing: -0.35px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.portal-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 6px;
    color: #8b9098;
    font-size: 11px;
}

.portal-card-empty {
    padding: 45px 10px;
    color: #8d9299;
    font-size: 13px;
    text-align: center;
}

.feed-error {
    margin-bottom: 20px;
    padding: 23px;
    border: 1px solid #ead4d4;
    background: #fff9f9;
}

.feed-error strong {
    display: block;
    margin-bottom: 5px;
}

.feed-error p {
    margin: 0;
    color: #777777;
    font-size: 13px;
}

.list-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #161616;
}

.list-title-row h1 {
    margin: 2px 0 0;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -1px;
}

.result-count {
    color: #777777;
    font-size: 13px;
}

.result-count strong {
    color: #111111;
}

.list-category-tabs {
    display: flex;
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid #dedede;
    scrollbar-width: none;
}

.list-category-tabs::-webkit-scrollbar {
    display: none;
}

.list-category-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 19px;
    border-right: 1px solid #eeeeee;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.list-category-tabs a.active {
    background: #171717;
    color: #ffffff;
}

.list-category-tabs a:hover {
    text-decoration: none;
}

.news-search-form {
    display: flex;
    gap: 7px;
    max-width: 650px;
    margin: 20px 0 13px auto;
}

.news-search-form input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #cfd2d6;
    outline: none;
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    font-size: 13px;
}

.news-search-form input:focus {
    border-color: #222222;
}

.news-search-form button {
    min-width: 72px;
    border: 0;
    background: #171717;
    color: #ffffff;
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.text-news-list {
    border-top: 1px solid #222222;
}

.text-news-item {
    padding: 23px 3px;
    border-bottom: 1px solid #e5e7ea;
}

.text-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: #858a91;
    font-size: 12px;
}

.text-news-meta a {
    color: #111111;
    font-weight: 800;
}

.text-news-item h2 {
    margin: 8px 0 8px;
    font-size: 20px;
    line-height: 1.48;
    letter-spacing: -0.55px;
}

.text-news-item p {
    max-width: 930px;
    margin: 0;
    color: #656a71;
    font-size: 13px;
    line-height: 1.75;
}

.list-empty {
    padding: 60px 20px;
    color: #777777;
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 32px;
}

.pagination a,
.pagination strong,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 7px;
    border: 1px solid #dfe1e4;
    font-size: 12px;
    font-weight: 700;
}

.pagination .current {
    border-color: #171717;
    background: #171717;
    color: #ffffff;
}

.pagination .disabled {
    background: #fafafa;
    color: #b5b8bd;
}

.pagination a:hover {
    border-color: #333333;
    text-decoration: none;
}

.article-page {
    max-width: 860px;
    margin: 0 auto;
}

.article-header {
    padding-bottom: 27px;
    border-bottom: 1px solid #dfe1e4;
}

.article-category {
    display: inline-block;
    margin-bottom: 12px;
    color: #555c66;
    font-size: 13px;
    font-weight: 900;
}

.article-header h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.35;
    letter-spacing: -1.5px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 18px;
    color: #858a91;
    font-size: 12px;
}

.article-body {
    padding: 34px 0 45px;
    color: #292c31;
    font-size: 16px;
    line-height: 1.95;
    word-break: break-word;
}

.article-body img {
    max-width: 100%;
}

.article-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.article-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #dedede;
    font-size: 13px;
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid #dedede;
    background: #f7f8f9;
}

.footer-inner {
    padding-top: 29px;
    padding-bottom: 36px;
}

.footer-brand {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-text,
.footer-copyright {
    color: #80858d;
    font-size: 12px;
}

.footer-text {
    margin-bottom: 5px;
    white-space: pre-line;
}


/*=======================================================================
  PORTAL NEWS UI - HEADER / SEARCH / DATE
=======================================================================*/

.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;
}

.portal-header-inner {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(280px, 520px) minmax(170px, 1fr);
    align-items: center;
    gap: 28px;
}

.header-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 42px;
    border: 1px solid #cfd3d8;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: none;
    color: #202328;
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    font-size: 13px;
}

.header-search button {
    min-width: 68px;
    border: 0;
    border-left: 1px solid #e1e4e8;
    background: #17191d;
    color: #ffffff;
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.header-today {
    justify-self: end;
    color: #555b63;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}


/*=======================================================================
  PORTAL NEWS UI - COMMON TWO COLUMN
=======================================================================*/

.portal-page {
    padding-top: 34px;
}

.news-two-column,
.article-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    align-items: start;
}

.news-main-column,
.article-main-column {
    min-width: 0;
}

.news-side-column,
.article-side-column {
    min-width: 0;
}

.portal-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #24272c;
}

.portal-section-head h1 {
    margin: 3px 0 0;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.7px;
}

.portal-total-count {
    color: #8b9098;
    font-size: 11px;
}

.portal-total-count strong {
    color: #292d33;
}


/*=======================================================================
  PORTAL NEWS UI - LIST
=======================================================================*/

.portal-article-list {
    background: #ffffff;
}

.portal-list-item {
    padding: 28px 16px;
    border-bottom: 1px solid #e8eaed;
}

.portal-list-content {
    max-width: 790px;
}

.portal-list-category {
    display: inline-block;
    margin-bottom: 7px;
    color: #18784a;
    font-size: 12px;
    font-weight: 800;
}

.portal-list-item h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.55;
    letter-spacing: -0.6px;
}

.portal-list-item h2 a:hover {
    text-decoration-thickness: 1px;
}

.portal-list-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 0;
    color: #656b73;
    font-size: 13px;
    line-height: 1.72;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.portal-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 12px;
    color: #8a9098;
    font-size: 11px;
}


/*=======================================================================
  PORTAL NEWS UI - POPULAR SIDEBAR
=======================================================================*/

.popular-side-card,
.article-side-card {
    position: sticky;
    top: 20px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #ffffff;
}

.popular-side-card h2,
.article-side-card h2 {
    margin: 0;
    padding: 20px 22px 12px;
    font-size: 17px;
    letter-spacing: -0.5px;
}

.popular-side-list,
.article-side-list {
    padding: 0 22px 12px;
}

.popular-side-item,
.article-side-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    padding: 15px 0;
    border-bottom: 1px solid #eceef1;
}

.popular-side-item:last-child,
.article-side-item:last-child {
    border-bottom: 0;
}

.popular-side-rank,
.article-side-rank {
    color: #111318;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
}

.popular-side-item a,
.article-side-item a {
    display: block;
    color: #25292f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.3px;
}

.popular-side-meta,
.article-side-item span:not(.article-side-rank) {
    display: block;
    margin-top: 5px;
    color: #989da4;
    font-size: 10px;
}

.popular-side-empty {
    padding: 30px 5px;
    color: #92979f;
    font-size: 11px;
    text-align: center;
}


/*=======================================================================
  PORTAL NEWS UI - ARTICLE
=======================================================================*/

.portal-article-header {
    padding: 4px 0 22px;
    border-bottom: 1px solid #dfe2e6;
}

.portal-article-breadcrumb {
    margin-bottom: 10px;
}

.portal-article-breadcrumb a {
    color: #18784a;
    font-size: 12px;
    font-weight: 800;
}

.portal-article-header h1 {
    max-width: 850px;
    margin: 0;
    font-size: 36px;
    line-height: 1.35;
    letter-spacing: -1.4px;
    word-break: keep-all;
}

.portal-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 17px;
    color: #858b93;
    font-size: 11px;
}

.article-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef0f2;
}

.article-tools-compact {
    min-height: 36px;
}

.article-tool-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.article-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #e0e3e7;
    border-right: 0;
    border-radius: 0;
    background: #ffffff;
    color: #646a72;
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.article-tool-group .article-icon-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.article-tool-group .article-icon-btn:last-child {
    border-right: 1px solid #e0e3e7;
    border-radius: 0 4px 4px 0;
}

.article-tool-group .article-icon-btn:only-child {
    border-radius: 4px;
}

.article-icon-btn:hover,
.article-icon-btn:focus-visible {
    position: relative;
    z-index: 1;
    border-color: #aeb4bc;
    background: #f7f8f9;
    color: #17191d;
    outline: none;
}

.article-tool-group .article-icon-btn:hover + .article-icon-btn,
.article-tool-group .article-icon-btn:focus-visible + .article-icon-btn {
    border-left-color: #aeb4bc;
}

.article-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-tool-divider {
    display: block;
    width: 1px;
    height: 24px;
    margin: 0 3px;
    background: #e6e8eb;
}

.article-font-btn {
    color: #60666e;
    line-height: 1;
}

.article-font-btn-small {
    font-size: 13px;
    font-weight: 500;
}

.article-font-btn-large {
    font-size: 20px;
    font-weight: 700;
}

.portal-article-body {
    padding: 42px 0 50px;
    transition: font-size 0.15s ease;
    color: #24282e;
    font-size: 17px;
    line-height: 2;
    letter-spacing: -0.15px;
    word-break: break-word;
}

.portal-article-body.font-small {
    font-size: 15px;
}

.portal-article-body.font-normal {
    font-size: 17px;
}

.portal-article-body.font-large {
    font-size: 20px;
}

.portal-article-body p {
    margin: 0 0 24px;
}

.portal-article-body img {
    max-width: 100%;
    height: auto;
}

.portal-article-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.portal-article-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid #dfe2e6;
    border-bottom: 1px solid #dfe2e6;
    font-size: 12px;
    font-weight: 700;
}


/*=======================================================================
  PRINT
=======================================================================*/

@media print {

    .site-header,
    .site-footer,
    .article-side-column,
    .article-tools,
    .portal-article-footer {
        display: none !important;
    }

    body {
        background: #ffffff;
    }

    .header-inner,
    .category-nav-inner,
    .main-content,
    .footer-inner {
        width: 100%;
        max-width: none;
    }

    .main-content {
        padding: 0;
    }

    .article-two-column {
        display: block;
    }

    .article-main-column {
        width: 100%;
    }

    .portal-article-header h1 {
        font-size: 28pt;
    }

    .portal-article-body {
        font-size: 12pt !important;
        line-height: 1.8;
    }

}
