/*
 * Sequoia Academy — public site.
 *
 * Neo-brutalist: hard black borders, flat offset shadows, no gradients.
 * The document is dir="rtl", so in a `flex-direction: row` the FIRST DOM child
 * sits at the RIGHT edge and later children run leftward. Every row here is
 * written with that in mind — do not flip one to row-reverse without
 * re-deriving which physical side each child needs.
 */

/*
 * Fonts are served from this application, not from WordPress. The academy no
 * longer runs inside WordPress at all, so pointing at /wp-content was a
 * dependency on a system that is not in this request path — and one that would
 * break the moment that tree moved.
 *
 * font-display: swap so text is readable while the face downloads; the header
 * and title faces are preloaded in the document head.
 */
@font-face { font-family: 'sequoia-yekan'; src: url('fonts/SEQUOIA-FaNum-Light.woff') format('woff');   font-weight: 300; font-display: swap; }
@font-face { font-family: 'sequoia-yekan'; src: url('fonts/SEQUOIA-FaNum-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'sequoia-yekan'; src: url('fonts/SEQUOIA-FaNum-Medium.woff') format('woff');  font-weight: 500; font-display: swap; }
@font-face { font-family: 'sequoia-yekan'; src: url('fonts/SEQUOIA-FaNum-Bold.woff') format('woff');    font-weight: 700; font-display: swap; }
@font-face { font-family: 'sequoia-yekan'; src: url('fonts/SEQUOIA-FaNum-Heavy.woff') format('woff');   font-weight: 800; font-display: swap; }

/* Beiruti carries the chrome and every heading. */
@font-face { font-family: 'beiruti'; src: url('fonts/Beiruti-Regular.woff2') format('woff2');  font-weight: 400; font-display: swap; }
@font-face { font-family: 'beiruti'; src: url('fonts/Beiruti-Medium.woff2') format('woff2');   font-weight: 500; font-display: swap; }
@font-face { font-family: 'beiruti'; src: url('fonts/Beiruti-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'beiruti'; src: url('fonts/Beiruti-Bold.woff2') format('woff2');     font-weight: 700; font-display: swap; }
@font-face { font-family: 'beiruti'; src: url('fonts/Beiruti-Black.woff2') format('woff2');    font-weight: 900; font-display: swap; }

:root {
	--bg: #f0f0f0;
	--surface: #ffffff;
	--ink: #111111;
	--muted: #5a5a5a;
	--line: #000000;
	--primary: #1f504c;
	--accent: #e06d02;
	--accent-deep: #a84f00;
	--on-brand: #ffffff;
	--khaki: #ffead0;
	--seq-shadow-unified: 2px 3.5px 12px #221f1d17, 2px 2px #221f1d59;
	--radius: 16px;
	--maxw: 1220px;
	--header-h: 72px;
	--header-h-small: 56px;
	--font-body: 'sequoia-yekan', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'beiruti', 'sequoia-yekan', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { min-height: 100dvh; }

body.ac-body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.9;
	/* The footer sits at the bottom on a short page instead of floating
	 * halfway up, without pinning it over the content on a long one. */
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
body.has-adminbar { padding-top: 46px; }

.ac-main { flex: 1 0 auto; }

/* Beiruti carries the chrome and the headings; the Persian body face carries
 * running text, where it reads better at length. */
.ac-header, .ac-footer, .ac-sidebar,
h1, h2, h3, h4, h5,
.ac-brand-text, .ac-section-title, .ac-widget-title,
.ac-card-title, .ac-article-title {
	font-family: var(--font-display);
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ac-shell { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 64px; }
.ac-center { text-align: center; }
.ac-empty { color: var(--muted); }
.ac-section-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }

/* ------------------------------------------------------------------ header */
.ac-header {
	position: relative;
	z-index: 1;
	background: var(--surface);
	border-bottom: 2px solid var(--line);
}
body.has-adminbar .ac-bar { top: 44px; }

.ac-header-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 20px;
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 20px;
}

.ac-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}
.ac-brand-mark {
	width: 34px;
	height: 30px;
	color: var(--primary);
}


.ac-header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.ac-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	cursor: pointer;
	background: var(--surface);
	color: var(--ink);
	border: 2px solid var(--line);
	border-radius: 11px;
}
.ac-icon-btn:hover { background: var(--khaki); }
.ac-icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }

.ac-socials { display: flex; gap: 6px; }
.ac-socials a {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: var(--muted);
}
.ac-socials a:hover { color: var(--primary); background: var(--khaki); }
.ac-social-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


/* ------------------------------------------------------------------ cards */
/*
 * auto-FIT with a capped track, not auto-fill with 1fr. auto-fill leaves empty
 * phantom columns, so a single article rendered as one narrow card stranded
 * against the edge of an otherwise blank row; the cap stops one card from
 * stretching the full width instead, and justify-content centres whatever
 * count there happens to be.
 */
.ac-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
	justify-content: center;
	gap: 20px;
}
.ac-card {
	background: var(--surface); border: 2px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column;
}
.ac-card-media { display: block; aspect-ratio: 16 / 9; background: var(--khaki); }
.ac-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-card-placeholder { display: grid; place-items: center; height: 100%; font-weight: 700; color: var(--primary); }
.ac-card-body { padding: 14px 16px 16px; }
.ac-card-title { font-size: 16px; margin: 0 0 8px; line-height: 1.6; }
.ac-card-title a { text-decoration: none; }
.ac-card-excerpt { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.ac-card-meta { margin: 0; font-size: 11px; color: var(--muted); display: flex; gap: 12px; }

.ac-page-head { margin-bottom: 26px; }
.ac-page-head h1 { font-size: 28px; margin: 0 0 6px; }
.ac-page-head p { margin: 0; color: var(--muted); }

/* ----------------------------------------------------------------- article */
.ac-article { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; }
.ac-breadcrumb { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-breadcrumb a { text-decoration: none; }
.ac-preview-note { background: var(--khaki); border: 2px dashed var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.ac-article-title { font-size: 32px; line-height: 1.5; margin: 0 0 8px; }
.ac-article-subtitle { font-size: 17px; color: var(--muted); margin: 0 0 14px; }
.ac-article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.ac-article-hero { margin: 20px 0; }
.ac-article-hero img { width: 100%; border: 0; border-radius: 12px; display: block; }
.ac-article-hero figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ac-article-body { font-size: 17px; line-height: 2.1; }
.ac-article-body h2 { font-size: 22px; margin: 32px 0 12px; }
.ac-article-body h3 { font-size: 19px; margin: 26px 0 10px; }
.ac-article-body img { border: 0; border-radius: 0; }
.ac-article-body blockquote { margin: 20px 0; padding: 12px 18px; border: 2px solid var(--line); background: var(--khaki); border-radius: 8px; }
.ac-article-body a { color: var(--primary); }
.ac-article-body pre { background: #111; color: #eee; padding: 14px; border-radius: 10px; overflow-x: auto; }
.ac-toc { background: var(--khaki); border: 2px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 22px 0; }
.ac-toc h2 { font-size: 15px; margin: 0 0 8px; }
.ac-toc ol { margin: 0; padding-inline-start: 20px; font-size: 14px; }
.ac-toc a { text-decoration: none; }
.ac-toc-3 { margin-inline-start: 14px; font-size: 13px; }
.ac-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.ac-tags a { font-size: 12px; padding: 4px 10px; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--bg); }
.ac-related { margin-top: 40px; }

.ac-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.ac-pagination a { box-shadow: var(--seq-shadow-unified) !important; padding: 6px 12px; border: 2px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--surface); font-size: 13px; }
.ac-pagination a.is-current, .ac-pagination a:active { background: var(--primary); color: var(--on-brand); box-shadow: none !important; transform: translateY(1px); }

.ac-btn {
	display: inline-block; font: inherit; font-size: 14px; font-weight: 500;
	padding: 9px 18px; cursor: pointer; text-decoration: none;
	border: 2px solid var(--line); border-radius: 10px;
	background: var(--surface); color: var(--ink);
}
.ac-btn { box-shadow: var(--seq-shadow-unified) !important; }
.ac-btn:active { box-shadow: none !important; transform: translateY(1px); }
.ac-btn--primary { background: var(--primary); color: var(--on-brand); }
.ac-btn[disabled] { opacity: .55; cursor: progress; box-shadow: none !important; }

/* ------------------------------------------------------- rating + comments */
.ac-engage { margin-top: 40px; display: grid; gap: 26px; }
.ac-rating {
	background: var(--khaki); border: 2px solid var(--line); border-radius: var(--radius);
	 padding: 18px 22px;
	display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ac-rating-summary { display: flex; align-items: center; gap: 14px; }
.ac-rating-avg {
	font-size: 32px; font-weight: 700; line-height: 1; min-width: 62px; text-align: center;
	padding: 10px 6px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
}
.ac-rating-count { display: block; font-size: 12px; color: var(--muted); }
.ac-stars { display: flex; gap: 4px; margin-inline-start: auto; }
.ac-star { background: none; border: none; padding: 2px; line-height: 0; cursor: pointer; color: #cfcfcf; transition: transform .12s, color .12s; }
.ac-star svg { width: 30px; height: 30px; fill: currentColor; }
.ac-star.is-on, .ac-star.is-hover { color: var(--accent); }
.ac-star.is-mine { color: #c85f00; }
.ac-star:not(:disabled):hover { transform: scale(1.12); }
.ac-star:disabled { cursor: default; }
.ac-rating-note { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); }
.ac-rating-note a { color: var(--primary); font-weight: 700; }

.ac-comments-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ac-comments-head .ac-section-title { margin: 0; }
.ac-sort { margin-inline-start: auto; }
.ac-sort select { font: inherit; font-size: 13px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); }

.c-list, .c-replies { list-style: none; margin: 0; padding: 0; }
.c-replies { margin-top: 14px; padding-inline-end: 22px; border-inline-end: 2px dashed rgba(0,0,0,.18); }
.c-item { margin-bottom: 16px; }
.c-body { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.c-item.is-pending > .c-body { border-style: dashed; background: #fffdf5; }
.c-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.c-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); object-fit: cover; flex: 0 0 auto; background: var(--khaki); }
.c-avatar--initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.c-author { font-weight: 700; font-size: 14px; }
.c-badge { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; font-size: 10px; font-weight: 700; border-radius: 999px; background: var(--primary); color: var(--on-brand); }
.c-date, .c-edited { font-size: 11px; color: var(--muted); margin-inline-start: 8px; }
.c-pending { margin: 0 0 8px; font-size: 12px; color: #8a5a00; }
.c-content { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.c-content p { margin: 0 0 10px; }
.c-content p:last-child { margin-bottom: 0; }
.c-content a { color: var(--primary); }
.c-removed { color: var(--muted); font-style: italic; }
.c-media img { max-width: min(320px, 100%); border: 2px solid var(--line); border-radius: 12px; display: block; margin-top: 10px; }
.c-embed { margin-top: 12px; position: relative; padding-top: 56.25%; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.c-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.c-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.c-vote { font: inherit; font-size: 12px; font-weight: 700; padding: 4px 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.c-vote.is-static { cursor: default; opacity: .7; }
.c-vote.is-on { background: var(--primary); color: var(--on-brand); border-color: var(--primary); }
.c-link { font: inherit; font-size: 12px; font-weight: 700; background: none; border: none; padding: 4px 2px; color: var(--primary); cursor: pointer; }
.c-link:hover { text-decoration: underline; }
.c-link.is-danger { color: #b42318; }

.c-form { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; }
.c-form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.c-form textarea { width: 100%; font: inherit; font-size: 15px; line-height: 1.8; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); resize: vertical; min-height: 92px; }
.c-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.c-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.c-tool { font-size: 17px; line-height: 1; padding: 6px 9px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.c-tool:hover { background: var(--khaki); }
.c-counter { font-size: 11px; color: var(--muted); margin-inline-start: auto; }
.c-emoji { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); }
.c-emoji button { font-size: 20px; background: none; border: none; padding: 4px; cursor: pointer; border-radius: 8px; }
.c-emoji button:hover { background: var(--khaki); }
.c-attach { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; overflow-wrap: anywhere; }
.c-attach img { width: 62px; height: 62px; object-fit: cover; border: 2px solid var(--line); border-radius: 10px; }
.c-attach button { font: inherit; font-size: 12px; background: none; border: none; color: #b42318; cursor: pointer; font-weight: 700; }

.ac-gate { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; text-align: center; padding: 26px 20px; margin-bottom: 22px; background: var(--khaki); border: 2px dashed var(--line); border-radius: var(--radius); }
.ac-gate p { margin: 0; font-size: 15px; }
.ac-more { width: 100%; }

.ac-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.2); border-top-color: var(--ink); border-radius: 50%; animation: ac-spin .7s linear infinite; vertical-align: -2px; }
@keyframes ac-spin { to { transform: rotate(360deg); } }

.ac-toast {
	position: fixed; inset-inline-start: 24px; bottom: 24px; z-index: 9999;
	max-width: min(400px, calc(100vw - 48px)); padding: 13px 18px; font-size: 14px;
	background: var(--primary); color: var(--on-brand);
	border: 2px solid #000; border-radius: 12px;
	animation: ac-toast-in .18s ease-out;
}
.ac-toast.is-bad { background: #b42318; }
@keyframes ac-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- adminbar */
.ac-adminbar {
	position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 9998;
	background: #14181c; color: #e9edf0; font-size: 13px;
	border-bottom: 2px solid #000;
}
.ac-adminbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 4px; height: 44px; overflow-x: auto; }
.ac-adminbar a, .ac-adminbar button {
	font: inherit; font-size: 13px; color: #e9edf0; text-decoration: none;
	background: none; border: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.ac-adminbar a:hover, .ac-adminbar button:hover { background: rgba(255,255,255,.12); }
.ac-adminbar-brand { font-weight: 700; color: var(--accent); padding-inline-end: 10px; }
.ac-adminbar-badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.ac-adminbar-spacer { margin-inline-start: auto; }
.ac-adminbar-user { color: #9aa4ad; padding: 0 8px; white-space: nowrap; }

.ac-seo-panel { background: #1b2026; border-top: 1px solid rgba(255,255,255,.12); padding: 16px; }
.ac-seo-panel form { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 10px; }
.ac-seo-panel h3 { margin: 0; font-size: 14px; color: #e9edf0; }
.ac-seo-panel label { display: grid; gap: 4px; font-size: 12px; color: #9aa4ad; }
.ac-seo-panel input, .ac-seo-panel textarea {
	font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px;
	border: 1px solid rgba(255,255,255,.18); background: #10151a; color: #e9edf0;
}
.ac-seo-switches { display: flex; gap: 18px; flex-wrap: wrap; }
.ac-seo-switches label { flex-direction: row; align-items: center; gap: 6px; color: #e9edf0; }
.ac-seo-actions { display: flex; align-items: center; gap: 10px; }
.ac-seo-actions .ac-btn { border-color: rgba(255,255,255,.2); background: #10151a; color: #e9edf0; }
.ac-seo-actions .ac-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ac-seo-actions span { font-size: 12px; color: #9aa4ad; }

/* ------------------------------------------------------------------ footer */
.ac-footer { border-top: 2px solid var(--line); background: var(--primary); color: #fff; margin-top: 48px; }
.ac-footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 38px 20px 30px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
	gap: 34px;
	align-items: start;
}
.ac-footer-brandcol .ac-brand { font-size: 19px; color: #fff; }
.ac-footer-tagline { margin: 12px 0 16px; font-size: 13.5px; color: #ffead0; line-height: 1.9; max-width: 34ch; }
.ac-socials--footer a { border: 2px solid var(--line); background: var(--khaki); color: var(--primary); box-shadow: var(--seq-shadow-unified) !important; }
.ac-socials--footer a:hover { background: var(--khaki); color: var(--primary); }
.ac-socials--footer a:active { box-shadow: none !important; transform: translateY(1px); }
.ac-social-icon--fill { fill: currentColor; stroke: none; }

.ac-footer-col h2 { font-size: 13px; font-weight: 700; margin: 0 0 12px; color: #ffead0; letter-spacing: .04em; text-transform: uppercase; }
.ac-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ac-footer-col a { font-size: 13.5px; color: #f3f4f6; text-decoration: none; }
.ac-footer-col a:hover { color: #fff; }

.ac-footer-cta { background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 18px; }
.ac-footer-cta h2 { color: #ffead0 !important; }
.ac-footer-cta p { margin: 0 0 14px; font-size: 13px; line-height: 1.9; color: #f3f4f6; }
.ac-footer-cta .ac-btn { width: 100%; text-align: center; background: var(--khaki); color: var(--primary); }
.ac-footer-cta .ac-btn:hover { background: var(--accent); color: #fff; }
.ac-footer-signout { display: inline-block; margin-top: 10px; font-size: 12px; color: #ffead0; }

.ac-footer-base {
	border-top: 1px solid rgba(255,255,255,.1);
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 14px 20px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 14px;
	font-size: 12.5px;
	color: #ffead0;
}
.ac-footer-credit { text-align: center; font-size: 11px; color: #ffead0; }
.ac-footer-credit a { color: inherit; text-decoration: none; }
.ac-footer-credit a:hover { color: #fff; }
.ac-totop-wrap { display: flex; justify-content: flex-end; }
.ac-totop {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	font: inherit; font-size: 12.5px; color: #ffead0;
	background: none; border: none; padding: 4px 6px; border-radius: 8px;
}
.ac-totop:hover { color: #fff; background: rgba(255,255,255,.08); }
.ac-totop svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
	.ac-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
	.ac-footer-brandcol, .ac-footer-cta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.ac-footer-inner { grid-template-columns: 1fr; }
	.ac-footer-base { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------ term archive */
.ac-term-cover { margin: 16px 0 0; }
.ac-term-cover img { width: 100%; max-height: 260px; object-fit: cover; border: 2px solid var(--line); border-radius: var(--radius); display: block; }
.ac-subterms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ac-subterms a {
	font-size: 13px; padding: 6px 13px; text-decoration: none;
	background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
}
.ac-subterms a { box-shadow: var(--seq-shadow-unified) !important; }
.ac-subterms a:hover { background: var(--khaki); }
.ac-subterms a:active { box-shadow: none !important; transform: translateY(1px); }

/* The category's own writing, below its article list. */
.ac-term-body {
	margin-top: 40px;
	padding: 26px 28px;
	background: var(--surface);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	
	font-size: 16px;
	line-height: 2.05;
}
.ac-term-body > :first-child { margin-top: 0; }
.ac-term-body > :last-child { margin-bottom: 0; }
.ac-term-body h2 { font-size: 21px; margin: 26px 0 10px; }
.ac-term-body h3 { font-size: 18px; margin: 22px 0 8px; }
.ac-term-body a { color: var(--primary); }
.ac-term-body img { border: 2px solid var(--line); border-radius: 12px; }

@media (max-width: 640px) {
	.ac-shell { padding: 20px 14px 48px; }
	.ac-article { padding: 18px; }
	.ac-article-title { font-size: 24px; }
	.ac-stars { margin-inline-start: 0; }
	.c-replies { padding-inline-end: 12px; }
	.ac-search { width: 100%; }
	.ac-search input { flex: 1; }
}

/* ---------------------------------------------------------------------------
 * Sign-in modal.
 *
 * The iframe is the app's own /login screen, not a copy of it — the app allows
 * exactly this origin to frame that one route. So there is no second auth UI to
 * keep in sync, and whatever the app's form becomes, this shows.
 * ------------------------------------------------------------------------- */
.ac-authmodal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(12, 16, 20, .62);
	backdrop-filter: blur(3px);
	animation: ac-fade .16s ease-out;
}
.ac-authmodal[hidden] { display: none; }
@keyframes ac-fade { from { opacity: 0; } to { opacity: 1; } }

.ac-authmodal-inner {
	position: relative;
	width: min(430px, 100%);
	height: min(660px, calc(100vh - 40px));
	background: var(--surface);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	
	overflow: hidden;
}
.ac-authmodal iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.ac-authmodal-close {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	background: var(--surface);
	color: var(--ink);
	border: 2px solid var(--line);
	border-radius: 9px;
}
.ac-authmodal-close:hover { background: var(--khaki); }
.ac-authmodal-loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	gap: 10px;
	background: var(--surface);
	color: var(--muted);
	font-size: 13px;
}

/* ===========================================================================
 * Two-column shell, sidebar, search overlay, share row, FAQ, audio, embeds.
 * ======================================================================== */

/*
 * Sidebar on the right. The document is dir="rtl", so grid column 1 is the
 * RIGHT-hand column — the sidebar is placed there explicitly rather than by
 * reordering the markup, which keeps the article first in the DOM for readers
 * and crawlers.
 */
.ac-shell--split {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 30px;
	align-items: start;
	max-width: 1500px;
}
.ac-col-main { min-width: 0; grid-column: 2; }
.ac-shell--split > .ac-sidebar { grid-column: 1; grid-row: 1; }

/* ---------------------------------------------------------------- sidebar */
.ac-sidebar { display: grid; gap: 18px; align-self: start; }

.ac-widget {
	background: var(--surface);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	
	padding: 16px 18px;
}
.ac-widget-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.ac-widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ac-widget-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,.12); }
.ac-widget-list li:last-child { border-bottom: none; }
.ac-widget-list a { text-decoration: none; }
.ac-widget-list a:hover { color: var(--accent); }
.ac-widget-count { margin-inline-start: auto; font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 8px; }

.ac-widget-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ac-widget-posts a { display: flex; gap: 10px; text-decoration: none; align-items: center; }
.ac-widget-posts img, .ac-widget-thumb {
	width: 56px; height: 56px; flex: 0 0 auto; object-fit: cover;
	border: 2px solid var(--line); border-radius: 10px; background: var(--khaki);
}
.ac-widget-posts b { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; }
.ac-widget-posts small { font-size: 11px; color: var(--muted); }

.ac-widget-ranked { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: rank; }
.ac-widget-ranked li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.ac-widget-ranked a { text-decoration: none; line-height: 1.7; }
.ac-rank {
	flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center;
	font-size: 12px; font-weight: 700; border-radius: 8px;
	background: var(--primary); color: var(--on-brand);
}

.ac-widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-widget-tags a {
	font-size: 12px; padding: 3px 9px; text-decoration: none;
	border: 2px solid var(--line); border-radius: 999px; background: var(--bg);
}
.ac-widget-tags a:hover { background: var(--khaki); }

.ac-widget--cta { background: var(--khaki); }
.ac-widget--cta p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.9; }

/* --------------------------------------------------------- search overlay */
.ac-search-root { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: start center; padding: 12vh 16px 16px; }
.ac-search-root[hidden] { display: none; }
.ac-search-glass { position: absolute; inset: 0; background: rgba(12,16,20,.55); backdrop-filter: blur(3px); }
.ac-search-panel {
	position: relative;
	width: min(680px, 100%);
	max-height: 74vh;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	
	overflow: hidden;
}
.ac-search-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 2px solid var(--line); }
.ac-search-mark { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 2.1; stroke-linecap: round; }
.ac-search-field input {
	flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 4px 0;
	border: 0; background: none; color: var(--ink); outline: none;
}
.ac-search-close {
	font: inherit; font-size: 11px; padding: 4px 9px; cursor: pointer;
	border: 2px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted);
}
.ac-search-results { overflow-y: auto; padding: 8px; }
.ac-search-empty { margin: 0; padding: 26px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.ac-search-group + .ac-search-group { margin-top: 10px; }
.ac-search-group-head { font-size: 11px; color: var(--muted); padding: 6px 10px; letter-spacing: .04em; }
.ac-search-row {
	display: flex; align-items: center; gap: 12px; padding: 9px 10px;
	border-radius: 12px; text-decoration: none; color: inherit;
}
.ac-search-row:hover, .ac-search-row.is-active { background: var(--khaki); }
.ac-search-row-icon {
	width: 42px; height: 42px; flex: 0 0 auto; object-fit: cover;
	border: 2px solid var(--line); border-radius: 10px; background: var(--bg);
	display: grid; place-items: center; font-weight: 700;
}
.ac-search-row-text { min-width: 0; }
.ac-search-row-text b { display: block; font-size: 14px; font-weight: 600; }
.ac-search-row-text small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-search-row-meta { margin-inline-start: auto; font-size: 11px; color: var(--muted); }
.ac-search-foot { border-top: 2px solid var(--line); padding: 8px 14px; font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.ac-search-foot kbd { border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 10px; background: var(--bg); }

/* ------------------------------------------------------------ audio / embeds */
.ac-audio { margin: 20px 0; padding: 14px 16px; background: var(--khaki); border: 2px solid var(--line); border-radius: var(--radius); }
.ac-audio figcaption { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ac-audio audio { width: 100%; }

.ac-embeds { margin-top: 34px; }
.ac-embed { margin: 0 0 18px; }
.ac-embed figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ac-embed .c-embed, .ac-embed .ac-embed-frame {
	position: relative; padding-top: 56.25%;
	border: 2px solid var(--line); border-radius: 12px; overflow: hidden;
}
.ac-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------- FAQ */
.ac-faq { margin-top: 34px; }
.ac-faq-list { display: grid; gap: 10px; }
.ac-faq-item {
	background: var(--surface); border: 2px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
}
.ac-faq-item summary {
	list-style: none; cursor: pointer; padding: 14px 18px;
	font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 12px;
}
.ac-faq-item summary::-webkit-details-marker { display: none; }
.ac-faq-mark {
	margin-inline-start: auto; flex: 0 0 auto; width: 20px; height: 20px; position: relative;
}
.ac-faq-mark::before, .ac-faq-mark::after {
	content: ''; position: absolute; inset-inline-start: 3px; top: 9px;
	width: 14px; height: 2.5px; background: var(--ink); border-radius: 2px;
	transition: transform .18s ease;
}
.ac-faq-mark::after { transform: rotate(90deg); }
.ac-faq-item[open] .ac-faq-mark::after { transform: rotate(0); }
.ac-faq-item[open] summary { background: var(--khaki); }
.ac-faq-answer { padding: 4px 18px 16px; font-size: 15px; line-height: 2; }
.ac-faq-answer p:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ share */
.ac-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 2px solid var(--line); }
.ac-share-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-inline-end: 4px; }
.ac-share-btn {
	display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
	cursor: pointer; text-decoration: none;
	background: var(--surface); color: var(--ink);
	border: 2px solid var(--line); border-radius: 11px;
}
.ac-share-btn { box-shadow: var(--seq-shadow-unified) !important; }
.ac-share-btn:hover { background: var(--khaki); }
.ac-share-btn:active, .ac-share-btn.is-done { box-shadow: none !important; transform: translateY(1px); }
.ac-share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ac-share-btn.is-done { background: var(--primary); color: var(--on-brand); border-color: var(--primary); }
.ac-share-btn.is-failed { background: #b42318; color: #fff; border-color: #b42318; }

/* -------------------------------------------------------- comment toolbar */
.c-tool { display: inline-grid; place-items: center; width: 36px; height: 34px; }
.c-tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1060px) {
	.ac-shell--split { grid-template-columns: minmax(0, 1fr); }
	.ac-col-main, .ac-shell--split > .ac-sidebar { grid-column: 1; }
	.ac-shell--split > .ac-sidebar { grid-row: auto; }
}

.ac-page-head--blog { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.ac-page-head--blog h1 { font-size: 34px; line-height: 1.4; }
.ac-page-head--blog p { max-width: 62ch; font-size: 15px; }
.ac-page-head--blog .ac-breadcrumb { margin-bottom: 10px; }
.ac-page-count { margin-top: 8px !important; font-size: 13px !important; font-weight: 500; color: var(--primary) !important; }

.ac-topics { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.ac-topic {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
	font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
	padding: 6px 14px; background: var(--surface); color: var(--ink);
	border: 2px solid var(--line); border-radius: 999px;
	box-shadow: var(--seq-shadow-unified) !important;
}
.ac-topic span { font-size: 11px; color: var(--muted); }
.ac-topic:hover { background: var(--khaki); }
.ac-topic.is-active, .ac-topic:active { background: var(--primary); color: var(--on-brand); box-shadow: none !important; transform: translateY(1px); }
.ac-topic.is-active span, .ac-topic:active span { color: var(--on-brand); opacity: .8; }

.ac-feed { display: grid; gap: 18px; }
.ac-post {
	display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0;
	background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.ac-post-media { display: block; background: var(--khaki); min-height: 100%; position: relative; }
.ac-post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-post-media .ac-card-placeholder { position: absolute; inset: 0; }
.ac-post-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-post-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.ac-post-topic {
	font-size: 12px; font-weight: 600; text-decoration: none; color: var(--primary);
	background: var(--khaki); border: 1.5px solid var(--line); border-radius: 999px; padding: 1px 11px;
	box-shadow: var(--seq-shadow-unified) !important;
}
.ac-post-topic:active { box-shadow: none !important; transform: translateY(1px); }
.ac-post-flag { font-size: 11.5px; font-weight: 700; color: var(--on-brand); background: var(--accent); border-radius: 999px; padding: 1px 10px; }
.ac-post-title { margin: 0; font-size: 20px; line-height: 1.65; }
.ac-post-title a { text-decoration: none; color: inherit; }
.ac-post-title a:hover { color: var(--primary); }
.ac-post-excerpt { margin: 0; font-size: 14.5px; line-height: 2; color: var(--muted); }
.ac-post-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ac-post-meta { margin: 0; display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ac-post-meta span + span::before { content: '·'; margin-inline-end: 14px; color: var(--muted); }
.ac-post-more {
	display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600;
	color: var(--primary); text-decoration: none;
}
.ac-post-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.ac-post-more:hover svg { transform: translateX(-3px); }

.ac-post--lead { grid-template-columns: minmax(0, 1fr); }
.ac-post--lead .ac-post-media { min-height: 0; aspect-ratio: 16 / 8; }
.ac-post--lead .ac-post-body { padding: 22px 26px 24px; gap: 10px; }
.ac-post--lead .ac-post-title { font-size: 28px; line-height: 1.6; }
.ac-post--lead .ac-post-excerpt { font-size: 16px; }

.ac-empty-state { text-align: center; padding: 48px 20px; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); }
.ac-empty-state p { margin: 0 0 14px; color: var(--muted); }

.ac-pagination { margin-top: 28px; }
.ac-pagination a[aria-current="page"] { pointer-events: none; }
.ac-pagination-step { font-weight: 600; padding-inline: 18px !important; }

@media (max-width: 720px) {
	.ac-page-head--blog h1 { font-size: 26px; }
	.ac-post { grid-template-columns: minmax(0, 1fr); }
	.ac-post-media { min-height: 0; aspect-ratio: 16 / 9; }
	.ac-post-body { padding: 14px 16px 16px; }
	.ac-post-title { font-size: 18px; }
	.ac-post--lead .ac-post-title { font-size: 22px; }
	.ac-post--lead .ac-post-media { aspect-ratio: 16 / 9; }
	.ac-post--lead .ac-post-body { padding: 16px; }
	.ac-topics { margin-inline: -14px; padding-inline: 14px; }
}

.ac-btn--accent { background: var(--accent); color: var(--on-brand); }
.ac-col-main--wide { grid-column: auto; }

.ac-home { padding-bottom: 72px; }
.ac-home-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.ac-section { margin-top: 56px; }

.ac-ticker { background: var(--ink); color: #fff; }
.ac-ticker-inner { display: flex; align-items: center; gap: 14px; height: 40px; }
.ac-ticker-label { flex: none; font-size: 12.5px; font-weight: 700; color: var(--on-brand); background: var(--accent-deep); border-radius: 6px; padding: 1px 12px; }
.ac-ticker-list { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.ac-ticker-item { position: absolute; inset: 0; display: flex; align-items: center; font-size: 13.5px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; pointer-events: none; }
.ac-ticker-item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ac-ticker-item:hover { color: var(--khaki); }


.ac-hero { position: relative; }
.ac-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 2px solid var(--line); border-radius: var(--radius); background: var(--primary); }
.ac-hero-track::-webkit-scrollbar { display: none; }
.ac-hero-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ac-hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.ac-hero--lg .ac-hero-slide { min-height: 490px; }
.ac-hero--sm .ac-hero-slide { min-height: 360px; }
.ac-hero-media { position: absolute; inset: 0; display: block; }
.ac-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-hero-media::after, .ac-mini-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 24, 22, .92) 0%, rgba(8, 24, 22, .5) 48%, rgba(8, 24, 22, .08) 100%); }
.ac-hero-fallback { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: 64px; font-weight: 900; color: rgba(255, 255, 255, .14); }
.ac-hero-body { position: relative; z-index: 1; padding: 30px 36px 82px; max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ac-hero--sm .ac-hero-body { padding: 22px 26px 68px; gap: 8px; }
.ac-hero-title { margin: 0; font-size: 34px; line-height: 1.55; color: #fff; }
.ac-hero--sm .ac-hero-title { font-size: 21px; line-height: 1.65; }
.ac-hero-title a { color: inherit; text-decoration: none; }
.ac-hero-body { pointer-events: none; }
.ac-hero-body a { pointer-events: auto; }
.ac-hero-slide { cursor: pointer; }
.ac-hero-excerpt { margin: 0; font-size: 15.5px; line-height: 2; color: rgba(255, 255, 255, .9); }
.ac-hero-meta { margin: 0; display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.ac-hero-meta span + span::before { content: '·'; margin-inline-end: 14px; }
.ac-hero-controls { position: absolute; bottom: 20px; inset-inline-end: 24px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.ac-hero--sm .ac-hero-controls { bottom: 14px; inset-inline-end: 16px; }
.ac-hero-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 12px; box-shadow: var(--seq-shadow-unified) !important; }
.ac-hero--sm .ac-hero-btn { width: 34px; height: 34px; border-radius: 10px; }
.ac-hero-btn:active { box-shadow: none !important; transform: translateY(1px); }
.ac-hero-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ac-hero-btn .ac-i-play { display: none; fill: currentColor; }
.ac-hero-pause[aria-pressed="true"] .ac-i-pause { display: none; }
.ac-hero-pause[aria-pressed="true"] .ac-i-play { display: block; }
.ac-hero-dots { display: flex; align-items: center; gap: 0; padding: 0; }
.ac-hero-dot { position: relative; width: 24px; height: 24px; padding: 0; cursor: pointer; background: none; border: 0; box-shadow: none; transition: width .2s; }
.ac-hero-dot::before { content: ""; position: absolute; top: 50%; left: 50%; box-sizing: border-box; width: 12px; height: 12px; transform: translate(-50%, -50%); background: var(--surface); border: 2px solid var(--line); border-radius: 999px; box-shadow: var(--seq-shadow-unified) !important; transition: width .2s; }
.ac-hero-dot.is-active { width: 40px; }
.ac-hero-dot.is-active::before { width: 28px; background: var(--accent); box-shadow: none !important; transform: translate(-50%, calc(-50% + 1px)); }

.ac-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 238px); gap: 14px; margin-top: 10px; }
.ac-mosaic > .ac-hero, .ac-mosaic > .ac-mosaic-empty { grid-column: span 2; grid-row: span 2; min-width: 0; }
.ac-mosaic .ac-hero-track, .ac-mosaic .ac-hero-slide { height: 100%; }
.ac-mosaic--solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.ac-mosaic--solo > .ac-hero, .ac-mosaic--solo > .ac-mosaic-empty { grid-column: auto; grid-row: auto; }
.ac-mosaic-empty { display: grid; }
.ac-mosaic-empty .ac-empty-block { height: 100%; }

.ac-mini { position: relative; display: flex; align-items: flex-end; min-height: 0; overflow: hidden; color: #fff; background: var(--primary); border: 2px solid var(--line); border-radius: 14px; }
.ac-mini-media { position: absolute; inset: 0; display: block; }
.ac-mini-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-mini-media::after { background: linear-gradient(0deg, rgba(8, 24, 22, .9) 0%, rgba(8, 24, 22, .35) 60%, rgba(8, 24, 22, 0) 100%); }
.ac-mini-media .ac-hero-fallback { font-size: 34px; }
.ac-mini-body { position: relative; z-index: 1; padding: 12px 14px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ac-mini-body h3 { margin: 0; font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-mini-body h3 a { color: #fff; text-decoration: none; }
.ac-mini-body small { font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.ac-mini--big { min-height: 300px; }
.ac-mini--big .ac-mini-body { padding: 20px 24px 22px; gap: 8px; }
.ac-mini--big .ac-mini-body h3 { font-size: 24px; line-height: 1.65; }
.ac-mini--empty { background: var(--surface); color: var(--ink); }
.ac-mini--empty .ac-empty-block { width: 100%; }

.ac-play { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); border: 2px solid var(--line); border-radius: 999px; }
.ac-play svg { width: 16px; height: 16px; fill: #fff; margin-inline-start: 2px; }
.ac-mini--big .ac-play { width: 56px; height: 56px; top: 50%; inset-inline-start: 50%; transform: translate(50%, -50%); }
.ac-mini--big .ac-play svg { width: 24px; height: 24px; }
.ac-tile-media .ac-play, .ac-row-media .ac-play { top: 8px; inset-inline-start: 8px; width: 30px; height: 30px; }
.ac-row-media .ac-play { top: 50%; inset-inline-start: 50%; transform: translate(50%, -50%); width: 28px; height: 28px; }

.ac-empty-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; padding: 22px 16px; text-align: center; background: var(--surface); border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); }
.ac-empty-block svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.ac-empty-block p { margin: 0; font-size: 13.5px; }

.ac-block-head { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-bottom: 18px; }
.ac-block-head::after { content: ''; order: 2; flex: 1 1 40px; height: 2px; background: var(--line); opacity: .85; min-width: 40px; }
.ac-block-title { order: 0; margin: 0; font-size: 23px; line-height: 1.5; display: flex; align-items: center; gap: 10px; }
.ac-block-title::before { content: ''; width: 8px; height: 24px; background: var(--accent); border: 2px solid var(--line); border-radius: 4px; flex: none; }
.ac-block-title a, .ac-block-title span { color: inherit; text-decoration: none; }
.ac-block-title a:hover { color: var(--primary); }
.ac-tabs { order: 1; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ac-tab { font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 4px 14px; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; box-shadow: var(--seq-shadow-unified) !important; }
.ac-tab:hover { background: var(--khaki); }
.ac-tab[aria-selected="true"], .ac-tab:active { background: var(--primary); color: var(--on-brand); box-shadow: none !important; transform: translateY(1px); }
.ac-block-all { order: 3; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.ac-block-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ac-box { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 24px 24px; }
.ac-box--dark { background: var(--primary); color: #fff; }
.ac-box--dark .ac-block-title, .ac-box--dark .ac-block-title a { color: #fff; }
.ac-box--dark .ac-block-head::after { background: rgba(255, 255, 255, .35); }
.ac-box--dark .ac-block-all { color: var(--khaki); }
.ac-box--dark .ac-tab[aria-selected="true"], .ac-box--dark .ac-tab:active { background: var(--accent-deep); }
.ac-box--dark .ac-row-body h3 a { color: #fff; }
.ac-box--dark .ac-row-body small { color: rgba(255, 255, 255, .7); }
.ac-box--dark .ac-row + .ac-row { border-top-color: rgba(255, 255, 255, .22); }
.ac-box--dark .ac-empty-block { background: transparent; border-color: rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .75); }

.ac-block-body { display: flex; gap: 22px; align-items: stretch; }
.ac-block-body > .ac-hero { flex: 1.4 1 0; min-width: 0; }
.ac-block-body .ac-hero-track, .ac-block-body .ac-hero-slide { height: 100%; }
.ac-block-body--solo > .ac-hero { flex: 1 1 100%; }
.ac-block-body > .ac-rows { flex: 1 1 0; min-width: 0; }

.ac-rows { display: flex; flex-direction: column; }
.ac-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; flex: 1; }
.ac-row + .ac-row { border-top: 1px dashed rgba(0, 0, 0, .25); }
.ac-row:first-child { padding-top: 0; }
.ac-row:last-child { padding-bottom: 0; }
.ac-row-media { position: relative; display: block; width: 104px; aspect-ratio: 4 / 3; background: var(--khaki); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.ac-row-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-row-media .ac-card-placeholder { position: absolute; inset: 0; font-size: 12px; }
.ac-row-body h3 { margin: 0 0 3px; font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-row-body h3 a { color: inherit; text-decoration: none; }
.ac-row-body h3 a:hover { color: var(--primary); }
.ac-row-body small { font-size: 11.5px; color: var(--muted); }
.ac-rows--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); }
.ac-rows--cols .ac-row:first-child, .ac-rows--cols .ac-row:last-child { padding: 12px 0; }

.ac-strip { position: relative; }
.ac-strip-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.ac-strip-track::-webkit-scrollbar { display: none; }
.ac-strip-track > .ac-tile { flex: 0 0 calc((100% - 48px) / 4); min-width: 220px; scroll-snap-align: start; }
.ac-strip-btn { position: absolute; top: 34%; z-index: 2; }
.ac-strip-btn--next { inset-inline-end: -14px; }
.ac-strip-btn--prev { inset-inline-start: -14px; }

.ac-tile { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.ac-tile-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--khaki); }
.ac-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-tile-media .ac-card-placeholder { position: absolute; inset: 0; }
.ac-tile-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; color: var(--ink); }
.ac-tile-topic { font-size: 11.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.ac-tile-title { margin: 0; font-size: 15px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-tile-title a { color: inherit; text-decoration: none; }
.ac-tile-title a:hover { color: var(--primary); }
.ac-tile-meta { margin: auto 0 0; padding-top: 4px; display: flex; gap: 10px; font-size: 11.5px; color: var(--muted); }

.ac-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.ac-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-path { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 40px; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--seq-shadow-unified) !important; }
.ac-path:hover { background: var(--khaki); }
.ac-path:active { box-shadow: none !important; transform: translateY(1px); }
.ac-path-num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.ac-path b { font-size: 15.5px; line-height: 1.7; }
.ac-path small { font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.ac-path svg { position: absolute; bottom: 12px; inset-inline-end: 16px; width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ac-path--app { background: var(--primary); color: #fff; }
.ac-path--app:hover { background: var(--primary); }
.ac-path--app .ac-path-num { color: var(--khaki); }
.ac-path--app small { color: rgba(255, 255, 255, .85); }
.ac-path--app svg { stroke: #fff; }

.ac-block-all--plain { order: 4; }

.ac-media-band { margin-top: 56px; padding: 34px 0 38px; background: var(--primary); color: #fff; border-block: 2px solid var(--line); }
.ac-media-band .ac-block-title, .ac-media-band .ac-block-title a { color: #fff; }
.ac-media-band .ac-block-head::after { background: rgba(255, 255, 255, .35); }
.ac-media-band .ac-block-all { color: var(--khaki); }
.ac-media-band .ac-row-body h3 a { color: #fff; }
.ac-media-band .ac-row-body small { color: rgba(255, 255, 255, .7); }
.ac-media-band .ac-row + .ac-row { border-top-color: rgba(255, 255, 255, .22); }
.ac-media-band .ac-empty-block { background: transparent; border-color: rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .75); }
.ac-media-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.ac-media-grid--solo { grid-template-columns: minmax(0, 1fr); }
.ac-media-feature .ac-mini { height: 100%; min-height: 360px; }
.ac-rows--playlist { background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 8px 16px; }
.ac-rows--playlist .ac-row:first-child, .ac-rows--playlist .ac-row:last-child { padding: 12px 0; }

.ac-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ac-widget-box .ac-block-title { font-size: 19px; }
.ac-widget-box .ac-block-head { margin-bottom: 14px; }
.ac-widget-box .ac-rows .ac-row:first-child { padding-top: 0; }
.ac-ranked { list-style: none; margin: 0; padding: 0; }
.ac-ranked li { position: relative; }
.ac-ranked .ac-rank { position: absolute; top: -2px; inset-inline-start: -2px; z-index: 2; min-width: 24px; height: 24px; display: grid; place-items: center; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; background: var(--accent-deep); border: 2px solid var(--line); border-radius: 8px; }
.ac-ranked li:first-child .ac-row { padding-top: 6px; }
.ac-tag-cloud { gap: 10px; }
.ac-tag-cloud a { font-size: 13px; padding: 4px 13px; }
.ac-tag-cloud a.is-topic { background: var(--khaki); }

.ac-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 36px; background: var(--primary); color: #fff; border: 2px solid var(--line); border-radius: var(--radius); }
.ac-cta-band h2 { margin: 0 0 4px; font-size: 24px; color: #fff; }
.ac-cta-band p { margin: 0; color: rgba(255, 255, 255, .88); }
.ac-follow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 28px; background: var(--khaki); border: 2px solid var(--line); border-radius: var(--radius); }
.ac-follow h2 { margin: 0; font-size: 20px; }
.ac-follow > div { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-home-archive { margin-top: 48px; text-align: center; }
.ac-pane[hidden] { display: none; }

@media (max-width: 1060px) {
	.ac-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
	.ac-mosaic > .ac-hero, .ac-mosaic > .ac-mosaic-empty { grid-column: 1 / -1; grid-row: auto; }
	.ac-mosaic .ac-mini { min-height: 210px; }
	.ac-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-block-body { flex-direction: column; }
	.ac-block-body > .ac-hero { flex: none; }
	.ac-media-grid { grid-template-columns: minmax(0, 1fr); }
	.ac-widgets { grid-template-columns: minmax(0, 1fr); }
	.ac-strip-track > .ac-tile { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 720px) {
	.ac-home-inner { padding-inline: 14px; }
	.ac-section { margin-top: 40px; }
	.ac-hero--lg .ac-hero-slide { min-height: 400px; }
	.ac-hero--sm .ac-hero-slide { min-height: 330px; }
	.ac-hero-body { padding: 18px 18px 74px; }
	.ac-hero--sm .ac-hero-body { padding: 16px 16px 62px; }
	.ac-hero-title { font-size: 22px; }
	.ac-hero--sm .ac-hero-title { font-size: 19px; }
	.ac-hero-excerpt { font-size: 14px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.ac-hero-controls { inset-inline-end: 14px; bottom: 14px; gap: 8px; }
	.ac-block-title { font-size: 20px; }
	.ac-block-title::before { height: 22px; }
	.ac-box { padding: 16px 14px 18px; }
	.ac-tabs { flex-basis: 100%; order: 4; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
	.ac-tab { flex: none; }
	.ac-block-head::after { display: none; }
	.ac-block-all { margin-inline-start: auto; }
	.ac-paths { grid-template-columns: minmax(0, 1fr); }
	.ac-duo { grid-template-columns: minmax(0, 1fr); }
	.ac-mini--big { min-height: 240px; }
	.ac-mini--big .ac-mini-body h3 { font-size: 19px; }
	.ac-rows--cols { grid-template-columns: minmax(0, 1fr); }
	.ac-strip-track > .ac-tile { flex-basis: 74%; }
	.ac-strip-btn { display: none; }
	.ac-media-feature .ac-mini { min-height: 250px; }
	.ac-cta-band { padding: 22px 20px; }
	.ac-mosaic .ac-mini { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
	.ac-hero-dot, .ac-post-more svg, .ac-ticker-item { transition: none; }
}

.ac-mega-btn {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
	padding: 6px 14px; background: var(--surface); color: var(--ink);
	border: 2px solid var(--line); border-radius: 999px;
	box-shadow: var(--seq-shadow-unified) !important;
}
.ac-mega-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ac-mega-btn:hover { background: var(--khaki); }
.ac-mega-btn[aria-expanded="true"] { background: var(--primary); color: var(--on-brand); box-shadow: none !important; transform: translateY(1px); }

button.ac-topic { font-family: inherit; line-height: inherit; cursor: pointer; }


.ac-bar { position: sticky; top: 0; z-index: 900; background: var(--bg); border-bottom: 2px solid var(--line); }
.ac-bar-inner { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 12px; }
.ac-bar .ac-topics { flex: 1; min-width: 0; margin: 0; padding: 4px 2px 6px; }
.ac-bar .ac-icon-btn { flex: none; }
.ac-home-title { margin: 22px 0 14px; font-size: 26px; line-height: 1.4; color: var(--primary); }

@media (max-width: 720px) {
	.ac-bar-inner { gap: 8px; }
	.ac-bar .ac-topics { margin-inline: 0; padding-inline: 2px; }
	.ac-home-title { margin: 16px 0 12px; font-size: 22px; }
}

body:has(.ac-shell--split) { --maxw: 1500px; }

.ac-mx { --mx-inset: max(10px, calc((100vw - var(--maxw)) / 2 + 20px)); }
.ac-mx-backdrop { display: none; }
.ac-mx [hidden] { display: none !important; }
.ac-mx-panel {
	position: fixed; z-index: 9001; top: var(--mx-top, 10px); inset-inline-start: var(--mx-inset);
	width: min(440px, calc(100vw - 20px)); height: calc(100dvh - var(--mx-top, 10px) - 12px);
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; color: #000; border: 3px solid #000; border-radius: 20px;
	visibility: hidden; pointer-events: none; transform: translateX(calc(100% + var(--mx-inset) + 24px));
	transition: transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .32s;
}
.ac-mx.is-open .ac-mx-panel { visibility: visible; pointer-events: auto; transform: none; transition: transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.ac-mx-head { position: relative; flex: none; min-height: 60px; padding: 8px 58px; display: flex; align-items: center; justify-content: center; background: #e6c84a; border-bottom: 3px solid #000; }
.ac-mx-title { width: 100%; text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 22.4px; line-height: 1.3; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-mx-back, .ac-mx-close { position: absolute; top: 50%; inset-inline-start: 10px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; cursor: pointer; background: transparent; border: 0; transform: translateY(-50%); }
.ac-mx-back img, .ac-mx-close img { display: block; width: 100%; height: 100%; }
.ac-mx-back:hover, .ac-mx-close:hover { opacity: .7; }
.ac-mx-back:active, .ac-mx-close:active { transform: translateY(-50%) scale(.94); }
.ac-mx-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; background: #fff; overscroll-behavior: contain; }
.ac-mx-screen { display: flex; flex-direction: column; gap: 16px; }
.ac-mx-group { display: flex; flex-direction: column; gap: 10px; }
.ac-mx-label { padding: 2px 4px 8px; text-align: center; border-bottom: 3px solid #000; font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1.3; color: #000; }
.ac-mx-label a { color: inherit; text-decoration: none; }
.ac-mx-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-mx-items--list { grid-template-columns: minmax(0, 1fr); }
.ac-mx-item {
	min-height: 46px; padding: 8px 12px; display: flex; align-items: center; gap: 9px;
	font: inherit; font-size: 13px; font-weight: 700; line-height: 1.6; text-align: start; text-decoration: none; color: #000; cursor: pointer;
	background: #fff; border: 2px solid #000; border-radius: 14px;
	box-shadow: var(--seq-shadow-unified) !important; transition: transform .12s ease, background .12s ease;
}
.ac-mx-item:hover { background: #e6c84a; }
.ac-mx-item:active { box-shadow: none !important; transform: translateY(1px); }
.ac-mx-item-label { min-width: 0; flex: 1; }
.ac-mx-count { flex: none; font-size: 11px; opacity: .65; }
.ac-mx-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 767px) {
	.ac-mx.is-open .ac-mx-backdrop { display: block; position: fixed; inset-inline: 0; bottom: 0; top: var(--mx-edge, 0px); z-index: 9000; background: rgba(0, 0, 0, .3); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
	.ac-mx-panel {
		top: var(--mx-top, 10px); inset-inline-start: 2.5vw; width: 95vw; height: calc(100dvh - var(--mx-top, 10px) - 10px);
		opacity: 0; transform-origin: top right; transform: scale(.04);
		transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, visibility 0s linear .32s;
	}
	.ac-mx.is-open .ac-mx-panel { opacity: 1; transform: scale(1); transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, visibility 0s; }
	html.ac-mx-open { overflow: hidden; }
	.ac-mx-body { padding: 10px; }
	.ac-bar .ac-topics { display: none; }
	.ac-bar .ac-icon-btn { margin-inline-start: auto; }
}
@media (max-width: 720px) {
	.ac-header-inner, .ac-bar-inner { padding-inline: 14px; }
	.ac-shell { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.ac-mx-panel, .ac-mx-item, .ac-mx-back, .ac-mx-close { transition-duration: 1ms !important; }
}
.ac-widget--user { background: var(--khaki); }
.ac-widget--user p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.9; }
.ac-widget-actions { display: grid; gap: 8px; }
.ac-widget-actions .ac-btn { justify-content: center; text-align: center; }
.ac-user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ac-user-row b { display: block; font-size: 14px; line-height: 1.6; }
.ac-user-row small { font-size: 12px; color: var(--muted); }
.ac-user-avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--on-brand); background: var(--primary); border: 2px solid var(--line); border-radius: 50%; }

.ac-map { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ac-map-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }
.ac-map-row a, .ac-map-link { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.ac-map-link { display: flex; align-items: center; font: inherit; text-align: start; padding: 0; cursor: pointer; background: none; border: 0; }
.ac-map-row a:hover, .ac-map-link:hover, .ac-map-sub a:hover { color: var(--primary); }
.ac-map a.is-active, .ac-map-item.is-current > .ac-map-row a { font-weight: 700; color: var(--primary); }
.ac-map-sub { list-style: none; margin: 0 6px 6px; padding: 0 10px; border-inline-start: 2px solid var(--line); }
.ac-map-sub li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.ac-map-sub a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.ac-map-dot { display: inline-block; flex: none; width: 12px; height: 12px; margin-inline-end: 8px; background: #e6c84a; border: 2px solid var(--line); border-radius: 50%; vertical-align: -1px; }
.ac-map-all { width: 100%; margin-top: 12px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; box-shadow: var(--seq-shadow-unified) !important; }
.ac-map-all:hover { background: var(--khaki); }
.ac-map-all:active { box-shadow: none !important; transform: translateY(1px); }

.ac-article-body > p:first-child { font-size: 19px; line-height: 2.1; color: #222; }
.ac-article-body p { margin: 0 0 18px; }
.ac-article-body h2 { position: relative; padding-inline-start: 22px; }
.ac-article-body h2::before { content: ''; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 8px; border: 2px solid var(--line); border-radius: 4px; background: var(--accent); }
.ac-article-body ol, .ac-article-body ul { margin: 0 0 24px; padding-inline-start: 28px; }
.ac-article-body li { margin-bottom: 12px; padding-inline-start: 6px; }
.ac-article-body li::marker { color: var(--primary); font-weight: 700; }
.ac-article-body a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.ac-article-body blockquote.ac-summary, .ac-article-body blockquote.ac-tip { margin: 24px 0; padding: 16px 20px; border: 2px solid var(--line); border-radius: 14px; line-height: 2; }
.ac-article-body blockquote.ac-summary { background: var(--khaki); }
.ac-article-body blockquote.ac-tip { background: var(--surface); border-style: dashed; border-color: var(--primary); }
.ac-article-body .ac-table-wrap { max-width: 100%; margin: 26px 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.ac-article-body .ac-table-wrap > table { margin: 0; }
.ac-article-body td, .ac-article-body th { overflow-wrap: anywhere; }
.ac-article-body table { display: table; width: 100%; max-width: 100%; margin: 26px 0; border: 2px solid var(--line); border-radius: 14px; border-collapse: separate; border-spacing: 0; background: var(--surface); font-size: 15px; line-height: 1.9; }
.ac-article-body th, .ac-article-body td { padding: 11px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid rgba(0, 0, 0, .14); }
.ac-article-body th { background: var(--primary); color: var(--on-brand); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--line); }
.ac-article-body tbody tr:nth-child(even) td { background: #faf6f0; }
.ac-article-body tbody tr:last-child td { border-bottom: 0; }
.ac-article-body table tr:first-child > :first-child { border-start-start-radius: 12px; }
.ac-article-body table tr:first-child > :last-child { border-start-end-radius: 12px; }
.ac-article-body table tr:last-child > :first-child { border-end-start-radius: 12px; }
.ac-article-body table tr:last-child > :last-child { border-end-end-radius: 12px; }
.ac-article-body td:first-child { font-weight: 700; white-space: nowrap; }
.ac-article-body figure { margin: 36px 0; }
.ac-article-body .ac-fig--wide { margin-inline: -4px; }
.ac-article-body .ac-fig--wide img { border-radius: 16px; }
.ac-article-body .ac-fig--wide figcaption { padding-inline: 4px; }
.ac-article-body figure img { display: block; width: 100%; height: auto; background: transparent; border: 0; border-radius: 12px; }
.ac-article-body figcaption { margin-top: 12px; padding-inline: 8px; font-size: 14px; line-height: 1.9; color: var(--muted); text-align: center; }
.ac-article-body .ac-fig--phone { max-width: 340px; margin-inline: auto; }
.ac-article-body .ac-fig--phone img { border-radius: 20px; border: 2px solid var(--line); box-shadow: 0 8px 32px rgba(0,0,0,.10); }
.ac-article-body .ac-fig--phone figcaption { max-width: 340px; margin-inline: auto; }
@media (max-width: 640px) {
	.ac-article-body > p:first-child { font-size: 17.5px; }
	.ac-article-body table { font-size: 14px; }
	.ac-article-body th, .ac-article-body td { padding: 9px 12px; }
	.ac-article-body td:first-child { white-space: normal; }
	.ac-article-body th { white-space: normal; }
	.ac-article-body .ac-table-wrap > table:not([class*="ac-rpe"]) { min-width: 0; }
	.ac-article-body .ac-table-wrap > table[class*="ac-rpe"] { min-width: 480px; }
	.ac-article-body .ac-table-wrap:has(> table:not([class*="ac-rpe"])) { overflow: visible; }
	.ac-article-body table:not([class*="ac-rpe"]) { display: block; overflow: hidden; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); }
	.ac-article-body table:not([class*="ac-rpe"]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.ac-article-body table:not([class*="ac-rpe"]) tbody { display: block; }
	.ac-article-body table:not([class*="ac-rpe"]) tr { display: block; border: 0; border-radius: 0; background: transparent; }
	.ac-article-body table:not([class*="ac-rpe"]) tbody tr + tr { border-top: 2px solid var(--line); }
	.ac-article-body table:not([class*="ac-rpe"]) td, .ac-article-body table:not([class*="ac-rpe"]) tbody th { display: grid; grid-template-columns: minmax(84px, 38%) 1fr; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; white-space: normal; font-weight: 400; color: inherit; }
	.ac-article-body table:not([class*="ac-rpe"]) td::before, .ac-article-body table:not([class*="ac-rpe"]) tbody th::before { content: attr(data-label); padding: 9px 12px; background: var(--primary); color: var(--on-brand); font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .25); }
	.ac-article-body table:not([class*="ac-rpe"]) td:not([data-label]) { display: block; padding: 9px 12px; }
	.ac-article-body table:not([class*="ac-rpe"]) .ac-cell { padding: 9px 12px; min-width: 0; }
	.ac-article-body table:not([class*="ac-rpe"]) td > * , .ac-article-body table:not([class*="ac-rpe"]) td { overflow-wrap: anywhere; }
	.ac-article-body table:not([class*="ac-rpe"]) td { align-items: stretch; }
	.ac-article-body table:not([class*="ac-rpe"]) tr > :last-child::before { border-bottom: 0; }
}
.ac-article-body figure.ac-rpe-demo {
  max-width: 760px;
  margin: 32px auto;
  padding: 18px;
  border: 1px solid #d5e2da;
  border-radius: 16px;
  background: linear-gradient(145deg, #f7fbf8 0%, #f2f7f3 100%);
  box-shadow: 0 14px 36px rgba(31, 80, 76, .08);
}
.ac-article-body .ac-rpe-demo table.ac-rpe-inputs,
.ac-article-body table.ac-rpe-target,
.ac-article-body table.ac-rpe-results,
.ac-article-body table.ac-rpe-scale {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 1px solid #d7e0da;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 15px rgba(23, 56, 49, .06);
  font-size: 15px;
  line-height: 1.7;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-inputs thead th,
.ac-article-body table.ac-rpe-target thead th,
.ac-article-body table.ac-rpe-results thead th {
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #d7e0da;
  background: #1f504c;
  color: #fff;
  text-align: right;
  white-space: normal;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-inputs tbody th,
.ac-article-body .ac-rpe-demo table.ac-rpe-inputs tbody td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e7ede9;
  background: #fff;
  color: #202c28;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-inputs tbody th {
  width: 58%;
  background: #f1f6f2;
  font-weight: 600;
  white-space: normal;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-inputs tbody td.ac-rpe-field {
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-inputs tbody td.ac-rpe-field--effort strong {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f3eb;
  color: #1f504c;
  font-size: 12px;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-scale {
  margin-top: 14px;
  table-layout: fixed;
  direction: ltr;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-scale thead th {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #d7e0da;
  background: #e8f2eb;
  color: #1f504c;
  text-align: center;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-scale tbody td {
  padding: 10px 2px;
  border: 0;
  background: #fff;
  color: #33453d;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}
.ac-article-body .ac-rpe-demo table.ac-rpe-scale tbody td.is-current {
  border-radius: 8px;
  background: #1f504c;
  color: #fff;
}
.ac-article-body table.ac-rpe-target tbody td,
.ac-article-body table.ac-rpe-results tbody td {
  width: 33.333%;
  padding: 16px 10px;
  border: 0;
  border-inline-start: 1px solid #e3e9e5;
  background: #fff;
  text-align: center;
}
.ac-article-body table.ac-rpe-target tbody td:first-child,
.ac-article-body table.ac-rpe-results tbody td:first-child {
  border-inline-start: 0;
}
.ac-article-body table.ac-rpe-target tbody strong {
  display: inline-block;
  margin-bottom: 4px;
  color: #1f504c;
  font-size: 20px;
  direction: ltr;
}
.ac-article-body table.ac-rpe-results tbody td {
  width: 50%;
  background: #e9f5ec;
  color: #1f504c;
}
.ac-article-body table.ac-rpe-results tbody td.ac-rpe-result--estimate {
  background: #fff3c6;
  color: #493d1b;
}
.ac-article-body table.ac-rpe-results tbody td.ac-rpe-result--suggestion {
  background: #d9f2e3;
}
.ac-article-body table.ac-rpe-results tbody strong {
  display: block;
  margin-bottom: 4px;
  font-size: 25px;
  line-height: 1.35;
  direction: ltr;
}
.ac-article-body figure.ac-rpe-demo figcaption {
  margin: 12px 4px 0;
  padding: 0;
  text-align: start;
}
@media (max-width: 600px) {
  .ac-article-body figure.ac-rpe-demo { padding: 10px; border-radius: 12px; }
  .ac-article-body .ac-rpe-demo table.ac-rpe-inputs,
  .ac-article-body table.ac-rpe-target,
  .ac-article-body table.ac-rpe-results,
  .ac-article-body table.ac-rpe-scale { font-size: 12px; }
  .ac-article-body .ac-rpe-demo table.ac-rpe-inputs tbody th,
  .ac-article-body .ac-rpe-demo table.ac-rpe-inputs tbody td,
  .ac-article-body table.ac-rpe-target tbody td,
  .ac-article-body table.ac-rpe-results tbody td { padding: 9px 6px; }
  .ac-article-body .ac-rpe-demo table.ac-rpe-scale tbody td { padding-inline: 0; font-size: 11px; }
  .ac-article-body table.ac-rpe-results tbody strong { font-size: 20px; }
}

.ac-audio-ui { direction: ltr; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-audio-play {
	flex: none; width: 46px; height: 46px; padding: 0; display: grid; place-items: center;
	border: 2px solid var(--line); border-radius: 50%; cursor: pointer;
	background: var(--primary); color: var(--on-brand);
	box-shadow: var(--seq-shadow-unified) !important;
}
.ac-audio-play svg { width: 20px; height: 20px; fill: currentColor; }
.ac-audio-play:active, .ac-audio-play[aria-pressed="true"] { box-shadow: none !important; transform: translateY(1px); }
.ac-audio-play:focus-visible, .ac-audio-speed:focus-visible, .ac-audio-seek:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.ac-audio-seek {
	--p: 0%;
	flex: 1 1 140px; min-width: 0; height: 22px; margin: 0; cursor: pointer;
	direction: ltr; -webkit-appearance: none; appearance: none; background: transparent;
}
.ac-audio-seek::-webkit-slider-runnable-track {
	height: 10px; border: 2px solid var(--line); border-radius: 999px;
	background: linear-gradient(to right, var(--primary) var(--p), var(--surface) var(--p));
}
.ac-audio-seek::-moz-range-track {
	height: 10px; border: 2px solid var(--line); border-radius: 999px;
	background: linear-gradient(to right, var(--primary) var(--p), var(--surface) var(--p));
}
.ac-audio-seek::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px;
	border: 2px solid var(--line); border-radius: 50%; background: var(--accent);
	box-shadow: var(--seq-shadow-unified);
}
.ac-audio-seek::-moz-range-thumb {
	width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 50%; background: var(--accent);
	box-shadow: var(--seq-shadow-unified);
}

.ac-audio-time { flex: none; min-width: 84px; text-align: center; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ac-audio-speed {
	flex: none; min-width: 52px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
	border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
	box-shadow: var(--seq-shadow-unified) !important;
}
.ac-audio-speed:active { box-shadow: none !important; transform: translateY(1px); }

@media (max-width: 520px) {
	.ac-audio-seek { order: 3; flex-basis: 100%; }
	.ac-audio-time { margin-inline-start: auto; }
}

.ac-article-meta { align-items: center; }
.ac-pageact { position: relative; margin-inline-start: auto; font-family: var(--font-display); font-size: 15px; line-height: 1.4; color: var(--ink); }
.ac-pageact-split { display: flex; align-items: stretch; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--seq-shadow-unified) !important; }
.ac-pageact-copy, .ac-pageact-toggle { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; padding: 8px 14px; }
.ac-pageact-toggle { padding: 8px 10px; }
.ac-pageact-copy:hover, .ac-pageact-toggle:hover, .ac-pageact-toggle[aria-expanded="true"] { background: var(--khaki); }
.ac-pageact-copy:active, .ac-pageact-toggle:active { transform: translateY(1px); }
.ac-pageact-copy.is-done { background: var(--primary); color: var(--on-brand); }
.ac-pageact-copy.is-failed { background: #b42318; color: #fff; }
.ac-pageact-sep { width: 2px; background: var(--line); margin: 8px 0; }
.ac-pageact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ac-pageact-toggle svg { transition: transform .15s ease; }
.ac-pageact-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ac-pageact-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 950; width: 320px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
.ac-pageact-menu[hidden] { display: none; }
.ac-pageact-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ac-pageact-item:hover, .ac-pageact-item:focus-visible { background: var(--khaki); outline: none; }
.ac-pageact-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; color: var(--muted); }
.ac-pageact-ico svg { width: 20px; height: 20px; }
.ac-pageact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-pageact-text strong { font-size: 16px; font-weight: 700; }
.ac-pageact-text small { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }
