/*
Theme Name: Magazine Lume
Theme URI: https://androidcaptain.com/
Description: Fast, lightweight editorial theme for Android Captain. System-font body, one stylesheet, no jQuery, built-in light/dark mode and structured data.
Version: 2.0.0
Author: Android Captain
Requires PHP: 7.4
Text Domain: android-captain
WPVibe: yes
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg: #ffffff;
	--bg-soft: #f4f6f3;
	--card: #ffffff;
	--text: #101512;
	--text-2: #39413c;
	--muted: #606a63;
	--line: #e2e6e1;
	--line-strong: #cdd4ce;
	--brand: #3ddc84;
	--brand-ink: #05160c;
	--link: #087a3b;
	--link-hover: #055c2b;
	--bar: #0c110e;
	--bar-text: #eef3ef;
	--bar-muted: #9aa59e;
	--bar-line: #1f2823;
	--shadow: 0 1px 2px rgba(16, 21, 18, .06), 0 10px 30px rgba(16, 21, 18, .08);
	--radius: 10px;
	--f-head: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--shell: 1200px;
	--bar-h: 64px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0b0f0d;
	--bg-soft: #131916;
	--card: #131916;
	--text: #e9eeea;
	--text-2: #c2cac4;
	--muted: #8f9a93;
	--line: #232b27;
	--line-strong: #334039;
	--link: #52e396;
	--link-hover: #8af0b9;
	--bar: #060907;
	--bar-line: #18201b;
	--shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .4);
	color-scheme: dark;
}

/* No-JS fallback: follow the device setting. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #0b0f0d; --bg-soft: #131916; --card: #131916; --text: #e9eeea; --text-2: #c2cac4;
		--muted: #8f9a93; --line: #232b27; --line-strong: #334039; --link: #52e396; --link-hover: #8af0b9;
		--bar: #060907; --bar-line: #18201b; color-scheme: dark;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 20px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; }

.ac-sr, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ac-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
	background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.ac-skip:focus { top: 12px; color: var(--brand-ink); }
.ac-shell { width: min(var(--shell), 100% - 32px); margin-inline: auto; }
.ac-muted { color: var(--muted); }

/* Smooth cross-fade only while switching color modes */
html.ac-theming *, html.ac-theming *::before, html.ac-theming *::after {
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease !important;
}

/* ==========================================================================
   Header
   ========================================================================== */
.ac-bar {
	position: sticky; top: 0; z-index: 50;
	background: var(--bar); color: var(--bar-text);
	border-bottom: 1px solid var(--bar-line);
}
.admin-bar .ac-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .ac-bar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ac-bar { top: 0; } }

.ac-bar-in { display: flex; align-items: center; gap: 18px; height: var(--bar-h); }

.ac-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--bar-text); }
.ac-brand:hover { color: var(--bar-text); }
.ac-mark { width: 34px; height: 34px; flex-shrink: 0; }
.ac-brand-text {
	font: 800 19px/1 var(--f-head); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
}
.ac-brand-text b { color: var(--brand); font-weight: 800; margin-left: .22em; }

.ac-nav { flex: 1; min-width: 0; }
.ac-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.ac-menu > li { position: relative; padding: 12px 0; }
.ac-menu a {
	display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 8px;
	font: 600 14.5px/1 var(--f-body); color: var(--bar-text); white-space: nowrap;
}
.ac-menu > li > a:hover, .ac-menu > li:focus-within > a { background: rgba(255, 255, 255, .08); color: #fff; }
.ac-menu > .current-menu-item > a,
.ac-menu > .current-menu-ancestor > a,
.ac-menu > .current-menu-parent > a { color: var(--brand); }
.ac-menu .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-top: -3px;
	border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: .7;
}
.ac-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.ac-menu li:hover > .sub-menu, .ac-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ac-menu .sub-menu a { color: var(--text); padding: 11px 12px; font-weight: 500; }
.ac-menu .sub-menu a:hover { background: var(--bg-soft); color: var(--link); }
.ac-menu .sub-menu .current-menu-item > a { color: var(--link); font-weight: 700; }

