/*
Theme Name: Kadence Child 
Theme URI: https://nomanwc.com/
Description: Kadence - By Noman
Author: Noman
Author URI: https://nomanwc.com/
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

:root {
    --bg: #0E1116;
    --bg-alt: #141821;
    --surface: #171C26;
    --surface-2: #1D2331;
    --line: #262D3C;
    --line-soft: #1D2432;
    --line-hover: #3A4256;
    --txt: #E7E9EE;
    --txt-dim: #98A0B0;
    --txt-mute: #727A8A;
    --ink: #E8E4DA;
    /* warm off-white accent, not neon */
    --on-ink: #0E1116;
    --ok: #4EA574;
    --warn: #C89552;
    --bad: #C86C6C;
    --unknown: #7D8494;

    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 14px;
    --r-pill: 999px;
    --s1: 4px;
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 22px;
    --s6: 28px;
    --s7: 40px;
    --s8: 56px;
    --s9: 72px;

    --wrap: 1120px;
    --header-h: 60px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
    background: var(--bg);
    color: var(--txt);
    font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    word-break: keep-all;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.url-text {
    overflow-wrap: break-word;
    word-break: break-all;
    font-feature-settings: "tnum"
}

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

img {
    max-width: 100%;
    display: block
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer
}

ul {
    list-style: none
}

svg {
    display: block
}

:where(section, article, footer)[id] {
    scroll-margin-top: calc(var(--header-h) + var(--s5))
}

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

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: var(--r-xs)
}

.skip {
    position: absolute;
    left: var(--s4);
    top: -100px;
    z-index: 100;
    padding: 11px 18px;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: var(--on-ink);
    font-weight: 700;
    font-size: 14px;
    transition: top .18s var(--ease);
}

.skip:focus {
    top: var(--s3)
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--s5)
}

.section {
    padding: var(--s9) 0;
    border-top: 1px solid var(--line-soft);
    background-color: var(--bg-alt);
    color: var(--txt);
}

.section-head {
    margin-bottom: var(--s6);
    max-width: 70ch
}

.section h2 {
    color: var(--txt);
}

.name h3 {
    color: #fff;
}

h2 {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.35
}

h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.005em
}

.lead {
    color: var(--txt-dim);
    max-width: 64ch;
    margin-top: var(--s3);
    font-size: 15px
}

.i {
    width: 1em;
    height: 1em;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* Header */
.site-header {
    z-index: 50;
    background: rgba(14, 17, 22, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

/* Kadence sticky 헤더 – 다크 테마 색상 유지 */
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start),
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
    background: rgba(14, 17, 22, .95) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* 자식 테마 자체 sticky 헤더 */
#masthead.is-stuck {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: rgba(14, 17, 22, .95);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    animation: slideDown .25s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--s6);
    height: var(--header-h)
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
    letter-spacing: -.015em;
    font-size: 15px
}

.brand-ko {
    color: var(--txt-mute);
    font-size: 12px;
    font-weight: 500
}

.nav-links {
    display: flex;
    gap: var(--s5);
    margin-left: auto;
    font-size: 13.5px;
    color: var(--txt-dim);
    font-weight: 500
}

.nav-links a {
    transition: color .15s var(--ease)
}

.nav-links a:hover,
.nav-links a[aria-current] {
    color: var(--txt)
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--r-sm);
    color: var(--txt-dim);
    border: 1px solid var(--line);
}

.nav-toggle:hover {
    color: var(--txt);
    border-color: var(--line-hover)
}

.nav-toggle .i-close,
.site-header.is-open .nav-toggle .i-menu {
    display: none
}

.site-header.is-open .nav-toggle .i-close {
    display: block
}

.mobile-nav {
    border-top: 1px solid var(--line-soft);
    padding: var(--s2) 0 var(--s4)
}

.mobile-nav a {
    display: block;
    padding: 12px var(--s1);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--txt-dim);
    border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a:last-child {
    border-bottom: none
}

/* Kill Kadence's light content background so the dark theme is seamless */
body,
#wrapper,
#inner-wrap,
.site,
.site-content,
#primary,
.content-bg,
.content-area,
.site-main {
    background-color: #141821;
}

/* Page header (subpages) */
.page-head {
    padding: var(--s9) 0 var(--s7);
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
    border-bottom: 1px solid var(--line-soft);
}

