/* ==========================================================================
   FIELD NOTES – page "Field Notes" (UX Builder, shown on /field-notes/ and topic
   archives) + [ag_field_notes] note list; single-field_note.php (article.css).
   ========================================================================== */

/* Note list – UX Builder element "Field Notes List" ([ag_field_notes]).
   Columns, gap and image height come from the element options (CSS variables). */
.ag-notes-topics-nav {
	display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 22px; border-bottom: 1px solid var(--ag-ink);
	font-size: 9px; letter-spacing: .12em; font-weight: 800;
}
.ag-notes-topics-nav a.is-active { color: var(--ag-red); }

.ag-note-feature {
	display: grid; grid-template-columns: minmax(0, 1.273fr) minmax(0, 1fr); min-height: 470px; margin-top: 58px;
	background: #111; color: #fff;
}
/* White text on the dark card (stronger than the template link / heading resets) */
.ag-tpl a.ag-note-feature, .ag-tpl a.ag-note-feature:hover { color: #fff; }
body.ag-site .ag-note-feature__copy h2 { color: #fff; }
.ag-note-feature__image { overflow: hidden; }
.ag-note-feature__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ag-note-feature:hover .ag-note-feature__image img { transform: scale(1.025); }
.ag-note-feature__copy { display: flex; flex-direction: column; justify-content: center; padding: 72px; }
.ag-note-feature__copy h2 { font-size: clamp(35px, 4vw, 57.6px); line-height: .98; letter-spacing: -.05em; font-weight: 700; margin: 38px 0 22px; color: #fff; }
.ag-note-feature__copy p { font-size: 13px; line-height: 1.8; color: #aaa; margin: 13px 0; max-width: 500px; }
.ag-note-feature__copy b, .ag-note-card b { display: block; margin-top: 28px; font-size: 10px; letter-spacing: .13em; font-weight: 700; }
.ag-note-feature__copy b i, .ag-note-card b i { font-style: normal; color: var(--ag-red); margin-left: 10px; }

.ag-note-grid { display: grid; grid-template-columns: repeat(var(--ag-notes-cols, 3), minmax(0, 1fr)); gap: var(--ag-notes-gap, 24px); margin-top: var(--ag-notes-gap, 24px); }
.ag-note-grid.is-first { margin-top: 58px; }
.ag-note-card { display: block; background: #fff; padding: 0 0 26px; }
.ag-note-card__image { position: relative; height: 0; padding-top: var(--ag-notes-ratio, 62.5%); overflow: hidden; background: #ddd; margin-bottom: 22px; }
.ag-note-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-note-card .ag-note-meta, .ag-note-card h3, .ag-note-card b { padding: 0 22px; }
.ag-note-card h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.03em; font-weight: 700; margin: 16px 0 0; }

/* "WHAT WE OBSERVE." (UX Builder rows) ---------------------------------------- */
.ag-observe-title { margin: 0; font-size: clamp(48px, 6vw, 86.4px); line-height: .9; letter-spacing: -.065em; font-weight: 700; }
body .ag-observe-text { margin: 14px 0; font-size: 14px; line-height: 1.9; color: var(--ag-muted); }

/* Topic columns (Row "ag-topics-row"): 4 columns on desktop, a clean 2×2 grid on
   tablet, one column on phones. Padding is set per device in each column. */
.ag-topics-row { border-top: 2px solid var(--ag-ink); }
.ag-topics-row > .col { border-right: 1px solid var(--ag-line); }
.ag-topics-row > .col > .col-inner { min-height: 210px; }
body .ag-topic-num { margin: 0; font-size: 10px; line-height: normal; font-weight: 800; color: var(--ag-red); }
body .ag-topic-title { margin: 32px 0 18px; font-size: 18px; line-height: 1.12; font-weight: 700; }
body .ag-topic-text { margin: 12px 0; font-size: 12px; line-height: 1.7; color: var(--ag-muted); }

/* Contact block (UX Builder section "ag-notes-contact") */
body .ag-cta-title { margin: 20px 0; font-size: 24px; line-height: normal; font-weight: 700; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 849px) {
	.ag-notes-page, .ag-notes-contact { --ag-gutter: 22px; }
	.ag-note-feature { grid-template-columns: minmax(0, 1fr); }
	.ag-note-feature__image { height: 280px; }
	.ag-note-feature__copy { padding: 36px 24px 40px; }
	.ag-note-grid { grid-template-columns: repeat(var(--ag-notes-cols-md, 2), minmax(0, 1fr)); }
	/* Clean 2×2 grid: line between the columns and between the rows */
	.ag-topics-row > .col:nth-child(2n) { border-right: 0; }
	.ag-topics-row > .col:nth-child(n+3) { border-top: 1px solid var(--ag-line); }
}
@media (max-width: 700px) {
	.ag-note-grid { grid-template-columns: repeat(var(--ag-notes-cols-sm, 1), minmax(0, 1fr)); }
}
@media (max-width: 549px) {
	.ag-notes-topics-nav { gap: 11px 18px; }
	.ag-note-feature__image { height: 220px; }
	/* One column: a line above each topic */
	.ag-topics-row > .col { border-right: 0; border-top: 1px solid var(--ag-line); }
}
