/*
Theme Name:  Roadlined
Theme URI:   https://roadlined.com
Author:      Roadlined Team
Author URI:  https://roadlined.com
Description: A clean, fast magazine/travel theme for roadlined.com. Responsive, no page-builder dependencies.
Version:     1.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roadlined
Tags:        magazine, blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================= */
:root {
    --accent:        #FDA833;
    --accent-text:   #ffffff;
    --body-text:     #373737;
    --heading-color: #1B3641;
    --footer-bg:     #1B3641;
    --footer-text:   #BCBCBC;
    --border-color:  #e8e8e8;
    --page-bg:       #ffffff;
    --header-bg:     #ffffff;
    --link-color:    #1B3641;
    --link-hover:    #FDA833;
    --nav-bg:        #1B3641;
    --container:     1200px;
    --sidebar-width: 304px;
    --transition:    0.2s ease-in;
    --font-body:     'Jost', sans-serif;
    --font-heading:  'Poppins', sans-serif;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--body-text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--link-hover); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--heading-color);
    line-height: 1.25;
}

h5 { font-weight: 700; }

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* =========================================================
   LAYOUT CONTAINERS
   ========================================================= */
.container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container_alt {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Two-column: main + sidebar */
.content-sidebar-wrap {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-main {
    flex: 1 1 0;
    min-width: 0;
}

#secondary {
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
}

/* =========================================================
   SKIP LINK (Accessibility)
   ========================================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 9999;
    background: var(--accent);
    color: var(--accent-text);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =========================================================
   HEADER
   ========================================================= */
#masthead {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

/* Top header row: socials | logo | icons */
.header-top-row {
    padding: 22px 0 18px;
}

.header-top-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.header-icons { justify-self: end; }

/* Social menu (left) */
.social-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #888;
    font-size: 13px;
    transition: color var(--transition);
}
.social-menu a:hover { color: var(--accent); }

/* Logo (centre) */
.site-branding {
    text-align: center;
    flex: 0 0 auto;
}

.site-branding .logo {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.site-branding .custom-logo {
    max-width: 300px;
    max-height: 75px;
    width: auto;
    height: auto;
}

.site-branding .logo-inv { display: none; }

/* ── Sticky nav bar row: logo (left) + menu (right) ─────────── */
/* The bar is always in the DOM (position:sticky). The logo clone  */
/* is hidden until the bar pins so the top-row logo doesn't double. */

/* Flex row that holds the sticky logo and the nav together */
.nav-row {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 52px;
}

/* Sticky logo: hidden by default, one image, fixed height */
.sticky-logo {
    display: none;
    flex-shrink: 0;
    line-height: 0;
}

.sticky-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.sticky-logo a {
    display: block;
    line-height: 0;
}

/* Nav fills remaining space */
.nav-row > nav { flex: 1 1 0; min-width: 0; }

/* When bar pins: reveal logo, keep single row (also on .will-stick-bar) */
.will-stick-wrap.is-sticky .sticky-logo,
.will-stick-bar.is-sticky .sticky-logo { display: block; }

/* Sticky bar: tighter nav links to keep single-row */
.will-stick-wrap.is-sticky #main-nav > li > a,
.will-stick-bar.is-sticky #main-nav > li > a {
    padding: 14px 14px;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

.site-description {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* Header icons (right) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--body-text);
    padding: 6px 10px;
    transition: color var(--transition);
}
.header-icon-btn:hover { color: var(--accent); }
.header-icon-btn i { font-size: 16px; }

/* Sticky nav bar — spacer wrap + fixed bar (desktop ≥1025px).
   will-change/transform stay off until the bar is actually fixed, so a
   mobile position:fixed menu is positioned against the viewport. */
.will-stick-wrap {
    background: transparent;
    position: relative;
    z-index: 200;
}

.will-stick-bar {
    border-top: 1px solid var(--border-color);
    background: var(--header-bg);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

@media screen and (min-width: 1025px) {
    .will-stick-bar.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        transform: translateY(0);
        will-change: transform;
    }

    .will-stick-bar.is-fixed.is-hidden {
        transform: translateY(-100%);
        pointer-events: none;
    }

    .will-stick-bar.is-sticky {
        background: #fff;
        box-shadow: 0 2px 16px rgba(27,54,65,0.08);
        border-top-color: transparent;
    }

    .will-stick-bar.is-sticky #main-nav > li > a {
        color: var(--body-text);
    }
    .will-stick-bar.is-sticky #main-nav > li > a:hover,
    .will-stick-bar.is-sticky #main-nav > li.current-menu-item > a {
        color: var(--accent);
    }

    .will-stick-bar.is-sticky .sticky-logo {
        display: block;
    }

    .will-stick-bar.is-sticky #main-nav > li > a {
        padding: 14px 14px;
    }
}

