/* ==========================================================================
   Assyrian Parliament
   Institutional, flat, text-first. Flag blue as the one brand colour,
   red only as a small accent. Logical properties keep RTL working.
   ========================================================================== */

:root {
	--ap-blue: #16397a;
	--ap-blue-dark: #0e2756;
	--ap-blue-light: #e9eef7;
	--ap-red: #b8162b;
	--ap-ink: #161616;
	--ap-text: #2b2b2b;
	--ap-muted: #5c6168;
	--ap-line: #d8dbe0;
	--ap-soft: #f3f4f6;
	--ap-white: #ffffff;
	--ap-focus: #f2b705;

	--ap-font: "Public Sans", "Noto Sans Syriac", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ap-gutter: clamp(16px, 3vw, 28px);
	--ap-admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ap-theme {
	margin: 0;
	background: var(--ap-white);
	color: var(--ap-text);
	font-family: var(--ap-font);
	font-size: 1.0625rem;
	line-height: 1.6;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
/* "body.ap-theme" on the base rules: Elementor's global kit from the previous dark theme
   sets links, headings and buttons to white/blue; these must win over it. */
body.ap-theme a { color: var(--ap-blue); text-decoration-thickness: 1px; text-underline-offset: .15em; }
body.ap-theme a:hover { color: var(--ap-blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ap-focus); outline-offset: 1px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
body.ap-theme :is(h1, h2, h3, h4, h5, h6) { color: var(--ap-ink); }
body.ap-theme :is(button, input[type="submit"], input[type="button"]) { box-shadow: none; }
.ap-menu font, .ap-footer font, .ap-links font { color: inherit !important; }
p { margin: 0 0 1em; }
:lang(syr), :lang(aii) { font-family: "Noto Sans Syriac", var(--ap-font); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.ap-skip { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 1000; background: var(--ap-focus); color: var(--ap-ink); padding: 10px 16px; font-weight: 700; }
.ap-skip:focus { top: 8px; }
.ap-main:focus { outline: none; }

.ap-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--ap-gutter); }
.ap-icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }

/* ---------- Buttons ---------- */
.ap-button {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .55em 1.1em; border: 2px solid var(--ap-blue); border-radius: 2px;
	font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; white-space: nowrap;
}
.ap-theme .ap-button--primary { background: var(--ap-blue); color: var(--ap-white); }
.ap-theme .ap-button--primary:hover { background: var(--ap-blue-dark); border-color: var(--ap-blue-dark); color: var(--ap-white); }
.ap-theme .ap-button--secondary { background: var(--ap-white); color: var(--ap-blue); }
.ap-theme .ap-button--secondary:hover { background: var(--ap-blue-light); color: var(--ap-blue-dark); }

/* ---------- Header ---------- */
.ap-header { border-top: 4px solid var(--ap-red); background: var(--ap-white); }
.ap-header__bar { display: flex; align-items: center; gap: 24px; min-height: 104px; padding-block: 16px; }

.ap-theme .ap-brand { display: flex; align-items: center; gap: 16px; margin-inline-end: auto; text-decoration: none; color: var(--ap-blue); min-width: 0; }
.ap-brand__logo { width: 72px; height: 72px; object-fit: contain; flex: none; }
.ap-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-theme .ap-brand__name { margin: 0; font-size: 1.625rem; font-weight: 800; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; color: var(--ap-blue); }
.ap-brand__tagline { font-size: .9375rem; color: var(--ap-muted); }

.ap-header__tools { display: flex; align-items: center; gap: 12px; }
.ap-header__search { width: 300px; }

.ap-searchform { display: flex; }
.ap-searchform input {
	flex: 1; min-width: 0; height: 42px; padding: 0 12px;
	border: 1px solid #7d828a; border-inline-end: 0; border-radius: 2px 0 0 2px;
	font: inherit; font-size: 1rem; color: var(--ap-ink); background: var(--ap-white);
}
.ap-searchform input:focus { outline: 3px solid var(--ap-focus); outline-offset: 0; }
.ap-theme .ap-searchform button { height: 42px; padding: 0 16px; border: 0; border-radius: 0 2px 2px 0; background: var(--ap-blue); color: var(--ap-white); font-weight: 600; }
.ap-theme .ap-searchform button:hover { background: var(--ap-blue-dark); }

.ap-theme .ap-menu-toggle { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 2px solid var(--ap-blue); border-radius: 2px; background: var(--ap-white); color: var(--ap-blue); font-weight: 700; }
.ap-menu-toggle__icon { position: relative; width: 18px; height: 12px; border-top: 2px solid; border-bottom: 2px solid; }
.ap-menu-toggle__icon span { position: absolute; inset-inline: 0; top: 3px; border-top: 2px solid; }
.ap-menu-open .ap-theme .ap-menu-toggle { background: var(--ap-blue); color: var(--ap-white); }

/* Main menu bar */
.ap-nav { background: var(--ap-blue); }
.ap-nav__inner { display: flex; }
.ap-menu, .ap-menu ul { list-style: none; margin: 0; padding: 0; }
.ap-menu { display: flex; flex: 1 1 auto; min-width: 0; }
.ap-menu > li { position: relative; display: flex; align-items: stretch; flex: none; }
.ap-menu > li[hidden] { display: none; }
.ap-theme .ap-menu > li > a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; color: var(--ap-white); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.ap-theme .ap-menu > li > a:hover, .ap-menu > li.is-open > a { background: var(--ap-blue-dark); }
.ap-theme .ap-menu > li.current-menu-item > a, .ap-theme .ap-menu > li.current-menu-ancestor > a, .ap-theme .ap-menu > li.current_page_item > a { box-shadow: inset 0 -4px 0 var(--ap-white); }
.ap-theme .ap-subtoggle { display: flex; align-items: center; justify-content: center; padding: 0 10px 0 2px; margin-inline-start: -10px; border: 0; background: transparent; color: var(--ap-white); }
.ap-theme .ap-subtoggle:hover, .ap-theme .is-open > .ap-subtoggle { background: var(--ap-blue-dark); }
.ap-theme .ap-subtoggle svg { transition: transform .15s; }
.ap-theme .ap-subtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ap-nav__search { display: none; }

/* Dropdowns */
.ap-menu ul { display: none; }
.ap-menu > li > ul {
	position: absolute; top: 100%; inset-inline-start: 0; z-index: 60; min-width: 260px; max-width: 340px;
	background: var(--ap-white); border: 1px solid var(--ap-line); border-top: 3px solid var(--ap-blue-dark);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.ap-menu > li.ap-more > ul { inset-inline-start: auto; inset-inline-end: 0; }
.ap-menu > li.is-open > ul { display: block; }
@media (hover: hover) and (min-width: 1000px) {
	.ap-menu > li:hover > ul { display: block; }
}
.ap-menu ul li { border-bottom: 1px solid var(--ap-line); position: relative; }
.ap-menu ul li:last-child { border-bottom: 0; }
.ap-theme .ap-menu ul a { display: block; padding: 11px 16px; color: var(--ap-ink); text-decoration: none; font-weight: 500; line-height: 1.35; }
.ap-theme .ap-menu ul a:hover { background: var(--ap-soft); color: var(--ap-blue); text-decoration: underline; }
.ap-theme .ap-menu ul .current-menu-item > a { color: var(--ap-blue); font-weight: 700; }
.ap-theme .ap-menu ul .ap-subtoggle { display: none; }
.ap-menu ul ul { display: block; padding-inline-start: 16px; border-top: 1px solid var(--ap-line); }
.ap-theme .ap-menu ul ul a { font-size: .9375rem; color: var(--ap-text); }

/* Mobile */
@media (max-width: 999px) {
	.ap-header__bar { min-height: 76px; gap: 12px; padding-block: 12px; }
	.ap-brand__logo { width: 52px; height: 52px; }
	.ap-theme .ap-brand__name { font-size: 1.1875rem; }
	.ap-brand__tagline { font-size: .8125rem; }
	.ap-header__search { display: none; }
	.ap-theme .ap-menu-toggle { display: inline-flex; }

	.ap-nav { display: none; }
	.ap-menu-open .ap-nav { display: block; }
	.ap-nav__inner { flex-direction: column; padding-block: 8px 20px; }
	.ap-menu { flex-direction: column; }
	.ap-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .18); }
	.ap-theme .ap-menu > li > a { flex: 1; min-height: 50px; padding: 0 4px; white-space: normal; }
	.ap-theme .ap-subtoggle { width: 50px; margin: 0; padding: 0; }
	.ap-menu > li > ul { position: static; width: 100%; max-width: none; border: 0; box-shadow: none; margin-bottom: 10px; }
	.ap-menu > li.ap-more { display: none; }
	.ap-theme .ap-menu > li.current-menu-item > a, .ap-theme .ap-menu > li.current-menu-ancestor > a, .ap-theme .ap-menu > li.current_page_item > a { box-shadow: inset 4px 0 0 var(--ap-white); padding-inline-start: 14px; }
	.ap-nav__search { display: block; padding-top: 16px; }
	.ap-nav__search .ap-searchform input { border-color: var(--ap-white); }
	.ap-theme .ap-nav__search .ap-searchform button { background: var(--ap-blue-dark); }
}
@media (max-width: 520px) {
	.ap-header__tools .ap-button { display: none; }
	.ap-brand__tagline { display: none; }
	.ap-menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Announcement ---------- */
.ap-notice[hidden] { display: none; }
.ap-notice__inner { display: flex; align-items: flex-start; gap: 16px; padding-block: 12px; }
.ap-notice p { margin: 0; flex: 1; }
.ap-notice p a { margin-inline-start: .5em; color: inherit; font-weight: 600; }
.ap-theme .ap-notice__close { flex: none; display: inline-flex; padding: 2px; border: 0; background: none; color: inherit; }
.ap-theme .ap-notice__close .ap-icon { width: 20px; height: 20px; }
.ap-notice--info { background: #fff6d6; border-bottom: 1px solid #e8d58a; color: var(--ap-ink); }
.ap-notice--urgent { background: var(--ap-red); color: var(--ap-white); }
.ap-notice--navy { background: var(--ap-blue-light); border-bottom: 1px solid #c9d4ea; color: var(--ap-blue-dark); }

/* ---------- Common bits ---------- */
.ap-crumbs { padding-top: 18px; font-size: .875rem; color: var(--ap-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.ap-theme .ap-crumbs a { color: var(--ap-muted); }
.ap-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 6px; font-size: .875rem; color: var(--ap-muted); }
.ap-badges { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ap-theme .ap-badge { font-weight: 600; color: var(--ap-blue); text-decoration: none; }
.ap-theme a.ap-badge:hover { text-decoration: underline; }
.ap-theme .ap-badge--important { padding: 1px 6px; background: var(--ap-red); color: var(--ap-white); font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }

.ap-img { position: relative; overflow: hidden; background: #e9ebef; }
.ap-img__el { display: block; width: 100%; height: 100%; }
.ap-img--cover .ap-img__el { object-fit: cover; }
.ap-img--contain .ap-img__el { object-fit: contain; }

/* ---------- Front page: main story ---------- */
.ap-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; margin-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--ap-line); }
.ap-lead--text { grid-template-columns: 1fr; padding: 28px 32px; background: var(--ap-blue-light); border: 0; border-inline-start: 6px solid var(--ap-blue); }
.ap-lead__media { display: block; }
.ap-theme .ap-lead__title { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 14px; }
.ap-theme .ap-lead__title a { color: var(--ap-ink); text-decoration: none; }
.ap-theme .ap-lead__title a:hover { color: var(--ap-blue); text-decoration: underline; text-decoration-thickness: 2px; }
.ap-lead__text { font-size: 1.125rem; color: var(--ap-text); }
.ap-lead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
@media (max-width: 860px) {
	.ap-lead { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
}

/* ---------- Layout with sidebar ---------- */
.ap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; margin-top: 32px; margin-bottom: 72px; align-items: start; }
.ap-layout--single { grid-template-columns: minmax(0, 820px); }
.ap-layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 999px) {
	.ap-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

.ap-block + .ap-block { margin-top: 48px; }
.ap-theme .ap-block__title { font-size: 1.375rem; padding-bottom: 10px; margin-bottom: 0; border-bottom: 2px solid var(--ap-blue); }
.ap-block__more { margin: 16px 0 0; font-weight: 600; }
.ap-block__more a::after, .ap-box__more a::after { content: " ›"; }

/* News list */
.ap-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--ap-line); }
.ap-item.has-img { grid-template-columns: 210px minmax(0, 1fr); }
.ap-item__media { display: block; }
.ap-theme .ap-item__title { font-size: 1.1875rem; line-height: 1.3; margin: 0; }
.ap-theme .ap-item__title a { color: var(--ap-ink); text-decoration: none; }
.ap-theme .ap-item__title a:hover { color: var(--ap-blue); text-decoration: underline; }
.ap-item__excerpt { margin: 8px 0 0; color: var(--ap-text); font-size: 1rem; }
@media (max-width: 600px) {
	.ap-item.has-img { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.ap-theme .ap-item__title { font-size: 1.0625rem; }
	.ap-item__excerpt { display: none; }
}

/* Documents */
.ap-doclist { list-style: none; margin: 0; padding: 0; }
.ap-doc { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ap-line); }
.ap-doc__icon { position: relative; flex: none; width: 34px; color: var(--ap-blue); }
.ap-doc__icon .ap-icon { width: 34px; height: 34px; stroke-width: 1.4; }
.ap-doc__ext { position: absolute; bottom: -2px; inset-inline-start: 50%; transform: translateX(-50%); padding: 0 3px; background: var(--ap-red); color: var(--ap-white); font-size: .5625rem; font-weight: 700; line-height: 1.5; }
.ap-doc__ext:empty { display: none; }
.ap-doc__body { flex: 1; min-width: 0; }
.ap-theme .ap-doc__title { font-weight: 700; color: var(--ap-ink); text-decoration: none; line-height: 1.35; }
.ap-theme .ap-doc__title:hover { color: var(--ap-blue); text-decoration: underline; }
.ap-doc__meta { margin: 2px 0 0; font-size: .875rem; color: var(--ap-muted); }
.ap-theme .ap-doc__download { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-top: 2px; font-weight: 600; font-size: .9375rem; }
.ap-doc__download .ap-icon { width: 18px; height: 18px; }
@media (max-width: 520px) { .ap-doc__download span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Sidebar boxes ---------- */
.ap-box + .ap-box { margin-top: 40px; }
.ap-theme .ap-box__title { font-size: 1.125rem; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--ap-blue); }
.ap-theme .ap-box__title a { color: inherit; text-decoration: none; }
.ap-box__text { font-size: .9375rem; margin: 12px 0 0; }
.ap-box__more { margin: 12px 0 0; font-size: .9375rem; font-weight: 600; }

.ap-links { list-style: none; margin: -14px 0 0; padding: 0; }
.ap-links li { border-bottom: 1px solid var(--ap-line); }
.ap-theme .ap-links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 600; text-decoration: none; }
.ap-theme .ap-links a::after { content: "›"; font-size: 1.2em; line-height: 1; }
.ap-theme .ap-links a:hover { text-decoration: underline; }

.ap-latest { list-style: none; margin: -14px 0 0; padding: 0; }
.ap-latest li { padding: 12px 0; border-bottom: 1px solid var(--ap-line); }
.ap-latest time { display: block; font-size: .8125rem; color: var(--ap-muted); }
.ap-theme .ap-latest a { font-weight: 600; text-decoration: none; color: var(--ap-ink); line-height: 1.35; }
.ap-theme .ap-latest a:hover { color: var(--ap-blue); text-decoration: underline; }

.ap-section-nav ul { list-style: none; margin: -14px 0 0; padding: 0; }
.ap-section-nav li { border-bottom: 1px solid var(--ap-line); }
.ap-theme .ap-section-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ap-ink); }
.ap-theme .ap-section-nav a:hover { background: var(--ap-soft); text-decoration: underline; }
.ap-theme .ap-section-nav .current_page_item > a { color: var(--ap-blue); font-weight: 700; box-shadow: inset 4px 0 0 var(--ap-blue); }
.ap-section-nav ul ul { margin: 0; padding-inline-start: 12px; }
.ap-section-nav ul ul li:last-child { border-bottom: 0; }

