/*
Theme Name: AIPulse Pulse
Theme URI: https://aipulse.co.il
Author: Digital Hype
Author URI: https://digitalhype.co.il
Description: Marketing AI Pulse — מימוש "AIPulse Redesign" (Claude Design, 07.2026). שפת FRAME: נייבי + קורל, Rubik/Assistant, קו הפעימה. RTL-first.
Version: 1.0.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: aipulse
*/

/* =========================================================================
   1. Tokens
   ===================================================================== */
:root {
	--navy: #12314F;
	--navy-2: #0d2846;
	--navy-3: #1b4468;
	--coral: #E86A4E;
	--coral-soft: #ff9d86;
	--bg: #ffffff;
	--bg-soft: #F4F6F9;
	--bg-page: #fbfcfd;
	--line: #eef1f5;
	--line-2: #e7ecf2;
	--border: #d6dee7;
	--text: #12314F;
	--text-2: #3a4a5c;
	--text-3: #5a6b7e;
	--text-body: #1c2c3c;
	--muted: #8794a4;
	--muted-2: #9aa6b4;
	--on-navy: #aebccb;
	--on-navy-2: #8ba0b6;
	--on-navy-3: #cdd8e4;
	--font-body: 'Assistant', -apple-system, sans-serif;
	--font-head: 'Rubik', 'Assistant', sans-serif;
	--r-sm: 9px;
	--r-md: 14px;
	--r-lg: 16px;
	--r-xl: 20px;
	--shadow-card: 0 20px 44px -28px rgba(18, 49, 79, .4);
	--shadow-lift: 0 24px 50px -30px rgba(18, 49, 79, .4);
	--wrap: 1200px;
}

/* =========================================================================
   2. Base
   ===================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--coral); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy); }
::selection { background: var(--coral); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, .ap-h { font-family: var(--font-head); color: var(--text); }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.ap-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

@keyframes ap-beat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.55); opacity: .55; } }
@keyframes ap-trace { from { stroke-dashoffset: 620; } to { stroke-dashoffset: 0; } }
@keyframes ap-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 106, 78, 0); } 50% { box-shadow: 0 0 0 7px rgba(232, 106, 78, .14); } }
@keyframes ap-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared bits */
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; }
.ap-dot--beat { animation: ap-beat 1.3s ease-in-out infinite; }

.ap-badge {
	display: inline-block;
	background: var(--coral);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 6px;
}
a.ap-badge:hover { color: #fff; background: var(--navy); }

.ap-chip {
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 20px;
	padding: 7px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	display: inline-block;
	transition: background .15s, color .15s;
}
.ap-chip:hover, .ap-chip.is-active { background: var(--navy); color: #fff; }

.ap-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ap-section-head__title { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--text); }
.ap-section-head__sub { font-size: 13px; color: var(--muted); }
.ap-section-head__rule { flex: 1; height: 1px; background: var(--line); }
.ap-section-head__more { font-size: 14px; font-weight: 700; white-space: nowrap; }

.ap-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	padding: 13px 26px;
	border-radius: 11px;
	border: 0;
}
.ap-btn:hover { background: var(--coral); color: #fff; }
.ap-btn--coral { background: var(--coral); }
.ap-btn--coral:hover { background: var(--navy); }
.ap-btn--glow { animation: ap-glow 2.4s ease-in-out infinite; }
.ap-btn--ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.ap-btn--ghost:hover { background: transparent; border-color: var(--coral); color: var(--coral); }

/* Thumbnails + branded placeholder */
.ap-img { width: 100%; height: 100%; object-fit: cover; }
.ap-img--ph {
	background: linear-gradient(135deg, var(--navy), var(--navy-3));
	position: relative;
	overflow: hidden;
}
.ap-img--ph::before {
	content: "";
	position: absolute; inset: 0;
	background: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255,255,255,.04) 14px, rgba(255,255,255,.04) 28px);
}
.ap-img--ph::after {
	content: "";
	position: absolute; top: -40%; inset-inline-end: -20%;
	width: 70%; aspect-ratio: 1;
	background: radial-gradient(circle, rgba(232,106,78,.27), transparent 70%);
}
.ap-ph-pulse {
	position: absolute; inset-inline: 12%; bottom: 38%;
	height: 2px; background: linear-gradient(90deg, var(--coral-soft), var(--coral), var(--coral-soft));
	border-radius: 2px;
}
.ap-ph-pulse::after {
	content: ""; position: absolute; inset-inline-end: 24%; top: -7px;
	border-inline-start: 7px solid transparent; border-inline-end: 7px solid transparent;
	border-bottom: 14px solid var(--coral); opacity: .9;
}

.ap-pulse-line { position: absolute; left: 0; right: 0; width: 100%; pointer-events: none; }

/* =========================================================================
   3. Value strip (top bar)
   ===================================================================== */
