:root {
  --charcoal: #2b2e2d;
  --ink: #1b1d1c;
  --text: #1e2120;
  --muted: #565b57;
  --body: #3d423f;
  --paper: #f1f2ee;
  --surface: #ffffff;
  --line: #d3d6cf;
  --line-strong: #9ea49c;
  --green: #1f5038;
  --green-dark: #143826;
  --green-mid: #2c6249;
  --green-tint: #e3eee7;
  --gold: #b08d57;
  --gold-light: #c9a86e;
  --gold-text: #7a5c2c;
  --cream: #f4f1e8;
  --warn-bg: #fbede6;
  --warn: #7a2e12;
  --amber-bg: #fdf3dc;
  --amber: #6b4a06;
  --script: 'Lobster', cursive;
  --display: 'Questrial', 'Century Gothic', sans-serif;
  --sans: 'Mulish', system-ui, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #e9e6dd; border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.brand:hover { color: #fff; }
.brand b { color: var(--gold); font-weight: 400; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.nav a { color: #e9e6dd; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }
.nav .nav-quiet { color: #b9b5a8; font-size: 13px; }
.nav button.btn-link { min-height: 0; padding: 6px 0; text-decoration: none; }
.nav button.btn-link:hover { color: #fff; }
.ts-slot { min-height: 65px; }
.org-badge { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 3px 8px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 3px; border: 1.5px solid transparent; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-tint); }
.btn-outline-light { background: transparent; border-color: var(--gold-light); color: var(--cream); }
.btn-outline-light:hover { background: rgba(255,255,255,.06); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-link { background: none; border: none; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Hero ---------- */
.hero { background: var(--charcoal); color: var(--cream); padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.eyebrow { font-family: var(--display); letter-spacing: .22em; text-transform: uppercase; font-size: 14px; color: var(--gold-light); margin: 0; }
.hero h1 { margin: 18px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; }
.hero .script { font-family: var(--script); font-size: 30px; color: var(--gold-light); margin: 0 0 18px; }
.hero p.lede { margin: 0 0 26px; font-size: 19px; line-height: 1.6; color: #d7d4cb; max-width: 560px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.date-strip { display: flex; gap: 14px; align-items: center; margin-top: 26px; padding: 16px 18px; border: 1px solid #4a4e4c; border-radius: 4px; background: #232625; font-size: 15px; }
.date-strip strong { color: var(--cream); }
.date-strip span { color: #b9b5a8; }
.slats { width: 100%; max-width: 440px; aspect-ratio: 813 / 1124; justify-self: center; background: url(assets/slats.jpg) center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 78%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 78%, transparent 100%); }

/* ---------- Progress band ---------- */
.band { background: var(--green); color: var(--cream); padding: 32px 0; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.band h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; }
.band-stats { font-size: 15px; color: #d6e4db; }
.band-stats strong { color: #fff; font-size: 20px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stages li { background: var(--green-mid); padding: 14px 16px; border-radius: 3px; border-top: 5px solid #4f7d66; }
.stages li.now { background: var(--cream); color: var(--text); border-top-color: var(--gold); }
.stages small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c7d9ce; }
.stages li.now small { color: var(--gold-text); }
.stages b { display: block; margin-top: 4px; }

/* ---------- Yearbook header band ---------- */
.yb-head { background: var(--green); border-radius: 4px 4px 0 0; padding: 10px 24px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.yb-head h2 { margin: 0; font-family: var(--script); font-weight: 400; font-size: 42px; color: #fff; text-shadow: 2px 2px 0 #10261b, -1px -1px 0 #10261b; }
.yb-head p { margin: 0; color: #d6e4db; font-size: 14px; }
.yb-body { background: var(--surface); border: 1px solid var(--line); border-top: none; border-radius: 0 0 4px 4px; padding: 36px 32px; }
.script-title { margin: 0; font-family: var(--script); font-weight: 400; font-size: 46px; color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: 72px 0 56px; }
.section-tight { padding: 24px 0 72px; }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.intro { font-size: 17px; color: var(--body); max-width: 680px; margin: 6px 0 0; }

/* ---------- Forms ---------- */
form.stack { display: flex; flex-direction: column; gap: 28px; }
fieldset { border: none; margin: 0; padding: 0; }
legend, .label-caps { font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 12px; padding: 0; }
legend .opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 400; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; border: 1.5px solid #b9bdb6; border-radius: 4px; padding: 11px 13px; font: inherit; font-size: 16px; background: #fff; color: var(--text); min-height: 48px; }
textarea { min-height: 80px; resize: vertical; }
select { cursor: pointer; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { background: #fff; color: var(--text); border: 1.5px solid var(--line-strong); font: inherit; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.pill[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--green); margin: 0; flex: none; }
.check span span { color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.alert-error { background: var(--warn-bg); border: 1px solid #c2603a; color: var(--warn); }
.alert-ok { background: var(--green-tint); border: 1px solid var(--green); color: var(--green-dark); font-weight: 700; }
.alert-note { background: var(--amber-bg); border: 1px solid #c99a2e; color: var(--amber); }

.side-card { background: var(--paper); border-radius: 4px; padding: 22px; }
.side-card h3 { margin: 0 0 10px; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.side-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
aside.side { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Confirmation / share ---------- */
.done-head { display: flex; gap: 16px; align-items: flex-start; }
.done-head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; }
.done-head p { margin: 8px 0 0; font-size: 17px; color: var(--body); }
.share-box { border: 2px solid var(--gold); border-radius: 4px; padding: 24px; background: #fbf8f1; margin: 26px 0; }
.share-box h4 { margin: 0 0 6px; font-size: 20px; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; align-items: start; margin-top: 18px; }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row input { flex: 1 1 220px; }
.msg { background: #fff; border: 1px dashed #b9bdb6; border-radius: 4px; padding: 14px; font-size: 15px; color: #2f3431; margin: 14px 0; }
.qr img { display: block; }
.qr { width: 160px; height: 160px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.qr-cap { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ---------- Portrait frame (yearbook style) ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.portrait { position: relative; background: #dde1db; border: 1px solid var(--line-strong); box-shadow: 8px 8px 0 #fff, 8px 8px 0 1px #b9bdb6; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 28px; color: #fff; background: var(--green); }
.avatar.open { background: #eceeea; border: 2px dashed #6e746f; color: #4a4f4b; }
.caption { background: #fff; border: 1px solid var(--line-strong); margin: 16px 8px 0 0; padding: 12px 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.caption .who { font-family: var(--serif); font-size: 18px; }
.caption .role { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.caption .desc { font-size: 14px; color: var(--muted); }
.caption .btn { margin-top: 8px; }
.cta-dark { background: var(--charcoal); color: var(--cream); border-radius: 4px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.cta-dark span { color: #d7d4cb; }

/* ---------- Find classmates ---------- */
.page-head { background: var(--charcoal); color: var(--cream); padding: 44px 0 36px; }
.page-head h1 { margin: 8px 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.5vw, 48px); }
.page-head p { margin: 0; color: #d7d4cb; font-size: 17px; max-width: 720px; }
.gate { display: flex; gap: 12px; align-items: center; background: #232625; border: 1px solid #4a4e4c; border-radius: 4px; padding: 12px 16px; margin-top: 22px; font-size: 14px; color: #d7d4cb; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 28px 0 14px; }
.toolbar .field { flex: 1 1 260px; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; }
.alpha button { min-width: 36px; min-height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 3px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text); }
.alpha button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.alpha button:disabled { color: #b0b4ae; cursor: default; }
.find-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.yb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
.yb-card { display: flex; flex-direction: column; }
.yb-card .portrait { aspect-ratio: 4 / 4.4; box-shadow: 6px 6px 0 #fff, 6px 6px 0 1px #b9bdb6; }
.yb-card .avatar { width: 64px; height: 64px; font-size: 22px; background: #8c948d; }
.yb-card .ph { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 11px; color: #5d635e; }
.yb-card .caption { margin: 12px 6px 0 0; padding: 10px; gap: 6px; }
.yb-card .who { font-size: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 2px; letter-spacing: .02em; }
.tag-green { background: var(--green-tint); color: var(--green-dark); }
.tag-gold { background: #f3ead9; color: var(--gold-text); }
.tag-gray { background: #eceeea; color: #4a4f4b; }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-red { background: var(--warn-bg); color: var(--warn); }
.card-actions { display: flex; flex-direction: column; gap: 6px; }
.card-actions .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding: 6px 10px; }
.inline-form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.inline-form input { min-height: 40px; font-size: 14px; padding: 8px 10px; }
.more { display: flex; justify-content: center; margin-top: 26px; }
.sticky-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.panel h2, .panel h3 { margin: 0 0 8px; font-size: 19px; }
.panel p { margin: 0 0 14px; color: var(--body); font-size: 15px; }
.panel form { display: flex; flex-direction: column; gap: 12px; }
.mine li { margin: 6px 0; }

/* ---------- Organizer ---------- */
.org-head { background: var(--ink); color: var(--cream); padding: 30px 0 0; }
.org-head h1 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 34px; }
.org-head p { margin: 0; color: #b9b5a8; }
.org-tabs { display: flex; gap: 4px; margin-top: 22px; flex-wrap: wrap; }
.org-tabs a { color: #d7d4cb; text-decoration: none; padding: 12px 18px; border-radius: 4px 4px 0 0; font-weight: 700; }
.org-tabs a[aria-current="page"] { background: var(--paper); color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; }
.kpi .n { font-family: var(--display); font-size: 34px; line-height: 1; }
.kpi .l { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 700; }
.kpi.accent { border-top: 4px solid var(--gold); }
.views { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.views button { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 40px; color: var(--text); }
.views button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.views .count { font-weight: 400; opacity: .75; margin-left: 4px; }
.roster-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.table-box { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 12px; border-bottom: 2px solid var(--line); background: #fafaf8; position: sticky; top: 0; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid #e7e9e4; vertical-align: middle; }
tr.row { cursor: pointer; }
tr.row:hover td { background: #f6f7f4; }
tr.row[aria-selected="true"] td { background: var(--green-tint); }
td .name { font-weight: 700; background: none; border: none; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; padding: 0; text-align: left; }
td .sub { font-size: 12px; color: var(--muted); }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px; font-size: 14px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.detail { position: sticky; top: 84px; }
.detail .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail .field { font-size: 13px; }
.detail select, .detail input, .detail textarea { min-height: 42px; font-size: 14px; padding: 8px 10px; }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; margin: 0 0 16px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
.review-item { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.review-item .btn-row { gap: 8px; }

/* ---------- Tasks ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { background: #e6e8e3; border-radius: 4px; padding: 12px; min-height: 200px; }
.col h3 { margin: 4px 4px 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; display: flex; justify-content: space-between; }
.task { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.task.blocked { border-left: 4px solid #c2603a; }
.task.overdue .due { color: var(--warn); font-weight: 800; }
.task .t { font-weight: 800; font-size: 15px; line-height: 1.3; }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; }
.task .next { color: var(--body); font-size: 13px; }
.task select { min-height: 36px; font-size: 13px; padding: 4px 8px; }
.task .owner-none { color: var(--warn); font-weight: 800; }
.tasks-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin: 28px 0 14px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid #e7e9e4; font-size: 14px; }
.timeline .d { font-weight: 800; color: var(--gold-text); }
.timeline li.past .d { color: var(--muted); }
.role-row { display: grid; grid-template-columns: 1fr 160px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #e7e9e4; font-size: 14px; }
.role-row select { min-height: 38px; font-size: 14px; padding: 6px 8px; }
.decision { border-top: 1px solid #e7e9e4; padding: 10px 0; font-size: 14px; }
.decision b { display: block; }
.decision span { color: var(--muted); font-size: 13px; }
details.add { margin-top: 10px; }
details.add summary { cursor: pointer; font-weight: 800; color: var(--green); padding: 8px 0; }
details.add form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.add-task { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.add-task .field { font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b5a8; padding: 36px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a, .site-footer button { color: #e9e6dd; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px; border-left: 4px solid var(--gold); font-weight: 700; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roster-layout, .find-layout { grid-template-columns: minmax(0, 1fr); }
  .detail, .sticky-side { position: static; }
  .add-task { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .wrap, .two, .share-grid, .three { grid-template-columns: minmax(0, 1fr); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slats { max-width: 300px; }
  .site-header { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .fields, .roles, .add-task { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yb-body { padding: 24px 18px; }
  .yb-head h2 { font-size: 34px; }
  .nav { gap: 4px 14px; font-size: 14px; }
}

/* ---------- Photos, profiles and invites ---------- */
.portrait { overflow: visible; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.yb-card .portrait { aspect-ratio: 356 / 456; }
.portrait .ph { position: absolute; bottom: 6px; left: 6px; right: 6px; line-height: 1.3; text-align: center; font-size: 11px; color: #5d635e; }
.then-now { display: flex; gap: 16px; align-items: flex-start; }
.then-now figure { margin: 0; flex: 0 1 140px; }
.then-now .portrait { aspect-ratio: 356 / 456; box-shadow: 5px 5px 0 #fff, 5px 5px 0 1px #b9bdb6; }
.then-now .avatar { width: 56px; height: 56px; font-size: 20px; }
.then-now figcaption { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.then-now.big figure { flex-basis: 180px; }
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px 22px; }
.profile-card { background: #fff; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.profile-card .caption { margin: 14px 0 0; text-align: left; border: 0; padding: 0; }
.profile-card .sub { font-size: 14px; color: var(--muted); }
.blurb { margin: 8px 0 0; font-size: 15px; color: var(--body); white-space: pre-line; text-align: left; }
.invite-banner { display: flex; gap: 16px; align-items: center; background: #fbf8f1; border: 1px solid var(--gold); padding: 14px 16px; font-size: 16px; }
.invite-banner img { width: 84px; height: 108px; object-fit: cover; border: 1px solid var(--line-strong); flex: none; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 560px) { .then-now figure { flex-basis: 120px; } .invite-banner { flex-direction: column; align-items: flex-start; } }

/* Class of '08 Planners */
.planners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.planners .portrait { aspect-ratio: 356 / 456; }
.roles-head { font-family: var(--serif); font-size: 24px; margin: 48px 0 0; }
@media (max-width: 900px) { .planners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-panel { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.contact-panel h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; }
.contact-panel p { margin: 0; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form > .field:nth-of-type(n+3), .contact-form .alert, .contact-form .ts-slot { grid-column: 1 / -1; }
.contact-form button { justify-self: start; }
@media (max-width: 860px) { .contact-panel, .contact-form { grid-template-columns: minmax(0, 1fr); } }
/* Current photo with the 2008 yearbook photo tucked in the bottom-right corner */
.portrait .inset { position: absolute; right: -8px; bottom: -8px; width: 36%; aspect-ratio: 356 / 456; border: 3px solid #fff; outline: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); background: #dde1db; overflow: hidden; z-index: 1; }
.portrait .inset img { object-position: center 25%; }
.then-now .portrait .inset { border-width: 2px; }
.photo-hint { margin: 0; font-size: 14px; color: var(--muted); max-width: 260px; align-self: center; }
/* Photo crop & zoom */
.crop-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 21, .72); display: grid; place-items: center; padding: 16px; }
.crop-box { background: #fff; border: 1px solid var(--line-strong); padding: 20px; width: min(380px, 100%); max-height: 100%; overflow: auto; }
.crop-box h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; }
.crop-box p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.crop-frame { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 356 / 456; overflow: hidden; background: #1e2120; cursor: grab; touch-action: none; user-select: none; outline: 3px solid var(--gold, #c9a86e); outline-offset: -3px; }
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 14px; font-weight: 700; }
.crop-zoom input { flex: 1; }

/* First sign-in walkthrough */
.wizard-steps { list-style: none; display: flex; gap: 22px; padding: 0; margin: 20px 0 0; font-size: 14px; font-weight: 700; color: #b9b6ad; }
.wizard-steps li { display: flex; align-items: center; gap: 8px; }
.wizard-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; font-size: 13px; }
.wizard-steps li[aria-current="step"] { color: var(--gold-light); }
.wizard-steps li[aria-current="step"] span { background: var(--gold-light); border-color: var(--gold-light); color: #1e2120; }
.wizard-steps li.done { color: #d7d4cb; }
.welcome-grid { align-items: start; }
.welcome-grid .share-box { margin-top: 0; }

/* Find page: your outreach list */
.outreach-panel { border: 2px solid var(--gold); background: #fffaf0; box-shadow: 6px 6px 0 #f1e6cf; }
.outreach-panel .eyebrow { color: var(--gold); margin: 0 0 4px; }
.outreach-panel h2 { margin-top: 0; }
.outreach-panel .mine { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
.outreach-panel .mine li { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line-strong); }
.outreach-panel .mine li.new { border-color: var(--gold); }
.outreach-panel .mine-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.outreach-panel .pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1ec; color: var(--green); white-space: nowrap; }
.outreach-panel .copy-row { margin-top: 8px; }
.outreach-panel.flash { animation: outreach-flash 2.4s ease-out; }
@keyframes outreach-flash { 0%, 30% { box-shadow: 0 0 0 6px rgba(201, 168, 110, .55), 6px 6px 0 #f1e6cf; } 100% { box-shadow: 6px 6px 0 #f1e6cf; } }
@media (prefers-reduced-motion: reduce) { .outreach-panel.flash { animation: none; } }
.kpi-btn { font: inherit; text-align: left; cursor: pointer; color: inherit; }
.kpi-btn:hover, .kpi-btn[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.outreach-panel .pill { min-height: 0; border: 0; line-height: 1.4; cursor: default; flex: none; }
.outreach-panel .mine-head strong { min-width: 0; }

/* Yearbook matches (suggested classmates) */
.match-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.match-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; background: #fff; border: 1px solid var(--line-strong); }
.match-row img { width: 44px; height: 56px; object-fit: cover; object-position: center 25%; display: block; }
.match-row .avatar { width: 44px; height: 44px; font-size: 15px; }
.match-row .copy-row { grid-column: 1 / -1; }
.match-row .sub { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .match-row { grid-template-columns: 44px minmax(0, 1fr); } .match-act { grid-column: 2; } }

/* Classmates page: equal-width cards, blurb clamped to four lines, full view in a modal */
.blurb.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; line-height: 1.5; max-height: 6em; }
.see-more { align-self: flex-start; margin-top: 6px; font-size: 14px; font-weight: 700; }
.see-more[hidden] { display: none; }
.profile-modal { position: relative; background: #fff; border: 1px solid var(--line-strong); padding: 24px; width: min(940px, 100%); max-height: 100%; overflow: auto; }
.profile-modal h2 { margin: 0 0 2px; font-family: var(--serif); font-size: 26px; padding-right: 32px; }
.profile-modal .sub { color: var(--muted); font-size: 15px; }
.profile-modal .blurb { font-size: 16px; line-height: 1.6; margin-top: 14px; }
.profile-modal-body { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-modal-body .then-now figure { flex-basis: 380px; }
.profile-modal-body .portrait .inset { border-width: 3px; }
.profile-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.profile-close:hover { color: var(--ink, #222); }
.profile-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .profile-modal { padding: 18px; }
  .profile-modal-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .profile-modal-body .then-now figure { flex-basis: min(300px, 100%); }
}
.profile-nav { position: sticky; bottom: -24px; background: #fff; margin-bottom: -24px; padding-bottom: 16px; }
@media (max-width: 560px) { .profile-nav { bottom: -18px; margin-bottom: -18px; } }
/* Review queue: suggested yearbook links */
.link-suggest { display: grid; gap: 8px; margin: 10px 0 4px; padding: 10px 12px; background: #fbf8f1; border: 1px solid var(--gold); }
.link-suggest-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-suggest-row .sub { font-size: 13px; color: var(--muted); }
.link-typed { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.link-typed .field { flex: 1 1 240px; margin: 0; }
/* Organizer: emails sent */
.email-log { display: grid; gap: 0; margin-top: 10px; }
.email-row { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.email-row .sub { font-size: 13px; color: var(--muted); }
.email-row.failed strong { color: #8a4b00; }

/* Planning committee */
.org-mark { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; line-height: 1; }
.org-star { color: var(--gold); font-size: 17px; text-shadow: 0 1px 1px rgba(122, 92, 44, .3); }
.org-word { color: var(--gold-light); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.then-now figure { position: relative; }
.photo-corner { position: absolute; left: -8px; top: -8px; z-index: 2; background: #fff; padding: 5px 7px 4px; outline: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.photo-corner .org-mark { flex-direction: column; gap: 2px; }
.photo-corner .org-star { font-size: 20px; }
.photo-corner .org-word { font-size: 9px; }
.panel.committee { margin-top: 36px; }
.committee-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; }
.committee-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #e7e9e4; font-size: 14px; }
.committee-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.committee-add .field { flex: 1 1 260px; margin: 0; }
.committee-list li > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Whole profile card opens the full profile */
.profile-card[data-action] { cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.profile-card[data-action]:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.profile-card[data-action]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.photo-corner .org-mark[role="img"] { padding: 1px 0; }
.profile-modal .photo-corner { left: -10px; top: -10px; padding: 7px 10px 6px; }
.profile-modal .photo-corner .org-star { font-size: 26px; }
.profile-modal .photo-corner .org-word { font-size: 11px; }
.profile-close { z-index: 3; background: rgba(255, 255, 255, .92); border-radius: 50%; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }

/* Share-your-details asks */
.missing-line { font-style: italic; }
.ask-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ask-box > .sub { margin: 0 0 10px; }
.ask-box .ask-who { margin: 8px 0 0; font-size: 14px; }
.profile-share { margin-top: 18px; }
/* Claimed profiles on Find: shared ones open the Classmates profile, private ones are inert. */
a.yb-link { color: inherit; text-decoration: none; cursor: pointer; }
a.yb-link:hover .who, a.yb-link:focus-visible .who { text-decoration: underline; }
a.yb-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.yb-private { opacity: .85; }
.yb-card .who a { color: inherit; text-decoration: none; }
.yb-card .who a:hover, .yb-card .who a:focus-visible { text-decoration: underline; }
.yb-click { cursor: pointer; }
.yb-click:hover .who a { text-decoration: underline; }
.yb-click:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Planning polls ---------- */
.poll-page { padding: 28px 24px 64px; max-width: 860px; }
.poll-progress { margin: 0 0 18px; font-size: 16px; color: var(--body); }
.poll { margin-bottom: 18px; }
.poll-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.poll-head h2 { margin: 0; }
.poll-tools { display: flex; gap: 4px; align-items: center; }
.poll-tools .btn-link[disabled] { opacity: .3; cursor: default; }
.poll-tools select { min-height: 40px; }
.poll .sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.poll .panel form, .poll form { gap: 14px; }
.poll-form fieldset { border: 0; padding: 0; margin: 4px 0 0; }
.poll-lead { margin: 6px 0 4px !important; font-size: 15px; }
.poll-swing { background: var(--amber-bg); color: var(--amber) !important; padding: 8px 12px; border-radius: 3px; }
.poll-results { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.poll-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 4px; }
.poll-n { font-weight: 800; white-space: nowrap; }
.poll-n .sub { font-weight: 400; margin: 0; }
.bar { display: flex; height: 12px; background: #eceeea; border-radius: 2px; overflow: hidden; }
.seg { display: block; height: 100%; }
.seg-yes { background: var(--green); }
.seg-maybe { background: var(--gold); }
.seg-other { background: var(--line-strong); }
.poll-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0 !important; font-size: 13px !important; }
.poll-legend span { display: inline-flex; align-items: center; gap: 6px; }
.poll-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.poll-draft-opts { margin: 8px 0 0; padding-left: 20px; color: var(--body); font-size: 15px; }
.poll-comments { margin-top: 14px; }
.poll-comments summary, .poll-admin details.add summary { cursor: pointer; font-weight: 700; color: var(--green); }
.poll-comments ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.poll-comments li { border-left: 3px solid var(--line); padding-left: 12px; }
.poll-comments li p { margin: 0 0 2px; }
.poll-admin details.add { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.poll-admin details.add form { margin-top: 12px; }
@media (max-width: 560px) { .poll-page { padding: 20px 16px 48px; } .poll-tools { width: 100%; } .poll-tools select { flex: 1; } }
.poll-close { margin: 0 0 8px !important; font-size: 14px !important; font-weight: 700; color: var(--gold-text) !important; }
.poll-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 4px; font-size: 14px; color: var(--green-dark); }
.poll-announce { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--amber-bg); color: var(--amber); border: 1px solid #ecd9a8; border-radius: 4px; padding: 12px 16px; margin: 0 0 18px; }
