/* 시애틀사랑 공통 스타일 (2026-11 개편). style.css(옛 게시판용) 뒤에 불러와 덮어쓴다. */
:root {
    --bg: #f6f5f1;
    --surface: #ffffff;
    --ink: #1c2024;
    --ink-2: #3d444d;
    --muted: #6b7280;
    --faint: #9aa1a9;
    --line: #e6e3dc;
    --accent: #0f6f66;
    --accent-ink: #0b544d;
    --accent-soft: #e2f1ee;
    --ok-bg: #e6f4ea; --ok-ink: #1e6b34;
    --warn-bg: #fff4e0; --warn-ink: #7a4b00;
    --bad-bg: #fdecea; --bad-ink: #a4261a;
    --radius: 14px;
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.01em; line-height: 1.35; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 28px; padding-bottom: 56px; }

/* ── 머리말 ─────────────────────────── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-top { padding: 14px 0 6px; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; flex-direction: row; gap: 12px; }
.logo { font-size: 20px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-img { height: 30px; width: auto; border-radius: 6px; }
.logo span { font-size: 12px; color: var(--faint); font-weight: 500; margin-left: 2px; letter-spacing: 0; }
.header-auth { font-size: 13px; color: var(--muted); }
.header-auth a { color: var(--muted); }
.main-nav { background: transparent; }
.nav-list { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list > li { position: static; list-style: none; flex: 0 0 auto; }
.nav-home { display: block; padding: 10px 12px 12px; color: var(--ink-2); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-home:hover { background: transparent; color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }

/* ── 바닥글 ─────────────────────────── */
.site-footer { background: transparent; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 24px 0 40px; margin-top: 0; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--accent) !important; }

/* ── 공통 조각 ─────────────────────────── */
.page-title, .info-page h1, .cal h1, .tb h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.03em; }
.home-sub, .info-sub, .cal-sub, .tb-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; line-height: 1.65; }
.home-h2, .info-h2 { font-size: 21px; font-weight: 800; margin: 48px 0 6px; padding-top: 16px; border-top: 2px solid var(--ink); display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; }
.home-h2::before, .info-h2::before { content: ""; flex: 0 0 auto; align-self: center; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-right: -2px; }
.home-h2 a { margin-left: auto; }
.home-h2 a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.now-card, .guide-col, .info-card, .info-more, .cal-month, .tb-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.now-badge, .info-badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.st-open { background: var(--ok-bg); color: var(--ok-ink); }
.st-restricted { background: var(--warn-bg); color: var(--warn-ink); }
.st-closed { background: var(--bad-bg); color: var(--bad-ink); }

