/* =============================================================================
   CITY PAGE — city-page.css  (loaded only by public/city.php via $pageCss)
   Wine accent #bd1211 · header gradient comes from theme.css
   Sections: notice · breadcrumb/search · intro · featured videos · listing
   cards (folded-paper shadow) · sidebar · related · quick nav · article ·
   FAQ · video player · responsive
============================================================================= */

:root {
    /* palette: #BD1211 red (primary) + #000000 black (secondary), white backgrounds */
    --cp-wine: #bd1211;
    --cp-peach: #bd1211;
    --cp-wine-dark: #000000;
    --cp-notice: #000000;
    --cp-pink: #f7eded;
    --cp-pink-soft: #fbf6f6;
    --cp-line: #ede7e7;
    --cp-ink: #111111;
    --cp-text: #444444;
    --cp-muted: #6b6b6b;
    --cp-lav: #000000;
    --cp-lav-dark: #2b2b2b;
    --cp-gold: #000000;
    --cp-teal: #bd1211;
    --cp-blue: #000000;
    --cp-fold-shadow: rgba(0, 0, 0, 0.32);
}

/* ── Safety notice ─────────────────────────────────────────────────────────── */
.cp-notice {
    position: relative;
    background: var(--cp-notice);
    color: #fff;
}

.cp-notice[hidden] {
    display: none;
}

.cp-notice-text {
    margin: 0 auto;
    padding-top: 9px;
    padding-bottom: 9px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.cp-notice-close {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cp-notice-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── Breadcrumb + search ───────────────────────────────────────────────────── */
.cp-crumbbar {
    background: #f8f5f5;
    border-bottom: 1px solid #ede8e8;
}

.cp-crumbbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.cp-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.96rem;
}

.cp-crumbs li {
    display: inline-flex;
    align-items: center;
    color: #555;
}

.cp-crumbs li + li::before {
    content: "\203A";
    margin: 0 11px;
    color: #ababab;
    font-size: 1.1rem;
    line-height: 1;
}

.cp-crumbs a {
    color: #555;
    text-decoration: none;
}

.cp-crumbs a:hover {
    color: var(--cp-wine);
}

.cp-crumb-current {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--cp-pink);
    color: var(--cp-wine);
    font-weight: 600;
}

.cp-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 344px;
    height: 48px;
    padding: 4px 4px 4px 16px;
    background: #fff;
    border: 1px solid #e9e4e4;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(189, 18, 17, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-search:focus-within {
    border-color: #d5baba;
    box-shadow: 0 0 0 3px rgba(189, 18, 17, 0.1);
}

.cp-search > i {
    color: #777;
    font-size: 0.95rem;
}

.cp-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 0.98rem;
    color: var(--cp-ink);
}

.cp-search input::placeholder {
    color: #8a8a94;
}

.cp-search button {
    height: 100%;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--cp-wine);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cp-search button:hover {
    background: var(--cp-wine-dark);
}

/* ── H1 + intro ────────────────────────────────────────────────────────────── */
.cp-page {
    padding-top: 30px;
}

.cp-h1 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--cp-wine);
    font-size: clamp(1.5rem, 2.7vw, 2.05rem);
    font-weight: 700;
    line-height: 1.25;
}

.cp-h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 84px;
    height: 3px;
    border-radius: 3px;
    background: var(--cp-peach);
}

.cp-intro-text {
    --cp-lh: 1.85;
    color: var(--cp-text);
    font-size: 1rem;
    line-height: var(--cp-lh);
}

.cp-intro-text p {
    margin: 0 0 14px;
}

/* "Read more" toggle — only shown on phones (see the 768px block) */
.cp-readmore {
    display: none;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--cp-ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.cp-readmore[hidden] {
    display: none !important;
}

.cp-readmore i {
    color: var(--cp-wine);
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.cp-readmore.is-open i {
    transform: rotate(180deg);
}

.cp-readmore:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cp-intro-text a,
.cp-intro-text strong,
.cp-intro-text b {
    color: var(--cp-wine);
    font-weight: 700;
}

.cp-intro-text a {
    text-decoration: none;
}

.cp-intro-text a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Featured videos ───────────────────────────────────────────────────────── */
.cp-videos {
    margin: 22px 0 36px;
}

.cp-videos-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--cp-wine);
    font-size: 1rem;
    font-weight: 700;
}