/* Legacy class on wrap kept for back-compat (JS now toggles bar) */
.will-stick-wrap.is-sticky .sticky-logo {
    display: block;
}

/* logo-main/inv switching handled above in .sticky-logo block */

#navigation {
    padding: 0;
}

#main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

#main-nav > li {
    position: relative;
}

#main-nav > li > a {
    display: block;
    padding: 14px 18px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--body-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--transition);
}

#main-nav > li > a:hover,
#main-nav > li.current-menu-item > a,
#main-nav > li.current-menu-ancestor > a {
    color: var(--accent);
}

/* Icons are injected for the bottom bar; keep the desktop/tablet row as text. */
#main-nav > li > a .nav-icon { display: none; }

/* Dropdown */
#main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    border-top: 2px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 300;
}

#main-nav li:hover > .sub-menu,
#main-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#main-nav .sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--body-text);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), color var(--transition);
}

#main-nav .sub-menu li:last-child a { border-bottom: none; }

#main-nav .sub-menu li a:hover {
    background: var(--accent);
    color: var(--accent-text);
}

/* Mobile nav toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
    color: var(--body-text);
}

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 20px;
    position: relative;
}

.search-overlay form {
    display: flex;
    border-bottom: 2px solid #fff;
}

.search-overlay input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 24px;
    padding: 12px 0;
    font-family: var(--font-heading);
}

.search-overlay input[type="search"]::placeholder { color: rgba(255,255,255,0.5); }

.search-overlay button[type="submit"] {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 12px 10px;
}

.search-overlay-close {
    position: absolute;
    top: -56px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
}

/* =========================================================
   FLYOFF PANEL
   ========================================================= */
#flyoff {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100%;
    background: #fff;
    z-index: 10040;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 30px 24px;
    visibility: hidden;
}

#flyoff.is-open {
    right: 0;
    visibility: visible;
}

.flyoff-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.flyoff-close button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--body-text);
    transition: color var(--transition);
}
.flyoff-close button:hover { color: var(--accent); }

.flyoff-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10030;
    display: none;
}

body.search-active,
body.flyoff-active {
    overflow: hidden;
}

.flyoff-overlay.is-open { display: block; }

/* =========================================================
   SECTION TITLES (shared widget/block headings)
   ========================================================= */
.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--heading-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--accent);
}

/* =========================================================
   REVIEW BADGE
   ========================================================= */
.review-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--accent-text);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    z-index: 5;
    line-height: 1;
}

/* =========================================================
   POST CARDS — shared
   ========================================================= */
.post-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.post-card .card-thumb {
    position: relative;
    overflow: hidden;
    display: block;
}

.post-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .card-thumb img { transform: scale(1.04); }

.post-card .card-body {
    padding: 16px 18px;
}

.post-card .card-meta {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-card .card-title {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 8px;
}

.post-card .card-title a { color: var(--heading-color); }
.post-card .card-title a:hover { color: var(--accent); }

.post-card .card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* Card with overlay (titles_over) */
.post-card.overlay-style .card-thumb {
    aspect-ratio: 4/3;
}

.post-card.overlay-style .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.0) 100%);
    padding: 20px 18px 16px;
}