/* Video */
.ap-video { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--ap-blue-dark); overflow: hidden; }
.ap-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ap-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-video__live { position: absolute; top: 12px; inset-inline-start: 12px; padding: 2px 8px; background: var(--ap-red); color: var(--ap-white); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ap-theme .ap-video__play { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ap-white); font-weight: 600; }
.ap-video__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ap-white); color: var(--ap-blue); }
.ap-video__icon .ap-icon { width: 26px; height: 26px; margin-inline-start: 3px; }
.ap-theme .ap-video__play:hover .ap-video__icon { background: var(--ap-focus); color: var(--ap-ink); }
.ap-video__label { text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ap-video__note { display: none; }

/* Facebook */
.ap-fb__frame iframe { display: block; border: 1px solid var(--ap-line); }
.ap-fb.is-loaded .ap-fb__consent, .ap-fb.is-loaded .ap-fb__load { display: none; }
.ap-fb__consent { font-size: .875rem; color: var(--ap-muted); }

/* Donations */
.ap-donate__details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 16px 0; padding: 14px 16px; background: var(--ap-soft); border: 1px solid var(--ap-line); font-size: .9375rem; }
.ap-donate__details dt { color: var(--ap-muted); }
.ap-donate__details dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 600; color: var(--ap-ink); }
.ap-donate__value { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ap-theme .ap-copy { padding: 0 6px; border: 1px solid #9aa0a8; border-radius: 2px; background: var(--ap-white); color: var(--ap-blue); font-size: .75rem; font-weight: 600; line-height: 1.6; }
.ap-theme .ap-copy:hover { border-color: var(--ap-blue); }
.ap-theme .ap-copy.is-copied { background: #1f7a3d; border-color: #1f7a3d; color: var(--ap-white); }
.ap-donate .ap-button { width: 100%; justify-content: center; }

/* ---------- Articles and pages ---------- */
.ap-article__head { margin-bottom: 20px; }
.ap-theme .ap-article__title { font-size: clamp(1.875rem, 3.4vw, 2.625rem); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.ap-article__lead { margin: 16px 0 0; font-size: 1.25rem; line-height: 1.5; color: var(--ap-text); }
.ap-article__figure { margin: 0 0 28px; }
.ap-article__figure figcaption { padding-top: 8px; font-size: .875rem; color: var(--ap-muted); }
.ap-article__foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--ap-line); }
.ap-tags { font-size: .9375rem; }
.ap-tags span { color: var(--ap-muted); }

.ap-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ap-share__label { font-weight: 600; font-size: .9375rem; }
.ap-share ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.ap-theme .ap-share a, .ap-theme .ap-share button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ap-line); border-radius: 2px; background: var(--ap-white); color: var(--ap-blue); }
.ap-theme .ap-share a:hover, .ap-theme .ap-share button:hover { border-color: var(--ap-blue); background: var(--ap-blue-light); }
.ap-share .ap-icon { width: 18px; height: 18px; }
.ap-theme .ap-share button.is-copied { background: #1f7a3d; border-color: #1f7a3d; color: var(--ap-white); }

.ap-attachment { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding: 14px 16px; background: var(--ap-soft); border: 1px solid var(--ap-line); border-inline-start: 4px solid var(--ap-blue); }
.ap-attachment .ap-icon { color: var(--ap-blue); width: 22px; height: 22px; }
.ap-attachment a { font-weight: 700; }
.ap-attachment span { color: var(--ap-muted); font-size: .9375rem; }
.ap-download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; }
.ap-download span { color: var(--ap-muted); }
.ap-pdf { margin-top: 28px; border: 1px solid var(--ap-line); }
.ap-pdf iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; }