.ap-strip {
	background: var(--navy);
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,.07);
}
.ap-strip__in {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding-block: 10px;
}
.ap-strip__live { display: flex; align-items: center; gap: 12px; font-size: 14px; min-width: 0; }
.ap-strip__label { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 11px; letter-spacing: .08em; color: var(--coral); white-space: nowrap; }
.ap-strip__sep { color: var(--on-navy-2); }
.ap-strip__title { color: var(--on-navy-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-strip__title:hover { color: #fff; }
.ap-strip__time { color: #7a8ea3; font-size: 12px; white-space: nowrap; }
.ap-strip__cta {
	color: #fff; background: var(--coral); font-weight: 700; font-size: 13px;
	padding: 8px 18px; border-radius: 8px; white-space: nowrap;
}
.ap-strip__cta:hover { background: #fff; color: var(--navy); }

/* =========================================================================
   4. Masthead
   ===================================================================== */
.ap-masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.ap-masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.ap-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ap-brand a { display: block; line-height: 0; }
.ap-brand img, .ap-logo-svg { height: 44px; width: auto; display: block; direction: ltr; }
.ap-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--navy); }
.ap-logo-text b { color: var(--coral); }
.ap-brand__tag {
	font-size: 13px; color: #7a8798;
	border-inline-start: 1px solid var(--border);
	padding-inline-start: 14px;
	line-height: 1.35; max-width: 15ch;
}
.ap-nav { display: flex; align-items: center; gap: 26px; }
.ap-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; }
.ap-nav a { font-size: 15px; font-weight: 500; color: var(--text-2); }
.ap-nav a:hover, .ap-nav .current-menu-item > a, .ap-nav .current-cat > a { color: var(--coral); font-weight: 700; }
.ap-nav__search {
	width: 36px; height: 36px;
	border: 1.5px solid var(--border); border-radius: var(--r-sm);
	display: flex; align-items: center; justify-content: center;
	color: #7a8798; background: transparent; font-size: 17px;
}
.ap-nav__search:hover { border-color: var(--coral); color: var(--coral); }
.ap-nav__burger { display: none; }

/* Search overlay */
.ap-search-overlay {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(18, 49, 79, .85);
	display: none; align-items: flex-start; justify-content: center;
	padding: 12vh 24px 24px;
}
.ap-search-overlay.is-open { display: flex; }
.ap-search-overlay form { width: min(680px, 100%); }
.ap-search-box {
	display: flex; align-items: center; gap: 14px;
	background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-md);
	padding: 16px 22px;
}
.ap-search-box .ap-search-icon { color: var(--coral); font-size: 22px; }
.ap-search-box input[type="search"] {
	flex: 1; border: 0; outline: 0;
	font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--text);
	background: transparent; min-width: 0;
}
.ap-search-box input::placeholder { color: var(--muted-2); font-weight: 500; }
.ap-search-box button[type="submit"] {
	background: var(--coral); color: #fff; border: 0; border-radius: 9px;
	font-weight: 700; font-size: 14px; padding: 9px 18px;
}

/* Mobile drawer */
.ap-drawer {
	position: fixed; inset: 0; z-index: 95;
	background: var(--navy); color: #fff;
	display: none; flex-direction: column; gap: 4px;
	padding: 80px 28px 28px;
	overflow-y: auto;
}
.ap-drawer.is-open { display: flex; }
.ap-drawer ul { list-style: none; display: flex; flex-direction: column; }
.ap-drawer a {
	display: block; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 22px;
	padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.ap-drawer a:hover { color: var(--coral-soft); }
.ap-drawer__close {
	position: absolute; top: 22px; inset-inline-start: 22px;
	background: rgba(255,255,255,.1); border: 0; color: #fff;
	width: 40px; height: 40px; border-radius: 10px; font-size: 18px;
}

/* Reading progress (single) */
.ap-progress { position: sticky; top: 0; z-index: 60; height: 3px; background: var(--line); }
.ap-progress__bar { height: 100%; width: 0; background: var(--coral); transition: width .1s linear; }

/* =========================================================================
   5. Front page — hero
   ===================================================================== */
.ap-home { display: flex; flex-direction: column; gap: 64px; padding-block: 44px 56px; }

.ap-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.ap-hero__kicker { margin-bottom: 14px; }
.ap-hero__title {
	font-weight: 800; font-size: clamp(30px, 4vw, 50px);
	line-height: 1.07; letter-spacing: -.02em;
}
.ap-hero__title a { color: inherit; }
.ap-hero__title a:hover { color: var(--navy-3); }
.ap-hero__sub {
	font-family: var(--font-head); font-weight: 600; font-size: 21px;
	color: var(--coral); line-height: 1.3; margin-top: 12px; max-width: 26ch;
}
.ap-hero__excerpt { margin-top: 12px; font-size: 17px; color: #4a5c6e; line-height: 1.55; max-width: 40ch; }
.ap-hero__meta { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: #7a8798; }
.ap-hero__meta strong { font-weight: 700; color: var(--text); }
.ap-hero__cta { margin-top: 18px; }

.ap-avatar {
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(232,106,78,.13); border: 1.5px solid var(--coral);
	overflow: hidden; flex-shrink: 0;
}
.ap-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ap-avatar--lg { width: 64px; height: 64px; border-width: 2px; }

.ap-hero__media {
	border-radius: var(--r-lg); overflow: hidden; position: relative;
	min-height: 320px; aspect-ratio: 16/10;
}
.ap-hero__media .ap-img, .ap-hero__media .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(10,26,45,.88) 0%, rgba(10,26,45,.35) 34%, transparent 62%);
	pointer-events: none;
}
.ap-hero__media .ap-pulse-line { bottom: 62px; height: 52px; z-index: 2; }
.ap-hero__media-caption {
	position: absolute; bottom: 18px; inset-inline: 24px; z-index: 2;
	color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 23px; line-height: 1.1;
	pointer-events: none;
}
.ap-hero__media-caption i { color: var(--coral); font-style: normal; }

/* Ticker rail */
.ap-ticker {
	margin-top: 28px;
	display: grid; grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.ap-ticker__card {
	position: relative; min-height: 172px;
	border-inline-end: 1px solid var(--line);
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 14px 16px; overflow: hidden;
}
.ap-ticker__card:last-child { border-inline-end: 0; }
.ap-ticker__card .ap-img, .ap-ticker__card .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-ticker__card::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(10,26,45,.92), rgba(10,26,45,.42) 55%, rgba(10,26,45,.2));
	pointer-events: none;
}
.ap-ticker__meta {
	position: relative; z-index: 2; display: flex; align-items: center; gap: 6px;
	font-size: 11px; font-weight: 700; pointer-events: none;
}
.ap-ticker__meta .ap-dot { width: 6px; height: 6px; }
.ap-ticker__cat { color: var(--coral-soft); }
.ap-ticker__time { color: #cddbe9; }
.ap-ticker__title {
	position: relative; z-index: 2; font-weight: 700; font-size: 15px;
	color: #fff; line-height: 1.3; pointer-events: none;
}
.ap-ticker__all {
	background: var(--navy); position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: center;
	padding: 20px 18px;
}
.ap-ticker__all::before {
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
	animation: ap-sweep 3.5s ease-in-out infinite; pointer-events: none;
}
.ap-ticker__all-label { position: relative; font-size: 11px; font-weight: 700; color: var(--coral); }
.ap-ticker__all-title { position: relative; font-weight: 700; font-size: 16px; color: #fff; line-height: 1.3; margin-top: 6px; }

/* =========================================================================
   6. Cards
   ===================================================================== */
.ap-card {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .2s, box-shadow .2s;
}
.ap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ap-card__media { position: relative; aspect-ratio: 16/9; }
.ap-card__media .ap-img, .ap-card__media .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-card__badge { position: absolute; top: 12px; inset-inline-start: auto; inset-inline-end: 12px; z-index: 2; }
.ap-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ap-card__cat { font-size: 12px; font-weight: 700; color: var(--coral); }
.ap-card__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text); line-height: 1.25; }
.ap-card__excerpt { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.ap-card__excerpt b { color: var(--coral); }
.ap-card__meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: auto; }
.ap-card--lg .ap-card__body { padding: 20px; }
.ap-card--lg .ap-card__title { font-size: 21px; }

