/* CPCA Alumni Network — field green, harvest gold, warm paper */
:root {
  --green-900: #0c3324; --green-800: #0f3d2e; --green-600: #1f7a4d; --green-100: #e3f1e8;
  --gold: #c9a227; --gold-soft: #f6edcf;
  --paper: #faf8f2; --card: #ffffff; --ink: #14231c; --muted: #5d6b63; --line: #e4e0d4;
  --danger: #a33b2a; --radius: 14px; --shadow: 0 1px 2px rgba(12,51,36,.06), 0 8px 24px rgba(12,51,36,.07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); } h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; } a { color: var(--green-600); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
[hidden] { display: none !important; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250,248,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin-right: auto; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--green-800); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; } img.brand-mark { display: block; background: none; }
.nav a.link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a.link:hover, .nav a.link.active { border-color: var(--gold); }
@media (max-width: 640px) { .nav .wrap { gap: 12px; } .brand span.long { display: none; } .nav a.link.opt { display: none; } }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-1px); } .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--green-800); color: #fff; } .btn-primary:hover { background: var(--green-900); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #2a2205; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); } .btn-ghost:hover { border-color: var(--green-600); }
.btn-danger { background: transparent; border-color: #e6c5bf; color: var(--danger); }
.btn-sm { padding: 6px 14px; font-size: .85rem; } .btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: .85rem; margin: 0 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { width: auto; margin-right: 8px; }
.field { margin-bottom: 16px; } .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(201,162,39,.22), transparent 60%), linear-gradient(160deg, var(--green-900), var(--green-800) 55%, #14553c); color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -5% -1px -5%; height: 60px; background: var(--paper); border-radius: 100% 100% 0 0 / 100% 100% 0 0; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; max-width: 620px; color: rgba(255,255,255,.86); margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -34px; position: relative; z-index: 2; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--green-800); line-height: 1.1; } .stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 16px; } .stat b { font-size: 1.45rem; white-space: nowrap; } .hero { padding: 56px 0 84px; } }
section.block { padding: 64px 0; } .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } @media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: #6b5408; font-weight: 700; display: grid; place-items: center; margin-bottom: 12px; }

/* Cards & directory */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd9d1; }
.card-top { display: flex; gap: 14px; align-items: center; } .card h3 { margin: 0; font-size: 1.08rem; }
.card .headline { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 600 1.1rem var(--serif); color: #fff; background: var(--green-600); object-fit: cover; }
.avatar.lg { width: 120px; height: 120px; font-size: 2.3rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); }
.chip.gold { background: var(--gold-soft); color: #6b5408; } .chip.grey { background: #efede6; color: var(--muted); } .chip.warn { background: #fbe9e5; color: var(--danger); }
.toolbar { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr; gap: 12px; margin-bottom: 22px; } @media (max-width: 760px) { .toolbar { grid-template-columns: 1fr 1fr; } .toolbar .grow { grid-column: 1 / -1; } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Profile */
.profile-head { background: linear-gradient(160deg, var(--green-900), #14553c); height: 150px; }
.profile-main { margin-top: -60px; display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; padding-bottom: 64px; } @media (max-width: 860px) { .profile-main { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; } .panel h2 { font-size: 1.25rem; }
.item { padding: 14px 0; border-top: 1px solid var(--line); } .item:first-of-type { border-top: 0; padding-top: 0; } .item h3 { margin: 0 0 2px; font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.item-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.kv { display: flex; gap: 10px; padding: 8px 0; font-size: .93rem; align-items: baseline; } .kv span:first-child { color: var(--muted); min-width: 84px; font-size: .82rem; } .kv a { word-break: break-all; }
.locked { background: var(--gold-soft); border-radius: 10px; padding: 14px; font-size: .9rem; color: #5a4706; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Forms pages, banners, toast */
.narrow { max-width: 460px; margin: 56px auto; } .mid { max-width: 820px; margin: 40px auto 64px; }
.banner { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-size: .93rem; border: 1px solid; }
.banner.info { background: var(--green-100); border-color: #c4dfcf; color: var(--green-900); } .banner.warn { background: var(--gold-soft); border-color: #e9d99b; color: #5a4706; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 18px 0; } .divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; } .tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 .88rem var(--sans); cursor: pointer; color: var(--muted); } .tab.active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } @media (max-width: 900px) { .social-grid { grid-template-columns: 1fr; } }
.social-card { margin: 0; } .social-frame { min-height: 120px; display: grid; place-content: center; text-align: center; background: var(--paper); border-radius: 10px; padding: 14px; }
.social-frame:has(iframe) { padding: 0; display: block; } .social-frame iframe { width: 100%; height: 420px; border: 0; border-radius: 10px; display: block; background: #fff; }
.invite { background: linear-gradient(135deg, var(--green-100), var(--gold-soft)); border-color: #d9e3c8; }
.timeline { margin-top: 18px; border-left: 2px solid var(--gold); padding-left: 20px; } .tl-row { position: relative; padding: 0 0 18px; } .tl-row:last-child { padding-bottom: 0; }
.tl-row::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.tl-when { font-family: var(--serif); font-weight: 600; color: var(--green-800); } .tl-what { font-size: .93rem; color: var(--muted); }
.hero-photo { background: linear-gradient(160deg, rgba(12,51,36,.93), rgba(15,61,46,.84) 55%, rgba(20,85,60,.78)), url(../img/cpca-building.jpg) center 35% / cover no-repeat; }
.college-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.college-teaser:hover { box-shadow: var(--shadow); transform: translateY(-2px); } .college-teaser img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.college-teaser > div { padding: 28px; align-self: center; } .college-teaser .eyebrow { color: #8a6d10; margin-bottom: 10px; } .college-teaser h2 { font-size: 1.5rem; }
@media (max-width: 760px) { .college-teaser { grid-template-columns: 1fr; } }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 50; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.err { background: var(--danger); }
.preview-bar { background: var(--gold-soft); color: #5a4706; font-size: .85rem; text-align: center; padding: 8px 16px; border-bottom: 1px solid #e9d99b; }
footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 40px 0; font-size: .88rem; margin-top: 40px; } footer a { color: var(--gold); } footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--green-600); border-radius: 50%; animation: spin .8s linear infinite; margin: 80px auto; } @keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
