.site > .an-home { padding: 16px 0 32px; }
.an-news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; align-items: stretch; }
.an-story-card { position: relative; min-width: 0; min-height: 220px; overflow: hidden; background: var(--an-surface); }
.an-story-lead { min-height: 460px; }
.an-lead-slider { position: relative; min-width: 0; min-height: 460px; overflow: hidden; background: var(--an-surface); }
.an-lead-slide { position: absolute; inset: 0; animation: an-slide-in var(--an-slide-duration, 400ms) ease-out; }
.an-lead-slide[hidden], .an-slider-controls[hidden] { display: none; }
.an-lead-slide .an-story-lead { height: 100%; min-height: 100%; }
.an-slider-controls button { position: absolute; z-index: 2; border: 0; border-radius: 0; padding: 0; color: var(--an-text); background: color-mix(in srgb, var(--an-overlay) 45%, var(--an-clear)); cursor: pointer; opacity: 0; transition: opacity .18s ease, background .18s ease; }
.an-slider-controls button:hover { background: color-mix(in srgb, var(--an-overlay) 75%, var(--an-clear)); }
.an-slider-previous, .an-slider-next { top: 50%; transform: translateY(-50%); width: 36px; height: 44px; font-size: 32px; line-height: 1; }
.an-slider-previous { left: 0; }
.an-slider-next { right: 0; }
.an-slider-pause { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 13px; }
.an-lead-slider:hover .an-slider-controls button, .an-lead-slider:focus-within .an-slider-controls button { opacity: 1; }
.an-lead-slider .an-slider-controls button:focus-visible { outline-offset: -3px; }
@keyframes an-slide-in { from { opacity: .35; } to { opacity: 1; } }
@media (hover: none) { .an-slider-controls button { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .an-lead-slide { animation: none; } .an-slider-controls button { transition: none; } }
.an-story-media { width: 100%; height: 100%; max-width: 100%; max-height: 100%; overflow: hidden; background: var(--an-story-color, var(--an-category)); }
.an-story-media img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }
.an-story-card > .an-story-media { position: absolute; inset: 0; }
.an-story-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 100%; padding: 20px; background: linear-gradient(to top, color-mix(in srgb, var(--an-overlay) 94%, var(--an-clear)), color-mix(in srgb, var(--an-overlay) 35%, var(--an-clear)) 45%, var(--an-clear) 78%); }
.an-story-card h2 { margin: 10px 0; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.an-story-lead h2 { font-size: clamp(26px, 2.3vw, 34px); }
.an-home a { text-decoration: none; }
.an-story-card h2 a, .an-story-meta a { color: var(--an-text); }
.an-home a:hover { text-decoration: underline; }
.an-home :focus-visible { outline: 2px solid var(--an-focus); outline-offset: 3px; }
.an-story-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--an-muted); font-size: 11px; }
.an-story-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.an-news-sidebar { min-width: 0; background: var(--an-sidebar-background); padding-bottom: 12px; }
.an-news-tabs { display: flex; border-bottom: 2px solid var(--an-sidebar-active); }
.an-news-tabs[hidden], .an-news-sidebar [hidden] { display: none; }
.an-news-tabs button { display: flex; align-items: stretch; flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 0; min-height: 42px; font-size: 12px; line-height: 1.2; font-weight: 600; text-transform: uppercase; text-align: start; background: var(--an-sidebar-tab); color: var(--an-text); cursor: pointer; }
.an-tab-icon { display: grid; place-items: center; width: 30px; flex-shrink: 0; background: var(--an-sidebar-icon); }
.an-tab-label { padding: 13px 10px; }
.an-news-tabs button[aria-selected="true"] .an-tab-icon { background: color-mix(in srgb, var(--an-sidebar-active) 78%, var(--an-overlay)); }
.an-news-tabs button:focus-visible { outline-offset: -3px; }
.an-news-tabs button[aria-selected="true"] { background: var(--an-sidebar-active); color: var(--an-on-accent); }
.an-story-list { list-style: none; padding: 0 12px; margin: 0; }
.an-story-list li { margin-top: 14px; }
.an-story-list a { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--an-text); }
.an-story-list .an-story-media { height: 82px; }
.an-story-list h3 { margin: 0 0 6px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.an-story-list time { display: flex; align-items: center; gap: 3px; font-size: 10px; line-height: 1.3; color: var(--an-muted); }
.an-story-list time svg { flex-shrink: 0; }
.an-list-heading { padding: 12px; margin: 0; font-size: 16px; }
.an-news-sidebar.is-ready .an-list-heading { display: none; }
@media (max-width: 1050px) {
	.an-news-grid { grid-template-columns: 2fr 1fr; }
	.an-news-sidebar { grid-column: 1 / -1; }
	.an-story-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
}
@media (max-width: 620px) {
	.an-news-grid { grid-template-columns: minmax(0, 1fr); }
	.an-story-lead { min-height: 360px; }
	.an-lead-slider { min-height: 360px; }
	.an-story-stack { grid-template-rows: none; }
	.an-story-card:not(.an-story-lead) { min-height: 240px; }
	.an-story-list { grid-template-columns: minmax(0, 1fr); }
}

.an-section-empty { padding: 20px; margin: 0; color: var(--an-muted); font-size: 13px; }

/* Featured post section shares media and typography, with independent display controls. */
.an-featured { margin-top: 20px; padding: 20px; background: var(--an-featured-background); }
.an-featured-heading { display: flex; align-items: flex-end; margin: 0 0 12px; border-bottom: 1px solid var(--an-featured-accent); font-size: 11px; line-height: 1.3; font-weight: 800; text-transform: uppercase; }
.an-featured-heading > span { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--an-featured-accent); color: var(--an-on-accent); overflow-wrap: anywhere; }
.an-featured-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.an-featured .an-story-card { min-height: 190px; display: flex; }
.an-featured .an-story-content { width: 100%; padding: 12px; }
.an-featured .an-story-card h2 { font-size: 14px; line-height: 1.3; margin: 7px 0; }
.an-featured .an-pill { font-size: 9px; padding: 3px 6px; }
.an-featured .an-story-meta { font-size: 10px; }
.an-featured-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.an-featured-lists > section { min-width: 0; }
.an-featured .an-story-list { display: block; padding: 0; }
.an-featured .an-story-list li { margin-top: 12px; }
@media (max-width: 1050px) {
 .an-featured-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .an-featured-lists { grid-template-columns: minmax(0, 1fr); }
 .an-featured .an-story-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
}
@media (max-width: 620px) {
 .an-featured { padding: 14px; }
 .an-featured-cards, .an-featured .an-story-list { grid-template-columns: minmax(0, 1fr); }
 .an-featured .an-story-card:not(.an-story-lead) { min-height: 210px; }
}

