/*
 * About plugin - public pages. Mobile first. Looks: auto (follows the device), light, dark, minimal.
 * Every rule is scoped to .about-* classes, so the file can also be used inside GRID (display mode "app").
 */
.about-body {
    --about-bg: #ffffff; --about-surface: #f6f7f9; --about-card: #ffffff; --about-text: #1f2937; --about-muted: #6b7280; --about-border: #e5e7eb;
    --about-header: rgba(255, 255, 255, .92); --about-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06); --about-radius: 14px;
    --about-brand-soft: color-mix(in srgb, var(--about-brand) 12%, transparent);
}
@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] .about-body {
        --about-bg: #0f1218; --about-surface: #161b23; --about-card: #1a2029; --about-text: #e5e7eb; --about-muted: #9ca3af; --about-border: #2a313c;
        --about-header: rgba(15, 18, 24, .9); --about-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    }
}
html[data-theme="dark"] .about-body {
    --about-bg: #0f1218; --about-surface: #161b23; --about-card: #1a2029; --about-text: #e5e7eb; --about-muted: #9ca3af; --about-border: #2a313c;
    --about-header: rgba(15, 18, 24, .9); --about-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
html[data-theme="minimal"] .about-body {
    --about-bg: #fafafa; --about-surface: #f2f4f6; --about-card: #ffffff; --about-text: #111827; --about-muted: #6b7280; --about-border: #ececec;
    --about-header: rgba(250, 250, 250, .95); --about-shadow: none; --about-radius: 10px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.about-body { margin: 0; background: var(--about-bg); color: var(--about-text); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.about-body *, .about-body *::before, .about-body *::after { box-sizing: border-box; }
.about-body a { color: var(--about-brand); }
.about-body img { max-width: 100%; height: auto; }
.about-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.about-muted { color: var(--about-muted); }
.about-small { font-size: 13px; }
.about-skip { position: absolute; left: -999px; top: 0; background: var(--about-brand); color: #fff !important; padding: 8px 12px; z-index: 100; }
.about-skip:focus { left: 8px; top: 8px; }
.about-body :focus-visible { outline: 2px solid var(--about-brand); outline-offset: 2px; }

/* buttons */
.about-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--about-brand); color: #fff !important; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.about-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.about-btn-sm { padding: 7px 14px; font-size: 14px; }
.about-link-btn { background: none; border: 0; color: var(--about-text) !important; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.about-link-btn:hover { background: var(--about-surface); }
.about-icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--about-border); background: var(--about-card); color: var(--about-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.about-icon-btn:hover { border-color: var(--about-brand); color: var(--about-brand); }

/* header */
.about-staff-bar { background: #111827; color: #e5e7eb; font-size: 13px; padding: 6px 0; }
.about-staff-bar .about-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.about-staff-bar a { color: #93c5fd; margin-left: 12px; }
.about-header { position: sticky; top: 0; z-index: 30; background: var(--about-header); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--about-border); }
.about-header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.about-brand { display: flex; align-items: center; color: var(--about-text) !important; text-decoration: none; font-weight: 800; font-size: 19px; margin-right: auto; min-width: 0; }
.about-brand img { max-height: 40px; width: auto; }
.about-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-actions { display: flex; align-items: center; gap: 6px; }
.about-cta-btn { display: none; }
.about-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--about-bg); border-bottom: 1px solid var(--about-border); padding: 8px 16px 16px; box-shadow: var(--about-shadow); }
.about-nav.open { display: block; }
.about-nav ul { list-style: none; margin: 0; padding: 0; }
.about-nav > ul > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--about-border); }
.about-nav a { display: block; flex: 1; padding: 12px 4px; color: var(--about-text); text-decoration: none; font-weight: 500; }
.about-nav a.active, .about-nav a:hover { color: var(--about-brand); }
.about-sub-toggle { background: none; border: 0; color: var(--about-text); width: 40px; height: 40px; cursor: pointer; }
.about-sub { display: none; width: 100%; padding-left: 14px !important; }
.has-children.open > .about-sub { display: block; }
.about-search { margin-top: 12px; display: flex; gap: 8px; }
.about-search input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--about-border); border-radius: 999px; padding: 0 16px; background: var(--about-card); color: var(--about-text); font: inherit; font-size: 15px; }
.about-search input:focus { outline: none; border-color: var(--about-brand); box-shadow: 0 0 0 3px var(--about-brand-soft); }
.about-search-lg { max-width: 560px; margin: 16px 0 20px; }
.about-search-lg input { height: 48px; }

