/* Target Campus: app-style pages. Phones get a top app bar and a bottom tab bar (like the CAT site);
   larger screens get a header menu. Each program keeps its colour: career indigo, placements blue, CAT orange. */
:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --ink: #141c38;
  --muted: #5d6684;
  --line: #e2e6ef;
  --navy: #2f4170;
  --career: #4352b8; --career-soft: #eceefb;
  --place: #2f6db5; --place-soft: #e6effa;
  --cat: #cf6519; --cat-soft: #fcefe3;
  --plain: #2f4170; --plain-soft: #e9ecf3;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1222; --surface: #161d33; --ink: #e8ecf6; --muted: #a0a9c3; --line: #262f4b; --navy: #c6d2f1;
    --career: #a7b1f4; --career-soft: #232a52; --place: #82b2ec; --place-soft: #1a2d4a; --cat: #f2a35d; --cat-soft: #3a2614;
    --plain: #c6d2f1; --plain-soft: #222b45; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1222; --surface: #161d33; --ink: #e8ecf6; --muted: #a0a9c3; --line: #262f4b; --navy: #c6d2f1;
  --career: #a7b1f4; --career-soft: #232a52; --place: #82b2ec; --place-soft: #1a2d4a; --cat: #f2a35d; --cat-soft: #3a2614;
  --plain: #c6d2f1; --plain-soft: #222b45; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--place); outline-offset: 2px; border-radius: 10px; }
