/*
Theme Name: LGBTIQ Phobia Monitoring
Theme URI: https://lgbtiqphobiamonitoring-bd.org/
Description: Lightweight theme for LGBTIQ Phobia Monitoring BD: category-driven menu, incident filters, automatic statistics and a privacy-minded setup. No page builder needed.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lpm
*/

/* Layout: one centred column (1200px) for listings, a 720px reading column for articles.
   Navy and white with a single warm orange for actions, echoing the Noboprobhaat Foundation footer. */
:root {
	--navy: #0e1c3d;
	--navy-2: #182c58;
	--ink: #172033;
	--muted: #535e76;
	--line: #e1e4ec;
	--soft: #f4f5f9;
	--paper: #ffffff;
	--accent: #f08a4b;
	--accent-ink: #a8481a;
	--gold: #f4b84f;
	--font: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Arial, sans-serif;
	--wrap: 1200px;
	--narrow: 720px;
	--mid: 960px;
	--radius: 10px;
	--gutter: clamp(16px, 4vw, 32px);
	color-scheme: light;
}

/* Fonts are self-hosted so no visitor data goes to a third party. */
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/hind-siliguri-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/hind-siliguri-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/hind-siliguri-bengali-400-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/hind-siliguri-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/hind-siliguri-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/hind-siliguri-bengali-500-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/hind-siliguri-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/hind-siliguri-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/hind-siliguri-bengali-600-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/hind-siliguri-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/hind-siliguri-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/hind-siliguri-bengali-700-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-mid { max-width: calc(var(--mid) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(28px, 5vw, 56px); }
.section-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 0 22px; }
.section-title a { color: inherit; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; margin: 0 0 10px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; background: var(--accent); color: var(--navy); font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: #f59d63; color: var(--navy); }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); color: var(--navy); }
.btn--ghost:hover { background: var(--soft); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.header-inner > * { min-width: 0; }
.brand { flex: 0 0 auto; }
.brand img, .custom-logo { display: block; max-height: 54px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--navy); text-decoration: none; }
.primary-nav { flex: 1 1 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.nav-group { position: relative; }
.nav-heading { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font: 600 .95rem var(--font); color: var(--navy); cursor: pointer; white-space: nowrap; }
.nav-heading:hover, .nav-group:focus-within > .nav-heading, .nav-heading[aria-expanded="true"] { background: var(--soft); }
.nav-group.is-active > .nav-heading { box-shadow: inset 0 -3px 0 var(--accent); }
.chev { transition: transform .15s; }
.nav-heading[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 8px; }
.sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.sub a[aria-current="page"] { font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.menu-toggle .when-open { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: inline; }
.menu-toggle[aria-expanded="true"] .when-closed { display: none; }
.search-form { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.search-form:focus-within { border-color: var(--navy); }
.search-field { flex: 1 1 auto; min-width: 0; width: 100%; height: 42px; padding: 0 4px 0 16px; border: 0; background: none; font: 400 .95rem var(--font); color: var(--ink); outline: none; }
.search-submit { width: 42px; height: 42px; border: 0; background: none; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.header-search .search-form { width: 220px; }
.mobile-search { border-top: 1px solid var(--line); padding-block: 12px; }
.lang-switch { font-size: .9rem; font-weight: 600; }
.lang-switch a { color: var(--navy); text-decoration: none; }
.nav-mobile-extra { display: none; }

/* Desktop dropdowns */
@media (min-width: 1100px) {
	.menu-toggle, .search-toggle, .mobile-search { display: none !important; }
	.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(14, 28, 61, .12); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
	.nav-group:last-child .sub { left: auto; right: 0; }
	.nav-group:hover > .sub, .nav-group:focus-within > .sub, .nav-heading[aria-expanded="true"] + .sub { visibility: visible; opacity: 1; transform: none; }
	.nav-group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
}
@media (min-width: 1100px) and (max-width: 1439px) {
	.header-search { display: none; }
	.search-toggle { display: inline-grid !important; }
	.mobile-search:not([hidden]) { display: block !important; }
	.nav-heading { padding-inline: 9px; font-size: .9rem; }
}
/* Mobile drawer */
@media (max-width: 1099px) {
	.header-inner { min-height: 64px; justify-content: space-between; }
	.header-search { display: none; }
	.primary-nav { position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--paper); overflow-y: auto; padding: 12px var(--gutter) 32px; display: none; }
	.admin-bar .primary-nav { top: calc(64px + 46px); }
	.primary-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-group { border-bottom: 1px solid var(--line); }
	.nav-heading { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.05rem; border-radius: 0; }
	.nav-heading:hover { background: none; }
	.nav-group.is-active > .nav-heading { box-shadow: none; color: var(--accent-ink); }
	.sub { display: none; padding: 0 0 12px; }
	.nav-heading[aria-expanded="true"] + .sub { display: block; }
	.nav-mobile-extra { display: block; margin-top: 20px; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Home ---------- */
.latest-bar { background: var(--navy); color: #fff; }
.latest-inner { display: flex; align-items: center; gap: 16px; min-height: 48px; overflow: hidden; }
.latest-label { flex: 0 0 auto; background: var(--accent); color: var(--navy); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; }
.latest-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow: hidden; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.latest-list li { flex: 0 0 auto; }
.latest-list a { color: #fff; text-decoration: none; font-size: .95rem; }
.latest-list a:hover { text-decoration: underline; color: #fff; }
.latest-list li + li::before { content: "•"; color: var(--gold); margin-right: 28px; }
@media (max-width: 720px) {
	.latest-list { display: block; position: relative; height: 1.6em; }
	.latest-list li { position: absolute; inset: 0; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .4s; }
	.latest-list li.is-shown { opacity: 1; }
	.latest-list li + li::before { content: none; }
	.latest-list a { display: block; overflow: hidden; text-overflow: ellipsis; }
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card-link:hover .card-media img { transform: scale(1.03); }
.card-media-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--soft), #e8ebf3); }
.card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.card-cat { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.card-title { margin: 0; font-size: 1.1rem; line-height: 1.35; color: var(--navy); }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 1.5px; }
.card-excerpt { margin: 0; color: var(--muted); }
.card-meta { margin: 0; font-size: .88rem; color: var(--muted); }
@media (min-width: 961px) {
	.grid--home .card--lead { grid-column: span 2; grid-row: span 2; }
	.card--lead .card-media { aspect-ratio: 16 / 9; }
	.card--lead .card-title { font-size: 1.65rem; }
}
@media (max-width: 960px) {
	.grid--home .card--lead { grid-column: 1 / -1; }
	.card--lead .card-title { font-size: 1.35rem; }
}

.pagination { margin-top: 40px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; }
.pagination a:hover { background: var(--soft); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .dots { border: 0; }

.about-band { background: var(--soft); padding-block: clamp(36px, 6vw, 64px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.tab-list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab-list button { min-height: 44px; padding: 8px 16px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 1rem var(--font); color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tab-list button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--accent); }
[role="tabpanel"] p { margin: 0 0 16px; max-width: 62ch; }
.quote { margin: 0; padding: 28px; background: var(--navy); color: #fff; border-radius: var(--radius); }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: 1.12rem; line-height: 1.6; }
.quote figcaption { margin-top: 14px; color: var(--gold); font-weight: 600; font-size: .92rem; }
.archives { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.archives label { font-weight: 600; color: var(--navy); }

select { min-height: 44px; padding: 6px 36px 6px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%230e1c3d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font: 400 .95rem var(--font); color: var(--ink); max-width: 100%; }

/* ---------- Archive ---------- */
.archive-head { background: var(--soft); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 5vw, 48px); }
.archive-title { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.archive-desc { color: var(--muted); max-width: 70ch; margin-top: 8px; }
.archive-desc p { margin: 0; }
.archive-count { margin: 10px 0 0; font-weight: 600; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 22px; }
.filter { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.filter label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.filter-actions { display: flex; align-items: center; gap: 16px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.empty-page .search-form { max-width: 480px; margin-top: 20px; }

/* ---------- Article ---------- */
.article-head { padding-top: clamp(28px, 5vw, 56px); }
.article-title { font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 0 0 14px; }
.article-meta { margin: 0; color: var(--muted); font-weight: 500; }
.article-published { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.article-figure { margin: 28px auto 8px; }
.article-figure img { width: 100%; border-radius: var(--radius); display: block; }
.article-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.entry-content { padding-block: 24px 8px; font-size: 1.08rem; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.45rem; margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.1em; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink); }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
/* Imported posts carry their own article markup; keep it inside the column and in the site's type. */
.entry-content .lgbtiq-documentation { width: auto !important; max-width: 100% !important; position: static !important; margin-left: 0 !important; padding-inline: 0 !important; font-family: var(--font) !important; font-size: inherit !important; color: var(--ink) !important; }
.entry-content .lgbtiq-documentation .article-header h1 { display: none; }
.entry-content :is(p, li, td, th, a, span, h2, h3, h4, div, blockquote, strong, em) { font-family: var(--font) !important; }
.entry-content .lgbtiq-documentation p, .entry-content .lgbtiq-documentation li { font-size: 1.05rem !important; line-height: 1.7 !important; }
.entry-content .lgbtiq-documentation .article-header { background: none !important; border-left: 0 !important; padding: 0 0 12px !important; }
.entry-content .elementor-section, .entry-content .elementor-container, .entry-content .elementor-widget-wrap { width: 100% !important; max-width: 100% !important; }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 20px; border-top: 1px solid var(--line); margin-top: 16px; }
.share-label { font-weight: 600; color: var(--navy); margin-right: 6px; }
.share-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy); cursor: pointer; }
.share-btn:hover { background: var(--soft); color: var(--navy); }
.copy-done { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .78rem; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

.timeline { margin-top: 24px; padding: 24px; background: var(--soft); border-radius: var(--radius); }
.timeline h2 { font-size: 1.15rem; margin: 0 0 14px; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 10px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted); }
.timeline li.is-current::before { background: var(--accent); border-color: var(--accent); }
.tl-date { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); }
.timeline li.is-current span:last-child { font-weight: 600; }
.related { border-top: 1px solid var(--line); margin-top: 32px; }

/* ---------- Statistics ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.tile:first-child { background: var(--navy); border-color: var(--navy); }
.tile:first-child .tile-num, .tile:first-child .tile-label { color: #fff; }
.tile:first-child .tile-note { color: var(--gold); }
.tile-num { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-label { font-weight: 600; color: var(--ink); }
.tile-note { font-size: .85rem; color: var(--muted); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .panels { grid-template-columns: minmax(0, 1fr); } }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel--wide { margin-bottom: 16px; }
.panel h2 { font-size: 1.1rem; margin: 0 0 16px; }
.panel-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 1.2fr) 36px; align-items: center; gap: 12px; }
.bar-label { font-size: .92rem; line-height: 1.3; }
.bar-track { height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--navy-2); border-radius: 5px; }
.bar-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy); }
@media (max-width: 520px) { .bars li { grid-template-columns: minmax(0, 1fr) 36px; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }
.columns-chart { display: flex; align-items: flex-end; gap: 8px; height: 220px; overflow-x: auto; padding-top: 8px; }
.columns-chart .col { flex: 1 0 40px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.col-bar { width: 70%; max-width: 48px; background: var(--navy-2); border-radius: 5px 5px 0 0; }
.col.is-selected .col-bar { background: var(--accent); }
.col-value { font-weight: 600; font-size: .9rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.col-label { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.method-note { margin-top: 24px; padding: 22px; background: var(--soft); border-radius: var(--radius); }
.method-note h2 { font-size: 1.1rem; margin: 0 0 8px; }
.method-note p { margin: 0 0 10px; max-width: 80ch; }

/* Schematic division map */
.div-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(64px, auto)); gap: 6px; }
.div-cell { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); min-width: 0; }
.div-cell.is-dark { color: #fff; border-color: transparent; }
.div-name { font-size: .85rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.div-num { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.div-other { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.div-other li { padding: 4px 12px; border-radius: 999px; background: var(--soft); font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 48px; color: #d7dceb; background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 60%); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--gold) 70%, transparent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding-block: 56px 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-name { margin: 0 0 8px; font-size: 1.35rem; font-weight: 700; color: #fff; }
.footer-line { margin: 0 0 20px; max-width: 42ch; }
.footer-heading { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
.social a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; color: #aeb6cc; }
.footer-bottom p { margin: 0; }

/* TranslatePress switcher inherits the header type. */
.lang-switch .trp-language-switcher { font-family: var(--font); }
