/*
Theme Name: PedalLog V7.1.1
Theme URI: https://pedallog.kr
Author: PedalLog
Description: 정책브리핑·서울시·자치구·식품 회수 이슈, 일반 콘텐츠, 쿠팡 가격 후보를 함께 운영하는 페달로그 통합 정보 테마입니다.
Version: 7.1.1
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: pedallog
Tags: blog, news, e-commerce, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --navy-950: #08182c;
    --navy-900: #10243e;
    --navy-800: #1b3d64;
    --orange: #ff642b;
    --orange-dark: #e84e15;
    --orange-soft: #fff1eb;
    --text: #1c2738;
    --muted: #6e7888;
    --line: #e6e9ee;
    --soft: #f6f7f9;
    --white: #ffffff;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow-soft: 0 8px 28px rgba(8, 24, 44, .055);
    --shadow: 0 18px 48px rgba(8, 24, 44, .09);
    --container: 1180px;
    --article: 760px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR",
        "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.78;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
    top: 32px;
}

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

a:hover,
a:focus-visible {
    color: var(--orange-dark);
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

::selection {
    color: #fff;
    background: var(--orange);
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.article-width {
    width: min(calc(100% - 40px), var(--article));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    clip: auto;
    color: #111;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Header */
.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(8, 24, 44, .08);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-branding {
    flex: 0 0 auto;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    width: auto;
    max-width: 205px;
    max-height: 46px;
}

.site-title {
    margin: 0;
    color: var(--navy-900);
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.06em;
}

.brand-dot {
    color: var(--orange);
}

.primary-navigation {
    margin-left: auto;
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 12px;
    color: #2b384c;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 760;
    transition: color .18s ease, background .18s ease;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a {
    color: var(--orange-dark);
    background: var(--orange-soft);
}

.menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    border-radius: 3px;
    background: var(--navy-900);
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Ads */
.ad-zone {
    text-align: center;
}

.header-ad {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-ad {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.home-ad,
.article-ad {
    margin: 34px 0;
    padding: 16px 6px;
    border: 1px dashed #d8dde5;
    border-radius: 14px;
    background: #fafbfc;
    text-align: center;
}

.home-ad:empty,
.article-ad:empty {
    display: none;
}

.ad-widget {
    margin: 0;
}

.ad-rail {
    display: none;
}

@media (min-width: 1740px) {
    .ad-rail {
        position: fixed;
        z-index: 60;
        top: 124px;
        display: block;
        width: 160px;
        max-height: calc(100vh - 148px);
        overflow: hidden;
        text-align: center;
    }

    .ad-rail-left {
        left: 20px;
    }

    .ad-rail-right {
        right: 20px;
    }

    body.admin-bar .ad-rail {
        top: 156px;
    }
}

/* Home intro */
.home-intro {
    padding: 68px 0 30px;
}

.home-intro-inner {
    max-width: 1120px;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--orange-dark);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.home-kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: var(--orange);
}

.home-intro h1 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(2.15rem, 3.5vw, 3.25rem);
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -.065em;
    white-space: nowrap;
}

.home-intro p {
    max-width: 700px;
    margin: 19px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

/* Featured article */
.featured-section {
    padding: 18px 0 34px;
}

.featured-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(350px, .72fr);
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.featured-image {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #f1f3f6;
}

.featured-image a {
    display: block;
    width: 100%;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.featured-placeholder {
    display: grid;
    min-height: 430px;
    place-items: center;
    background:
        radial-gradient(circle at 82% 17%, rgba(255, 100, 43, .23), transparent 27%),
        linear-gradient(135deg, #183e69, #0a1c32);
}

.featured-placeholder img {
    width: min(34%, 220px);
    height: auto;
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 4vw, 52px);
}

.category-pill {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    color: var(--orange-dark);
    border-radius: 999px;
    background: var(--orange-soft);
    font-size: .71rem;
    line-height: 1.2;
    font-weight: 900;
}

.featured-content h2 {
    margin: 15px 0 13px;
    color: var(--navy-900);
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    line-height: 1.3;
    letter-spacing: -.045em;
}

.featured-content p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.68;
}

.featured-meta,
.post-meta,
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
    color: var(--muted);
    font-size: .75rem;
}

.featured-meta {
    margin-top: 20px;
}

.featured-more {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin-top: 25px;
    color: var(--navy-900);
    font-size: .86rem;
    font-weight: 900;
}

.featured-more::after {
    content: "→";
    color: var(--orange);
    font-size: 1rem;
}

/* Category navigation */
.category-section {
    padding: 0 0 60px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #ffc8b2;
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--orange-dark);
    border-radius: 12px;
    background: var(--orange-soft);
}

.category-icon svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
}

.category-card strong {
    display: block;
    color: var(--navy-900);
    font-size: .92rem;
    line-height: 1.3;
}

.category-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.35;
}

