/*
 * The older page markup, drawn in the site design of df.css.
 *
 * About forty pages (products, solutions, the facility detail pages, partner
 * profiles, careers, resources) keep their body in post_content as
 * .dfdc-th-* markup, written for the previous design. This file gives that
 * markup the look of the new design, so those pages change without one word
 * of their stored text being touched. css/the-hague.css, which used to style
 * them, is no longer loaded on them.
 *
 * Root: main.df.df-th (page-dfdc-flagship.php). df.css supplies the tokens,
 * the base type, the element resets and the breadcrumb line.
 *
 * Deliberately not shown, although still in the stored HTML:
 *   - the bracketed labels above headings (.dfdc-th-eyebrow); the template
 *     prints a breadcrumb line in place of the one in the hero,
 *   - the line icons (the icon sprite is no longer printed either),
 *   - the arrow characters inside buttons.
 *
 * House rule as in df.css: no rounded corners.
 */

/* ---- Frame ------------------------------------------------------------- */
.df-th .dfdc-th-container { width: var(--df-wrap); margin-inline: auto; }
.df-th .dfdc-th-eyebrow,
.df-th svg[aria-hidden="true"] { display: none; }
.df-th :is(dl, dd, ol, table) { margin: 0; }
.df-th ol { padding: 0; list-style: none; }