/* hero */
.about-hero { position: relative; padding: 56px 0 44px; background: linear-gradient(180deg, var(--about-surface), var(--about-bg)); overflow: hidden; }
.about-hero.has-image { padding: 110px 0 70px; color: #fff; background: #0b0f14; }
.about-hero-bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: .55; }
.about-hero-inner { position: relative; }
.about-hero h1, .about-hero .about-hero-heading { font-size: clamp(30px, 6vw, 52px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.about-hero .about-lead { max-width: 720px; }
.about-hero.has-image .about-lead { color: rgba(255, 255, 255, .9); }
.about-lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--about-muted); margin: 0 0 12px; }

/* sections & cards */
.about-section { padding-top: 28px; padding-bottom: 40px; }
.about-section-title { font-size: 22px; margin: 32px 0 16px; display: flex; align-items: baseline; gap: 12px; }
.about-section-title:first-child { margin-top: 8px; }
.about-section-link { font-size: 14px; font-weight: 500; margin-left: auto; text-decoration: none; }
.about-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.about-featured-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.about-list { display: grid; gap: 14px; }
.about-card { background: var(--about-card); border: 1px solid var(--about-border); border-radius: var(--about-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--about-shadow); transition: transform .18s, border-color .18s; }
.about-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--about-brand) 45%, var(--about-border)); }
.about-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--about-surface); overflow: hidden; }
.about-card-media img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .4s; }
.about-card:hover .about-card-media img { transform: scale(1.03); }
.about-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 800; color: var(--about-brand); background: var(--about-brand-soft); }
.about-bubble { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(17, 24, 39, .78); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.about-bubble-inline { position: static; text-decoration: none; background: var(--about-surface); color: var(--about-text) !important; }
.about-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.about-card-title { font-size: 18px; line-height: 1.3; margin: 0; }
.about-card-lg .about-card-title { font-size: clamp(20px, 3vw, 26px); }
.about-card-title a { color: var(--about-text); text-decoration: none; }
.about-card-title a:hover { color: var(--about-brand); }
.about-card-text { margin: 0; color: var(--about-muted); font-size: 15px; }
.about-card-meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--about-muted); }
.about-card-tags { display: flex; gap: 6px; }
.about-card-tags a { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.about-card-row { flex-direction: row; }
.about-card-row .about-card-media { width: 120px; flex: 0 0 120px; aspect-ratio: auto; min-height: 100%; }
.about-card-row .about-card-placeholder { font-size: 30px; }
.about-card-row .about-bubble { right: 6px; bottom: 6px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tags a { border: 1px solid var(--about-border); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--about-text); text-decoration: none; background: var(--about-card); }
.about-tags a:hover { border-color: var(--about-brand); color: var(--about-brand); }
.about-tags a span { color: var(--about-muted); font-size: 12px; }
.about-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 26px 0 6px; }
.about-pagination a { text-decoration: none; font-weight: 600; }
.about-empty { text-align: center; padding: 50px 16px; color: var(--about-muted); border: 1px dashed var(--about-border); border-radius: var(--about-radius); }