.ac-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ac-icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: 10px; background: transparent; color: var(--bar-text); cursor: pointer;
}
.ac-icon-btn:hover { background: rgba(255, 255, 255, .09); }
.ac-icon-btn > span { display: grid; }
.ac-icon-btn svg { width: 21px; height: 21px; }
.ac-theme-toggle .ac-ico-sun,
[data-theme="dark"] .ac-theme-toggle .ac-ico-moon { display: none; }
[data-theme="dark"] .ac-theme-toggle .ac-ico-sun { display: grid; color: #ffd166; }
.ac-theme-toggle svg { transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.ac-theme-toggle:active svg { transform: rotate(-35deg) scale(.9); }
.ac-menu-toggle { display: none; }
.ac-menu-toggle .ac-ico-close,
.ac-menu-toggle[aria-expanded="true"] .ac-ico-menu { display: none; }
.ac-menu-toggle[aria-expanded="true"] .ac-ico-close { display: grid; }

.ac-searchbar { border-top: 1px solid var(--bar-line); padding: 14px 0 16px; }
.ac-searchbar[hidden] { display: none; }

.ac-search-form {
	display: flex; align-items: center; max-width: 640px;
	background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 4px 4px 20px;
}
.ac-search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.ac-search-form input {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
	font: 16px var(--f-body); padding: 10px 0;
}
.ac-search-form input::-webkit-search-cancel-button { display: none; }
.ac-search-form button {
	display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
	border: 0; border-radius: 50%; background: var(--brand); color: var(--brand-ink); cursor: pointer;
}

.ac-trending { background: var(--bg); border-bottom: 1px solid var(--line); }
.ac-trending-in {
	display: flex; align-items: center; gap: 10px; height: 50px;
	overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.ac-trending-in::-webkit-scrollbar { display: none; }
.ac-trending-label {
	display: inline-flex; align-items: center; gap: 8px; margin-right: 4px;
	font: 800 12px/1 var(--f-head); letter-spacing: .09em; text-transform: uppercase; color: var(--link);
}
.ac-trending-label::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
	box-shadow: 0 0 0 4px rgba(61, 220, 132, .22); animation: ac-pulse 2.4s ease-in-out infinite;
}
@keyframes ac-pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
.ac-trending a {
	font-size: 13.5px; font-weight: 600; color: var(--text-2);
	padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
}
.ac-trending a:hover { border-color: var(--brand); color: var(--link); }

/* ==========================================================================
   Shared pieces
   ========================================================================== */
.ac-label {
	display: inline-block; margin-bottom: 8px;
	font: 700 12px/1.2 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--link);
}
.ac-label:hover { color: var(--link-hover); }
.ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; color: var(--muted); }
.ac-meta > * + *::before {
	content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 9px;
	border-radius: 50%; background: currentColor; vertical-align: middle; opacity: .7;
}
.ac-by { font-weight: 600; color: var(--text-2); }

.ac-section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--text);
}
.ac-section-title {
	display: flex; align-items: center; gap: 10px; margin: 0;
	font: 800 22px/1.15 var(--f-head); letter-spacing: -.01em;
}
.ac-section-title::before { content: ""; width: 9px; height: 22px; border-radius: 2px; background: var(--brand); flex-shrink: 0; }
.ac-more { font-size: 13.5px; font-weight: 700; color: var(--link); white-space: nowrap; }
.ac-more:hover { color: var(--link-hover); }

.ac-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
	border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
	font: 700 14.5px/1 var(--f-body); cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.ac-btn:hover { color: var(--brand-ink); filter: brightness(1.06); transform: translateY(-1px); }
.ac-btn svg { width: 17px; height: 17px; }
.ac-btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.ac-btn--ghost:hover { color: var(--link); border-color: var(--brand); }