/* Sections */
.home-section {
    padding: 68px 0 78px;
    border-top: 1px solid var(--line);
    background: var(--soft);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -.055em;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.section-link {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-size: .84rem;
    font-weight: 900;
}

/* Post cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
}

.post-grid.count-1 {
    grid-template-columns: minmax(0, 760px);
}

.post-grid.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
    overflow: hidden;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: #ffc8b2;
    box-shadow: var(--shadow);
}

.post-thumbnail {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    overflow: hidden;
    background: #f0f2f5;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.018);
}

.post-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        radial-gradient(circle at 82% 17%, rgba(255, 100, 43, .2), transparent 25%),
        linear-gradient(135deg, #183e69, #0a1b31);
}

.post-placeholder img {
    width: 30%;
    max-width: 105px;
    height: auto;
}

.post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.post-body h3 {
    margin: 10px 0 9px;
    color: var(--navy-900);
    font-size: 1.08rem;
    line-height: 1.47;
    letter-spacing: -.025em;
}

.post-body p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.63;
}

/* Archives */
.content-area {
    min-height: 64vh;
    padding: 62px 0 86px;
}

.archive-header,
.search-header {
    max-width: 760px;
    margin-bottom: 31px;
}

.archive-header h1,
.search-header h1 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -.065em;
}

.archive-description {
    margin-top: 11px;
    color: var(--muted);
}

