/*
Theme Name: PedalLog V2
Theme URI: https://pedallog.kr
Author: PedalLog
Description: 이미지 중심의 간결한 자전거·서울 정보형 워드프레스 테마입니다.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: pedallog
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --pl-navy: #10233f;
    --pl-navy-soft: #19385f;
    --pl-orange: #ff6a2a;
    --pl-orange-dark: #e84f0c;
    --pl-text: #172033;
    --pl-muted: #667085;
    --pl-line: #e4e9f1;
    --pl-bg: #f6f8fb;
    --pl-card: #ffffff;
    --pl-radius: 18px;
    --pl-shadow: 0 14px 38px rgba(16, 35, 63, .09);
    --pl-container: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: var(--pl-navy-soft);
    text-decoration: none;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

.container {
    width: min(calc(100% - 40px), var(--pl-container));
    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: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 15px;
    clip: auto;
    border-radius: 8px;
    background: #fff;
    color: #111;
}

/* Header */
.site-header {
    position: sticky;
    z-index: 999;
    top: 0;
    border-bottom: 1px solid rgba(16, 35, 63, .09);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.brand-link,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark,
.custom-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name {
    color: var(--pl-navy);
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: -.055em;
}

.brand-dot {
    color: var(--pl-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: block;
    padding: 10px 11px;
    border-radius: 9px;
    color: #2a3649;
    font-size: .91rem;
    font-weight: 760;
}

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

.header-search-link {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--pl-line);
    border-radius: 11px;
    color: var(--pl-navy);
    background: #fff;
    font-size: 1.05rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 9px;
    border: 1px solid var(--pl-line);
    border-radius: 11px;
    background: #fff;
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 5px;
    background: var(--pl-navy);
}

/* Ad zones */
.header-ad,
.content-ad,
.footer-ad,
.article-ad {
    overflow: hidden;
    text-align: center;
}

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

.content-ad,
.footer-ad,
.article-ad {
    padding: 18px 0;
}

.article-ad {
    margin: 28px 0;
}

/* Hero */
.hero-section {
    padding: 34px 0 26px;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
    min-height: 460px;
    overflow: hidden;
    border-radius: 26px;
    color: #fff;
    background: var(--pl-navy);
    box-shadow: var(--pl-shadow);
}

.hero-copy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(34px, 5vw, 68px);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 106, 42, .23), transparent 28%),
        linear-gradient(145deg, #0d1d34, #17375f);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #ffbb98;
    font-size: .88rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.hero-kicker::before {
    content: "";
    width: 27px;
    height: 3px;
    border-radius: 999px;
    background: var(--pl-orange);
}

.hero-copy h1 {
    max-width: 600px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 4.6vw, 4.15rem);
    line-height: 1.13;
    letter-spacing: -.067em;
}

.hero-description {
    max-width: 590px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 29px;
}

.button {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 850;
}

.button-primary {
    color: #fff;
    background: var(--pl-orange);
}

.button-primary:hover {
    color: #fff;
    background: var(--pl-orange-dark);
}

.button-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .07);
}

.button-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.hero-media {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #213f66;
}

.hero-media > a,
.hero-media picture,
.hero-media .hero-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-placeholder {
    display: grid !important;
    place-items: center;
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 106, 42, .34), transparent 25%),
        linear-gradient(135deg, #19385f, #0d1d34);
}

.hero-placeholder img {
    width: min(56%, 300px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, .24));
}

.hero-post-caption {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 15px;
    color: #fff;
    background: rgba(8, 20, 37, .78);
    backdrop-filter: blur(10px);
}

.hero-post-caption span {
    color: #ffbe9d;
    font-size: .78rem;
    font-weight: 850;
}

.hero-post-caption h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    line-height: 1.38;
    letter-spacing: -.03em;
}

/* Simple topics */
.topic-strip {
    padding: 0 0 24px;
}

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

.topic-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 74px;
    padding: 15px 17px;
    border: 1px solid var(--pl-line);
    border-radius: 15px;
    color: var(--pl-navy);
    background: #fff;
}

.topic-link:hover {
    transform: translateY(-2px);
    color: var(--pl-orange-dark);
    border-color: #ffb690;
    box-shadow: 0 10px 25px rgba(16, 35, 63, .07);
}

.topic-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #fff1e9;
    font-size: 1.35rem;
}

.topic-link strong {
    display: block;
    font-size: .98rem;
}

.topic-link small {
    display: block;
    margin-top: 1px;
    color: var(--pl-muted);
    font-size: .75rem;
}

/* Sections */
.home-section {
    padding: 62px 0;
}

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

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

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

.section-heading p {
    margin: 7px 0 0;
    color: var(--pl-muted);
}

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