.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chip {
	font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
	background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2);
}
.ac-chip:hover { border-color: var(--brand); color: var(--link); }

/* ==========================================================================
   Cards
   ========================================================================== */
.ac-card { position: relative; min-width: 0; }
.ac-card-media {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--radius); background: var(--bg-soft);
}
.ac-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ac-card:hover .ac-card-media img { transform: scale(1.045); }
.ac-noimg {
	position: absolute; inset: 0;
	background: radial-gradient(circle at 75% 25%, rgba(61, 220, 132, .35), transparent 55%), linear-gradient(135deg, var(--bg-soft), var(--line));
}
.ac-card-title { margin: 0 0 8px; font: 700 20px/1.25 var(--f-head); letter-spacing: -.01em; color: var(--text); }
.ac-card-title a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	transition: background-size .3s ease;
}
.ac-card-title a:hover { color: var(--text); background-size: 100% 1.5px; }
.ac-card-dek { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.ac-card--grid .ac-card-body { padding-top: 14px; }
.ac-card--grid .ac-card-title { font-size: 18.5px; line-height: 1.28; }

.ac-card--lead .ac-card-media { border-radius: 14px; }
.ac-card--lead .ac-card-body { padding-top: 20px; }
.ac-card--lead .ac-card-title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.ac-card--lead .ac-card-dek { font-size: 18px; max-width: 62ch; }

.ac-card--mini {
	display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 16px; align-items: start;
	padding: 16px 0; border-bottom: 1px solid var(--line);
}
.ac-card--mini .ac-card-media { order: 2; border-radius: 8px; }
.ac-card--mini .ac-label { margin-bottom: 6px; font-size: 11px; }
.ac-card--mini .ac-card-title { font-size: 16.5px; line-height: 1.3; margin-bottom: 6px; }

.ac-card--row {
	display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start;
	padding: 24px 0; border-bottom: 1px solid var(--line);
}
.ac-card--row .ac-card-title { font-size: 22px; line-height: 1.22; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.ac-top {
	display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px;
	padding: 32px 0 40px; border-bottom: 1px solid var(--line);
}
.ac-top-side { display: flex; flex-direction: column; }
.ac-top-side .ac-card--mini:first-child { padding-top: 0; }
.ac-top-side .ac-card--mini:last-child { border-bottom: 0; }

.ac-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 56px; padding: 44px 0 20px; }
.ac-river-more { margin-top: 28px; }
.ac-rail { min-width: 0; }
.ac-rail-sticky { position: sticky; top: calc(var(--bar-h) + 24px); display: flex; flex-direction: column; gap: 36px; }
.admin-bar .ac-rail-sticky { top: calc(var(--bar-h) + 56px); }
.ac-rail-title {
	margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--text);
	font: 800 14px/1.2 var(--f-head); letter-spacing: .08em; text-transform: uppercase;
}
.ac-rail .ac-card--mini:last-child { border-bottom: 0; }
.ac-ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ac-ranked li {
	counter-increment: rank; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px;
	padding: 14px 0; border-bottom: 1px solid var(--line);
}
.ac-ranked li:last-child { border-bottom: 0; }
.ac-ranked li::before { content: counter(rank, decimal-leading-zero); font: 800 22px/1.1 var(--f-head); color: var(--link); }
.ac-ranked a { display: block; margin-bottom: 4px; font: 700 15.5px/1.35 var(--f-head); }

.ac-cta {
	position: relative; overflow: hidden; padding: 26px; border-radius: 16px;
	background: var(--bar); color: var(--bar-text); border: 1px solid var(--bar-line);
}
.ac-cta::after {
	content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%;
	background: radial-gradient(circle, rgba(61, 220, 132, .5), transparent 70%); pointer-events: none;
}
.ac-cta h2 { position: relative; margin: 0 0 8px; font: 800 22px/1.15 var(--f-head); }
.ac-cta p { position: relative; margin: 0 0 18px; color: var(--bar-muted); font-size: 15px; }
.ac-cta .ac-btn { position: relative; }

