/* AgroInPro — page-body sections. Page bodies are core blocks carrying aip-* class names
   (generated by scripts/build-page-blocks.mjs); this file gives them the design's layout. */

/* Neutralise core block spacing inside designed pages; every gap below is set explicitly. */
.aip-page-body :is(.wp-block-group, .wp-block-image, .wp-block-list, .wp-block-buttons, .wp-block-table, p, h1, h2, h3) { margin: 0; }
.aip-page-body .is-layout-flow > *, .aip-page-body .is-layout-constrained > * { margin-block-start: 0; margin-block-end: 0; }
.aip-page-body .wp-block-image img { width: 100%; height: 100%; }
.aip-page-body .wp-block-list { padding: 0; list-style: none; }
.aip-page-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.aip-page-body .wp-block-button__link { border-radius: 0; padding: 16px 24px; font-weight: 700; font-size: 16px; line-height: 1.3; white-space: nowrap; }
.wp-block-button.is-style-aip-dark .wp-block-button__link { background: #000; color: #fff; }
.wp-block-button.is-style-aip-dark .wp-block-button__link:hover { background: var(--aip-sky); color: #000; transform: translateY(-2px); box-shadow: var(--aip-shadow-lift); }
.wp-block-button.is-style-aip-sky .wp-block-button__link { background: var(--aip-sky); color: #000; }
.wp-block-button.is-style-aip-sky .wp-block-button__link:hover { background: #fff; color: #000; transform: translateY(-2px); box-shadow: var(--aip-shadow-lift); }
.wp-block-button.is-style-aip-ghost .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid #fff; padding: 15px 22px; }
.wp-block-button.is-style-aip-ghost .wp-block-button__link:hover { background: #fff; color: #000; transform: translateY(-2px); box-shadow: var(--aip-shadow-lift); }
.wp-block-button.is-style-aip-outline .wp-block-button__link { background: transparent; color: #000; border: 1.5px solid #000; padding: 15px 24px; }
.wp-block-button.is-style-aip-outline .wp-block-button__link:hover { background: #000; color: #fff; }

/* ---------- section shells ---------- */
.aip-sec { position: relative; }
.aip-sec > .aip-wrap { padding-top: var(--aip-sec-y); padding-bottom: var(--aip-sec-y); }
.aip-sec--line { border-top: 1px solid var(--aip-line); }
.aip-sec--lines { border-top: 1px solid var(--aip-line); border-bottom: 1px solid var(--aip-line); }
.aip-sec--paper { background: var(--aip-paper); border-top: 1px solid var(--aip-line); }
.aip-sec--dark { background: #000; color: #fff; }
.aip-sec--dark .aip-kicker { color: var(--aip-sky); font-size: 13px; letter-spacing: .14em; font-weight: 700; }
.aip-sec--tall > .aip-wrap { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); }
.aip-sec--short > .aip-wrap { padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); }

/* Light photo band: image behind a white-to-transparent wash (home "About", sectors, values). */
.aip-sec--photo { overflow: hidden; }
.aip-sec--photo > .aip-band__bg { position: absolute; inset: 0; margin: 0; }
.aip-sec--photo > .aip-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.aip-sec--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 45%, rgba(255,255,255,.6) 100%); }
.aip-sec--photo > .aip-wrap { position: relative; z-index: 2; }


.aip-mt-s { margin-top: 18px !important; }
.aip-mt-m { margin-top: 28px !important; }
.aip-mt-l { margin-top: clamp(48px, 6vw, 80px) !important; }
.aip-body { font-size: 17px; line-height: 1.6; color: var(--aip-text); max-width: 60ch; }
.aip-body-lg { font-size: 18px; line-height: 1.6; color: var(--aip-text-2); }
.aip-intro { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--aip-text-2); text-wrap: pretty; }
.aip-note { font-size: 13px; color: var(--aip-soft); margin-top: 18px !important; }
.aip-strong { font-size: 16px; font-weight: 700; margin-top: 20px !important; }

/* ---------- heroes ---------- */
.aip-hero { position: relative; overflow: hidden; background: #000; color: #fff; }
.aip-hero__bg { position: absolute; inset: 0; margin: 0; }
.aip-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.aip-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.93) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,.3) 100%); }
.aip-hero__content { position: relative; z-index: 2; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(56px, 7vw, 90px); }
.aip-hero__kicker { font-size: 13px; letter-spacing: .2em; font-weight: 700; color: var(--aip-yellow); }
.aip-hero__title { margin-top: 18px !important; font-size: clamp(38px, 5.4vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; color: #fff; }
.aip-hero__lead { margin-top: 22px !important; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 50ch; color: #fff; text-wrap: pretty; }

/* Home hero: cross-fading slides (agroinpro-site.js), taller, bigger title, call-to-action pair. */
.aip-hero--home { min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.aip-hero--home::before { background: linear-gradient(90deg, rgba(0,0,0,.93) 0%, rgba(0,0,0,.72) 50%, rgba(0,0,0,.25) 100%); }
.aip-hero--home .aip-hero__bg { opacity: 0; transform: scale(1); transition: opacity 1.2s ease, transform 6s linear; }
.aip-hero--home .aip-hero__bg:first-of-type, .aip-hero--home .aip-hero__bg.is-on { opacity: 1; transform: scale(1.06); }
.aip-hero--home.is-ready .aip-hero__bg:first-of-type:not(.is-on) { opacity: 0; transform: scale(1); }
.aip-hero--home .aip-hero__content { width: 100%; padding-top: 96px; padding-bottom: 48px; }
.aip-hero--home .aip-hero__title { font-size: clamp(40px, 6vw, 84px); line-height: .98; max-width: 15ch; margin-top: 18px !important; }
.aip-hero--home .aip-hero__lead { margin-top: 24px !important; max-width: 48ch; }
.aip-hero--home .wp-block-buttons { margin-top: 32px !important; }
.aip-dots { margin-top: 40px; display: flex; gap: 8px; }
.aip-dots button { width: 14px; height: 6px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.55); transform: skewX(-35deg); transition: width .4s, background .4s; }
.aip-dots button[aria-current="true"] { width: 34px; background: var(--aip-yellow); }

/* ---------- grids ---------- */
.aip-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: start; }
.aip-split--center { align-items: center; }
.aip-split--wide-gap { gap: 24px clamp(40px, 6vw, 96px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.aip-split--map { gap: clamp(40px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
.aip-split--dark { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.aip-split > .aip-span-all { grid-column: 1 / -1; }
.aip-stack { display: grid; gap: 16px; padding-top: 6px; }

/* Audience cards (owners / OEMs) */
.aip-cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.aip-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--aip-line); color: #000; transition: border-color .2s, box-shadow .25s, transform .2s; }
.aip-card:hover { border-color: #000; box-shadow: 0 14px 36px rgba(0,0,0,.12); transform: translateY(-4px); }
.aip-card__media { overflow: hidden; margin: 0; }
.aip-card__media img { aspect-ratio: 16 / 9; object-fit: cover; }
.aip-card:hover .aip-card__media img { transform: scale(1.05); }
.aip-card__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; flex: 1 1 0%; }
.aip-card__title { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.aip-card__strap { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.3; font-weight: 700; }
.aip-card__text { font-size: 16px; line-height: 1.6; color: var(--aip-text); max-width: 46ch; }
.aip-card__more { margin-top: auto !important; padding-top: 10px; font-weight: 700; border-bottom: 2px solid var(--aip-yellow); align-self: flex-start; padding-bottom: 3px; }

/* Division cards (four group companies) */
.aip-div-cards { margin-top: 36px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.aip-div-card { position: relative; background: #fff; border: 1px solid var(--aip-line); display: flex; flex-direction: column; transition: border-color .2s, box-shadow .25s, transform .2s; }
.aip-div-card:hover { border-color: #000; box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.aip-div-card__logo { height: 130px; display: flex; align-items: center; justify-content: center; padding: 22px; border-bottom: 1px solid var(--aip-line); margin: 0; }
.aip-page-body .aip-div-card__logo img { width: auto; height: auto; max-width: 100%; max-height: 86px; object-fit: contain; }
.aip-page-body .aip-div-card__logo.is-wordmark img { max-width: 170px; }
.aip-div-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 0%; }
.aip-div-card__title { font-size: 19px; font-weight: 800; line-height: 1.3; }
.aip-div-card__text { font-size: 15px; line-height: 1.55; color: var(--aip-text); }
.aip-div-card__more { margin-top: auto !important; padding-top: 8px; font-size: 14px; font-weight: 700; }

/* Text link with underline */
.aip-arrow-link a { font-weight: 700; color: #000; border-bottom: 2px solid #000; padding-bottom: 3px; }
.aip-arrow-link a:hover { border-bottom-color: var(--aip-sky); }
.aip-arrow-link { margin-top: 6px !important; }

/* Chips (sectors, applications) and black tags (standards) */
.aip-chips { margin-top: 18px !important; display: flex; flex-wrap: wrap; gap: 10px; }
.aip-chips li { border: 1.5px solid #000; padding: 10px 16px; font-size: 15px; font-weight: 600; }
.aip-tags { margin-top: 24px !important; display: flex; flex-wrap: wrap; gap: 10px; }
.aip-tags li { background: #000; color: #fff; padding: 9px 14px; font-weight: 600; font-size: 14px; }

/* Stats with count-up (agroinpro-site.js) */
.aip-stats { margin-top: 36px !important; display: grid; gap: 24px; }
.aip-stat { border-top: 1px solid var(--aip-line); padding-top: 18px; display: flex; gap: 20px; align-items: baseline; }
.aip-stat__n { font-size: clamp(44px, 5vw, 68px); font-weight: 800; line-height: 1; min-width: 2.6ch; font-variant-numeric: tabular-nums; }
.aip-stat__t { font-size: 17px; line-height: 1.4; font-weight: 600; }
.aip-map { position: relative; height: clamp(360px, 40vw, 520px); border: 1px solid var(--aip-line); overflow: hidden; background: #fff; }
.aip-map svg { width: 100%; height: 100%; display: block; }

/* Numbered service rows */
.aip-rows { margin-top: 36px !important; border-bottom: 1px solid var(--aip-line-2); }
.aip-row { border-top: 1px solid var(--aip-line-2); padding: 22px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; transition: padding .25s, background-color .25s; }
.aip-row:hover { padding-left: 12px; background: var(--aip-paper); }
.aip-row__n { font-size: 15px; font-weight: 700; padding-top: 3px; }
.aip-row__main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 6px 48px; align-items: baseline; }
.aip-row__title { font-size: 20px; line-height: 1.3; font-weight: 700; }
.aip-row__text { font-size: 16px; line-height: 1.55; color: var(--aip-text); }

/* Ordered "01 …" lists (objectives, how-it-works steps) */
.aip-numlist { counter-reset: aip-n; border-bottom: 1px solid var(--aip-line-2); margin-top: 20px !important; }
.aip-numlist li { counter-increment: aip-n; border-top: 1px solid var(--aip-line-2); padding: 18px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; font-size: 17px; line-height: 1.5; }
.aip-numlist li::before { content: counter(aip-n, decimal-leading-zero); font-weight: 700; }
.aip-numlist--tight li { padding: 16px 0; }

/* Ticked list with the sky parallelogram bullet */
.aip-ticks { margin-top: 24px !important; display: grid; gap: 10px; }
.aip-ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.5; }
.aip-ticks li::before { content: ''; width: 10px; height: 6px; background: var(--aip-sky); transform: skewX(-35deg); flex: 0 0 auto; }

/* Cards with a heavy top rule (values, "why independent", engagement models, applications) */
.aip-tops { margin-top: 40px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.aip-tops--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.aip-top { border-top: 3px solid #000; padding-top: 20px; }
.aip-top__title { font-size: 20px; font-weight: 700; }
.aip-tops--3 .aip-top__title { font-size: 21px; }
.aip-top__text { margin-top: 10px !important; font-size: 15.5px; line-height: 1.55; color: var(--aip-text); }

/* Feature split: full-height photo + text (360° review, on the ground) */
.aip-feature { border-top: 1px solid var(--aip-line); border-bottom: 1px solid var(--aip-line); }
.aip-feature__inner { max-width: var(--aip-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.aip-feature__img { margin: 0; }
.aip-feature__img img { min-height: 420px; object-fit: cover; }
.aip-feature__body { padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.aip-feature__body .aip-h2 { font-size: clamp(34px, 4.2vw, 56px); }
.aip-feature__body .wp-block-buttons { margin-top: 32px !important; }

/* Download band */
.aip-download { border-top: 1px solid var(--aip-line); }
.aip-download__inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.aip-download__desc { font-size: 16px; line-height: 1.5; color: var(--aip-text); }
.aip-download__link a { font-size: 17px; font-weight: 700; color: #000; border-bottom: 2px solid #000; padding-bottom: 3px; white-space: nowrap; }
.aip-download__link a:hover { border-bottom-color: var(--aip-sky); }

/* Division logos at the top of division pages */
.aip-brand-logo { margin: 0 0 28px; }
.aip-page-body .aip-brand-logo img { height: 88px; width: auto; object-fit: contain; }
.aip-page-body .aip-brand-logo.is-wordmark img { height: auto; width: 240px; }

/* Photo mosaics */
.aip-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aip-mosaic .wp-block-image img { object-fit: cover; }
.aip-mosaic--about > .wp-block-image:first-child { grid-row: span 2; }
.aip-mosaic--about > .wp-block-image:first-child img { aspect-ratio: 2 / 3; }
.aip-mosaic--about > .wp-block-image:not(:first-child) img { aspect-ratio: 1 / 1; }
.aip-mosaic--eng > .wp-block-image:nth-child(1) img { aspect-ratio: 1 / 1; }
.aip-mosaic--eng > .wp-block-image:nth-child(2) { background: #fff; aspect-ratio: 1 / 1; padding: 14px; display: flex; align-items: center; justify-content: center; }
.aip-mosaic--eng > .wp-block-image:nth-child(2) img { object-fit: contain; }
.aip-mosaic--eng > .wp-block-image:nth-child(3) { grid-column: span 2; }
.aip-mosaic--eng > .wp-block-image:nth-child(3) img { aspect-ratio: 2 / 1; }
.aip-photo-4x5 img { aspect-ratio: 4 / 5; object-fit: cover; }
.aip-photo-4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.aip-photo-16x10 img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.aip-gallery-3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.aip-gallery-3 .wp-block-image { overflow: hidden; }
.aip-gallery-3 img { aspect-ratio: 3 / 2; object-fit: cover; }
.aip-gallery-3 .wp-block-image:hover img { transform: scale(1.05); }

/* Timeline (about) */
.aip-timeline { overflow: hidden; margin-top: 44px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.aip-tl__img { position: relative; overflow: hidden; background: #000; margin: 0; }
.aip-tl__img img { aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.15); }
.aip-tl:hover .aip-tl__img img { transform: scale(1.05); }
.aip-tl__year { position: relative; margin-top: 64px !important; font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; line-height: 1; }
.aip-tl__year::before { content: ''; position: absolute; left: 0; right: -32px; top: -29px; height: 2px; background: #000; }
.aip-tl__year::after { content: ''; position: absolute; left: 2px; top: -38px; width: 20px; height: 20px; background: var(--aip-sky); border: 2px solid #000; transform: rotate(45deg); }
.aip-tl__text { margin-top: 10px !important; font-size: 16px; line-height: 1.5; color: var(--aip-text); max-width: 28ch; }

/* Bulk-Wise partner box (YSS) */
.aip-darkbox { margin-top: 56px !important; background: #000; color: #fff; padding: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.aip-darkbox__text { max-width: 62ch; }
.aip-darkbox .aip-kicker { color: var(--aip-sky); letter-spacing: .14em; font-weight: 700; }
.aip-darkbox p:not(.aip-kicker) { margin-top: 10px !important; font-size: 18px; line-height: 1.5; }
.aip-app { border-top: 3px solid #000; padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.aip-app .aip-kicker { color: #000; letter-spacing: .14em; font-weight: 700; }
.aip-app__title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; font-weight: 800; }
.aip-app .aip-ticks { margin-top: 0 !important; }
.aip-app .wp-block-buttons { margin-top: 8px !important; }
.aip-apps { margin-top: 40px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; }

/* YSC dark system/specs section */
.aip-sec--dark .aip-h2 { font-size: clamp(30px, 3.6vw, 44px); }
.aip-sec--dark .aip-ticks li { color: #fff; }
.aip-specs { margin-top: 20px !important; }
.aip-specs table { width: 100%; border-collapse: collapse; border-bottom: 1px solid #333; }
.aip-specs td { border-top: 1px solid #333; padding: 12px 0; font-size: 16px; border-left: 0; border-right: 0; }
.aip-specs td:first-child { color: #E0E0E0; }
.aip-specs td:last-child { font-weight: 700; text-align: right; }
.aip-sec--dark .aip-note { color: #CCCCCC; font-size: 14px; }

/* Before / after slider (agroinpro-site.js builds the tabs and the handle) */
.aip-ba__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; user-select: none; touch-action: none; }
.aip-ba__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aip-ba__line { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--aip-yellow); pointer-events: none; }
.aip-ba__knob { position: absolute; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--aip-yellow); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.aip-ba__tag { position: absolute; top: 14px; padding: 6px 10px; font-size: 12px; letter-spacing: .14em; font-weight: 700; pointer-events: none; }
.aip-ba__tag--before { left: 14px; background: #000; color: #fff; }
.aip-ba__tag--after { right: 14px; background: #fff; color: #000; }
.aip-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.aip-ba__tabs { margin-top: 24px; display: flex; gap: 8px; }
.aip-ba__tabs button { border: 1.5px solid #000; background: transparent; color: #000; padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.aip-ba__tabs button[aria-pressed="true"] { background: #000; color: #fff; }
/* Without JS the image pairs show side by side; with JS they become the slider's sources. */
.aip-ba__set { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px !important; }
.aip-ba__set > p { grid-column: 1 / -1; font-weight: 700; }
.aip-ba.is-ready .aip-ba__set { display: none; }

/* Contact page */
.aip-contact-aside { display: grid; gap: 28px; }
.aip-contact-item { border-top: 1px solid var(--aip-field); padding-top: 18px; }
.aip-contact-item--main { border-top: 3px solid #000; }
.aip-contact-item .aip-contact-item__value { margin-top: 8px !important; font-size: 22px; font-weight: 700; }
.aip-contact-item .aip-contact-item__text { margin-top: 8px !important; font-size: 17px; line-height: 1.5; }
.aip-form-fallback { border: 1px solid var(--aip-line); padding: 32px; font-size: 17px; }

/* Contact Form 7 skin (form markup in scripts/content/contact-form-*.txt) */
.aip-form { background: #fff; border: 1px solid var(--aip-line); padding: clamp(24px, 4vw, 44px); }
.aip-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.aip-form__title { grid-column: 1 / -1; font-size: 28px; font-weight: 800; }
.aip-form label, .aip-form__field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.aip-form__full { grid-column: 1 / -1; }
.aip-form input[type="text"], .aip-form input[type="email"], .aip-form textarea { width: 100%; border: 1px solid var(--aip-field); padding: 13px 14px; font-size: 16px; background: #fff; border-radius: 0; }
.aip-form textarea { resize: vertical; min-height: 140px; }
.aip-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.aip-form .wpcf7-list-item { margin: 0; }
.aip-form .wpcf7-list-item label { display: inline-block; position: relative; cursor: pointer; }
.aip-form .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aip-form .wpcf7-list-item-label { display: inline-block; border: 1.5px solid #000; padding: 11px 16px; font-size: 14px; font-weight: 600; background: #fff; }
.aip-form .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--aip-sky); }
.aip-form .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--aip-sky); outline-offset: 2px; }
.aip-form__submit-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.aip-form .wpcf7-submit { background: #000; color: #fff; border: 0; padding: 16px 26px; font-size: 16px; font-weight: 700; cursor: pointer; border-radius: 0; }
.aip-form .wpcf7-submit:hover { background: var(--aip-sky); color: #000; }
.aip-form__hint { font-size: 13px; color: var(--aip-soft); max-width: 40ch; }
.aip-form .wpcf7-not-valid-tip { font-size: 13px; font-weight: 600; }
.aip-form .wpcf7-response-output { margin: 18px 0 0 !important; padding: 14px 16px !important; font-size: 15px; }
.aip-form .wpcf7-spinner { margin: 0; }

/* ---------- theme-rendered views: news, article, plain pages ---------- */
.aip-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.aip-filter__item { border: 1px solid var(--aip-field); padding: 9px 14px; font-size: 14px; }
.aip-filter__item.is-current { background: #000; color: #fff; border-color: #000; font-weight: 600; }
.aip-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.aip-post-card { position: relative; border: 1px solid var(--aip-line); display: flex; flex-direction: column; transition: border-color .2s, box-shadow .25s, transform .2s; }
.aip-post-card:hover { border-color: #000; box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.aip-post-card__media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.aip-post-card__body { padding: 24px; display: grid; gap: 10px; }
.aip-post-card__meta { font-size: 13px; color: var(--aip-muted); font-weight: 600; }
.aip-post-card__title { font-size: 22px; line-height: 1.25; font-weight: 800; }
.aip-post-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--aip-text); }
.aip-post-card__more { font-weight: 700; font-size: 14px; }
.aip-pager { margin-top: 40px; display: flex; justify-content: space-between; font-weight: 700; }
.aip-empty { border: 1.5px dashed #BDB9AC; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; align-items: center; background: #fff; }
.aip-empty__title { margin-top: 14px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.aip-empty__body { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--aip-text); max-width: 44ch; }
.aip-empty .aip-btn { margin-top: 28px; }
.aip-empty__slots { display: grid; gap: 14px; }
.aip-empty__slot { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; opacity: .55; }
.aip-empty__slot span { aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, #F2F2F2 0 8px, #D6D6D6 8px 16px); }
.aip-empty__slot i { display: block; height: 10px; background: var(--aip-line); width: 85%; }
.aip-empty__slot i + i { margin-top: 6px; width: 60%; }

.aip-prose-page { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.aip-prose-page__title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 32px; }
.aip-prose { max-width: 75ch; font-size: 17px; line-height: 1.7; color: var(--aip-text); }
.aip-prose > * + * { margin-top: 1em; }
.aip-prose h2 { font-size: 28px; line-height: 1.2; font-weight: 800; margin-top: 1.6em; }
.aip-prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.4em; }
.aip-prose a { text-decoration: underline; text-decoration-color: var(--aip-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.aip-prose ul, .aip-prose ol { padding-left: 1.3em; }
.aip-prose img { height: auto; }
.aip-back { margin-top: 48px; font-weight: 700; }

/* Focal points for cropped photos (class aip-pos-N = object-position 50% N%). */
.aip-pos-30 img { object-position: 50% 30%; }
.aip-pos-35 img { object-position: 50% 35%; }
.aip-pos-40 img { object-position: 50% 40%; }
.aip-pos-60 img { object-position: 50% 60%; }
.aip-pos-65 img { object-position: 50% 65%; }

/* Keep the centred column and explicit title gaps despite the margin reset at the top of this file. */
.aip-page-body .wp-block-group.aip-wrap, .aip-page-body .aip-feature__inner { margin-left: auto; margin-right: auto; }
.aip-page-body .aip-gap-title { margin-bottom: 40px; }
.aip-page-body .aip-dots { margin-top: 40px; }

/* Long labels (Spanish) may wrap on phones instead of pushing the page sideways. */
@media (max-width: 600px) {
  .aip-page-body .wp-block-button__link, .aip-btn, .aip-download__link a { white-space: normal; }
}