.post-card.overlay-style .card-title { color: #fff; font-size: 16px; margin-bottom: 0; }
.post-card.overlay-style .card-title a { color: #fff; }
.post-card.overlay-style .card-title a:hover { color: var(--accent); }
.post-card.overlay-style .card-meta { color: rgba(255,255,255,0.75); }

/* =========================================================
   HOMEPAGE — Block 1: Latest Reviews
   ========================================================= */
.block-latest-reviews {
    padding: 50px 0 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
}

.reviews-grid .post-card .card-thumb {
    aspect-ratio: 16/10;
}

/* =========================================================
   HOMEPAGE — Block 2: In Business (slider + mag-big)
   ========================================================= */
.block-in-business {
    padding: 40px 0;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.in-business-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Grid children must declare min-width:0 so 1fr tracks can shrink
   them below their content size. Without this, Owl sets the cell
   to ~6200px (5 slides × slide-width) before the grid constrains it. */
.in-business-inner > * {
    min-width: 0;
    overflow: hidden;
}

.slider-column {
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
}

.mag-big-column {
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
}

/* Vertical slider — one slide, translateY. Not Owl (Owl 2 is horizontal only). */
.roadlined-slider {
    max-width: 100%;
    position: relative;
}

.roadlined-slider:not([data-vslider="ready"]) > .slider-item + .slider-item {
    display: none;
}

.roadlined-slider .vslider-viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-x;
}

.roadlined-slider .vslider-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.45s ease;
}

.roadlined-slider .slider-item {
    width: 100%;
    flex: 0 0 auto;
}

.roadlined-slider .slider-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
}

.roadlined-slider .slider-card .slider-thumb {
    aspect-ratio: 805 / 539;
    overflow: hidden;
    display: block;
}

.roadlined-slider .slider-card .slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.roadlined-slider .slider-card:hover .slider-thumb img { transform: scale(1.04); }

.roadlined-slider .slider-card .slider-body {
    padding: 14px 16px;
}

.roadlined-slider .slider-card .slider-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
}

.roadlined-slider .slider-card .slider-title a { color: var(--heading-color); }
.roadlined-slider .slider-card .slider-title a:hover { color: var(--accent); }

.roadlined-slider .slider-card .slider-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
}

.roadlined-slider .vslider-nav {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.roadlined-slider .vslider-nav button {
    background: var(--accent);
    color: var(--accent-text);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.roadlined-slider .vslider-nav button:hover { opacity: 0.85; }

.roadlined-slider .vslider-dots {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.roadlined-slider .vslider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
}

.roadlined-slider .vslider-dots button.is-active { background: var(--accent); }

.roadlined-slider .vslider-nav button:focus-visible,
.roadlined-slider .vslider-dots button:focus-visible {
    outline: 2px solid var(--heading-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .roadlined-slider .vslider-track { transition: none; }
}

/* Mag-big card */
.mag-big-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
}

.mag-big-card .big-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    display: block;
}

.mag-big-card .big-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mag-big-card:hover .big-thumb img { transform: scale(1.04); }

.mag-big-card .big-body { padding: 20px; }

.mag-big-card .big-title {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
}

.mag-big-card .big-title a { color: var(--heading-color); }
.mag-big-card .big-title a:hover { color: var(--accent); }

.mag-big-card .big-excerpt { font-size: 15px; color: #666; line-height: 1.65; }

.mag-big-card .big-meta {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

/* =========================================================
   HOMEPAGE — Block 3: Mag-plain list + sidebar
   ========================================================= */
.block-lower {
    padding: 40px 0 50px;
}

.lower-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.lower-main { flex: 1 1 0; min-width: 0; }

.lower-sidebar {
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
}

/* Mag-plain list */
.mag-plain-list { display: flex; flex-direction: column; gap: 0; }

.mag-plain-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.mag-plain-item:last-child { border-bottom: none; }

.mag-plain-item .plain-thumb {
    flex: 0 0 120px;
    width: 120px;
    height: 80px;
    overflow: hidden;
    display: block;
}

.mag-plain-item .plain-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mag-plain-item:hover .plain-thumb img { transform: scale(1.05); }

.mag-plain-item .plain-body { flex: 1; }

.mag-plain-item .plain-meta {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.mag-plain-item .plain-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.mag-plain-item .plain-title a { color: var(--heading-color); }
.mag-plain-item .plain-title a:hover { color: var(--accent); }

/* =========================================================
   SIDEBAR WIDGETS
   ========================================================= */
.widget {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.widget:last-child { border-bottom: none; }

.widget-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--accent);
}

/* Block widgets (WP 5.8+) don't use .widget-title */
.widget h2,
.widget .wp-block-search__label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget h2::after,
.widget .wp-block-search__label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--accent);
}

.widget .wp-block-search__inside-wrapper {
    display: flex;
    max-width: 100%;
}

.widget .wp-block-search__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-family: var(--font-body);
}