.ac-cat-section { padding: 40px 0; }
.ac-cat-section .ac-section-head { margin-bottom: 22px; }
.ac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.ac-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================================
   Article
   ========================================================================== */
.ac-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.ac-progress span { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }

.ac-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: 28px 0 40px; }
.ac-article { max-width: 760px; min-width: 0; }

.ac-crumbs ol {
	list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.ac-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .45; font-weight: 400; }
.ac-crumbs a { color: var(--link); }
.ac-crumbs a:hover { color: var(--link-hover); }
.ac-crumbs [aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ac-title { margin: 0 0 16px; font: 800 clamp(30px, 4.3vw, 48px)/1.08 var(--f-head); letter-spacing: -.028em; }
.ac-dek { margin: 0 0 22px; font-size: 20px; line-height: 1.5; color: var(--text-2); }

.ac-byline {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	margin-bottom: 26px; padding: 14px 0; border-block: 1px solid var(--line);
}
.ac-byline-who { display: flex; align-items: center; gap: 12px; }
.ac-byline-who img { width: 44px; height: 44px; border-radius: 50%; }
.ac-byline-name { font-size: 15px; font-weight: 600; color: var(--text-2); }
.ac-byline-name a { color: var(--text); font-weight: 800; }
.ac-byline-name a:hover { color: var(--link); }

.ac-share { display: flex; gap: 8px; }
.ac-share a, .ac-share button {
	display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer;
	transition: border-color .15s, color .15s, background-color .15s;
}
.ac-share a:hover, .ac-share button:hover { border-color: var(--brand); color: var(--link); }
.ac-share svg { width: 17px; height: 17px; }
.ac-copy .ac-copy-b, .ac-copy.is-done .ac-copy-a { display: none; }
.ac-copy.is-done .ac-copy-b { display: grid; }
.ac-copy.is-done { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ac-share-row {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	margin: 36px 0 0; padding: 16px 0; border-block: 1px solid var(--line);
	font: 800 14px var(--f-head); letter-spacing: .06em; text-transform: uppercase;
}

.ac-figure { margin: 0 0 30px; }
.ac-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--bg-soft); }
.ac-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.ac-toc { margin: 0 0 32px; padding: 4px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.ac-toc summary {
	display: flex; justify-content: space-between; align-items: center; padding: 13px 0; cursor: pointer; list-style: none;
	font: 800 14px var(--f-head); letter-spacing: .07em; text-transform: uppercase;
}
.ac-toc summary::-webkit-details-marker { display: none; }
.ac-toc summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--link); }
.ac-toc[open] summary::after { content: "\2013"; }
.ac-toc ol { margin: 0 0 16px; padding-left: 20px; }
.ac-toc li { margin: 7px 0; font-size: 15.5px; }
.ac-toc li::marker { color: var(--link); font-weight: 700; }
.ac-toc a { color: var(--text-2); }
.ac-toc a:hover { color: var(--link); }

