/* =========================================================
   DELEGATION — MAIN STYLESHEET
   Boutique home decor, mobile-first, Pakistan nationwide COD
   Consumes design tokens + --z-* stacking vars from style.css
   ========================================================= */

/* =========================================================
   BASE (style.css already sets *{box-sizing}, html/body overflow-x,
   and img/video/iframe/table max-width — not repeated here)
   ========================================================= */
body {
    padding-bottom: calc(64px + var(--safe-bottom));
    position: relative; /* establishes this as the root stacking context */
}
@media (min-width: 900px) {
    body { padding-bottom: 0; }
}

img { display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
    color: var(--color-black);
}
p { margin: 0 0 1em; max-width: 68ch; }

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.skip-link:focus {
    position: fixed;
    top: 8px; left: 8px;
    width: auto; height: auto;
    background: var(--color-black);
    color: var(--color-white);
    padding: 12px 16px;
    z-index: var(--z-drawer); /* must sit above everything, including the cart drawer */
    border-radius: var(--radius-sm);
}

*:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   ZERO-OVERLAP UTILITIES
   ---------------------------------------------------------
   Small, reusable rules that prevent the specific overlap bugs
   reported: long unbroken product/customer names pushing past
   card edges, and flex/grid children refusing to shrink below
   their content size (the #1 cause of sideways-pushed layouts
   in flex/grid contexts).
   ========================================================= */
.u-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* required for truncation to work inside flex/grid children */
}
.u-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.u-shrink-safe {
    min-width: 0;
    min-height: 0;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow { max-width: 760px; }

.section { padding: 40px 0; }
.section__title { font-size: var(--fs-h2); margin-bottom: 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, background 0.2s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; pointer-events: none; }

.btn--primary { background: var(--color-black); color: var(--color-canvas); }
.btn--primary:hover { background: #000; }

.btn--outline {
    background: transparent;
    color: var(--color-black);
    border: 1.5px solid var(--color-black);
}

/* =========================================================
   TOAST NOTIFICATIONS (AJAX success/error feedback)
   ========================================================= */
.toast-stack {
    position: fixed;
    left: 50%;
    bottom: calc(72px + var(--safe-bottom));
    transform: translateX(-50%);
    z-index: var(--z-drawer);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}
.toast {
    background: var(--color-black);
    color: var(--color-canvas);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.toast--error { background: var(--color-error); }
@media (min-width: 900px) {
    .toast-stack { bottom: 24px; }
}

/* =========================================================
   HEADER + ANNOUNCEMENT BAR
   ========================================================= */
.announcement-bar {
    background: var(--color-black);
    color: var(--color-gold);
    text-align: center;
    padding: 8px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}
.announcement-bar p { margin: 0; max-width: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(249, 248, 246, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-divider);
    padding-top: var(--safe-top);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 64px;
    padding: 0 12px;
}

.site-header__menu-toggle {
    flex-shrink: 0;
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.site-header__menu-toggle span {
    width: 22px; height: 2px;
    background: var(--color-black);
    display: block;
}

.site-header__logo {
    display: flex;
    align-items: center;
    min-width: 0; /* allow the wordmark/logo to truncate instead of pushing icons off-screen */
    overflow: hidden;
}
.site-header__wordmark {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header__actions { display: flex; gap: 4px; flex-shrink: 0; }
.site-header__icon-btn {
    position: relative;
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
}

.site-header__cart-count {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--color-gold);
    color: var(--color-black);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.site-header__search-panel {
    border-top: 1px solid var(--color-divider);
    padding: 12px;
}
.site-header__search-input {
    width: 100%;
    height: var(--touch-target);
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-divider);
    background: var(--color-white);
    font-size: 1rem;
}
.site-header__search-results {
    margin-top: 8px;
    max-height: 60vh;
    overflow-y: auto;
}
.site-header__search-result {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid var(--color-divider);
}
.site-header__search-result img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.site-header__search-result span { min-width: 0; }
.site-header__search-empty { font-size: 0.85rem; color: #6b6b6b; padding: 8px 4px; }

.site-header__nav {
    display: none;
    border-top: 1px solid var(--color-divider);
}
.site-header__nav.is-open { display: block; }
.site-header__nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 12px 16px;
}
.site-header__nav-list li a {
    display: block;
    padding: 12px 4px;
    font-size: 1.05rem;
}

@media (min-width: 900px) {
    .site-header__bar { padding: 0 32px; }
    .site-header__menu-toggle { display: none; }
    .site-header__nav { display: block; border-top: none; }
    .site-header__nav-list { display: flex; gap: 28px; padding: 0; }
}

/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: var(--z-sticky-bar);
    display: flex;
    background: var(--color-white);
    border-top: 1px solid var(--color-divider);
    padding-bottom: var(--safe-bottom);
}
.mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    font-size: 0.68rem;
    color: var(--color-black);
}
@media (min-width: 900px) {
    .mobile-bottom-nav { display: none; }
}

/* =========================================================
   MINI CART DRAWER
   ========================================================= */
.mini-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    visibility: hidden;
}
.mini-cart-drawer.is-open { visibility: visible; }

.mini-cart-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mini-cart-drawer.is-open .mini-cart-drawer__overlay { opacity: 1; }

.mini-cart-drawer__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 92vw);
    background: var(--color-canvas);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}