.cp-live-dot {
    position: relative;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bd1211;
    box-shadow: 0 0 0 4px rgba(189, 18, 17, 0.18);
}

.cp-live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: cp-pulse 1.6s ease-out infinite;
}

@keyframes cp-pulse {
    from {
        transform: scale(1);
        opacity: 0.7;
    }

    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

.cp-videos-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #e1cece transparent;
}

.cp-vcard {
    position: relative;
    flex: 0 0 120px;
    height: 166px;
    padding: 0;
    border: 2px solid #e4dddd;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cp-vcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.cp-vcard:focus-visible {
    outline: 3px solid rgba(189, 18, 17, 0.45);
    outline-offset: 2px;
}

.cp-vcard--vip {
    border-color: var(--cp-gold);
}

.cp-vcard--new {
    border-color: var(--cp-teal);
}

.cp-vcard-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.cp-vcard::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.cp-vcard-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.cp-vcard--vip .cp-vcard-badge {
    background: var(--cp-gold);
    color: #ffffff;
}

.cp-vcard--new .cp-vcard-badge {
    background: #bd1211;
    color: #ffffff;
}

.cp-vcard-corner {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.55rem;
}

.cp-vcard-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.9rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cp-vcard-play i,
.cp-vcard-corner i {
    margin-left: 2px;
}

.cp-vcard.is-playing .cp-vcard-play {
    opacity: 0;
    transform: scale(0.8);
}