.ap-listhead { margin: 20px 0 8px; }
.ap-listhead__desc { margin-top: 10px; color: var(--ap-muted); }
.ap-listhead__search { margin-top: 16px; max-width: 560px; }
.ap-tabs { display: flex; gap: 0; margin-top: 16px; border-bottom: 1px solid var(--ap-line); overflow-x: auto; scrollbar-width: thin; }
.ap-theme .ap-tabs a { flex: none; padding: 10px 14px; color: var(--ap-text); text-decoration: none; font-weight: 500; white-space: nowrap; }
.ap-theme .ap-tabs a:hover { color: var(--ap-blue); text-decoration: underline; }
.ap-theme .ap-tabs a[aria-current] { color: var(--ap-blue); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ap-blue); }
.ap-tabs + .ap-layout { margin-top: 8px; }
.ap-empty { padding: 24px 0; color: var(--ap-muted); }

/* ---------- Reading text ---------- */
.ap-prose { font-size: 1.125rem; line-height: 1.7; }
.ap-prose > * { margin-top: 0; margin-bottom: 1.1em; }
.ap-theme .ap-prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.ap-theme .ap-prose h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }
.ap-theme .ap-prose h4 { font-size: 1.0625rem; margin: 1.4em 0 .4em; }
.ap-prose ul, .ap-prose ol { padding-inline-start: 1.3em; }
.ap-prose li + li { margin-top: .35em; }
.ap-prose img { display: block; }
.ap-prose figure { margin-inline: 0; }
.ap-prose figcaption, .ap-prose .wp-element-caption { font-size: .875rem; color: var(--ap-muted); margin-top: .5em; }
.ap-prose blockquote, .ap-prose .wp-block-quote { margin-inline: 0; padding: 4px 0 4px 20px; border-inline-start: 4px solid var(--ap-blue); font-size: 1.1875rem; color: var(--ap-ink); }
.ap-prose blockquote p { margin: 0 0 .5em; }
.ap-prose blockquote cite { font-style: normal; font-size: .9375rem; color: var(--ap-muted); }
.ap-prose hr { border: 0; border-top: 1px solid var(--ap-line); margin-block: 2em; }
.ap-prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ap-prose .wp-block-table :is(td, th), .ap-prose .wp-block-table thead, .ap-prose .wp-block-table tfoot { border: 0; }
.ap-prose th, .ap-prose td { padding: .65em .75em .65em 0; border-bottom: 1px solid var(--ap-line); text-align: start; vertical-align: top; }
.ap-prose thead th { border-bottom: 2px solid var(--ap-ink); }
.ap-prose .is-style-lead { font-size: 1.3125rem; line-height: 1.5; color: var(--ap-ink); }
.ap-prose .ap-signature { padding-top: .8em; border-top: 1px solid var(--ap-line); }
.ap-prose .is-style-ap-schedule td:first-child { width: 9em; white-space: nowrap; font-weight: 700; color: var(--ap-blue); font-variant-numeric: tabular-nums; }
.ap-prose .is-style-ap-callout { padding: 24px 28px; background: var(--ap-blue-light); border-inline-start: 6px solid var(--ap-blue); }
.ap-theme .ap-prose .is-style-ap-callout :is(h2, h3, h4) { margin-top: 0; }
.ap-prose .is-style-ap-callout > :last-child { margin-bottom: 0; }
.ap-prose .wp-block-button__link { background: var(--ap-blue); color: var(--ap-white) !important; border-radius: 2px; font-weight: 600; text-decoration: none; padding: .6em 1.2em; }
.ap-prose .wp-block-button__link:hover { background: var(--ap-blue-dark); }
.ap-prose .wp-block-button.is-style-outline .wp-block-button__link { background: var(--ap-white); border: 2px solid var(--ap-blue); color: var(--ap-blue) !important; }
.ap-prose .wp-block-file { padding: 14px 16px; background: var(--ap-soft); border: 1px solid var(--ap-line); }
.ap-prose .wp-block-file__button { background: var(--ap-blue); border-radius: 2px; }
.ap-pages { font-weight: 600; }

