/**
 * KnowTheCheese — Page-Specific Styles
 * For E-E-A-T pages: About, Terms, Privacy, Editorial Policy, Affiliate Disclosure
 * Loaded via wp_enqueue_style('ktc-pages') in functions.php
 *
 * Colour palette:
 *   charcoal  #2D2A26
 *   cream     #FDF8F0
 *   honey     #C8973E
 *   honey-lt  #E8C97A
 *   milk      #FFFFFF
 *   slate     #6B7280
 *   stone     #E5E1DB
 */

/* ─────────────────────────────────────────
   BASE RESETS FOR PAGE CONTENT
───────────────────────────────────────── */

.ktc-page-hero,
.ktc-page-section,
.ktc-page-stats,
.ktc-page-standards,
.ktc-page-callout,
.ktc-page-callout--warning,
.ktc-page-cta,
.ktc-page-table,
.ktc-page-list,
.ktc-page-updated {
    box-sizing: border-box;
}

/* Default WordPress pages need a content contract after the global Genesis reset. */
body.page:not(.home) .content-sidebar-wrap {
    box-sizing: border-box;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

body.page:not(.home) .content {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    padding: 44px 0 72px !important;
}

body.page:not(.home) article.entry,
body.page:not(.home) .entry-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

body.page:not(.home) .entry-title,
body.page:not(.home) .entry-content > p,
body.page:not(.home) .entry-content > h1,
body.page:not(.home) .entry-content > h2,
body.page:not(.home) .entry-content > h3,
body.page:not(.home) .entry-content > h4,
body.page:not(.home) .entry-content > ul,
body.page:not(.home) .entry-content > ol,
body.page:not(.home) .entry-content > blockquote,
body.page:not(.home) .entry-content > .ktc-page-section,
body.page:not(.home) .entry-content > .ktc-page-list,
body.page:not(.home) .entry-content > .ktc-page-updated {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

body.page:not(.home) .entry-content > .ktc-page-hero,
body.page:not(.home) .entry-content > .ktc-page-stats,
body.page:not(.home) .entry-content > .ktc-page-callout,
body.page:not(.home) .entry-content > .ktc-page-callout--warning,
body.page:not(.home) .entry-content > .ktc-page-cta,
body.page:not(.home) .entry-content > .ktc-page-table {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    body.page:not(.home) .content-sidebar-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.page:not(.home) .content {
        padding-top: 28px !important;
        padding-bottom: 56px !important;
    }
}

/* ─────────────────────────────────────────
   PAGE HERO — opening banner for brand pages
───────────────────────────────────────── */

.ktc-page-hero {
    background-color: #FDF8F0;
    border-bottom: 3px solid #C8973E;
    padding: 56px 40px 48px;
    margin: 0 0 48px;
    text-align: center;
}

.ktc-page-hero__eyebrow {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8973E;
    margin-bottom: 14px;
}

.ktc-page-hero__title {
    font-family: 'Literata', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #2D2A26;
    margin: 0 0 16px;
    line-height: 1.2;
}

.ktc-page-hero__lead {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ─────────────────────────────────────────
   PAGE SECTION — content blocks with spacing
───────────────────────────────────────── */

.ktc-page-section {
    margin-bottom: 48px;
}

.ktc-page-section h2 {
    font-family: 'Literata', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #2D2A26;
    border-bottom: 2px solid #E5E1DB;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ktc-page-section h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2D2A26;
    margin-bottom: 10px;
}

.ktc-page-section p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #2D2A26;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* ─────────────────────────────────────────
   STATS ROW — horizontal metrics strip
───────────────────────────────────────── */

.ktc-page-stats {
    display: flex;
    gap: 0;
    background-color: #2D2A26;
    border-radius: 8px;
    overflow: hidden;
    margin: 40px 0;
}

.ktc-page-stats__item {
    flex: 1;
    text-align: center;
    padding: 28px 20px;
    position: relative;
}

.ktc-page-stats__item + .ktc-page-stats__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(232, 201, 122, 0.25);
}

.ktc-page-stats__number {
    display: block;
    font-family: 'Literata', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #E8C97A;
    line-height: 1;
    margin-bottom: 6px;
}

.ktc-page-stats__label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9CA3AF;
}

/* ─────────────────────────────────────────
   STANDARDS LIST — checkmark bullet list
───────────────────────────────────────── */

.ktc-page-standards {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.ktc-page-standards li {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #2D2A26;
    line-height: 1.65;
    padding: 10px 0 10px 36px;
    position: relative;
    border-bottom: 1px solid #E5E1DB;
}

.ktc-page-standards li:first-child {
    border-top: 1px solid #E5E1DB;
}

.ktc-page-standards li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 24px;
    height: 24px;
    background-color: #C8973E;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 24px;
}

/* ─────────────────────────────────────────
   CALLOUT BOXES — tip, note, warning
───────────────────────────────────────── */

.ktc-page-callout {
    background-color: #FDF8F0;
    border-left: 4px solid #C8973E;
    border-radius: 0 6px 6px 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.97rem;
    color: #2D2A26;
    line-height: 1.7;
}

.ktc-page-callout__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C8973E;
    margin-bottom: 8px;
}