.widget .wp-block-search__button {
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.4;
}

.widget li:last-child { border-bottom: none; }

.widget li a { color: var(--heading-color); }
.widget li a:hover { color: var(--accent); }

.subscribe-message {
    margin-top: 8px;
    font-size: 14px;
}

.subscribe-message.error { color: #9b2c2c; }
.subscribe-message.success { color: var(--heading-color); }

.footer-newsletter .subscribe-message,
.footer-newsletter .subscribe-message.success,
.footer-newsletter .subscribe-message.error {
    text-align: center;
    color: #fff;
}

/* Subscribe widget */
.widget-subscribe .subscribe-form { display: flex; flex-direction: column; gap: 10px; }

.widget-subscribe .subscribe-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

.widget-subscribe .subscribe-form input[type="email"]:focus { border-color: var(--accent); }

.widget-subscribe .subscribe-form button {
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity var(--transition);
}

.widget-subscribe .subscribe-form button:hover { opacity: 0.85; }

/* Recent posts widget */
.widget-recent-posts .recent-list { display: flex; flex-direction: column; gap: 14px; }

.widget-recent-posts .recent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.widget-recent-posts .recent-thumb {
    flex: 0 0 65px;
    width: 65px;
    height: 65px;
    overflow: hidden;
    display: block;
}

.widget-recent-posts .recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-recent-posts .recent-body { flex: 1; }

.widget-recent-posts .recent-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}

.widget-recent-posts .recent-title a { color: var(--heading-color); }
.widget-recent-posts .recent-title a:hover { color: var(--accent); }

.widget-recent-posts .recent-date {
    font-size: 12px;
    color: #888;
}

/* Categories widget */
.widget-categories ul { display: flex; flex-direction: column; gap: 0; }

.widget-categories ul li {
    border-bottom: 1px solid var(--border-color);
}

.widget-categories ul li:last-child { border-bottom: none; }

.widget-categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--body-text);
    transition: color var(--transition);
}

.widget-categories ul li a:hover { color: var(--accent); }

.cat-count {
    background: var(--accent);
    color: var(--accent-text);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    min-width: 24px;
    text-align: center;
    line-height: 1.6;
}

/* Trending widget */
.widget-trending .trending-list { display: flex; flex-direction: column; gap: 14px; }

.widget-trending .trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.widget-trending .trending-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    display: block;
}

.widget-trending .trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-trending .trending-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.widget-trending .trending-title a { color: var(--heading-color); }
.widget-trending .trending-title a:hover { color: var(--accent); }

.widget-trending .trending-views {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

/* Sponsor widget */
.widget-sponsor a { display: block; }
.widget-sponsor img { width: 100%; }

/* =========================================================
   ARCHIVE
   ========================================================= */
.archive-header {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 36px;
}

.archive-header .cat-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
}