img { max-width: 100%; height: auto; }
svg.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; margin: 0; line-height: 1.15; }
.career { --c: var(--career); --cs: var(--career-soft); }
.place { --c: var(--place); --cs: var(--place-soft); }
.cat { --c: var(--cat); --cs: var(--cat-soft); }
.plain { --c: var(--plain); --cs: var(--plain-soft); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo img { display: block; width: 140px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { background: #fff; padding: 4px 8px; border-radius: 8px; } }
:root[data-theme="dark"] .logo { background: #fff; padding: 4px 8px; border-radius: 8px; }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a { font-weight: 600; font-size: 15.5px; padding: 8px 14px; border-radius: 999px; color: var(--ink); white-space: nowrap; }
.top nav a:hover { background: var(--bg); }
.top nav a[aria-current="page"] { background: var(--plain-soft); color: var(--navy); }
.top .back, .top .title { display: none; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); }
.iconbtn:hover { background: var(--bg); }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1.2 var(--body); padding: 14px 22px; border-radius: 14px; background: var(--c, var(--navy)); color: #fff; border: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.soft) { color: #0d1222; } }
:root[data-theme="dark"] .btn:not(.soft) { color: #0d1222; }
.btn:hover { filter: brightness(1.08); }
.btn.soft { background: var(--cs, var(--plain-soft)); color: var(--c, var(--navy)); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- home ---------- */
.hello { padding: 56px 0 28px; }
.hello h1 { font-size: clamp(30px, 4.4vw, 46px); color: var(--navy); }
.hello p { margin: 10px 0 0; color: var(--muted); font-size: 18px; }
.quick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; margin-top: 22px; }
.quick::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.chip .dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.chip .dot svg.i { width: 14px; height: 14px; stroke-width: 2.2; }
.chip:hover { border-color: var(--c); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 8px 0 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--c); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
.badge { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.badge svg.i { width: 26px; height: 26px; }
.tile .who { font-size: 14px; font-weight: 700; color: var(--c); }
.tile h2 { font-size: 23px; margin-top: 2px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.tile .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--c); padding-top: 4px; }
.tile .go svg.i { width: 20px; height: 20px; }
.row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.row:hover { border-color: var(--c); }
.row .badge { width: 44px; height: 44px; border-radius: 13px; }
.row .badge svg.i { width: 22px; height: 22px; }
.row b { display: block; font-family: var(--display); font-size: 18px; }
.row small { display: block; color: var(--muted); font-size: 15px; }
.row .chev { margin-left: auto; color: var(--muted); }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 56px; }

/* ---------- sub pages ---------- */
.pagehead { padding: 44px 0 26px; }
.crumb { font-size: 14.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 4px; }
.crumb:hover { color: var(--ink); }
.crumb svg.i { width: 18px; height: 18px; }
.pagehead .badge { margin-bottom: 16px; }
.pagehead h1 { font-size: clamp(28px, 4vw, 42px); color: var(--navy); }
.pagehead p { margin: 10px 0 0; color: var(--muted); font-size: 18px; max-width: 52ch; }
.pagehead .btns { margin-top: 22px; }

.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 56px; }
.choose .tile { padding: 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.ticks svg.i { width: 20px; height: 20px; color: var(--c); stroke-width: 2.4; margin-top: 2px; }

.block { padding: 8px 0 40px; }
.block h2 { font-size: 24px; margin-bottom: 16px; color: var(--navy); }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feat .badge { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 12px; }
.feat .badge svg.i { width: 21px; height: 21px; }
.feat h3 { font-size: 18px; margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--place-soft); color: var(--place); font: 700 15px/1 var(--display); margin-bottom: 10px; }
.steps b { display: block; font-family: var(--display); font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }
.endcta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 56px; }
.endcta b { font-family: var(--display); font-size: 21px; display: block; }
.endcta span { color: var(--muted); font-size: 15.5px; }
.endcta span a { color: var(--place); font-weight: 600; }
.stickycta { display: none; }

footer { border-top: 1px solid var(--line); padding: 22px 0 32px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- phones: app layout ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .wrap { padding: 0 16px; }
  .top .wrap { height: 58px; gap: 8px; }
  .top nav { display: none; }
  .logo img { width: 118px; }
  .top .mail { margin-left: auto; }
  body.sub .top .logo { display: none; }
  body.sub .top .back { display: inline-grid; margin-left: -8px; }
  body.sub .top .title { display: block; font: 700 17px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font: 600 11.5px/1.2 var(--body); border-radius: 10px; }
  .tabbar a[aria-current="page"] { color: var(--navy); }
  .tabbar a[aria-current="page"] svg.i { stroke-width: 2.4; }

  .hello { padding: 22px 0 6px; }
  .hello h1 { font-size: 27px; }
  .hello p { font-size: 16px; margin-top: 4px; }
  .quick { margin: 16px -16px 0; padding: 2px 16px 6px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .tile { padding: 16px; flex-direction: row; align-items: center; gap: 14px; }
  .tile .badge { width: 48px; height: 48px; border-radius: 14px; }
  .tile .who, .tile .tags, .tile p { display: none; }
  .tile .txt { min-width: 0; }
  .tile h2 { font-size: 18px; margin: 0; }
  .tile .short { display: block !important; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
  .tile .go { margin: 0 0 0 auto; padding: 0; }
  .tile .go span { display: none; }
  .tile:hover { transform: none; }
  .more { grid-template-columns: 1fr; gap: 12px; padding-bottom: 28px; }
  .more .row { padding: 14px 16px; }

  .pagehead { padding: 22px 0 16px; }
  .pagehead .crumb { display: none; }
  .pagehead .badge { width: 48px; height: 48px; margin-bottom: 12px; }
  .pagehead h1 { font-size: 26px; }
  .pagehead p { font-size: 16px; }
  .pagehead .btns { display: none; }
  .choose { grid-template-columns: 1fr; gap: 12px; padding-bottom: 28px; }
  .choose .tile { flex-direction: column; align-items: stretch; padding: 20px; }
  .choose .tile .who { display: block; }
  .choose .tile p { display: none; }
  .choose .tile .go { margin: 4px 0 0; display: block; }
  .choose .tile .btn { width: 100%; }
  .choose .tile .badge { width: 44px; height: 44px; }
  .block { padding-bottom: 26px; }
  .block h2 { font-size: 20px; margin-bottom: 12px; }
  .feats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat { padding: 14px; }
  .feat .badge { width: 36px; height: 36px; margin-bottom: 8px; }
  .feat h3 { font-size: 15.5px; }
  .feat p { font-size: 13.5px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 14px 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .endcta { display: none; }
  .stickycta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 25; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .stickycta .btn { flex: 1; padding: 13px 10px; }
  body.has-sticky { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
  footer { padding-bottom: 20px; }
  footer nav { display: none; }
}
@media (min-width: 761px) { .tile .short { display: none; } }
.choose .tile .go.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
@media (max-width: 760px) { .choose .tile .go.btns { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; } .choose .tile .go.btns .btn { width: 100%; } }