/* Article body typography */
.ac-entry { font-size: 18.5px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.ac-entry > * { margin-top: 0; margin-bottom: 1.35em; }
.ac-entry h2 { margin: 1.9em 0 .6em; font: 800 29px/1.2 var(--f-head); letter-spacing: -.018em; }
.ac-entry h3 { margin: 1.6em 0 .5em; font: 700 23px/1.25 var(--f-head); }
.ac-entry h4 { margin: 1.4em 0 .5em; font: 700 19px/1.3 var(--f-head); }
.ac-entry a {
	color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
	text-decoration-color: rgba(8, 122, 59, .35);
}
[data-theme="dark"] .ac-entry a { text-decoration-color: rgba(82, 227, 150, .35); }
.ac-entry a:hover { text-decoration-color: currentColor; }
.ac-entry strong { font-weight: 700; }
.ac-entry ul, .ac-entry ol { padding-left: 1.3em; }
.ac-entry li { margin: .45em 0; }
.ac-entry li::marker { color: var(--link); }
.ac-entry blockquote {
	margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand);
	font-size: 21px; font-style: italic; color: var(--text-2);
}
.ac-entry blockquote p:last-child { margin-bottom: 0; }
.ac-entry img { border-radius: 10px; height: auto; }
.ac-entry figure, .ac-entry .wp-caption { max-width: 100% !important; margin: 1.8em 0; }
.ac-entry figcaption, .ac-entry .wp-caption-text { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ac-entry .aligncenter { margin-inline: auto; }
.ac-entry .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.ac-entry .alignright { float: right; margin: .3em 0 1em 1.4em; }
.ac-entry hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
.ac-entry code { padding: .15em .4em; border-radius: 5px; background: var(--bg-soft); font: .86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ac-entry pre { overflow: auto; padding: 18px; border-radius: 10px; background: var(--bg-soft); font-size: 15px; line-height: 1.6; }
.ac-entry pre code { padding: 0; background: none; }
.ac-entry iframe, .ac-entry video, .ac-entry embed { max-width: 100%; border-radius: 10px; }

.ac-entry table {
	width: 100% !important; border: 0 !important; border-collapse: separate !important; border-spacing: 0;
	font-size: 15.5px; line-height: 1.45; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line);
}
.ac-entry th, .ac-entry td {
	padding: 12px 14px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
	text-align: left; vertical-align: top;
}
.ac-entry thead th {
	background: var(--bar); color: var(--bar-text);
	font: 700 13px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase;
}
.ac-entry tbody tr:nth-child(even) { background: var(--bg-soft); }
.ac-entry tbody tr:last-child td { border-bottom: 0 !important; }
.ac-entry tbody td:first-child { font-weight: 700; }

/* Tame hard-coded inline colors from older posts in dark mode */
[data-theme="dark"] .ac-entry [style*="color"] { color: var(--text-2) !important; }
[data-theme="dark"] .ac-entry [style*="background"] { background: var(--bg-soft) !important; }

/* Forms inside content (Contact Form 7, comments) */
.ac-entry input[type="text"], .ac-entry input[type="email"], .ac-entry input[type="url"], .ac-entry input[type="tel"],
.ac-entry input[type="number"], .ac-entry textarea, .ac-entry select,
.ac-comments input[type="text"], .ac-comments input[type="email"], .ac-comments input[type="url"], .ac-comments textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
	background: var(--bg); color: var(--text); font: 16px/1.5 var(--f-body);
}
.ac-entry input:focus, .ac-entry textarea:focus, .ac-comments input:focus, .ac-comments textarea:focus {
	outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61, 220, 132, .22);
}
.ac-entry input[type="submit"], .ac-entry button[type="submit"] {
	padding: 12px 22px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
	font: 700 15px var(--f-body); cursor: pointer;
}