.page-head h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
    color: var(--txt);
    margin-top: var(--s3);
}

/* Highlights — tab menu */
.highlight-tab-box {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: var(--s6);
    width: 100%;
}

.highlight-tab-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.highlight-tab-list li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.highlight-tab-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    background: #1D2331;
    color: #98A0B0;
    border: 1px solid #262D3C;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.highlight-tab-list li a:hover {
    color: #E7E9EE;
    background: #262D3C;
    border-color: #3A4256;
}

.highlight-tab-list li.active a {
    color: #0E1116;
    background: #F6C71A;
    border-color: #F6C71A;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(246, 199, 26, 0.25);
}

@media (max-width: 768px) {
    .highlight-tab-list {
        gap: 6px;
    }
    .highlight-tab-list li a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Highlights — video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}

.video-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .18s var(--ease);
}

.video-card:hover {
    border-color: var(--line-hover);
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    padding: 0;
    border: none;
    cursor: pointer;
    background-color: #0d1a2b;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: none;
}

/* Prevent any theme hover-zoom on the thumbnail */
.video-card:hover .video-thumb,
.video-thumb:hover {
    transform: none;
    background-size: cover;
}

.video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 20, 32, .15), rgba(11, 20, 32, .55));
    transition: opacity .18s var(--ease);
}

.video-thumb.is-playing::after,
.video-thumb.is-playing .play,
.video-thumb.is-playing .dur {
    display: none;
}

.video-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-thumb .play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(11, 20, 32, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .25);
    display: grid;
    place-items: center;
    z-index: 1;
    transition: background .15s var(--ease), transform .15s var(--ease);
}

.video-card:hover .play {
    background: var(--brand-bar-2);
    transform: scale(1.06);
}

.video-thumb .play svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    margin-left: 2px;
}

.video-thumb .dur {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    padding: 2px 6px;
    border-radius: var(--r-xs);
    background: rgba(11, 20, 32, .8);
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.video-meta {
    padding: var(--s4);
}

.video-meta .tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-bar-3);
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .25);
}

.video-meta h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--txt);
}

.video-meta .sub {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--txt-mute);
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Single highlight — embedded video */
.video-embed {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--r-md);
    overflow: hidden;
    background: #0d1a2b;
    border: 1px solid var(--line-soft);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Latest posts — three accent cards */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}

.latest-col {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: var(--s5);
    transition: border-color .18s var(--ease);
}

.latest-col:hover {
    border-color: var(--line-hover);
}

.latest-head {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding-bottom: var(--s4);
    margin-bottom: var(--s2);
    border-bottom: 1px solid var(--line-soft);
}

.latest-ic {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    flex: none;
}

.latest-ic svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* highlight play icon is a filled triangle */
.latest-col:first-child .latest-ic svg {
    fill: currentColor;
    stroke: none;
}

.latest-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--txt);
}

.latest-all {
    margin-top: var(--s4);
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px var(--s4);
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-dim);
    transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}

.latest-all:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    color: var(--txt);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.latest-all svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform .15s var(--ease);
}

.latest-all:hover svg {
    transform: translateX(2px);
}

.latest-list {
    display: grid;
    gap: 0;
    flex: 1;
    align-content: start;
}

.latest-item {
    border-bottom: 1px solid var(--line-soft);
}

.latest-item:last-child {
    border-bottom: none;
}

.latest-item a {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3) 0;
}

.latest-thumb {
    position: relative;
    flex: none;
    width: 68px;
    height: 44px;
    border-radius: var(--r-xs);
    background: var(--bg-alt) center / cover no-repeat;
    border: 1px solid var(--line-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.latest-thumb.is-empty {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--bg-alt));
}

.latest-thumb.is-empty svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.latest-thumb.is-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 20, 32, .28);
}

.latest-play {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    fill: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}

.latest-body {
    min-width: 0;
    flex: 1;
}

.latest-meta {
    display: flex;
    gap: var(--s2);
    align-items: center;
    font-size: 11px;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.latest-meta .c {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .02em;
}

.latest-date {
    color: var(--txt-mute);
}

.latest-item h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--txt);
    transition: color .15s var(--ease);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-item a:hover h4 {
    color: var(--accent);
}

.latest-empty {
    font-size: 13px;
    color: var(--txt-mute);
    padding: var(--s5) 0;
    text-align: center;
}