/* ── 홈 ─────────────────────────── */
.home-hero { margin: 8px 0 8px; }
.home-hero p, .home-hero h1 { color: var(--ink); font-size: 23px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.45; margin: 0; }
.home-hero + .home-h2 { margin-top: 28px; }
.now-grid, .guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.now-card h3 { font-size: 13px; color: var(--accent); margin: 0 0 6px; font-weight: 700; letter-spacing: 0.02em; }
.now-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.now-row:first-of-type { border-top: 0; }
.now-row .v { font-weight: 800; font-size: 19px; white-space: nowrap; letter-spacing: -0.02em; }
.now-row .s { color: var(--muted); font-size: 13.5px; }
.now-empty { color: var(--faint); font-size: 14px; margin: 0; }
.guide-col h3 { font-size: 17px; margin: 0 0 2px; font-weight: 750; }
.guide-col .d { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.guide-col ul { margin: 0; padding: 0; }
.guide-col li { list-style: none; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; }
.guide-col li:first-child { border-top: 0; }
.guide-col li a { color: var(--ink); }
.guide-col li a:hover { color: var(--accent); }
.home-note, .info-foot, .cal-foot, .tb-foot { color: var(--faint); font-size: 13px; margin-top: 28px; line-height: 1.7; }

/* ── 정보판 ─────────────────────────── */
.info-warn { background: var(--warn-bg); color: var(--warn-ink); padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.info-card { overflow: hidden; }
.info-card h2 { font-size: 18px; margin: 0 0 2px; font-weight: 750; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.info-note { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.info-now { display: flex; align-items: baseline; gap: 12px; margin-bottom: 2px; color: var(--muted); font-size: 14px; }
.info-temp { font-size: 42px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1.1; }
.info-temp small { font-size: 15px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.info-fc { font-size: 16px; color: var(--ink-2); margin: 6px 0 2px; }
.info-en { font-size: 12.5px; color: var(--faint); margin: 0 0 12px; }
.info-alert { background: var(--bad-bg); color: var(--bad-ink); padding: 9px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; table-layout: auto; }
.info-table td { padding: 9px 4px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.info-table td.t { white-space: nowrap; text-align: right; font-weight: 700; width: 1%; padding-left: 12px; }
.info-table td.d { color: var(--muted); width: 1%; white-space: nowrap; padding-right: 14px; }
.info-table tr.night td { color: var(--muted); }
.info-en-inline { font-size: 12.5px; color: var(--faint); }
.info-orig { margin-top: 4px; font-size: 12.5px; color: var(--faint); }
.info-orig summary { cursor: pointer; }
.info-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
.info-more { margin-top: 28px; }
.info-more h2 { font-size: 17px; margin: 0 0 10px; }
.info-more ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 2; }
.info-more li { list-style: disc; }

/* ── 계절 달력 ─────────────────────────── */
.cal { max-width: 800px; }
.cal-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.cal-jump a { display: inline-block; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--surface); color: var(--ink-2); font-weight: 600; }
.cal-jump a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cal-month { margin-bottom: 16px; }
.cal-month.now { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cal-month h2 { font-size: 22px; margin: 0 0 6px; font-weight: 800; }
.cal-month h2 small { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.cal-item { border-top: 1px solid var(--line); padding: 11px 0; }
.cal-item summary { cursor: pointer; font-size: 15.5px; line-height: 1.55; }
.cal-item summary .t { font-weight: 700; }
.cal-item summary .w { color: var(--muted); font-size: 14px; }
.cal-cat { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-right: 6px; background: #eef0f2; color: #4b5563; vertical-align: 1px; }
.cal-cat.c-행사 { background: #fdf0e3; color: #8a4b12; }
.cal-cat.c-자연 { background: var(--ok-bg); color: var(--ok-ink); }
.cal-cat.c-한인 { background: #fde8ef; color: #9a2147; }
.cal-cat.c-생활 { background: var(--accent-soft); color: var(--accent-ink); }
.cal-flag { font-size: 12px; color: var(--bad-ink); margin-left: 6px; font-weight: 600; }
.cal-body { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; padding: 8px 0 4px 16px; }
.cal-body .l { color: var(--faint); }

/* ── 테크 브리핑 ─────────────────────────── */
.tb { max-width: 720px; }
.tb-kicker { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; margin: 0 0 6px; }
.tb-date { font-size: 30px; font-weight: 800; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.03em; line-height: 1.3; }
.tb h1.tb-small { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; margin: 0 0 6px; }
.tb-sub { padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.tb-cat { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); background: var(--accent-soft); margin: 26px 0 2px; padding: 3px 11px; border-radius: 999px; border: 0; }
.tb-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0 18px; margin: 0; }
.tb-sum { font-size: 17.5px; line-height: 1.8; color: var(--ink); margin: 0 0 8px; }
.tb-src { font-size: 13px; color: var(--faint); line-height: 1.6; }
.tb-src a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.tb-src a:hover { color: var(--accent); }
.tb-empty { color: var(--muted); font-size: 15px; }
.tb-past { margin-top: 36px; font-size: 14px; color: var(--muted); }
.tb-past a { display: inline-block; margin: 0 6px 8px 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; }
.tb-past a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.home-tb li { padding: 12px 0 !important; }
.home-tb .src { color: var(--faint); font-size: 13px; }

/* ── 가이드 글·목록 (옛 게시판 화면) ─────────────────────────── */
.post-view, .board-header, .post-list-below, .related-posts, .comments-section { background: var(--surface); border: 1px solid var(--line) !important; border-radius: var(--radius); overflow: hidden; }
.post-view { max-width: 800px; margin: 0 auto 20px; }
.post-view-header { padding: 28px 28px 14px !important; border-bottom: 0 !important; background: transparent !important; }
.post-view-header h1 { font-size: 28px !important; font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; margin: 0 0 10px; }
.post-view-meta { color: var(--faint) !important; font-size: 13px !important; }
.post-view-content { padding: 6px 28px 28px !important; font-size: 17px !important; line-height: 1.85 !important; color: var(--ink) !important; }
.post-view-content h3 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; }
.post-view-content h4 { font-size: 18px; font-weight: 750; margin: 26px 0 8px; }
.post-view-content p { margin: 0 0 14px; }
.post-view-content ul, .post-view-content ol { padding-left: 22px; margin: 0 0 16px; }
.post-view-content ul li { list-style: disc; margin-bottom: 6px; }
.post-view-content ol li { list-style: decimal; margin-bottom: 6px; }
.post-view-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-view-content table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 15px; line-height: 1.6; display: block; overflow-x: auto; }
.post-view-content th { background: #f3f2ee; text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.post-view-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ai-content-notice { background: transparent !important; border-top: 1px solid var(--line) !important; color: var(--faint) !important; font-size: 13px !important; padding: 14px 28px !important; }
.post-view-actions { border-top: 1px solid var(--line) !important; padding: 18px !important; }
.btn-like { border-color: var(--accent) !important; color: var(--accent) !important; border-radius: 999px !important; font-size: 14px !important; }
.btn-list { border-radius: 999px; border-color: var(--line); color: var(--ink-2); }
.board-header { padding: 22px 24px !important; margin-bottom: 16px; }
.post-table { font-size: 15px; }
.post-table th { background: #f3f2ee !important; color: var(--muted); font-weight: 600; }
.post-table td { padding: 12px 10px !important; border-bottom: 1px solid var(--line) !important; }
.post-table a { color: var(--ink); }
.pagination a.active, .pagination .active { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.err-actions a.primary { background: var(--accent) !important; border-color: var(--accent) !important; }

/* ── 휴대폰 ─────────────────────────── */
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { padding: 0 16px; }
    main.container { padding-top: 20px; }
    .logo span { display: none; }
    .page-title, .info-page h1, .cal h1, .tb-date { font-size: 25px; }
    .home-h2, .info-h2 { font-size: 18px; margin-top: 32px; }
    .home-hero h1 { font-size: 20px; }
    .now-card, .guide-col, .info-card, .info-more, .cal-month, .tb-empty { padding: 16px 16px; }
    .nav-home { padding: 9px 10px 11px; font-size: 14.5px; }
    .tb-sum { font-size: 16.5px; }
    .post-view-header { padding: 20px 18px 10px !important; }
    .post-view-header h1 { font-size: 23px !important; }
    .post-view-content { padding: 4px 18px 22px !important; font-size: 16px !important; }
    .info-temp { font-size: 36px; }
}