/* page */
.about-narrow { max-width: 820px; }
.about-wide { max-width: 1180px; }
.about-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--about-muted); margin-bottom: 14px; }
.about-breadcrumbs a { color: var(--about-muted); text-decoration: none; }
.about-breadcrumbs a:hover { color: var(--about-brand); }
.about-article-head h1, .about-list-title, .about-message h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.about-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--about-muted); font-size: 14px; margin: 12px 0 22px; }
.about-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--about-text); }
.about-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.about-headline { margin: 0 0 26px; border-radius: var(--about-radius); overflow: hidden; }
.about-headline img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.about-headline figcaption, .about-figure figcaption { font-size: 13px; color: var(--about-muted); padding: 8px 2px 0; }
.about-content { font-size: 17px; overflow-wrap: anywhere; }
.about-content h2 { font-size: 26px; margin: 34px 0 10px; line-height: 1.25; scroll-margin-top: 80px; }
.about-content h3 { font-size: 21px; margin: 26px 0 8px; scroll-margin-top: 80px; }
.about-content p, .about-content ul, .about-content ol { margin: 0 0 16px; }
.about-content blockquote { margin: 20px 0; padding: 6px 18px; border-left: 4px solid var(--about-brand); color: var(--about-muted); font-size: 18px; }
.about-content table { width: 100%; border-collapse: collapse; margin: 16px 0; display: block; overflow-x: auto; }
.about-content th, .about-content td { border: 1px solid var(--about-border); padding: 8px 10px; text-align: left; }
.about-content img { border-radius: 10px; }
.about-content pre { background: var(--about-surface); padding: 14px; border-radius: 10px; overflow-x: auto; }
.about-figure { margin: 20px 0; }
.about-figure.align-center { text-align: center; margin-left: auto; margin-right: auto; }
.about-figure video, .about-figure audio { width: 100%; border-radius: 10px; }
.about-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--about-radius); overflow: hidden; background: #000; margin: 20px 0; }
.about-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.about-block-section { margin-top: 34px; }
.about-block-section > h2 { font-size: 20px; margin: 0 0 14px; }
.about-article-tags { margin-top: 26px; }
.about-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--about-border); }
.about-share a { font-size: 14px; text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--about-border); color: var(--about-text); }
.about-share a:hover { border-color: var(--about-brand); color: var(--about-brand); }
.about-preview-note { background: #fef3c7; color: #78350f; font-size: 14px; padding: 8px 0; }
.about-cta { background: var(--about-brand-soft); border: 1px solid color-mix(in srgb, var(--about-brand) 30%, transparent); border-radius: var(--about-radius); padding: 22px; margin: 24px 0; }
.about-cta h3 { margin-top: 0; }
.about-content a.about-btn, .about-cta a.about-btn { color: #fff; }

/* gallery & documents */
.about-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.about-gallery-item { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--about-surface); }
.about-gallery-item img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .3s; }
.about-gallery-item:hover img { transform: scale(1.04); }
.about-gallery-video { aspect-ratio: 16 / 10; }
.about-gallery-video video { width: 100%; height: 100%; object-fit: cover; }
.about-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 50px 12px; }
.about-lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; }
.about-lightbox figcaption { color: #e5e7eb; text-align: center; font-size: 14px; margin-top: 10px; }
.about-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.about-lightbox .lb-close { top: 12px; right: 12px; }
.about-lightbox .lb-prev { left: 10px; top: 50%; }
.about-lightbox .lb-next { right: 10px; top: 50%; }
.about-documents { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.about-documents a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--about-border); border-radius: 10px; background: var(--about-card); color: var(--about-text); text-decoration: none; }
.about-documents a:hover { border-color: var(--about-brand); }
.about-doc-icon { flex: 0 0 44px; height: 44px; border-radius: 8px; background: var(--about-brand-soft); color: var(--about-brand); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.about-doc-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.about-doc-name small { display: block; font-weight: 400; color: var(--about-muted); }
.about-doc-size { font-size: 13px; color: var(--about-muted); white-space: nowrap; }

/* sidebar layout */
.about-with-sidebar { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.about-sidebar { display: grid; gap: 16px; align-content: start; }
.about-side-box { background: var(--about-card); border: 1px solid var(--about-border); border-radius: var(--about-radius); padding: 16px; }
.about-side-box h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--about-muted); margin: 0 0 10px; }
.about-toc, .about-side-links { margin: 0; padding-left: 18px; font-size: 15px; }
.about-toc li { margin: 4px 0; }
.about-toc .level-3 { margin-left: 12px; font-size: 14px; }
.about-toc a, .about-side-links a { color: var(--about-text); text-decoration: none; }
.about-toc a:hover, .about-side-links a:hover { color: var(--about-brand); }