@media (max-width: 860px) {
    .latest-grid {
        grid-template-columns: 1fr;
        gap: var(--s4);
    }
}

/* Notice — board */
.board {
    max-width: 900px;
    border-top: 1px solid var(--line);
}

.board-row {
    display: grid;
    grid-template-columns: 64px 1fr 120px;
    gap: var(--s4);
    align-items: center;
    padding: var(--s4) var(--s3);
    border-bottom: 1px solid var(--line-soft);
    transition: background .15s var(--ease);
}

.board-row:hover {
    background: var(--surface);
}

.board-num {
    font-size: 13px;
    color: var(--txt-mute);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.board-tag {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 700;
}

.board-tag.pin {
    color: var(--brand-bar-3);
    background: rgba(59, 130, 246, .14);
    border: 1px solid rgba(59, 130, 246, .3);
}

.board-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.board-title h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--txt);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s var(--ease);
}

.board-title:hover h3 {
    color: var(--brand-bar-3);
}

.board-row.is-sticky {
    background: rgba(59, 130, 246, .04);
}

.board-row.is-sticky h3 {
    font-weight: 700;
}

.board-date {
    font-size: 12.5px;
    color: var(--txt-mute);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .board-row {
        grid-template-columns: 1fr auto;
        gap: var(--s2) var(--s3);
    }
    .board-num {
        display: none;
    }
    .board-date {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Analysis — blog listing */
.post-list {
    display: grid;
    gap: 0;
}

.post-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: var(--s6) 0;
    border-bottom: 1px solid var(--line-soft);
}

.post-item:first-child {
    border-top: 1px solid var(--line-soft);
}

.post-item a {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.post-thumb {
    flex-shrink: 0;
    width: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.post-text {
    flex: 1;
    min-width: 0;
}

.post-cat {
    display: flex;
    gap: var(--s3);
    align-items: center;
    font-size: 12px;
    color: var(--txt-mute);
    font-weight: 500;
}

.post-cat .c {
    color: var(--brand-bar-3);
    font-weight: 600;
}

.post-item h2 {
    font-size: clamp(18px, 2.2vw, 21px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.35;
    color: var(--txt);
    transition: color .15s var(--ease);
}

.post-item a:hover h2 {
    color: var(--brand-bar-3);
}

.post-item p {
    margin-top: 4px;
    color: var(--txt-dim);
    font-size: 14.5px;
    max-width: 68ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-more {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-bar-3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-more svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

@media (max-width: 768px) {
    .post-item a {
        flex-direction: column;
        gap: 16px;
    }
    .post-thumb {
        width: 100%;
    }
}

/* Pagination */
.pager {
    display: flex;
    gap: var(--s2);
    justify-content: center;
    margin-top: var(--s8);
}

.pager a,
.pager span {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--txt-dim);
    font-variant-numeric: tabular-nums;
}

.pager a:hover {
    border-color: var(--line-hover);
    color: var(--txt);
}

.pager .is-current,
.pager .current {
    background: var(--brand-bar-2);
    border-color: var(--brand-bar-2);
    color: #fff;
}

/* Single post footer */
.post-foot {
    margin-top: var(--s8);
    padding-top: var(--s5);
    border-top: 1px solid var(--line-soft);
}

/* Prose (page content) */
.prose {
    max-width: 72ch;
}

.prose h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--txt);
    margin-top: var(--s7);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--txt);
    margin-top: var(--s5);
}

.prose p {
    color: var(--txt-dim);
    font-size: 15px;
    line-height: 1.75;
    margin-top: var(--s3);
}

.prose a {
    color: var(--brand-bar-3);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose ul,
.prose ol {
    margin-top: var(--s3);
    padding-left: var(--s5);
    display: grid;
    gap: 8px;
}

.prose ul {
    padding-left: 0;
    list-style: none;
}

.prose ul li {
    color: var(--txt-dim);
    font-size: 15px;
    line-height: 1.7;
    padding-left: var(--s4);
    position: relative;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .75em;
    width: 7px;
    height: 1px;
    background: var(--brand-bar-2);
}

.prose ol li {
    color: var(--txt-dim);
    font-size: 15px;
    line-height: 1.7;
}

.prose strong {
    color: var(--txt);
    font-weight: 600;
}

.prose img {
    border-radius: var(--r-md);
    margin-top: var(--s4);
}

/* Hero — quiet editorial */
.hero {
    padding: var(--s9) 0 var(--s8);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line-soft)
}

.hero .wrap {
    max-width: 900px
}

.hero-kicker {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--txt-mute);
    font-weight: 600;
    margin-bottom: var(--s4)
}

.hero h1 {
    font-size: clamp(28px, 4.4vw, 42px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.25;
    text-wrap: balance;
    color: var(--txt);
}

.hero p {
    margin: var(--s5) 0 0;
    max-width: 56ch;
    color: var(--txt-dim);
    font-size: clamp(15px, 1.4vw, 16.5px)
}

.hero-actions {
    display: flex;
    gap: var(--s3);
    flex-wrap: wrap;
    margin-top: var(--s6)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: 11px 20px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14.5px;
    transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}

.btn .i {
    width: 15px;
    height: 15px
}

.btn-primary {
    background: var(--ink);
    color: var(--on-ink)
}

.btn-primary:hover {
    background: #fff
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--txt-dim)
}

.btn-ghost:hover {
    border-color: var(--line-hover);
    color: var(--txt)
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s6);
    margin-top: var(--s8);
    padding-top: var(--s5);
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
}

