/*
Theme Name: ActivePort
Description: Editorial news theme for ActivePort — independent coverage of business connectivity. Requires the ActivePort Editorial mu-plugin.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: activeport
*/

:root {
	--ap-ink: #0d1b2a;
	--ap-ink-2: #3c4a5a;
	--ap-muted: #5b6676;
	--ap-line: #e2e6eb;
	--ap-bg: #ffffff;
	--ap-bg-soft: #f4f6f8;
	--ap-navy: #0b2239;
	--ap-accent: #0a7c86;
	--ap-accent-strong: #075f67;
	--ap-flag: #b4531a;
	--ap-radius: 6px;
	--ap-wrap: 1200px;
	--ap-text: 720px;
	--ap-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ap-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ap-bg); color: var(--ap-ink); font: 17px/1.6 var(--ap-font); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > .ap-main { flex: 1 0 auto; }
body > .ap-footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-accent-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ap-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; background: #fff; }

.ap-wrap { width: 100%; max-width: var(--ap-wrap); margin: 0 auto; padding: 0 20px; }
.ap-wrap--text { max-width: calc(var(--ap-text) + 40px); }
.ap-main { padding-bottom: 56px; }
.na-slot__label { color: var(--ap-muted); }
.ap-ad-row .na-slot:has(.adplugg-ad) { margin-block: 20px 0; }

