/* PAPSAC participant area (website). Builds on css/site.css (GFSP style). */

/* Theme: matches the public site (css/site.css), which follows globalfoodsystems.org */
:root {
  --green: #a51c30;
  --deep: #8a1729;
  --cream: #fff;
  --white: #fff;
  --sage: #ececec;
  --mid: #555;
  --serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 24px;
  --line: #d9d9d9;
  --soft: #f3f3f3;
  --ink: #1e1e1e;
  --muted: #555;
  --blue: #1F3F6E;
  --orange: #9A4E0C;
  --red: #a51c30;
  --gold: #005fcc;
}

/* pieces the participant area used to take from the old public stylesheet */
main p, main h1, main h2, main h3, main ul { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.display { font-size: 2.6rem; font-weight: 700; line-height: 1.2; }
.submit { justify-self: start; min-height: 48px; padding: 0 34px; border: 2px solid var(--green); background: var(--green); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: .02em; cursor: pointer; }
.submit:hover { background: var(--deep); border-color: var(--deep); }
.submit[disabled] { opacity: .6; cursor: default; }
.main-nav > ul > li > a.nav-cta[aria-current] { border-color: var(--crimson-dark); background: var(--crimson-dark); }
a.card:hover, a.prow:hover, a.person:hover, a.daytab:hover, .pnav a:hover, a.link-btn:hover { text-decoration: none; }

/* banner with the area's own navigation: grey title band, tabs underneath */
.pbanner { background: var(--soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.pbanner .wrap { padding: 32px var(--pad) 32px; }
.pbanner .kicker { margin-bottom: 8px; }
.pbanner .lead { max-width: 760px; margin-top: 8px; font-size: 1.05rem; line-height: 1.5; color: var(--muted); }
.pnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; margin: 24px 0 -32px; border-top: 1px solid var(--line); }
.pnav a { display: inline-block; padding: 14px 0 11px; border-bottom: 3px solid transparent; color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; }
.pnav a:hover { color: var(--green); border-bottom-color: var(--green); }
.pnav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.pnav .who { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .9rem; color: var(--muted); }
.pnav .who a { padding: 10px 0; border: none; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pnav .who button { padding: 0; border: none; background: transparent; color: var(--green); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* page body */
.pbody { padding: clamp(28px, 4vw, 48px) var(--pad) clamp(56px, 7vw, 96px); }
.pbody-note { padding: 40px var(--pad); font-size: 17px; }
.pbody h2.h { margin: 0 0 18px; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.pbody h3.h { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }
.crumbs { margin-bottom: 22px; font-size: 15px; font-weight: 400; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs span { margin: 0 8px; opacity: 0.6; }
.note { display: flex; gap: 12px; margin-bottom: 16px; padding: 14px 18px; background: var(--soft); border-left: 4px solid var(--green); font-size: 16px; line-height: 1.5; font-weight: 400; }
.note svg { flex-shrink: 0; margin-top: 2px; color: var(--mid); }
.notes { margin-bottom: 30px; }
.status { padding: 60px var(--pad); text-align: center; font-size: 18px; }
.empty { padding: 18px 20px; border: 1px dashed var(--line); font-size: 16px; color: var(--muted); }
.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 1px solid var(--green); background: transparent; color: var(--green); font: inherit; font-weight: 400; font-size: 16px; text-decoration: none; cursor: pointer; }
.link-btn:hover { background: var(--green); color: var(--cream); }
.link-btn.solid { background: var(--green); color: var(--cream); }
.link-btn.solid:hover { background: var(--deep); border-color: var(--deep); }
svg { flex-shrink: 0; }

/* tracks */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--green); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.track-A, .track-A .label { color: var(--blue); } .track-A .badge { background: var(--blue); }
.track-B, .track-B .label { color: var(--orange); } .track-B .badge { background: var(--orange); }

/* sign in */
.gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gate-form { padding: clamp(28px, 4vw, 48px) var(--pad) 56px; }
.gate-form h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
.gate-form .intro { max-width: 560px; margin-bottom: 28px; font-size: 17px; line-height: 1.6; }
.gate-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.years { display: flex; flex-wrap: wrap; gap: 10px; }
.yearpick { min-height: 44px; padding: 0 18px; border: 1px solid var(--green); background: transparent; color: var(--green); font: inherit; font-weight: 400; font-size: 17px; cursor: pointer; }
.yearpick[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.yearpick.off { border-style: dashed; border-color: #9AA69B; color: var(--muted); cursor: default; }
.yearpick.off small { display: block; font-size: 12px; }
.field input.code { letter-spacing: 0.08em; text-transform: uppercase; }
.form-status.notice { color: var(--ink); }
.gate-foot { margin-top: 30px; font-size: 15px; color: var(--muted); }
.gate-foot a { text-underline-offset: 4px; }
.gate-foot p + p { margin-top: 10px; }

/* program */
.daytabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.daytab { display: flex; flex-direction: column; min-width: 170px; padding: 12px 20px 10px; border: 1px solid var(--green); background: transparent; color: var(--green); text-decoration: none; }
.daytab b { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; }
.daytab span { font-size: 14px; font-weight: 400; }
.daytab:hover { background: var(--white); }
.daytab[aria-current="page"] { background: var(--green); color: var(--cream); }
.slot { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.slot:last-child { border-bottom: 1px solid var(--line); }
.slot-time { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.slot-time small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.slot-items { display: grid; gap: 14px; }
.slot-items.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: block; padding: 18px 22px 20px; background: var(--white); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
a.card:hover { border-color: var(--green); }
.card .label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); }
.card .title { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; }
.card .desc { display: block; margin-top: 8px; font-size: 16px; line-height: 1.5; }
.card .sub { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; font-weight: 400; color: var(--muted); }
.card.break { padding: 12px 22px; background: transparent; border: 1px dashed var(--line); font-size: 16px; color: var(--muted); }

/* detail pages */
.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 70px); }
.kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); }
.kick .label { color: inherit; }
.h-detail { margin: 0 0 18px; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.005em; }
.meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; font-weight: 400; }
.meta svg { color: var(--mid); }
.metas { margin-bottom: 26px; }
.prose p { margin-bottom: 14px; font-size: 17px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }
.topics { counter-reset: t; display: grid; gap: 10px; margin-top: 8px; }
.topic { display: flex; gap: 16px; padding: 14px 18px; background: var(--soft); font-size: 16px; line-height: 1.5; }
.topic b { font-family: var(--serif); font-size: 22px; line-height: 1.1; color: var(--mid); }
.panel { margin-bottom: 30px; }
.plist { background: var(--white); border: 1px solid var(--line); }
.prow { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 12px 18px; border-bottom: 1px solid var(--soft); color: var(--ink); text-decoration: none; }
.prow:last-child { border-bottom: none; }
a.prow:hover { background: var(--soft); }
.prow-main { flex: 1 1 0; min-width: 0; }
.prow-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.prow-sub { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.prow svg.go { color: #8C978E; }
.prow svg.out { color: var(--mid); }
.more { margin-top: 14px; }

/* people */
.avatar { display: block; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--sage); color: var(--mid); }
.avatar.blank { display: flex; align-items: center; justify-content: center; }
.avatar img { display: block; max-width: none; }
.avatar.lg { width: 160px; height: 160px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; margin-bottom: 26px; }
.search { display: flex; align-items: center; gap: 10px; max-width: 520px; height: 48px; padding: 0 14px; border: 1px solid var(--green); background: var(--white); color: var(--muted); }
.search input { flex: 1 1 0; min-width: 0; height: 44px; border: none; background: transparent; font: inherit; font-weight: 400; font-size: 17px; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--green); border-radius: 20px; background: transparent; color: var(--green); font: inherit; font-weight: 400; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.count { grid-column: 1 / -1; font-size: 15px; font-weight: 400; color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.person { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--white); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.person:hover { border-color: var(--green); }
.person .avatar { width: 64px; height: 64px; }
.person-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.15; }
.person-title { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.pill { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 12px; background: var(--sage); color: var(--deep); font-size: 12px; font-weight: 700; }
.pill.lg { margin-top: 12px; padding: 5px 14px; border-radius: 16px; font-size: 14px; }
.profile-top { display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: 30px; }
.profile-top .h-detail { margin-bottom: 4px; }
.profile-title { font-size: 18px; line-height: 1.45; font-weight: 400; color: var(--muted); }

/* readings */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.intro { max-width: 820px; margin-bottom: 28px; font-size: 18px; line-height: 1.6; }
.reading { padding: 18px 22px 20px; background: var(--white); border-bottom: 1px solid var(--soft); }
.reading:last-child { border-bottom: none; }
.reading-title { display: inline-block; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--green); text-underline-offset: 4px; }
.reading-meta { margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.time { display: inline-block; margin-left: 10px; padding: 1px 9px; border-radius: 10px; background: var(--sage); color: var(--deep); font-size: 12px; font-weight: 700; }
.why { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.why a { font-weight: 600; text-underline-offset: 4px; }
.rh2 { margin: 30px 0 12px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; }
.rh3 { margin: 20px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }
.term { padding: 14px 22px; background: var(--white); border-bottom: 1px solid var(--soft); }
.term b { display: block; font-size: 16px; }
.term span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; font-weight: 400; }
.rlist { margin-bottom: 8px; border: 1px solid var(--line); }

/* logistics */
.lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lg-section { padding: 22px 26px 24px; background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--green); }
.lg-section h3.h { margin-bottom: 8px; }
.lg-note { margin-bottom: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.lg-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--soft); }
.lg-row:last-child { border-bottom: none; }
.lg-n { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--mid); }
.lg-label { margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lg-strong { font-size: 17px; font-weight: 600; line-height: 1.35; }
.lg-text { font-size: 16px; line-height: 1.5; }
.lg-line { margin-top: 4px; font-size: 16px; font-weight: 600; }
.lg-link { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; text-underline-offset: 4px; overflow-wrap: anywhere; }
.account { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.account p + p { margin-top: 8px; }
.account a { text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .gate, .detail, .groups, .lg-grid { grid-template-columns: minmax(0, 1fr); }
  .gate-photo { order: -1; }
  .gate-photo img { min-height: 0; height: 240px; }
  .slot { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .slot-items.two { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: minmax(0, 1fr); }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .profile-top { flex-direction: column; align-items: flex-start; }
  .pnav { gap: 0 22px; }
  .pnav .who { flex-basis: 100%; margin-left: 0; padding-bottom: 12px; }
  .daytab { min-width: 0; flex: 1 1 0; padding: 10px 12px 8px; }
  .daytab b { font-size: 20px; }
}

@media print {
  .site-header, .site-footer, .pnav, .skip-link, .daytabs, .toolbar, .crumbs, .more, .account, .link-btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .pbanner { background: none; color: #000; }
  .card, .plist, .lg-section, .reading, .term, .topic, .person { background: none; border: 1px solid #bbb; }
  a { text-decoration: none; }
}

/* phones: keep the four area tabs on one line */
@media (max-width: 520px) {
  .pnav { gap: 0 16px; }
  .pnav a { font-size: .86rem; }
}
