/*
 * Our Model, Agri / Gizi pillars, Agri Science, Climate work plan.
 * Promoted from the approved samples (public/mockups/{project-archive,pillars,partnership-pages}.css),
 * scoped under .p1 so nothing leaks into the live header and footer. The samples are untouched.
 */
.p1 {
    --green: #00594c; --blue: #4aa2c1; --orange: #f96906; --ink: #333333; --muted: #626b68;
    --line: #dce6e2; --tint: #f0f7f4;
    color: var(--ink); font-size: 17px; line-height: 1.65;
}
.p1 *, .p1 *::before, .p1 *::after { box-sizing: border-box; }
.p1 img { display: block; max-width: 100%; }
.p1 a { color: inherit; text-decoration: none; }
.p1 h1, .p1 h2, .p1 h3, .p1 p { margin: 0; }
.p1 :focus-visible { outline: 3px solid #247998; outline-offset: 4px; }
/* #247998 is 4.9:1 on white but 1.7:1 on the green surfaces, so those get a white ring (8.3:1). */
.p1 .hero :focus-visible, .p1 .cta-content :focus-visible, .p1 .p1-card-dark :focus-visible, .p1 .evidence-grid :focus-visible { outline-color: #fff; }
.p1 .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.p1 .icon-definitions { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* .container is the live Tailwind container, so content lines up with the real header and footer. */
.p1 section { scroll-margin-top: 110px; }
.p1 ul, .p1 ol { margin: 0; padding: 0; list-style: none; }

/* The live header is fixed and transparent over the page top, so the page starts below a green band. */
.p1-nav-spacer { height: 80px; background: var(--green); }

/* Type (sample: .brief-page) */
.p1 h1, .p1 h2, .p1 h3 { color: var(--green); line-height: 1.13; text-wrap: balance; }
.p1 h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.025em; font-weight: 700; }
.p1 h3 { font-size: 23px; font-weight: 700; }
.p1 p { max-width: 72ch; }
.p1 p + p { margin-top: 18px; }
.p1 a:not(.brief-button):hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-weight: 700; min-height: 44px; font-size: 15px; }
.p1 .text-link { color: var(--green); }

/* Image hero (sample: .hero, .pillar-hero) */
.p1 .hero { position: relative; display: grid; place-items: center; min-height: 430px; padding: 80px 0 0; text-align: center; background: var(--green); color: #fff; overflow: hidden; }
.p1 .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p1 .hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 38, 28, .62); }
.p1 .hero-content { position: relative; z-index: 1; padding: 36px 20px 48px; max-width: 860px; }
.p1 .hero h1 { color: #fff; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.p1 .hero-content > p { margin: 18px auto 0; font-size: 18px; line-height: 1.6; color: #fff; }

/* Our Model hero (sample: .brief-hero) */
.p1 .brief-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 480px; padding: 0; background: var(--tint); } /* padding: 0 because the live site styles bare <section> elements */
.p1 .brief-hero > div:first-child { padding: 64px 48px 64px 24px; align-self: center; }
@media (min-width: 1024px) { .p1 .brief-hero > div:first-child { padding-left: calc((100vw - 1024px) / 2 + 48px); } }
@media (min-width: 1280px) { .p1 .brief-hero > div:first-child { padding-left: calc((100vw - 1280px) / 2 + 100px); } }
@media (min-width: 1536px) { .p1 .brief-hero > div:first-child { padding-left: calc((100vw - 1536px) / 2 + 116px); } }
.p1 .brief-hero h1 { font-size: clamp(38px, 4.7vw, 62px); letter-spacing: -.035em; max-width: 17ch; }
.p1 .brief-hero p { margin-block: 24px 0; max-width: 50ch; font-size: 19px; }
.p1 .brief-hero-photo { position: relative; min-height: 320px; }
.p1 .brief-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* fills the row height set by the text column */