.hero-meta div {
    display: flex;
    align-items: baseline;
    gap: var(--s2)
}

.hero-meta dt {
    color: var(--txt-mute)
}

.hero-meta dd {
    color: var(--txt);
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

/* Intro */
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--s7);
    align-items: start
}

.intro-grid .lead+.lead {
    margin-top: var(--s4)
}

.intro-points {
    display: grid;
    gap: var(--s4);
    border-left: 1px solid var(--line);
    padding-left: var(--s5)
}

.point b {
    display: block;
    font-size: 14.5px;
    margin-bottom: 2px;
    font-weight: 600
}

.point span {
    font-size: 13.5px;
    color: var(--txt-dim)
}

/* Criteria */
.criteria-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s7)
}

.legend {
    display: grid;
    gap: var(--s3)
}

.legend-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s4);
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--line-soft);
}

.legend-row:last-child {
    border-bottom: none
}

.legend-row b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap
}

.legend-row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
    flex: none
}

.legend-row p {
    font-size: 13.5px;
    color: var(--txt-dim)
}

.criteria {
    display: grid;
    gap: var(--s3)
}

.criteria div {
    padding: var(--s4);
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line-soft)
}

.criteria b {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
    font-weight: 600
}

.criteria span {
    font-size: 13px;
    color: var(--txt-dim)
}

/* Dashboard */
.dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s5);
    flex-wrap: wrap;
    margin-bottom: var(--s5)
}

.stamp {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-size: 13px;
    color: var(--txt-mute);
}

.stamp b {
    color: var(--txt);
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

.filters {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap
}

.chip {
    padding: 7px 14px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--txt-dim);
    transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}

.chip:hover {
    color: var(--txt);
    border-color: var(--line-hover)
}

.chip[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink)
}

.dash-count {
    font-size: 13px;
    color: var(--txt-mute);
    margin-bottom: var(--s3);
    font-variant-numeric: tabular-nums
}

.col-head {
    display: grid;
    grid-template-columns: 240px 1.5fr 260px 170px;
    gap: var(--s5);
    padding: 0 var(--s5) var(--s2);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--txt-mute);
    font-weight: 600;
}

.cards {
    display: grid;
    gap: var(--s2)
}

.card[hidden] {
    display: none
}

.card {
    position: relative;
    display: grid;
    grid-template-columns: 240px 1.5fr 260px 170px;
    gap: var(--s5);
    align-items: center;
    padding: var(--s5);
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    transition: border-color .18s var(--ease), background .18s var(--ease);
    overflow: hidden;
}

.card:hover {
    border-color: var(--line-hover);
    background: var(--surface-2)
}

/* Korean text: never split words mid-syllable in cards (spec 2.2) */
.card .name h3,
.card .price-tag,
.card .leagues li,
.card .badge,
.card .checked,
.card .devices .label {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.card-id {
    display: flex;
    align-items: center;
    gap: var(--s4);
    min-width: 0
}

.rank {
    flex: none;
    width: 34px;
    text-align: right;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--txt-mute);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.logo {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -.02em;
    color: var(--lg, var(--txt));
    overflow: hidden;
    transition: border-color .15s var(--ease), transform .15s var(--ease);
}

a.logo:hover {
    border-color: var(--line-hover);
    transform: translateY(-1px);
}

.name {
    min-width: 0
}

.name h3 {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.005em
}

.guide-card h3 {
    color: #ffff;
}

.name .url-text {
    display: block;
    font-size: 12px;
    color: var(--txt-mute);
    margin-top: 1px
}

.name .price-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: var(--r-xs);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--txt-dim);
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
}

