/* ============================================================
   노블줄눈 — 시공 가이드(웹블로그) 본문
   site.css 위에 얹는 기사 레이어
   ============================================================ */

.post-head {
    padding-top: clamp(36px, 5vw, 72px);
    padding-bottom: clamp(24px, 3vw, 36px);
}

.post-head__title {
    font-family: var(--serif);
    font-size: clamp(26px, 3.4vw, 44px);
    line-height: 1.42;
    letter-spacing: -0.028em;
    margin: 18px 0 20px;
    max-width: 24em;
}

.post-head__lead {
    max-width: 40em;
    font-size: clamp(15px, 1.1vw, 16.5px);
    line-height: 1.95;
    color: var(--ink-2);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--hair);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--muted-2);
}

.post-meta .dot {
    color: var(--hair-2);
}

.post-figure {
    margin: 0 0 clamp(36px, 5vw, 60px);
}

.post-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--paper-3);
}

.post-figure figcaption {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--muted-2);
    letter-spacing: 0.02em;
}

/* ---------- 본문 ---------- */
.article-body {
    font-size: 16.5px;
    line-height: 1.95;
    color: var(--ink-2);
    letter-spacing: -0.002em;
}

.article-body > p {
    margin: 0 0 1.5rem;
    max-width: 40em;
}

.article-body > p:last-child {
    margin-bottom: 0;
}

.article-body h2 {
    font-family: var(--serif);
    font-size: clamp(21px, 1.9vw, 27px);
    line-height: 1.45;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.022em;
    margin: 3.4rem 0 1.15rem;
    padding: 0;
    border: 0;
}

.article-body h3 {
    font-family: var(--serif);
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    font-weight: 400;
    color: var(--ink);
    margin: 2.2rem 0 0.7rem;
    letter-spacing: -0.015em;
}

.article-body h2:first-child,
.article-body h3:first-child {
    margin-top: 0;
}

.article-body strong {
    color: var(--ink);
    font-weight: 500;
}

.article-body a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--bronze-2);
    padding-bottom: 1px;
}

.article-body a:hover {
    border-bottom-color: var(--ink);
}

.article-body ul {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.article-body ul > li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    max-width: 40em;
}

.article-body ul > li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--bronze-2);
    font-size: 0.9em;
    line-height: 2.1;
}

.article-body ol {
    list-style: none;
    counter-reset: item;
    margin: 0 0 1.5rem;
    padding: 0;
}

.article-body ol > li {
    counter-increment: item;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.55rem;
}

.article-body ol > li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--serif);
    font-size: 12px;
    color: var(--bronze);
    line-height: 2.7;
}

.article-body figure {
    margin: 2.4rem 0;
}

.article-body figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--paper-3);
}

.article-body figcaption {
    margin-top: 10px;
    font-size: 11.5px;
    line-height: 1.8;
    color: var(--muted-2);
}

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

/* ---------- 표 ---------- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1.8rem;
    border-top: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.75;
    min-width: 520px;
}

.table-wrap thead th {
    background: transparent;
    color: var(--muted-2);
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    padding: 11px 14px 11px 0;
    border-bottom: 1px solid var(--hair);
    white-space: nowrap;
}

.table-wrap tbody th,
.table-wrap tbody td {
    padding: 13px 14px 13px 0;
    border-bottom: 1px solid var(--hair);
    text-align: left;
    vertical-align: top;
}

.table-wrap tbody th {
    background: transparent;
    color: var(--ink);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.table-wrap tbody td {
    color: var(--ink-2);
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.table-caption {
    font-size: 11.5px;
    color: var(--muted-2);
    margin: -0.9rem 0 1.8rem;
}

.table-hint {
    display: none;
    font-size: 11px;
    color: var(--muted-2);
    margin: -1.2rem 0 1.8rem;
}

/* ---------- 요약 ---------- */
.summary-box {
    background: transparent;
    border-left: 1px solid var(--bronze);
    border-radius: 0;
    padding: 6px 0 6px 26px;
    margin: 0 0 2.8rem;
}

.summary-box .summary-title {
    display: block;
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.26em;
    color: var(--bronze);
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.summary-box ul {
    margin: 0;
}

.summary-box ul > li {
    color: var(--ink-2);
    margin-bottom: 0.6rem;
    line-height: 1.9;
    font-size: 14.5px;
    max-width: 40em;
}

.summary-box ul > li:last-child {
    margin-bottom: 0;
}

.summary-box ul > li::before {
    content: none;
}

/* ---------- 노트 / 체크리스트 ---------- */
.note-box {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    border-radius: 0;
    padding: 18px 0;
    margin: 0 0 1.9rem;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-2);
}

