/* ==========================================================================
   About Page Styles (Grouped Settings List Style — Light & Dark Mode)
   ========================================================================== */
:root {
    --ab-bg: #ffffff;
    --ab-item-bg: rgba(15, 23, 42, 0.038);
    --ab-item-hover: rgba(15, 23, 42, 0.068);
    --ab-border: rgba(15, 23, 42, 0.07);
    --ab-text-primary: #111827;
    --ab-text-secondary: #52525b;
    --ab-text-muted: #71717a;
    --ab-pill-bg: rgba(15, 23, 42, 0.055);
    --ab-btn-primary-bg: #111827;
    --ab-btn-primary-text: #ffffff;
    --ab-btn-primary-hover: #27272a;
}

html.dark-mode,
body.dark-mode,
[data-theme="dark"] {
    --ab-bg: #0c0c0e;
    --ab-item-bg: rgba(255, 255, 255, 0.045);
    --ab-item-hover: rgba(255, 255, 255, 0.085);
    --ab-border: rgba(255, 255, 255, 0.075);
    --ab-text-primary: #f4f4f5;
    --ab-text-secondary: #a1a1aa;
    --ab-text-muted: #8a8a94;
    --ab-pill-bg: rgba(255, 255, 255, 0.085);
    --ab-btn-primary-bg: #f4f4f5;
    --ab-btn-primary-text: #111113;
    --ab-btn-primary-hover: #e4e4e7;
}

body.about-page {
    margin: 0;
    padding: 0;
    background: var(--ab-bg);
    color: var(--ab-text-primary);
    font-family: var(--font-sans, 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.ab-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 112px 24px 80px;
    box-sizing: border-box;
}

/* --- Hero Header --- */
.ab-hero {
    text-align: center;
    margin: 0 auto 32px;
}

.ab-brand-badge {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-brand-badge img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.ab-brand-badge .pg-logo-dark {
    display: none;
}

body.dark-mode .ab-brand-badge .pg-logo-light,
html.dark-mode .ab-brand-badge .pg-logo-light,
[data-theme="dark"] .ab-brand-badge .pg-logo-light {
    display: none;
}

body.dark-mode .ab-brand-badge .pg-logo-dark,
html.dark-mode .ab-brand-badge .pg-logo-dark,
[data-theme="dark"] .ab-brand-badge .pg-logo-dark {
    display: block;
}

.ab-title {
    margin: 0 0 8px;
    font-size: clamp(1.9rem, 4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ab-text-primary);
}

.ab-subtitle {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ab-text-secondary);
}

/* --- Stacked Grouped List (Matching Profile Settings) --- */
.ab-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ab-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ab-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 14px;
}

.ab-section-title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ab-text-muted);
    letter-spacing: 0.01em;
}

.ab-section-note {
    font-size: 0.76rem;
    color: var(--ab-text-muted);
    opacity: 0.88;
}

.ab-group {
    border-radius: 20px;
    background: var(--ab-item-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ab-row {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ab-border);
    color: var(--ab-text-primary);
    text-decoration: none;
    min-width: 0;
    transition: background-color 0.18s ease;
}

.ab-row:last-child {
    border-bottom: none;
}

.ab-row-story {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px;
}

.ab-lead {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--ab-text-primary);
}

.ab-body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ab-text-secondary);
}

.ab-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ab-pill-bg);
    color: var(--ab-text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-row-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ab-row-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ab-text-primary);
    line-height: 1.35;
}

.ab-row-desc {
    margin: 0;
    font-size: 0.78rem;
    color: var(--ab-text-secondary);
    line-height: 1.45;
}

.ab-row-arrow {
    color: var(--ab-text-muted);
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
}

.ab-row.is-action {
    cursor: pointer;
    touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
    .ab-row.is-action:hover {
        background: var(--ab-item-hover);
    }

    .ab-row.is-action:hover .ab-row-arrow:not(.is-external) {
        color: var(--ab-text-primary);
        transform: translateX(2px);
    }

    .ab-row.is-action:hover .ab-row-arrow.is-external {
        color: var(--ab-text-primary);
        transform: translate(2px, -2px);
    }
}

.ab-row.is-action:focus-visible {
    outline: 2px solid var(--ab-text-primary);
    outline-offset: -2px;
}

/* --- Bottom CTA --- */
.ab-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.ab-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 28px;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ab-btn-primary {
    background: var(--ab-btn-primary-bg);
    color: var(--ab-btn-primary-text);
}

@media (hover: hover) and (pointer: fine) {
    .ab-btn-primary:hover {
        background: var(--ab-btn-primary-hover);
        transform: translateY(-1px);
    }
}

.ab-btn:focus-visible {
    outline: 2px solid var(--ab-text-primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .ab-main {
        padding: 92px 16px 60px;
    }

    .ab-hero {
        margin-bottom: 24px;
    }

    .ab-section-head {
        padding: 0 10px;
    }

    .ab-row {
        padding: 13px 16px;
        gap: 12px;
    }

    .ab-row-story {
        padding: 16px;
    }

    .ab-actions {
        margin-top: 4px;
        align-items: stretch;
    }
}
