/* Yellow Bell: school-bus yellow, navy ink, chunky borders with hard shadows. Phone first; sidebar layout from 900px. */
:root { --y: #FFD21F; --n: #14213D; --r: #D6331C; --cream: #FFF4C2; --coral: #FF8A6B; --sky: #E4ECF7; --mut: #4A5A70; --ok: #1B7A3E; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 'Nunito', system-ui, sans-serif; color: var(--n); background: var(--y); }
a { color: var(--n); }
h1, h2, h3, .b { font-family: 'Baloo 2', sans-serif; }
h1 { font-size: 30px; line-height: 1.05; margin: 0; font-weight: 800; }
h2 { font-size: 20px; line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0; }

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.top { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px 'Baloo 2', sans-serif; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.sheet { flex: 1; background: #fff; border-radius: 28px 28px 0 0; border-top: 3px solid var(--n); padding: 20px 18px 110px; display: flex; flex-direction: column; gap: 12px; }
.plain { padding: 28px 24px; gap: 20px; display: flex; flex-direction: column; flex: 1; }

.card { display: block; background: #fff; border: 3px solid var(--n); border-radius: 18px; padding: 12px 14px; text-decoration: none; }
.pop { box-shadow: 5px 5px 0 var(--n); }
.cream { background: var(--cream); } .yellow { background: var(--y); } .coral { background: var(--coral); }
.navy { background: var(--n); color: #fff; } .navy a { color: #fff; }
.row { display: flex; gap: 12px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.tile { flex: none; width: 56px; text-align: center; background: var(--cream); color: var(--n); border: 3px solid var(--n); border-radius: 12px; padding: 5px 0; }
.tile small { display: block; font-size: 11px; font-weight: 800; }
.tile b { display: block; font: 800 24px/1 'Baloo 2', sans-serif; }
.tile.coral { background: var(--coral); } .tile.sky { background: var(--sky); } .tile.yellow { background: var(--y); }
.title { font: 700 19px/1.15 'Baloo 2', sans-serif; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { background: var(--y); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.tag.sky { background: var(--sky); } .tag.dark { background: var(--n); color: #fff; }
.lbl { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--mut); font-size: 13px; }
.small { font-size: 14px; }
.mono { font-weight: 800; word-break: break-all; }
.bar { height: 10px; border-radius: 5px; border: 2px solid var(--n); background: #fff; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--n); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--y); border: 3px solid var(--n); display: grid; place-items: center; font: 800 20px 'Baloo 2', sans-serif; }
ul.todo { margin: 0; padding-left: 20px; }

.btn { display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer; font: 700 20px 'Baloo 2', sans-serif; color: #fff; background: var(--r); padding: 13px 20px; border-radius: 16px; border: 3px solid var(--n); box-shadow: 0 6px 0 var(--n); }
.btn.dark { background: var(--n); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--n); box-shadow: none; }
.btn.sm { display: inline-block; width: auto; font: 800 15px 'Nunito', sans-serif; padding: 10px 16px; border-radius: 12px; min-height: 44px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 10px 0; font: inherit; font-weight: 800; color: var(--n); text-decoration: underline; cursor: pointer; min-height: 44px; }
.link.danger { color: #A3261A; }
.btn:focus-visible, .link:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #1D6FD1; outline-offset: 2px; }
input[type=email], input[type=password], select { font: inherit; font-weight: 700; color: var(--n); background: #fff; border: 3px solid var(--n); border-radius: 12px; padding: 10px 12px; min-height: 48px; width: 100%; }
form { margin: 0; }
.or { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 3px solid var(--n); }
.err { background: #FFE1DA; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--n); }
.switch { flex: none; width: 58px; height: 44px; border: 0; background: none; padding: 6px 0; cursor: pointer; }
.switch span { display: block; width: 58px; height: 32px; border-radius: 16px; background: #fff; border: 3px solid var(--n); position: relative; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--n); }
.switch[aria-pressed="true"] span { background: var(--n); }
.switch[aria-pressed="true"] span::after { left: auto; right: 3px; background: var(--y); }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; color: #26344F; }
.doc h2 { margin-top: 10px; }
.doc ul { margin: 0; padding-left: 20px; }
.doc li { margin: 4px 0; }
.hero-img { width: 100%; height: 230px; object-fit: cover; border-radius: 24px; border: 3px solid var(--n); box-shadow: 8px 8px 0 var(--n); transform: rotate(-1.5deg); }

.nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; background: #fff; border-top: 3px solid var(--n); display: flex; gap: 4px; padding: 6px 8px 10px; }
.nav a { flex: 1; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; font-size: 12px; font-weight: 800; border-radius: 14px; }
.nav a[aria-current] { background: var(--y); }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  .app.in { max-width: 1100px; display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 12px 28px; padding: 24px; align-items: start; }
  .app.in .top { grid-column: 1; padding: 0 0 8px; }
  .app.in .nav { position: static; grid-column: 1; flex-direction: column; background: none; border: 0; padding: 0; margin: 0; }
  .app.in .nav a { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 17px; padding: 12px 16px; }
  .app.in .nav a[aria-current] { background: var(--n); color: #fff; }
  .app.in .sheet { grid-column: 2; grid-row: 1 / span 2; border: 3px solid var(--n); border-radius: 28px; box-shadow: 10px 10px 0 var(--n); padding: 28px; min-height: 0; }
}