.ktc-page-callout p {
    margin: 0 0 10px;
}

.ktc-page-callout p:last-child {
    margin-bottom: 0;
}

.ktc-page-callout--warning {
    background-color: #FFF8F6;
    border-left-color: #C0392B;
}

.ktc-page-callout--warning .ktc-page-callout__label {
    color: #C0392B;
}

/* ─────────────────────────────────────────
   CTA BLOCK — call to action
───────────────────────────────────────── */

.ktc-page-cta {
    background-color: #FDF8F0;
    border: 1px solid #E5E1DB;
    border-top: 3px solid #C8973E;
    border-radius: 6px;
    padding: 32px 36px;
    margin: 48px 0;
    text-align: center;
}

.ktc-page-cta__heading {
    font-family: 'Literata', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2D2A26;
    margin: 0 0 10px;
}

.ktc-page-cta__body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #6B7280;
    margin: 0 0 20px;
    line-height: 1.65;
}

.ktc-page-cta__link {
    display: inline-block;
    background-color: #C8973E;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    transition: background-color 0.15s ease;
}

.ktc-page-cta__link:hover,
.ktc-page-cta__link:focus {
    background-color: #b07e30;
    color: #FFFFFF;
    text-decoration: none;
}

/* ─────────────────────────────────────────
   TABLE — cookie types, data comparison
───────────────────────────────────────── */

.ktc-page-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.93rem;
    margin: 24px 0 32px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.08);
}

.ktc-page-table thead {
    background-color: #2D2A26;
}

.ktc-page-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #E8C97A;
    border: none;
}

.ktc-page-table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

.ktc-page-table tbody tr:nth-child(even) {
    background-color: #FDF8F0;
}

.ktc-page-table tbody tr:hover {
    background-color: #F5EFE4;
}

.ktc-page-table tbody td {
    padding: 13px 18px;
    color: #2D2A26;
    border-bottom: 1px solid #E5E1DB;
    vertical-align: top;
    line-height: 1.55;
}

.ktc-page-table tbody tr:last-child td {
    border-bottom: none;
}

/* ─────────────────────────────────────────
   STYLED LIST — generic custom bullet list
───────────────────────────────────────── */

.ktc-page-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.ktc-page-list li {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #2D2A26;
    line-height: 1.7;
    padding: 6px 0 6px 26px;
    position: relative;
}

.ktc-page-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 8px;
    height: 8px;
    background-color: #C8973E;
    border-radius: 50%;
}

/* ─────────────────────────────────────────
   LAST UPDATED BADGE
───────────────────────────────────────── */

