/* AgesCalculator theme styles */
:root {
	--agc-primary: #1f6fd1;
	--agc-primary-d: color-mix(in srgb, var(--agc-primary) 80%, #000);
	--agc-primary-l: color-mix(in srgb, var(--agc-primary) 9%, #fff);
	--agc-ink: #172033;
	--agc-ink-2: #4a5568;
	--agc-line: #dde3ec;
	--agc-bg: #f4f7fb;
	--agc-card: #fff;
	--agc-ok: #0f8a5f;
	--agc-warn: #b45309;
	--agc-err: #c53030;
	--agc-radius: 12px;
	--agc-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
	--agc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--agc-font); font-size: 16px; line-height: 1.65; color: var(--agc-ink); background: var(--agc-bg); }
img { max-width: 100%; height: auto; }
a { color: var(--agc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.4em 0 .5em; color: var(--agc-ink); }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: .2em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; background: #fff; padding: 8px 14px; border-radius: 6px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--agc-primary) 45%, transparent); outline-offset: 2px; }

.agc-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.agc-narrow { max-width: 860px; }

/* Header */
.agc-header { background: var(--agc-primary); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.admin-bar .agc-header { top: 32px; }
.agc-header-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.agc-logo, .custom-logo-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.agc-logo img { width: 38px; height: 38px; border-radius: 9px; background: #fff; padding: 3px; }
.custom-logo { max-height: 48px; width: auto; }
.agc-logo-text { font-size: 1.32rem; font-weight: 500; letter-spacing: -.2px; color: #fff; }
.agc-logo-text b { font-weight: 800; }
.agc-logo-text small { font-size: .78em; opacity: .8; font-weight: 500; }
.agc-menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.agc-menu > li { position: relative; }
.agc-menu a { display: block; color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .98rem; }
.agc-menu a:hover, .agc-menu .current-menu-item > a { background: rgba(255, 255, 255, .16); text-decoration: none; }
.agc-menu .menu-item-has-children > a::after { content: ""; display: inline-block; margin-inline-start: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.agc-menu .sub-menu { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; background: #fff; border-radius: 10px; box-shadow: var(--agc-shadow), 0 12px 30px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.agc-menu li:hover > .sub-menu, .agc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.agc-menu .sub-menu a { color: var(--agc-ink); font-weight: 500; padding: 8px 12px; }
.agc-menu .sub-menu a:hover { background: var(--agc-primary-l); color: var(--agc-primary); }
.agc-nav-toggle { display: none; background: transparent; border: 0; color: #fff; padding: 6px; cursor: pointer; border-radius: 8px; }

/* Hero */
.agc-hero { background: linear-gradient(180deg, var(--agc-primary-l), var(--agc-bg) 85%); padding: 30px 0 34px; }
.agc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.agc-hero h1 { margin-bottom: .3em; }
.agc-lead { font-size: 1.07rem; color: var(--agc-ink-2); max-width: 760px; }

/* Calculator box */
.agc-box { background: var(--agc-card); border: 1px solid var(--agc-line); border-radius: var(--agc-radius); box-shadow: var(--agc-shadow); overflow: hidden; margin: 18px 0; }
.agc-box-head { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--agc-primary-l); border-bottom: 1px solid var(--agc-line); color: var(--agc-primary-d); font-weight: 700; }
.agc-form { padding: 20px; }
.agc-fields { display: grid; gap: 14px; }
.agc-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 6px 16px; }
.agc-row[hidden] { display: none !important; }
.agc-row > label { font-weight: 600; font-size: .96rem; color: var(--agc-ink); }
.agc-row-check { grid-template-columns: 1fr; }
.agc-input { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agc-input input, .agc-input select, .agc-input textarea, .agc-rows input, .agc-rows select, .agc-contact input, .agc-contact textarea, .agc-find-wrap input {
	flex: 1 1 160px; min-width: 0; height: 46px; padding: 0 12px; border: 1.5px solid #cbd4e1; border-radius: 9px; background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.agc-input textarea, .agc-contact textarea { height: auto; padding: 10px 12px; resize: vertical; }
.agc-input input:focus, .agc-input select:focus, .agc-input textarea:focus, .agc-rows input:focus, .agc-rows select:focus, .agc-contact input:focus, .agc-contact textarea:focus, .agc-find-wrap input:focus { border-color: var(--agc-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--agc-primary) 18%, transparent); outline: none; }
.agc-input select { max-width: 100%; }
.agc-pair { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; }
.agc-input .agc-pair input { flex: 1 1 auto; width: 100%; min-width: 0; }
.agc-suffix { color: var(--agc-ink-2); font-size: .92rem; white-space: nowrap; }
.agc-help { grid-column: 2; margin: 0; font-size: .86rem; color: var(--agc-ink-2); }
.agc-check { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.agc-check input { width: 19px; height: 19px; accent-color: var(--agc-primary); }
.agc-actions { display: flex; gap: 10px; margin-top: 20px; padding-inline-start: 226px; flex-wrap: wrap; }
.agc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--agc-primary); color: #fff !important; border: 0; border-radius: 9px; padding: 0 28px; height: 48px; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-decoration: none !important; box-shadow: 0 2px 6px color-mix(in srgb, var(--agc-primary) 35%, transparent); transition: background .15s, transform .05s; }
.agc-btn:hover { background: var(--agc-primary-d); }
.agc-btn:active { transform: translateY(1px); }
.agc-btn-clear { background: #eef1f6; color: var(--agc-ink-2); border: 0; border-radius: 9px; padding: 0 20px; height: 48px; font-weight: 600; cursor: pointer; }
.agc-btn-clear:hover { background: #e2e7ef; }
.agc-swap-row { grid-template-columns: 210px auto; }
.agc-swap-row .agc-swap { grid-column: 2; justify-self: start; }
.agc-swap { background: #fff; border: 1.5px solid var(--agc-line); border-radius: 8px; padding: 6px 14px; cursor: pointer; font-weight: 600; color: var(--agc-primary); }

/* Result */
.agc-result { margin: 0 20px 20px; padding: 20px; border-radius: 10px; background: #f0f7ff; border: 1px solid color-mix(in srgb, var(--agc-primary) 25%, #fff); animation: agcIn .25s ease; }
.agc-result.is-error { background: #fff5f5; border-color: #fdd; color: var(--agc-err); }
@keyframes agcIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.agc-res-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--agc-ink-2); font-weight: 700; margin: 0 0 4px; }
.agc-res-main { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--agc-primary-d); line-height: 1.25; margin: 0 0 12px; word-break: break-word; }
.agc-res-main small { font-size: .6em; font-weight: 600; color: var(--agc-ink-2); }
.agc-res-table { width: 100%; border-collapse: collapse; margin: 6px 0 0; background: #fff; border-radius: 8px; overflow: hidden; font-size: .97rem; }
.agc-res-table th, .agc-res-table td { text-align: start; padding: 9px 12px; border-bottom: 1px solid #edf1f6; vertical-align: top; }
.agc-res-table th { font-weight: 600; color: var(--agc-ink-2); width: 50%; }
.agc-res-table thead th { background: #f6f8fb; color: var(--agc-ink); width: auto; }
.agc-res-table tr:last-child td, .agc-res-table tr:last-child th { border-bottom: 0; }
.agc-res-table td { font-weight: 600; }
.agc-res-note { margin: 12px 0 0; font-size: .9rem; color: var(--agc-ink-2); }
.agc-res-scroll { max-height: 360px; overflow: auto; border-radius: 8px; margin-top: 10px; }
.agc-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .85rem; font-weight: 700; background: #e6f6ef; color: var(--agc-ok); }
.agc-tag.warn { background: #fff4e5; color: var(--agc-warn); }
.agc-tag.bad { background: #fdecec; color: var(--agc-err); }
.agc-bar { position: relative; height: 12px; border-radius: 99px; margin: 14px 0 22px; background: linear-gradient(90deg, #60a5fa 0 18%, #34d399 18% 45%, #fbbf24 45% 65%, #f87171 65%); }
.agc-bar i { position: absolute; top: -5px; width: 4px; height: 22px; background: var(--agc-ink); border-radius: 2px; transform: translateX(-50%); }
.agc-pw { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.agc-pw code { flex: 1; background: #fff; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--agc-line); font-size: 1.02rem; word-break: break-all; }
.agc-copy { border: 1px solid var(--agc-line); background: #fff; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 600; color: var(--agc-primary); }

/* Rows (GPA / grade) */
.agc-rows-head, .agc-rowline { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.agc-rows-head { font-size: .85rem; font-weight: 700; color: var(--agc-ink-2); margin-bottom: 6px; }
.agc-rowline { margin-bottom: 8px; }
.agc-rows input, .agc-rows select { width: 100%; }
.agc-del { height: 40px; border: 0; background: #f1f4f8; border-radius: 8px; cursor: pointer; font-size: 1.2rem; color: var(--agc-ink-2); }
.agc-add { background: none; border: 1.5px dashed #b9c4d4; border-radius: 9px; padding: 8px 16px; cursor: pointer; color: var(--agc-primary); font-weight: 600; }
.agc-rows ~ .agc-actions, .agc-sci ~ .agc-actions { padding-inline-start: 0; }

/* Scientific calculator */
.agc-sci { max-width: 560px; }
.agc-sci-screen { position: relative; background: #0f1b2d; color: #fff; border-radius: 12px; padding: 12px 16px 14px; margin-bottom: 14px; }
.agc-sci-expr { min-height: 22px; font-size: .95rem; color: #9fb3cf; text-align: right; overflow-wrap: anywhere; }
.agc-sci-input { width: 100%; background: transparent; border: 0; color: #fff; font-size: 2rem; font-weight: 600; text-align: right; outline: none; padding: 0; }
.agc-sci-mode { position: absolute; top: 10px; left: 14px; font-size: .75rem; font-weight: 700; color: #6ee7b7; letter-spacing: .08em; }
.agc-sci-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.agc-key { height: 48px; border: 0; border-radius: 9px; background: #eef2f7; color: var(--agc-ink); font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .1s; }
.agc-key:hover { background: #e1e7f0; }
.agc-key.k-num { background: #fff; border: 1px solid var(--agc-line); font-size: 1.12rem; }
.agc-key.k-op { background: #dbe8fb; color: var(--agc-primary-d); font-size: 1.2rem; }
.agc-key.k-fn { background: #fde8e8; color: var(--agc-err); }
.agc-key.k-eq { background: var(--agc-primary); color: #fff; font-size: 1.3rem; }
.agc-key.k-eq:hover { background: var(--agc-primary-d); }
.agc-key.is-on { background: #d1fae5; color: var(--agc-ok); }

/* Rating */
.agc-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 24px; font-size: .95rem; color: var(--agc-ink-2); }
.agc-rating-label { font-weight: 600; color: var(--agc-ink); }
.agc-stars { display: inline-flex; position: relative; }
.agc-star { background: none; border: 0; padding: 2px; cursor: pointer; color: #d5dbe5; line-height: 0; }
.agc-stars .agc-star { color: #d5dbe5; }
.agc-stars.has-avg .agc-star.on { color: #f5a524; }
.agc-stars:hover .agc-star { color: #f5a524; }
.agc-stars .agc-star:hover ~ .agc-star { color: #d5dbe5; }
.agc-stars.voted { pointer-events: none; }

/* Layout */
.agc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 22px; padding-bottom: 50px; }
.agc-main { min-width: 0; }
.agc-title { margin-top: .2em; }
.agc-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 8px; padding: 0; font-size: .88rem; color: var(--agc-ink-2); }
.agc-crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: #a0aec0; }
.agc-entry { background: var(--agc-card); border: 1px solid var(--agc-line); border-radius: var(--agc-radius); padding: 8px 30px 22px; font-size: 1.03rem; }
.agc-entry:empty { display: none; }
.agc-entry > :first-child { margin-top: 1em; }
.agc-entry ul, .agc-entry ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.agc-entry li { margin-bottom: .35em; }
.agc-entry table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.agc-entry th, .agc-entry td { border: 1px solid var(--agc-line); padding: 8px 10px; text-align: start; }
.agc-entry blockquote { border-inline-start: 4px solid var(--agc-primary); margin: 1em 0; padding: .3em 1em; background: var(--agc-primary-l); border-radius: 0 8px 8px 0; }
.agc-entry img { border-radius: 10px; }
.agc-entry h3 { color: var(--agc-primary-d); }

/* Sidebar */
.agc-sidebar { min-width: 0; }
.agc-widget { background: var(--agc-card); border: 1px solid var(--agc-line); border-radius: var(--agc-radius); padding: 16px 18px; margin-bottom: 18px; }
.agc-widget-title { display: block; font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.agc-list ul, .agc-popular { list-style: none; margin: 0; padding: 0; }
.agc-list li a { display: block; padding: 5px 8px; margin: 0 -8px; border-radius: 6px; color: var(--agc-ink); font-size: .95rem; }
.agc-list li a:hover { background: var(--agc-primary-l); color: var(--agc-primary); text-decoration: none; }
.agc-list li.is-current a { background: var(--agc-primary-l); color: var(--agc-primary); font-weight: 700; }
.agc-find-wrap { position: relative; display: flex; }
.agc-find-wrap .agc-ico { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.agc-find-wrap input { padding-inline-start: 38px; width: 100%; }
.agc-popular li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--agc-ink); font-weight: 500; }
.agc-popular li a:hover { background: var(--agc-primary-l); text-decoration: none; }
.agc-hidden { display: none !important; }

/* Category icon colors */
.agc-cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.agc-popular .agc-cat-ico { width: 28px; height: 28px; border-radius: 7px; }
.agc-c-date { background: #e0edff; color: #1d5fc4; }
.agc-c-health { background: #ffe4e8; color: #d6264b; }
.agc-c-pets { background: #fff1db; color: #c26a00; }
.agc-c-math { background: #ede7ff; color: #6b3fd4; }
.agc-c-finance { background: #ddf6ea; color: #0b875b; }
.agc-c-conversion { background: #dcf3fa; color: #087ea4; }
.agc-c-other { background: #eceff3; color: #4a5568; }

/* All calculators grid */
.agc-all { padding: 34px 0 20px; }
.agc-section-title { text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .3em; }
.agc-section-sub { text-align: center; color: var(--agc-ink-2); max-width: 720px; margin: 0 auto 26px; }
.agc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.agc-cat { background: var(--agc-card); border: 1px solid var(--agc-line); border-radius: var(--agc-radius); padding: 18px 20px; box-shadow: var(--agc-shadow); scroll-margin-top: 90px; }
.agc-cat-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 10px; }
.agc-cat ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.agc-cat li a { display: block; padding: 5px 0; color: var(--agc-ink); border-bottom: 1px dashed #edf1f6; }
.agc-cat li:last-child a { border-bottom: 0; }
.agc-cat li a:hover { color: var(--agc-primary); text-decoration: none; padding-inline-start: 4px; transition: padding .15s; }
.agc-home-content { padding: 24px 0 10px; }
.agc-latest { padding: 30px 0 50px; }

/* Related */
.agc-related { margin-top: 26px; }
.agc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agc-chip { background: #fff; border: 1px solid var(--agc-line); padding: 7px 14px; border-radius: 99px; color: var(--agc-ink); font-size: .93rem; font-weight: 500; }
.agc-chip:hover { border-color: var(--agc-primary); color: var(--agc-primary); text-decoration: none; }

/* Blog */
.agc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.agc-cards-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.agc-card { background: var(--agc-card); border: 1px solid var(--agc-line); border-radius: var(--agc-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--agc-shadow); }
.agc-card-img { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--agc-primary-l), #e8eef8); }
.agc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agc-card-ph { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--agc-primary); }
.agc-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.agc-card-title { font-size: 1.1rem; margin: 0 0 4px; }
.agc-card-title a { color: var(--agc-ink); }
.agc-card-meta { font-size: .84rem; color: var(--agc-ink-2); margin-bottom: 8px; }
.agc-card-body p:last-of-type { color: var(--agc-ink-2); font-size: .95rem; }
.agc-more { margin-top: auto; font-weight: 600; }
.agc-badge { display: inline-block; background: var(--agc-primary-l); color: var(--agc-primary); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 99px; }
.agc-meta { color: var(--agc-ink-2); font-size: .92rem; }
.agc-post-thumb { margin: 0 0 18px; }
.agc-post-thumb img { border-radius: var(--agc-radius); }
.agc-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--agc-primary-l); border: 1px solid color-mix(in srgb, var(--agc-primary) 25%, #fff); border-radius: var(--agc-radius); padding: 16px 20px; margin: 22px 0; }
.agc-postnav { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.pagination .nav-links { display: flex; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--agc-line); }
.pagination .page-numbers.current { background: var(--agc-primary); color: #fff; border-color: var(--agc-primary); }

/* Contact */
.agc-contact label { display: block; font-weight: 600; margin-bottom: 4px; }
.agc-contact input, .agc-contact textarea { width: 100%; }
.agc-hp { position: absolute; left: -9999px; }
.agc-notice { padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.agc-ok { background: #e6f6ef; color: var(--agc-ok); }
.agc-err { background: #fdecec; color: var(--agc-err); }

/* Footer */
.agc-footer { background: #0f1b2d; color: #c3cedd; margin-top: 20px; }
.agc-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.agc-footer-about p { margin-top: 14px; font-size: .95rem; }
.agc-footer-title { color: #fff; font-size: 1rem; margin: 6px 0 12px; }
.agc-footer ul { list-style: none; margin: 0; padding: 0; }
.agc-footer li { margin-bottom: 7px; }
.agc-footer a { color: #c3cedd; }
.agc-footer a:hover { color: #fff; }
.agc-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .9rem; text-align: center; }
.agc-404 { padding: 40px 20px 60px; text-align: center; }
.agc-404 .agc-grid { text-align: start; margin-top: 26px; }

/* Language switcher */
.agc-nav { display: flex; align-items: center; gap: 6px; }
.agc-lang { position: relative; }
.agc-lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: #fff; font-weight: 600; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .35); font-size: .95rem; }
.agc-lang summary::-webkit-details-marker { display: none; }
.agc-lang summary::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.agc-lang summary:hover, .agc-lang[open] summary { background: rgba(255, 255, 255, .16); }
.agc-lang ul { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; top: 100%; inset-inline-end: 0; min-width: 190px; background: #fff; border-radius: 10px; box-shadow: var(--agc-shadow), 0 12px 30px rgba(0, 0, 0, .14); z-index: 60; }
.agc-lang li a { display: block; padding: 8px 12px; border-radius: 7px; color: var(--agc-ink); font-weight: 500; }
.agc-lang li a:hover { background: var(--agc-primary-l); color: var(--agc-primary); text-decoration: none; }
.agc-lang li.is-current a { color: var(--agc-primary); font-weight: 700; background: var(--agc-primary-l); }

/* Right-to-left (Arabic) */
[dir="rtl"] .agc-crumbs li:not(:last-child)::after { content: "‹"; }
[dir="rtl"] .agc-btn .agc-ico-arrow, [dir="rtl"] .agc-more { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .agc-more { transform: none; }
.agc-sci, .agc-input input[type="number"], .agc-input input[type="date"], .agc-input input[type="time"], .agc-pw code { direction: ltr; }
[dir="rtl"] .agc-input input[type="number"] { text-align: right; }
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] .agc-res-table td, [dir="rtl"] .agc-res-main, [dir="rtl"] .agc-res-note, [dir="rtl"] .agc-sci-expr { unicode-bidi: plaintext; text-align: right; }

/* Responsive */
@media (max-width: 1024px) {
	.agc-hero-grid, .agc-layout { grid-template-columns: 1fr; }
	.agc-hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
	.agc-sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 18px; }
	.agc-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .agc-header { top: 0; position: relative; }
	.agc-nav-toggle { display: block; }
	.agc-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--agc-primary-d); display: none; padding: 8px 14px 14px; }
	.agc-nav.is-open { display: block; }
	.agc-lang { margin-top: 8px; }
	.agc-lang ul { position: static; box-shadow: none; margin-top: 6px; }
	.agc-menu { flex-direction: column; align-items: stretch; }
	.agc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0; padding-inline-start: 14px; }
	.agc-menu .sub-menu a { color: #e6eefb; }
	.agc-menu .sub-menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
	.agc-header-in { position: relative; }
}
@media (max-width: 680px) {
	.agc-container { padding: 0 14px; }
	.agc-row, .agc-swap-row { grid-template-columns: 1fr; }
	.agc-swap-row .agc-swap { grid-column: 1; }
	.agc-help { grid-column: 1; }
	.agc-actions { padding-inline-start: 0; }
	.agc-actions .agc-btn { flex: 1; }
	.agc-form { padding: 16px; }
	.agc-result { margin: 0 12px 16px; padding: 16px; }
	.agc-entry { padding: 4px 18px 16px; }
	.agc-hero-side { grid-template-columns: 1fr; }
	.agc-footer-grid { grid-template-columns: 1fr; }
	.agc-sci-keys { gap: 5px; }
	.agc-key { height: 44px; font-size: .92rem; }
	.agc-res-table th, .agc-res-table td { padding: 8px; }
	.agc-rows-head, .agc-rowline { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 34px; gap: 5px; }
}
@media print {
	.agc-header, .agc-footer, .agc-sidebar, .agc-rating, .agc-actions, .agc-related { display: none !important; }
	body { background: #fff; }
}
