/* ============================================================
   Krisada.com — Brand Design System
   Palette: dark charcoal header/footer, warm cream surface,
            amber/copper accent. Typography: Manrope + Fraunces.
   All color/spacing tokens come from :root via PHP injection.
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ---- Base ---- */
body {
    font-family: var(--font-body, 'Manrope', 'Segoe UI', sans-serif);
    background-color: var(--color-bg, #f4efe6);
    color: var(--color-text, #241d17);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent, #b46c30);
    text-decoration: none;
    transition: color 0.18s ease;
}
a:hover { color: var(--color-accent-strong, #8f5021); text-decoration: underline; }

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    background-color: var(--color-surface-strong, #171513);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(180, 108, 48, 0.25);
}

.site-header__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 2rem;
}

.site-logo a {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.site-logo a:hover { color: var(--color-accent, #b46c30); text-decoration: none; }
.site-logo a span:last-child {
    color: var(--color-accent, #b46c30);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.site-nav a {
    color: rgba(255,255,255,0.78);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-small, 10px);
    letter-spacing: 0.01em;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a.is-active {
    color: #fff;
    background: rgba(180, 108, 48, 0.22);
    text-decoration: none;
}
.site-nav a.nav-cta {
    background: var(--color-accent, #b46c30);
    color: #fff;
    margin-left: 0.5rem;
    padding: 0.4rem 1rem;
}
.site-nav a.nav-cta:hover { background: var(--color-accent-strong, #8f5021); }

/* --- Nav list (semantic wrapper) --- */
.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.site-nav__item { position: relative; }

/* --- Dropdown --- */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--color-bg, #f4efe6);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-small, 10px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    z-index: 200;
}
.nav-dropdown li a {
    display: block;
    padding: 0.45rem 1.1rem;
    color: var(--color-text, #2a1f17);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    background: transparent;
    transition: background 0.14s, color 0.14s;
}
.nav-dropdown li a:hover {
    background: rgba(180, 108, 48, 0.1);
    color: var(--color-accent, #b46c30);
}
/* Show dropdown on hover (desktop) */
.site-nav__item--has-dropdown:hover .nav-dropdown { display: block; }

/* --- Chevron indicator --- */
.nav-chevron {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
}

/* --- Hamburger button --- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: opacity 0.2s, transform 0.2s;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.82rem;
    color: var(--color-text-muted, #6d5d50);
    border-bottom: 1px solid var(--color-border, #d7c6af);
    margin-bottom: 2.5rem;
}
.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumbs__item::after { content: '/'; color: var(--color-border, #d7c6af); margin-left: 0.25rem; }
.breadcrumbs__item:last-child::after { display: none; }
.breadcrumbs__item a { color: var(--color-text-muted, #6d5d50); }
.breadcrumbs__item a:hover { color: var(--color-accent, #b46c30); }
.breadcrumbs__item.is-current { color: var(--color-text, #241d17); font-weight: 500; }

/* ============================================================
   TWO-COLUMN LAYOUT (content + sidebar)
   ============================================================ */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.content-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.content-main { min-width: 0; }
.content-sidebar { min-width: 0; }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.home-hero {
    background-color: var(--color-surface-strong, #171513);
    padding: 5.5rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 0%, rgba(180,108,48,0.14) 0%, transparent 65%);
    pointer-events: none;
}
.home-hero__inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.home-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent, #b46c30);
    margin-bottom: 1.25rem;
}
.home-hero h1 {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.home-hero h1 em {
    font-style: normal;
    color: var(--color-accent, #b46c30);
}
.home-hero__sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 2.25rem;
}
.home-hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   HOMEPAGE STATS STRIP
   ============================================================ */
.home-stats {
    display: flex;
    justify-content: center;
    background-color: var(--color-surface-strong, #171513);
    border-bottom: 3px solid var(--color-accent, #b46c30);
}
.home-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 2rem 4rem;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.15s;
}
.home-stats__item:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
.home-stats__item:hover { background-color: rgba(255,255,255,0.05); }
.home-stats__number {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--color-accent, #b46c30);
    line-height: 1;
}
.home-stats__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* ============================================================
   BUTTONS / CTAs
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-small, 10px);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--color-accent, #b46c30);
    color: #fff;
    box-shadow: 0 4px 18px rgba(143, 80, 33, 0.35);
}
.btn-primary:hover { background: var(--color-accent-strong, #8f5021); color: #fff; box-shadow: 0 6px 24px rgba(143, 80, 33, 0.45); }
.btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.65); color: #fff; background: rgba(255,255,255,0.06); }
.btn-outline-dark {
    background: transparent;
    color: var(--color-text, #241d17);
    border: 1.5px solid var(--color-border, #d7c6af);
}
.btn-outline-dark:hover { border-color: var(--color-accent, #b46c30); color: var(--color-accent, #b46c30); }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.home-section {
    padding: 4rem 0;
}
.home-section + .home-section {
    border-top: 1px solid var(--color-border, #d7c6af);
}
.home-section--alt {
    background-color: var(--color-panel-soft, #fbf5eb);
    margin: 0 -2rem;
    padding: 4rem 2rem;
}
.home-section__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent, #b46c30);
    margin-bottom: 0.6rem;
}
.home-section__heading {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text, #241d17);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.home-section__intro {
    font-size: 1.05rem;
    color: var(--color-text-muted, #6d5d50);
    max-width: 600px;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

/* Pillars / value grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.pillar-card {
    background: var(--color-surface, #fffaf4);
    border: 1px solid var(--color-border, #d7c6af);
    border-radius: var(--radius-medium, 16px);
    padding: 1.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.pillar-card:hover { box-shadow: var(--shadow-card); border-color: var(--color-accent, #b46c30); }
.pillar-card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}
.pillar-card__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text, #241d17);
    margin-bottom: 0.5rem;
}
.pillar-card__body {
    font-size: 0.9rem;
    color: var(--color-text-muted, #6d5d50);
    line-height: 1.6;
}

/* Category cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.category-card {
    background: var(--color-surface, #fffaf4);
    border: 1px solid var(--color-border, #d7c6af);
    border-radius: var(--radius-medium, 16px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.category-card:hover { box-shadow: var(--shadow-card); border-color: var(--color-accent, #b46c30); transform: translateY(-2px); }
.category-card a { text-decoration: none; }
.category-card a:hover { text-decoration: none; }
.category-card__title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text, #241d17);
    margin-bottom: 0.25rem;
}
.category-card__desc {
    font-size: 0.88rem;
    color: var(--color-text-muted, #6d5d50);
    line-height: 1.55;
    flex: 1;
}
.category-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent, #b46c30);
    margin-top: 0.5rem;
}

/* Article list / article strip */
.article-strip {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.article-row {
    background: var(--color-surface, #fffaf4);
    border: 1px solid var(--color-border, #d7c6af);
    border-radius: var(--radius-medium, 16px);
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.article-row:hover { box-shadow: var(--shadow-card); border-color: var(--color-accent, #b46c30); }
.article-row__meta {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--color-text-muted, #6d5d50);
    padding-top: 0.2rem;
    min-width: 80px;
}
.article-row__body { flex: 1; min-width: 0; }
.article-row__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text, #241d17);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}
.article-row__title a { color: inherit; text-decoration: none; }
.article-row__title a:hover { color: var(--color-accent, #b46c30); }
.article-row__excerpt {
    font-size: 0.88rem;
    color: var(--color-text-muted, #6d5d50);
    line-height: 1.55;
}

/* Section CTA row */
.section-cta {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-header {
    margin-bottom: 2.5rem;
}
.article-header__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent, #b46c30);
    margin-bottom: 0.75rem;
}
.article-header__eyebrow a { color: inherit; text-decoration: none; }
.article-header__eyebrow a:hover { text-decoration: underline; }
.article-header h1 {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--color-text, #241d17);
    margin-bottom: 1rem;
}
.article-header__meta {
    font-size: 0.85rem;
    color: var(--color-text-muted, #6d5d50);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.article-header__excerpt {
    font-size: 1.1rem;
    color: var(--color-text-muted, #6d5d50);
    line-height: 1.65;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border, #d7c6af);
}

/* Article body typography */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text, #241d17);
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2 {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 1.65rem;
    font-weight: 700;
    margin: 2.5em 0 0.75em;
    color: var(--color-text, #241d17);
    line-height: 1.25;
    letter-spacing: -0.015em;
}
.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2em 0 0.6em;
    color: var(--color-text, #241d17);
}
.article-body ul, .article-body ol {
    margin: 0 0 1.4em 1.5rem;
}
.article-body li { margin-bottom: 0.4em; }
.article-body blockquote {
    border-left: 3px solid var(--color-accent, #b46c30);
    padding: 0.75rem 1.5rem;
    margin: 1.75rem 0;
    background: var(--color-panel-soft, #fbf5eb);
    border-radius: 0 var(--radius-small, 10px) var(--radius-small, 10px) 0;
    font-size: 1.05rem;
    color: var(--color-text-muted, #6d5d50);
    font-style: italic;
}
.article-body code {
    background: var(--color-panel, #efe5d4);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'Fira Code', 'Consolas', monospace;
}
.article-body pre {
    background: var(--color-surface-strong, #171513);
    color: rgba(255,255,255,0.88);
    padding: 1.5rem;
    border-radius: var(--radius-medium, 16px);
    overflow-x: auto;
    margin: 1.75rem 0;
    font-size: 0.9rem;
}
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body strong { font-weight: 700; color: var(--color-text, #241d17); }
.article-body a { color: var(--color-accent, #b46c30); }
.article-body hr {
    border: none;
    border-top: 1px solid var(--color-border, #d7c6af);
    margin: 2.5rem 0;
}

/* Related articles (in article template) */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #d7c6af);
}
.related-articles h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text, #241d17);
}
.related-articles__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.related-articles__list li a {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border, #d7c6af);
}
.category-hero__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent, #b46c30);
    margin-bottom: 0.6rem;
}
.category-hero h1 {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text, #241d17);
    margin-bottom: 0.85rem;
}
.category-hero__intro {
    font-size: 1.05rem;
    color: var(--color-text-muted, #6d5d50);
    line-height: 1.65;
    max-width: 680px;
}

.category-section { margin-bottom: 3rem; }
.category-section__heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted, #6d5d50);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border, #d7c6af);
}

/* ============================================================
   DIRECTORY PAGE
   ============================================================ */
.directory-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border, #d7c6af);
}
.directory-hero h1 {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text, #241d17);
    margin-bottom: 0.75rem;
}
.directory-hero__intro {
    font-size: 1rem;
    color: var(--color-text-muted, #6d5d50);
    max-width: 640px;
    line-height: 1.65;
}
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.directory-card {
    background: var(--color-surface, #fffaf4);
    border: 1px solid var(--color-border, #d7c6af);
    border-radius: var(--radius-medium, 16px);
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.directory-card:hover { box-shadow: var(--shadow-card); border-color: var(--color-accent, #b46c30); }
.directory-card__title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text, #241d17);
}
.directory-card__title a { color: inherit; text-decoration: none; }
.directory-card__title a:hover { color: var(--color-accent, #b46c30); }
.directory-card__desc {
    font-size: 0.88rem;
    color: var(--color-text-muted, #6d5d50);
    line-height: 1.55;
}

/* ============================================================
   SIDEBAR BLOCKS
   ============================================================ */
.sidebar-block {
    border-radius: var(--radius-medium, 16px);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--color-surface, #fffaf4);
    border: 1px solid var(--color-border, #d7c6af);
}
.sidebar-block__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text, #241d17);
    margin-bottom: 0.65rem;
    line-height: 1.3;
}
.sidebar-block__body {
    font-size: 0.88rem;
    color: var(--color-text-muted, #6d5d50);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}
.sidebar-block__body:last-child { margin-bottom: 0; }
.sidebar-block__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.sidebar-block__links li a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text, #241d17);
    display: block;
    line-height: 1.4;
}
.sidebar-block__links li a:hover { color: var(--color-accent, #b46c30); }
.sidebar-block .cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    background: var(--color-accent, #b46c30);
    color: #fff;
    border-radius: var(--radius-small, 10px);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s;
}
.sidebar-block .cta-btn:hover { background: var(--color-accent-strong, #8f5021); text-decoration: none; color: #fff; }

/* Strategic highlight — darker premium panel */
.sidebar-block--strategic-highlight {
    background: var(--color-surface-strong, #171513);
    border-color: rgba(180, 108, 48, 0.35);
}
.sidebar-block--strategic-highlight .sidebar-block__title { color: #fff; }
.sidebar-block--strategic-highlight .sidebar-block__body { color: rgba(255,255,255,0.68); }
.sidebar-block--strategic-highlight .cta-btn { background: var(--color-accent, #b46c30); }

/* Practical highlight — utility card */
.sidebar-block--practical-highlight {
    background: var(--color-panel, #efe5d4);
    border-color: var(--color-border, #d7c6af);
}
.sidebar-block--practical-highlight .sidebar-block__title { color: var(--color-text, #241d17); }

/* Personal / mentor highlight */
.sidebar-block--personal-highlight {
    background: var(--color-panel-soft, #fbf5eb);
    border-color: var(--color-border, #d7c6af);
    border-left: 3px solid var(--color-accent, #b46c30);
}

/* Thai/legal block */
.sidebar-block--thai-links,
.sidebar-block--legal-note {
    background: var(--color-surface, #fffaf4);
    border-color: var(--color-border, #d7c6af);
    font-size: 0.85rem;
}
.sidebar-block--thai-links .sidebar-block__title,
.sidebar-block--legal-note .sidebar-block__title {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted, #6d5d50);
}

/* Related articles block */
.sidebar-block--related-articles .sidebar-block__links li { border-bottom: 1px solid var(--color-border, #d7c6af); padding-bottom: 0.5rem; }
.sidebar-block--related-articles .sidebar-block__links li:last-child { border-bottom: none; padding-bottom: 0; }

/* Mini-bio block */
.sidebar-block--mini-bio { text-align: center; }
.sidebar-block--mini-bio .sidebar-block__title { font-family: var(--font-display, 'Fraunces', Georgia, serif); font-size: 1.05rem; }

/* ============================================================
   PROOF / CTA BANNER (homepage)
   ============================================================ */
.proof-banner {
    background: var(--color-panel, #efe5d4);
    border-radius: var(--radius-large, 24px);
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid var(--color-border, #d7c6af);
    margin: 3rem 0;
}
.proof-banner h2 {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text, #241d17);
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}
.proof-banner p {
    font-size: 1rem;
    color: var(--color-text-muted, #6d5d50);
    margin-bottom: 1.75rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ============================================================
   FEATURED BADGE
   ============================================================ */
.featured-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(180, 108, 48, 0.12);
    color: var(--color-accent, #b46c30);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
    text-align: center;
    padding: 5rem 2rem;
}
.error-page__code {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-panel, #efe5d4);
    line-height: 1;
    margin-bottom: 1rem;
}
.error-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text, #241d17);
}
.error-page p {
    font-size: 1rem;
    color: var(--color-text-muted, #6d5d50);
    margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-surface-strong, #171513);
    color: rgba(255,255,255,0.6);
    padding: 3.5rem 2rem 2rem;
    margin-top: 5rem;
}
.site-footer__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
}
.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.75rem;
}
.site-footer__brand-name {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}
.site-footer__tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 280px;
}
.site-footer__col-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}
.site-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.site-footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s;
}
.site-footer__links a:hover { color: var(--color-accent, #b46c30); }
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}
.site-footer__bottom a { color: rgba(255,255,255,0.45); }
.site-footer__bottom a:hover { color: var(--color-accent, #b46c30); }
.page-view-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.68);
    white-space: nowrap;
}
.page-view-counter strong {
    color: rgba(255,255,255,0.88);
    font-weight: 700;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-muted { color: var(--color-text-muted, #6d5d50); }
.text-accent { color: var(--color-accent, #b46c30); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { order: 2; }
    .home-stats__item { padding: 1.5rem 1rem; flex: 1; }
    .home-stats__number { font-size: 2rem; }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
    .site-footer__top > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    /* Show hamburger, hide nav by default */
    .nav-hamburger { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface-strong, #171513);
        padding: 0.75rem 1rem 1rem;
        z-index: 100;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }
    .site-nav__item { width: 100%; }
    .site-nav__item a { display: block; width: 100%; }
    /* Dropdown inline on mobile */
    .nav-dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.06);
        border-radius: var(--radius-small, 10px);
        margin: 0.25rem 0 0.5rem 0.75rem;
        padding: 0.2rem 0;
    }
    .nav-dropdown li a {
        color: rgba(255,255,255,0.65);
        font-size: 0.84rem;
    }
    .nav-dropdown li a:hover {
        background: rgba(180, 108, 48, 0.15);
        color: #fff;
    }
    /* Keep header positioned for dropdown */
    .site-header { position: relative; }
}

@media (max-width: 640px) {
    .site-header { padding: 0 1rem; }
    .page-wrapper { padding: 0 1rem; }
    .home-hero { padding: 3.5rem 1rem 3rem; }
    .home-section { padding: 2.5rem 0; }
    .home-section--alt { margin: 0 -1rem; padding: 2.5rem 1rem; }
    .site-footer { padding: 2.5rem 1rem 1.5rem; }
    .site-footer__top { grid-template-columns: 1fr; gap: 1.75rem; }
    .article-row { flex-direction: column; gap: 0.5rem; }
    .article-row__meta { min-width: auto; }
    .proof-banner { padding: 2rem 1.25rem; }
}