/* Content built with Elementor. Its own design styles are not loaded (see setup.php),
   so it gets the theme's reading style. Shadows from old inline styles are removed too. */
.ap-builder { width: 100%; }
.ap-main .elementor { font-size: 1.125rem; line-height: 1.7; color: var(--ap-text); }
.ap-main .elementor * { text-shadow: none !important; }
.ap-main .elementor :is(.elementor-section, .e-con, .elementor-element) { margin-top: 0; }
body.ap-theme .ap-main .elementor :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) { font-family: var(--ap-font); font-weight: 700; line-height: 1.25; color: var(--ap-ink); }
.ap-main .elementor h1.elementor-heading-title { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.ap-main .elementor h2, .ap-main .elementor h2.elementor-heading-title { font-size: 1.625rem; }
.ap-main .elementor h3, .ap-main .elementor h3.elementor-heading-title { font-size: 1.3125rem; }
.ap-main .elementor :is(h4, h5, h6) { font-size: 1.125rem; }
.ap-main .elementor .elementor-widget-text-editor { max-width: 820px; }
.ap-main .elementor p { margin: 0 0 1em; }
.ap-main .elementor ul, .ap-main .elementor ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
body.ap-theme .ap-main .elementor a:not(.elementor-button) { color: var(--ap-blue); text-decoration: underline; }
body.ap-theme .ap-main .elementor .elementor-button { background: var(--ap-blue); color: var(--ap-white); border-radius: 2px; box-shadow: none; }
.ap-main .elementor img { height: auto; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.ap-theme .pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--ap-line); text-decoration: none; font-weight: 600; }
.ap-theme .pagination .page-numbers.current { background: var(--ap-blue); border-color: var(--ap-blue); color: var(--ap-white); }
.ap-theme .pagination a.page-numbers:hover { border-color: var(--ap-blue); background: var(--ap-blue-light); }
.pagination .page-numbers.dots { border: 0; }