.card-body {
    min-width: 0
}

/* 플랫폼 설명 불릿 */
.card .p-desc {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 0 0 var(--s3);
    padding: 0 0 var(--s3);
    border-bottom: 1px solid var(--line-soft);
}

.card .p-desc li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--txt);
}

.card .p-desc li::marker {
    content: "";
}

.card .p-desc li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--txt-mute);
}

/* 종목: 한 줄에 · 로 구분 */
.card .leagues {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0 0 var(--s3);
    padding: 0;
}

.card .leagues li {
    font-size: 13.5px;
    color: var(--txt-dim);
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline;
}

.card .leagues li::marker {
    content: "";
}

.card .leagues li + li::before {
    content: "·";
    color: var(--txt-mute);
    margin: 0 7px;
}

.devices {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--txt-mute);
    flex-wrap: wrap;
    margin-top: var(--s3)
}

.devices .label {
    margin-right: 4px
}

.devices .ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--r-xs);
    color: var(--txt-dim);
    transition: color .15s var(--ease), background .15s var(--ease);
}

.devices .ico:hover,
.devices .ico:focus-visible {
    color: var(--txt);
    background: var(--surface-2);
    outline: none;
}

.devices .ico .i {
    width: 19px;
    height: 19px
}

/* Font Awesome icons are fill-based, not stroked */
.i-fill {
    fill: currentColor;
    stroke: none;
}

/* Hover tooltip */
.devices .ico::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 5px 9px;
    border-radius: var(--r-xs);
    background: var(--surface-2);
    color: var(--txt);
    border: 1px solid var(--line);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s var(--ease), transform .15s var(--ease);
    z-index: 10;
}

.devices .ico::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--line);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s var(--ease), transform .15s var(--ease);
    z-index: 10;
}

.devices .ico:hover::after,
.devices .ico:focus-visible::after,
.devices .ico:hover::before,
.devices .ico:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.devices .off {
    color: #4A5163
}

.metrics {
    display: grid;
    gap: 6px
}

.metric {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: var(--s2);
    font-size: 13px
}

.metric>span:first-child {
    color: var(--txt-mute);
    font-weight: 500
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-self: start;
    padding: 2px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--txt);
}

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c);
    flex: none
}

.s-ok {
    --c: var(--ok)
}

.s-warn {
    --c: var(--warn)
}

.s-bad {
    --c: var(--bad)
}

.s-unk {
    --c: var(--unknown)
}

.s-unk .badge,
.badge.s-unk {
    color: var(--txt-mute)
}

.card-cta {
    display: grid;
    gap: 6px;
    justify-items: stretch;
    align-content: center
}

/* 종합 평점 */
.rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: var(--s3);
}

.rating-score {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--txt);
    font-variant-numeric: tabular-nums;
}

.rating-grade {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--txt-dim);
    letter-spacing: .02em;
}

/* 별점 바 */
.rating .stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
    padding: 5px 8px;
    border-radius: var(--r-xs);
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .22);
    line-height: 0;
}

.rating .star {
    position: relative;
    display: block;
    width: 13px;
    height: 13px;
    flex: none;
}

.rating .star svg {
    width: 13px;
    height: 13px;
    display: block;
    stroke: none;
}

.rating .star.is-full svg {
    fill: #fff;
}

.rating .star.is-empty svg {
    fill: #3a4761;
}

/* 반 별: 왼쪽만 채움 */
.rating .star.is-half svg {
    fill: #3a4761;
}

.rating .star.is-half::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5-5.8-3-5.8 3 1.1-6.5L2.6 9.3l6.5-.9z'/%3E%3C/svg%3E") 0 0 / 13px 13px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5-5.8-3-5.8 3 1.1-6.5L2.6 9.3l6.5-.9z'/%3E%3C/svg%3E") 0 0 / 13px 13px no-repeat;
}