.pagination {
    margin-top: 39px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.page-numbers {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: .84rem;
    font-weight: 850;
}

.page-numbers.current {
    color: #fff;
    border-color: var(--orange);
    background: var(--orange);
}

/* Single article */
.article-page {
    padding: 58px 0 90px;
}

.article-header {
    width: min(calc(100% - 40px), 920px);
    margin: 0 auto 30px;
    text-align: center;
}

.article-header .category-pill {
    margin-bottom: 14px;
}

.entry-title {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    line-height: 1.22;
    letter-spacing: -.06em;
}

.article-header .entry-meta {
    justify-content: center;
    margin-top: 16px;
}

.article-cover {
    overflow: hidden;
    width: min(calc(100% - 40px), 1060px);
    margin: 0 auto 50px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f0f2f5;
    box-shadow: var(--shadow-soft);
}

.article-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.article-cover-placeholder {
    display: grid;
    min-height: 420px;
    place-items: center;
    background:
        radial-gradient(circle at 82% 17%, rgba(255, 100, 43, .2), transparent 26%),
        linear-gradient(135deg, #183e69, #0a1b31);
}

.article-cover-placeholder img {
    width: min(28%, 210px);
    height: auto;
}

.entry-content {
    color: #303b4c;
    font-size: 1.035rem;
    line-height: 1.9;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content p {
    margin: 0 0 1.48em;
}

.entry-content h2 {
    margin: 2.35em 0 .78em;
    padding-bottom: .48em;
    color: var(--navy-900);
    border-bottom: 2px solid #edf0f4;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.4;
    letter-spacing: -.04em;
}

.entry-content h3 {
    margin: 1.85em 0 .62em;
    color: var(--navy-800);
    font-size: 1.3rem;
    line-height: 1.45;
    letter-spacing: -.025em;
}

.entry-content h4 {
    margin: 1.55em 0 .5em;
    color: var(--navy-800);
    font-size: 1.1rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.55em;
    padding-left: 1.35em;
}

.entry-content li {
    margin-bottom: .48em;
}

.entry-content blockquote {
    margin: 1.85em 0;
    padding: 22px 24px;
    color: #384458;
    border-left: 5px solid var(--orange);
    border-radius: 0 14px 14px 0;
    background: #fff6f1;
}

.entry-content figure {
    margin: 2em 0;
}

.entry-content figure img,
.entry-content > img {
    border-radius: 15px;
}

.entry-content figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: .79rem;
    text-align: center;
}

.entry-content table {
    display: table;
    width: 100%;
    margin: 1.8em 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    font-size: .9rem;
}

.entry-content th,
.entry-content td {
    padding: 12px 13px;
    border: 1px solid var(--line);
    text-align: left;
}

.entry-content th {
    color: var(--navy-900);
    background: #f3f5f8;
}

.entry-content pre {
    overflow: auto;
    margin: 1.85em 0;
    padding: 21px;
    color: #e8eef7;
    border-radius: 14px;
    background: #0d1c31;
    font-family: Consolas, Monaco, monospace;
    font-size: .87rem;
    line-height: 1.7;
}

.entry-content code {
    padding: .12em .33em;
    border-radius: 5px;
    background: #eef2f6;
    font-family: Consolas, Monaco, monospace;
    font-size: .9em;
}

.entry-content pre code {
    padding: 0;
    background: transparent;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 38px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.entry-tags a {
    padding: 6px 10px;
    color: var(--muted);
    border-radius: 999px;
    background: #f0f3f7;
    font-size: .77rem;
}

/* Pages */
.page-shell {
    width: min(calc(100% - 40px), 860px);
    margin-inline: auto;
}

.page-header {
    padding: 62px 0 31px;
}

.page-title {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -.06em;
}

.page-content {
    padding: 0 0 84px;
}

/* Empty states */
.not-found {
    padding: 65px 28px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.error-code {
    display: block;
    color: var(--orange);
    font-size: clamp(5rem, 12vw, 8.5rem);
    line-height: 1;
    font-weight: 950;
}

/* Minimal footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #8993a2;
    font-size: .78rem;
}

.footer-brand {
    color: var(--navy-900);
    font-weight: 900;
}

.footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #788395;
}

.no-posts-admin {
    padding: 39px;
    text-align: center;
    border: 2px dashed #d6dce5;
    border-radius: var(--radius);
    background: #fff;
}

.alignwide {
    width: min(1080px, calc(100vw - 40px));
    max-width: none;
    margin-right: 50%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

@media (max-width: 1000px) {
    .home-intro h1 {
        white-space: normal;
    }

    .primary-navigation a {
        padding-inline: 9px;
        font-size: .84rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        border-bottom: 1px solid var(--line);
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-grid.count-1 {
        grid-template-columns: minmax(0, 760px);
    }
}

@media (max-width: 840px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 95px);
        overflow: auto;
        padding: 15px 20px 22px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 22px 40px rgba(8, 24, 44, .12);
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-navigation ul {
        display: grid;
        gap: 3px;
    }

    .primary-navigation a {
        display: block;
        padding: 12px 11px;
        font-size: .91rem;
    }
}

@media (max-width: 650px) {
    body {
        font-size: 16px;
    }

    .container,
    .article-width,
    .page-shell,
    .article-header,
    .article-cover {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 66px;
    }

    .custom-logo {
        max-width: 178px;
        max-height: 41px;
    }

    .site-title {
        font-size: 1.42rem;
    }

    .home-intro {
        padding: 43px 0 22px;
    }

    .home-intro h1 {
        font-size: 2.25rem;
    }

    .featured-section {
        padding-top: 10px;
    }

    .featured-card {
        border-radius: 18px;
    }

    .featured-content {
        padding: 27px 22px 31px;
    }

    .featured-content h2 {
        font-size: 1.75rem;
    }

    .category-section {
        padding-bottom: 44px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .category-card {
        min-height: 69px;
    }

    .home-section {
        padding: 52px 0 60px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 23px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .post-grid,
    .post-grid.count-1,
    .post-grid.count-2 {
        grid-template-columns: 1fr;
    }

    .post-body {
        padding: 18px;
    }

    .article-page {
        padding: 38px 0 68px;
    }

    .entry-title {
        font-size: 2rem;
    }

    .article-cover {
        margin-bottom: 38px;
        border-radius: 14px;
    }

    .article-cover-placeholder {
        min-height: 290px;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.84;
    }

    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-ad {
        margin: 28px -4px;
        padding-inline: 4px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
    }
}

/* V5.2 compact recent posts */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.recent-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(8, 24, 44, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.recent-card:hover {
    transform: translateY(-3px);
    border-color: #ffc8b2;
    box-shadow: var(--shadow-soft);
}

.recent-thumbnail {
    display: grid;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    place-items: center;
    background: #eef1f4;
}

.recent-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease;
}

.recent-card:hover .recent-thumbnail img {
    transform: scale(1.025);
}

.recent-thumbnail .post-placeholder {
    width: 100%;
    height: 100%;
}

.recent-content {
    padding: 14px 14px 16px;
}

.recent-content .post-meta {
    gap: 5px 8px;
    font-size: .67rem;
}

.recent-content .category-pill {
    padding: 4px 7px;
    font-size: .64rem;
}

.recent-content h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.85em;
    margin: 8px 0 0;
    color: var(--navy-900);
    font-size: .92rem;
    line-height: 1.43;
    letter-spacing: -.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recent-content p {
    display: none;
}

/* V5.2 compact mathematical expressions */
.pedallog-math {
    max-width: 100%;
    margin: -.65em 0 1.35em;
    padding: .05em 0;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.entry-content p + .pedallog-math {
    margin-top: -.85em;
}

.pedallog-math mjx-container[display="true"],
.entry-content mjx-container[display="true"],
.pedallog-math .MathJax_Display,
.entry-content .MathJax_Display,
.pedallog-math .katex-display,
.entry-content .katex-display {
    max-width: 100%;
    margin: .25em auto .4em !important;
    overflow-x: auto;
    overflow-y: hidden;
}

.pedallog-math img.latex,
.entry-content img.latex {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: .2em auto;
}

@media (max-width: 1050px) {
    .recent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .recent-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .recent-card {
        display: grid;
        grid-template-columns: 138px minmax(0, 1fr);
        align-items: stretch;
    }

    .recent-thumbnail {
        height: 100%;
        min-height: 112px;
        aspect-ratio: auto;
    }

    .recent-content {
        padding: 13px;
    }

    .recent-content h3 {
        min-height: auto;
        font-size: .9rem;
    }

    .pedallog-math {
        margin-top: -.55em;
        font-size: .93em;
    }
}

/* V5.3 MathJax automatic LaTeX rendering */
.pedallog-math {
    position: relative;
    display: block;
    width: 100%;
    min-height: 2.6em;
    margin: -.45em 0 1.45em;
    padding: .25em 0;
    overflow-x: auto;
    overflow-y: hidden;
    color: var(--text);
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.entry-content p + .pedallog-math {
    margin-top: -.72em;
}

.pedallog-math mjx-container,
.entry-content mjx-container {
    color: inherit;
}

.pedallog-math mjx-container[display="true"],
.entry-content mjx-container[display="true"] {
    max-width: 100%;
    margin: .15em auto .35em !important;
    padding: .05em 0;
    overflow-x: auto;
    overflow-y: hidden;
    font-size: 108% !important;
    text-align: center !important;
}

.pedallog-math mjx-container svg,
.entry-content mjx-container svg {
    max-width: 100%;
    height: auto;
}

.pedallog-math mjx-assistive-mml,
.entry-content mjx-assistive-mml {
    pointer-events: none;
}

@media (max-width: 650px) {
    .pedallog-math {
        margin-top: -.35em;
        font-size: .9em;
    }

    .pedallog-math mjx-container[display="true"],
    .entry-content mjx-container[display="true"] {
        font-size: 100% !important;
    }
}

/* --------------------------------------------------------------------------
   PedalLog V7.1: 일반 콘텐츠 + 자동 최저가 상품
   -------------------------------------------------------------------------- */

.header-deal-link {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 14px;
    color: #fff;
    background: var(--orange);
    border-radius: 11px;
    font-size: .88rem;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(255, 100, 43, .18);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.header-deal-link:hover,
.header-deal-link:focus-visible {
    color: #fff;
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 100, 43, .25);
}

.home-intro-v6 {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 100, 43, .12), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.home-intro-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 850;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button-primary {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 10px 24px rgba(255, 100, 43, .2);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: #fff;
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.button-secondary {
    color: var(--navy-900);
    background: #fff;
    border: 1px solid var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: var(--orange-dark);
    border-color: rgba(255, 100, 43, .4);
    transform: translateY(-1px);
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--orange-dark);
    font-size: .68rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .12em;
}

.compact-heading {
    margin-bottom: 20px;
}

.deal-home-section {
    padding: 58px 0 64px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 0, rgba(255, 100, 43, .16), transparent 30%),
        linear-gradient(145deg, #08182c 0%, #10243e 62%, #17385f 100%);
}

.deal-home-section .section-heading h2,
.deal-home-section .section-heading p,
.deal-home-section .section-link {
    color: #fff;
}

.deal-home-section .section-heading p {
    color: rgba(255, 255, 255, .66);
}

.deal-home-section .section-link:hover,
.deal-home-section .section-link:focus-visible {
    color: #ffd2c1;
}

.deal-section-heading {
    margin-bottom: 20px;
}

.deal-category-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 16px;
    scrollbar-width: thin;
}

.deal-category-strip a {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .07);
    font-size: .76rem;
    font-weight: 760;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.deal-category-strip a:hover,
.deal-category-strip a:focus-visible,
.deal-category-strip a.is-active {
    color: #fff;
    border-color: rgba(255, 100, 43, .7);
    background: rgba(255, 100, 43, .22);
}

.deal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.deal-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 100, 43, .32);
    box-shadow: 0 18px 40px rgba(8, 24, 44, .13);
}

.deal-card-image {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    background: linear-gradient(145deg, #fff, #f4f6f8);
}

.deal-card-image .deal-product-image,
.deal-hero-image .deal-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .28s ease;
}

.deal-card:hover .deal-product-image {
    transform: scale(1.035);
}

.deal-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
}

.deal-placeholder img {
    width: 34%;
    max-width: 130px;
    opacity: .35;
}

.deal-score {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 0 9px;
    color: #fff;
    background: rgba(8, 24, 44, .88);
    border-radius: 9px;
    font-size: .66rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.deal-card-body {
    padding: 16px 16px 18px;
    color: var(--text);
}

.deal-card-topline {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.deal-category-pill {
    display: inline-flex;
    max-width: 50%;
    min-height: 25px;
    align-items: center;
    overflow: hidden;
    padding: 0 8px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 850;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.deal-category-pill:hover,
.deal-category-pill:focus-visible {
    color: var(--orange-dark);
    background: #ffe4d9;
}

.deal-card-time {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.deal-card h3 {
    min-height: 3.05em;
    margin: 0 0 11px;
    overflow: hidden;
    color: var(--navy-900);
    font-size: .95rem;
    line-height: 1.52;
    font-weight: 850;
    letter-spacing: -.025em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.deal-card h3 a:hover,
.deal-card h3 a:focus-visible {
    color: var(--orange-dark);
}

.deal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 24px;
    margin-bottom: 11px;
}

.deal-badge {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 7px;
    border-radius: 6px;
    font-size: .61rem;
    font-weight: 850;
}

.deal-badge-hot {
    color: #d63f10;
    background: #fff0eb;
}

.deal-badge-low {
    color: #11634c;
    background: #e8f7f0;
}

.deal-badge-rocket {
    color: #075bbd;
    background: #eaf3ff;
}

.deal-badge-muted {
    color: #687281;
    background: #edf0f3;
}

.deal-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.deal-price-row strong {
    color: #e8420a;
    font-size: 1.22rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.deal-price-row del {
    color: #929aa6;
    font-size: .72rem;
}

.deal-card-link {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    background: var(--soft);
    border-radius: 9px;
    font-size: .72rem;
    font-weight: 850;
}

.deal-card-link:hover,
.deal-card-link:focus-visible {
    color: #fff;
    background: var(--orange);
}

.deal-data-note {
    margin: 17px 0 0;
    color: rgba(255, 255, 255, .56);
    font-size: .68rem;
    text-align: center;
}

.content-featured-section {
    padding-top: 58px;
}

/* Deal archive */
.deal-archive-page {
    background: #f6f7f9;
}

.deal-archive-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 22px;
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 100, 43, .2), transparent 28%),
        linear-gradient(145deg, #08182c, #17385f);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.deal-archive-header h1 {
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -.055em;
}

.deal-archive-header p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: .93rem;
}

.deal-archive-status {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 14px 17px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
}

.deal-archive-status strong {
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 950;
}

.deal-archive-status span {
    color: rgba(255, 255, 255, .65);
    font-size: .73rem;
}

.deal-archive-categories {
    padding-bottom: 12px;
}

.deal-archive-categories a {
    color: #4c586a;
    border-color: #e2e6eb;
    background: #fff;
}

.deal-archive-categories a:hover,
.deal-archive-categories a:focus-visible,
.deal-archive-categories a.is-active {
    color: #fff;
    border-color: var(--orange);
    background: var(--orange);
}

.deal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.deal-toolbar > span {
    color: var(--muted);
    font-size: .72rem;
}

.deal-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.deal-sort-form label {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
}

.deal-sort-form select {
    min-height: 36px;
    padding: 0 31px 0 10px;
    color: var(--navy-900);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: .73rem;
    font-weight: 750;
}

.deal-grid-archive {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deal-empty {
    padding: 70px 20px;
    background: #fff;
    border-radius: 18px;
}

/* Single deal */
.deal-single-page {
    padding: 48px 0 76px;
    background: #f6f7f9;
}

.deal-single-container {
    width: min(calc(100% - 40px), 1080px);
}

.deal-single-header {
    margin-bottom: 22px;
}

.deal-single-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: .69rem;
    font-weight: 700;
}

.deal-single-breadcrumbs .deal-category-pill {
    max-width: none;
}

.deal-single-header h1 {
    max-width: 900px;
    margin: 0 0 10px;
    color: var(--navy-950);
    font-size: clamp(1.8rem, 4vw, 3.25rem);
    line-height: 1.22;
    font-weight: 950;
    letter-spacing: -.055em;
}

.deal-single-updated {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
}

.deal-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.deal-hero-image {
    display: flex;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: linear-gradient(145deg, #fff, #f1f4f7);
}

.deal-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
    border-left: 1px solid var(--line);
}

.deal-hero-content .deal-badges {
    margin-bottom: 15px;
}

.deal-current-price {
    margin-bottom: 10px;
    color: #e8420a;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.065em;
}

.deal-price-compare {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 23px;
    color: var(--muted);
    font-size: .78rem;
}

.deal-price-compare strong {
    color: #d63f10;
}

.deal-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 20px;
}

.deal-summary-grid > div {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfcfd;
}

.deal-summary-grid span,
.deal-summary-grid strong {
    display: block;
}

.deal-summary-grid span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
}

.deal-summary-grid strong {
    color: var(--navy-900);
    font-size: .86rem;
    font-weight: 900;
}

.deal-buy-button {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--orange);
    border-radius: 13px;
    font-size: .94rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(255, 100, 43, .23);
}

.deal-buy-button:hover,
.deal-buy-button:focus-visible {
    color: #fff;
    background: var(--orange-dark);
}

.deal-buy-button.is-disabled {
    color: #7f8997;
    background: #e9edf1;
    box-shadow: none;
}

.deal-buy-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .64rem;
    line-height: 1.55;
    text-align: center;
}