/* ---------- Comments ---------- */
.ap-comments { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ap-line); }
.ap-comments__title, .comment-reply-title { font-size: 1.25rem; }
.ap-comments__list { list-style: none; padding: 0; }
.ap-comments .comment-body { padding: 14px 0; border-bottom: 1px solid var(--ap-line); }
.ap-comments textarea, .ap-comments input[type="text"], .ap-comments input[type="email"], .ap-comments input[type="url"] { width: 100%; padding: 8px 10px; border: 1px solid #7d828a; border-radius: 2px; font: inherit; }
.ap-comments .submit { padding: 10px 18px; border: 0; border-radius: 2px; background: var(--ap-blue); color: var(--ap-white); font-weight: 600; }

/* ---------- Newsletter ---------- */
.ap-newsletter { background: var(--ap-soft); border-top: 1px solid var(--ap-line); }
.ap-newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; align-items: center; padding-block: 32px; }
.ap-theme .ap-newsletter h2 { font-size: 1.25rem; margin-bottom: 4px; }
.ap-newsletter p { margin: 0; }
.ap-newsletter__form form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ap-newsletter__form .tnp-field { flex: 1 1 200px; margin: 0; }
.ap-newsletter__form .tnp-field-button, .ap-newsletter__form .tnp-field-privacy { flex: 0 0 auto; }
.ap-newsletter__form .tnp-field-privacy { flex-basis: 100%; font-size: .875rem; }
.ap-newsletter__form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 4px; }
.ap-newsletter__form input[type="email"], .ap-newsletter__form input[type="text"] { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #7d828a; border-radius: 2px; font: inherit; background: var(--ap-white); }
.ap-newsletter__form input[type="submit"], .ap-theme .ap-newsletter__form button { height: 42px; padding: 0 18px; border: 0; border-radius: 2px; background: var(--ap-blue); color: var(--ap-white); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 760px) { .ap-newsletter__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.ap-footer { background: var(--ap-blue-dark); color: #dbe2ef; font-size: .9375rem; }
.ap-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-block: 48px 40px; }
@media (max-width: 960px) { .ap-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ap-footer__grid { grid-template-columns: 1fr; } }
.ap-footer p { margin: 0 0 .6em; }
.ap-footer__name { font-size: 1.0625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--ap-white); }
.ap-theme .ap-footer__title { font-size: 1rem; color: var(--ap-white); margin-bottom: 12px; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-footer li + li { margin-top: 8px; }
.ap-theme .ap-footer a { color: var(--ap-white); text-decoration: none; }
.ap-theme .ap-footer a:hover { text-decoration: underline; }
.ap-social a { display: inline-flex; align-items: center; gap: 10px; }
.ap-social .ap-icon { width: 20px; height: 20px; }
.ap-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .16); }
.ap-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px; font-size: .875rem; }
.ap-footer__bottom-inner p { margin: 0; }
.ap-footer__bottom-inner p:last-child { margin-inline-start: auto; }

/* ---------- Print ---------- */
@media print {
	.ap-header, .ap-footer, .ap-notice, .ap-share, .ap-layout__side, .ap-newsletter, .ap-crumbs { display: none !important; }
	.ap-layout { display: block; }
	.ap-prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