.an-featured-icon { flex-shrink: 0; width: 14px; height: 14px; }

/* Main content and one bounded sidebar. */
.an-content-area { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 24px; margin-top: 20px; padding: 20px; background: var(--an-content-background); align-items: start; }
.an-content-area--wide { grid-template-columns: minmax(0, 1fr); }
.an-content-main, .an-content-sidebar { min-width: 0; display: grid; gap: 24px; }
.an-content-sidebar--sticky { position: sticky; top: var(--an-sidebar-top, 20px); }

.an-content-area .an-featured-heading { border-color: var(--an-content-accent); }
.an-content-area .an-featured-heading > span { background: var(--an-content-accent); }
.an-express-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.an-express-image { display: block; height: 230px; margin-bottom: 12px; }
.an-express-lead h3 { font-size: 17px; line-height: 1.35; margin: 10px 0; }
.an-express-lead p { font-size: 13px; line-height: 1.6; }
.an-home .an-read-more { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--an-border); padding: 8px 15px; background: var(--an-clear); color: var(--an-on-accent); font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background-color .22s ease, border-color .22s ease; }
.an-home .an-read-more:hover, .an-home .an-read-more:focus-visible { background: var(--an-content-accent); border-color: var(--an-content-accent); color: var(--an-on-accent); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .an-home .an-read-more { transition: none; } }
.an-content-area .an-story-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; padding: 0; }
.an-content-area .an-story-list li { margin: 0; }
.an-express .an-story-list { align-content: start; }
.an-content-ad { height: var(--an-slot-height); max-width: 100%; display: grid; place-items: center; background: var(--an-surface); border: 1px dashed var(--an-border); color: var(--an-muted); overflow: hidden; }
.an-content-ad > span { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; }
.an-content-ad a { display: block; width: 100%; height: 100%; }
.an-content-ad img { display: block; width: 100%; height: 100%; object-fit: contain; }
.an-content-slider { min-height: 430px; height: 430px; }
.an-content-slider .an-story-card { min-height: 100%; height: 100%; }
.an-content-slider .an-story-content { min-height: 430px; box-sizing: border-box; }
.an-content-posts .an-story-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.an-writer-spotlight { min-height: 0; background: var(--an-clear); padding-bottom: 36px; }
.an-writer-spotlight .an-lead-slide { position: relative; text-align: center; padding: 4px 16px; }
.an-writer-spotlight .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.an-writer-spotlight h3 { margin: 12px 0; font-size: 17px; }
.an-writer-spotlight p { font-size: 13px; line-height: 1.6; margin: 12px 0; }
.an-writer-link { font-size: 12px; }
.an-writer-spotlight .an-slider-controls button { opacity: 1; top: auto; bottom: 0; transform: none; width: 28px; height: 28px; }
.an-writer-spotlight .an-slider-previous { left: calc(50% - 48px); }
.an-writer-spotlight .an-slider-next { right: calc(50% - 48px); }
.an-writer-spotlight .an-slider-pause { right: calc(50% - 14px); }
.an-content-socials { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.an-content-socials a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 92px; padding: 16px 4px; box-sizing: border-box; background: var(--an-social-tile, var(--an-surface)); color: var(--an-on-accent); font-size: 12px; line-height: 1.3; }
.an-content-socials svg { width: 20px; height: 20px; flex-shrink: 0; }
.an-content-socials a:hover { text-decoration: none; filter: brightness(1.12); }
.an-content-socials a:hover span { text-decoration: underline; }
.an-social-tile--facebook { --an-social-tile: var(--an-social-facebook); }
.an-social-tile--x { --an-social-tile: var(--an-social-x); }
.an-social-tile--linkedin { --an-social-tile: var(--an-social-linkedin); }
.an-social-tile--vk { --an-social-tile: var(--an-social-vk); }
.an-social-tile--youtube { --an-social-tile: var(--an-social-youtube); }
.an-social-tile--instagram { --an-social-tile: var(--an-social-instagram); }
@media (max-width: 1000px) {
 .an-content-area { grid-template-columns: minmax(0,1fr); }
 .an-content-sidebar--sticky, .admin-bar .an-content-sidebar--sticky { position: static; }
 .an-content-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
 .an-content-area { padding: 14px; }
 .an-express-grid, .an-content-sidebar, .an-content-posts .an-story-list { grid-template-columns: minmax(0,1fr); }
 .an-content-slider { min-height: 320px; height: 320px; }
 .an-content-slider .an-story-content { min-height: 320px; }
}

