/*
Theme Name: HowTo WikiStyle
Theme URI: https://yoursite.com
Author: Your Name
Description: WikiHow 스타일 How-To 가이드 테마
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: howto-wikistyle
*/

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

:root {
    --primary: #00a651;
    --primary-dark: #007a3d;
    --primary-light: #e8f5e9;
    --secondary: #333;
    --text: #444;
    --text-light: #888;
    --border: #e0e0e0;
    --bg: #f8f8f8;
    --white: #fff;
}

html { font-size:16px; scroll-behavior:smooth; }

body {
    font-family:'Noto Sans KR','Apple SD Gothic Neo','Helvetica Neue',Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
    -webkit-font-smoothing:antialiased;
}

a { color:var(--primary); text-decoration:none; transition:color .2s; }
a:hover { color:var(--primary-dark); }
img { max-width:100%; height:auto; display:block; }

h1,h2,h3,h4,h5,h6 { font-weight:700; line-height:1.3; color:var(--secondary); }
p { margin-bottom:1rem; }

/* LAYOUT */
.container { max-width:1200px; margin:0 auto; padding:0 15px; }

.page-wrapper {
    display:grid;
    grid-template-columns:1fr 300px;
    gap:30px;
    padding:20px 15px;
    max-width:1200px;
    margin:0 auto;
}

/* HEADER */
#site-header {
    background:var(--white);
    border-bottom:3px solid var(--primary);
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
    max-width:1200px;
    margin:0 auto;
    padding:0 15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:64px;
    gap:20px;
}

.site-logo {
    font-size:26px;
    font-weight:900;
    color:var(--primary);
    text-decoration:none;
    letter-spacing:-1px;
    flex-shrink:0;
}
.site-logo:hover { color:var(--primary-dark); text-decoration:none; }
.site-logo img { max-height:45px; width:auto; }

.header-search-form {
    display:flex;
    align-items:center;
    background:#f0f0f0;
    border-radius:25px;
    padding:8px 16px;
    flex:0 1 340px;
    gap:8px;
}
.header-search-form input[type="search"] {
    border:none; background:transparent; outline:none;
    font-size:14px; width:100%; color:var(--secondary);
}
.header-search-form button {
    border:none; background:transparent; cursor:pointer;
    color:var(--text-light); font-size:16px; padding:0;
    display:flex; align-items:center;
}

#primary-navigation ul { list-style:none; padding:0; display:flex; gap:20px; }
#primary-navigation ul li a {
    font-size:14px; font-weight:500; color:var(--text);
    text-decoration:none; padding:5px 0;
    border-bottom:2px solid transparent; transition:all .2s;
}
#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item a {
    color:var(--primary); border-bottom-color:var(--primary); text-decoration:none;
}

.mobile-menu-toggle {
    display:none; background:none; border:none;
    font-size:24px; cursor:pointer; color:var(--secondary);
}

/* HEADER AD */
.header-ad-zone {
    background:var(--white);
    border-bottom:1px solid var(--border);
    padding:10px 15px;
    text-align:center;
}

/* AD COMMON */
.ad-container { position:relative; text-align:center; overflow:hidden; }
.ad-label {
    display:block; font-size:10px; color:var(--text-light);
    text-transform:uppercase; letter-spacing:1px; margin-bottom:4px;
}
.ad-leaderboard { max-width:728px; margin:0 auto; }
.ad-rectangle { max-width:336px; margin:0 auto; }
.ad-in-content { margin:25px auto; max-width:336px; clear:both; }
.sidebar-ad-wrap { margin-bottom:25px; }

/* BREADCRUMB */
.breadcrumb-wrap {
    padding:12px 30px; font-size:13px; color:var(--text-light);
    border-bottom:1px solid #f5f5f5;
}
.breadcrumb-wrap a { color:var(--primary); }
.breadcrumb-wrap span.sep { margin:0 6px; color:var(--text-light); }

/* MAIN CONTENT */
.main-content {
    background:var(--white); border-radius:10px;
    border:1px solid var(--border); overflow:hidden;
}

/* ARTICLE HEADER */
.article-header { padding:30px 30px 20px; }