.ac-tags { align-items: center; margin-top: 36px; }
.ac-tags-label { margin-right: 4px; font: 800 13px var(--f-head); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ac-pages { display: flex; gap: 10px; font-weight: 700; margin: 24px 0; }

.ac-author {
	display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; margin: 36px 0;
	padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft);
}
.ac-author img { width: 72px; height: 72px; border-radius: 50%; }
.ac-author-kicker { font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ac-author h2 { margin: 2px 0 6px; font: 800 20px/1.2 var(--f-head); }
.ac-author p { margin: 0; font-size: 15.5px; color: var(--text-2); }

.ac-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0; }
.ac-postnav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, transform .15s; }
.ac-postnav a:hover { border-color: var(--brand); transform: translateY(-2px); }
.ac-postnav span { display: block; margin-bottom: 6px; font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.ac-postnav strong { font: 700 16px/1.35 var(--f-head); color: var(--text); }
.ac-postnav .next { text-align: right; }

.ac-related { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.ac-related .ac-section-head { margin-bottom: 22px; }

/* Comments */
.ac-comments { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.ac-comments .ac-section-title { margin-bottom: 18px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 28px; border-left: 2px solid var(--line); margin-left: 18px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 8px 50px; font-size: 13px; color: var(--muted); }
.comment-content { margin-left: 50px; }
.reply { margin-left: 50px; font-size: 13px; font-weight: 700; }
.reply a { color: var(--link); }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   Archives, search, pages, 404
   ========================================================================== */
.ac-band { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.ac-archive-head { padding: 34px 0 30px; }
.ac-kicker { margin: 0 0 8px; font: 700 12.5px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.ac-archive-title { margin: 0 0 12px; font: 800 clamp(34px, 5vw, 56px)/1.03 var(--f-head); letter-spacing: -.03em; }
.ac-archive-desc { max-width: 70ch; margin: 0 0 18px; font-size: 18px; color: var(--text-2); }
.ac-archive-desc p { margin: 0; }
.ac-archive-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ac-archive-search { margin: 18px 0 14px; }
.ac-count { font-size: 14px; font-weight: 600; color: var(--muted); }

.ac-listing { padding: 32px 0 60px; }
.ac-listing-lead .ac-card--lead {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center;
	margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.ac-listing-lead .ac-card--lead .ac-card-body { padding-top: 0; }
.ac-listing-lead .ac-card--lead .ac-card-title { font-size: clamp(26px, 3vw, 36px); }
.ac-rows .ac-card--row:first-child { padding-top: 0; }

.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line-strong); border-radius: 10px; font-size: 15px; font-weight: 700;
}
.page-numbers.current { background: var(--text); border-color: var(--text); color: var(--bg); }
a.page-numbers:hover { border-color: var(--brand); color: var(--link); }
.page-numbers.dots { border: 0; min-width: 0; }

.ac-empty { padding: 20px 0 36px; max-width: 640px; }
.ac-empty h2 { margin: 0 0 8px; font: 800 26px var(--f-head); }
.ac-empty p { margin: 0 0 18px; color: var(--text-2); }

.ac-page { padding: 32px 0 64px; }
.ac-page-head, .ac-page .ac-entry, .ac-page-figure, .ac-page .ac-comments { max-width: 760px; margin-inline: auto; }
.ac-page-head { margin-bottom: 24px; }

.ac-404 { padding: 56px 0 24px; text-align: center; }
.ac-404 .ac-archive-desc, .ac-404 .ac-search-form { margin-inline: auto; }
.ac-404-code {
	margin: 0; font: 800 clamp(110px, 20vw, 200px)/.9 var(--f-head); letter-spacing: -.06em;
	background: linear-gradient(180deg, var(--brand), rgba(61, 220, 132, .15));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ac-footer { margin-top: 40px; padding-top: 56px; background: var(--bar); color: var(--bar-text); }
.ac-footer-top { display: grid; grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.ac-footer-brand p { max-width: 38ch; margin: 18px 0 22px; font-size: 15px; color: var(--bar-muted); }
.ac-footer h2 { margin: 6px 0 16px; font: 800 12.5px var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--bar-muted); }
.ac-footer ul { list-style: none; margin: 0; padding: 0; }
.ac-footer li { margin: 0 0 11px; }
.ac-footer li a { font-size: 15px; color: var(--bar-text); }
.ac-footer li a:hover { color: var(--brand); }
.ac-footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding: 20px 0 24px; border-top: 1px solid var(--bar-line); font-size: 13.5px; color: var(--bar-muted);
}
.ac-footer-bottom a:hover { color: var(--brand); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.ac-menu-toggle { display: inline-grid; margin-left: -8px; }
	.ac-brand { margin-right: auto; }
	.ac-nav {
		position: fixed; inset: var(--bar-h) 0 0 0; z-index: 49; padding: 8px 16px 48px; overflow-y: auto;
		background: var(--bar); visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.admin-bar .ac-nav { top: calc(var(--bar-h) + 46px); }
	.ac-nav-open { overflow: hidden; }
	.ac-nav-open .ac-nav { visibility: visible; opacity: 1; transform: none; }
	.ac-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ac-menu > li { padding: 0; border-bottom: 1px solid var(--bar-line); }
	.ac-menu a { padding: 15px 4px; font-size: 17px; }
	.ac-menu > li > a:hover { background: transparent; }
	.ac-menu .menu-item-has-children > a::after { display: none; }
	.ac-menu .sub-menu {
		position: static; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; padding: 0 0 14px;
		opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none;
	}
	.ac-menu .sub-menu a {
		padding: 8px 12px; font-size: 14.5px; color: var(--bar-muted);
		border: 1px solid var(--bar-line); border-radius: 999px;
	}
	.ac-menu .sub-menu a:hover { background: transparent; color: var(--brand); }
}

@media (min-width: 1101px) and (max-width: 1240px) {
	.ac-menu a { padding: 9px 9px; font-size: 14px; }
}

@media (max-width: 1024px) {
	.ac-top { grid-template-columns: 1fr; gap: 8px; }
	.ac-top-side .ac-card--mini:first-child { padding-top: 16px; }
	.ac-main-grid, .ac-article-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.ac-rail-sticky { position: static; }
	.single .ac-rail { display: none; }
	.ac-article { max-width: 760px; margin-inline: auto; width: 100%; }
	.ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	:root { --bar-h: 58px; }
	.ac-brand-text { font-size: 16.5px; }
	.ac-mark { width: 30px; height: 30px; }
	.ac-trending-in { height: 46px; }
	.ac-top { padding: 18px 0 24px; }
	.ac-card--lead .ac-card-body { padding-top: 16px; }
	.ac-card--lead .ac-card-dek { font-size: 16px; }
	.ac-card--row { grid-template-columns: minmax(0, 1fr) 108px; gap: 14px; padding: 18px 0; }
	.ac-card--row .ac-card-media { order: 2; aspect-ratio: 1; border-radius: 8px; }
	.ac-card--row .ac-card-title { font-size: 17.5px; }
	.ac-card--row .ac-card-dek, .ac-card--row .ac-meta > span:last-child { display: none; }
	.ac-card--mini { grid-template-columns: minmax(0, 1fr) 100px; }
	.ac-main-grid { padding-top: 32px; }
	.ac-grid, .ac-grid--3 { grid-template-columns: 1fr; gap: 28px; }
	.ac-cat-section { padding: 32px 0; }
	.ac-listing-lead .ac-card--lead { grid-template-columns: 1fr; gap: 0; }
	.ac-listing-lead .ac-card--lead .ac-card-body { padding-top: 16px; }
	.ac-article-grid { padding-top: 20px; }
	.ac-byline { gap: 12px; }
	.ac-figure { margin-inline: -16px; }
	.ac-figure img { border-radius: 0; }
	.ac-figure figcaption { padding-inline: 16px; }
	.ac-entry { font-size: 17.5px; line-height: 1.72; }
	.ac-entry h2 { font-size: 24px; }
	.ac-entry h3 { font-size: 20px; }
	.ac-entry table { display: block; overflow-x: auto; white-space: nowrap; box-shadow: none; border-radius: 0; }
	.ac-entry .alignleft, .ac-entry .alignright { float: none; margin: 1em auto; }
	.ac-postnav { grid-template-columns: 1fr; }
	.ac-postnav .next { text-align: left; }
	.ac-author { grid-template-columns: 56px minmax(0, 1fr); padding: 18px; }
	.ac-author img { width: 56px; height: 56px; }
	.ac-footer-top { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.ac-header, .ac-rail, .ac-footer, .ac-share, .ac-share-row, .ac-related, .ac-postnav, .ac-progress, .ac-comments { display: none !important; }
	body { background: #fff; color: #000; }
}
