/*
Theme Name: A3tal Pro
Theme URI: https://a3tal.com/
Author: A3tal.com
Author URI: https://a3tal.com/
Description: قالب عربي RTL احترافي لموقع أعطال.كوم، مخصص لمحتوى أعطال السيارات، أكواد DTC، الصيانة والزيوت، مع تصميم سريع ومتجاوب.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: a3tal-pro
*/

:root {
  --a3-bg: #f5f7fa;
  --a3-surface: #ffffff;
  --a3-text: #111827;
  --a3-muted: #667085;
  --a3-border: #e5e7eb;
  --a3-primary: #0b1f33;
  --a3-primary-2: #102d49;
  --a3-accent: #ee2b1c;
  --a3-accent-2: #ff4b2b;
  --a3-warning: #f59e0b;
  --a3-success: #16a34a;
  --a3-radius: 18px;
  --a3-radius-sm: 12px;
  --a3-shadow: 0 12px 35px rgba(15, 23, 42, .08);
  --a3-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  background: var(--a3-bg);
  color: var(--a3-text);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--a3-accent); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:where(a, button, input, textarea, select):focus-visible { outline:3px solid rgba(238,43,28,.35); outline-offset:3px; }
.a3-container { width: min(calc(100% - 32px), var(--a3-container)); margin-inline: auto; }
.a3-section { padding: 34px 0; }
.a3-section--tight { padding: 20px 0; }
.a3-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.a3-section-head h2 { margin:0; font-size:clamp(1.35rem, 2vw, 1.9rem); line-height:1.35; }
.a3-section-head a { color: var(--a3-accent); font-weight:700; font-size:.92rem; }
.a3-card { background:var(--a3-surface); border:1px solid var(--a3-border); border-radius:var(--a3-radius); box-shadow:0 4px 14px rgba(15,23,42,.04); overflow:hidden; }
.a3-sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.a3-skip-link { position:fixed; top:12px; right:12px; z-index:99999; transform:translateY(-160%); background:#fff; color:#000; padding:10px 16px; border-radius:8px; box-shadow:var(--a3-shadow); }
.a3-skip-link:focus { transform:translateY(0); }

/* Header */
.a3-site-header { position:sticky; top:0; z-index:1000; background:rgba(255,255,255,.96); backdrop-filter:blur(14px); border-bottom:1px solid rgba(229,231,235,.9); }
.admin-bar .a3-site-header { top:32px; }
.a3-header-row { min-height:76px; display:flex; align-items:center; gap:26px; }
.a3-brand { display:flex; align-items:center; gap:10px; flex:0 0 auto; font-weight:900; font-size:1.42rem; color:var(--a3-primary); }
.a3-brand-mark { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:var(--a3-accent); color:#fff; box-shadow:0 8px 20px rgba(238,43,28,.22); }
.a3-brand-mark svg { width:25px; height:25px; }
.custom-logo-link { display:flex; align-items:center; }
.custom-logo { max-height:48px; width:auto; }
.a3-primary-nav { flex:1; min-width:0; }
.a3-primary-nav ul { list-style:none; margin:0; padding:0; display:flex; align-items:center; justify-content:flex-start; gap:4px; }
.a3-primary-nav li { position:relative; }
.a3-primary-nav a { display:block; padding:11px 9px; font-size:.9rem; font-weight:700; color:#283548; border-radius:9px; white-space:nowrap; }
.a3-primary-nav a:hover, .a3-primary-nav .current-menu-item>a, .a3-primary-nav .current-menu-ancestor>a { background:#f2f4f7; color:var(--a3-accent); }
.a3-primary-nav .sub-menu { position:absolute; top:100%; right:0; min-width:240px; display:none; padding:8px; background:#fff; border:1px solid var(--a3-border); border-radius:12px; box-shadow:var(--a3-shadow); }
.a3-primary-nav li:hover>.sub-menu, .a3-primary-nav li:focus-within>.sub-menu { display:block; }
.a3-primary-nav .sub-menu li { width:100%; }
.a3-primary-nav .sub-menu a { white-space:normal; }
.a3-header-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.a3-icon-btn { width:44px; height:44px; border-radius:50%; border:1px solid var(--a3-border); background:#fff; display:grid; place-items:center; color:var(--a3-primary); }
.a3-icon-btn:hover { border-color:var(--a3-accent); color:var(--a3-accent); }
.a3-icon-btn svg { width:20px; height:20px; }
.a3-menu-toggle { display:none; }
.a3-mobile-panel { display:none; }

/* Search overlay */
.a3-search-overlay { position:fixed; inset:0; z-index:1100; background:rgba(8,20,34,.74); backdrop-filter:blur(4px); display:none; align-items:flex-start; justify-content:center; padding:12vh 20px 20px; }
.a3-search-overlay.is-open { display:flex; }
.a3-search-box { width:min(720px,100%); background:#fff; padding:18px; border-radius:18px; box-shadow:0 30px 80px rgba(0,0,0,.25); }
.a3-search-box-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.a3-search-box-top strong { font-size:1.1rem; }
.a3-search-form { display:flex; gap:8px; }
.a3-search-form input[type="search"] { flex:1; min-width:0; border:1px solid var(--a3-border); border-radius:12px; min-height:50px; padding:0 16px; outline:none; }
.a3-search-form input[type="search"]:focus { border-color:var(--a3-accent); box-shadow:0 0 0 3px rgba(238,43,28,.09); }
.a3-search-form button { min-width:110px; border:0; border-radius:12px; background:var(--a3-accent); color:#fff; font-weight:800; }

/* Hero */
.a3-hero { position:relative; overflow:hidden; color:#fff; background:radial-gradient(circle at 14% 24%, rgba(238,43,28,.24), transparent 34%), linear-gradient(118deg, #07131f 0%, #0c2339 52%, #173d5e 100%); }
.a3-hero.has-bg { background-size:cover; background-position:center; }
.a3-hero.has-bg::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,15,25,.95),rgba(5,15,25,.74),rgba(5,15,25,.54)); }
.a3-hero::after { content:""; position:absolute; width:620px; height:620px; left:-220px; bottom:-430px; border:1px solid rgba(255,255,255,.08); border-radius:50%; box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 150px rgba(255,255,255,.018); }
.a3-hero-inner { position:relative; z-index:2; min-height:430px; display:grid; grid-template-columns:1.15fr .85fr; align-items:center; gap:50px; padding:56px 0; }
.a3-hero-copy { max-width:700px; }
.a3-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:.86rem; font-weight:800; color:#ffd9d5; background:rgba(238,43,28,.14); border:1px solid rgba(255,255,255,.11); padding:7px 12px; border-radius:999px; margin-bottom:14px; }
.a3-hero h1 { margin:0 0 12px; font-size:clamp(2rem,5vw,4rem); line-height:1.12; letter-spacing:-.02em; }
.a3-hero p { margin:0 0 25px; max-width:680px; color:#d7e2ec; font-size:clamp(1rem,1.6vw,1.2rem); }
.a3-hero-search { display:flex; max-width:660px; background:#fff; padding:6px; border-radius:14px; box-shadow:0 18px 35px rgba(0,0,0,.22); }
.a3-hero-search input { flex:1; min-width:0; height:52px; border:0; outline:0; padding:0 16px; color:#1f2937; background:transparent; }
.a3-hero-search button { width:58px; border:0; border-radius:10px; background:var(--a3-accent); color:#fff; display:grid; place-items:center; }
.a3-hero-search button svg { width:22px; }
.a3-hero-visual { display:grid; place-items:center; }
.a3-diagnostic-card { width:min(390px,100%); padding:26px; border:1px solid rgba(255,255,255,.13); border-radius:26px; background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.05)); box-shadow:0 30px 70px rgba(0,0,0,.28); backdrop-filter:blur(10px); }
.a3-diagnostic-top { display:flex; justify-content:space-between; align-items:center; color:#b9cad7; font-size:.82rem; }
.a3-diagnostic-code { margin:18px 0 8px; color:#fff; font-size:3rem; font-weight:900; letter-spacing:.05em; direction:ltr; text-align:left; }
.a3-diagnostic-status { display:flex; align-items:center; gap:8px; color:#fecaca; font-weight:700; }
.a3-diagnostic-status i { width:9px; height:9px; border-radius:50%; background:var(--a3-accent); box-shadow:0 0 0 6px rgba(238,43,28,.14); }
.a3-diagnostic-lines { display:grid; gap:9px; margin-top:25px; }
.a3-diagnostic-lines span { display:block; height:9px; border-radius:99px; background:rgba(255,255,255,.11); }
.a3-diagnostic-lines span:nth-child(2) { width:78%; }
.a3-diagnostic-lines span:nth-child(3) { width:60%; }

/* Featured cards */
.a3-featured-wrap { margin-top:-46px; position:relative; z-index:10; }
.a3-featured-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.a3-feature-card { min-width:0; }
.a3-card-thumb { aspect-ratio:16/9; background:linear-gradient(135deg,#dfe7ee,#b7c5d2); overflow:hidden; }
.a3-card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.a3-feature-card:hover .a3-card-thumb img, .a3-post-card:hover .a3-card-thumb img { transform:scale(1.035); }
.a3-card-placeholder { width:100%; height:100%; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#0e2841,#1f4f72); }
.a3-card-placeholder svg { width:52px; height:52px; opacity:.86; }
.a3-card-body { padding:15px 16px 17px; }
.a3-card-kicker { display:block; margin-bottom:7px; color:var(--a3-accent); font-size:.78rem; font-weight:800; }
.a3-card-title { margin:0; font-size:1rem; line-height:1.55; }
.a3-card-title a:hover { color:var(--a3-accent); }
.a3-card-excerpt { margin:8px 0 0; color:var(--a3-muted); font-size:.86rem; line-height:1.7; }

/* Category/service */
.a3-service-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.a3-service { text-align:center; padding:18px 10px; transition:transform .2s ease,border-color .2s ease; }
.a3-service:hover { transform:translateY(-3px); border-color:#ccd5df; }
.a3-service-icon { width:54px; height:54px; border-radius:16px; margin:0 auto 11px; display:grid; place-items:center; background:#f2f5f8; color:var(--a3-primary); }
.a3-service-icon svg { width:28px; height:28px; }
.a3-service strong { display:block; font-size:.9rem; line-height:1.45; }

/* DTC */
.a3-dtc-panel { padding:22px; }
.a3-dtc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.a3-dtc-card { position:relative; padding:20px; border:1px solid var(--a3-border); border-radius:15px; background:#fbfcfd; overflow:hidden; }
.a3-dtc-card::after { content:""; position:absolute; width:100px; height:100px; border-radius:50%; background:rgba(238,43,28,.045); left:-28px; bottom:-48px; }
.a3-dtc-code { direction:ltr; display:block; color:var(--a3-accent); font-size:1.55rem; font-weight:900; letter-spacing:.04em; margin-bottom:6px; }
.a3-dtc-card h3 { margin:0 0 8px; font-size:.95rem; line-height:1.55; }
.a3-dtc-card a { color:var(--a3-muted); font-size:.82rem; font-weight:700; }

/* Home lists */
.a3-home-columns { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:18px; }
.a3-column-box { padding:20px; }
.a3-column-title { display:flex; align-items:center; gap:8px; margin:0 0 16px; font-size:1.1rem; }
.a3-mini-list { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.a3-mini-item { display:grid; grid-template-columns:80px 1fr; gap:12px; align-items:center; }
.a3-mini-thumb { width:80px; aspect-ratio:1.2; border-radius:10px; overflow:hidden; background:#e7edf2; }
.a3-mini-thumb img { width:100%; height:100%; object-fit:cover; }
.a3-mini-item h3 { margin:0 0 4px; font-size:.89rem; line-height:1.5; }
.a3-mini-meta { color:var(--a3-muted); font-size:.75rem; }
.a3-ranked { counter-reset:rank; }
.a3-ranked .a3-mini-item { position:relative; padding-inline-end:28px; }
.a3-ranked .a3-mini-item::before { counter-increment:rank; content:counter(rank); position:absolute; right:0; top:50%; transform:translateY(-50%); width:21px; height:21px; display:grid; place-items:center; border-radius:50%; background:var(--a3-accent); color:#fff; font-size:.7rem; font-weight:900; }

/* CTA */
.a3-cta { overflow:hidden; color:#fff; background:radial-gradient(circle at 12% 20%,rgba(238,43,28,.19),transparent 30%),linear-gradient(120deg,#091a2a,#0b2741); border:1px solid rgba(255,255,255,.05); border-radius:22px; box-shadow:var(--a3-shadow); }
.a3-cta-inner { display:grid; grid-template-columns:1fr auto; align-items:center; gap:30px; padding:30px 34px; }
.a3-cta h2 { margin:0 0 7px; font-size:1.55rem; }
.a3-cta p { margin:0; color:#c6d5df; }
.a3-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:0 20px; border-radius:11px; font-weight:800; border:1px solid transparent; transition:.2s ease; }
.a3-btn--accent { background:var(--a3-accent); color:#fff; }
.a3-btn--accent:hover { color:#fff; transform:translateY(-1px); background:#d92316; }
.a3-btn--outline { border-color:var(--a3-border); background:#fff; }

/* Archive/cards */
.a3-page-hero { padding:42px 0 28px; background:#fff; border-bottom:1px solid var(--a3-border); }
.a3-page-hero h1 { margin:0 0 8px; font-size:clamp(1.8rem,4vw,2.7rem); line-height:1.25; }
.a3-page-hero p { margin:0; color:var(--a3-muted); }
.a3-post-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.a3-post-card { min-width:0; }
.a3-post-card .a3-card-body { padding:16px 17px 19px; }
.a3-post-meta { display:flex; gap:10px; flex-wrap:wrap; color:var(--a3-muted); font-size:.76rem; margin-top:11px; }
.a3-pagination { margin-top:28px; display:flex; justify-content:center; }
.a3-pagination .nav-links { display:flex; gap:6px; flex-wrap:wrap; }
.a3-pagination .page-numbers { min-width:40px; height:40px; padding:0 12px; display:grid; place-items:center; background:#fff; border:1px solid var(--a3-border); border-radius:9px; }
.a3-pagination .current { background:var(--a3-primary); color:#fff; border-color:var(--a3-primary); }
.a3-empty { padding:42px; text-align:center; }

/* Single article */
.a3-breadcrumbs { font-size:.8rem; color:var(--a3-muted); margin-bottom:14px; }
.a3-breadcrumbs a { color:#526170; }
.a3-breadcrumbs span { margin:0 5px; }
.a3-article-head { background:#fff; padding:40px 0 30px; border-bottom:1px solid var(--a3-border); }
.a3-article-head-inner { max-width:920px; margin-inline:auto; text-align:center; }
.a3-article-category { display:inline-flex; padding:5px 11px; border-radius:999px; background:#fff0ef; color:var(--a3-accent); font-size:.78rem; font-weight:800; margin-bottom:12px; }
.a3-article-head h1 { margin:0 0 15px; font-size:clamp(2rem,4.5vw,3.45rem); line-height:1.25; letter-spacing:-.02em; }
.a3-article-deck { margin:0 auto 16px; max-width:790px; color:var(--a3-muted); font-size:1.05rem; }
.a3-article-meta { display:flex; justify-content:center; flex-wrap:wrap; gap:14px; color:var(--a3-muted); font-size:.8rem; }
.a3-featured-image { width:min(calc(100% - 32px),1080px); margin:28px auto 0; border-radius:20px; overflow:hidden; box-shadow:var(--a3-shadow); background:#e5ebf0; }
.a3-featured-image img { display:block; width:100%; max-height:590px; object-fit:cover; }
.a3-article-layout { width:min(calc(100% - 32px),var(--a3-container)); margin:34px auto; display:grid; grid-template-columns:250px minmax(0,760px); justify-content:center; gap:30px; align-items:start; direction:ltr; }
.a3-article-layout>* { direction:rtl; }
.a3-toc-wrap { position:sticky; top:104px; }
.a3-toc { padding:18px; }
.a3-toc h2 { font-size:.95rem; margin:0 0 12px; }
.a3-toc-list:empty { display:none; }
.a3-toc-noscript { margin:0; color:var(--a3-muted); font-size:.78rem; }
.a3-toc-list { list-style:none; margin:0; padding:0; display:grid; gap:5px; }
.a3-toc-list a { display:block; padding:6px 8px; border-radius:7px; color:#536171; font-size:.78rem; line-height:1.5; }
.a3-toc-list a:hover { background:#f4f6f8; color:var(--a3-accent); }
.a3-toc-list .is-h3 { padding-inline-start:20px; font-size:.74rem; }
.a3-share { display:flex; gap:7px; margin-top:10px; }
.a3-share a { width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--a3-border); border-radius:50%; font-size:.75rem; font-weight:900; }
.a3-article { background:#fff; border:1px solid var(--a3-border); border-radius:var(--a3-radius); padding:clamp(22px,4vw,42px); box-shadow:0 8px 25px rgba(15,23,42,.04); overflow:hidden; }
.a3-entry-content { font-size:1.04rem; color:#273343; overflow-wrap:anywhere; }
.a3-entry-content>*:first-child { margin-top:0; }
.a3-entry-content h2 { scroll-margin-top:110px; margin:42px 0 15px; padding-top:8px; font-size:1.55rem; line-height:1.4; color:#111827; }
.a3-entry-content h3 { scroll-margin-top:110px; margin:30px 0 12px; font-size:1.2rem; line-height:1.45; color:#172231; }
.a3-entry-content p { margin:0 0 18px; }
.a3-entry-content ul,.a3-entry-content ol { padding-inline-start:1.3rem; margin:0 0 20px; }
.a3-entry-content li { margin-bottom:7px; }
.a3-entry-content blockquote { margin:24px 0; padding:16px 18px; border-right:4px solid var(--a3-accent); background:#fff7f6; border-radius:10px; }
.a3-entry-content table { width:100%; max-width:100%; border-collapse:collapse; margin:24px 0; font-size:.9rem; display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.a3-entry-content th,.a3-entry-content td { padding:11px 12px; border:1px solid var(--a3-border); text-align:right; }
.a3-entry-content th { background:#f4f6f8; }
.a3-entry-content img { border-radius:12px; }
.a3-entry-content .wp-block-image { margin:24px 0; }
.a3-entry-content a { color:#0b63a7; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.a3-entry-content .wp-block-button__link { color:#fff; text-decoration:none; }
.a3-author-box { margin-top:32px; padding:20px; display:grid; grid-template-columns:70px 1fr; gap:16px; align-items:center; background:#f7f9fb; border:1px solid var(--a3-border); border-radius:15px; }
.a3-author-box img { border-radius:50%; }
.a3-author-box h2 { font-size:1rem; margin:0 0 4px; }
.a3-author-box p { margin:0; color:var(--a3-muted); font-size:.86rem; }
.a3-related { margin-top:34px; }
.a3-related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }

/* Page */
.a3-page-shell { width:min(calc(100% - 32px),920px); margin:34px auto; }
.a3-page-shell .a3-article { padding:clamp(22px,4vw,44px); }

/* Comments */
.a3-comments { margin-top:30px; }
.a3-comments ol { list-style:none; padding:0; }
.a3-comments .comment-body { padding:18px; border:1px solid var(--a3-border); border-radius:12px; margin-bottom:12px; }
.a3-comments input,.a3-comments textarea { width:100%; border:1px solid var(--a3-border); border-radius:9px; padding:10px 12px; }
.a3-comments .submit { width:auto; border:0; background:var(--a3-primary); color:#fff; font-weight:700; padding:10px 18px; }

/* Footer */
.a3-site-footer { margin-top:40px; background:#071827; color:#d7e1e9; }
.a3-footer-main { padding:44px 0 32px; display:grid; grid-template-columns:1.35fr 1fr 1fr 1fr; gap:32px; }
.a3-footer-title { color:#fff; font-size:1rem; margin:0 0 14px; }
.a3-footer-brand { font-size:1.4rem; color:#fff; font-weight:900; margin-bottom:9px; }
.a3-site-footer p { color:#aebdca; font-size:.86rem; margin:0; }
.a3-footer-links { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.a3-footer-links a { color:#c0ccd6; font-size:.86rem; }
.a3-footer-contact { display:grid; gap:8px; font-size:.86rem; color:#c0ccd6; }
.a3-footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding:16px 0; display:flex; justify-content:space-between; gap:16px; color:#8fa1af; font-size:.78rem; }

/* 404 */
.a3-404 { min-height:55vh; display:grid; place-items:center; text-align:center; }
.a3-404-code { font-size:clamp(5rem,15vw,10rem); line-height:1; font-weight:900; color:var(--a3-accent); opacity:.13; }
.a3-404 h1 { margin:-40px 0 8px; font-size:2rem; }
.a3-404 p { color:var(--a3-muted); }

/* Utility */
.alignwide { margin-left:-70px; margin-right:-70px; max-width:calc(100% + 140px); width:auto; }
.alignfull { width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }
.wp-caption { max-width:100%; }
.sticky { outline:2px solid rgba(238,43,28,.12); }
.bypostauthor { display:block; }
.gallery-caption { font-size:.85rem; }

@media (max-width: 1080px) {
  .a3-primary-nav { display:none; }
  .a3-menu-toggle { display:grid; }
  .a3-mobile-panel { position:fixed; top:77px; right:0; bottom:0; width:min(360px,92vw); background:#fff; border-left:1px solid var(--a3-border); box-shadow:-20px 0 50px rgba(15,23,42,.12); padding:18px; overflow:auto; transform:translateX(105%); transition:transform .25s ease; display:block; z-index:1050; }
  .admin-bar .a3-mobile-panel { top:109px; }
  .a3-mobile-panel.is-open { transform:translateX(0); }
  .a3-mobile-panel ul { list-style:none; margin:0; padding:0; }
  .a3-mobile-panel a { display:flex; align-items:center; min-height:44px; padding:10px 6px; border-bottom:1px solid #f0f2f4; font-weight:700; }
  .a3-mobile-panel .sub-menu { padding-inline-start:15px; }
  .a3-hero-inner { grid-template-columns:1fr .65fr; }
  .a3-service-grid { grid-template-columns:repeat(3,1fr); }
  .a3-home-columns { grid-template-columns:1fr 1fr; }
  .a3-home-columns>.a3-column-box:first-child { grid-column:1/-1; }
  .a3-article-layout { grid-template-columns:220px minmax(0,1fr); }
}

@media (max-width: 820px) {
  .admin-bar .a3-site-header { top:46px; }
  .admin-bar .a3-mobile-panel { top:123px; }
  .a3-header-row { min-height:68px; gap:12px; }
  .a3-brand { font-size:1.15rem; }
  .a3-brand-mark { width:38px; height:38px; }
  .a3-header-actions { margin-inline-start:auto; }
  .a3-hero-inner { min-height:auto; grid-template-columns:1fr; padding:44px 0 76px; }
  .a3-hero-visual { display:none; }
  .a3-featured-grid { grid-template-columns:repeat(2,1fr); }
  .a3-post-grid { grid-template-columns:repeat(2,1fr); }
  .a3-dtc-grid { grid-template-columns:1fr; }
  .a3-article-layout { display:block; width:min(calc(100% - 24px),760px); }
  .a3-toc-wrap { position:static; margin-bottom:16px; }
  .a3-toc { padding:15px; }
  .a3-toc-list { max-height:210px; overflow:auto; }
  .a3-related-grid { grid-template-columns:1fr 1fr; }
  .a3-footer-main { grid-template-columns:1fr 1fr; }
  .alignwide { margin-left:0; margin-right:0; max-width:100%; }
}

@media (max-width: 560px) {
  .a3-container { width:min(calc(100% - 22px),var(--a3-container)); }
  .a3-hero h1 { font-size:2.15rem; }
  .a3-hero p { font-size:.96rem; }
  .a3-hero-search input { font-size:.86rem; padding:0 10px; }
  .a3-featured-wrap { margin-top:-38px; }
  .a3-featured-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .a3-featured-grid .a3-card-body { padding:11px; }
  .a3-featured-grid .a3-card-title { font-size:.86rem; }
  .a3-featured-grid .a3-card-excerpt { display:none; }
  .a3-service-grid { grid-template-columns:repeat(3,1fr); gap:8px; }
  .a3-service { padding:14px 5px; }
  .a3-service-icon { width:46px; height:46px; }
  .a3-service strong { font-size:.77rem; }
  .a3-home-columns { grid-template-columns:1fr; }
  .a3-home-columns>.a3-column-box:first-child { grid-column:auto; }
  .a3-cta-inner { grid-template-columns:1fr; padding:24px 20px; }
  .a3-btn { width:100%; }
  .a3-post-grid { grid-template-columns:1fr; }
  .a3-article-head { padding-top:28px; }
  .a3-article-head h1 { font-size:1.85rem; }
  .a3-article-layout { width:min(calc(100% - 16px),760px); margin-top:18px; }
  .a3-article { padding:20px 16px; border-radius:14px; }
  .a3-entry-content { font-size:1rem; }
  .a3-entry-content h2 { font-size:1.35rem; }
  .a3-related-grid { grid-template-columns:1fr; }
  .a3-author-box { grid-template-columns:54px 1fr; }
  .a3-footer-main { grid-template-columns:1fr; gap:24px; }
  .a3-footer-bottom { flex-direction:column; text-align:center; }
  .a3-search-form { flex-direction:column; }
  .a3-search-form button { min-height:48px; }
}


/* Respect the visitor's motion preference and avoid unnecessary animation work. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
  .a3-feature-card:hover .a3-card-thumb img, .a3-post-card:hover .a3-card-thumb img, .a3-service:hover, .a3-btn--accent:hover { transform:none; }
}