/* Header -------------------------------------------------------------- */
.ap-header { background: var(--ap-navy); color: #fff; }
.ap-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap; }
.ap-brand { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ap-brand__name { color: #fff; text-decoration: none; font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.ap-logo { display: inline-flex; align-items: center; gap: 10px; }
.ap-logo__mark { flex: none; }
.ap-logo__word span { color: #4fd1c5; }
.ap-logo__mark { display: block; width: 40px; height: 40px; }
.ap-logo--footer .ap-logo__mark { width: 32px; height: 32px; }
.ap-brand__tagline { margin: 0; color: #b7c4d3; font-size: 14px; }
.ap-header__tools { display: flex; align-items: center; gap: 10px; }
.ap-search input { width: 220px; max-width: 100%; padding: 8px 12px; border: 1px solid #2c4560; border-radius: var(--ap-radius); background: #10304f; color: #fff; font: inherit; font-size: 14px; }
.ap-search input::placeholder { color: #8fa3b8; }
.ap-menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid #2c4560; border-radius: var(--ap-radius); padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }

.ap-topics { border-top: 1px solid #1d3a57; }
.ap-topics__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.ap-topics__list a { display: block; padding: 11px 0; color: #dfe8f1; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.ap-topics__list a:hover, .ap-topics__list .current-menu-item > a, .ap-topics__list .current-cat > a { color: #fff; border-bottom-color: #4fd1c5; }

@media (max-width: 760px) {
	.ap-search input { width: 150px; }
	.ap-menu-toggle { display: inline-block; }
	.ap-topics { display: none; }
	.ap-topics.is-open { display: block; }
	.ap-topics__list { flex-direction: column; gap: 0; }
	.ap-topics__list a { padding: 10px 0; border-bottom: 1px solid #1d3a57; }
}

/* Kicker / labels ------------------------------------------------------ */
.ap-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ap-kicker__topic { color: var(--ap-accent-strong); text-decoration: none; }
.ap-kicker__type { color: var(--ap-muted); }
.ap-kicker__disclosure { color: #fff; background: var(--ap-flag); padding: 2px 7px; border-radius: 3px; letter-spacing: 0.04em; }

/* Intro (empty front page) ---------------------------------------------- */
.ap-intro { padding: 56px 0 40px; max-width: 860px; }
.ap-intro__eyebrow, .ap-hub-hero__eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-accent-strong); }
.ap-intro__title { font-family: var(--ap-serif); font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: -0.01em; }
.ap-intro__text { font-size: 19px; color: var(--ap-ink-2); margin: 18px 0 0; }

/* Front page top ------------------------------------------------------- */
.ap-front-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; padding: 36px 0 12px; }
@media (max-width: 900px) { .ap-front-top { grid-template-columns: 1fr; } }

/* Topic hubs grid ------------------------------------------------------ */
.ap-hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 32px; padding: 32px 0; border-top: 1px solid var(--ap-line); margin-top: 24px; }
.ap-hub { display: flex; flex-direction: column; border-top: 3px solid var(--ap-ink); padding-top: 14px; }
.ap-hub__title { font-size: 20px; }
.ap-hub__title a { color: var(--ap-ink); text-decoration: none; }
.ap-hub__title a:hover { color: var(--ap-accent-strong); }
.ap-hub__scope { margin: 6px 0 10px; font-size: 14px; color: var(--ap-muted); line-height: 1.5; }
.ap-hub__more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.ap-hub__more::after { content: " →"; }

/* Sections and cards --------------------------------------------------- */
.ap-section { padding: 28px 0 8px; }
.ap-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ap-line); padding-bottom: 10px; margin-bottom: 18px; }
.ap-section__title { font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ap-section__more { font-size: 14px; font-weight: 600; text-decoration: none; }

.ap-cards--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.ap-cards--list { display: flex; flex-direction: column; }
.ap-card__media img { border-radius: var(--ap-radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 12px; }
.ap-card__title { font-family: var(--ap-serif); font-size: 20px; font-weight: 700; }
.ap-card__title a { color: var(--ap-ink); text-decoration: none; }
.ap-card__title a:hover { color: var(--ap-accent-strong); }
.ap-card__excerpt { margin: 8px 0 0; color: var(--ap-ink-2); font-size: 15px; }
.ap-card__meta { margin: 8px 0 0; font-size: 13px; color: var(--ap-muted); }
.ap-card--list { padding: 12px 0; border-bottom: 1px solid var(--ap-line); }
.ap-card--list:last-child { border-bottom: 0; }
.ap-card--list .ap-card__title { font-size: 17px; }
.ap-card--lead .ap-card__title { font-size: clamp(26px, 3.2vw, 38px); }
.ap-card--lead .ap-card__excerpt { font-size: 18px; }

.ap-empty { color: var(--ap-muted); font-size: 15px; margin: 4px 0; }
.ap-empty--block { padding: 28px; background: var(--ap-bg-soft); border-radius: var(--ap-radius); margin-top: 24px; }

.ap-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.ap-chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--ap-line); border-radius: 999px; text-decoration: none; color: var(--ap-ink); font-size: 14px; font-weight: 600; }
.ap-chips a:hover { border-color: var(--ap-accent); color: var(--ap-accent-strong); }

/* Topic / industry hub hero ------------------------------------------- */
.ap-hub-hero { padding: 44px 0 20px; max-width: 860px; }
.ap-hub-hero--compact { padding-bottom: 8px; }
.ap-hub-hero__title { font-family: var(--ap-serif); font-size: clamp(30px, 4vw, 44px); }
.ap-hub-hero__scope { margin-top: 14px; font-size: 18px; color: var(--ap-ink-2); }
.ap-hub-hero__scope p { margin: 0 0 10px; }

/* Newsletter CTA ------------------------------------------------------- */
.ap-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 36px 0 12px; padding: 26px 28px; background: var(--ap-navy); color: #dfe8f1; border-radius: var(--ap-radius); }
.ap-cta__title { color: #fff; font-size: 22px; margin-bottom: 6px; }
.ap-cta p { margin: 0; max-width: 640px; font-size: 15px; }
.ap-button { display: inline-block; padding: 11px 22px; background: #4fd1c5; color: var(--ap-navy); font-weight: 700; text-decoration: none; border-radius: var(--ap-radius); }
.ap-button:hover { background: #fff; color: var(--ap-navy); }

/* Article -------------------------------------------------------------- */
.ap-article__head { padding-top: 44px; }
.ap-article__title { font-family: var(--ap-serif); font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.01em; }
.ap-article__standfirst { font-size: 21px; line-height: 1.5; color: var(--ap-ink-2); margin: 16px 0 0; }
.ap-article__byline { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 18px 0 0; padding: 12px 0; border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); font-size: 14px; color: var(--ap-muted); }
.ap-article__media { margin: 28px auto 0; max-width: 1000px; }
.ap-article__media img { border-radius: var(--ap-radius); width: 100%; }
.ap-article__media figcaption { font-size: 13px; color: var(--ap-muted); margin-top: 6px; }
.ap-article__body { padding-top: 28px; font-family: var(--ap-serif); font-size: 19px; line-height: 1.7; }
.ap-article__body h2 { font-family: var(--ap-font); font-size: 24px; margin: 36px 0 12px; }
.ap-article__body h3 { font-family: var(--ap-font); font-size: 20px; margin: 28px 0 10px; }
.ap-article__body p, .ap-article__body ul, .ap-article__body ol { margin: 0 0 20px; }
.ap-article__body blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ap-accent); color: var(--ap-ink-2); font-style: italic; }
.ap-article__body table { width: 100%; border-collapse: collapse; font-family: var(--ap-font); font-size: 15px; display: block; overflow-x: auto; }
.ap-article__body th, .ap-article__body td { border-bottom: 1px solid var(--ap-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.ap-page .ap-article__body { font-family: var(--ap-font); font-size: 17px; }

.ap-disclosure { font-family: var(--ap-font); font-size: 15px; line-height: 1.5; margin: 0 0 28px; padding: 14px 16px; border-left: 4px solid var(--ap-flag); background: #fbf1ea; border-radius: 0 var(--ap-radius) var(--ap-radius) 0; }

.ap-classification { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 0; padding: 18px 0; border-top: 1px solid var(--ap-line); font-size: 14px; }
.ap-classification dt { font-weight: 700; color: var(--ap-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; padding-top: 2px; }
.ap-classification dd { margin: 0; }

/* Newsletter sign-up form --------------------------------------------- */
.ap-signup { font-family: var(--ap-font); font-size: 16px; margin: 28px 0; padding: 24px; background: var(--ap-bg-soft); border-radius: var(--ap-radius); }
.ap-signup label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.ap-signup label span { font-weight: 400; color: var(--ap-muted); }
.ap-signup input[type=email], .ap-signup input[type=text] { width: 100%; padding: 11px 12px; border: 1px solid #c9d1da; border-radius: var(--ap-radius); font: inherit; background: #fff; }
.ap-signup__row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ap-signup__row input { flex: 1 1 220px; }
.ap-signup .ap-button { border: 0; cursor: pointer; font: inherit; font-weight: 700; background: var(--ap-accent); color: #fff; }
.ap-signup .ap-button:hover { background: var(--ap-accent-strong); color: #fff; }
.ap-signup__note { font-size: 13px; color: var(--ap-muted); margin: 14px 0 0 !important; }

/* Pagination ----------------------------------------------------------- */
.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); text-decoration: none; color: var(--ap-ink); font-size: 14px; }
.page-numbers.current { background: var(--ap-ink); color: #fff; border-color: var(--ap-ink); }

/* Footer --------------------------------------------------------------- */
.ap-footer { background: var(--ap-navy); color: #b7c4d3; padding: 44px 0 20px; font-size: 14px; }
.ap-footer__grid { display: grid; grid-template-columns: 1.8fr 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 1000px) { .ap-footer__grid { grid-template-columns: 1fr 1fr; } }
.ap-footer__partners { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 32px; }
.ap-footer__partners .ap-footer__head { margin: 0; }
.ap-footer__inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 760px) { .ap-footer__grid { grid-template-columns: 1fr; } }
.ap-footer__brand { color: #fff; font-weight: 800; font-size: 22px; margin: 0 0 8px; }
.ap-footer__about { margin: 0; max-width: 420px; }
.ap-footer__head { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.ap-footer__list { list-style: none; margin: 0; padding: 0; }
.ap-footer__list li { margin: 0 0 6px; }
.ap-footer a { color: #dfe8f1; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: underline; }
.ap-footer__legal { border-top: 1px solid #1d3a57; margin-top: 32px; padding-top: 16px; font-size: 13px; }
.ap-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.ap-footer__legal p { margin: 0; }

/* Aanraakdoelen op mobiel: minimaal 44px hoog */
@media (max-width: 760px) {
	.ap-footer__list a, .ap-footer__inline a, .ap-footer__legal a, .ap-chips a, .ap-hub__more, .ap-section__more { display: inline-flex; align-items: center; min-height: 44px; }
	.ap-footer__list li { margin: 0; }
	.ap-kicker__topic { display: inline-flex; align-items: center; min-height: 32px; }
}

/* WordPress core alignment helpers ------------------------------------- */
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--ap-muted); font-family: var(--ap-font); }