.archive-header .cat-description {
    font-size: 16px;
    color: #666;
    max-width: 700px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.archive-grid .post-card .card-thumb { aspect-ratio: 3/2; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-hero-image {
    width: 100%;
    aspect-ratio: 1200 / 520;
    max-height: 520px;
    overflow: hidden;
    margin-bottom: 36px;
}

.single-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-post-wrap { padding: 40px 0 60px; }

.single-content-area {
    max-width: 760px;
    margin: 0 auto;
}

.single-content-area.has-sidebar { max-width: none; }

.post-header { margin-bottom: 30px; }

.post-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.post-category-link {
    background: var(--accent);
    color: var(--accent-text);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity var(--transition);
}

.post-category-link:hover { color: var(--accent-text); opacity: 0.8; }

.post-title { font-size: 36px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }

.post-meta-bar {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: #888;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
}

.post-meta-bar a { color: #888; }
.post-meta-bar a:hover { color: var(--accent); }

.post-meta-bar .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.post-meta-bar .author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Post content styles */
.entry-content { font-size: 17px; line-height: 1.8; color: var(--body-text); }

.entry-content h2 { font-size: 26px; margin: 32px 0 14px; }
.entry-content h3 { font-size: 21px; margin: 28px 0 12px; }
.entry-content h4 { font-size: 18px; margin: 24px 0 10px; }

.entry-content p { margin-bottom: 20px; }

.entry-content ul, .entry-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
    list-style: disc;
}

.entry-content ol { list-style: decimal; }

.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 14px 20px;
    margin: 24px 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content a:hover { opacity: 0.8; }

.entry-content img { margin: 20px 0; }

.entry-content .wp-caption { max-width: 100%; margin: 20px 0; }
.entry-content .wp-caption-text { font-size: 13px; color: #888; text-align: center; margin-top: 6px; }

/* Review score block */
.review-score-block {
    background: var(--accent);
    color: var(--accent-text);
    padding: 20px 24px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.review-score-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
}

.review-score-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Post views */
.post-views { display: inline-flex; align-items: center; gap: 5px; }

/* Share stub */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #1DA1F2;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition);
    text-decoration: none;
}

.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.fb { background: #1877F2; }
.share-btn.pinterest { background: #E60023; }

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 24px;
}

.comment-list { margin-bottom: 40px; }

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    float: left;
    margin-right: 14px;
    overflow: hidden;
}

.comment-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-author-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.comment-date { font-size: 13px; color: #888; margin-bottom: 8px; }

.comment-text { font-size: 15px; overflow: hidden; }

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 15px;
    font-family: var(--font-body);
    margin-bottom: 14px;
    transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form button[type="submit"] {
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity var(--transition);
}

.comment-form button[type="submit"]:hover { opacity: 0.85; }

/* =========================================================
   404 PAGE
   ========================================================= */
.error-404-wrap {
    padding: 80px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-code {
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404-title { font-size: 30px; margin-bottom: 16px; }
.error-404-text { color: #666; margin-bottom: 28px; }

.error-404-search { max-width: 440px; margin: 0 auto; }

/* =========================================================
   SEARCH RESULTS PAGE
   ========================================================= */
.search-header {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 36px;
}

.search-header h1 {
    font-size: 28px;
    font-weight: 900;
}

.search-header h1 span { color: var(--accent); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0 20px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--body-text);
    transition: background var(--transition), color var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb-wrap {
    padding: 12px 0;
    font-size: 13px;
    color: #888;
}

.breadcrumb-wrap a { color: #888; }
.breadcrumb-wrap a:hover { color: var(--accent); }
.breadcrumb-wrap span.sep { margin: 0 6px; }
.breadcrumb-wrap span.current { color: var(--body-text); }

/* =========================================================
   FOOTER
   ========================================================= */
#colophon {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 60px;
}

.footer-widgets-wrap {
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(188,188,188,0.15);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col .widget-title,
.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(188,188,188,0.2);
    position: relative;
}

.footer-col .widget-title::after,
.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.footer-col p,
.footer-col li,
.footer-col a {
    font-size: 14px;
    color: var(--footer-text);
    line-height: 1.7;
}

.footer-col a:hover { color: #fff; }

.footer-col .widget li a,
.footer-col .widget li a:hover {
    color: var(--footer-text);
}

.footer-col .widget li a:hover { color: #fff; }

.footer-col ul li { padding: 4px 0; border-bottom: 1px solid rgba(188,188,188,0.1); }
.footer-col ul li:last-child { border-bottom: none; }

.footer-search input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    outline: none;
    margin-top: 10px;
}

.footer-search input[type="search"]::placeholder { color: rgba(255,255,255,0.4); }

/* Footer newsletter bar */
.footer-newsletter {
    padding: 28px 0;
    border-bottom: 1px solid rgba(188,188,188,0.15);
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.footer-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }

.footer-newsletter-form button {
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Footer social row */
.footer-social-row {
    padding: 20px 0;
    border-bottom: 1px solid rgba(188,188,188,0.15);
}

/* Footer logo */
.footer-logo {
    text-align: center;
    margin-bottom: 15px;
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
}

.footer-social-row .social-menu { justify-content: center; gap: 16px; }
.footer-social-row .social-menu a { color: var(--footer-text); font-size: 18px; }
.footer-social-row .social-menu a:hover { color: var(--accent); }

/* Footer bottom */
.footer-bottom {
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--footer-text);
}

.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   UTILITY
   ========================================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.clearfix::after { content: ''; display: table; clear: both; }

.text-centre { text-align: center; }

/* Read more link */
.read-more-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
    transition: opacity var(--transition);
}

.read-more-link:hover { color: var(--accent); opacity: 0.75; }

/* =========================================================
   SEOUL HOMEPAGE + SINGLE
   ========================================================= */
body { overflow-x: clip; }

.section-badge {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    background: #1b1b1b;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    padding: 9px 12px;
    z-index: 4;
}

.section-badge::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--accent);
}

.entry-kicker,
.single-kicker {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.entry-kicker .dot,
.single-kicker .dot { margin: 0 4px; }

.home-reviews { padding: 28px 0 10px; }

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

.review-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: #111;
    color: #fff;
}

.review-card .card-thumb,
.review-card .card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.review-card .card-thumb img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.review-card:hover .card-thumb img { transform: scale(1.04); }

.review-card .section-badge {
    position: absolute;
    top: 22px;
    left: 18px;
}

.review-card .card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 20px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0) 100%);
}

.review-card .entry-kicker,
.review-card .entry-kicker a { color: rgba(255,255,255,0.86); }

.review-card .entry-kicker { margin-bottom: 10px; }

.review-card .entry-kicker::after {
    content: '';
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 10px;
    background: rgba(255,255,255,0.85);
}

.review-card .card-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.review-card .card-title a { color: #fff; }
.review-card .card-title a:hover { color: var(--accent); }

.review-badge {
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1.05;
    text-align: center;
}

.home-split-wrap { padding: 28px 0 10px; }

.home-split,
.home-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 36px;
    align-items: start;
}

.home-bottom { margin-top: 34px; }

.home-content,
.home-sidebar,
.home-features,
.home-sponsor { min-width: 0; }

.roadlined-slider { position: relative; }

.roadlined-slider .section-badge {
    position: absolute;
    top: 22px;
    left: 18px;
    z-index: 5;
}

.slider-card { position: relative; overflow: hidden; background: #111; color: #fff; }

.slider-card .slider-thumb { display: block; aspect-ratio: 16 / 10; }

.slider-card .slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-card .slider-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 28px 56px;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
}

.slider-card .entry-kicker,
.slider-card .entry-kicker a,
.slider-card .slider-title a,
.slider-card .slider-excerpt { color: #fff; }

.slider-card .slider-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 8px 0;
}

.slider-card .slider-title a:hover { color: var(--accent); }

.slider-card .slider-excerpt {
    max-width: 640px;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.roadlined-slider .vslider-nav { display: none; }

.roadlined-slider .vslider-dots {
    position: absolute;
    left: 28px;
    bottom: 18px;
    z-index: 6;
    margin: 0;
}

.roadlined-slider .vslider-dots button {
    width: 9px;
    height: 9px;
    background: rgba(255,255,255,0.45);
}

.roadlined-slider .vslider-dots button.is-active { background: var(--accent); }

.home-duo {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    margin-top: 28px;
}

.home-duo.is-single { grid-template-columns: minmax(0, 1fr); }

.mag-feature .big-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
}

.mag-feature .big-title a { color: var(--heading-color); }
.mag-feature .big-title a:hover { color: var(--accent); }

.mag-feature .big-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 14px;
    background: #eee;
}