/* Large image cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.post-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-radius);
    background: var(--pl-card);
    box-shadow: 0 9px 28px rgba(16, 35, 63, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pl-shadow);
}

.card-image-link {
    display: block;
    overflow: hidden;
    background: #dfe6ef;
}

.post-card .post-thumbnail,
.post-card .placeholder-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.placeholder-thumb {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 78% 16%, rgba(255, 106, 42, .32), transparent 24%),
        linear-gradient(135deg, #19385f, #0d1d34);
}

.placeholder-thumb img {
    width: 34%;
    max-width: 145px;
    opacity: .92;
}

.post-card-content {
    padding: 21px 22px 23px;
}

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

.category-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--pl-orange-dark);
    background: #fff0e8;
    font-size: .72rem;
    font-weight: 850;
}

.post-card h3 {
    margin: 10px 0 9px;
    color: var(--pl-navy);
    font-size: clamp(1.18rem, 2vw, 1.4rem);
    line-height: 1.42;
    letter-spacing: -.033em;
}

.post-card .excerpt {
    margin: 0;
    color: var(--pl-muted);
    font-size: .9rem;
}

.read-more {
    display: inline-block;
    margin-top: 14px;
    color: var(--pl-orange-dark);
    font-size: .87rem;
    font-weight: 850;
}

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

.guide-card {
    padding: 25px;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-radius);
    background: #fff;
}

.guide-number {
    display: block;
    color: var(--pl-orange);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.guide-card h3 {
    margin: 8px 0 7px;
    color: var(--pl-navy);
    font-size: 1.28rem;
    letter-spacing: -.035em;
}

.guide-card > p {
    margin: 0 0 16px;
    color: var(--pl-muted);
    font-size: .88rem;
}

.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-list li {
    padding: 10px 0;
    border-top: 1px solid var(--pl-line);
}

.guide-list a {
    display: block;
    color: #2b3548;
    font-size: .89rem;
    font-weight: 720;
    line-height: 1.45;
}

/* Search */
.search-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    align-items: center;
    gap: 30px;
    padding: 36px 38px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #10233f, #1b406d);
}

.search-cta h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    letter-spacing: -.045em;
}

.search-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
}

.search-form {
    display: flex;
    width: 100%;
    gap: 8px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    background: #fff;
    color: var(--pl-text);
    outline: none;
}

.search-field:focus {
    border-color: var(--pl-orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 42, .14);
}

.search-submit {
    min-width: 68px;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--pl-orange);
    font-weight: 850;
}

/* Inner pages */
.site-main {
    min-height: 60vh;
}

.content-area {
    padding: 48px 0 76px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
    gap: 30px;
}

.content-box,
.sidebar-box,
.archive-header,
.search-header {
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-radius);
    background: #fff;
    box-shadow: 0 8px 28px rgba(16, 35, 63, .05);
}

.content-box {
    padding: clamp(22px, 4vw, 48px);
}

.archive-header,
.search-header {
    margin-bottom: 25px;
    padding: 25px 27px;
}

.archive-header h1,
.search-header h1 {
    margin: 0;
    color: var(--pl-navy);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -.045em;
}

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

.entry-header {
    margin-bottom: 24px;
}

.entry-title {
    margin: 11px 0 14px;
    color: var(--pl-navy);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.25;
    letter-spacing: -.058em;
}

.entry-thumbnail {
    margin: 25px 0 34px;
}

.entry-thumbnail img {
    width: 100%;
    border-radius: 16px;
}

.entry-content {
    color: #263143;
    font-size: 1.03rem;
}

.entry-content h2 {
    margin: 2.15em 0 .7em;
    padding-bottom: .42em;
    color: var(--pl-navy);
    font-size: clamp(1.45rem, 2.7vw, 1.95rem);
    line-height: 1.4;
    letter-spacing: -.035em;
    border-bottom: 2px solid #edf1f5;
}

.entry-content h3 {
    margin: 1.7em 0 .6em;
    color: var(--pl-navy-soft);
    font-size: 1.28rem;
}

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

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

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

.entry-content img {
    margin: 1.5em auto;
    border-radius: 13px;
}

.entry-content blockquote {
    margin: 1.7em 0;
    padding: 20px 22px;
    border-left: 5px solid var(--pl-orange);
    border-radius: 0 13px 13px 0;
    color: #354052;
    background: #fff5ef;
}

.entry-content table {
    width: 100%;
    margin: 1.7em 0;
    border-collapse: collapse;
}

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

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

.entry-content pre {
    overflow: auto;
    padding: 18px;
    border-radius: 13px;
    color: #eef4fb;
    background: #111d2f;
}

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

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

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 30px;
    padding-top: 21px;
    border-top: 1px solid var(--pl-line);
}

.entry-tags a {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--pl-muted);
    background: #eef2f7;
    font-size: .8rem;
}

.author-box {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 19px;
    border-radius: 14px;
    background: #f4f7fb;
}