.article-category-badge {
    display:inline-block; background:var(--primary-light);
    color:var(--primary); font-size:12px; font-weight:700;
    padding:4px 12px; border-radius:20px; text-transform:uppercase;
    letter-spacing:.5px; margin-bottom:14px; text-decoration:none;
}
.article-category-badge:hover {
    background:var(--primary); color:var(--white); text-decoration:none;
}

.article-title {
    font-size:32px; font-weight:800; color:#1a1a1a;
    line-height:1.3; margin-bottom:16px;
}
.article-title .highlight { color:var(--primary); }

.article-meta {
    display:flex; align-items:center; flex-wrap:wrap;
    gap:16px; font-size:13px; color:var(--text-light);
    padding-bottom:20px; border-bottom:1px solid #f5f5f5;
}
.meta-author {
    display:flex; align-items:center; gap:8px;
    color:var(--text); font-weight:500;
}
.author-avatar-sm {
    width:30px; height:30px; border-radius:50%;
    background:linear-gradient(135deg,var(--primary),#00c853);
    display:flex; align-items:center; justify-content:center;
    color:white; font-size:12px; font-weight:700;
    overflow:hidden; flex-shrink:0;
}
.author-avatar-sm img { width:100%; height:100%; object-fit:cover; }
.meta-verified { color:var(--primary); font-weight:600; font-size:12px; }
.meta-item { display:flex; align-items:center; gap:4px; }

/* HERO IMAGE */
.article-hero-image { margin:0 30px 25px; border-radius:10px; overflow:hidden; }
.article-hero-image img { width:100%; height:380px; object-fit:cover; }

/* ARTICLE INTRO */
.article-intro {
    padding:0 30px 25px; font-size:16px; line-height:1.85;
    color:var(--text); border-bottom:2px solid #f0f0f0;
}

/* TOC */
.toc-section {
    margin:25px 30px; background:#f9f9f9; border-radius:10px;
    border:1px solid var(--border); padding:20px;
}
.toc-title { font-size:16px; font-weight:700; margin-bottom:14px; color:var(--secondary); }
.toc-list {
    list-style:none; padding:0;
    display:grid; grid-template-columns:1fr 1fr; gap:8px;
}
.toc-list li a {
    display:flex; align-items:center; gap:8px;
    font-size:14px; color:var(--primary); text-decoration:none; padding:4px 0;
}
.toc-list li a:hover { text-decoration:underline; }
.toc-num {
    background:var(--primary); color:white; width:22px; height:22px;
    border-radius:50%; display:inline-flex; align-items:center;
    justify-content:center; font-size:11px; font-weight:700; flex-shrink:0;
}

/* ARTICLE BODY */
.article-body { padding:0 30px; }
.article-content { padding:0 30px; }

/* ===== 본문 리스트 여백 ===== */
.article-content ul,
.article-content ol,
.article-body ul,
.article-body ol {
    padding-left: 28px;
    margin: 12px 0 16px 0;
}
.article-content ul li,
.article-content ol li,
.article-body ul li,
.article-body ol li {
    padding: 3px 0 3px 6px;
    margin-bottom: 5px;
    line-height: 1.8;
}

/* PART SECTION */
.part-section { margin-bottom:40px; }
.part-header {
    display:flex; align-items:center; gap:15px;
    margin-bottom:25px; padding-bottom:15px; border-bottom:2px solid var(--border);
}
.part-number-badge {
    background:var(--primary); color:white; width:42px; height:42px;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:18px; font-weight:800; flex-shrink:0;
}
.part-title { font-size:22px; font-weight:700; color:#1a1a1a; }

/* STEP */
.step-item {
    display:grid; grid-template-columns:48px 1fr;
    margin-bottom:32px; padding-bottom:32px; border-bottom:1px solid #f0f0f0;
}
.step-item:last-of-type { border-bottom:none; }
.step-number-col { display:flex; flex-direction:column; align-items:center; padding-top:4px; }
.step-num-badge {
    background:var(--secondary); color:white; width:32px; height:32px;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:14px; font-weight:700; flex-shrink:0;
}
.step-connector { width:2px; flex:1; background:var(--border); margin-top:8px; min-height:30px; }
.step-content { padding-left:16px; }
.step-title { font-size:18px; font-weight:700; color:#1a1a1a; margin-bottom:12px; line-height:1.4; }
.step-body { font-size:15px; line-height:1.85; color:var(--text); margin-bottom:14px; }
.step-image-wrap { margin-bottom:14px; border-radius:8px; overflow:hidden; }
.step-image-wrap img { width:100%; max-width:500px; height:auto; border-radius:8px; }

.step-tip {
    background:#f0f9ff; border-left:4px solid #0099cc;
    padding:12px 16px; border-radius:0 8px 8px 0;
    font-size:14px; color:#004d6e; margin-top:10px; line-height:1.7;
}
.step-warning {
    background:#fff8f0; border-left:4px solid #ff8c00;
    padding:12px 16px; border-radius:0 8px 8px 0;
    font-size:14px; color:#7a3b00; margin-top:10px; line-height:1.7;
}

/* TIPS & WARNINGS */
.tips-warnings-section {
    display:grid; grid-template-columns:1fr 1fr;
    gap:20px; padding:0 30px 30px;
}
.tips-box { background:#f0f9ff; border:1px solid #b3e0f7; border-radius:10px; padding:20px; }
.warnings-box { background:#fff8f0; border:1px solid #ffe0b2; border-radius:10px; padding:20px; }
.tips-box-title { display:flex; align-items:center; gap:8px; font-size:16px; font-weight:700; color:#0066aa; margin-bottom:14px; }
.warnings-box-title { display:flex; align-items:center; gap:8px; font-size:16px; font-weight:700; color:#e65100; margin-bottom:14px; }
.tips-list,.warnings-list { list-style:none; padding:0; }
.tips-list li,.warnings-list li {
    padding:7px 0; font-size:14px; line-height:1.65;
    display:flex; gap:8px; color:var(--text);
    border-bottom:1px solid rgba(0,0,0,.05);
}
.tips-list li:last-child,.warnings-list li:last-child { border-bottom:none; }
.tips-list li::before { content:"✓"; color:var(--primary); font-weight:700; flex-shrink:0; margin-top:1px; }
.warnings-list li::before { content:"⚠"; color:#ff8c00; flex-shrink:0; margin-top:1px; }

/* RELATED POSTS */
.related-posts-section { padding:25px 30px 30px; border-top:2px solid #f0f0f0; }
.section-title { font-size:20px; font-weight:700; color:#1a1a1a; margin-bottom:20px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.related-card {
    border:1px solid var(--border); border-radius:10px; overflow:hidden;
    text-decoration:none; color:inherit;
    transition:transform .2s,box-shadow .2s; display:block;
}
.related-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.1); text-decoration:none; }
.related-card-thumbnail { width:100%; height:120px; object-fit:cover; display:block; }
.related-card-thumbnail-placeholder {
    width:100%; height:120px;
    background:linear-gradient(135deg,var(--primary-light),#c8e6c9);
    display:flex; align-items:center; justify-content:center; font-size:40px;
}
.related-card-body { padding:12px; }
.related-card-title { font-size:13px; font-weight:600; color:var(--secondary); line-height:1.45; }

/* RATING & SHARE */
.rating-share-section {
    padding:25px 30px; background:#f9f9f9;
    border-top:1px solid var(--border); text-align:center;
}
.rating-title { font-size:18px; font-weight:700; color:var(--secondary); margin-bottom:14px; }
.star-rating { display:flex; justify-content:center; gap:8px; margin-bottom:10px; }
.star-rating .star { font-size:30px; cursor:pointer; color:#f0b429; transition:transform .1s; }
.star-rating .star:hover { transform:scale(1.2); }
.rating-count { font-size:13px; color:var(--text-light); margin-bottom:20px; }
.share-buttons { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.share-btn {
    display:inline-flex; align-items:center; gap:6px;
    padding:9px 20px; border-radius:25px; font-size:13px; font-weight:600;
    cursor:pointer; border:none; color:white;
    transition:opacity .2s,transform .2s; text-decoration:none;
}
.share-btn:hover { opacity:.9; transform:translateY(-2px); text-decoration:none; color:white; }
.share-btn.facebook { background:#1877f2; }
.share-btn.twitter  { background:#1da1f2; }
.share-btn.kakao    { background:#fee500; color:#333; }
.share-btn.copy     { background:#555; }

/* SIDEBAR */
.sidebar { min-width:0; }
.sidebar-sticky { position:sticky; top:80px; }
.sidebar-widget {
    background:var(--white); border:1px solid var(--border);
    border-radius:10px; padding:20px; margin-bottom:24px;
}
.widget-title {
    font-size:15px; font-weight:700; color:var(--secondary);
    margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid var(--primary);
}
.widget-post-list { list-style:none; padding:0; }
.widget-post-list li {
    padding:9px 0; border-bottom:1px solid #f5f5f5;
    font-size:13px; line-height:1.5;
}
.widget-post-list li:last-child { border-bottom:none; padding-bottom:0; }
.widget-post-list li a { color:var(--primary); text-decoration:none; display:block; }
.widget-post-list li a:hover { text-decoration:underline; }
.widget-categories { display:flex; flex-wrap:wrap; gap:8px; }
.widget-cat-link {
    display:inline-block; padding:5px 12px; background:#f0f0f0;
    border-radius:20px; font-size:12px; color:var(--text);
    text-decoration:none; transition:background .2s,color .2s;
}
.widget-cat-link:hover { background:var(--primary); color:white; text-decoration:none; }

/* FOOTER */
#site-footer { background:#2d2d2d; color:#ccc; padding:50px 15px 20px; margin-top:40px; }
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; margin-bottom:30px; }
.footer-col h4 { color:#fff; font-size:13px; font-weight:700; margin-bottom:14px; text-transform:uppercase; letter-spacing:.8px; }
.footer-col ul { list-style:none; padding:0; }
.footer-col ul li { margin-bottom:7px; }
.footer-col ul li a { color:#aaa; font-size:13px; text-decoration:none; }
.footer-col ul li a:hover { color:var(--primary); text-decoration:none; }
.footer-bottom {
    border-top:1px solid #444; padding-top:20px;
    display:flex; justify-content:space-between; align-items:center;
    flex-wrap:wrap; gap:10px; font-size:12px; color:#888;
}
.footer-logo { font-size:22px; font-weight:900; color:var(--primary); text-decoration:none; }

/* ARCHIVE */
.archive-header {
    background:var(--white); border-radius:10px;
    padding:25px 30px; margin-bottom:20px; border:1px solid var(--border);
}
.archive-title { font-size:26px; font-weight:800; color:#1a1a1a; margin-bottom:8px; }
.archive-description { color:var(--text-light); font-size:15px; }
.posts-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.post-card {
    background:var(--white); border:1px solid var(--border);
    border-radius:10px; overflow:hidden;
    transition:transform .2s,box-shadow .2s;
    display:flex; flex-direction:column;
}
.post-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.1); }
.post-card-thumbnail { width:100%; height:180px; object-fit:cover; }
.post-card-thumbnail-placeholder {
    width:100%; height:180px;
    background:linear-gradient(135deg,var(--primary-light),#c8e6c9);
    display:flex; align-items:center; justify-content:center; font-size:50px;
}
.post-card-body { padding:16px; flex:1; display:flex; flex-direction:column; }
.post-card-category { font-size:11px; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; }
.post-card-title { font-size:16px; font-weight:700; color:#1a1a1a; margin-bottom:10px; line-height:1.4; flex:1; }
.post-card-title a { color:inherit; text-decoration:none; }
.post-card-title a:hover { color:var(--primary); }
.post-card-excerpt { font-size:13px; color:var(--text-light); line-height:1.6; margin-bottom:12px; }
.post-card-meta { font-size:12px; color:var(--text-light); display:flex; gap:12px; align-items:center; }
.read-more-btn {
    display:inline-block; margin-top:12px; padding:7px 16px;
    background:var(--primary); color:white; border-radius:20px;
    font-size:13px; font-weight:600; text-decoration:none;
    transition:background .2s; align-self:flex-start;
}
.read-more-btn:hover { background:var(--primary-dark); color:white; text-decoration:none; }

/* PAGINATION */
.pagination { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:30px; flex-wrap:wrap; }
.pagination a,.pagination span {
    display:inline-flex; align-items:center; justify-content:center;
    width:38px; height:38px; border-radius:50%; font-size:14px; font-weight:600;
    border:1px solid var(--border); background:var(--white); color:var(--text);
    text-decoration:none; transition:all .2s; line-height:1; padding:0; box-sizing:border-box;
}
.pagination a:hover,.pagination .current { background:var(--primary); color:white; border-color:var(--primary); }
/* prev/next 는 글자가 들어가도록 동그라미를 키움 */
.pagination .prev,.pagination .next {
    width:52px; height:52px; font-size:13px; font-weight:500; letter-spacing:.5px;
}

/* READING PROGRESS */
#reading-progress { position:fixed; top:0; left:0; height:3px; background:var(--primary); z-index:9999; width:0; transition:width .1s; }

/* ===== 테이블 스타일 (PC 기본) ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
table th,
table td {
    border: 1px solid #333;
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.6;
}
table thead tr { background-color: #f0f0f0; }
table thead th { font-weight: 700; color: #1a1a1a; }
table tbody tr:nth-child(even) { background-color: #fafafa; }
table tbody tr:hover { background-color: #f5f5f5; }

/* ===== 접근성 ===== */
.screen-reader-text {
    border:0; clip:rect(1px,1px,1px,1px);
    -webkit-clip-path:inset(50%); clip-path:inset(50%);
    height:1px; width:1px; margin:-1px; padding:0;
    overflow:hidden; position:absolute !important; word-wrap:normal !important;
}
.skip-link {
    position:absolute; left:-9999px; top:1rem; z-index:9999;
    padding:.5rem 1rem; background:var(--primary); color:#fff;
    border-radius:4px; font-weight:600;
}
.skip-link:focus { left:1rem; }

/* ===== 자동 목차 (TOC) ===== */
.howto-toc {
    background:#fffdf5; border:1px solid #f0d080; border-left:4px solid var(--primary);
    border-radius:8px; padding:18px 22px; margin:24px 0;
}
.howto-toc-title { font-weight:700; font-size:16px; margin-bottom:10px; color:#333; }
.howto-toc-list { list-style:none; padding:0; margin:0; counter-reset:toc; }
.howto-toc-list .howto-toc-h2 { counter-increment:toc; padding:4px 0; font-weight:600; }
.howto-toc-list .howto-toc-h2::before {
    content:counter(toc) ". "; color:var(--primary); font-weight:700; margin-right:6px;
}
.howto-toc-list .howto-toc-h3 { padding:3px 0 3px 24px; font-size:14px; color:#666; }
.howto-toc-list a { color:#333; }
.howto-toc-list a:hover { color:var(--primary); text-decoration:underline; }

/* ===== 광고 영역 ===== */
.ad-in-content, .ad-container {
    margin:28px auto; padding:14px 12px; background:#fafafa; border:1px dashed #e0e0e0;
    border-radius:6px; max-width:100%; text-align:center; min-height:90px;
}
.ad-in-content .ad-label, .ad-container .ad-label,
.header-ad-zone .ad-label, .sidebar-ad-wrap .ad-label {
    display:block; font-size:11px; color:#999; margin-bottom:6px; letter-spacing:.05em;
}
.ad-in-content ins.adsbygoogle, .ad-container ins.adsbygoogle { display:block; }

/* ===== 워드프레스 캡션 ===== */
.wp-caption {
    max-width: 100%;
    height: auto;
}
.wp-caption img {
    max-width: 100%;
    height: auto;
}
.wp-caption-text,
figcaption {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 6px;
    padding: 4px 8px;
    word-break: keep-all;
    white-space: normal;
    line-height: 1.5;
}

/* ===== 글자 깨짐 방지 ===== */
body,
.article-content,
.article-body,
.step-body,
.step-title,
.article-title,
p, li, td, th {
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ===========================
   RESPONSIVE
=========================== */

/* 960px 이하 : 1컬럼으로 변경 + 사이드바 하단으로 이동 */
@media(max-width:960px) {
    .page-wrapper {
        grid-template-columns: 1fr;   /* ← 1컬럼 */
    }
    .sidebar {
        display: block;               /* ✅ 사이드바 보이게! */
        width: 100%;
        max-width: 100%;
    }
    .sidebar-sticky {
        position: static;             /* 모바일에서 sticky 해제 */
    }
    .toc-list { grid-template-columns:1fr; }
    .tips-warnings-section { grid-template-columns:1fr; }
    .related-grid { grid-template-columns:1fr 1fr; }
    .footer-grid { grid-template-columns:1fr 1fr; }
}

@media(max-width:768px) {
    /* 헤더 */
    .header-inner { flex-wrap:wrap; height:auto; padding:12px 15px; }
    .header-search-form { order:3; flex:1 1 100%; margin-top:8px; }
    #primary-navigation { display:none; }
    #primary-navigation.active {
        display:block; position:fixed; top:0; left:0;
        width:80%; height:100vh; background:white; z-index:9999;
        padding:20px; box-shadow:5px 0 20px rgba(0,0,0,.2); overflow-y:auto;
    }
    #primary-navigation.active ul { flex-direction:column; gap:0; margin-top:40px; }
    #primary-navigation.active ul li a { display:block; padding:14px 0; font-size:16px; border-bottom:1px solid #f0f0f0; }
    .mobile-menu-toggle { display:block; }

    /* 가로 넘침 방지 */
    html, body { overflow-x:hidden; }
    .page-wrapper,
    .main-content,
    .article-content,
    .article-body,
    .article-header { max-width:100%; box-sizing:border-box; }

    /* 이미지 */
    img { max-width:100% !important; height:auto !important; }
    .wp-caption { max-width:100% !important; width:100% !important; }
    .article-hero-image img { height:220px; }

    /* 표 - 모바일만 스크롤 */
    table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }
    table th,
    table td {
        padding: 6px 8px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    /* 제목 */
    .article-title { font-size:20px; line-height:1.4; word-break:keep-all; }
    h2 { font-size:18px !important; }
    h3 { font-size:16px !important; }

    /* 본문 패딩 */
    .article-header,
    .article-intro,
    .article-body,
    .article-content { padding-left:15px; padding-right:15px; }
    .breadcrumb-wrap { padding:10px 15px; }
    .article-hero-image { margin:0 15px 20px; }
    .toc-section { margin:20px 15px; }
    .step-item { grid-template-columns:36px 1fr; }
    .tips-warnings-section,
    .related-posts-section,
    .rating-share-section { padding-left:15px; padding-right:15px; }

    /* 리스트 여백 */
    .article-content ul,
    .article-content ol,
    .article-body ul,
    .article-body ol { padding-left:22px !important; }

    /* 기타 */
    .related-grid { grid-template-columns:1fr; }
    .posts-grid { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1fr; }
    .footer-bottom { flex-direction:column; text-align:center; }
    .share-buttons { flex-direction:column; align-items:stretch; }
    .share-btn { justify-content:center; text-align:center; }
}

@media(max-width:480px) {
    .article-title { font-size:18px; }
    .part-title { font-size:18px; }
    .step-title { font-size:16px; }
    .share-buttons { flex-direction:column; align-items:center; }

    table { font-size:11px !important; }
    table th,
    table td { padding:5px 6px !important; font-size:11px !important; }

    .article-header,
    .article-content { padding-left:12px !important; padding-right:12px !important; }
}


/* === 블로그 맨 위 NEW 알림 바 === */
.howto-new-bar {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.howto-new-bar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
}
.howto-new-bar-link:hover .howto-new-bar-title { text-decoration: underline; }
.howto-new-bar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}
.howto-new-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: .5px;
    line-height: 1.4;
    flex-shrink: 0;
    animation: howtoNewFloat 2.4s ease-in-out infinite;
    will-change: transform;
}
@keyframes howtoNewFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .howto-new-badge { animation: none; }
}
@media (max-width: 600px) {
    .howto-new-bar-link { font-size: 13px; gap: 8px; padding: 8px 14px; }
}
