/* public/shell.css — Campus Climb's own look on top of the kit (kit.css,
   a copy of the PetrOS kit: never edit it, change it here). The tint, the
   shell (tab bar on phones, sidebar from 900 px), Home, More and Account,
   and the front page. All kit tokens and .os-* parts; the kit lets an app
   set --tint and --on-tint and nothing else of its own. */

/* ---------- The tint: indigo, for the climb ---------- */

:root[data-app="campus-climb"] { --tint: #4F46E5; --on-tint: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root[data-app="campus-climb"] { --tint: #8E8BFF; --on-tint: #000000; }
}

/* ---------- The shell ---------- */

.side { display: none; }
.content { min-width: 0; }
#main { padding-bottom: calc(var(--tabbar-space) + 12px); }
#main:focus { outline: none; }
.tabs-bar .os-tab { min-width: 0; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 80px 0; color: var(--label-2); }
#print-root { display: none; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.brand img { flex: none; width: 30px; height: 30px; border-radius: 7px; }
.brand span { font: var(--t-headline); letter-spacing: var(--ls-headline); white-space: nowrap; }

@media (min-width: 900px) {
  :root { --side-w: 280px; }
  .tabs-bar { display: none; }
  .phone-only { display: none !important; }
  .content { margin-left: calc(var(--side-w) + 8px); }
  #main { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .side {
    box-sizing: border-box;
    position: fixed;
    z-index: 70;
    top: 8px;
    bottom: 8px;
    left: max(8px, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    width: var(--side-w);
    padding: calc(8px + env(safe-area-inset-top)) 10px 14px;
    border-radius: var(--radius-lg);
    background: var(--grouped-2);
    box-shadow: var(--glass-shadow);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .side-bar { display: flex; align-items: center; min-height: 52px; padding: 0 8px; }
  .side .os-sidebar { flex: 1; }
  .side-account { margin-top: 12px; }
  .side-account .os-sidebar-item img { border-radius: 50%; }
}

.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.os-cell :where(svg) { flex: none; width: 20px; height: 20px; }

/* A Google profile photo where a symbol would go. */
.avatar { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.avatar.large { width: 64px; height: 64px; }

/* ---------- Home ---------- */

.home-cards { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 700px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-card { display: grid; gap: 6px; align-content: start; color: inherit; text-decoration: none; }
.home-card-head { display: flex; align-items: center; gap: 10px; }
.home-card-head svg { width: 22px; height: 22px; color: var(--tint); }
.home-card-head h2 { margin: 0; font: var(--t-headline); letter-spacing: var(--ls-headline); }
.home-card .os-stat-value { font-size: clamp(26px, 8vw, 34px); overflow-wrap: anywhere; }
.home-card p { margin: 0; font: var(--t-footnote); letter-spacing: var(--ls-footnote); color: var(--label-2); }
.home-card .os-button { justify-self: start; margin-top: 8px; }

/* ---------- Account ---------- */

.account-head { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.account-head h2 { margin: 0; font: var(--t-title-2); letter-spacing: var(--ls-title-2); }
.account-head p { margin: 2px 0 0; color: var(--label-2); overflow-wrap: anywhere; }
.account-initial {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--on-tint);
  font: var(--t-title-1);
}

/* ---------- The front page (index.html) ---------- */

.welcome { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
}
.welcome main { flex: 1; width: min(1080px, 100% - 32px); margin: 0 auto; }

.hero { display: grid; gap: 20px; justify-items: start; padding: clamp(32px, 9vw, 96px) 0 clamp(32px, 7vw, 72px); }
.hero h1 {
  margin: 0;
  max-width: 14ch;
  font: var(--t-large-title);
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--tint); }
.hero p { margin: 0; max-width: 46ch; font: var(--t-title-3); font-weight: 400; letter-spacing: var(--ls-title-3); color: var(--label-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-note { font: var(--t-footnote); letter-spacing: var(--ls-footnote); color: var(--label-2); }

.google-button { gap: 10px; }
.google-button svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: #FFFFFF; }

.signin-note { max-width: 560px; }

.features { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 800px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { display: grid; gap: 12px; align-content: start; padding: 22px; }
.feature-head { display: flex; align-items: center; gap: 12px; }
.feature-head .os-cell-icon { width: 36px; height: 36px; border-radius: 9px; }
.feature-head .os-cell-icon svg { width: 22px; height: 22px; }
.feature h2 { margin: 0; font: var(--t-title-2); letter-spacing: var(--ls-title-2); }
.feature > p { margin: 0; color: var(--label-2); }
.feature ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.feature li { display: flex; gap: 10px; align-items: flex-start; }
.feature li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--tint); }

.steps { display: grid; gap: 16px; margin: 0 0 56px; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { display: grid; gap: 6px; align-content: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--on-tint);
  font: var(--t-headline);
}
.steps h3 { margin: 4px 0 0; font: var(--t-headline); letter-spacing: var(--ls-headline); }
.steps p { margin: 0; color: var(--label-2); }
.section-title { margin: 0 0 16px; font: var(--t-title-2); letter-spacing: var(--ls-title-2); }

.welcome-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
  padding: 20px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 0.5px solid var(--separator);
  font: var(--t-footnote);
  letter-spacing: var(--ls-footnote);
  color: var(--label-2);
}
.welcome-foot a { color: inherit; }

/* The privacy page. */
.prose { max-width: 680px; padding: 24px 0 56px; }
.prose h1 { font: var(--t-large-title); letter-spacing: var(--ls-large-title); margin: 0 0 8px; }
.prose h2 { font: var(--t-title-3); letter-spacing: var(--ls-title-3); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--label); line-height: 1.5; }
.prose a { color: var(--tint); }