/* Links inside running text */
.df-th :is(p, li, dd, td) a:not([class]) { color: var(--df-mint-800); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.df-th :is(p, li, dd, td) a:not([class]):hover { color: var(--df-ink); }
.df-th :is(.dfdc-th-hero, .dfdc-th-section--dark) :is(p, li, dd, td) a:not([class]) { color: var(--df-mint); }
.df-th :is(.dfdc-th-hero, .dfdc-th-section--dark) :is(p, li, dd, td) a:not([class]):hover { color: #fff; }
.df-th :is(.dfdc-th-hero, .dfdc-th-section--dark) :focus-visible { outline: 2px solid var(--df-mint); outline-offset: 3px; }

/* ---- Breadcrumbs and hero: one forest band ------------------------------ */
.df-th__crumbs { padding-top: calc(var(--df-top-h) + clamp(44px, 6vw, 88px)); background: var(--df-forest); color: #fff; }
.df-th__crumbs .df-crumbs { flex-wrap: wrap; margin: 0; }
.df-th .dfdc-th-hero { padding: 22px 0 clamp(48px, 6vw, 84px); background: var(--df-forest); color: #fff; }
.df-th .dfdc-th-hero__title { max-width: 20em; font-size: clamp(2.25rem, 3vw + 0.9rem, 4rem); line-height: 1.06; }
.df-th .dfdc-th-hero__sub { margin-top: clamp(20px, 2.2vw, 30px); max-width: 44rem; font-size: clamp(1.125rem, 0.5vw + 1.05rem, 1.4375rem); line-height: 1.45; color: rgba(255, 255, 255, 0.9); }
.df-th .dfdc-th-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }

/* Facts under the hero text: label above value, hairlines between */
.df-th .dfdc-th-hero__facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: clamp(44px, 5vw, 76px); border-top: 1px solid rgba(255, 255, 255, 0.3); }
.df-th .dfdc-th-hero__facts > div { padding: 20px 24px 0; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.df-th .dfdc-th-hero__facts > div:first-child { padding-left: 0; border-left: 0; }
.df-th .dfdc-th-hero__facts dt { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.72); }
.df-th .dfdc-th-hero__facts dd { margin-top: 4px; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.df-th .dfdc-th-counter { font-variant-numeric: tabular-nums; }
.df-th .dfdc-th-unit { font-size: 0.75em; font-weight: 400; color: rgba(255, 255, 255, 0.8); }

/* ---- Buttons ------------------------------------------------------------ */
.df-th .dfdc-th-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.6em; border: 1px solid transparent; font: 500 1.0625rem/1 var(--df-font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 160ms var(--df-ease), border-color 160ms var(--df-ease), color 160ms var(--df-ease); }
.df-th .dfdc-th-btn > span[aria-hidden="true"] { display: none; }
.df-th .dfdc-th-btn--primary { background: var(--df-ink); color: #fff; }
.df-th .dfdc-th-btn--primary:hover { background: var(--df-forest-2); }
.df-th .dfdc-th-btn--ghost { border-color: rgba(15, 21, 19, 0.35); color: var(--df-ink); }
.df-th .dfdc-th-btn--ghost:hover { border-color: var(--df-ink); }
/* On the forest hero and forest sections */
.df-th :is(.dfdc-th-hero, .dfdc-th-section--dark:not(.dfdc-th-cta)) .dfdc-th-btn--primary { background: var(--df-mint); color: var(--df-ink); }
.df-th :is(.dfdc-th-hero, .dfdc-th-section--dark:not(.dfdc-th-cta)) .dfdc-th-btn--primary:hover { background: var(--df-mint-300); }
.df-th :is(.dfdc-th-hero, .dfdc-th-section--dark:not(.dfdc-th-cta)) .dfdc-th-btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.df-th :is(.dfdc-th-hero, .dfdc-th-section--dark:not(.dfdc-th-cta)) .dfdc-th-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---- Sections ----------------------------------------------------------- */
.df-th .dfdc-th-section { padding-block: clamp(72px, 8vw, 128px); }
.df-th .dfdc-th-section--dark { background: var(--df-forest); color: var(--df-on-dark); }
/* Two bands of the same color in a row read as one: keep one gap, not two. */
.df-th .dfdc-th-section--light + .dfdc-th-section--light,
.df-th .dfdc-th-section--dark + .dfdc-th-section--dark:not(.dfdc-th-cta) { padding-top: 0; }
.df-th .dfdc-th-hero + .dfdc-th-section--dark { border-top: 1px solid rgba(255, 255, 255, 0.14); }

.df-th .dfdc-th-section__header { margin-bottom: clamp(36px, 4.5vw, 64px); }
.df-th .dfdc-th-h2 { max-width: 18em; }
.df-th .dfdc-th-section__lede { margin-top: 18px; max-width: 42rem; font-size: clamp(1.125rem, 0.4vw + 1.05rem, 1.375rem); color: var(--df-muted); }
.df-th .dfdc-th-section p { color: var(--df-muted); }
.df-th .dfdc-th-section--dark p { color: var(--df-on-dark-muted); }
.df-th .dfdc-th-section p strong { font-weight: 500; color: var(--df-ink); }
.df-th .dfdc-th-section--dark p strong { color: #fff; }
/* Anything that follows something other than the section header keeps its distance. */
.df-th .dfdc-th-container:not(.dfdc-th-split, .dfdc-th-twocol, .dfdc-th-cta__inner) > :not(.dfdc-th-section__header) + * { margin-top: clamp(36px, 4.5vw, 64px); }

/* ---- Text beside a photo, a list or more text ---------------------------- */
.df-th :is(.dfdc-th-split, .dfdc-th-twocol, .dfdc-th-feature) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.df-th :is(.dfdc-th-split__copy, .dfdc-th-twocol > div, .dfdc-th-feature__copy) > * + * { margin-top: 18px; }
.df-th :is(.dfdc-th-split__copy, .dfdc-th-twocol > div, .dfdc-th-feature__copy) p { max-width: 42rem; }
.df-th :is(.dfdc-th-split__copy, .dfdc-th-twocol > div, .dfdc-th-feature__copy) > .dfdc-th-btn { margin-top: 28px; }
.df-th :is(.dfdc-th-split__media, .dfdc-th-feature__media) img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.df-th figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--df-muted); }
.df-th .dfdc-th-section--dark figcaption { color: var(--df-on-dark-muted); }
/* Two text blocks side by side (partner profiles): equal columns, smaller headings */
.df-th .dfdc-th-split:has(> .dfdc-th-split__copy + .dfdc-th-split__copy) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.df-th .dfdc-th-split__copy + .dfdc-th-split__copy { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--df-line); }
.df-th .dfdc-th-split__copy:has(+ .dfdc-th-split__copy) .dfdc-th-h2,
.df-th .dfdc-th-split__copy + .dfdc-th-split__copy .dfdc-th-h2 { font-size: clamp(1.75rem, 1.2vw + 1.3rem, 2.5rem); }

/* ---- Cards: a rule on top, a title, a sentence ---------------------------- */
.df-th .dfdc-th-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.df-th .dfdc-th-cards--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.df-th .dfdc-th-card { padding: 24px 0 36px; border-top: 1px solid var(--df-ink); }
.df-th .dfdc-th-card h3 { font-size: 1.25rem; }
.df-th .dfdc-th-card p { margin-top: 10px; font-size: 1.0625rem; }
.df-th .dfdc-th-section--dark .dfdc-th-card { border-top-color: rgba(255, 255, 255, 0.45); }
.df-th .dfdc-th-link { display: inline-flex; gap: 8px; margin-top: 14px; font-weight: 500; color: var(--df-mint-800); text-decoration: none; }
.df-th .dfdc-th-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.df-th .dfdc-th-section--dark .dfdc-th-link { color: var(--df-mint); }

/* ---- Lists --------------------------------------------------------------- */
.df-th .dfdc-th-checklist { border-top: 1px solid rgba(15, 21, 19, 0.2); }
.df-th .dfdc-th-checklist li { position: relative; padding: 18px 0 18px 25px; border-bottom: 1px solid rgba(15, 21, 19, 0.2); font-size: 1.1875rem; }
.df-th .dfdc-th-checklist li::before { content: ""; position: absolute; left: 0; top: calc(18px + 0.775em - 5px); width: 9px; height: 9px; background: var(--df-mint-800); }
.df-th .dfdc-th-section--dark .dfdc-th-checklist,
.df-th .dfdc-th-section--dark .dfdc-th-checklist li { border-color: rgba(255, 255, 255, 0.25); }
.df-th .dfdc-th-section--dark .dfdc-th-checklist li::before { background: var(--df-mint); }

.df-th .dfdc-th-steps { counter-reset: df-th-step; border-top: 1px solid var(--df-ink); }
.df-th .dfdc-th-steps li { position: relative; padding: 24px 0 24px 5rem; border-bottom: 1px solid var(--df-line); color: var(--df-muted); counter-increment: df-th-step; }
.df-th .dfdc-th-steps li::before { content: counter(df-th-step, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-size: 1.25rem; font-weight: 500; color: var(--df-mint-800); font-variant-numeric: tabular-nums; }
.df-th .dfdc-th-steps strong { display: block; margin-bottom: 6px; font-size: 1.25rem; font-weight: 500; color: var(--df-ink); }
.df-th .dfdc-th-section--dark .dfdc-th-steps { border-top-color: rgba(255, 255, 255, 0.45); }
.df-th .dfdc-th-section--dark .dfdc-th-steps li { border-bottom-color: rgba(255, 255, 255, 0.16); color: var(--df-on-dark-muted); }
.df-th .dfdc-th-section--dark .dfdc-th-steps li::before { color: var(--df-mint); }
.df-th .dfdc-th-section--dark .dfdc-th-steps strong { color: #fff; }

/* ---- Tables --------------------------------------------------------------- */
.df-th .dfdc-th-spec { overflow-x: auto; }
.df-th .dfdc-th-spec__table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--df-ink); font-size: 1.0625rem; }
.df-th .dfdc-th-spec__table :is(th, td) { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--df-line); text-align: left; vertical-align: top; }
.df-th .dfdc-th-spec__table :is(th, td):last-child { padding-right: 0; }
.df-th .dfdc-th-spec__table th { font-weight: 500; }
.df-th .dfdc-th-spec__table tbody th { width: 34%; }
.df-th .dfdc-th-spec__table td { color: var(--df-muted); }
.df-th .dfdc-th-spec__table thead th { font-size: 0.9375rem; font-weight: 400; color: var(--df-muted); }
.df-th .dfdc-th-section--dark .dfdc-th-spec__table { border-top-color: rgba(255, 255, 255, 0.45); }
.df-th .dfdc-th-section--dark .dfdc-th-spec__table :is(th, td) { border-bottom-color: rgba(255, 255, 255, 0.16); }
.df-th .dfdc-th-section--dark .dfdc-th-spec__table :is(td, thead th) { color: var(--df-on-dark-muted); }

/* ---- A note set apart from the text ---------------------------------------- */
.df-th .dfdc-th-callout { padding: clamp(28px, 3vw, 44px); background: var(--df-mist); }
.df-th .dfdc-th-callout__title { font-size: 1.375rem; }
.df-th .dfdc-th-callout p { margin-top: 10px; max-width: 48rem; }
.df-th .dfdc-th-section--dark .dfdc-th-callout { background: rgba(255, 255, 255, 0.06); }

/* ---- Partners --------------------------------------------------------------
   Carrier logos come in their own colors and assume a light ground, so each
   sits on a white plate, also inside forest sections. */
.df-th .dfdc-partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 48px) clamp(20px, 2.4vw, 32px); }
.df-th .dfdc-partner-card { display: flex; flex-direction: column; text-decoration: none; }
.df-th .dfdc-partner-logo { display: flex; align-items: center; justify-content: center; height: 116px; padding: 24px 28px; background: #fff; border: 1px solid var(--df-line); transition: border-color 160ms var(--df-ease); }
.df-th .dfdc-partner-logo__img { width: min(100%, 180px); height: 100%; object-fit: contain; }
.df-th .dfdc-partner-logo--placeholder { font-size: 1.25rem; font-weight: 500; color: var(--df-ink); }
.df-th .dfdc-partner-card__name { margin-top: 16px; font-size: 1.25rem; }
.df-th .dfdc-partner-card__role { margin-top: 4px; font-size: 1rem; }
.df-th .dfdc-partner-card__cta { display: inline-flex; gap: 8px; margin-top: 12px; font-size: 1rem; font-weight: 500; color: var(--df-mint-800); }
.df-th .dfdc-partner-card:hover .dfdc-partner-logo { border-color: var(--df-ink); }
.df-th .dfdc-partner-card:hover .dfdc-partner-card__name { color: var(--df-mint-800); }
.df-th .dfdc-th-section--dark .dfdc-partner-logo { border-color: #fff; }
.df-th .dfdc-th-section--dark .dfdc-partner-card__cta,
.df-th .dfdc-th-section--dark .dfdc-partner-card:hover .dfdc-partner-card__name { color: var(--df-mint); }
.df-th .dfdc-th-section--dark .dfdc-partner-card:hover .dfdc-partner-logo { border-color: var(--df-mint); }

/* A partner's own page: the logo above the title, facts as a ledger */
.df-th .dfdc-partner-hero__logo { margin-bottom: 28px; }
.df-th .dfdc-partner-hero__logo .dfdc-partner-logo { display: inline-flex; min-width: 180px; height: 92px; padding: 20px 28px; border: 0; }
.df-th .dfdc-partner-hero__logo .dfdc-partner-logo__img { width: auto; max-width: 220px; }
.df-th .dfdc-partner-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--df-ink); }
.df-th .dfdc-partner-facts > li { list-style: none; padding: 20px 24px 24px; border-left: 1px solid var(--df-line); border-bottom: 1px solid var(--df-line); }
.df-th .dfdc-partner-facts > li:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.df-th .dfdc-partner-facts dt { font-size: 0.9375rem; color: var(--df-muted); }
.df-th .dfdc-partner-facts dd { margin-top: 4px; font-size: 1.125rem; font-weight: 500; }
/* The same facts written without list items: label left, value right */
.df-th .dfdc-partner-facts:not(:has(> li)) { grid-template-columns: minmax(9rem, 3fr) minmax(0, 9fr); }
.df-th .dfdc-partner-facts > :is(dt, dd) { margin: 0; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--df-line); font-size: 1.125rem; }