.deal-panel {
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.deal-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.deal-panel-heading h2,
.deal-analysis-title h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 950;
    letter-spacing: -.04em;
}

.deal-panel-heading > span {
    color: var(--muted);
    font-size: .68rem;
}

.deal-chart-wrap {
    overflow: hidden;
}

.deal-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.deal-chart-grid {
    fill: none;
    stroke: #e8ebef;
    stroke-width: 1;
}

.deal-chart-line {
    fill: none;
    stroke: var(--orange);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.deal-chart-fill {
    stroke: none;
}

.deal-chart-axis {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 7px;
    color: var(--muted);
    font-size: .66rem;
}

.deal-article {
    margin-top: 22px;
    padding: 36px 38px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.deal-analysis-title {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.deal-disclosure {
    width: min(100%, 760px);
    margin: 18px auto 0;
    padding: 18px 20px;
    color: #566173;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
    background: #fff;
    font-size: .72rem;
    line-height: 1.7;
}

.deal-disclosure strong {
    display: block;
    margin-bottom: 3px;
    color: var(--navy-900);
}

.deal-disclosure p {
    margin: 0;
}

@media (max-width: 1100px) {
    .deal-grid,
    .deal-grid-archive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .header-inner {
        gap: 12px;
    }

    .header-deal-link {
        margin-left: auto;
    }

    .primary-navigation {
        margin-left: 0;
    }

    .deal-hero-card {
        grid-template-columns: 1fr;
    }

    .deal-hero-image {
        min-height: 420px;
    }

    .deal-hero-content {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 780px) {
    .deal-grid,
    .deal-grid-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deal-archive-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px;
    }
}

@media (max-width: 650px) {
    .header-deal-link {
        min-height: 39px;
        padding: 0 11px;
        font-size: .76rem;
    }

    .home-intro-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .deal-home-section {
        padding: 42px 0 48px;
    }

    .deal-grid,
    .deal-grid-archive {
        grid-template-columns: 1fr;
    }

    .deal-grid-home .deal-card {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .deal-grid-home .deal-card-image {
        height: 100%;
        min-height: 196px;
        aspect-ratio: auto;
    }

    .deal-grid-home .deal-score {
        top: 8px;
        right: 8px;
        padding: 0 6px;
        font-size: .56rem;
    }

    .deal-card-body {
        padding: 14px;
    }

    .deal-card h3 {
        min-height: auto;
        font-size: .88rem;
    }

    .deal-card-time {
        display: none;
    }

    .deal-category-pill {
        max-width: 100%;
    }

    .deal-price-row strong {
        font-size: 1.08rem;
    }

    .deal-archive-header {
        padding: 22px;
        border-radius: 18px;
    }

    .deal-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .deal-sort-form {
        justify-content: space-between;
    }

    .deal-sort-form select {
        flex: 1;
    }

    .deal-single-page {
        padding: 30px 0 56px;
    }

    .deal-single-header h1 {
        font-size: 1.78rem;
    }

    .deal-hero-card {
        border-radius: 18px;
    }

    .deal-hero-image {
        min-height: 310px;
        padding: 22px;
    }

    .deal-hero-content {
        padding: 24px 20px;
    }

    .deal-current-price {
        font-size: 2.35rem;
    }

    .deal-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .deal-panel {
        padding: 21px 17px;
        border-radius: 16px;
    }

    .deal-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .deal-chart-axis {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .deal-article {
        padding: 26px 20px;
        border-radius: 16px;
    }
}

@media (max-width: 400px) {
    .header-deal-link span {
        display: none;
    }

    .deal-grid-home .deal-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .deal-grid-home .deal-card-image {
        min-height: 184px;
        padding: 7px;
    }

    .deal-summary-grid {
        grid-template-columns: 1fr;
    }
}

.search-mixed-grid .deal-card {
    align-self: stretch;
}

@media (max-width: 840px) {
    .site-branding {
        order: 1;
    }

    .header-deal-link {
        order: 2;
        margin-left: auto;
    }

    .menu-toggle {
        order: 3;
    }

    .primary-navigation {
        order: 4;
    }
}

/* =========================================================
   PedalLog V7.1 · 정책/서울/식품안전/가격 통합 홈
   ========================================================= */
:root {
    --green: #0b8f67;
    --green-soft: #eaf8f3;
    --blue: #2467d1;
    --blue-soft: #eef5ff;
    --red: #dc3345;
    --red-soft: #fff0f2;
    --amber: #c47a08;
    --amber-soft: #fff8e9;
    --purple: #7257d9;
    --purple-soft: #f3f0ff;
}

.home-intro-v7 {
    padding: 54px 0 42px;
    background:
        radial-gradient(circle at 8% 16%, rgba(255, 100, 43, .15), transparent 26%),
        radial-gradient(circle at 92% 10%, rgba(36, 103, 209, .16), transparent 28%),
        linear-gradient(145deg, #07182c 0%, #102c4c 58%, #153a5c 100%);
}

.home-intro-live {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    gap: 42px;
    align-items: center;
}

.home-intro-v7 .home-kicker,
.home-intro-v7 h1,
.home-intro-v7 p {
    color: #fff;
}

.home-intro-v7 h1 {
    max-width: 770px;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -.065em;
}

.home-intro-v7 .home-intro-copy > p {
    max-width: 760px;
    color: rgba(255, 255, 255, .76);
}

.live-dot {
    width: 9px;
    height: 9px;
    margin-right: 8px;
    display: inline-block;
    border-radius: 999px;
    background: #49efaa;
    box-shadow: 0 0 0 7px rgba(73, 239, 170, .12);
    animation: pedallog-live-pulse 1.8s ease-in-out infinite;
}

@keyframes pedallog-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.84); }
}

.home-intro-v7 .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
}

.home-intro-v7 .button-secondary:hover,
.home-intro-v7 .button-secondary:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .15);
}

