/* المنبر — site styles. Values follow brand/tokens.json v1.2.0 (dark mode «الكحلي المضيء»). */
:root {
	--navy: #0E2744; --navy-deep: #0A1C33; --navy-light: #11305A;
	--red: #EB222C; --teal: #3FA3A6; --sky: #23A7E2; --aqua: #86D3D5; --coral: #FF8073;
	--text: #EEF4F6; --text-2: #DCE7EB; --muted: #B3C6CF;
	--glass: rgba(255, 255, 255, .07); --glass-2: rgba(255, 255, 255, .045);
	--line: rgba(255, 255, 255, .14); --line-aqua: rgba(134, 211, 213, .22);
	--sans: "Thm Sans", "Segoe UI", Tahoma, sans-serif;
	--display: "Thm Display", "Thm Sans", Tahoma, serif;
	--r-card: 20px;
	--r-arch: clamp(56px, 16%, 170px); /* photo DNA: half arch on the top-right corner */
}
html { background: var(--navy-deep); }
body {
	margin: 0; color: var(--text-2); font-family: var(--sans); font-size: 16px; line-height: 1.7; /* tokens: web body 16 */
	background-color: var(--navy-deep);
	background-image:
		radial-gradient(70vmax 50vmax at 100% 0%, rgba(63, 163, 166, .30), rgba(63, 163, 166, 0) 62%),
		radial-gradient(60vmax 45vmax at 0% 100%, rgba(255, 128, 115, .13), rgba(255, 128, 115, 0) 60%),
		linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--aqua); }
