/* accessibility.php — moved from its inline <style> block (loaded at the same position). */
:root {
    --green: #067647;
    --deep: #062f25;
    --mint: #dff8ec;
    --lime: #a9edc5;
    --ink: #10231d;
    --muted: #62756d;
    --line: #dceae3;
    --gold: #e5b84b;
}

* { box-sizing: border-box; }

body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    background: #fbfdfc;
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.7;
    padding-bottom: 2rem;
}

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.eyebrow {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* Breadcrumb */
.breadcrumb-section { padding: 22px 0 0; }
.breadcrumb { margin: 0; }

/* Page hero */
.lg-hero { padding: 18px 0 36px; }
.lg-hero h1 {
    font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -.02em;
    margin: 12px 0 10px;
}
.lg-hero h1 i { color: var(--green); margin-right: 10px; }
.lg-hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }
.lg-hero .updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--green);
    background: var(--mint);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.content-section { padding: 0 0 20px; }

/* Quick nav sidebar */
.quick-nav {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem;
}
.quick-nav h6 {
    font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.quick-nav ul { list-style: none; padding: 0; margin: 0; }
.quick-nav li { margin-bottom: 2px; }
.quick-nav a {
    display: block;
    padding: .55rem .7rem;
    color: var(--muted);
    text-decoration: none;
    font-size: .92rem;
    border-radius: 8px;
    transition: .2s;
}
.quick-nav a:hover,
.quick-nav a.active {
    background: var(--mint);
    color: var(--green);
    font-weight: 600;
}

/* Section cards */
.section-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    scroll-margin-top: 20px;
}

.section-header {
    background: var(--deep);
    color: #fff;
    padding: 1.3rem 1.8rem;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.section-header i { font-size: 1.35rem; margin-right: .9rem; color: var(--lime); }

.section-body { padding: 2rem; }
.section-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--deep);
    margin: 1.4rem 0 .6rem;
}
.section-body h3:first-child { margin-top: 0; }
.section-body p { margin-bottom: 1rem; color: var(--ink); }
.section-body ul, .section-body ol { margin-bottom: 1rem; padding-left: 1.3rem; }
.section-body li { margin-bottom: .5rem; color: var(--ink); }

.highlight-box {
    background: var(--mint);
    border-left: 4px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 1.2rem 0;
}
.highlight-box strong { color: var(--deep); }

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 1.2rem 0;
}
.warning-box strong { color: #7a5c00; }

/* Feature grid for accessibility features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 1rem 0 1.5rem;
}
.feature-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdfc;
}
.feature-item i {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--mint);
    color: var(--green);
    font-size: 1.15rem;
}
.feature-item h4 { font-size: .98rem; font-weight: 700; margin: 0 0 4px; color: var(--deep); }
.feature-item p { font-size: .88rem; color: var(--muted); margin: 0; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(6, 118, 71, .35);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    z-index: 1000;
}

.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(6, 118, 71, .45); }
.back-to-top.visible { display: flex; }

/* Footer — matching index.php / sitemap.php */
footer {
    padding: 48px 0;
    background: var(--deep);
    color: #d3e8dc;
    margin-top: 20px;
}

footer .foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

footer strong { font: 700 21px Inter; color: #fff; }
footer p { color: #a8c8b7; margin: 4px 0 0; }

footer nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    align-items: center;
}

footer nav a,
footer nav a:hover,
footer nav a:visited,
footer nav a:focus {
    color: #d3e8dc;
    text-decoration: none;
}

footer nav a:hover { color: var(--lime); }

@media (max-width: 992px) {
    .quick-nav { position: static; margin-bottom: 2rem; }
}

@media (max-width: 768px) {
    .lg-hero h1 { font-size: 1.8rem; }
    .section-body { padding: 1.4rem 1.1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    footer .foot { flex-direction: column; align-items: flex-start; }
}

/* Print styles */
@media print {
    body { background: #fff; }
    .back-to-top,
    .quick-nav,
    .breadcrumb-section { display: none !important; }
    .section-card { page-break-inside: avoid; box-shadow: none; }
}