.live-dashboard {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px);
}

.live-dashboard-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 17px;
    color: rgba(255, 255, 255, .65);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.live-dashboard-title strong {
    color: #fff;
    font-size: .78rem;
    letter-spacing: 0;
}

.live-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.live-stat {
    min-height: 102px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 17px;
    background: rgba(5, 20, 38, .3);
}

.live-stat span {
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    font-weight: 720;
}

.live-stat strong {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.05em;
}

.live-stat.is-alert strong {
    color: #ff9ca6;
}

.live-dashboard > p {
    margin: 15px 2px 0;
    color: rgba(255, 255, 255, .58);
    font-size: .72rem;
    line-height: 1.55;
}

.source-strip-section {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.source-strip {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 740;
    white-space: nowrap;
}

.source-strip::-webkit-scrollbar {
    display: none;
}

.source-strip span:not(.source-strip-label)::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: 2px;
    border-radius: 50%;
    background: #b4bdc9;
}

.source-strip-label {
    color: var(--navy-900);
    font-weight: 900;
}

.urgent-section,
.issue-hub-section,
.issue-latest-section {
    padding: 68px 0;
}

.urgent-section {
    background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
}

.alert-kicker {
    color: var(--red) !important;
}

.urgent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.issue-hub-section {
    background: #f7f9fc;
}

