/* AutoBama theme: base layout, header, footer, blog. Colours come from :root variables set in the settings panel. */

:root {
	--at-primary: #0A2357;
	--at-accent: #FFD700;
	--at-ink: #13171a;
	--at-bg: #f6f8fb;
	--at-radius: 18px;
	--at-muted: #5f6973;
	--at-line: #e4e8ef;
	--at-card: #fff;
	--at-shadow: 0 18px 36px -28px rgba(10, 35, 87, 0.35);
	--at-font: "Shabnam FD", Tahoma, sans-serif;
	--at-wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--at-bg); color: var(--at-ink); font-family: var(--at-font); font-size: 15px; line-height: 1.8; direction: rtl; text-align: right; }
img { max-width: 100%; height: auto; }
a { color: var(--at-primary); }
a:hover { color: color-mix(in srgb, var(--at-primary) 75%, #000); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.5; color: var(--at-primary); margin: 0 0 .6em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--at-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at-skip { position: absolute; right: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--at-accent); color: var(--at-ink); border-radius: 10px; }
.at-skip:focus { top: 12px; }
.at-wrap { width: 100%; max-width: var(--at-wrap); margin: 0 auto; padding: 0 16px; }
.at-ico { flex: 0 0 auto; }

/* buttons */
.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.at-btn:active { transform: translateY(1px); }
.at-btn--accent { background: var(--at-accent); color: var(--at-ink); box-shadow: 0 12px 22px -14px color-mix(in srgb, var(--at-accent) 85%, #000); }
.at-btn--accent:hover { background: color-mix(in srgb, var(--at-accent) 82%, #fff); color: var(--at-ink); }
.at-btn--primary { background: var(--at-primary); color: #fff; }
.at-btn--primary:hover { color: #fff; background: color-mix(in srgb, var(--at-primary) 82%, #000); }
.at-btn--ghost { background: #fff; color: var(--at-primary); border: 1px solid var(--at-line); }
.at-btn--line { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.at-round { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--at-ink); color: #fff; cursor: pointer; flex: 0 0 auto; }
.at-round--accent { background: var(--at-accent); color: var(--at-ink); }
.at-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--at-line); border-radius: 999px; color: var(--at-ink); text-decoration: none; font-weight: 700; font-size: 14px; background: #fff; }

/* top bar */
.at-topbar { background: var(--at-accent); color: var(--at-ink); font-size: 12.5px; font-weight: 600; }
.at-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.at-topbar__group { display: flex; align-items: center; gap: 18px; min-width: 0; }
.at-topbar__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
.at-topbar__social { display: flex; gap: 2px; }
.at-topbar__social__a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--at-ink); }
.at-topbar__social__a:hover { background: rgba(0, 0, 0, .08); }
.at-usd { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--at-ink); color: #fff; font-size: 12px; white-space: nowrap; }
.at-usd b { color: var(--at-accent); }
/* Change badge next to the dollar rate (top bar and hero chip). */
.at-chg { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.6; direction: ltr; unicode-bidi: isolate; color: #fff; }
.at-chg.up { background: #0f7a37; }
.at-chg.down { background: #c62828; }
.at-chg[hidden] { display: none; }
[data-atc-usd].is-tick b { animation: atTick 1.2s ease-out; }
@keyframes atTick { 0% { color: #fff; text-shadow: 0 0 10px rgba(255, 215, 0, .9); } 100% { text-shadow: none; } }

/* header */
.at-header { position: relative; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -26px rgba(0, 0, 0, .45); }
.admin-bar .at-header { top: 32px; }
.at-header__in { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.at-header__logo img, .at-header__logo .custom-logo { max-height: 60px; width: auto; display: block; }
.at-logo { display: inline-block; line-height: 0; }

.at-header__act { display: flex; align-items: center; gap: 10px; }
.at-auth { display: inline-flex; padding: 4px; border: 1px solid var(--at-line); border-radius: 999px; background: #fff; }
.at-auth a { padding: 8px 16px; border-radius: 999px; color: var(--at-ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.at-auth a.is-on { background: var(--at-accent); }
.at-header__mob { display: none; align-items: center; gap: 8px; margin-right: auto; }

/* header search (live results: nav.css) */
.at-header__in > .atp-hs { flex: 1 1 auto; max-width: 620px; margin: 0 auto; }

/* menu bar — same strip as the original: soft yellow→white→blue glass, icons before the labels */
.at-nav__bar { display: flex; align-items: center; gap: 10px; min-height: 75px; padding: 0 14px; border-radius: 0 0 28px 28px; background: linear-gradient(90deg, rgba(255, 240, 170, .9) 0%, rgba(255, 255, 255, .62) 48%, rgba(204, 221, 255, .92) 100%); box-shadow: inset 0 -1.5px 0 rgba(255, 255, 255, .95), 0 18px 30px -26px rgba(10, 35, 87, .45); }
.at-nav .atp-pop-open { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--at-accent); box-shadow: 0 8px 18px -8px rgba(255, 215, 0, .8); }
.at-nav .atp-pop-open:hover { background: var(--at-accent); transform: scale(1.05); }
.at-menu, .at-footer__menu { list-style: none; margin: 0; padding: 0; }
.at-menu { display: flex; flex: 1; flex-wrap: nowrap; align-items: center; min-width: 0; }
.at-menu > li { position: relative; white-space: nowrap; }
.at-menu > li > a { display: inline-flex; align-items: center; padding: 15px 7px; border-radius: 12px; color: var(--at-ink); text-decoration: none; font-weight: 700; font-size: 13.5px; transition: color .2s; }
.at-menu .atp-ic > a::before { content: ""; flex: none; display: inline-block; width: 19px; height: 19px; margin-inline-end: 7px; background: currentColor; -webkit-mask: var(--atp-ic) center / contain no-repeat; mask: var(--atp-ic) center / contain no-repeat; opacity: .92; transition: transform .2s, color .2s; }
.at-menu .atp-ic:hover > a::before, .at-menu .atp-ic > a:focus-visible::before { transform: translateY(-1px) scale(1.12); color: #E6BF00; }
.at-menu > .menu-item-has-children:not([class*="atp-mm-brands"]):not([class*="atp-mm-budget"]):not([class*="atp-mm-models"]) > a::after { content: ""; width: 0; height: 0; margin-inline-start: 5px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.at-menu > li.at-hl > a { margin-inline-start: 4px; padding: 9px 12px; background: var(--at-accent); border-radius: 999px; box-shadow: 0 8px 18px -10px rgba(255, 215, 0, .9); }
.at-menu > li.at-hl > a::before { color: var(--at-ink); }
.at-menu .sub-menu { position: absolute; right: 0; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid #e8eaed; border-radius: 14px; box-shadow: 0 22px 50px -14px rgba(19, 23, 26, .25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 60; }
.at-menu > li:last-child .sub-menu { right: auto; left: 0; }
.at-menu li:hover > .sub-menu, .at-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.at-menu li[class*="atp-mm-"] > .sub-menu { display: none; }
.at-menu .sub-menu a { display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--at-ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.at-menu .sub-menu a:hover { background: var(--at-bg); }
.at-menu .sub-menu .atp-ic > a::before { width: 18px; height: 18px; }

/* pages */
.at-main { min-height: 50vh; }
.at-page { padding-top: 28px; padding-bottom: 48px; }
.at-page--narrow { max-width: 860px; }
.at-page__head h1 { font-size: 28px; }
.at-meta { color: var(--at-muted); font-size: 13px; }
.at-content { background: var(--at-card); border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 24px 28px; box-shadow: var(--at-shadow); }
.at-content img { border-radius: 12px; }
.at-content--plain, .at-content.at-content--plain { background: none; border: 0; box-shadow: none; padding: 0; }
.at-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.at-post-card { background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius); overflow: hidden; box-shadow: var(--at-shadow); display: flex; flex-direction: column; }
.at-post-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.at-post-card__body { padding: 14px 16px 16px; }
.at-post-card h2 { font-size: 17px; margin: 0 0 6px; }
.at-post-card h2 a { color: var(--at-ink); text-decoration: none; }
.at-post-card p { margin: 0 0 8px; color: var(--at-muted); font-size: 14px; }
.at-post-card time { font-size: 12.5px; color: var(--at-muted); }
.at-empty { padding: 40px 20px; text-align: center; background: #fff; border: 1px dashed #cfd8e6; border-radius: var(--at-radius); color: var(--at-muted); }
.nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 12px; background: #fff; border: 1px solid var(--at-line); text-decoration: none; }
.nav-links .current { background: var(--at-primary); color: #fff; border-color: var(--at-primary); }
.at-404 { text-align: center; padding: 70px 16px 90px; }
.at-404 > b { display: block; font-size: 88px; line-height: 1; color: var(--at-primary); margin-bottom: 12px; }
.at-404 p { color: var(--at-muted); }
.at-404__act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.at-widget { background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 18px; margin-bottom: 18px; }

/* footer */
.at-footer { position: relative; margin-top: 70px; color: rgba(255, 255, 255, .82); }
.at-footer a { color: #fff; }
.at-fcta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: -46px; padding: 26px 30px; border-radius: 26px; background: linear-gradient(110deg, var(--at-accent), color-mix(in srgb, var(--at-accent) 55%, #fff)); color: var(--at-ink); box-shadow: 0 30px 50px -30px color-mix(in srgb, var(--at-accent) 70%, #000); }
.at-fcta a { color: inherit; }
.at-fcta .at-btn--primary { color: #fff; }
.at-fcta__text b { display: block; font-size: 20px; font-weight: 800; }
.at-fcta__text span { font-size: 14px; opacity: .8; }
.at-fcta__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.at-footer__main { padding-top: 90px; background: radial-gradient(120% 140% at 85% 0, color-mix(in srgb, var(--at-primary) 70%, #2a8a62), var(--at-primary) 55%, color-mix(in srgb, var(--at-primary) 70%, #000)); border-radius: 40px 40px 0 0; }
.at-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 34px; }
.at-footer__brand img { max-height: 60px; width: auto; }
.at-footer__brand .custom-logo { background: #fff; border-radius: 14px; padding: 8px; }
.at-footer__brand p { margin: 14px 0; font-size: 14px; line-height: 2; }
.at-footer__social { display: flex; gap: 8px; }
.at-footer__social__a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.at-footer__social__a:hover { background: var(--at-accent); color: var(--at-ink) !important; }
.at-footer__h { position: relative; margin: 0 0 16px; padding-bottom: 10px; color: #fff; font-size: 16px; }
.at-footer__h::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--at-accent); }
.at-footer__menu a { display: flex; align-items: center; gap: 8px; padding: 6px 0; text-decoration: none; font-size: 14px; }
.at-footer__menu a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--at-accent); }
.at-footer__menu a:hover { color: var(--at-accent); }
.at-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.at-ccard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; }
.at-ccard__ico { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--at-accent); color: var(--at-ink); }
.at-ccard small { display: block; font-size: 12px; opacity: .7; }
.at-ccard b { display: block; font-size: 14.5px; color: #fff; line-height: 1.8; }
.at-footer__map { align-self: flex-start; color: var(--at-accent) !important; }
.at-footer__bottom { padding: 16px 0; font-size: 13px; color: rgba(255, 255, 255, .6); background: color-mix(in srgb, var(--at-primary) 70%, #000); }
.at-footer__bin { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* add-to-home */
.at-pwa { display: none; }

@media (max-width: 1400px) {
	.at-menu > li > a { padding: 15px 5px; font-size: 12.5px; }
	.at-menu .atp-ic > a::before { width: 17px; height: 17px; margin-inline-end: 5px; }
}
@media (max-width: 1199px) {
	.at-menu .atp-ic > a::before { display: none; }
}

@media (max-width: 991px) {
	.at-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.at-nav, .at-header__act, .at-header__in > .atp-hs { display: none; }
	.at-header__mob { display: flex; }
	.at-header__in { gap: 10px; min-height: 70px; }
	.at-header__logo img, .at-header__logo .custom-logo { max-height: 46px; }
	.at-footer__in { grid-template-columns: 1fr 1fr; }
	.at-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	.admin-bar .at-header { top: 46px; }
}

@media (max-width: 767px) {
	body { font-size: 14px; padding-bottom: 88px; }
	.at-hide-sm { display: none !important; }
	.at-topbar__in { justify-content: center; }
	.at-topbar__in > .at-topbar__group:first-child { display: none; }
	.at-header__madd span { display: none; }
	.at-header__madd { width: 44px; padding: 0; }
	.at-posts { grid-template-columns: 1fr; }
	.at-content { padding: 18px 16px; }
	.at-footer__in { grid-template-columns: 1fr; }
	.at-fcta { padding: 20px; }
	.at-fcta__text b { font-size: 17px; }
	.at-pwa:not([hidden]) { position: fixed; right: 10px; left: 10px; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); z-index: 69; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--at-line); border-radius: 20px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45); }
	.at-pwa img { border-radius: 12px; }
	.at-pwa span { flex: 1; min-width: 0; }
	.at-pwa b { display: block; font-size: 13.5px; }
	.at-pwa small { color: var(--at-muted); font-size: 12px; }
	.at-pwa__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--at-bg); cursor: pointer; display: grid; place-items: center; }
}

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

/* daily-price ticker under the header on inner pages */
.at-ticker-inner { margin-top: 14px; }
.at-ticker-inner .elementor-widget-container { margin: 0; }

@media (max-width: 991px) { .at-header { position: sticky; } }

/* back to top (same as the original: dark circle, yellow arrow, reading-progress ring) */
.at-top { position: fixed; left: 26px; bottom: 30px; z-index: 9980; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--at-accent); text-decoration: none; background: conic-gradient(var(--at-accent) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .18) 0) border-box; box-shadow: 0 14px 30px -12px rgba(19, 23, 26, .6); }
.at-top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #13171a; }
.at-top svg { position: relative; }
.at-top[hidden] { display: none; }
.at-top:hover { transform: translateY(-2px); }
@media (max-width: 991px) { .at-top { left: 14px; bottom: 150px; width: 42px; height: 42px; } }

/* ================= Blog post: head, three columns (contents · article · tools), bottom ================= */
.at-rp { position: fixed; top: 0; right: 0; left: 0; z-index: 9999; height: 3px; pointer-events: none; }
.at-rp i { display: block; width: 0; height: 100%; margin-inline-start: 0; background: linear-gradient(90deg, var(--at-accent), #ffb300); border-radius: 0 3px 3px 0; }
body.admin-bar .at-rp { top: 32px; }
@media (max-width: 782px) { body.admin-bar .at-rp { top: 46px; } }
.at-post { padding-top: 26px; padding-bottom: 40px; }
.at-post__head { max-width: 860px; margin: 0 auto 22px; text-align: center; }
.at-post__cat { display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 215, 0, .22); border: 1px solid rgba(255, 215, 0, .6); color: var(--at-primary); font-size: 12.5px; font-weight: 800; text-decoration: none; }
.at-post__head h1 { margin: 0 0 14px; color: var(--at-ink); font-size: clamp(24px, 2.6vw, 36px); font-weight: 900; line-height: 1.6; }
.at-post__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.at-post__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--at-line); color: var(--at-muted); font-size: 12.5px; }
.at-post__meta svg { color: var(--at-primary); }
.at-post__img { max-width: 1040px; margin: 0 auto 28px; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(10, 35, 87, .55); }
.at-post__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.at-post__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.at-post__main { min-width: 0; }
.at-post__body { padding: 30px 34px; font-size: 15.5px; line-height: 2.15; }
.at-post__body > p { margin: 0 0 16px; text-align: justify; }
.at-post__body h2 { position: relative; margin: 34px 0 14px; padding-inline-start: 16px; color: var(--at-ink); font-size: 22px; font-weight: 900; line-height: 1.6; scroll-margin-top: 110px; }
.at-post__body h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 5px; border-radius: 4px; background: var(--at-accent); }
.at-post__body h3 { margin: 26px 0 10px; color: var(--at-primary); font-size: 18px; font-weight: 800; scroll-margin-top: 110px; }
.at-post__body a { color: var(--at-primary); font-weight: 700; text-decoration: underline; text-decoration-color: var(--at-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.at-post__body ul, .at-post__body ol { margin: 0 0 18px; padding-inline-start: 22px; }
.at-post__body li { margin-bottom: 6px; }
.at-post__body ul > li::marker { color: var(--at-accent); }
.at-post__body ol > li::marker { color: var(--at-primary); font-weight: 800; }
.at-post__body blockquote { margin: 20px 0; padding: 16px 20px; border-inline-start: 4px solid var(--at-accent); border-radius: 12px; background: #f6f8fc; color: var(--at-ink); }
.at-post__body img { max-width: 100%; height: auto; border-radius: 14px; }
.at-post__body table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 14px; }
.at-post__body th, .at-post__body td { padding: 10px 12px; border: 1px solid var(--at-line); text-align: right; }
.at-post__body th { background: #f3f6fc; color: var(--at-primary); }
.at-post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: var(--at-muted); }
.at-post__tags a { padding: 4px 12px; border-radius: 999px; background: #eef2fb; color: var(--at-primary); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.at-post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--at-line); font-size: 13.5px; font-weight: 700; color: var(--at-ink); }
.at-post__share span:first-child { margin-inline-end: auto; }
.at-post__share a, .at-post__share button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--at-line); border-radius: 12px; background: #f6f8fc; color: var(--at-primary); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: none; transition: background .2s; }
.at-post__share a:hover, .at-post__share button:hover { background: rgba(255, 215, 0, .3); }
/* previous / next */
.at-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.at-postnav__a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px; background: #fff; border: 1px solid var(--at-line); border-radius: 18px; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.at-postnav__a.is-next { flex-direction: row-reverse; text-align: left; }
.at-postnav__a:hover { border-color: var(--at-accent); box-shadow: 0 18px 30px -22px rgba(10, 35, 87, .5); transform: translateY(-2px); }
.at-postnav__img { flex: 0 0 76px; width: 76px; height: 64px; border-radius: 12px; overflow: hidden; background: #eef2fb; }
.at-postnav__img img { width: 100%; height: 100%; object-fit: cover; }
.at-postnav__txt { min-width: 0; }
.at-postnav__txt small { display: block; margin-bottom: 4px; color: var(--at-muted); font-size: 12px; font-weight: 700; }
.at-postnav__txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--at-primary); font-size: 14px; line-height: 1.7; }
/* comments */
.at-comments { margin-top: 22px; }
.at-comments__title, .at-cform__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--at-ink); font-size: 19px; font-weight: 900; }
.at-comments__title svg, .at-cform__title svg { color: var(--at-primary); }
.at-comments__list, .at-comments__list .children { margin: 0; padding: 0; list-style: none; }
.at-comments__list .children { margin-inline-start: 28px; }
.at-comments__list .comment-body { margin-bottom: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--at-line); border-radius: 16px; }
.at-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.at-comments__list .comment-author img { border-radius: 50%; }
.at-comments__list .says { display: none; }
.at-comments__list .comment-metadata { margin: 2px 0 8px; font-size: 12px; }
.at-comments__list .comment-metadata a { color: var(--at-muted); text-decoration: none; }
.at-comments__list .reply a { font-size: 12.5px; font-weight: 800; color: var(--at-primary); }
.at-comments__closed { color: var(--at-muted); }
.at-cform { padding: 24px 26px; background: #fff; border: 1px solid var(--at-line); border-radius: var(--at-radius); box-shadow: var(--at-shadow); }
.at-cform__note { margin: 0 0 14px; color: var(--at-muted); font-size: 13px; }
.at-cform__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.at-cform__form > p { margin: 0; }
.at-cform__full, .at-cform__form .form-submit, .at-cform__form .logged-in-as, .at-cform__form .at-cform__note, .at-cform__form .comment-notes { grid-column: 1 / -1; }
.at-cform label { display: block; margin-bottom: 6px; color: var(--at-ink); font-size: 13px; font-weight: 700; }
.at-cform .required { color: #c62828; }
.at-cform input[type="text"], .at-cform input[type="email"], .at-cform input[type="url"], .at-cform textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--at-line); border-radius: 14px; background: #f8fafd; color: var(--at-ink); font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.at-cform textarea { min-height: 150px; resize: vertical; }
.at-cform input:focus, .at-cform textarea:focus { outline: 0; border-color: var(--at-primary); background: #fff; box-shadow: 0 0 0 4px rgba(10, 35, 87, .1); }
.at-cform .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.at-cform .comment-form-cookies-consent label { margin: 0; font-weight: 500; color: var(--at-muted); }
.at-cform .comment-form-cookies-consent input { width: 18px; height: 18px; accent-color: var(--at-primary); }
.at-cform .form-submit .at-btn { min-width: 170px; }
.at-cform .logged-in-as { font-size: 13px; color: var(--at-muted); }
/* table of contents (built by main.js) */
.at-toc { background: #fff; border: 1px solid var(--at-line); border-radius: 18px; box-shadow: var(--at-shadow); overflow: hidden; }
.at-toc__h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; border: 0; background: var(--at-primary); color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; text-align: right; cursor: default; }
.at-toc__h .n { margin-inline-start: auto; padding: 1px 10px; border-radius: 999px; background: var(--at-accent); color: var(--at-ink); font-size: 11.5px; }
.at-toc__h .chev { display: none; transition: transform .2s; }
.at-toc__body { max-height: calc(100vh - 220px); overflow-y: auto; padding: 8px 6px 12px; scrollbar-width: thin; }
.at-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.at-toc li.l2 { counter-increment: toc; }
.at-toc a { position: relative; display: block; padding: 7px 10px; border-radius: 10px; color: #4b5563; font-size: 13px; line-height: 1.7; text-decoration: none; transition: background .15s, color .15s; }
.at-toc li.l2 > a { display: flex; gap: 8px; font-weight: 700; color: var(--at-ink); }
.at-toc li.l2 > a::before { content: counter(toc); flex: 0 0 22px; height: 22px; border-radius: 7px; background: #eef2fb; color: var(--at-primary); font-size: 11px; font-weight: 800; text-align: center; line-height: 22px; }
.at-toc li.l3 > a { padding-inline-start: 40px; font-size: 12.5px; }
.at-toc li.l3 > a::before { content: ""; position: absolute; inset-inline-start: 24px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #cbd3e1; }
.at-toc a:hover { background: #f4f7fd; color: var(--at-primary); }
.at-toc a.is-active { background: rgba(255, 215, 0, .22); color: var(--at-ink); }
.at-toc li.l2 > a.is-active::before { background: var(--at-accent); color: var(--at-ink); }
.at-toc li.l3 > a.is-active::before { background: var(--at-accent); }
.at-toc__bar { height: 3px; background: #eef2fb; }
.at-toc__bar i { display: block; width: 0; height: 100%; background: var(--at-accent); }
.at-post__side .asp-wrap { margin-bottom: 16px; }
@media (min-width: 1200px) {
	.at-post__grid { max-width: none; grid-template-columns: 270px minmax(0, 1fr) 300px; align-items: start; }
	.at-post:not(.has-side) .at-post__grid { grid-template-columns: 270px minmax(0, 1fr); max-width: 1130px; }
	.at-post__toc:not([hidden]), .at-post__stick { position: sticky; top: 24px; }
	body.admin-bar .at-post__toc:not([hidden]), body.admin-bar .at-post__stick { top: 56px; }
	.at-post__toc[hidden] + .at-post__main { grid-column: 1 / 3; }
	.at-post__side { grid-column: 3; }
}
@media (max-width: 1199px) {
	.at-post__side { max-width: 860px; }
	.at-post__side .at-post__stick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
	.at-post__side .asp-wrap { margin: 0; }
	.at-toc__h { cursor: pointer; }
	.at-toc__h .chev { display: inline-block; }
	.at-toc__body { display: none; max-height: 60vh; }
	.at-toc.is-open .at-toc__body { display: block; }
	.at-toc.is-open .at-toc__h .chev { transform: rotate(180deg); }
}
@media (max-width: 767px) {
	.at-post { padding-top: 16px; }
	.at-post__img { border-radius: 16px; margin-bottom: 18px; }
	.at-post__img img { aspect-ratio: 16 / 9; }
	.at-post__body { padding: 20px 16px; font-size: 15px; }
	.at-post__body > p { text-align: right; }
	.at-post__side .at-post__stick { grid-template-columns: 1fr; }
	.at-postnav { grid-template-columns: 1fr; }
	.at-cform { padding: 18px 16px; }
	.at-cform__form { grid-template-columns: 1fr; }
	.at-post__share span:first-child { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .at-postnav__a, .at-toc__h .chev { transition: none; } .at-postnav__a:hover { transform: none; } }