.cp-vcard-cap {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 8px;
    z-index: 2;
    color: #fff;
    text-align: left;
    font-size: 0.78rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cp-vcard-cap strong {
    display: block;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-vcard-cap span {
    font-weight: 600;
}

/* ── Listing + sidebar layout ──────────────────────────────────────────────── */
.cp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 312px;
    gap: 28px;
    align-items: start;
}

.cp-h2 {
    margin: 0 0 6px;
    padding-left: 14px;
    border-left: 4px solid var(--cp-peach);
    color: var(--cp-wine);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.cp-updated {
    margin: 0 0 20px;
    color: var(--cp-muted);
    font-size: 0.92rem;
}

.cp-updated strong {
    color: #333;
}

.cp-updated a {
    color: var(--cp-wine);
    font-weight: 600;
}

.cp-updated-sep {
    margin: 0 6px;
    color: #c9bcbc;
}

/* ── Listing cards with a folded-paper shadow ──────────────────────────────── */
/* The list is its own stacking context, so the card's z-index:-1 pseudo
   shadows sit just behind each card (and above the page background). Cards
   lift with `top`, not `transform`, because a transform would give the card its
   own stacking context and pull those shadows in front of it. */
.cp-cards {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cp-card {
    position: relative;
    top: 0;
    display: flex;
    min-height: 188px;
    background: #fff;
    border: 1px solid var(--cp-line);
    border-radius: 12px;
    transition: top 0.25s ease, border-color 0.25s ease;
}

/* Two angled shadows peek out under the bottom corners — the "lifted page" look */
.cp-card::before,
.cp-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 10px;
    width: 46%;
    height: 30%;
    max-height: 70px;
    box-shadow: 0 15px 12px var(--cp-fold-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cp-card::before {
    left: 10px;
    transform: rotate(-3deg);
}

.cp-card::after {
    right: 10px;
    transform: rotate(3deg);
}

.cp-card:hover {
    top: -3px;
    border-color: #e2d9d9;
}

.cp-card:hover::before {
    box-shadow: 0 20px 16px rgba(0, 0, 0, 0.3);
    transform: rotate(-3.6deg);
}

.cp-card:hover::after {
    box-shadow: 0 20px 16px rgba(0, 0, 0, 0.3);
    transform: rotate(3.6deg);
}

.cp-card-media {
    position: relative;
    flex: 0 0 200px;
    overflow: hidden;
    border-radius: 11px 0 0 11px;
    background: linear-gradient(135deg, #efeaea 0%, #f4e9e9 100%);
}

.cp-card-img {
    position: absolute;
    inset: 0;
    display: block;
}

.cp-card-noimg {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #cfaeae;
    font-size: 2.4rem;
}

.cp-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.cp-ribbon {
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 18px 4px 10px;
    background: var(--cp-blue);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}

.cp-fav {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(40, 40, 45, 0.55);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cp-fav:hover {
    background: rgba(189, 18, 17, 0.85);
}

.cp-fav.is-on {
    background: #fff;
    color: #000000;
}

.cp-card-body {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 16px 16px;
}

/* Folded top-right corner */
.cp-card-body::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 26px;
    height: 26px;
    border-radius: 0 12px 0 6px;
    background: linear-gradient(225deg, #fff 50%, #f6caca 50%, #fdeeee 100%);
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.12);
    transition: width 0.25s ease, height 0.25s ease;
}

.cp-card:hover .cp-card-body::before {
    width: 34px;
    height: 34px;
}

.cp-card-title {
    margin: 0 0 8px;
    padding-right: 24px;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.3;
}

.cp-card-title a {
    color: var(--cp-wine);
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.cp-card-title a:hover {
    color: var(--cp-wine-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cp-card-desc {
    margin: 0 0 12px;
    color: var(--cp-text);
    font-size: 0.95rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.cp-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 14px;
    color: var(--cp-wine);
    font-size: 0.95rem;
    font-weight: 500;
}

.cp-card-meta span + span::before {
    content: "|";
    margin: 0 10px;
    color: #dec7c7;
}

.cp-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
}

/* Expired ads (area pages list them after active ones, contact hidden) */
.cp-card.is-expired .cp-card-img img {
    filter: grayscale(0.7);
    opacity: 0.75;
}

.cp-card.is-expired .cp-card-title a {
    color: #666666;
}

.cp-card-expired {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-end;
    margin: auto 0 0;
    padding: 7px 12px;
    border-radius: 6px;
    background: #f4f1f1;
    color: #666666;
    font-size: 0.86rem;
    font-weight: 500;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cp-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.cp-btn i {
    font-size: 1.05rem;
}

.cp-btn--wa {
    background: var(--cp-lav);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.cp-btn--wa:hover {
    background: var(--cp-lav-dark);
}

.cp-btn--call {
    background: var(--cp-wine);
    box-shadow: 0 6px 14px rgba(189, 18, 17, 0.25);
}

.cp-btn--call:hover {
    background: var(--cp-wine-dark);
}

.cp-empty {
    padding: 48px 20px;
    border: 1px dashed #e4dcdc;
    border-radius: 12px;
    background: var(--cp-pink-soft);
    color: var(--cp-muted);
    text-align: center;
}

.cp-empty i {
    display: block;
    margin-bottom: 10px;
    color: #d3b5b5;
    font-size: 2.4rem;
}

.cp-empty p {
    margin: 0 0 16px;
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
.cp-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 8px;
}

.cp-pg {
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--cp-pink);
    color: var(--cp-wine);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

a.cp-pg:hover {
    background: #e7e1e1;
    color: var(--cp-wine);
}

.cp-pg.is-active {
    background: var(--cp-wine);
    color: #fff;
}

.cp-pg--arrow {
    font-size: 1.3rem;
    line-height: 1;
}

.cp-pg.is-disabled {
    opacity: 0.45;
}

.cp-pg-dots {
    padding: 0 2px;
    color: #b9a5a5;
}

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.cp-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cp-box {
    padding: 20px 22px 12px;
    background: #fff;
    border: 1px solid #efeaea;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.cp-box-title {
    margin: 0 0 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ede9e9;
    color: var(--cp-wine);
    font-size: 1.15rem;
    font-weight: 700;
}

/* Long area lists scroll inside the box (about 13 links visible) */
.cp-links {
    max-height: 640px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #e1cece transparent;
}

.cp-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    color: #333;
    font-size: 0.98rem;
    text-decoration: none;
}

.cp-links a i {
    flex-shrink: 0;
    color: #b8b8c0;
    font-size: 0.7rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cp-links a:hover {
    color: var(--cp-wine);
}

.cp-links a:hover i {
    color: var(--cp-wine);
    transform: translateX(3px);
}

/* Area pages: the area you're on, shown in the list but not linked */
.cp-links .is-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    color: var(--cp-wine);
    font-size: 0.98rem;
    font-weight: 600;
}

.cp-links .is-current i {
    flex-shrink: 0;
    color: var(--cp-wine);
    font-size: 0.8rem;
}

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

.cp-review {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f2ebeb;
}

.cp-review:last-child {
    border-bottom: 0;
}

.cp-review-av {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cp-wine);
    color: #fff;
    font-weight: 700;
}

.cp-review-body {
    min-width: 0;
}

.cp-review-head {
    margin: 0 0 6px;
    line-height: 1.35;
}

.cp-review-head strong {
    display: block;
    color: var(--cp-ink);
    font-size: 0.98rem;
}

.cp-review-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--cp-muted);
    font-size: 0.82rem;
}

.cp-stars {
    display: inline-flex;
    gap: 3px;
    color: #bd1211;
    font-size: 0.72rem;
}

.cp-stars .is-off {
    color: #ddd;
}

.cp-review-text {
    margin: 0;
    color: var(--cp-text);
    font-size: 0.93rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ── Related categories ────────────────────────────────────────────────────── */
.cp-related {
    margin-top: 56px;
}

.cp-related .cp-h2 {
    margin-bottom: 18px;
}

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

.cp-related-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px;
    background: #fff;
    border: 1px solid #ebe5e5;
    border-top: 3px solid var(--cp-wine);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-related-item:hover,
.cp-related-item.is-active {
    border-color: var(--cp-wine);
    box-shadow: 0 10px 24px rgba(189, 18, 17, 0.1);
}

.cp-related-name {
    color: var(--cp-ink);
    font-size: 1.15rem;
    font-weight: 600;
}

.cp-related-count {
    color: var(--cp-muted);
    font-size: 0.92rem;
}

/* ── Quick navigation ──────────────────────────────────────────────────────── */
.cp-quicknav {
    margin-top: 40px;
    padding: 24px 26px;
    background: #faf6f6;
    border: 1px solid #eee9e9;
    border-radius: 14px;
}

.cp-quicknav-title {
    margin: 0 0 16px;
    color: var(--cp-wine);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cp-quicknav-list {
    counter-reset: qn;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-quicknav-list li {
    counter-increment: qn;
}

.cp-quicknav-list a {
    color: var(--cp-wine);
    font-size: 1rem;
    line-height: 1.45;
    text-decoration: none;
}

.cp-quicknav-list a::before {
    content: counter(qn) ". ";
}

.cp-quicknav-list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Long-form content ─────────────────────────────────────────────────────── */
.cp-article {
    margin-top: 44px;
}

.cp-article h2 {
    margin: 34px 0 12px;
    padding-left: 14px;
    border-left: 4px solid var(--cp-peach);
    color: var(--cp-wine);
    font-size: clamp(1.2rem, 1.9vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
}

.cp-article h2:first-child {
    margin-top: 0;
}

.cp-article h3 {
    margin: 26px 0 10px;
    color: var(--cp-ink);
    font-size: 1.15rem;
    font-weight: 700;
}

.cp-article p,
.cp-article li {
    color: var(--cp-text);
    font-size: 1rem;
    line-height: 1.85;
}

.cp-article p {
    margin: 0 0 14px;
}

/* The copy file's lists carry an inline margin-left:-20px, which cancels this
   indent so numbered items line up with the paragraphs. */
.cp-article ul,
.cp-article ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.cp-article li {
    margin-bottom: 6px;
}

.cp-article li::marker {
    color: var(--cp-wine);
}

.cp-article a {
    color: var(--cp-wine);
    font-weight: 600;
}

.cp-article b,
.cp-article strong {
    color: var(--cp-ink);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.cp-faq {
    margin-top: 48px;
}

.cp-faq .cp-h2 {
    margin-bottom: 18px;
}

.cp-faq-intro {
    margin: -6px 0 18px;
    color: var(--cp-muted);
    font-size: 0.95rem;
}

.cp-faq-item {
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #ece6e6;
    border-left: 3px solid #dcd3d3;
    transition: border-color 0.2s ease;
}

.cp-faq-item[open] {
    border-left-color: var(--cp-wine);
}

.cp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    color: var(--cp-ink);
    font-size: 1.05rem;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.cp-faq-item summary::-webkit-details-marker {
    display: none;
}

.cp-faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    color: #999;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}

.cp-faq-item[open] summary {
    color: var(--cp-wine);
}

.cp-faq-item[open] summary::after {
    content: "\2212";
    color: var(--cp-wine);
}

.cp-faq-item summary:focus-visible {
    outline: 2px solid var(--cp-wine);
    outline-offset: -2px;
}

.cp-faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--cp-text);
    line-height: 1.75;
}

/* ── Video player overlay ──────────────────────────────────────────────────── */
.cp-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 16px;
}

.cp-viewer[hidden] {
    display: none;
}

.cp-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.cp-viewer-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(400px, 100%);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.cp-viewer-video {
    display: block;
    width: 100%;
    height: min(calc(100vh - 110px), 711px);
    background: #000;
    object-fit: contain;
}

.cp-viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 10px 16px;
    background: #221010;
    color: #fff;
}

.cp-viewer-cap {
    margin: 0;
    font-weight: 700;
}

.cp-viewer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--cp-wine);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cp-viewer-link:hover {
    background: var(--cp-wine-dark);
    color: #fff;
}

.cp-viewer-link[hidden] {
    display: none;
}

.cp-viewer-close,
.cp-viewer-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cp-viewer-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 1.1rem;
}

.cp-viewer-nav {
    top: 42%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    background: rgba(255, 255, 255, 0.18);
}

.cp-viewer-close:hover,
.cp-viewer-nav:hover {
    background: rgba(189, 18, 17, 0.85);
}

.cp-viewer-nav--prev {
    left: 10px;
}

.cp-viewer-nav--next {
    right: 10px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .cp-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cp-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 18px;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .cp-notice-text {
        padding-left: 40px;
        padding-right: 40px;
        font-size: 0.82rem;
    }

    .cp-notice-close {
        right: 6px;
    }

    /* Intro: first 4 lines, fading out, until "Read more" is tapped */
    .cp-intro-text.js-collapse:not(.is-open) {
        position: relative;
        max-height: calc(var(--cp-lh) * 4em);
        overflow: hidden;
    }

    .cp-intro-text.js-collapse:not(.is-open)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(var(--cp-lh) * 1.6em);
        background: linear-gradient(rgba(255, 255, 255, 0), #fff 92%);
        pointer-events: none;
    }

    .cp-readmore {
        display: inline-flex;
    }

    .cp-crumbbar-inner {
        flex-direction: column;
        flex-wrap: nowrap; /* single line, so a long breadcrumb scrolls instead of widening the page */
        align-items: stretch;
    }

    .cp-crumbs {
        min-width: 0;
    }

    .cp-search {
        max-width: none;
    }

    .cp-page {
        padding-top: 22px;
    }

    .cp-quicknav-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Phones — matches the mobile reference: one-line breadcrumb, collapsed
   intro, edge-to-edge video strip, compact cards with icon-only buttons. */
@media (max-width: 640px) {
    .cp-side {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Breadcrumb stays on one line (swipes sideways if a state name is long) */
    .cp-crumbs ol {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.84rem;
        scrollbar-width: none;
    }

    .cp-crumbs ol::-webkit-scrollbar {
        display: none;
    }

    .cp-crumbs li + li::before {
        margin: 0 7px;
    }

    .cp-crumb-current {
        padding: 3px 10px;
    }

    .cp-search {
        height: 46px;
    }

    .cp-h1 {
        margin-bottom: 14px;
        font-size: 1.4rem;
    }

    .cp-intro-text {
        --cp-lh: 1.75;
        font-size: 0.95rem;
    }

    /* Video strip runs to the screen edges and swipes */
    .cp-videos {
        margin: 16px 0 30px;
    }

    .cp-videos-track {
        gap: 10px;
        margin: 0 -16px;
        padding: 4px 16px 10px;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }

    .cp-videos-track::-webkit-scrollbar {
        display: none;
    }

    .cp-vcard {
        flex-basis: 100px;
        height: 168px;
        border-radius: 10px;
    }

    .cp-vcard-play {
        width: 34px;
        height: 34px;
        margin: -17px 0 0 -17px;
        font-size: 0.8rem;
    }

    .cp-vcard-cap {
        left: 7px;
        right: 7px;
        bottom: 7px;
        font-size: 0.74rem;
    }

    /* Listing cards */
    .cp-cards {
        gap: 20px;
    }

    .cp-card {
        min-height: 0;
    }

    .cp-card-media {
        flex: 0 0 31%;
        max-width: 132px;
    }

    .cp-card-body {
        padding: 12px;
    }

    .cp-card-body::before {
        width: 20px;
        height: 20px;
    }

    .cp-card:hover .cp-card-body::before {
        width: 24px;
        height: 24px;
    }

    .cp-card-title {
        margin-bottom: 6px;
        padding-right: 16px;
        font-size: 1.08rem;
    }

    .cp-card-desc {
        margin-bottom: 8px;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .cp-card-meta {
        margin-bottom: 12px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .cp-card-meta span + span::before {
        margin: 0 6px;
    }

    .cp-card-actions {
        gap: 8px;
    }

    /* Icon-only buttons; the label stays for screen readers */
    .cp-btn {
        flex: 1;
        height: 40px;
        padding: 0;
    }

    .cp-btn i {
        font-size: 1.2rem;
    }

    .cp-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .cp-ribbon {
        top: 8px;
        padding: 3px 13px 3px 7px;
        font-size: 0.6rem;
    }

    .cp-fav {
        left: 8px;
        bottom: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }

    .cp-pager {
        margin-top: 28px;
    }

    /* Sidebar boxes, related, quick nav, FAQ */
    .cp-box {
        padding: 18px 18px 10px;
    }

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

    .cp-related-grid {
        gap: 10px;
    }

    .cp-related-item {
        padding: 14px 16px;
    }

    .cp-related-name {
        font-size: 1rem;
    }

    .cp-related-count {
        font-size: 0.85rem;
    }

    .cp-quicknav {
        margin-top: 32px;
        padding: 18px;
    }

    .cp-quicknav-list {
        gap: 10px;
    }

    .cp-quicknav-list a {
        font-size: 0.95rem;
    }

    .cp-article {
        margin-top: 34px;
    }

    .cp-article p,
    .cp-article li {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .cp-faq {
        margin-top: 40px;
    }

    .cp-faq-item summary {
        padding: 15px 16px;
        font-size: 0.98rem;
    }

    .cp-faq-item p {
        padding: 0 16px 16px;
        font-size: 0.93rem;
    }
}

@media (max-width: 360px) {
    .cp-card-title {
        font-size: 1rem;
    }

    .cp-card-meta {
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-live-dot::after {
        animation: none;
    }

    .cp-card,
    .cp-card::before,
    .cp-card::after,
    .cp-card-body::before,
    .cp-card-img img,
    .cp-vcard {
        transition: none;
    }
}