.issue-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.issue-category-card {
    min-height: 188px;
    padding: 23px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(8, 24, 44, .08);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.issue-category-card:hover,
.issue-category-card:focus-visible {
    color: inherit;
    transform: translateY(-4px);
    border-color: rgba(8, 24, 44, .17);
    box-shadow: var(--shadow);
}

.issue-category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--blue);
    background: var(--blue-soft);
}

.issue-category-icon svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
}

.issue-category-copy strong,
.issue-category-copy small {
    display: block;
}

.issue-category-copy strong {
    margin-bottom: 5px;
    color: var(--navy-900);
    font-size: 1.02rem;
    font-weight: 900;
}

.issue-category-copy small {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.5;
}

.issue-category-count {
    position: absolute;
    top: 17px;
    right: 17px;
    min-width: 29px;
    height: 29px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--navy-900);
    font-size: .72rem;
    font-weight: 850;
}

.issue-category-food-recall .issue-category-icon,
.issue-category-product-recall .issue-category-icon {
    color: var(--red);
    background: var(--red-soft);
}

.issue-category-seoul .issue-category-icon,
.issue-category-district .issue-category-icon {
    color: var(--green);
    background: var(--green-soft);
}

.issue-category-policy .issue-category-icon {
    color: var(--purple);
    background: var(--purple-soft);
}