.ktc-page-updated {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #6B7280;
    background-color: #F3EFE8;
    border: 1px solid #E5E1DB;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   RESPONSIVE — 768px
───────────────────────────────────────── */

@media (max-width: 768px) {
    .ktc-page-hero {
        padding: 36px 24px 32px;
        margin-bottom: 32px;
    }

    .ktc-page-hero__title {
        font-size: 1.8rem;
    }

    .ktc-page-hero__lead {
        font-size: 1rem;
    }

    .ktc-page-stats {
        flex-wrap: wrap;
    }

    .ktc-page-stats__item {
        flex: 1 1 45%;
        min-width: 45%;
    }

    .ktc-page-stats__item + .ktc-page-stats__item::before {
        display: none;
    }

    .ktc-page-cta {
        padding: 24px 20px;
    }

    .ktc-page-section h2 {
        font-size: 1.3rem;
    }

    .ktc-page-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE — 480px
───────────────────────────────────────── */

@media (max-width: 480px) {
    .ktc-page-hero {
        padding: 28px 16px 24px;
    }

    .ktc-page-hero__title {
        font-size: 1.5rem;
    }

    .ktc-page-stats {
        flex-direction: column;
    }

    .ktc-page-stats__item {
        flex: 1 1 100%;
        padding: 20px 16px;
    }

    .ktc-page-stats__number {
        font-size: 1.6rem;
    }

    .ktc-page-callout {
        padding: 16px 18px;
    }

    .ktc-page-section h2 {
        font-size: 1.2rem;
    }

    .ktc-page-cta {
        padding: 20px 16px;
    }

    .ktc-page-cta__link {
        display: block;
        text-align: center;
    }
}

/* Asset-swap layer for brand pages */

.ktc-page-hero {
    background-image:
        linear-gradient(90deg, rgba(253, 248, 240, 0.97) 0%, rgba(253, 248, 240, 0.92) 58%, rgba(253, 248, 240, 0.68) 100%),
        url("../assets/illustrations/brand-editorial-portrait.png");
    background-repeat: no-repeat;
    background-position: center, right 28px center;
    background-size: cover, min(30vw, 340px) auto;
}

.ktc-page-cta {
    background-image:
        linear-gradient(90deg, rgba(253, 248, 240, 0.96) 0%, rgba(253, 248, 240, 0.9) 58%, rgba(253, 248, 240, 0.7) 100%),
        url("../assets/illustrations/trust-editorial-collage.png");
    background-repeat: no-repeat;
    background-position: center, right 18px center;
    background-size: cover, min(28vw, 320px) auto;
}

@media (max-width: 768px) {
    .ktc-page-hero,
    .ktc-page-cta {
        background-position: center, right -24px top 12px;
        background-size: cover, min(56vw, 260px) auto;
    }
}

/* 2026-04-25 brand-page polish layer */

.ktc-page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200, 151, 62, 0.14);
    border-bottom-width: 1px;
    border-radius: 32px;
    box-shadow: 0 24px 48px rgba(45, 42, 38, 0.08);
    padding: 64px 44px 56px;
    margin: 0 0 36px;
    text-align: left;
}

.ktc-page-hero::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.ktc-page-hero__eyebrow,
.ktc-page-hero__title,
.ktc-page-hero__lead {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.ktc-page-hero__eyebrow {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(200, 151, 62, 0.18);
}

.ktc-page-hero__title {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.02;
    margin-bottom: 14px;
}

.ktc-page-hero__lead {
    font-size: 1.06rem;
    line-height: 1.8;
    color: #5B524B;
}

.ktc-page-section {
    margin-bottom: 34px;
    padding: 0 6px;
}

.ktc-page-section h2 {
    border-bottom: none;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 18px;
}

.ktc-page-section h2::after {
    content: '';
    display: block;
    width: 76px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #C8973E 0%, rgba(200, 151, 62, 0.12) 100%);
}

.ktc-page-stats,
.ktc-page-cta {
    border-radius: 26px;
    box-shadow: 0 20px 40px rgba(45, 42, 38, 0.08);
}

.ktc-page-callout,
.ktc-page-table {
    border-radius: 20px;
}

@media (max-width: 768px) {
    .ktc-page-hero {
        padding: 44px 24px 32px;
        border-radius: 26px;
        background-position: center, right -18px top 22px;
        background-size: cover, min(58vw, 230px) auto;
    }

    .ktc-page-hero::before {
        inset: 12px;
        border-radius: 18px;
    }

    .ktc-page-section {
        padding: 0;
    }
}