.ap-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ap-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Headline rows */
.ap-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 36px; }
.ap-row {
	display: flex; gap: 14px; align-items: center;
	padding: 12px 8px; margin: 0 -8px;
	border-radius: 10px; transition: background .15s;
}
.ap-row:hover { background: var(--bg-soft); }
.ap-row__thumb {
	position: relative; width: 96px; height: 64px; flex-shrink: 0;
	border-radius: var(--r-sm); overflow: hidden;
}
.ap-row__thumb .ap-img, .ap-row__thumb .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-row__meta { font-size: 11px; font-weight: 700; color: var(--coral); }
.ap-row__title { font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.3; margin-top: 3px; }

/* Overlay feature card */
.ap-feature {
	border-radius: var(--r-lg); overflow: hidden; position: relative;
	min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
	padding: 28px; color: #fff; transition: transform .2s;
}
.ap-feature:hover { transform: translateY(-4px); }
.ap-feature .ap-img, .ap-feature .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-feature::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(10,26,45,.93), rgba(10,26,45,.4) 55%, rgba(10,26,45,.12));
	pointer-events: none;
}
.ap-feature__in { position: relative; z-index: 2; pointer-events: none; }
.ap-feature__cat { font-size: 12px; font-weight: 700; color: var(--coral-soft); }
.ap-feature__title { font-family: var(--font-head); font-weight: 900; font-size: 26px; line-height: 1.2; margin-top: 8px; max-width: 20ch; color: #fff; }
.ap-feature__meta { font-size: 13px; color: #cddbe9; margin-top: 10px; }

/* Compact list next to feature */
.ap-list { display: flex; flex-direction: column; gap: 14px; }
.ap-list__item { border-bottom: 1px solid var(--line); padding-bottom: 14px; display: block; }
.ap-list__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ap-list__cat { font-size: 11px; font-weight: 700; color: var(--coral); }
.ap-list__title { font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.3; margin-top: 4px; }
.ap-list__meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

.ap-showcase-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }

/* =========================================================================
   7. In focus (navy block)
   ===================================================================== */
.ap-focus {
	background: var(--navy); border-radius: var(--r-xl);
	padding: 32px; color: #fff;
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center;
}
.ap-focus::before {
	content: ""; position: absolute; top: -80px; inset-inline-end: auto; left: -60px;
	width: 300px; height: 300px;
	background: radial-gradient(circle, rgba(232,106,78,.2), transparent 70%);
	pointer-events: none;
}
.ap-focus__media { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 280px; }
.ap-focus__media .ap-img, .ap-focus__media .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-focus__body { position: relative; }
.ap-focus__title { font-family: var(--font-head); font-weight: 900; font-size: 30px; line-height: 1.1; color: #fff; }
.ap-focus__sub { margin-top: 8px; color: var(--on-navy); font-size: 16px; }
.ap-focus__list { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.ap-focus__item {
	display: flex; align-items: baseline; gap: 11px; color: #fff;
	border-bottom: 1px solid rgba(255,255,255,.1);
	padding: 8px; margin: 0 -8px; border-radius: 8px; transition: background .15s;
}
.ap-focus__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.ap-focus__num { color: var(--coral); font-weight: 800; font-size: 14px; font-family: var(--font-head); }
.ap-focus__item-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.ap-focus__more {
	display: inline-block; margin-top: 18px; color: #fff; font-weight: 700;
	border: 1.5px solid rgba(255,255,255,.25); padding: 10px 20px; border-radius: 10px;
}
.ap-focus__more:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

/* =========================================================================
   8. Newsletter
   ===================================================================== */
.ap-nl {
	background: var(--bg-soft); border: 1px solid var(--line-2);
	border-radius: var(--r-xl); padding: 44px;
	display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
	position: relative; overflow: hidden;
}
.ap-nl .ap-pulse-line { bottom: 0; height: 44px; opacity: .5; }
.ap-nl__title { font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--text); }
.ap-nl__sub { margin-top: 10px; font-size: 17px; color: var(--text-3); max-width: 48ch; line-height: 1.5; }
.ap-nl__social-proof { margin-top: 14px; font-size: 13px; color: var(--muted); }
.ap-nl__form { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.ap-nl__fields { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-nl__form input[type="email"] {
	background: #fff; border: 1px solid var(--border); border-radius: 10px;
	padding: 14px 18px; font-size: 15px; min-width: 260px; color: var(--text); outline: 0;
}
.ap-nl__form input[type="email"]:focus { border-color: var(--coral); }
.ap-nl__form button {
	background: var(--coral); color: #fff; font-weight: 700; border: 0;
	border-radius: 10px; padding: 14px 24px; font-size: 15px;
}
.ap-nl__form button:hover { background: var(--navy); }
.ap-nl__consent {
	display: flex; gap: 8px; align-items: flex-start;
	font-size: 12px; color: var(--text-3); line-height: 1.4; max-width: 360px; cursor: pointer;
}
.ap-nl__consent input { accent-color: var(--coral); width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; }
.ap-nl__consent a { text-decoration: underline; }
.ap-nl__msg { font-size: 14px; font-weight: 700; display: none; }
.ap-nl__msg.is-ok { display: block; color: #1d7a4f; }
.ap-nl__msg.is-err { display: block; color: #c0392b; }

.ap-nl--inline { padding: 28px; border-radius: var(--r-lg); display: block; }
.ap-nl--inline .ap-nl__title { font-size: 22px; }
.ap-nl--inline .ap-nl__sub { font-size: 15px; margin-top: 6px; }
.ap-nl--inline .ap-nl__form { margin-top: 14px; }

/* =========================================================================
   9. Footer
   ===================================================================== */
.ap-footer { background: var(--navy); color: var(--on-navy-2); margin-top: 64px; }
.ap-footer__main {
	display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start;
	padding-block: 40px 28px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.ap-footer__brand { max-width: 30ch; }
.ap-footer__brand .ap-logo-svg, .ap-footer__brand img { height: 32px; width: auto; margin-bottom: 12px; }
.ap-footer__brand-desc { font-size: 14px; line-height: 1.5; }
.ap-footer__social-label { font-size: 12px; font-weight: 700; color: #7a8ea3; margin: 14px 0 8px; }
.ap-footer__social { display: flex; gap: 9px; flex-wrap: wrap; }
.ap-footer__social a {
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
	border-radius: 8px; padding: 8px 14px;
	color: #fff; font-size: 13px; font-weight: 600;
	transition: background .15s, border-color .15s;
}
.ap-footer__social a:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.ap-footer__cols { display: flex; gap: 52px; flex-wrap: wrap; }
.ap-footer__col-title { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.ap-footer__cols ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ap-footer__cols a { color: var(--on-navy-2); font-size: 14px; }
.ap-footer__cols a:hover { color: var(--coral); }
.ap-footer__nl { max-width: 30ch; }
.ap-footer__nl-title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.ap-footer__nl-desc { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.ap-footer__nl .ap-nl__fields input[type="email"] {
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
	color: #fff; min-width: 180px; padding: 11px 14px; font-size: 14px; border-radius: 9px;
}
.ap-footer__nl input::placeholder { color: var(--on-navy-2); }
.ap-footer__nl button { padding: 11px 20px; font-size: 14px; border-radius: 9px; }
.ap-footer__nl .ap-nl__consent { color: var(--on-navy-2); max-width: 300px; }
.ap-footer__nl .ap-nl__consent a { color: var(--on-navy-3); }

.ap-footer__network { padding-block: 22px 4px; }
.ap-footer__network-label { font-size: 12px; font-weight: 700; color: #7a8ea3; margin-bottom: 10px; }
.ap-footer__network-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.ap-sister {
	display: flex; flex-direction: column; gap: 3px;
	background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
	border-radius: 10px; padding: 13px 18px; min-width: 230px;
	transition: border-color .15s, background .15s;
}
.ap-sister:hover { border-color: var(--coral); background: rgba(255,255,255,.08); }
.ap-sister__kind { font-size: 11px; color: #7a8ea3; font-weight: 700; }
.ap-sister__name { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.ap-sister__desc { font-size: 12px; color: var(--on-navy-2); }

.ap-footer__bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
	font-size: 13px; padding-block: 16px 24px;
}

/* =========================================================================
   10. Single post
   ===================================================================== */
.ap-article { max-width: 720px; margin-inline: auto; padding: 40px 24px 48px; }
.ap-article__crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.ap-article__crumbs-path { color: var(--muted-2); font-size: 13px; }
.ap-article__crumbs-path a { color: var(--muted-2); }
.ap-article__crumbs-path a:hover { color: var(--coral); }
.ap-article__title {
	font-weight: 900; font-size: clamp(28px, 4vw, 38px);
	line-height: 1.15; letter-spacing: -.02em;
}
.ap-article__byline {
	display: flex; align-items: center; gap: 12px; margin-top: 16px;
	padding-bottom: 20px; border-bottom: 1px solid var(--line);
	font-size: 14px; color: #7a8798; flex-wrap: wrap;
}
.ap-article__byline strong { font-weight: 700; color: var(--text); }
.ap-article__byline strong a { color: inherit; }
.ap-article__byline-sep { color: #c9d2dc; }
.ap-article__actions { margin-inline-start: auto; display: flex; gap: 8px; }
.ap-article__actions button {
	width: 32px; height: 32px; border: 1px solid var(--line-2); background: transparent;
	border-radius: 8px; display: flex; align-items: center; justify-content: center;
	color: #7a8798; font-size: 13px;
}
.ap-article__actions button:hover { border-color: var(--coral); color: var(--coral); }

.ap-tldr {
	margin-top: 26px; background: var(--bg-soft);
	border-inline-start: 4px solid var(--coral);
	border-radius: 0 12px 12px 0; padding: 22px 24px;
}
[dir="rtl"] .ap-tldr { border-radius: 12px 0 0 12px; }
.ap-tldr__label { font-weight: 800; font-size: 14px; color: var(--coral); letter-spacing: .04em; margin-bottom: 12px; }
.ap-tldr ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ap-tldr li { display: flex; gap: 10px; font-size: 15px; color: #2c3e52; line-height: 1.5; }
.ap-tldr li::before { content: "·"; color: var(--coral); font-weight: 800; }

.ap-article__hero { margin-top: 24px; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; position: relative; }
.ap-article__hero .ap-img, .ap-article__hero .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-article__hero-caption { font-family: monospace; font-size: 11px; color: var(--muted-2); margin-top: 8px; }

/* Entry content typography */
.ap-entry { margin-top: 26px; }
.ap-entry > p { margin-top: 16px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.ap-entry > p:first-child { margin-top: 0; font-size: 19px; color: var(--text-body); }
.ap-entry > p:first-child::first-letter {
	font-family: var(--font-head); font-weight: 900; font-size: 46px;
	float: inline-start; line-height: .8;
	margin: 6px 0 0; margin-inline-end: 14px;
	color: var(--coral);
}
.ap-entry h2 { font-weight: 800; font-size: 26px; margin-top: 34px; }
.ap-entry h3 { font-weight: 700; font-size: 21px; margin-top: 28px; }
.ap-entry h2 + p, .ap-entry h3 + p { margin-top: 12px; }
.ap-entry a { font-weight: 600; }
.ap-entry ul, .ap-entry ol { margin-top: 16px; padding-inline-start: 24px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.ap-entry li { margin-top: 8px; }
.ap-entry li::marker { color: var(--coral); font-weight: 800; }
.ap-entry img { border-radius: var(--r-md); margin-top: 28px; }
.ap-entry figure { margin-top: 28px; }
.ap-entry figure img { margin-top: 0; }
.ap-entry figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Pull quote */
.ap-entry blockquote {
	margin: 30px 0; border-inline-start: 4px solid var(--coral);
	padding: 6px 24px;
}
.ap-entry blockquote p {
	font-family: var(--font-head); font-weight: 700; font-size: 26px;
	line-height: 1.3; color: var(--text); margin: 0;
}

/* Takeaway / action box — use <div class="ap-box"> (or wp-block-group ap-box) in content */
.ap-box, .ap-entry .wp-block-group.ap-box {
	margin: 28px 0; background: var(--bg-soft);
	border: 1px solid var(--line-2); border-radius: var(--r-md);
	padding: 22px 24px;
}
.ap-box__label, .ap-box > p:first-child strong {
	font-weight: 800; font-size: 13px; color: var(--coral); letter-spacing: .05em;
	display: block; margin-bottom: 10px;
}
.ap-box p { font-size: 16px !important; line-height: 1.6; color: #2c3e52; margin: 0; }

/* Related rail (injected) */
.ap-related-rail {
	margin: 30px 0; border: 1px dashed var(--border);
	border-radius: var(--r-md); padding: 20px; background: var(--bg-page);
}
.ap-related-rail__label { font-size: 12px; font-weight: 800; color: var(--coral); letter-spacing: .06em; margin-bottom: 14px; }
.ap-related-rail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-related-rail__item { display: flex; gap: 12px; align-items: center; }
.ap-related-rail__thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--r-sm); overflow: hidden; position: relative; display: block; }
.ap-related-rail__thumb .ap-img, .ap-related-rail__thumb .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-related-rail__title { font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.3; }
.ap-related-rail__item:hover .ap-related-rail__title { color: var(--coral); }

/* Tags */
.ap-article__tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.ap-article__tags a { font-size: 13px; }

/* Author box */
.ap-author-box {
	margin-top: 32px; background: var(--navy); border-radius: var(--r-lg);
	padding: 26px; display: flex; gap: 18px; align-items: flex-start; color: #fff;
}
.ap-author-box .ap-avatar { background: rgba(232,106,78,.2); }
.ap-author-box__label { font-size: 12px; color: var(--coral); font-weight: 700; }
.ap-author-box__name { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-top: 2px; color: #fff; }
.ap-author-box__bio { font-size: 14px; color: var(--on-navy); line-height: 1.5; margin-top: 8px; max-width: 52ch; }
.ap-author-box__link {
	display: inline-block; margin-top: 12px; color: #fff; font-weight: 700; font-size: 14px;
	border: 1.5px solid rgba(255,255,255,.25); padding: 8px 18px; border-radius: var(--r-sm);
}
.ap-author-box__link:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

/* Related grid + next-bar */
.ap-related { margin-top: 36px; }
.ap-next-bar {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
	background: var(--navy); padding: 12px 16px;
	display: none; align-items: center; justify-content: space-between; gap: 10px;
	transform: translateY(100%); transition: transform .25s;
}
.ap-next-bar.is-visible { transform: translateY(0); }
.ap-next-bar__label { font-size: 10px; color: var(--coral); font-weight: 700; }
.ap-next-bar__title {
	font-size: 13px; color: #fff; font-weight: 700;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-next-bar__btn {
	background: var(--coral); color: #fff; font-weight: 700; font-size: 13px;
	padding: 9px 16px; border-radius: var(--r-sm); flex-shrink: 0;
}
.ap-next-bar__btn:hover { color: #fff; background: #fff3; }

/* =========================================================================
   11. Archive (category) hero
   ===================================================================== */
.ap-arch-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.ap-arch-hero::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(255,255,255,.03) 16px, rgba(255,255,255,.03) 32px);
	pointer-events: none;
}
.ap-arch-hero::after {
	content: ""; position: absolute; top: -120px; left: -70px;
	width: 420px; height: 420px;
	background: radial-gradient(circle, rgba(232,106,78,.2), transparent 70%);
	pointer-events: none;
}
.ap-arch-hero__in { position: relative; z-index: 2; padding-block: 48px 40px; }
.ap-arch-hero__watermark {
	position: absolute; bottom: -40px; left: 24px; z-index: 1;
	font-family: var(--font-head); font-weight: 900; font-size: 200px; line-height: .8;
	color: rgba(255,255,255,.04); pointer-events: none; user-select: none;
}
.ap-arch-hero .ap-pulse-line { top: 50%; transform: translateY(-50%); height: 120px; opacity: .5; }
.ap-arch-hero__crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--on-navy-2); }
.ap-arch-hero__crumbs a { color: #7a8ea3; }
.ap-arch-hero__crumbs a:hover { color: var(--coral-soft); }
.ap-arch-hero__row { display: flex; align-items: flex-end; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.ap-arch-hero__kind { margin-bottom: 10px; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.ap-arch-hero__title { font-weight: 900; font-size: clamp(38px, 6vw, 60px); line-height: .95; letter-spacing: -.02em; color: #fff; }
.ap-arch-hero__desc { font-size: 17px; color: var(--on-navy); line-height: 1.55; margin-top: 16px; max-width: 52ch; }
.ap-arch-hero__stats { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.ap-stat-chip {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
	border-radius: 11px; padding: 10px 18px;
	display: flex; align-items: center; gap: 8px;
}
.ap-stat-chip__num { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: #fff; }
.ap-stat-chip__label { font-size: 13px; color: var(--on-navy-2); }

.ap-arch-filter {
	padding-block: 20px; border-bottom: 1px solid var(--line);
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ap-arch-filter__chips { display: flex; gap: 8px; flex-wrap: wrap; }

.ap-arch-body { padding-block: 32px 40px; }

/* Lead split card */
.ap-lead-card {
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
	border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
	margin-bottom: 28px; transition: box-shadow .2s;
}
.ap-lead-card:hover { box-shadow: var(--shadow-lift); }
.ap-lead-card__media { position: relative; min-height: 240px; }
.ap-lead-card__media .ap-img, .ap-lead-card__media .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-lead-card__body { padding: 26px; padding-inline-start: 0; display: flex; flex-direction: column; justify-content: center; }
[dir="ltr"] .ap-lead-card__body { padding-inline-start: 26px; padding-inline-end: 0; }
.ap-lead-card__kicker { font-size: 12px; font-weight: 700; color: var(--coral); }
.ap-lead-card__title { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--text); line-height: 1.2; margin-top: 8px; }
.ap-lead-card__excerpt { font-size: 15px; color: var(--text-3); line-height: 1.5; margin-top: 10px; }
.ap-lead-card__meta { font-size: 13px; color: var(--muted); margin-top: 12px; font-weight: 600; }

/* Pagination */
.ap-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; }
.ap-pagination .page-numbers {
	min-width: 40px; height: 40px; padding-inline: 8px;
	border: 1px solid var(--line-2); border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--text); font-weight: 600; font-size: 15px;
}
.ap-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.ap-pagination .page-numbers:hover:not(.current):not(.dots) { border-color: var(--coral); color: var(--coral); }
.ap-pagination .dots { border: 0; }

/* =========================================================================
   12. Author page
   ===================================================================== */
.ap-author-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.ap-author-hero::after {
	content: ""; position: absolute; top: -90px; left: -50px;
	width: 320px; height: 320px;
	background: radial-gradient(circle, rgba(232,106,78,.19), transparent 70%);
	pointer-events: none;
}
.ap-author-hero__in {
	position: relative; z-index: 2;
	display: flex; gap: 28px; align-items: flex-start;
	padding-block: 40px 36px;
}
.ap-author-hero__avatar {
	width: 132px; height: 132px; flex-shrink: 0; border-radius: 50%;
	background: rgba(232,106,78,.2); border: 3px solid var(--coral);
	position: relative; overflow: hidden;
}
.ap-author-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-author-hero__role { font-size: 13px; color: var(--coral); font-weight: 700; letter-spacing: .06em; }
.ap-author-hero__name { font-weight: 900; font-size: clamp(30px, 5vw, 42px); line-height: 1; margin-top: 6px; color: #fff; }
.ap-author-hero__bio { font-size: 16px; color: var(--on-navy); line-height: 1.55; margin-top: 12px; max-width: 56ch; }
.ap-author-hero__social { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.ap-author-hero__social a {
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
	border-radius: 8px; padding: 7px 14px; color: #fff; font-size: 13px; font-weight: 600;
}
.ap-author-hero__social a:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

.ap-author-stats { background: var(--navy-2); color: #fff; border-top: 1px solid rgba(255,255,255,.07); }
.ap-author-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ap-author-stats__cell { padding: 20px 28px; border-inline-end: 1px solid rgba(255,255,255,.07); }
.ap-author-stats__cell:last-child { border-inline-end: 0; }
.ap-author-stats__num { font-family: var(--font-head); font-weight: 900; font-size: 32px; color: #fff; }
.ap-author-stats__cell:first-child .ap-author-stats__num { color: var(--coral); }
.ap-author-stats__label { font-size: 13px; color: var(--on-navy-2); }

.ap-author-topics { padding-block: 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ap-author-topics__label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* =========================================================================
   13. Search
   ===================================================================== */
.ap-search-hero { padding-block: 36px 24px; }
.ap-search-hero .ap-search-box input[type="search"] { font-size: 24px; }
.ap-search-hero__count { margin-top: 14px; font-size: 15px; color: var(--text-3); }
.ap-search-hero__count strong { font-weight: 700; color: var(--text); }

.ap-search-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 26px; overflow-x: auto; }
.ap-search-tabs span, .ap-search-tabs a {
	padding: 12px 0; border-bottom: 2px solid transparent;
	color: #7a8798; font-size: 15px; white-space: nowrap;
}
.ap-search-tabs .is-active { border-color: var(--coral); font-weight: 700; color: var(--text); }

.ap-search-results { padding-block: 28px 40px; display: flex; flex-direction: column; gap: 6px; }
.ap-term-match {
	display: flex; align-items: center; gap: 16px;
	background: var(--navy); border-radius: var(--r-md);
	padding: 18px 22px; color: #fff; margin-bottom: 14px;
}
.ap-term-match:hover { color: #fff; }
.ap-term-match__icon {
	width: 44px; height: 44px; border-radius: 11px; background: var(--coral);
	display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.ap-term-match__kind { font-size: 12px; color: var(--on-navy-2); }
.ap-term-match__title { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.ap-term-match__title mark, .ap-term-match__title em { background: none; color: var(--coral); font-style: normal; }
.ap-term-match__count { font-size: 13px; color: var(--on-navy); margin-inline-start: auto; white-space: nowrap; }

.ap-result {
	display: flex; gap: 18px; align-items: center;
	padding: 16px 10px; margin: 0 -10px; border-radius: 12px; transition: background .15s;
}
.ap-result:hover { background: var(--bg-soft); }
.ap-result__thumb { width: 130px; height: 82px; flex-shrink: 0; border-radius: 10px; overflow: hidden; position: relative; }
.ap-result__thumb .ap-img, .ap-result__thumb .ap-img--ph { position: absolute; inset: 0; height: 100%; }
.ap-result__meta { font-size: 12px; font-weight: 700; color: var(--coral); }
.ap-result__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--text); line-height: 1.25; margin-top: 3px; }
.ap-result__excerpt { font-size: 14px; color: var(--text-3); line-height: 1.5; margin-top: 5px; }
.ap-result mark { background: rgba(232,106,78,.13); color: var(--text); padding: 0 2px; border-radius: 3px; }
.ap-result-sep { height: 1px; background: var(--line); margin: 0 -10px; }

.ap-search-empty { text-align: center; padding-block: 48px; }
.ap-search-empty__title { font-family: var(--font-head); font-weight: 900; font-size: 26px; }
.ap-search-empty__sub { color: var(--text-3); margin-top: 10px; }

/* =========================================================================
   14. Pages (about / contact / generic)
   ===================================================================== */
.ap-page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.ap-page-hero::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(255,255,255,.025) 16px, rgba(255,255,255,.025) 32px);
	pointer-events: none;
}
.ap-page-hero::after {
	content: ""; position: absolute; top: -100px; left: -60px;
	width: 380px; height: 380px;
	background: radial-gradient(circle, rgba(232,106,78,.18), transparent 70%);
	pointer-events: none;
}
.ap-page-hero .ap-pulse-line { bottom: 0; height: 50px; opacity: .4; }
.ap-page-hero__in { position: relative; z-index: 2; padding-block: 56px; max-width: 62ch; }
.ap-page-hero__kicker { font-size: 13px; color: var(--coral); font-weight: 700; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 7px; }
.ap-page-hero__title { font-weight: 900; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin-top: 10px; color: #fff; }
.ap-page-hero__sub { font-size: 19px; color: var(--on-navy); line-height: 1.6; margin-top: 16px; }

.ap-page-body { padding-block: 44px; }

/* Icon tiles */
.ap-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ap-tile { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.ap-tile__icon {
	width: 40px; height: 40px; border-radius: 11px; background: var(--coral); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px;
}
.ap-tile__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text); }
.ap-tile__desc { font-size: 14px; color: var(--text-3); line-height: 1.5; margin-top: 6px; }

/* Numbers band */
.ap-numbers {
	margin-top: 36px; background: var(--bg-soft); border: 1px solid var(--line-2);
	border-radius: var(--r-lg); padding: 30px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.ap-numbers__num { font-family: var(--font-head); font-weight: 900; font-size: 38px; color: var(--coral); }
.ap-numbers__label { font-size: 13px; color: var(--text-3); font-weight: 600; }

/* Team grid */
.ap-team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ap-team__member { text-align: center; }
.ap-team__avatar {
	width: 100%; aspect-ratio: 1; border-radius: 50%;
	background: rgba(232,106,78,.13); border: 1.5px solid var(--coral);
	overflow: hidden; position: relative;
}
.ap-team__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-team__name { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text); margin-top: 10px; }
.ap-team__role { font-size: 12px; color: var(--muted); }

/* Digital Hype block */
.ap-dh {
	margin-top: 36px; background: var(--navy); border-radius: 18px;
	padding: 38px 36px; color: #fff; position: relative; overflow: hidden;
}
.ap-dh::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(255,255,255,.025) 16px, rgba(255,255,255,.025) 32px);
	pointer-events: none;
}
.ap-dh .ap-pulse-line { bottom: 0; height: 46px; opacity: .4; }
.ap-dh__in { position: relative; z-index: 2; display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ap-dh__brand { display: flex; gap: 24px; align-items: center; min-width: 0; }
.ap-dh__logo {
	width: 74px; height: 74px; flex-shrink: 0; border-radius: 18px; background: var(--coral);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-weight: 900; font-size: 34px; color: #fff;
	box-shadow: 0 12px 30px -12px rgba(232,106,78,.7);
}
.ap-dh__kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--coral); font-weight: 700; letter-spacing: .06em; }
.ap-dh__title { font-family: var(--font-head); font-weight: 900; font-size: 27px; margin-top: 5px; line-height: 1.1; color: #fff; }
.ap-dh__desc { font-size: 15px; color: var(--on-navy); line-height: 1.55; margin-top: 8px; max-width: 52ch; }
.ap-dh__cta {
	background: var(--coral); color: #fff; font-weight: 700; font-size: 15px;
	padding: 14px 28px; border-radius: 12px; white-space: nowrap; flex-shrink: 0;
}
.ap-dh__cta:hover { background: #fff; color: var(--navy); }

/* Contact form */
.ap-contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.ap-contact-form .ap-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ap-field label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; display: block; }
.ap-field input, .ap-field textarea {
	width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
	border-radius: 10px; padding: 14px 16px; color: var(--text); font-size: 15px; outline: 0;
}
.ap-field input:focus, .ap-field textarea:focus { border-color: var(--coral); }
.ap-field textarea { min-height: 120px; resize: vertical; }
.ap-contact-form__submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ap-contact-form__note { font-size: 13px; color: var(--muted); }

.ap-channels {
	background: var(--bg-soft); border-top: 1px solid var(--line);
	padding-block: 22px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ap-channels__direct { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-3); }
.ap-channels__direct strong { color: var(--text); }
.ap-channels__links { display: flex; gap: 9px; flex-wrap: wrap; }
.ap-channels__links a {
	background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm);
	padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--text);
}
.ap-channels__links a:hover { border-color: var(--coral); color: var(--coral); }

/* =========================================================================
   15. Responsive
   ===================================================================== */
@media (max-width: 1024px) {
	.ap-nav ul { gap: 18px; }
	.ap-hero { grid-template-columns: 1fr; }
	.ap-hero__media { min-height: 260px; }
	.ap-ticker { grid-template-columns: 1fr 1fr; }
	.ap-ticker__card { border-bottom: 1px solid var(--line); }
	.ap-focus { grid-template-columns: 1fr; }
	.ap-focus__media { min-height: 220px; }
	.ap-grid-3, .ap-team { grid-template-columns: repeat(2, 1fr); }
	.ap-team { grid-template-columns: repeat(3, 1fr); }
	.ap-showcase-row { grid-template-columns: 1fr; }
	.ap-nl { grid-template-columns: 1fr; padding: 32px; }
	.ap-author-stats__grid, .ap-numbers { grid-template-columns: repeat(2, 1fr); }
	.ap-author-stats__cell:nth-child(2n) { border-inline-end: 0; }
	.ap-lead-card { grid-template-columns: 1fr; }
	.ap-lead-card__body { padding: 22px; }
	.ap-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.ap-home { gap: 44px; padding-block: 24px 40px; }

	.ap-strip__title, .ap-strip__time { display: none; }
	.ap-strip__cta { font-size: 12px; padding: 7px 14px; }

	.ap-nav > ul, .ap-brand__tag { display: none; }
	.ap-nav__burger {
		display: flex; align-items: center; justify-content: center;
		width: 36px; height: 36px; border: 1.5px solid var(--border);
		border-radius: var(--r-sm); background: transparent; color: #7a8798; font-size: 17px;
	}
	.ap-brand img, .ap-logo-svg { height: 34px; }

	.ap-hero__title { font-size: 27px; }
	.ap-hero__sub { font-size: 18px; }
	.ap-ticker { grid-template-columns: 1fr; }
	.ap-ticker__card { border-inline-end: 0; }

	.ap-grid-2, .ap-grid-3, .ap-rows, .ap-related-rail__grid { grid-template-columns: 1fr; }
	.ap-card--lg .ap-card__title { font-size: 19px; }

	.ap-article { padding: 24px 18px 96px; }
	.ap-article__title { font-size: 25px; }
	.ap-entry > p, .ap-entry ul, .ap-entry ol { font-size: 16px; }
	.ap-entry > p:first-child { font-size: 17px; }
	.ap-entry blockquote p { font-size: 19px; }
	.ap-next-bar { display: flex; }

	.ap-author-hero__in { flex-direction: column; align-items: center; text-align: center; }
	.ap-author-hero__social { justify-content: center; }
	.ap-author-hero__avatar { width: 96px; height: 96px; }

	.ap-arch-hero__watermark { font-size: 120px; }
	.ap-search-hero .ap-search-box input[type="search"] { font-size: 18px; }
	.ap-result { flex-direction: row; }
	.ap-result__thumb { width: 96px; height: 64px; }
	.ap-result__title { font-size: 16px; }
	.ap-result__excerpt { display: none; }

	.ap-contact-form .ap-form-grid { grid-template-columns: 1fr; }
	.ap-team { grid-template-columns: repeat(3, 1fr); gap: 12px; }
	.ap-numbers { grid-template-columns: repeat(2, 1fr); padding: 20px; }
	.ap-numbers__num { font-size: 28px; }
	.ap-dh__in { flex-direction: column; align-items: flex-start; }

	.ap-footer__main { flex-direction: column; gap: 28px; }
	.ap-footer__cols { gap: 32px; }
	.ap-nl__form input[type="email"] { min-width: 0; width: 100%; }
	.ap-nl__fields { flex-direction: column; }
	.ap-nl__fields button { width: 100%; }
}