a:hover { color: #9ADCDE; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.am-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.am-main { padding-block: 40px 72px; display: flex; flex-direction: column; gap: 56px; }
.am-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shared atoms ---------- */
.am-plaque { background: #fff; display: grid; place-items: center; box-sizing: border-box; flex: none; }
.am-plaque img { width: 100%; height: auto; display: block; }
.am-plaque--s { width: 46px; height: 60px; border-radius: 23px 23px 5px 5px; padding: 8px 5px 4px; }
.am-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: inline-block; flex: none; }
.am-dot--joint { background: transparent; border: 2px solid var(--teal); box-sizing: border-box; }
.am-rule { display: block; width: 96px; height: 3px; background: var(--red); }
.am-meta { font-size: 15px; font-weight: 500; color: var(--aqua); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.am-kicker { font-size: 16px; font-weight: 500; color: var(--aqua); display: inline-flex; align-items: center; gap: 10px; }
.am-h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.35; display: flex; align-items: center; gap: 12px; }
.am-h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; }
.am-title { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.35; }
.am-lead { margin: 0; font-size: 19px; color: var(--text-2); max-width: 62ch; }
.am-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
	background: var(--aqua); color: var(--navy) !important; font: 500 17px var(--sans); text-decoration: none; cursor: pointer; align-self: flex-start;
}
.am-btn:hover { background: #9ADCDE; }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.am-chip { padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.7; }
.am-chip:hover { border-color: var(--aqua); color: var(--text); }
.am-key { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.am-key > span { display: inline-flex; align-items: center; gap: 8px; }
.am-more { font-size: 15px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.am-more .am-icon { width: 16px; height: 16px; }

/* ---------- photo DNA: half arch + offset sky thread (from the logo's arch and its sky frame) ---------- */
.am-photo { position: relative; margin: 0; isolation: isolate; }
.am-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px var(--r-arch) 14px 14px; border: 1px solid rgba(255, 255, 255, .10); box-sizing: border-box; }
.am-photo::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	border: 2px solid var(--sky); border-radius: 14px var(--r-arch) 14px 14px; transform: translate(-12px, 12px);
}
.am-photo--card { --r-arch: 72px; }
.am-photo--card::before { transform: translate(-8px, 8px); }

/* ---------- header ---------- */
.am-header { border-bottom: 1px solid rgba(255, 255, 255, .10); background: rgba(10, 28, 51, .55); backdrop-filter: blur(14px); }
/* the header sits inside WordPress's template-part wrapper, so that wrapper is what sticks */
.wp-site-blocks > .wp-block-template-part:first-child, .wp-block-template-part:has(> .am-header) { position: sticky; top: 0; z-index: 20; }
.admin-bar .wp-block-template-part:has(> .am-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-block-template-part:has(> .am-header) { top: 46px; } }
.am-header__inner { display: flex; align-items: center; gap: 12px 18px; padding-block: 12px; }
.am-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.am-brand__name { display: flex; flex-direction: column; line-height: 1.35; font-family: var(--display); font-size: 19px; font-weight: 500; }
.am-brand__name small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.am-nav { flex: 1; min-width: 0; position: relative; }
.am-nav ul { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.am-nav ul::-webkit-scrollbar { display: none; }
.am-nav ul { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.am-nav li { flex: none; scroll-snap-align: start; }
/* soft fade at the edge that still has items to swipe to */
.am-nav.has-more-end ul { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
.am-nav.has-more-start ul { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.am-nav.has-more-start.has-more-end ul { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.am-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0; font-size: 15px; font-weight: 500; }
.am-nav a { display: block; padding: 8px 9px; white-space: nowrap; border-radius: 999px; color: var(--text-2); text-decoration: none; line-height: 1.5; }
.am-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.am-nav a[aria-current="page"] { background: rgba(134, 211, 213, .14); color: var(--text); }
.am-icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.am-nav-btn { display: none; }
/* arrows: appear only while the pointer is over the menu (mouse devices), only on the side that still has items */
.am-nav__arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line-aqua); background: #143260; color: var(--aqua); cursor: pointer; place-items: center; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .2s, background .2s, border-color .2s; }
.am-nav__arrow .am-icon { width: 16px; height: 16px; }
.am-nav__arrow:hover { background: #1b4276; border-color: var(--aqua); }
.am-nav__arrow--next { left: 0; }
@media (hover: hover) and (pointer: fine) {
	.am-nav.has-more-end ul { margin-left: 38px; }
	.am-nav.has-more-start ul { margin-right: 38px; }
	.am-nav ul { cursor: grab; }
}
/* drag the strip: long-press on touch, click-and-drag with a mouse */
.am-nav.is-dragging ul { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.am-nav.is-dragging a { pointer-events: none; }
.am-nav.is-armed ul { transform: scale(1.02); transition: transform .15s; }
.am-nav.is-armed a { background: rgba(134, 211, 213, .1); }
.am-nav__arrow--prev { right: 0; }
@media (hover: hover) and (pointer: fine) {
	.am-nav.has-more-end .am-nav__arrow--next, .am-nav.has-more-start .am-nav__arrow--prev { display: grid; }
	.am-nav:hover .am-nav__arrow, .am-nav:focus-within .am-nav__arrow { opacity: 1; pointer-events: auto; }
}

/* ---------- home ---------- */

.am-hero__title { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.35; display: flex; flex-direction: column; gap: 6px; }
.am-hero__main { font-size: clamp(30px, 3.4vw, 42px); }
.am-hero__sub { font-family: var(--sans); font-size: 20px; color: var(--aqua); font-weight: 500; }
.am-photo--hero { aspect-ratio: 3 / 2; }

.am-search form { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.am-search label { font-size: 16px; font-weight: 500; flex: none; }
.am-search input { flex: 1 1 320px; min-width: 0; height: 52px; border-radius: 12px; border: 1px solid rgba(134, 211, 213, .28); background: rgba(8, 22, 39, .45); color: var(--text); padding: 0 16px; font: 400 17px var(--sans); }
.am-search input::placeholder { color: #8FA6B2; }
.am-search .am-btn { align-self: auto; }
.am-search .am-chips { flex-basis: 100%; }

.am-section { display: flex; flex-direction: column; gap: 18px; }
.am-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.am-section__aside { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.am-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.am-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.am-card { display: flex; flex-direction: column; gap: 14px; }
.am-card .am-photo { aspect-ratio: 16 / 10; }
.am-card__body { display: flex; flex-direction: column; gap: 6px; }
.am-card__title { margin: 0; font-family: var(--sans); font-size: 19px; font-weight: 700; line-height: 1.55; }
.am-card__title a { color: var(--text); text-decoration: none; }
.am-card__title a:hover { color: var(--aqua); }
.am-card--text { background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 20px; }

.am-list--rows { gap: 10px; }
.am-row a { display: grid; grid-template-columns: 150px 130px minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 22px; border-radius: 14px; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: var(--text); }
.am-row a:hover { background: var(--glass); border-color: var(--line-aqua); }
.am-row__date { font-size: 15px; font-weight: 500; color: var(--aqua); }
.am-row__tag { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.am-row__title { font-size: 18px; font-weight: 500; line-height: 1.6; }

.am-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.am-split--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-split > .am-section, .am-members { background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-card); padding: 24px; }
.am-split .am-h2 { font-size: 24px; }
.am-list--compact .am-compact { padding: 12px 0; border-bottom: 1px solid var(--line-aqua); display: flex; flex-direction: column; gap: 2px; }
.am-list--compact .am-compact:last-child { border-bottom: 0; }
.am-compact .am-meta { font-size: 14px; }
.am-compact a { color: var(--text); text-decoration: none; font-size: 17px; line-height: 1.6; }
.am-compact a:hover { color: var(--aqua); }

.am-members { display: flex; flex-direction: column; gap: 16px; background: var(--glass); border-color: var(--line); }
.am-members ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.am-members li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12); }
.am-members li .am-icon { width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 12px; border: 1.5px solid var(--teal); color: var(--aqua); }
.am-members li span { display: flex; flex-direction: column; line-height: 1.5; }
.am-members strong { font-weight: 500; font-size: 17px; }
.am-members small { font-size: 14px; color: var(--muted); }

/* ---------- single ---------- */
.am-single { max-width: 860px; }
.am-article { display: flex; flex-direction: column; gap: 28px; }
.am-post-header { display: flex; flex-direction: column; gap: 16px; }
.am-post-header__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--aqua); }
.am-headline { display: flex; flex-direction: column; gap: 8px; }
.am-subtitle { margin: 0; font-size: 21px; font-weight: 500; color: var(--aqua); line-height: 1.6; }
.am-statement-type { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.am-event { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); }
.am-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.am-fact { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.am-fact .am-icon { width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border: 1.5px solid var(--teal); border-radius: 50%; color: var(--aqua); }
.am-fact small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.am-writer { display: flex; align-items: center; gap: 10px; margin: 0; }
.am-writer span { display: flex; flex-direction: column; line-height: 1.5; }
.am-writer small { color: var(--muted); font-size: 14px; }
.am-photo--single { aspect-ratio: 16 / 9; margin-inline-end: 12px; }
.am-content { font-size: 19px; line-height: 1.95; color: var(--text); }
.am-content > * { margin-block: 0 1em; }
.am-content h2, .am-content h3 { font-family: var(--display); font-weight: 500; margin-top: 1.4em; }
.am-content img { border-radius: 14px; }
.am-content figure { margin-inline: 0; }
.am-content figcaption, .am-content .wp-caption-text { font-size: 15px; color: var(--muted); }
.am-content blockquote { margin-inline: 0; padding: 18px 22px; border-inline-start: 3px solid var(--coral); background: var(--glass-2); border-radius: 0 14px 14px 0; font-family: var(--display); font-size: 22px; }
.am-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.am-content td, .am-content th { border-bottom: 1px solid var(--line-aqua); padding: 8px 10px; text-align: right; }
.am-content video, .am-content iframe { width: 100%; border-radius: 14px; }
.am-post-footer { display: flex; flex-direction: column; gap: 40px; margin-top: 8px; }
.am-signatories { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.am-signatories ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.am-signatories li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.am-num { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--teal); display: grid; place-items: center; font-size: 15px; color: var(--aqua); flex: none; }
.am-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line-aqua); }
.am-share a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); text-decoration: none; }
.am-share .am-icon { width: 16px; height: 16px; }

/* ---------- article actions: share and PDF copy (top of the article) ---------- */
.am-post-header { position: relative; z-index: 6; } /* keeps the share/PDF menus above the photo */
.am-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.am-menu { position: relative; }
.am-menu > summary { list-style: none; }
.am-menu > summary::-webkit-details-marker { display: none; }
.am-action {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 18px; border-radius: 14px; cursor: pointer; user-select: none;
	background: var(--glass); border: 1px solid var(--line-aqua); color: var(--text); font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s;
}
.am-action .am-icon { width: 18px; height: 18px; color: var(--aqua); }
.am-action:hover, .am-menu[open] > .am-action { border-color: var(--aqua); background: rgba(134, 211, 213, .1); }
.am-menu__list {
	position: absolute; inset-inline-start: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; padding: 6px; border-radius: 16px;
	background: #143260; border: 1px solid var(--line-aqua); box-shadow: 0 18px 40px rgba(5, 14, 28, .45); display: flex; flex-direction: column;
}
.am-menu__list a, .am-menu__list button {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; width: 100%; box-sizing: border-box;
	color: var(--text); font: 500 15px var(--sans); text-decoration: none; text-align: start; cursor: pointer;
}
.am-menu__list a:hover, .am-menu__list button:hover, .am-menu__list :focus-visible { background: rgba(134, 211, 213, .12); color: var(--text); }
.am-menu__list .am-icon, .am-menu__list svg { width: 18px; height: 18px; color: var(--aqua); flex: none; }
.am-menu__list small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.am-menu__list strong { font-weight: 500; display: block; line-height: 1.4; }
.am-swatch { width: 26px; height: 34px; border-radius: 13px 13px 4px 4px; flex: none; box-sizing: border-box; }
.am-swatch--navy { background: linear-gradient(160deg, #0A1C33, #11305A); border: 1px solid var(--aqua); }
.am-swatch--white { background: #fff; }
.am-menu.is-mounted > .am-menu__list { animation: am-menu-in .18s ease-out; }
@keyframes am-menu-in { from { opacity: 0; transform: translateY(-4px); } }
.am-copied { color: var(--aqua) !important; }

/* ---------- archive ---------- */
.am-archive-header { display: flex; flex-direction: column; gap: 12px; }
.am-query { display: flex; flex-direction: column; gap: 40px; }
.am-query .am-grid { gap: 36px 24px; }
.am-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.am-pagination a, .am-pagination span { padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--text-2); }
.am-pagination .current { background: rgba(134, 211, 213, .14); color: var(--text); }
.am-empty { color: var(--muted); }

/* ---------- footer ---------- */
.am-footer { border-top: 1px solid rgba(255, 255, 255, .10); background: rgba(8, 22, 39, .55); margin-top: 24px; }
.am-footer__inner { display: grid; grid-template-columns: 1.1fr 1.4fr 0.9fr; gap: 32px 48px; padding-block: 40px 28px; }
.am-footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.am-footer__brand span { display: flex; flex-direction: column; line-height: 1.6; }
.am-footer__brand strong { font-family: var(--display); font-weight: 500; font-size: 18px; }
.am-footer__brand small { font-size: 14px; color: var(--muted); }
.am-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font-size: 15px; }
.am-footer__links a, .am-footer__social a { color: var(--text-2); text-decoration: none; }
.am-footer__links a:hover, .am-footer__social a:hover { color: var(--aqua); }
.am-footer__social { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.am-footer__icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.am-footer__icons a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--aqua); display: grid; place-items: center; }
.am-footer__icons a:hover { background: rgba(134, 211, 213, .12); color: var(--text); }
.am-footer__icons .am-icon { width: 20px; height: 20px; }
.am-footer__map { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--text) !important; }
.am-footer__map:hover { border-color: rgba(134, 211, 213, .45); }
.am-footer__map .am-icon { width: 22px; height: 22px; color: var(--aqua); }
.am-footer__map span { display: flex; flex-direction: column; line-height: 1.45; }
.am-footer__map strong { font-weight: 500; font-size: 15px; }
.am-footer__map small { font-size: 13px; color: var(--muted); }
.am-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 14px 22px; border-top: 1px solid var(--line-aqua); font-size: 14px; color: var(--muted); }