.issue-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.issue-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.issue-card:hover {
    transform: translateY(-4px);
    border-color: #d5dbe4;
    box-shadow: var(--shadow);
}

.issue-card.is-urgent {
    border-color: rgba(220, 51, 69, .28);
    box-shadow: 0 12px 40px rgba(220, 51, 69, .08);
}

.issue-card.is-closed {
    opacity: .72;
}

.issue-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f5;
}

.issue-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.issue-card:hover .issue-card-image img {
    transform: scale(1.035);
}

.issue-card-body {
    flex: 1;
    padding: 19px;
    display: flex;
    flex-direction: column;
}

.issue-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.issue-category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: .69rem;
    font-weight: 850;
}

.issue-category-pill:hover,
.issue-category-pill:focus-visible {
    color: var(--blue);
    background: #e1edff;
}

.issue-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--green);
    background: var(--green-soft);
    font-size: .66rem;
    font-weight: 850;
}

.issue-status-urgent {
    color: var(--red);
    background: var(--red-soft);
}

.issue-status-updated {
    color: var(--amber);
    background: var(--amber-soft);
}

.issue-status-closed {
    color: #687587;
    background: #edf0f4;
}

.issue-card h3 {
    margin: 0;
    color: var(--navy-950);
    font-size: 1.07rem;
    line-height: 1.48;
    letter-spacing: -.035em;
}

.issue-card h3 a:hover {
    color: var(--orange-dark);
}

.issue-card-body > p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.65;
}

.issue-card-period {
    margin-top: 15px;
    padding: 10px 12px;
    display: grid;
    gap: 2px;
    border-radius: 12px;
    background: #f6f8fb;
}

.issue-card-period span {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 780;
}

.issue-card-period strong {
    color: var(--navy-900);
    font-size: .76rem;
    line-height: 1.45;
}

.issue-card-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: #7d8795;
    font-size: .67rem;
    line-height: 1.4;
}

.issue-card-footer strong {
    margin-left: auto;
    color: var(--red);
}

.issue-card-compact {
    min-height: 225px;
}

.issue-card-compact .issue-card-body {
    padding: 22px;
}

.issue-card-compact h3 {
    font-size: 1.18rem;
}

.issue-card-compact .issue-card-footer {
    border-top: 1px solid #f0e4e6;
}

.issue-archive-page,
.issue-single-page {
    padding: 54px 0 90px;
    background: #f7f9fc;
}

.issue-archive-header {
    padding: 34px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #08182c, #173d64);
    box-shadow: var(--shadow);
}

.issue-archive-header h1 {
    margin: 7px 0 8px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.06em;
}

.issue-archive-header p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .7);
}

.issue-archive-status {
    min-width: 120px;
    padding: 16px 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
}

.issue-archive-status strong,
.issue-archive-status span {
    display: block;
}

.issue-archive-status strong {
    font-size: 2.2rem;
    line-height: 1;
}

.issue-archive-status span {
    margin-top: 6px;
    color: rgba(255, 255, 255, .65);
    font-size: .72rem;
}

.issue-category-strip {
    margin: 22px 0 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.issue-category-strip::-webkit-scrollbar {
    display: none;
}

.issue-category-strip a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #516073;
    background: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.issue-category-strip a:hover,
.issue-category-strip a.is-active {
    color: #fff;
    border-color: var(--navy-900);
    background: var(--navy-900);
}

.issue-toolbar {
    margin-bottom: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: #fff;
    font-size: .76rem;
}

.issue-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.issue-sort-form label {
    font-weight: 800;
}

.issue-sort-form select {
    min-height: 38px;
    padding: 0 34px 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    background: #fff;
}

.issue-grid-archive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.issue-single-container {
    width: min(calc(100% - 40px), 1060px);
    margin-inline: auto;
}

.issue-single-header {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.issue-single-breadcrumbs {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: .76rem;
}

.issue-single-labels {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.issue-score-label {
    display: inline-flex;
    min-height: 25px;
    padding: 0 9px;
    align-items: center;
    border-radius: 8px;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: .66rem;
    font-weight: 850;
}

.issue-single-header h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.12;
    letter-spacing: -.065em;
}

.issue-single-summary {
    max-width: 780px;
    margin: 20px auto 0;
    color: #56647a;
    font-size: 1.08rem;
    line-height: 1.72;
}

.issue-single-meta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 18px;
    color: #7d8795;
    font-size: .74rem;
}

.issue-featured-image {
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: #e9edf2;
}

.issue-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.issue-update-note {
    width: min(100%, 900px);
    margin: 0 auto 24px;
    padding: 18px 20px;
    border-left: 4px solid var(--amber);
    border-radius: 0 14px 14px 0;
    background: var(--amber-soft);
}

.issue-update-note strong {
    color: #8e5904;
}

.issue-update-note p {
    margin: 5px 0 0;
    color: #6e5c3a;
    font-size: .88rem;
}

.issue-facts-panel {
    width: min(100%, 900px);
    margin: 0 auto 34px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.issue-panel-heading h2 {
    margin: 4px 0 19px;
    color: var(--navy-950);
    font-size: 1.55rem;
    letter-spacing: -.045em;
}

.issue-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.issue-facts-grid > div {
    min-height: 92px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 14px;
    background: #f6f8fb;
}

.issue-facts-grid span,
.issue-facts-grid strong {
    display: block;
}

.issue-facts-grid span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 780;
}

.issue-facts-grid strong {
    color: var(--navy-900);
    font-size: .91rem;
    line-height: 1.5;
}

.issue-article {
    padding: 34px 0;
}

.issue-source-panel {
    width: min(100%, 900px);
    margin: 15px auto 0;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.issue-source-panel strong {
    color: var(--navy-900);
}

.issue-source-panel p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.55;
}

.issue-source-panel a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--navy-900);
    font-size: .76rem;
    font-weight: 850;
}