.mini-cart-drawer.is-open .mini-cart-drawer__panel { transform: translateX(0); }

.mini-cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-divider);
    flex-shrink: 0;
}
.mini-cart-drawer__close {
    width: var(--touch-target);
    height: var(--touch-target);
    font-size: 1.6rem;
    line-height: 1;
}
.mini-cart-drawer__body {
    flex: 1;
    min-height: 0; /* required so this scrolls instead of stretching the drawer off-screen */
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.mini-cart__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-divider);
    position: relative;
}
.mini-cart__item-img {
    width: 64px; height: 64px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-divider);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.mini-cart__item-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mini-cart__item-title { font-weight: 600; font-size: 0.9rem; }
.mini-cart__item-qty { font-size: 0.8rem; color: #6b6b6b; }
.mini-cart__item-price { font-size: 0.85rem; font-weight: 600; }
.mini-cart__item-remove {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #999;
}

.mini-cart__free-shipping {
    display: flex; align-items: center; gap: 8px;
    background: #FBF6E7;
    color: #8a6d10;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin: 14px 0;
    font-size: 0.85rem;
}

.mini-cart__note { margin-bottom: 16px; }
.mini-cart__note label { display: block; font-size: 0.8rem; margin-bottom: 6px; color: #555; }
.mini-cart__note textarea {
    width: 100%;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-family: var(--font-body);
    resize: vertical;
}

.mini-cart__subtotal {
    display: flex; justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--color-divider);
    margin-bottom: 12px;
    flex-shrink: 0;
}
.mini-cart__checkout-btn { width: 100%; flex-shrink: 0; }
.mini-cart__empty { text-align: center; padding: 40px 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; display: flex; flex-direction: column; }
.hero__media { height: 60vh; min-height: 380px; position: relative; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--placeholder { background: linear-gradient(160deg, #1c1c1c, #3a3630); }

.hero__content { background: var(--color-black); color: var(--color-canvas); padding: 32px 24px 40px; }
.hero__kicker { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--color-gold); margin-bottom: 10px; }
.hero__title { font-size: var(--fs-h1); color: var(--color-canvas); max-width: 16ch; }
.hero__subtitle { color: #d8d5cf; max-width: 40ch; }
.hero__cta { margin-top: 10px; }

@media (min-width: 900px) {
    .hero { flex-direction: row-reverse; min-height: 560px; }
    .hero__media { height: auto; flex: 1.1; }
    .hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 60px; }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
}
.trust-strip__item {
    background: var(--color-white);
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 0;
}
@media (min-width: 700px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   CATEGORY RAIL
   ========================================================= */
.category-rail__scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 20px 8px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
}
.category-card { scroll-snap-align: start; flex: 0 0 128px; text-align: center; }
.category-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--color-divider);
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
}
.category-card__label { font-size: 0.82rem; font-weight: 600; }

/* =========================================================
   PRODUCT GRID / CARD
   ========================================================= */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: block; min-width: 0; }
.product-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--color-divider);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}
.product-card__title {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 4px;
}
.product-card__price { display: block; font-size: 0.85rem; font-weight: 700; color: var(--color-black); }

/* =========================================================
   REELS TEASER (homepage)
   ========================================================= */
.reels-teaser {
    background: var(--color-black);
    color: var(--color-canvas);
    border-radius: var(--radius-md);
    margin: 40px 20px;
    padding: 40px 28px;
    text-align: center;
}
.reels-teaser .section__title { color: var(--color-canvas); }
.reels-teaser p { margin: 0 auto 20px; color: #d8d5cf; }
.reels-teaser .btn--outline { color: var(--color-canvas); border-color: var(--color-canvas); }

/* =========================================================
   SHOP / ARCHIVE
   ========================================================= */
.shop-page__header { padding: 24px 0 16px; }
.shop-page__title { font-size: var(--fs-h1); }
.shop-page__pagination { padding: 24px 0; text-align: center; }
.shop-page__pagination .page-numbers {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    margin: 0 4px;
    border-radius: 50%;
}
.shop-page__pagination .page-numbers.current { background: var(--color-black); color: var(--color-canvas); }

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
.product-gallery { position: relative; }
.product-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.product-gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; background: var(--color-divider); }
.product-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery__dots {
    position: absolute;
    bottom: 12px; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: var(--z-base);
}
.product-gallery__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.product-gallery__dot.is-active { background: var(--color-white); width: 16px; border-radius: 3px; }