/* ---------- header: members portal button (amber, navy text 10.6:1) ---------- */
.am-members-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; background: #F2C46D; color: var(--navy) !important; font-weight: 500; font-size: 15px; text-decoration: none; flex: none; }
.am-members-btn:hover { background: #F6D38E; }
.am-members-btn .am-icon { width: 18px; height: 18px; }

/* ---------- hero slider: ten latest posts (eight on phones) ---------- */
.am-slider { position: relative; display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.am-slider__track { display: grid; }
.am-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.am-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; z-index: 1; }
.am-hero__text { display: flex; flex-direction: column; gap: 18px; }
.am-slide .am-hero__text > * { transform: translateY(12px); opacity: 0; transition: transform .6s ease, opacity .6s ease; }
.am-slide.is-active .am-hero__text > * { transform: none; opacity: 1; }
.am-slide.is-active .am-hero__text > :nth-child(2) { transition-delay: .08s; }
.am-slide.is-active .am-hero__text > :nth-child(3) { transition-delay: .14s; }
.am-slide.is-active .am-hero__text > :nth-child(4) { transition-delay: .2s; }
.am-slide.is-active .am-hero__text > :nth-child(5) { transition-delay: .26s; }
.am-slide .am-photo img { transform: scale(1.04); transition: transform calc(var(--am-interval, 4000ms) + .7s) ease-out; }
.am-slide.is-active .am-photo img { transform: scale(1); }
.am-hero__title a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.am-hero__title a:hover .am-hero__main { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.am-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.am-slider__controls { display: flex; align-items: center; gap: 14px; }
.am-slider__pause { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.am-slider__pause .am-icon { width: 18px; height: 18px; }
.am-slider .am-i-play, .am-slider.is-paused .am-i-pause { display: none; }
.am-slider.is-paused .am-i-play { display: block; }
.am-slider__dots { display: flex; gap: 8px; }
.am-slider__dot { width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.am-slider__dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; position: relative; }
.am-slider__dot.is-active span::after { content: ""; position: absolute; inset: 0; background: var(--aqua); transform-origin: right; animation: am-progress var(--am-interval, 4s) linear forwards; animation-name: var(--am-progress-run, am-progress); }
.am-slider.is-paused .am-slider__dot.is-active span::after, .am-slider.is-hover .am-slider__dot.is-active span::after { animation: none; transform: none; }
@keyframes am-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- home sections ---------- */
.am-home-grid { display: flex; flex-direction: column; gap: 56px; }
.am-home-grid .am-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }

/* ---------- «تابعونا» dock: fixed to the page side, tucks into an icon strip ---------- */
.am-dock { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; align-items: stretch; direction: rtl;
	background: rgba(10, 28, 51, .88); backdrop-filter: blur(12px); border: 1px solid rgba(134, 211, 213, .28); border-left: 0; border-radius: 0 18px 18px 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.am-dock__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 14px 10px; }
.am-dock__title { font-size: 14px; font-weight: 500; color: var(--aqua); padding-inline-start: 4px; }
.am-dock ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.am-dock a { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.am-dock a:hover { background: rgba(255, 255, 255, .07); }
.am-dock a .am-icon { width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--aqua); }
.am-dock__label { display: flex; flex-direction: column; line-height: 1.35; }
.am-dock__label strong { font-size: 15px; font-weight: 500; }
.am-dock__label small { font-size: 13px; color: var(--muted); }
.am-dock__toggle { order: 2; width: 26px; border: 0; border-right: 1px solid rgba(134, 211, 213, .2); background: rgba(255, 255, 255, .05); color: var(--aqua); cursor: pointer; display: grid; place-items: center; border-radius: 0 18px 18px 0; padding: 0; }
.am-dock__toggle .am-icon { width: 16px; height: 16px; transition: transform .25s ease; }
.am-dock.is-collapsed .am-dock__toggle .am-icon { transform: rotate(180deg); }
.am-dock.is-collapsed .am-dock__title, .am-dock.is-collapsed .am-dock__label { display: none; }
.am-dock.is-collapsed .am-dock__body { padding: 10px 6px; }
.am-dock.is-collapsed a { padding: 4px; }

/* ---------- social cards ---------- */
.am-social { display: flex; flex-direction: column; gap: 16px; }
.am-social .am-h2 { font-size: 24px; }
.am-social__cards { display: flex; flex-direction: column; gap: 12px; }
.am-social-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.am-social-card:hover { border-color: rgba(134, 211, 213, .45); color: var(--text); }
.am-social-card__head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.am-social-card__head .am-icon { width: 30px; height: 30px; padding: 6px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--aqua); }
.am-social-card__head span { color: var(--text-2); font-weight: 500; }
.am-social-card__head time { margin-inline-start: auto; }
.am-social-card__text { font-size: 16px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.am-social-card__img { display: block; width: 88px; height: 88px; flex: none; border-radius: 8px 30px 8px 8px; overflow: hidden; grid-row: 1 / span 2; }
.am-social-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-social-card--ig { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: start; }
.am-social-card--ig .am-social-card__text { -webkit-line-clamp: 2; }
.am-social-follow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-social-follow a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.am-social-follow .am-icon { width: 18px; height: 18px; }

/* ---------- first-visit notice ---------- */
.am-notice { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(5, 14, 26, .62); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.am-notice.is-open { opacity: 1; }
.am-notice[hidden] { display: none; }
.am-notice__card { width: min(520px, 100%); box-sizing: border-box; padding: 28px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px;
	background: radial-gradient(28rem 18rem at 100% 0%, rgba(63, 163, 166, .32), rgba(63, 163, 166, 0) 65%), linear-gradient(160deg, #0A1C33, #0E2744 60%, #11305A);
	border: 1px solid rgba(134, 211, 213, .3); box-shadow: 0 24px 64px rgba(0, 0, 0, .45); transform: translateY(14px) scale(.98); transition: transform .3s ease; }
.am-notice.is-open .am-notice__card { transform: none; }
.am-notice__title { margin: 0; font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.4; }
.am-notice__body { margin: 0; font-size: 17px; color: var(--text-2); line-height: 1.8; }
.am-notice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.am-btn--ghost { background: rgba(255, 255, 255, .1); border: 1px solid var(--line); color: var(--text) !important; }
.am-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.am-notice__never { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); cursor: pointer; }
.am-notice__never input { width: 18px; height: 18px; accent-color: var(--aqua); }

@media (prefers-reduced-motion: reduce) {
	.am-slide, .am-slide .am-hero__text > *, .am-slide .am-photo img, .am-notice, .am-notice__card { transition: none !important; }
	.am-slider__dot.is-active span::after { animation: none; transform: none; }
}

/* ---------- tablets ---------- */
@media (max-width: 1100px) {
	.am-home-grid .am-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.am-social__cards { flex-direction: row; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: thin; }
	.am-social-card { flex: 0 0 280px; scroll-snap-align: start; }
	.am-split--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- phones: shorter page, cards scroll sideways ---------- */
@media (max-width: 1180px) {
	/* the menu moves to its own row under the logo and stays swipeable */
	.am-header__inner { flex-wrap: wrap; row-gap: 6px; padding-bottom: 6px; }
	.am-header__inner > .am-icon-btn { margin-inline-start: auto; }
	.am-nav { flex-basis: 100%; order: 5; margin-inline: -8px; }
}
@media (max-width: 960px) {
	.am-split, .am-split--3, .am-footer__inner { grid-template-columns: minmax(0, 1fr); }
	.am-slide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.am-slide .am-photo { order: -1; }
	.am-row a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.am-home-grid .am-row a { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
	.am-home-grid .am-row__title { grid-column: 1 / -1; }
	.am-header__inner { gap: 6px 8px; }
	.am-brand__name { font-size: 17px; }
}
@media (max-width: 600px) {
	body { font-size: 17px; }
	.am-wrap { padding-inline: 16px; }
	.am-main { gap: 36px; padding-block: 16px 48px; }
	.am-content { font-size: 18px; }
	.am-grid { grid-template-columns: minmax(0, 1fr); }
	.am-members-btn { width: 44px; padding: 0; justify-content: center; }
	.am-members-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.am-plaque--s { width: 40px; height: 52px; padding: 7px 4px 3px; }
	.am-brand__name { font-size: 15px; }
	/* hero */
	.am-photo--hero { aspect-ratio: 16 / 9; }
	.am-hero__main { font-size: 24px; line-height: 1.45; }
	.am-hero__sub { font-size: 16px; }
	.am-slide .am-lead, .am-slide .am-btn { display: none; }
	.am-hero__text { gap: 10px; }
	.am-slider__dots { gap: 6px; }
	.am-slider__dot { width: 32px; }
	.am-slide .am-hero__title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
	/* search: one line, sections scroll sideways */
	.am-search form { padding: 12px; gap: 8px; }
	.am-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.am-search input { flex: 1 1 0; height: 48px; }
	.am-search .am-btn { height: 48px; padding: 0 16px; }
	.am-search .am-chips, .am-key { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.am-search .am-chip { flex: none; }
	/* sections */
	.am-h2 { font-size: 23px; }
	.am-section { gap: 14px; }
	.am-section__aside .am-key { display: none; }
	.am-list--rows .am-row:nth-child(n+4) { display: none; }
	.am-row a { padding: 12px 14px; }
	.am-row__title { font-size: 16px; }
	.am-home-grid { gap: 36px; }
	.am-dock { top: auto; bottom: 88px; transform: none; }
	.am-home-grid .am-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
	.am-home-grid .am-card { scroll-snap-align: start; }
	.am-social-card { flex-basis: 84%; }
	.am-split > .am-section { padding: 18px; }
	.am-list--compact .am-compact:nth-child(n+4) { display: none; }
	.am-compact a { font-size: 16px; }
	/* footer */
	.am-footer__inner { gap: 20px; padding-block: 28px 16px; }
	.am-footer__links { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 14px; }
	.am-footer__social { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
	.am-footer { padding-inline-end: 56px; } /* room for the tucked «تابعونا» strip */
}


/* =================== brand pass (tokens v1.2.0) =================== */
:root { --glass: rgba(255, 255, 255, .07); --glass-line: rgba(255, 255, 255, .16); --line-strong: rgba(134, 211, 213, .40); --panel: #143260; }
/* WordPress adds flow margins between blocks; layout spacing here is done with gap only. */
.am-main > *, .am-home-grid > *, .am-split > *, .am-article > * { margin-block: 0 !important; }

/* headings: Display 500, modest sizes (h1 25–40, h2 26) */
h1, h2, h3, .am-h2, .am-h3, .am-title, .am-hero__title, .am-notice__title { color: var(--text); }
.am-title { font-size: clamp(25px, 6.4vw, 40px); }
.am-hero__main { font-size: clamp(25px, 3.2vw, 40px); }
.am-h2 { font-size: 26px; gap: 14px; }
.am-split .am-h2 { font-size: 22px; }
.am-card__title { font-family: var(--sans); font-weight: 500; font-size: 18px; color: var(--text); }
.am-meta, .am-kicker, .am-row__date, .am-compact .am-meta { color: var(--aqua); font-size: 14px; font-weight: 500; }
.am-row__tag, .am-statement-type, .am-key { color: var(--muted); font-size: 14px; }
.am-lead { color: var(--text-2); font-size: 17px; }

/* line icons inside teal rings */
.am-ring { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--aqua); display: inline-grid; place-items: center; flex: none; }
.am-ring .am-icon { width: 22px; height: 22px; stroke-width: 1.6; }
.am-ring--lg { width: 60px; height: 60px; }
.am-ring--lg .am-icon { width: 28px; height: 28px; }
.am-split .am-ring { width: 38px; height: 38px; }
.am-split .am-ring .am-icon { width: 19px; height: 19px; }
.am-title--icon { display: flex; align-items: center; gap: 16px; }
.am-archive-header { padding-bottom: 20px; border-bottom: 1px solid var(--line-aqua); }

/* glass cards */
.am-card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 20px; padding: 12px 12px 18px; gap: 12px; }
.am-card .am-card__body { padding-inline: 6px; }
.am-card .am-photo::before { transform: translate(-6px, 6px); }
.am-card--text { padding: 20px; }
.am-row a, .am-split > .am-section, .am-search form { background: var(--glass); border-color: var(--glass-line); }
.am-row a:hover, .am-card:hover { border-color: var(--line-strong); }
.am-card:hover .am-card__title a { color: var(--aqua); }

/* bottom boxes: same top and bottom edge, content decides the height of the row */
.am-split { align-items: stretch; }
.am-split > .am-section { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
.am-split > .am-section .am-list { flex: 1; }

/* buttons per tokens: primary aqua/navy, secondary glass */
.am-btn { border-radius: 14px; font-size: 16px; height: 48px; }
.am-btn--ghost { background: rgba(255, 255, 255, .11); border: 1px solid var(--glass-line); }
.am-search input { border-radius: 12px; border-color: var(--line-strong); }

/* article text: Sans, comfortable reading size */
.am-content { color: var(--text-2); font-size: 18px; line-height: 1.9; }
.am-content strong, .am-content b { color: var(--text); font-weight: 700; }
.am-content a { color: var(--aqua); }

/* footer: panel tone */
.am-footer { background: rgba(10, 28, 51, .72); }
.am-footer__links a { font-size: 15px; }

@media (max-width: 600px) {
	.am-h2 { font-size: 22px; }
	.am-ring { width: 38px; height: 38px; }
	.am-ring .am-icon { width: 19px; height: 19px; }
	.am-card { padding: 10px 10px 14px; }
	.am-hero__main { font-size: 24px; }
}


/* =================== scroll motion =================== */
html { scroll-behavior: smooth; }
/* Reveal on scroll — only when JS is running, so content never stays hidden. */
.am-js .am-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--am-delay, 0s); will-change: opacity, transform; }
.am-js .am-reveal.is-in { opacity: 1; transform: none; }
.am-js .am-reveal--photo .am-photo img { clip-path: inset(0 0 0 100% round 14px var(--r-arch) 14px 14px); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1) .1s; }
.am-js .am-reveal--photo.is-in .am-photo img { clip-path: inset(0 0 0 0 round 14px var(--r-arch) 14px 14px); }
.am-js .am-reveal--photo .am-photo::before { opacity: 0; transform: translate(0, 0); transition: opacity .6s ease .7s, transform .8s cubic-bezier(.2, .7, .2, 1) .7s; }
.am-js .am-reveal--photo.is-in .am-photo::before { opacity: 1; transform: translate(-6px, 6px); }
/* section titles: the ring draws in, the title follows */
.am-js .am-reveal .am-h2 .am-ring { transform: scale(.6) rotate(-30deg); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .15s, opacity .4s ease .15s; }
.am-js .am-reveal.is-in .am-h2 .am-ring { transform: none; opacity: 1; }
/* header tightens once the page scrolls */
.am-header { transition: background-color .35s ease, box-shadow .35s ease; }
.am-header .am-header__inner { transition: padding .35s ease; }
.am-header .am-plaque--s { transition: width .35s ease, height .35s ease; }
.am-scrolled .am-header { background: rgba(10, 28, 51, .86); box-shadow: 0 8px 28px rgba(0, 0, 0, .28); }
.am-scrolled .am-header .am-header__inner { padding-block: 6px; }
.am-scrolled .am-header .am-plaque--s { width: 38px; height: 50px; }
/* reading progress on articles */
.am-progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 40; pointer-events: none; }
.am-progress span { display: block; height: 100%; background: linear-gradient(to left, var(--aqua), var(--teal)); transform-origin: right; transform: scaleX(var(--p, 0)); }
/* back to top */
.am-top { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(10, 28, 51, .82); backdrop-filter: blur(10px); color: var(--aqua); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.am-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.am-top .am-icon { width: 20px; height: 20px; transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.am-js .am-reveal, .am-js .am-reveal--photo .am-photo img, .am-js .am-reveal--photo .am-photo::before, .am-js .am-reveal .am-h2 .am-ring { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
	.am-js .am-reveal--photo .am-photo::before { transform: translate(-6px, 6px) !important; }
}

/* mobile: header sits flush at the top (WP's admin bar scrolls away under 600px, so no offset) + frosted fade under it */
@media (max-width: 600px) { .admin-bar .wp-block-template-part:has(> .am-header) { top: 0; } }
@media (max-width: 782px) {
	.am-header { position: relative; background: linear-gradient(to bottom, rgba(10, 28, 51, .94), rgba(10, 28, 51, .72)); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
	.am-scrolled .am-header { background: linear-gradient(to bottom, rgba(10, 28, 51, .96), rgba(10, 28, 51, .8)); }
	.am-header::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 30px; pointer-events: none; background: linear-gradient(to bottom, rgba(10, 28, 51, .55), rgba(10, 28, 51, 0)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
}

/* the whole card / slide is one big link: clicking the photo opens the news too */
.am-card, .am-slide { position: relative; }
.am-card__title a::after, .am-hero__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.am-card:has(.am-card__title a:hover) .am-photo img, .am-slide:has(.am-hero__title a:hover) .am-photo img { filter: brightness(1.06); }
.am-card:has(.am-card__title a:hover) .am-card__title a { color: var(--aqua); }
.am-hero .am-btn { position: relative; z-index: 2; }

/* hero controls: pause · next · previous · progress dots — always above the slide text */
.am-slider__controls { position: relative; z-index: 3; margin-top: 6px; }
.am-slider__track { padding-bottom: 6px; }
.am-slider__step { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s, border-color .2s; }
.am-slider__step:hover { background: rgba(134, 211, 213, .16); border-color: var(--aqua); color: var(--aqua); }
.am-slider__step .am-icon { width: 18px; height: 18px; }
@media (max-width: 600px) { .am-slider__step { width: 36px; height: 36px; } .am-slider__pause { width: 36px; height: 36px; } .am-slider__controls { gap: 8px; } .am-slider__dot { width: 22px; } }
