:root{--ink:#17202a;--muted:#66707a;--line:#e6e8eb;--soft:#f5f7f8;--accent:#155eef;--wrap:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.65}
a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.wrap{width:min(var(--wrap),calc(100% - 40px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-weight:800;font-size:20px;letter-spacing:-.03em}
.main-nav{display:flex;gap:24px;font-size:15px;font-weight:650}.main-nav a:hover{color:var(--accent)}
.hero{padding:92px 0 82px;background:linear-gradient(135deg,#f7f9fb 0%,#eef3f7 100%)}.hero h1{font-size:clamp(42px,7vw,76px);line-height:1.08;margin:10px 0 24px;letter-spacing:-.055em}
.hero p{max-width:720px;color:var(--muted);font-size:19px}.eyebrow{display:block;font-size:12px;letter-spacing:.16em;font-weight:800;color:var(--accent);margin-bottom:8px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:10px;border:1px solid #ccd1d6;background:#fff;font-weight:750}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}.btn.small{min-height:40px;padding:0 14px}.section{padding:72px 0}.section-soft{background:var(--soft)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.section-head h2,.cta h2{font-size:32px;letter-spacing:-.035em;margin:0}.section-head>a{font-weight:700;color:var(--accent)}
.issue-grid,.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.issue-card{min-height:150px;border:1px solid var(--line);border-radius:16px;padding:26px;display:flex;flex-direction:column;justify-content:space-between;background:#fff}
.issue-card strong{font-size:22px}.issue-card span{color:var(--muted);font-weight:650}.post-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.post-card img{aspect-ratio:16/10;object-fit:cover;width:100%}
.post-body{padding:20px}.post-body h3{font-size:20px;line-height:1.35;margin:7px 0 10px;letter-spacing:-.025em}.post-body p{color:var(--muted);margin:0;font-size:14px}.meta{color:var(--muted);font-size:13px;font-weight:650}
.guide-list{border-top:1px solid var(--line)}.guide-list a{display:grid;grid-template-columns:180px 1fr 30px;gap:20px;align-items:center;padding:20px 4px;border-bottom:1px solid var(--line)}
.guide-list span{color:var(--muted);font-size:13px}.guide-list strong{font-size:18px}.guide-list em{font-style:normal;color:var(--accent);font-weight:900}
.cta{padding:64px 0;background:#17202a;color:#fff}.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}.cta p{color:#c7ced5}.cta .btn:not(.primary){border-color:#5d6670;background:transparent;color:#fff}.cta .btn.primary{background:#fff;color:#17202a;border-color:#fff}
.site-footer{padding:38px 0;border-top:1px solid var(--line)}.footer-grid{display:flex;justify-content:space-between;gap:30px}.site-footer p{margin:4px 0;color:var(--muted)}.footer-links{display:flex;gap:18px;align-items:center;font-size:14px}
.page-head{padding:72px 0 38px;border-bottom:1px solid var(--line)}.page-head h1,.article-head h1{font-size:clamp(38px,6vw,62px);line-height:1.12;letter-spacing:-.05em;margin:6px 0 18px}.page-head p,.article-head p{max-width:760px;color:var(--muted);font-size:18px}
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:18px}.filters select{height:40px;padding:0 38px 0 12px;border:1px solid #ccd1d6;border-radius:9px;background:#fff}.result-count{color:var(--muted);margin:0 0 18px}
.article-head{padding:64px 0 30px}.article-layout{max-width:900px}.article-main{max-width:860px;margin:0 auto}.hero-image{width:100%;border-radius:18px;border:1px solid var(--line)}
.fact-grid{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:24px 0 46px}.fact-grid div{padding:18px;border-right:1px solid var(--line)}.fact-grid div:last-child{border-right:0}.fact-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.article-section{padding:14px 0 30px}.article-section h2{font-size:28px;letter-spacing:-.035em}.article-section p{font-size:17px;color:#3d4650}.article-content h2{margin-top:34px}
.link-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.link-cards a{padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}.link-cards span{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.link-cards strong{font-size:17px}
.notice-box{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.notice-box.good{border-color:#b9dfc6;background:#f3fbf6}.notice-box.bad{border-color:#e5baba;background:#fff7f7}.notice-box p{margin-bottom:0;color:var(--muted)}
.health-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:18px}.health-grid div{padding:18px;border:1px solid var(--line);border-radius:12px}.health-grid span{display:block;font-size:12px;color:var(--muted)}.health-grid strong{font-size:26px}
@media(max-width:820px){
 .header-inner{height:auto;padding:15px 0;align-items:flex-start}.main-nav{gap:12px;flex-wrap:wrap;justify-content:flex-end;font-size:13px}
 .hero{padding:62px 0}.section{padding:52px 0}.issue-grid,.card-grid{grid-template-columns:1fr 1fr}.fact-grid{grid-template-columns:1fr 1fr}.fact-grid div:nth-child(2){border-right:0}.fact-grid div:nth-child(-n+2){border-bottom:1px solid var(--line)}
 .cta-inner,.footer-grid{align-items:flex-start;flex-direction:column}.guide-list a{grid-template-columns:1fr 24px}.guide-list a span{grid-column:1/-1}.link-cards{grid-template-columns:1fr}.health-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
 .wrap{width:min(100% - 28px,var(--wrap))}.brand{font-size:18px}.main-nav{display:none}.hero h1{font-size:42px}.hero p{font-size:16px}
 .issue-grid,.card-grid{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.section-head h2,.cta h2{font-size:28px}.page-head{padding-top:48px}.health-grid{grid-template-columns:1fr}
}

.video-block{margin:28px 0 42px}
.section-mini-head h2{font-size:28px;letter-spacing:-.035em;margin:0 0 16px}
.video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:16px;overflow:hidden}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-link{margin:10px 2px 0;text-align:right}
.video-link a{color:var(--accent);font-weight:750}


/* =========================================================
   2026-08-17 NEWHOME COMMON FRAME
   - Header/footer remain shared includes.
   - Homepage contains only hero + 3 damage gateways.
   - ESTIMATE & CONTACT is supplied by includes/footer.php.
   ========================================================= */

.home-damage-section{
    background:#fff;
}

.common-site-cta{
    margin-top:0;
}

/* Homepage gateway remains 3 columns on desktop and stacks on mobile. */
@media (min-width:821px){
    .home-damage-section .issue-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media (max-width:560px){
    .home-damage-section .issue-grid{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   2026-08-17 SEASONAL HOMEPAGE HERO
   - Main H1 stays fixed.
   - Subtitle changes by date on the server.
   - Original image files are not edited; visual softening is CSS-only.
   ========================================================= */
.seasonal-hero{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:#f3f6f9;
}
.seasonal-hero .hero-media{
    position:absolute;
    left:-12px;
    top:-12px;
    width:calc(100% + 24px);
    height:calc(100% + 24px);
    z-index:0;
    object-fit:cover;
    object-position:center center;
    max-width:none;
    display:block;
    filter:blur(2px) saturate(.76) contrast(.94);
    transform:scale(1.025);
    opacity:.82;
    pointer-events:none;
}
.seasonal-hero .hero-veil{
    position:absolute;
    inset:0;
    z-index:1;
    background:linear-gradient(90deg,
        rgba(247,249,251,.92) 0%,
        rgba(247,249,251,.84) 34%,
        rgba(247,249,251,.68) 62%,
        rgba(247,249,251,.46) 100%);
    pointer-events:none;
}
.seasonal-hero .hero-content{
    position:relative;
    z-index:2;
}
.seasonal-hero h1{
    text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.seasonal-hero p{
    max-width:760px;
    color:#5f6974;
}

@media(max-width:820px){
    .seasonal-hero .hero-media{
        object-position:60% center;
        filter:blur(2px) saturate(.70) contrast(.92);
        opacity:.64;
    }
    .seasonal-hero .hero-veil{
        background:linear-gradient(90deg,
            rgba(247,249,251,.96) 0%,
            rgba(247,249,251,.91) 55%,
            rgba(247,249,251,.76) 100%);
    }
}

@media(max-width:560px){
    .seasonal-hero .hero-media{
        object-position:68% center;
        opacity:.54;
    }
    .seasonal-hero .hero-veil{
        background:rgba(247,249,251,.86);
    }
}

/* =========================================================
   2026-08-18 HOME DAMAGE CARD — VISUAL TYPE
   - Uses the supplied damage photo as-is.
   - Image is cropped only by CSS (object-fit); source file is unchanged.
   - Other two cards stay unchanged until their photos are supplied.
   ========================================================= */
.home-damage-section .issue-card-visual{
    padding:0;
    overflow:hidden;
    min-height:0;
    display:block;
    background:#fff;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-damage-section .issue-card-visual:hover{
    transform:translateY(-2px);
    border-color:#d8dde3;
    box-shadow:0 12px 30px rgba(23,32,42,.08);
}
.home-damage-section .issue-card-image{
    display:block;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#eef1f4;
}
.home-damage-section .issue-card-image img{
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center 52%;
    transition:transform .22s ease;
}
.home-damage-section .issue-card-visual:hover .issue-card-image img{
    transform:scale(1.018);
}
.home-damage-section .issue-card-body{
    min-height:116px;
    padding:22px 24px 20px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:18px;
}
.home-damage-section .issue-card-body strong{
    display:block;
    font-size:22px;
    line-height:1.35;
    letter-spacing:-.025em;
}
.home-damage-section .issue-card-link{
    display:block;
    color:var(--muted);
    font-weight:650;
}

@media(max-width:560px){
    .home-damage-section .issue-card-image{
        aspect-ratio:16/9;
    }
    .home-damage-section .issue-card-body{
        min-height:104px;
        padding:20px;
    }
}


/* =========================================================
   2026-08-18 DAMAGE → 6 DOCUMENT GATEWAY
   - One shared screen for linear / alligator / mastic.
   - 1~3 large cards, 4~6 compact cards.
   - Top and bottom back buttons are always present.
   ========================================================= */
.document-gateway{
    background:#fff;
    padding:48px 0 68px;
}
.gateway-back-row{margin-bottom:28px}
.gateway-back-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border:1px solid #d7dde4;
    border-radius:10px;
    background:#fff;
    color:#4f5c68;
    font-size:16px;
    font-weight:800;
    transition:background .18s ease,border-color .18s ease;
}
.gateway-back-btn:hover{background:#f6f8fa;border-color:#cfd6de}
.gateway-heading h1{
    margin:4px 0 10px;
    font-size:clamp(34px,4.5vw,48px);
    line-height:1.14;
    letter-spacing:-.045em;
}
.gateway-heading p{
    margin:0;
    color:var(--muted);
    font-size:17px;
}
.gateway-rule{height:1px;background:#e8ebef;margin:32px 0}
.gateway-top-cards{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}
.gateway-doc-card{
    border:1px solid #dfe4ea;
    border-radius:18px;
    background:#fff;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.gateway-doc-card:hover{
    transform:translateY(-2px);
    border-color:#d4dae1;
    box-shadow:0 10px 28px rgba(17,31,45,.08);
}
.gateway-large{
    min-height:292px;
    padding:30px 28px 26px;
    display:flex;
    flex-direction:column;
}
.gateway-rank{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:24px;
    background:var(--accent);
    color:#fff;
    font-weight:900;
    font-size:15px;
}
.gateway-doc-card h3{
    margin:0;
    font-size:25px;
    line-height:1.38;
    letter-spacing:-.035em;
}
.gateway-large p{
    margin:16px 0 0;
    color:var(--muted);
    font-size:16px;
    line-height:1.65;
}
.gateway-doc-link{
    margin-top:auto;
    padding-top:24px;
    color:#51606d;
    font-size:15px;
    font-weight:850;
}
.gateway-more-label{
    margin:28px 0 13px;
    color:#7a8691;
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
}
.gateway-small-cards{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.gateway-small{
    min-height:92px;
    padding:18px 20px;
    display:flex;
    align-items:center;
    gap:14px;
    border-radius:14px;
}
.gateway-small .gateway-rank{
    width:30px;
    height:30px;
    min-width:30px;
    margin:0;
    background:#e8eef8;
    color:#315b92;
    font-size:13px;
}
.gateway-small h3{
    font-size:17px;
    line-height:1.45;
    letter-spacing:-.025em;
}
.gateway-bottom-back-row{
    margin-top:34px;
    padding-top:26px;
    border-top:1px solid #e8ebef;
}
.gateway-bottom-back-btn{min-width:190px}

@media(max-width:820px){
    .document-gateway{padding:40px 0 56px}
    .gateway-top-cards,.gateway-small-cards{grid-template-columns:1fr}
    .gateway-large{min-height:240px}
    .gateway-small{min-height:82px}
}
@media(max-width:560px){
    .document-gateway{padding-top:30px}
    .gateway-back-row{margin-bottom:22px}
    .gateway-heading h1{font-size:34px}
    .gateway-heading p{font-size:16px}
    .gateway-rule{margin:26px 0}
    .gateway-large{min-height:0;padding:24px 22px}
    .gateway-doc-card h3{font-size:22px}
    .gateway-large p{font-size:15px}
    .gateway-small h3{font-size:17px}
    .gateway-bottom-back-row{margin-top:26px;padding-top:22px}
    .gateway-bottom-back-btn{
        width:100%;
        min-height:54px;
        font-size:17px;
    }
}

/* =========================================================
   2026-08-18 REPAIR DOCUMENT DETAIL
   - Minimal text back link at top and bottom.
   - The document content starts immediately; no kicker/meta/summary header.
   - Three related project cards connect the guide to real case studies.
   ========================================================= */
.repair-detail{
    background:#fff;
    padding:34px 0 0;
}
.repair-detail-shell{
    max-width:1040px;
}
.repair-back-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border:1px solid #d7dde4;
    border-radius:10px;
    background:#fff;
    color:#4f5c68;
    font-size:16px;
    line-height:1.4;
    font-weight:800;
    text-decoration:none;
    transition:background .18s ease,border-color .18s ease;
}
.repair-back-link:hover{
    background:#f6f8fa;
    border-color:#cfd6de;
    color:#4f5c68;
    text-decoration:none;
}
.repair-back-top{
    margin-bottom:24px;
}
.repair-doc-title{
    max-width:820px;
    margin:0 0 28px;
    color:var(--ink);
    font-size:42px;
    line-height:1.28;
    font-weight:900;
    letter-spacing:-.045em;
}
.repair-doc-body{
    max-width:820px;
    color:#2d3741;
    font-size:18px;
    line-height:1.9;
}
.repair-doc-body .repair-doc-lead{
    margin:0 0 42px;
    color:#222d37;
    font-size:21px;
    line-height:1.8;
    font-weight:650;
    letter-spacing:-.018em;
}
.repair-doc-body h2{
    margin:48px 0 16px;
    color:var(--ink);
    font-size:30px;
    line-height:1.38;
    letter-spacing:-.04em;
}
.repair-doc-body p{
    margin:0 0 22px;
}
.repair-doc-body ul{
    margin:8px 0 28px;
    padding-left:1.25em;
}
.repair-doc-body li{
    margin:8px 0;
    padding-left:.2em;
}
.repair-point-box{
    margin:30px 0 38px;
    padding:24px 26px;
    border:1px solid #e0e5ea;
    border-radius:15px;
    background:#f5f7f9;
    color:#394550;
}
.repair-point-box strong{
    display:block;
    margin-bottom:8px;
    color:var(--ink);
    font-size:17px;
}
.repair-related-cases{
    margin-top:58px;
    padding-top:0;
}
.repair-section-rule{
    height:1px;
    margin-bottom:32px;
    background:#e6eaee;
}
.repair-related-cases h2{
    margin:0 0 22px;
    font-size:26px;
    line-height:1.35;
    letter-spacing:-.035em;
}
.repair-case-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.repair-case-card{
    overflow:hidden;
    border:1px solid #e0e5ea;
    border-radius:14px;
    background:#fff;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.repair-case-card:hover{
    transform:translateY(-2px);
    border-color:#d4dbe2;
    box-shadow:0 10px 26px rgba(20,34,48,.07);
}
.repair-case-image{
    display:block;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#eef1f4;
}
.repair-case-image img{
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
}
.repair-case-body{
    min-height:142px;
    padding:17px 18px 16px;
    display:flex;
    flex-direction:column;
}
.repair-case-meta{
    display:block;
    margin-bottom:7px;
    color:#84909a;
    font-size:12px;
    line-height:1.45;
}
.repair-case-body strong{
    display:block;
    color:var(--ink);
    font-size:16px;
    line-height:1.48;
    letter-spacing:-.02em;
}
.repair-case-link{
    display:block;
    margin-top:auto;
    padding-top:15px;
    color:#65727e;
    font-size:13px;
    font-weight:800;
}
.repair-bottom-back{
    margin:30px 0 48px;
    padding-top:22px;
    border-top:1px solid #eceff2;
}

@media(max-width:820px){
    .repair-detail{padding-top:28px}
    .repair-case-grid{grid-template-columns:1fr}
    .repair-case-card{display:grid;grid-template-columns:150px minmax(0,1fr)}
    .repair-case-image{height:100%;aspect-ratio:auto;min-height:130px}
    .repair-case-body{min-height:130px}
}
@media(max-width:560px){
    .repair-back-top{margin-bottom:20px}
    .repair-doc-title{font-size:32px;line-height:1.3;margin-bottom:24px;letter-spacing:-.04em}
    .repair-doc-body{font-size:17px;line-height:1.85}
    .repair-doc-body .repair-doc-lead{font-size:19px;line-height:1.75;margin-bottom:34px}
    .repair-doc-body h2{font-size:25px;margin-top:40px}
    .repair-point-box{padding:20px;margin:26px 0 32px}
    .repair-related-cases{margin-top:48px}
    .repair-related-cases h2{font-size:23px}
    .repair-case-grid{gap:12px}
    .repair-case-card{grid-template-columns:118px minmax(0,1fr)}
    .repair-case-image{min-height:118px}
    .repair-case-body{min-height:118px;padding:14px}
    .repair-case-body strong{font-size:15px}
    .repair-case-meta{font-size:11px}
    .repair-case-link{font-size:12px;padding-top:10px}
    .repair-bottom-back{margin-bottom:36px}
}


/* =========================================================
   2026-08-18 DAMAGE DOCUMENT POOL SWITCH
   - Separate representative-document pool and FAQ pool.
   - Both pools are ranked dynamically for the selected damage type.
   ========================================================= */
.gateway-pool-switch{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    max-width:720px;
    margin-top:30px;
}
.gateway-pool-tab{
    min-height:68px;
    padding:14px 18px;
    border:1px solid #dfe4ea;
    border-radius:14px;
    background:#fff;
    color:#46535f;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.gateway-pool-tab:hover{
    border-color:#cbd3dc;
    background:#f8fafc;
}
.gateway-pool-tab strong{
    font-size:17px;
    line-height:1.35;
    letter-spacing:-.025em;
}
.gateway-pool-tab span{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    height:28px;
    padding:0 9px;
    border-radius:999px;
    background:#eef2f6;
    color:#697682;
    font-size:13px;
    font-weight:850;
}
.gateway-pool-tab.is-active{
    border-color:#315b92;
    background:#f3f7fc;
    box-shadow:0 0 0 1px rgba(49,91,146,.06);
    color:#244d83;
}
.gateway-pool-tab.is-active span{
    background:#315b92;
    color:#fff;
}
.gateway-pool-label{
    margin:0 0 16px;
    color:#66737f;
    font-size:14px;
    font-weight:850;
}
.gateway-faq-card .gateway-rank{
    background:#566879;
}
.gateway-small.gateway-faq-card .gateway-rank{
    background:#edf0f3;
    color:#566879;
}
.gateway-empty-pool{
    padding:30px;
    border:1px solid #e0e5ea;
    border-radius:16px;
    background:#f8fafb;
}
.gateway-empty-pool strong{
    display:block;
    font-size:18px;
    margin-bottom:8px;
}
.gateway-empty-pool p{
    margin:0;
    color:var(--muted);
    font-size:15px;
}

@media(max-width:560px){
    .gateway-pool-switch{
        grid-template-columns:1fr;
        gap:9px;
        margin-top:24px;
    }
    .gateway-pool-tab{
        min-height:58px;
        padding:12px 15px;
    }
    .gateway-pool-tab strong{font-size:16px}
}

/* =========================================================
   2026-08-18 RELATED DOCUMENT CARDS
   - Detail-page related documents use the same compact card
     language as the 4/5/6 question cards in the damage gateway.
   ========================================================= */
.repair-related-docs{
    margin-top:38px;
}
.repair-related-docs h2{
    margin:0 0 22px;
    color:var(--ink);
    font-size:26px;
    line-height:1.35;
    letter-spacing:-.035em;
}
.repair-doc-link-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.repair-doc-link-card{
    min-height:108px;
    padding:20px 22px;
    border:1px solid #e0e5ea;
    border-radius:14px;
    background:#fff;
    color:var(--ink);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:16px;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.repair-doc-link-card:hover{
    transform:translateY(-2px);
    border-color:#d4dbe2;
    background:#fbfcfd;
    box-shadow:0 10px 26px rgba(20,34,48,.06);
    text-decoration:none;
}
.repair-doc-link-card strong{
    display:block;
    color:var(--ink);
    font-size:17px;
    line-height:1.48;
    letter-spacing:-.025em;
}
.repair-doc-link-card span{
    display:block;
    margin-top:auto;
    color:#65727e;
    font-size:13px;
    line-height:1.4;
    font-weight:800;
}

@media(max-width:820px){
    .repair-doc-link-grid{
        grid-template-columns:1fr;
        gap:12px;
    }
    .repair-doc-link-card{
        min-height:92px;
        padding:18px 20px;
    }
}
@media(max-width:560px){
    .repair-related-docs{margin-top:32px}
    .repair-related-docs h2{font-size:23px}
    .repair-doc-link-card strong{font-size:16px}
    .repair-doc-link-card span{font-size:12px}
}

/* =========================================================
   2026-08-18 FULL DOCUMENT READER — BLOG STYLE
   - GUIDE/COST 전문문서는 읽기 폭을 제한하고 문단·소제목·이미지·표를 복원한다.
   - 원본 이미지는 자르지 않고 전체 비율로 표시한다.
   - 표는 모바일에서 좌우 스크롤한다.
   ========================================================= */
.document-full-detail .repair-detail-shell{
    max-width:1040px;
}
.document-full-detail .repair-doc-title{
    max-width:860px;
    margin-bottom:36px;
}
.document-full-body{
    max-width:820px;
    color:#29343e;
    font-size:18px;
    line-height:1.95;
    font-weight:450;
    word-break:keep-all;
    overflow-wrap:break-word;
}
.document-full-body > p:first-child,
.document-full-body .document-rich-html > p:first-child{
    color:#222d37;
    font-size:20px;
    line-height:1.9;
}
.document-full-body p{
    margin:0 0 26px;
}
.document-full-body h2{
    margin:58px 0 20px;
    padding-top:2px;
    color:var(--ink);
    font-size:29px;
    line-height:1.42;
    font-weight:850;
    letter-spacing:-.035em;
}
.document-full-body h3{
    margin:40px 0 14px;
    color:var(--ink);
    font-size:23px;
    line-height:1.45;
    letter-spacing:-.025em;
}
.document-full-body ul,
.document-full-body ol{
    margin:10px 0 30px;
    padding-left:1.35em;
}
.document-full-body li{
    margin:8px 0;
}
.document-full-body blockquote{
    margin:34px 0;
    padding:22px 24px;
    border:1px solid #e0e5ea;
    border-left:4px solid #aeb9c4;
    border-radius:12px;
    background:#f6f8fa;
    color:#394550;
}
.document-figure{
    margin:40px 0 42px;
}
.document-figure img,
.document-full-body .document-rich-html img{
    display:block;
    width:auto;
    max-width:100%;
    height:auto;
    margin:0 auto;
    border-radius:14px;
    border:1px solid #e5e9ed;
    background:#f5f7f8;
}
.document-figure figcaption,
.document-full-body .document-rich-html figcaption,
.document-caption-text{
    margin:12px auto 0;
    color:#7b8792;
    font-size:13px;
    line-height:1.65;
    text-align:center;
    font-weight:550;
}
.document-media-missing{
    margin:34px 0;
    padding:28px 20px;
    border:1px dashed #d8dee5;
    border-radius:14px;
    background:#f8fafb;
    color:#89949f;
    font-size:14px;
    text-align:center;
}
.document-table-scroll{
    width:100%;
    margin:34px 0 42px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border:1px solid #dfe4e9;
    border-radius:14px;
    background:#fff;
}
.document-table{
    width:100%;
    min-width:620px;
    border-collapse:collapse;
    border-spacing:0;
    font-size:15px;
    line-height:1.65;
}
.document-table th,
.document-table td{
    padding:15px 16px;
    border-right:1px solid #e3e7eb;
    border-bottom:1px solid #e3e7eb;
    text-align:left;
    vertical-align:top;
    word-break:keep-all;
}
.document-table th{
    background:#f4f6f8;
    color:#24303b;
    font-weight:800;
}
.document-table tr:last-child td{
    border-bottom:0;
}
.document-table th:last-child,
.document-table td:last-child{
    border-right:0;
}
.document-full-body .document-rich-html table{
    width:100%;
    border-collapse:collapse;
    margin:34px 0 42px;
    font-size:15px;
}
.document-full-body .document-rich-html th,
.document-full-body .document-rich-html td{
    padding:14px 15px;
    border:1px solid #dfe4e9;
    vertical-align:top;
}
.document-full-body .document-rich-html th{
    background:#f4f6f8;
}
.document-full-body a{
    color:#315b92;
    text-decoration:underline;
    text-underline-offset:3px;
}

@media(max-width:820px){
    .document-full-detail .repair-doc-title{max-width:820px}
    .document-full-body{max-width:100%;font-size:17px;line-height:1.9}
    .document-full-body > p:first-child,
    .document-full-body .document-rich-html > p:first-child{font-size:19px}
    .document-full-body h2{font-size:26px;margin-top:48px}
    .document-full-body h3{font-size:21px}
}
@media(max-width:560px){
    .document-full-detail .repair-doc-title{margin-bottom:28px}
    .document-full-body{font-size:16px;line-height:1.88;word-break:normal}
    .document-full-body > p:first-child,
    .document-full-body .document-rich-html > p:first-child{font-size:18px;line-height:1.82}
    .document-full-body p{margin-bottom:22px}
    .document-full-body h2{font-size:24px;line-height:1.42;margin:42px 0 16px}
    .document-full-body h3{font-size:20px;margin-top:34px}
    .document-figure{margin:30px 0 34px}
    .document-figure img,
    .document-full-body .document-rich-html img{border-radius:10px}
    .document-table-scroll{margin:28px 0 34px;border-radius:10px}
    .document-table{min-width:560px;font-size:14px}
    .document-table th,.document-table td{padding:12px 13px}
}


/* =========================================================
   2026-08-18 FULL DOCUMENT READER — YOUTUBE
   - YouTube URL / 영상 마커 / site_media VIDEO를 본문 위치에 반응형으로 표시한다.
   ========================================================= */
.document-video{
    width:100%;
    margin:40px 0 44px;
}
.document-video-frame{
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;
    overflow:hidden;
    border:1px solid #dfe4e9;
    border-radius:14px;
    background:#101214;
    box-shadow:0 10px 28px rgba(20,34,48,.08);
}
.document-video-frame iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}
.document-video figcaption{
    margin:12px auto 0;
    color:#7b8792;
    font-size:13px;
    line-height:1.65;
    text-align:center;
    font-weight:650;
}
.document-video-link{
    margin:20px 0 28px;
}
.document-video-link a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding:10px 15px;
    border:1px solid #dfe4e9;
    border-radius:10px;
    background:#fff;
    font-weight:750;
    text-decoration:none;
}
.document-rich-html iframe[src*="youtube.com"],
.document-rich-html iframe[src*="youtube-nocookie.com"]{
    max-width:100%;
}
@media(max-width:560px){
    .document-video{margin:30px 0 34px}
    .document-video-frame{border-radius:10px}
    .document-video figcaption{font-size:12px}
}

.document-attached-videos{
    margin:54px 0 10px;
    padding-top:6px;
    border-top:1px solid #e4e8ec;
}
.document-attached-videos > h2{
    margin-top:34px;
}

/* =========================================================
   2026-08-18 FULL DOCUMENT READER — CENTERED READING COLUMN
   - 전문문서 본문을 화면 중앙의 읽기 열로 배치한다.
   - 제목/본문/상하단 뒤로가기는 같은 기준선에 맞춘다.
   - 관련 시공사례/관련문서는 넓은 shell 안에서 중앙 배치한다.
   ========================================================= */
.document-full-detail .repair-detail-shell{
    max-width:1040px;
    margin-left:auto;
    margin-right:auto;
}
.document-full-detail .repair-doc-title{
    max-width:820px;
    margin-left:auto;
    margin-right:auto;
}
.document-full-detail .document-full-body{
    width:100%;
    max-width:820px;
    margin-left:auto;
    margin-right:auto;
}
.document-full-detail .repair-bottom-back{
    width:100%;
    max-width:820px;
    margin-left:auto;
    margin-right:auto;
}
@media(min-width:821px){
    .document-full-detail .repair-back-top{
        margin-left:110px;
    }
}
@media(max-width:820px){
    .document-full-detail .repair-detail-shell,
    .document-full-detail .repair-doc-title,
    .document-full-detail .document-full-body,
    .document-full-detail .repair-bottom-back{
        max-width:100%;
    }
}

/* =========================================================
   2026-08-18 FULL DOCUMENT READER — MOBILE TABLE FIT
   - 모바일 표를 가로 스크롤 없이 본문 폭 안에 맞춘다.
   - 긴 문구는 셀 안에서 자동 줄바꿈한다.
   ========================================================= */
@media(max-width:560px){
    .document-table-scroll{
        overflow-x:hidden;
        -webkit-overflow-scrolling:auto;
    }
    .document-table{
        width:100%;
        min-width:0;
        table-layout:fixed;
        font-size:12px;
        line-height:1.5;
    }
    .document-table th,
    .document-table td{
        padding:9px 7px;
        word-break:break-word;
        overflow-wrap:anywhere;
        white-space:normal;
    }
    .document-full-body .document-rich-html table{
        width:100% !important;
        max-width:100% !important;
        table-layout:fixed;
        font-size:12px;
        line-height:1.5;
    }
    .document-full-body .document-rich-html th,
    .document-full-body .document-rich-html td{
        padding:9px 7px;
        word-break:break-word;
        overflow-wrap:anywhere;
        white-space:normal;
    }
}


/* =========================================================
   2026-08-18 DOCUMENT RELATED SECTION HEADINGS
   - Match project.php section language: eyebrow + large title.
   - Content cards/ranking remain unchanged.
   ========================================================= */
.document-full-detail .document-related-section-head{
    margin-bottom:26px;
}
.document-full-detail .repair-related-cases .document-related-section-head h2,
.document-full-detail .repair-related-docs .document-related-section-head h2{
    margin:0;
    font-size:32px;
    line-height:1.3;
    letter-spacing:-.035em;
}
@media(max-width:560px){
    .document-full-detail .document-related-section-head{
        margin-bottom:22px;
    }
    .document-full-detail .repair-related-cases .document-related-section-head h2,
    .document-full-detail .repair-related-docs .document-related-section-head h2{
        margin:0;
        font-size:28px;
        line-height:1.3;
    }
}


/* =========================================================
   2026-08-18 REPAIR GUIDE RELATED SECTION HEADINGS
   - Match project.php / document.php section language.
   - Existing related cards and ranking remain unchanged.
   ========================================================= */
.repair-detail .repair-guide-related-section-head{
    margin-bottom:26px;
}
.repair-detail .repair-guide-related-section-head h2{
    margin:0;
    font-size:32px;
    line-height:1.3;
    letter-spacing:-.035em;
}
@media(max-width:560px){
    .repair-detail .repair-guide-related-section-head{
        margin-bottom:22px;
    }
    .repair-detail .repair-guide-related-section-head h2{
        margin:0;
        font-size:28px;
        line-height:1.3;
    }
}

/* =========================================================
   2026-08-18 FULL DOCUMENT READER — PC READING WIDTH 900
   - PC 전문문서의 읽기 열을 820px -> 900px로 넓힌다.
   - 제목/본문/하단 뒤로가기 시작선을 동일하게 유지한다.
   - 모바일(820px 이하)은 기존 폭을 그대로 유지한다.
   ========================================================= */
@media(min-width:821px){
    .document-full-detail .repair-doc-title,
    .document-full-detail .document-full-body,
    .document-full-detail .repair-bottom-back{
        max-width:900px;
    }
    .document-full-detail .repair-back-top{
        margin-left:max(0px, calc((100% - 900px) / 2));
    }
}

/* =========================================================
   2026-08-18 FULL DOCUMENT READER — TECH GUIDE KICKER
   - 전문문서 제목 위에 공통 TECH GUIDE 라벨을 표시한다.
   - 제목/본문과 같은 읽기 열 기준선에 맞춘다.
   ========================================================= */
.document-full-detail .document-top-kicker{
    width:100%;
    max-width:820px;
    margin:8px auto 8px;
}
.document-full-detail .document-top-kicker .eyebrow{
    margin-bottom:0;
}
@media(min-width:821px){
    .document-full-detail .document-top-kicker{
        max-width:900px;
    }
}
@media(max-width:820px){
    .document-full-detail .document-top-kicker{
        max-width:100%;
    }
}

/* =========================================================
   GAININTER PUBLIC PERFORMANCE PHASE 1 V1
   2026-08-21
   - Keep current UI/layout.
   - Remove expensive live backdrop blur from sticky header.
   - Skip off-screen painting/layout work for repeated cards where supported.
   - Older browsers simply ignore content-visibility rules.
   ========================================================= */
.site-header{
    background:#fff;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
}

@supports (content-visibility:auto){
    .gpx-card,
    .post-card,
    .guide-list > a,
    .gateway-doc-card,
    .repair-case-card,
    .repair-doc-link-card,
    .link-cards > a{
        content-visibility:auto;
        contain-intrinsic-size:auto 180px;
    }
}

@media (prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
    .gpx-card,
    .post-card,
    .gateway-doc-card,
    .repair-case-card,
    .repair-doc-link-card{
        transition:none !important;
    }
}