/* Single-column article rows and sidebar ranking badges. */
.an-single-rows { display: grid; gap: 14px; }
.an-single-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; align-items: center; }
.an-single-visual { position: relative; min-width: 0; }
.an-single-image { display: block; height: 230px; }
.an-single-badges { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 4px; }
.an-single-copy { min-width: 0; padding-block: 10px; }
.an-single-copy h3 { font-size: 17px; line-height: 1.3; margin: 0 0 10px; overflow-wrap: anywhere; }
.an-single-copy p { font-size: 13px; line-height: 1.55; margin: 12px 0; }
.an-single-copy .an-story-meta { gap: 6px; align-items: center; }
.an-single-author, .an-single-copy time { display: inline-flex; align-items: center; gap: 4px; }
.an-single-author .avatar { width: 20px; height: 20px; border-radius: 50%; }
.an-trending .an-story-list { counter-reset: trending; }
.an-trending .an-story-list li { position: relative; counter-increment: trending; }
.an-trending .an-story-list li::after { content: counter(trending); position: absolute; top: 58px; left: 3px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--an-content-accent); color: var(--an-on-accent); font-size: 13px; font-weight: 700; pointer-events: none; }
@media (max-width: 620px) {
 .an-single-row { grid-template-columns: minmax(0,1fr); gap: 0; }
 .an-single-image { height: 220px; }
 .an-single-rows { gap: 24px; }
}

.an-trending.is-vertical-slider .an-trending-window { overflow: hidden; }
.an-trending .an-story-list { position: relative; }
.an-trending .an-story-list li[data-rank]::after { content: attr(data-rank); }
.an-trending-controls { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.an-trending-controls[hidden] { display: none; }
.an-trending-controls button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 0; background: var(--an-surface); color: var(--an-text); cursor: pointer; }
.an-trending-controls button:hover { background: var(--an-content-accent); color: var(--an-on-accent); }

.an-missed { margin-top: 20px; padding: 20px; background: var(--an-surface); }
.an-missed-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.an-missed-grid article { min-width: 0; }
.an-missed-visual { position: relative; }
.an-missed-visual > a { display: block; height: 170px; }
.an-missed-grid h3 { font-size: 13px; line-height: 1.4; margin: 10px 0 6px; }
.an-missed-grid time { display: flex; align-items: center; gap: 4px; color: var(--an-muted); font-size: 10px; }
.an-missed-grid .an-pill { font-size: 9px; padding: 3px 5px; }
@media(max-width:1050px) { .an-missed-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) { .an-missed { padding: 14px; } .an-missed-grid { grid-template-columns: minmax(0,1fr); } .an-missed-visual > a { height: 210px; } }