.mag-feature .big-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mag-feature .entry-kicker { color: #888; margin-bottom: 10px; }

.mag-feature .entry-kicker::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 8px;
    background: var(--accent);
}

.mag-feature .big-excerpt {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.65;
}

.read-more-link {
    border: 1px solid var(--accent);
    padding: 8px 14px;
    margin-top: 16px;
}

.plain-item {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.plain-item:last-child { border-bottom: none; margin-bottom: 0; }

.plain-item .entry-kicker { color: #888; }

.plain-item .entry-kicker::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 8px;
    background: var(--accent);
}

.plain-item .plain-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 10px 0 8px;
}

.plain-item .plain-title a { color: var(--heading-color); }
.plain-item .plain-title a:hover { color: var(--accent); }

.plain-item .plain-excerpt {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.home-newsletter {
    margin-top: 28px;
    background: var(--heading-color);
    color: #fff;
    text-align: center;
    padding: 42px 28px;
}

.home-newsletter h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.home-newsletter p {
    margin: 0 auto 18px;
    max-width: 520px;
    color: rgba(255,255,255,0.82);
}

.home-newsletter-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
}

.home-newsletter-form input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    padding: 12px 14px;
    font-size: 14px;
}

.home-newsletter-form button {
    border: none;
    background: var(--accent);
    color: var(--accent-text);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 18px;
    cursor: pointer;
}