.issue-source-panel a:hover,
.issue-source-panel a:focus-visible {
    color: #fff;
    background: var(--orange-dark);
}

@media (max-width: 1080px) {
    .home-intro-live {
        grid-template-columns: 1fr;
    }

    .live-dashboard {
        max-width: 760px;
    }

    .issue-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .issue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .urgent-grid,
    .issue-grid-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .home-intro-v7 {
        padding: 38px 0 32px;
    }

    .home-intro-v7 h1 {
        font-size: clamp(2.1rem, 12vw, 3.35rem);
    }

    .live-stat {
        min-height: 89px;
        padding: 13px;
    }

    .live-stat strong {
        font-size: 1.65rem;
    }

    .source-strip {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .urgent-section,
    .issue-hub-section,
    .issue-latest-section {
        padding: 48px 0;
    }

    .issue-category-grid,
    .issue-grid,
    .urgent-grid,
    .issue-grid-archive {
        grid-template-columns: 1fr;
    }

    .issue-category-card {
        min-height: 145px;
    }

    .issue-archive-header {
        padding: 25px 21px;
        align-items: flex-start;
        flex-direction: column;
    }

    .issue-archive-status {
        min-width: 100px;
    }

    .issue-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .issue-sort-form {
        justify-content: space-between;
    }

    .issue-sort-form select {
        flex: 1;
    }

    .issue-single-container {
        width: min(calc(100% - 28px), 1060px);
    }

    .issue-single-header {
        text-align: left;
    }

    .issue-single-breadcrumbs,
    .issue-single-labels,
    .issue-single-meta {
        justify-content: flex-start;
    }

    .issue-single-header h1 {
        font-size: clamp(2rem, 11vw, 3.1rem);
    }

    .issue-facts-panel {
        padding: 20px;
    }

    .issue-facts-grid {
        grid-template-columns: 1fr;
    }

    .issue-source-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .issue-source-panel a {
        justify-content: center;
    }
}

/* =========================================================
   PedalLog V7.1 · 겹침 없는 홈 히어로 / 4개 공식 이슈 수집원
   ========================================================= */
.home-intro-v71 {
    padding: 64px 0 58px;
}

.home-intro-solo {
    width: 100%;
    max-width: 1040px;
}

.home-intro-v71 .home-intro-copy {
    width: 100%;
    max-width: 980px;
}

.home-intro-v71 h1 {
    max-width: 980px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: balance;
}

.home-intro-v71 .home-intro-copy > p {
    max-width: 820px;
}

.home-status-section {
    padding: 30px 0 34px;
    border-bottom: 1px solid var(--line);
    background: #f5f7fb;
}

.home-status-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-status-heading strong {
    color: var(--navy-900);
    font-size: .9rem;
    font-weight: 900;
}

.home-status-heading span {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
}

.home-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-status-card {
    min-width: 0;
    min-height: 142px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(8, 24, 44, .09);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.home-status-card > span {
    color: var(--navy-800);
    font-size: .82rem;
    font-weight: 850;
}

.home-status-card > strong {
    margin: 8px 0;
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1;
    letter-spacing: -.06em;
}

.home-status-card > small {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.5;
}

.home-status-card.is-alert {
    border-color: rgba(220, 51, 69, .16);
    background: linear-gradient(145deg, #fff 0%, #fff5f6 100%);
}

.home-status-card.is-alert > strong {
    color: var(--red);
}

.issue-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .home-status-grid,
    .issue-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .home-intro-v71 {
        padding: 42px 0 38px;
    }

    .home-intro-v71 h1 {
        font-size: clamp(2.05rem, 11vw, 3.2rem);
        line-height: 1.08;
        letter-spacing: -.055em;
    }

    .home-status-section {
        padding: 24px 0 28px;
    }

    .home-status-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .home-status-grid,
    .issue-category-grid {
        grid-template-columns: 1fr;
    }

    .home-status-card {
        min-height: 118px;
        padding: 17px;
    }

    .home-status-card > strong {
        font-size: 2.1rem;
    }
}