/* ---- Closing invitation: the mint band, as on every other page ------------- */
.df-th .dfdc-th-cta { padding-block: clamp(72px, 8vw, 120px); background: var(--df-mint); color: var(--df-ink); }
.df-th .dfdc-th-cta__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 40px; }
.df-th .dfdc-th-cta .dfdc-th-h2 { max-width: 14em; font-size: clamp(2.125rem, 2.8vw + 1rem, 3.75rem); letter-spacing: -0.035em; }
.df-th .dfdc-th-cta p { margin-top: 18px; max-width: 34rem; font-size: 1.1875rem; color: rgba(15, 21, 19, 0.8); }
.df-th .dfdc-th-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.df-th .dfdc-th-cta :focus-visible { outline-color: var(--df-ink); }

/* ---- Narrower screens ------------------------------------------------------- */
@media (max-width: 1100px) {
	.df-th .dfdc-partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.df-th .dfdc-th-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.df-th .dfdc-partner-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.df-th .dfdc-partner-facts > li:nth-child(4n + 1) { padding-left: 24px; border-left: 1px solid var(--df-line); }
	.df-th .dfdc-partner-facts > li:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
	.df-th :is(.dfdc-th-split, .dfdc-th-twocol, .dfdc-th-feature),
	.df-th .dfdc-th-split:has(> .dfdc-th-split__copy + .dfdc-th-split__copy) { grid-template-columns: minmax(0, 1fr); }
	.df-th .dfdc-th-split__copy + .dfdc-th-split__copy { padding: clamp(32px, 6vw, 48px) 0 0; border-left: 0; border-top: 1px solid var(--df-line); }
	.df-th .dfdc-th-hero__facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
	.df-th .dfdc-th-hero__facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
	.df-th .dfdc-th-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
	.df-th__crumbs { padding-top: calc(var(--df-top-h) + 36px); }
	.df-th .dfdc-th-cards,
	.df-th .dfdc-th-cards--2up { grid-template-columns: minmax(0, 1fr); }
	.df-th .dfdc-th-card { padding-bottom: 28px; }
	.df-th .dfdc-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.df-th .dfdc-partner-logo { height: 92px; padding: 18px; }
	/* Full-width buttons; a long label may wrap instead of pushing the page wide. */
	.df-th .dfdc-th-btn { padding-block: 14px; white-space: normal; text-align: center; line-height: 1.25; }
	.df-th .dfdc-th-hero__cta .dfdc-th-btn,
	.df-th .dfdc-th-cta__buttons,
	.df-th .dfdc-th-cta__buttons .dfdc-th-btn { flex: 1 1 100%; }
	.df-th .dfdc-th-hero__facts dd { font-size: 1.1875rem; }
	.df-th .dfdc-th-steps li { padding-left: 3.25rem; }
	.df-th .dfdc-th-spec__table tbody th { width: 42%; }
	.df-th .dfdc-partner-facts:not(:has(> li)) { grid-template-columns: minmax(0, 1fr); }
	.df-th .dfdc-partner-facts > dt { padding-bottom: 0; border-bottom: 0; font-size: 0.9375rem; }
	.df-th .dfdc-partner-facts > dd { padding-top: 4px; }
}

/* ---- Sitemap page (page-sitemap.php) ----------------------------------------- */
.df-th .dfdc-sitemap__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 48px); align-items: start; }
.df-th .dfdc-sitemap__h { padding-bottom: 12px; border-bottom: 1px solid var(--df-ink); font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
.df-th .dfdc-sitemap__h a { text-decoration: none; }
.df-th .dfdc-sitemap__h a:hover { color: var(--df-mint-800); }
.df-th .dfdc-sitemap__list { margin-top: 14px; }
.df-th .dfdc-sitemap__list li { margin-top: 9px; font-size: 1.0625rem; line-height: 1.4; }
.df-th .dfdc-sitemap__list ul { margin: 8px 0 4px; padding-left: 14px; border-left: 1px solid var(--df-line); }
.df-th .dfdc-sitemap__list a:not([class]) { color: var(--df-muted); text-decoration: none; }
.df-th .dfdc-sitemap__list a:not([class]):hover { color: var(--df-mint-800); text-decoration: underline; }