/* Sections, split layout, lists (sample: .brief-*, .model-*) */
.p1 .brief-section { padding-block: 78px; }
.p1 .brief-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.p1 .brief-copy > * + * { margin-top: 22px; }
.p1 .brief-tint { background: var(--tint); }
.p1 .brief-intro { max-width: 820px; }
.p1 .brief-intro p { margin-top: 22px; }
.p1 .brief-list { margin: 0; }
.p1 .brief-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.p1 .brief-list li:first-child { padding-top: 0; border-top: 0; }
.p1 .brief-list h3 { font-size: 22px; line-height: 1.3; }
.p1 .brief-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 22px; background: var(--green); border: 1px solid var(--green); border-radius: 28px; color: #fff; font-weight: 700; line-height: 1.4; }
.p1 .brief-button:hover { background: #003f36; }
.p1 .model-flow .model-row { display: grid; grid-template-columns: 220px 1fr; gap: 35px; padding: 26px 0; border-top: 1px solid var(--line); }
.p1 .model-row h3 { font-size: 22px; }
.p1 .model-row.is-open { padding-inline: 24px; background: #fff4e9; border-left: 4px solid var(--orange); border-top-color: transparent; }
.p1 .model-optional { padding: 24px; border: 1px dashed #78968b; background: var(--tint); }
.p1 .brief-tint .model-optional { background: #fff; }
.p1 .model-example-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.p1 .model-example-pair article { border-top: 2px solid var(--green); padding-top: 25px; }
.p1 .model-example-pair article > * + * { margin-top: 16px; }
.p1 .model-example-pair h2 { font-size: 26px; letter-spacing: -.01em; }
.p1 .model-example-pair h3 { font-size: 17px; }
.p1 .p1-emph { padding-left: 22px; border-left: 4px solid var(--orange); color: var(--green); font-size: 21px; font-weight: 600; line-height: 1.45; }
.p1 .p1-lead { font-size: 20px; font-weight: 500; line-height: 1.55; color: var(--green); }

/* Numbered steps (sample: .approach-list) */
.p1 .approach-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; margin-top: 36px; }
.p1 .approach-list li { padding-top: 22px; border-top: 2px solid var(--green); }
.p1 .approach-list li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #b9d8cc; color: var(--green); font-weight: 700; margin-bottom: 16px; }
.p1 .approach-list h3 { font-size: 20px; line-height: 1.35; }
.p1 .approach-list p { margin-top: 10px; font-size: 16px; color: #4f635a; }

/* Pillar pages (sample: pillars.css) */
.p1 .pillar-introduction { display: grid; grid-template-columns: 1fr 1.1fr; gap: 85px; padding-block: 64px 56px; }
.p1 .pillar-introduction h2 { font-size: clamp(27px, 2.7vw, 36px); line-height: 1.2; max-width: 430px; }
.p1 .pillar-introduction p { font-size: 17px; line-height: 1.7; }
.p1 .focus-section { background: var(--tint); padding-block: 56px; }
.p1 .section-heading { display: block; margin-bottom: 28px; }
.p1 .section-heading h2 { font-size: 29px; line-height: 1.25; }
.p1 .section-heading p { margin-top: 9px; font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 70ch; }
.p1 .focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 30px; }
.p1 .focus-description { border-top: 2px solid #b9d8cc; padding-top: 20px; }
.p1 .focus-description h3 { font-size: 19px; line-height: 1.3; }
.p1 .focus-description p { font-size: 15px; line-height: 1.65; margin-top: 12px; color: #4f635a; }
.p1 .pillar-programs { padding-block: 64px 28px; }
.p1 .catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.p1 .catalog-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.p1 .catalog-card-body { padding: 24px; flex: 1; }
.p1 .catalog-card h3 { display: flex; align-items: center; min-height: 44px; color: var(--green); font-size: 22px; line-height: 1.25; }
.p1 .catalog-card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.p1 .catalog-card h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
/* A linked program name is underlined and carries an arrow; an unlinked one is plain text. */
.p1 .catalog-card.is-linked h3 a { gap: 8px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.p1 .catalog-card-body > p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.p1 .pillar-evidence { padding-block: 56px 28px; }
.p1 .evidence-sub { margin-bottom: 18px; font-size: 20px; }
.p1 .evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.p1 .evidence-grid li { padding: 26px; border-radius: 10px; background: var(--green); color: #fff; }
.p1 .evidence-label { font-size: 14px; font-weight: 600; color: #cfe5de; }
.p1 .evidence-value { margin-top: 14px; font-size: 17px; line-height: 1.45; }
.p1 .evidence-figure { display: block; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p1 .evidence-note { margin-top: 14px; font-size: 13px; color: #cfe5de; }
.p1 .evidence-place { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.p1 .evidence-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 34px; }
.p1 .evidence-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.p1 .evidence-sites > div { border-top: 2px solid #b9d8cc; padding-top: 20px; }
.p1 .evidence-sites h3 { font-size: 22px; }
.p1 .evidence-sites p { margin-top: 12px; font-size: 16px; }
.p1 .single-program-note { margin-top: 34px; padding: 25px; background: var(--tint); color: var(--green); border-radius: 8px; line-height: 1.7; }

/* Closing band as a rounded card: the live footer is the same green, so a full-bleed band would merge with it. */
.p1 .partnership-cta { padding: 56px 0 72px; }
.p1 .cta-content, .p1 .p1-card-dark { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 44px 52px; background: var(--green); border-radius: 14px; color: #fff; }
.p1 .cta-content h2, .p1 .p1-card-dark h2 { color: #fff; font-size: 30px; }
.p1 .cta-content p { margin-top: 10px; color: #e1f0e9; line-height: 1.6; }
.p1 .cta-content > a { display: flex; align-items: center; gap: 17px; border-radius: 50px; background: var(--orange); color: #fff; padding: 15px 22px; font-weight: 700; white-space: nowrap; } /* white on orange, as the site's existing buttons */
.p1 .cta-content > a:hover { background: #000; }
.p1 .p1-card-dark { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.p1 .p1-card-dark p { color: #e1f0e9; }
.p1 .p1-card-dark .p1-lead { color: #fff; }
.p1 .p1-card-dark .brief-button { background: #fff; color: var(--green); border-color: #fff; }
.p1 .p1-card-dark .brief-button:hover { background: #e7f1ed; }
.p1 .p1-closing { padding-block: 56px 72px; }

@media (max-width: 1150px) {
    .p1 .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .p1 .brief-hero > div:first-child { padding: 40px 30px; }
    .p1 .brief-split, .p1 .p1-card-dark { gap: 35px; }
    .p1 .pillar-introduction { gap: 35px; }
    .p1 .model-flow .model-row { grid-template-columns: 150px 1fr; gap: 22px; }
    .p1 .evidence-grid { grid-template-columns: 1fr; }
    .p1 .approach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p1 .evidence-notes, .p1 .evidence-sites { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .p1 { font-size: 16px; }
    .p1-nav-spacer { height: 72px; }
    .p1 .hero { min-height: 420px; padding: 72px 0 0; }
    .p1 .pillar-hero > img { object-position: 80% center; }
    .p1 .hero-content > p { font-size: 16px; }
    .p1 .brief-hero { display: flex; flex-direction: column; }
    .p1 .brief-hero > div:first-child { padding: 36px 20px; }
    .p1 .brief-hero-photo { min-height: 0; height: 250px; }
    .p1 .brief-hero p { font-size: 17px; }
    .p1 .brief-section { padding-block: 46px; }
    .p1 .brief-split, .p1 .model-example-pair, .p1 .p1-card-dark { grid-template-columns: 1fr; gap: 28px; }
    .p1 .model-flow .model-row { grid-template-columns: 1fr; gap: 10px; }
    .p1 .pillar-introduction { grid-template-columns: 1fr; gap: 22px; padding-block: 36px; }
    .p1 .pillar-introduction h2 { font-size: 28px; }
    .p1 .pillar-introduction p { font-size: 16px; }
    .p1 .section-heading h2 { font-size: 25px; }
    .p1 .focus-section { padding-block: 36px; }
    .p1 .focus-grid, .p1 .catalog-grid { grid-template-columns: 1fr; gap: 22px; }
    .p1 .pillar-programs, .p1 .pillar-evidence { padding-block: 36px 16px; }
    .p1 .approach-list { grid-template-columns: 1fr; gap: 26px; }
    .p1 .cta-content { display: block; padding: 30px 24px; }
    .p1 .cta-content h2, .p1 .p1-card-dark h2 { font-size: 26px; }
    .p1 .cta-content > a { margin-top: 24px; width: fit-content; font-size: 14px; }
    .p1 .p1-card-dark { padding: 30px 24px; }
    .p1 .partnership-cta, .p1 .p1-closing { padding-block: 36px 48px; }
}
@media (prefers-reduced-motion: reduce) { .p1 *, .p1 *::before, .p1 *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ───────── Pillars list, pillar pages and program strips (promoted from public/mockups/pillars.css, scoped under .p1) ───────── */
.p1 .hero-content > p.hero-eyebrow { margin: 0 auto 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.p1 .hero-action { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; margin-top: 22px; padding: 10px 22px; border-radius: 30px; background: #fff; color: var(--green); font-size: 14px; font-weight: 700; }
.p1 .hero-action:hover { background: var(--tint); }
.p1 .hero-action:focus-visible { outline-color: #fff; }
.p1 .breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.p1 .breadcrumbs a { color: var(--green); }
.p1 .breadcrumbs a:hover { text-decoration: underline; }
.p1 .focus-description .focus-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--green); }
.p1 .focus-description .focus-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.p1 .focus-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.p1 .focus-filters button { min-height: 44px; padding: 10px 16px; border-radius: 6px; border: 1px solid #626b68; background: #fff; color: var(--green); font: inherit; font-size: 14px; cursor: pointer; }
.p1 .focus-filters button[aria-pressed=true] { background: var(--green); color: #fff; border-color: var(--green); }
.p1 .focus-filters button:hover { border-color: var(--green); }
.p1 .catalog-card[hidden], .p1 .empty[hidden] { display: none; }
.p1 .empty { padding: 28px; border: 1px dashed var(--line); border-radius: 10px; }
.p1 .empty button { min-height: 44px; margin-top: 12px; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--green); background: #fff; color: var(--green); font: inherit; cursor: pointer; }
.p1 .catalog-card-photo { display: block; overflow: hidden; }
.p1 .catalog-card-photo img { width: 100%; aspect-ratio: 1.85; object-fit: cover; }
.p1 .catalog-card-body { display: flex; flex-direction: column; align-items: flex-start; }
.p1 .card-pillar { padding: 4px 9px; border-radius: 4px; background: var(--tint); color: var(--green); font-size: 12px; font-weight: 600; }
.p1 .card-focus-label { margin-top: 20px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.p1 .focus-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.p1 .focus-tags li { margin: 0; }
.p1 .focus-tags a, .p1 .focus-tags span { display: inline-block; padding: 5px 8px; border-radius: 4px; background: #edf5f8; color: #22627a; font-size: 12px; line-height: 1.35; }
.p1 .catalog-card-body > .text-link { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; }
.p1 .pillar-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin-block: 8px 56px; }
.p1 .pillar-directory-card { display: block; background: var(--tint); border-radius: 12px; overflow: hidden; color: inherit; }
.p1 .pillar-directory-card > img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.p1 .pillar-directory-card > div { padding: 28px; }
.p1 .pillar-directory-card span { color: var(--muted); font-size: 14px; }
.p1 .pillar-directory-card h2 { margin: 8px 0; color: var(--green); font-size: 34px; }
.p1 .pillar-directory-card p { font-size: 16px; line-height: 1.5; }
.p1 .pillar-directory-card strong { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--green); font-size: 15px; }
.p1 .pillar-directory-card:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.p1 .relationship-explainer { padding-block: 35px 60px; border-top: 1px solid var(--line); }
.p1 .relationship-explainer h2 { color: var(--green); font-size: 27px; }
.p1 .relationship-explainer p { max-width: 720px; margin-top: 16px; font-size: 17px; line-height: 1.7; }
/* Program page: pillar and focus-area strip, shared direction, more from the pillar */
.p1 .program-relationship { background: var(--tint); border-bottom: 1px solid var(--line); }
.p1 .relationship-content { display: flex; flex-wrap: wrap; gap: 20px 56px; padding-block: 22px; }
.p1 .relationship-content > div > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.p1 .relationship-content .program-parent { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 24px; font-weight: 700; }
.p1 .relationship-content .focus-tags span, .p1 .relationship-content .focus-tags a { border: 1px solid #c2d9e2; background: #fff; padding: 7px 11px; font-size: 13px; }
.p1 .related-programs { padding-block: 48px 64px; }
@media (max-width: 920px) { .p1 .pillar-directory { grid-template-columns: 1fr; } .p1 .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .p1 .catalog-grid { grid-template-columns: 1fr; } .p1 .pillar-directory-card > div { padding: 22px; } .p1 .relationship-content { gap: 16px; } }
.p1 .directory-jumps { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-block: 24px 6px; }
.p1 .directory-jumps a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 17px; }
.p1 .directory-program-group { padding-block: 24px 40px; }
.p1 .directory-program-group .section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 20px; }
.p1 .focus-description h3 a { color: inherit; }
.p1 .focus-description h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.p1 .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.p1 .p1-next-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; color: var(--green); font-size: 19px; line-height: 1.4; }
.p1 .p1-next-link:hover span { text-decoration: underline; text-underline-offset: 5px; }