.home-sidebar .widget { border-bottom: none; padding-bottom: 8px; }

.home-sidebar .widget-title {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: popular; }

.popular-item {
    display: flex;
    gap: 14px;
    align-items: center;
    counter-increment: popular;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-thumb {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: visible;
}

.popular-thumb img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.popular-thumb::before {
    content: counter(popular);
    position: absolute;
    left: -6px;
    top: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popular-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
}

.popular-title a { color: var(--heading-color); }
.popular-title a:hover { color: var(--accent); }

.popular-body time {
    color: #999;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.cat-count-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--heading-color);
}

.footer-col .cat-count-list a { border-bottom-color: rgba(255,255,255,0.12); color: var(--footer-text); }

.cat-count {
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.home-features:empty { display: none; }

.feature-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-thumb {
    position: relative;
    display: block;
    width: 92px;
    height: 72px;
    overflow: hidden;
    background: #eee;
}

.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }

.feature-thumb .review-badge {
    width: 32px;
    height: 32px;
    top: 4px;
    right: 4px;
    font-size: 10px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

.feature-title a { color: var(--heading-color); }
.feature-title a:hover { color: var(--accent); }

.feature-cats,
.feature-cats a {
    color: #999;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-sponsor img { width: 100%; height: auto; }

@media screen and (min-width: 1025px) {
    .home-features { grid-column: 1; }
    .home-sponsor { grid-column: 2; }
}

.footer-col h2 {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 12px;
    position: relative;
}

.footer-col h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.footer-search {
    display: flex;
    margin-top: 16px;
    max-width: 100%;
}

.footer-search input[type="search"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-right: none;
    color: #fff;
    padding: 10px 12px;
}

.footer-search button {
    width: 44px;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.footer-comments,
.footer-meta { list-style: none; margin: 0; padding: 0; }

.footer-comments li,
.footer-meta li { padding: 6px 0; }

.footer-bottom-inner .social-menu { justify-content: center; margin-bottom: 10px; }
.footer-bottom .social-menu a { color: var(--footer-text); }
.footer-bottom .footer-links { display: inline; }
.footer-bottom .footer-links li { display: inline; }
.footer-bottom .footer-links li + li::before { content: ' · '; }

.single-shell { padding: 18px 0 64px; }

.single-header,
.single-hero-image,
.single-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }

.single-header { text-align: center; padding: 18px 0 8px; }

.single-kicker {
    color: #9a9a9a;
    margin-bottom: 14px;
}

.single-kicker a { color: #9a9a9a; }
.single-kicker a:hover { color: var(--accent); }

.single-shell .post-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
}

.single-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
    margin: 0 auto;
    max-width: 720px;
}

.single-hero-image {
    position: relative;
    margin: 28px auto 32px;
    aspect-ratio: auto;
    max-height: none;
}

.single-hero-image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.single-narrow .entry-content { max-width: 720px; margin: 0 auto; }

.single-narrow .home-newsletter { margin-top: 36px; }

.single-narrow .share-buttons,
.single-narrow .post-tags { max-width: 720px; margin-left: auto; margin-right: auto; }

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

.related-heading {
    text-align: center;
    font-size: 22px;
    margin-bottom: 22px;
}

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

.related-card .card-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.related-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .card-body { padding: 12px 0 0; }
.related-card .entry-kicker { color: #999; margin-bottom: 6px; }
.related-card .card-title { font-size: 16px; font-weight: 700; margin: 0; }
.related-card .card-title a { color: var(--heading-color); }

.story-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 36px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.story-link {
    display: block;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

.story-link span {
    display: block;
    color: #999;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.story-link strong {
    display: block;
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-size: 16px;
}

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

.flyoff-nav { list-style: none; margin: 0 0 28px; padding: 0; }
.flyoff-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--heading-color);
}
.flyoff-nav .sub-menu { display: none; margin: 0; padding: 0 0 0 12px; list-style: none; }
.flyoff-nav .sub-menu.is-open { display: block; }
.flyoff-nav .sub-menu a { text-transform: none; font-weight: 500; }

.entry-content iframe,
.entry-content video,
.entry-content table,
.entry-content pre { max-width: 100%; }
.entry-content table,
.entry-content pre { overflow-x: auto; }