.author-avatar img {
    border-radius: 50%;
}

.author-box h3 {
    margin: 0 0 3px;
    color: var(--pl-navy);
    font-size: 1rem;
}

.author-box p {
    margin: 0;
    color: var(--pl-muted);
    font-size: .87rem;
}

.related-posts {
    margin-top: 44px;
}

.related-posts > h2 {
    margin: 0 0 19px;
    color: var(--pl-navy);
    font-size: 1.48rem;
}

.related-posts .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.related-posts .post-card-content {
    padding: 15px;
}

.related-posts .post-card h3 {
    font-size: .96rem;
}

.related-posts .excerpt,
.related-posts .read-more {
    display: none;
}

.sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 16px;
}

.sidebar-box {
    padding: 20px;
}

.sidebar-box h2,
.widget-title {
    margin: 0 0 13px;
    color: var(--pl-navy);
    font-size: 1rem;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    padding: 8px 0;
    border-top: 1px solid var(--pl-line);
    font-size: .87rem;
}

.sidebar li:first-child {
    border-top: 0;
}

.pagination {
    margin-top: 30px;
}

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

.page-numbers {
    display: grid;
    min-width: 40px;
    height: 40px;
    place-items: center;
    padding: 0 9px;
    border: 1px solid var(--pl-line);
    border-radius: 9px;
    background: #fff;
    font-weight: 750;
}

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

.post-navigation {
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid var(--pl-line);
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 14px;
    border: 1px solid var(--pl-line);
    border-radius: 12px;
    background: #fff;
    font-size: .87rem;
    font-weight: 750;
}

.nav-next {
    text-align: right;
}

.comments-area {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--pl-line);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--pl-line);
    border-radius: 12px;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--pl-line);
    border-radius: 9px;
}

.comment-form .submit {
    padding: 11px 17px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--pl-orange);
    font-weight: 800;
}

.not-found {
    text-align: center;
}

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

/* Footer */
.site-footer {
    color: rgba(255, 255, 255, .7);
    background: #0c1c32;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr .85fr .85fr;
    gap: 36px;
    padding: 48px 0 35px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.footer-brand h2 {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    letter-spacing: -.04em;
}

.footer-brand p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: .87rem;
}

.footer-column h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: .96rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin: 7px 0;
}

.footer-column a {
    color: rgba(255, 255, 255, .65);
    font-size: .85rem;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255, 255, 255, .45);
    font-size: .79rem;
}

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

.footer-menu a {
    color: rgba(255, 255, 255, .56);
}

.no-posts-admin {
    padding: 28px;
    border: 2px dashed #cad4e1;
    border-radius: 15px;
    text-align: center;
    background: #fff;
}

.alignwide {
    margin-right: min(-4vw, -40px);
    margin-left: min(-4vw, -40px);
    max-width: calc(100% + 8vw);
}

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

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

    .menu-toggle {
        display: block;
    }

    .header-search-link {
        margin-left: 0;
    }

    .primary-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 100px);
        overflow: auto;
        margin: 0;
        padding: 15px 20px 21px;
        border-bottom: 1px solid var(--pl-line);
        background: #fff;
        box-shadow: 0 18px 34px rgba(16, 35, 63, .12);
    }

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

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

    .primary-navigation a {
        padding: 11px 9px;
    }

    .hero-shell,
    .search-cta,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 400px;
    }

    .content-layout {
        gap: 20px;
    }

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

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

    .container {
        width: min(calc(100% - 28px), var(--pl-container));
    }

    .header-inner {
        min-height: 64px;
        gap: 9px;
    }

    .brand-mark,
    .custom-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .hero-section {
        padding-top: 18px;
    }

    .hero-shell {
        min-height: 0;
        border-radius: 20px;
    }

    .hero-copy {
        padding: 33px 24px 36px;
    }

    .hero-copy h1 {
        font-size: 2.32rem;
    }

    .hero-description {
        font-size: .97rem;
    }

    .hero-media {
        min-height: 290px;
    }

    .hero-post-caption {
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 14px 15px;
    }

    .topic-list,
    .post-grid,
    .guide-grid,
    .sidebar,
    .related-posts .post-grid {
        grid-template-columns: 1fr;
    }

    .topic-list {
        gap: 8px;
    }

    .topic-link {
        min-height: 64px;
    }

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

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

    .post-grid {
        gap: 18px;
    }

    .post-card-content {
        padding: 18px;
    }

    .search-cta {
        padding: 27px 22px;
    }

    .search-cta .search-form {
        flex-direction: column;
    }

    .content-area {
        padding: 30px 0 55px;
    }

    .content-box {
        padding: 20px 17px;
    }

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

    .nav-links,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    .footer-main {
        gap: 25px;
        padding-top: 40px;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