.note-box p {
    margin: 0 0 0.6rem;
}

.note-box p:last-child {
    margin-bottom: 0;
}

.note-box .note-title {
    display: block;
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 0.7rem;
}

.checklist {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--ink);
    border-radius: 0;
    padding: 8px 0 0;
    margin: 0 0 1.9rem;
}

.checklist ul {
    margin: 0;
}

.checklist ul > li {
    border-bottom: 1px solid var(--hair);
    padding: 11px 0 11px 1.7rem;
    margin: 0;
}

.checklist ul > li::before {
    content: "—";
    top: 0;
    width: auto;
    height: auto;
    background: none;
    color: var(--bronze-2);
    font-size: 0.9em;
    line-height: 2.15;
}

/* ---------- FAQ ---------- */
.faq-section {
    margin-top: clamp(44px, 6vw, 72px);
}

.faq-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--hair);
    border-radius: 0;
    margin: 0;
    overflow: visible;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--ink);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 19px 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 15.5px;
    color: var(--ink);
    line-height: 1.65;
}

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

.faq-item summary::after {
    content: "+";
    font-family: var(--sans);
    color: var(--muted-2);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item[open] summary {
    border-bottom: 0;
}

.faq-a {
    padding: 0 0 22px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.95;
    max-width: 44em;
}

.faq-a p {
    margin: 0;
}

/* ---------- CTA / 이전 글 ---------- */
.article-cta {
    display: grid;
    grid-template-columns: 1.15fr auto;
    gap: clamp(20px, 3vw, 44px);
    align-items: end;
    margin-top: clamp(44px, 6vw, 72px);
    padding-top: 28px;
    border-top: 1px solid var(--ink);
}

.article-cta h2 {
    font-family: var(--serif);
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.55;
    margin: 10px 0 10px;
}

.article-cta p {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 34em;
}

.article-cta__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 4px;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--hair);
    margin-top: clamp(44px, 6vw, 72px);
}

.post-nav a {
    padding: 20px 24px 20px 0;
    display: block;
}

.post-nav a + a {
    border-left: 1px solid var(--hair);
    padding-left: 24px;
}

.post-nav .pn-label {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.post-nav .pn-title {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.6;
    margin-top: 8px;
    color: var(--ink);
}

.post-nav a:hover .pn-title {
    color: var(--bronze);
}

/* 목록 */
.blog-list {
    border-top: 1px solid var(--ink);
}

.blog-list a {
    display: grid;
    grid-template-columns: 184px 1fr 110px;
    grid-template-areas: "thumb main date";
    gap: clamp(16px, 3vw, 40px);
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--hair);
    transition: background .3s ease;
}

.blog-list .bl-thumb {
    grid-area: thumb;
    width: 184px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--paper-3);
}

.blog-list .bl-main {
    grid-area: main;
    min-width: 0;
}

.blog-list a:hover {
    background: rgba(239, 237, 232, .55);
}

.blog-list .bl-cat {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 6px;
}

.blog-list .bl-title {
    font-family: var(--serif);
    font-size: clamp(16px, 1.4vw, 21px);
    line-height: 1.6;
    color: var(--ink);
}

.blog-list .bl-desc {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.85;
    color: var(--muted);
    margin-top: 7px;
    max-width: 44em;
}

.blog-list .bl-date {
    grid-area: date;
    font-size: 11.5px;
    color: var(--muted-2);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
    .article-body {
        font-size: 15.5px;
        line-height: 1.92;
    }

    .article-body h2 {
        margin-top: 2.6rem;
    }

    .table-hint {
        display: block;
    }

    .faq-item summary {
        font-size: 15px;
    }

    .article-cta {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav a + a {
        border-left: 0;
        border-top: 1px solid var(--hair);
        padding-left: 0;
    }

    .blog-list a {
        grid-template-columns: 104px 1fr;
        grid-template-areas: "thumb main" "thumb date";
        row-gap: 6px;
        align-items: start;
        padding: 18px 0;
    }

    .blog-list .bl-thumb {
        width: 104px;
    }

    .blog-list .bl-date {
        text-align: left;
    }

    .post-figure img {
        aspect-ratio: 4 / 3;
    }
}

/* 목록 상단 커버 */
.blog-cover {
    margin: 0 0 clamp(28px, 4vw, 52px);
}

.blog-cover img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    background: var(--paper-3);
}

.blog-cover figcaption {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--muted-2);
}

@media (max-width: 760px) {
    .blog-cover img {
        aspect-ratio: 16 / 10;
    }
}