.visit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px var(--s3);
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid #3b82f6;
    color: #ffffff;
    background: #3b82f6;
    transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}

.visit .i {
    width: 13px;
    height: 13px;
    transition: transform .15s var(--ease);
}

.visit:hover,
.visit:focus-visible {
    color: #ffffff;
    border-color: #2563eb;
    background: #2563eb;
}

.visit:hover .i {
    transform: translate(1px, -1px);
}

.checked {
    font-size: 11.5px;
    color: var(--txt-mute);
    text-align: center;
    font-variant-numeric: tabular-nums
}

.more {
    display: none
}

.dash-empty {
    padding: var(--s7) var(--s5);
    text-align: center;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px dashed var(--line);
}

.dash-empty b {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600
}

.dash-empty span {
    font-size: 13.5px;
    color: var(--txt-dim)
}

/* Guide */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5)
}

.guide-card {
    padding: var(--s5) 0;
    border-top: 1px solid var(--line)
}

.guide-card .n {
    font-size: 12px;
    color: var(--txt-mute);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-bottom: var(--s2)
}

.guide-card h3 {
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 6px
}

.guide-card p {
    font-size: 13.5px;
    color: var(--txt-dim)
}

/* Notice */
.notice {
    padding: var(--s5) 0;
    border-top: 1px solid var(--line-soft)
}

.notice ul {
    display: grid;
    gap: 10px;
    margin-top: var(--s3)
}

.notice li {
    font-size: 13.5px;
    color: var(--txt-dim);
    padding-left: var(--s4);
    position: relative
}

.notice li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 8px;
    height: 1px;
    background: var(--txt-mute)
}

.notice li b {
    color: var(--txt);
    font-weight: 600;
    margin-right: 6px
}

/* FAQ */
.faq {
    display: grid
}

details {
    border-bottom: 1px solid var(--line-soft)
}

details:first-child {
    border-top: 1px solid var(--line-soft)
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    padding: var(--s4) 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    list-style: none;
}

.faq summary .q {
    flex: 1 1 auto;
    min-width: 0;
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary .i {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--txt-mute);
    transition: transform .22s var(--ease)
}

.faq details[open] summary .i {
    transform: rotate(45deg);
    color: var(--txt)
}

details .ans {
    padding: 0 0 var(--s5);
    font-size: 14px;
    color: var(--txt-dim);
    max-width: 72ch
}

/* Footer */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--line-soft);
    padding: var(--s7) 0 var(--s5)
}

.foot-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s6);
    align-items: start
}

.foot-top p {
    font-size: 13px;
    color: var(--txt-dim);
    margin-top: var(--s3);
    max-width: 48ch
}

.foot-col {
    display: flex;
    gap: var(--s5);
    flex-wrap: wrap;
    justify-content: flex-end
}

.foot-col a {
    font-size: 13px;
    color: var(--txt-dim);
    transition: color .15s var(--ease)
}

.foot-col a:hover {
    color: var(--txt)
}

.foot-bot {
    display: flex;
    justify-content: space-between;
    gap: var(--s3);
    flex-wrap: wrap;
    margin-top: var(--s6);
    padding-top: var(--s4);
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--txt-mute);
}

/* Responsive */
@media(max-width:1024px) {
    .col-head {
        display: none
    }

    .card {
        grid-template-columns: 1fr 260px;
        gap: var(--s4) var(--s6)
    }

    .card-id {
        grid-column: 1/-1
    }

    .card-cta {
        grid-column: 2;
        align-self: center
    }

    .intro-grid,
    .criteria-block {
        grid-template-columns: 1fr;
        gap: var(--s6)
    }

    .guide-grid {
        grid-template-columns: 1fr 1fr
    }

    .foot-top {
        grid-template-columns: 1fr;
        gap: var(--s5)
    }

    .foot-col {
        justify-content: flex-start
    }
}