/* comments */
.about-comments { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--about-border); }
.about-comments > h2 { font-size: 22px; margin: 0 0 16px; }
.about-comment-list, .about-replies ol { list-style: none; margin: 0; padding: 0; }
.about-replies { list-style: none; padding-left: 26px !important; border-left: 2px solid var(--about-border); margin: -4px 0 12px 18px; }
.about-comment { display: flex; gap: 12px; padding: 12px 0; }
.about-comment:target .about-comment-main { box-shadow: 0 0 0 3px var(--about-brand-soft); border-radius: 10px; }
.about-comment-avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--about-brand-soft); color: var(--about-brand); font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-comment-main { flex: 1; min-width: 0; }
.about-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.about-comment-head time { color: var(--about-muted); font-size: 13px; }
.about-comment-body { margin-top: 4px; overflow-wrap: anywhere; }
.about-comment.is-staff .about-comment-avatar { background: var(--about-brand); color: #fff; }
.about-badge { font-size: 11px; font-weight: 700; background: var(--about-brand); color: #fff; border-radius: 999px; padding: 1px 8px; }
.about-reply-btn { background: none; border: 0; color: var(--about-brand); font-size: 13px; font-weight: 600; padding: 4px 0; cursor: pointer; }
.about-comment-form { margin-top: 18px; background: var(--about-surface); border: 1px solid var(--about-border); border-radius: var(--about-radius); padding: 16px; display: grid; gap: 12px; }
.about-form-title { font-size: 17px; margin: 0; }
.about-form-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.about-comment-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.about-comment-form input, .about-comment-form textarea { width: 100%; border: 1px solid var(--about-border); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; background: var(--about-card); color: var(--about-text); }
.about-comment-form input:focus, .about-comment-form textarea:focus { outline: none; border-color: var(--about-brand); box-shadow: 0 0 0 3px var(--about-brand-soft); }
.about-form-actions { display: flex; gap: 10px; align-items: center; }
.about-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.about-alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 15px; }
.about-alert-success { background: #dcfce7; color: #14532d; }
.about-alert-error { background: #fee2e2; color: #7f1d1d; }

/* footer */
.about-footer { border-top: 1px solid var(--about-border); background: var(--about-surface); padding: 32px 0 20px; margin-top: 30px; }
.about-footer-grid { display: grid; gap: 20px; }
.about-footer-title { font-size: 17px; }
.about-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.about-footer-links a { color: var(--about-text); text-decoration: none; font-size: 15px; }
.about-footer-links a:hover { color: var(--about-brand); }
.about-copyright { margin-top: 20px; }
.about-message { text-align: center; padding-top: 60px; padding-bottom: 60px; }
.about-message .about-search-lg { margin-left: auto; margin-right: auto; }

/* blank layout: only the content */
.about-blank .about-header, .about-blank .about-footer { display: none; }

/* shown inside GRID: follow GRID's own colours (classic, dark, minimal) */
.about-in-app { --about-brand: var(--bs-primary, #2563eb); --about-text: inherit; --about-muted: #8a94a6; --about-border: rgba(128, 128, 128, .25); --about-surface: rgba(128, 128, 128, .08); --about-card: transparent; --about-radius: 10px; --about-shadow: none; --about-brand-soft: rgba(37, 99, 235, .12); }
.about-in-app .about-article-head h1 { font-size: 28px; }

@media (min-width: 640px) {
    .about-grid-2, .about-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-gallery { grid-template-columns: repeat(3, 1fr); }
    .about-form-row { grid-template-columns: 1fr 1fr; }
    .about-card-row .about-card-media { width: 200px; flex-basis: 200px; }
    .about-cta-btn { display: inline-flex; }
}
@media (min-width: 960px) {
    .about-menu-toggle { display: none; }
    .about-nav { display: flex !important; position: static; align-items: center; gap: 8px; padding: 0; background: none; border: 0; box-shadow: none; }
    .about-nav > ul { display: flex; gap: 2px; }
    .about-nav > ul > li { border: 0; }
    .about-nav a { padding: 8px 12px; border-radius: 8px; flex: none; }
    .about-nav a:hover { background: var(--about-surface); }
    .about-sub-toggle { width: 22px; height: 22px; margin-left: -8px; }
    .about-sub { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--about-card); border: 1px solid var(--about-border); border-radius: 12px; box-shadow: var(--about-shadow); padding: 6px !important; z-index: 40; }
    .has-children:hover > .about-sub, .has-children:focus-within > .about-sub { display: block; }
    .about-search { margin: 0 0 0 6px; }
    .about-search input { width: 190px; height: 36px; font-size: 14px; }
    .about-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .about-featured-grid { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
    .about-featured-grid .about-grid-2 { align-content: start; }
    .about-gallery { grid-template-columns: repeat(4, 1fr); }
    .about-with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
    .about-sidebar { position: sticky; top: 84px; }
    .about-footer-grid { grid-template-columns: 1.4fr 1fr; }
    .about-brand { margin-right: 18px; }
    .about-nav { margin-right: auto; }
}
@media print {
    .about-header, .about-footer, .about-share, .about-comments, .about-staff-bar, .about-sidebar { display: none !important; }
    .about-body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
    .about-body *, .about-body *::before, .about-body *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* text for screen readers and search engines only */
.about-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