.product-summary { padding: 24px 20px 40px; }
.product-summary__eyebrow { font-size: 0.75rem; color: #8a8a8a; margin-bottom: 6px; }
.product-summary__title { font-size: var(--fs-h2); }
.product-summary__price { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.product-summary__cta { display: flex; gap: 12px; margin-bottom: 24px; }
.product-summary__cta .btn { flex: 1; min-width: 0; }
.product-summary__oos { color: var(--color-error); font-weight: 600; }

.product-trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
.product-trust-badges__item {
    display: flex; align-items: center; gap: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 0;
}

.accordion__item { border-bottom: 1px solid var(--color-divider); }
.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 4px;
    min-height: var(--touch-target);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}
.accordion__icon { font-size: 1.2rem; font-weight: 400; transition: transform 0.2s ease; flex-shrink: 0; }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner { overflow: hidden; padding-bottom: 16px; min-height: 0; }

.sticky-buy-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-sticky-bar);
    background: var(--color-white);
    border-top: 1px solid var(--color-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    padding-bottom: calc(10px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.sticky-buy-bar.is-visible { transform: translateY(0); }
.sticky-buy-bar__info { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.sticky-buy-bar__title { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-bar__price { font-weight: 700; }
.sticky-buy-bar__btn { flex-shrink: 0; }

@media (min-width: 900px) {
    .single-product-page {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        max-width: var(--container-max);
        margin: 0 auto;
        padding: 32px 32px 0;
    }
    .product-gallery__slide { aspect-ratio: 4/5; }
    .product-summary { padding: 0; }
    .sticky-buy-bar { display: none; }
}

/* =========================================================
   COD CHECKOUT
   ========================================================= */
.cod-checkout { max-width: 640px; margin: 0 auto; padding: 24px 20px 60px; }
.cod-checkout--empty { text-align: center; padding: 80px 20px; }
.cod-checkout__title { font-size: var(--fs-h1); margin-bottom: 4px; }
.cod-checkout__subtitle { color: #6b6b6b; margin-bottom: 28px; }
.cod-checkout__section { margin-bottom: 28px; }
.cod-checkout__section h2 { font-size: 1.05rem; margin-bottom: 14px; }

.cod-checkout__fields .form-row { margin-bottom: 14px; }
.cod-checkout__fields label { display: block; font-size: 0.85rem; margin-bottom: 6px; font-weight: 600; }
.cod-checkout__fields input,
.cod-checkout__fields select,
.cod-checkout__fields textarea {
    width: 100%;
    min-height: var(--touch-target);
    padding: 0 14px;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
}
.cod-checkout__fields textarea { padding: 12px 14px; min-height: 90px; }

.cod-checkout__payment-badge {
    display: flex; gap: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    padding: 16px;
}
.cod-checkout__payment-badge span { font-size: 1.6rem; flex-shrink: 0; }
.cod-checkout__payment-badge p { margin: 0; }

.cod-checkout__place-order { width: 100%; margin-top: 8px; }
.cod-checkout__item-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }

.woocommerce-checkout-review-order table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.woocommerce-checkout-review-order th,
.woocommerce-checkout-review-order td {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-divider);
    text-align: left;
    font-size: 0.9rem;
    word-break: break-word; /* long product names cannot push the table wider than the viewport */
}
.woocommerce-info { padding: 14px 16px; background: #FBF6E7; border-radius: var(--radius-md); color: #8a6d10; }

/* =========================================================
   RETURNS PAGE
   ========================================================= */
.page-title { font-size: var(--fs-h1); margin-bottom: 24px; }
.policy-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
@media (min-width: 700px) { .policy-grid { grid-template-columns: 1fr 1fr; } }
.policy-card { background: var(--color-white); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: 20px; }
.policy-card__icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.policy-card h2 { font-size: 1.05rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--color-black); color: #cfcbc2; margin-top: 40px; }
.site-footer__trust { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid #2b2b2b; }
.site-footer__trust-item {
    display: flex; align-items: center; gap: 8px;
    padding: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-canvas);
    border: 1px solid #2b2b2b;
    min-width: 0;
}
@media (min-width: 700px) { .site-footer__trust { grid-template-columns: repeat(4, 1fr); } }

.site-footer__main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer__wordmark { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-canvas); }
.site-footer__tagline { max-width: 36ch; font-size: 0.88rem; }
.site-footer__col h3 { color: var(--color-canvas); font-size: 0.95rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a { font-size: 0.88rem; }

.site-footer__bottom { border-top: 1px solid #2b2b2b; text-align: center; padding: 18px; font-size: 0.78rem; }

/* =========================================================
   GENERIC PAGE (page.php)
   ========================================================= */
.page-article__thumb { margin-bottom: 24px; }
.page-article__thumb-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.page-article__header { margin-bottom: 16px; }
.page-article__content :where(h2, h3) { margin-top: 1.4em; }
.page-article__content :where(ul, ol) { padding-left: 1.2em; }
.page-article__content img { border-radius: var(--radius-md); margin: 1em 0; }
.page-article__pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 0.85rem;
}
.page-article__pagination a {
    display: inline-flex;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-sm);
}

/* =========================================================
   POST LIST (index.php fallback)
   ========================================================= */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-list__item { display: flex; flex-direction: column; gap: 12px; }
.post-list__thumb img { border-radius: var(--radius-md); aspect-ratio: 16/9; object-fit: cover; }
.post-list__title { font-size: 1.2rem; }