@media(max-width:720px) {
    .section {
        padding: var(--s8) 0
    }

    .nav-links {
        display: none
    }

    .nav-toggle {
        display: grid
    }

    .guide-grid {
        grid-template-columns: 1fr
    }

    .card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0
    }

    .card-id {
        padding: var(--s4);
        border-bottom: 1px solid var(--line-soft)
    }

    .metrics {
        padding: var(--s4);
        order: 2;
        gap: 8px
    }

    .metric {
        grid-template-columns: 80px 1fr
    }

    .card-cta {
        padding: 0 var(--s4) var(--s4);
        order: 3;
        grid-column: 1
    }

    .card-body {
        order: 4;
        grid-column: 1/-1;
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        visibility: hidden;
        transition: grid-template-rows .3s var(--ease), opacity .2s var(--ease), visibility 0s linear .3s;
    }

    .card-body-in {
        overflow: hidden;
        min-height: 0;
        padding: var(--s1) var(--s4) var(--s4)
    }

    .card.is-open .card-body {
        grid-template-rows: 1fr;
        opacity: 1;
        visibility: visible;
        transition: grid-template-rows .3s var(--ease), opacity .2s var(--ease) .06s, visibility 0s;
    }

    .more {
        display: flex;
        order: 5;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        padding: 12px;
        font-size: 13px;
        font-weight: 500;
        color: var(--txt-dim);
        border-top: 1px solid var(--line-soft);
    }

    .more .i {
        width: 14px;
        height: 14px;
        transition: transform .22s var(--ease)
    }

    .card.is-open .more .i {
        transform: rotate(180deg)
    }
}

main#inner-wrap {
    max-width: 100%;
    padding: 0;
    width: 100%;
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}

.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a {
    border: 1px solid #fff;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 4px 15px;
    border-radius: 8px;
    background: #1b3a5c;
}
.header-navigation .menu {
    gap: 5px;
}

.latest-list {
    margin: 0;
    padding: 0;
    list-style: none;
}


ul.leagues {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Livescore Custom Section & iFrame Styles
   ========================================================================== */
.livescore-page-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.livescore-wrap {
    max-width: 930px !important; /* Perfect fit for Named's 900px table + 30px wrapper padding */
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
}

.livescore-content {
    width: 100% !important;
}

.livescore-tab-box {
    background: #171C26 !important;
    border: 1px solid #262D3C !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.livescore-tab-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Center the tabs to look balanced */
    align-items: center !important;
    gap: 4px !important; /* Reduced gap */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.livescore-tab-list li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
}

.livescore-tab-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 10px !important; /* Reduced padding */
    background: #1D2331 !important;
    color: #98A0B0 !important;
    border: 1px solid #262D3C !important;
    border-radius: 8px !important;
    font-size: 13px !important; /* Reduced font size */
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important; /* slightly tighten text to fit */
}

.livescore-tab-list li a:hover {
    color: #E7E9EE !important;
    background: #262D3C !important;
    border-color: #3A4256 !important;
}

.livescore-tab-list li.active a {
    color: #0E1116 !important;
    background: #F6C71A !important;
    border-color: #F6C71A !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(246, 199, 26, 0.25) !important;
}

.livescore-iframe-box {
    width: 100% !important;
    min-height: 15000px !important;
    height: 15000px !important;
    background: transparent !important; /* Make empty space transparent to blend with theme */
    overflow: hidden !important;
}

.livescore-iframe-box iframe {
    width: 100% !important;
    height: 15000px !important;
    min-height: 15000px !important;
    border: none !important;
    display: block !important;
    background: transparent !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .livescore-tab-list {
        gap: 6px !important;
    }
    .livescore-tab-list li a {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    .livescore-iframe-box {
        min-height: 12000px !important;
        height: 12000px !important;
    }
}

/* 제미나이 마크다운 (H1, 코드, 리스트) 프론트엔드 다크테마 수정 */
.prose h1, .prose h2, .prose h3, 
.entry-content h1, .entry-content h2, .entry-content h3 {
    color: #ffffff !important;
}

.prose ul, .entry-content ul {
    list-style-type: disc !important;
    padding-left: 1.5em !important;
    color: #ffffff !important;
}

.prose ol, .entry-content ol {
    list-style-type: decimal !important;
    padding-left: 1.5em !important;
    color: #ffffff !important;
}

.prose li, .entry-content li {
    color: #ffffff !important;
    margin-bottom: 0.5em !important;
}

.prose li p, .entry-content li p {
    color: #ffffff !important;
}

.prose ul li::marker, .prose ol li::marker,
.entry-content ul li::marker, .entry-content ol li::marker {
    color: #ffffff !important;
}

.prose pre, .prose code,
.entry-content pre, .entry-content code {
    background-color: #2b2b2b !important;
    color: #f8f8f2 !important;
    border: 1px solid #444 !important;
}
