/* Crown BJJ Journal (2026-10-14). Same Crown theme as /crowncleaning: black, Crown orange
   #f94c00, Archivo headings, Inter body. */
:root { color-scheme:dark;
  --bg:#0a0a0a; --card:#151515; --card2:#1d1d1d; --ink:#f4f4f4; --muted:#9a9a9a; --line:#2a2a2a;
  --orange:#f94c00; --orange-hi:#ff6a24; --orange-dim:rgba(249,76,0,.14); --gold:#bb9e49;
  --green:#2fbf71; --red:#ff4d42; --amber:#f5a524; --r:16px;
  --head:"Archivo", Impact, "Arial Narrow", sans-serif; --body:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.45 var(--body); }
body { padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
.hidden { display:none !important; }
.muted { color:var(--muted); } .small { font-size:13px; } .center { text-align:center; padding:40px 0; }
h1, h2, h3 { font-family:var(--head); letter-spacing:.01em; }
h1 { font-size:32px; font-weight:900; margin:4px 0 4px; text-transform:uppercase; line-height:1.02; }
h2 { font-size:22px; font-weight:900; margin:0; text-transform:uppercase; }
h3 { font-size:15px; font-weight:800; margin:18px 0 8px; text-transform:uppercase; letter-spacing:.06em; }
a { color:var(--orange-hi); }
.eyebrow { font:700 12px/1 var(--body); letter-spacing:.16em; text-transform:uppercase; color:var(--orange); margin-bottom:6px; }
button { font:inherit; border:0; border-radius:12px; padding:12px 16px; cursor:pointer; color:inherit; background:var(--card2); }
button:disabled { opacity:.4; cursor:default; }
button.primary { background:var(--orange); color:#fff; font-weight:700; letter-spacing:.02em; }
button.primary:active { background:var(--orange-hi); }
button.ghost { background:transparent; padding:8px 10px; color:var(--orange); }
button.small { padding:7px 11px; font-size:14px; }
button.block { width:100%; }
input, textarea, select { font:inherit; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:var(--card2); color:var(--ink); width:100%; }
textarea { min-height:110px; resize:vertical; }
input:focus, textarea:focus, select:focus { outline:2px solid var(--orange); outline-offset:0; border-color:transparent; }
input[type=checkbox], input[type=radio] { width:auto; transform:scale(1.25); margin-right:8px; accent-color:var(--orange); }
main { max-width:720px; margin:0 auto; padding:14px; }

header { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:10px; padding:calc(8px + env(safe-area-inset-top)) 14px 8px;
  background:rgba(10,10,10,.92); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.logo-sm { width:34px; height:34px; border-radius:50%; border:2px solid var(--orange); }
.who { flex:1; display:flex; flex-direction:column; line-height:1.15; } .who b { font-family:var(--head); font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.who span { font-size:11px; color:var(--orange); text-transform:uppercase; letter-spacing:.12em; font-weight:700; }

nav#tabs { position:fixed; left:0; right:0; bottom:0; z-index:5; display:flex; background:rgba(10,10,10,.96); border-top:1px solid var(--line);
  padding:6px 6px calc(6px + env(safe-area-inset-bottom)); }
nav#tabs button { flex:1; background:transparent; color:#777; display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 0; font-size:20px; filter:grayscale(1); }
nav#tabs button span { font-size:11px; font-weight:600; letter-spacing:.04em; } nav#tabs button.on { color:#fff; filter:none; } nav#tabs button.on span { color:var(--orange); }

.hero { margin:-14px -14px 4px; color:#fff;
  background:linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.78) 60%, var(--bg) 100%), url(img/hero-mats.jpg) center 35%/cover; }
.hero-in { max-width:720px; margin:0 auto; padding:26px 16px 16px; }
.hero-row { display:flex; align-items:flex-start; gap:4px; } .hero-row > div { flex:1; }
.arrow { font-size:30px; color:#fff !important; padding:2px 10px !important; }
.hero .meta { color:#ddd; font-size:14px; }
.quote { border-left:3px solid var(--orange); padding:4px 0 4px 12px; margin:12px 0 0; color:#eee; font-style:italic; }

.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; margin-top:12px; }
.card.hl { border-color:rgba(249,76,0,.5); background:linear-gradient(135deg, rgba(249,76,0,.13), var(--card) 60%); }
.sec { margin-top:22px; }
.sec-h { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:6px; padding-left:12px; border-left:4px solid var(--orange); }
.sec-sub { display:block; font-size:13px; color:var(--muted); margin-top:2px; font-family:var(--body); text-transform:none; font-weight:400; }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.row.between { justify-content:space-between; }
.grow { flex:1; }

.tech { padding:14px 16px; }
.tech-h { display:flex; gap:8px; align-items:baseline; justify-content:space-between; }
.tech-h b { font:800 18px/1.2 var(--head); text-transform:uppercase; letter-spacing:.02em; }
.star { color:var(--gold); font-size:13px; font-weight:700; white-space:nowrap; }
.goal { font-size:13px; color:#cfcfcf; margin-top:6px; } .goal b { color:var(--orange-hi); font-weight:700; }
.ladder { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; margin-top:10px; }
.ladder button { padding:8px 2px; border:1px solid var(--line); background:var(--card2); font-size:12px; line-height:1.15; display:flex; flex-direction:column; align-items:center; gap:2px; }
.ladder button b { font:900 20px/1 var(--head); }
.ladder button.on { background:var(--orange); border-color:var(--orange); color:#fff; }
.ladder button.best:not(.on) { border-color:rgba(249,76,0,.6); }
.vid { display:inline-block; margin-top:8px; font-size:13px; }

.q-prompt { font-size:18px; font-weight:600; margin:4px 0 10px; }
.q-answer { background:var(--card2); border-radius:10px; padding:10px 12px; margin:8px 0; }
.qlist { margin:8px 0 0; padding-left:18px; } .qlist li { margin:6px 0; }

.note { border-top:1px solid var(--line); padding:10px 0; }
.note:first-child { border-top:0; }
.note .body { white-space:pre-wrap; margin:4px 0; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.chip { font-size:12px; padding:5px 10px; border-radius:99px; background:#262626; color:#ccc; border:1px solid transparent; }
.chip.on { background:var(--orange-dim); color:var(--orange-hi); border-color:rgba(249,76,0,.5); }
.clip video { width:100%; max-height:360px; border-radius:12px; background:#000; margin-top:6px; }
.clip { border-top:1px solid var(--line); padding:10px 0; } .clip:first-child { border-top:0; }
.progress { height:8px; background:#262626; border-radius:99px; overflow:hidden; margin:8px 0; }
.progress span { display:block; height:100%; width:0; background:var(--orange); transition:width .2s; }

.pill { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:4px 10px; border-radius:99px; background:#262626; color:#bbb; white-space:nowrap; }
.pill.green { background:rgba(47,191,113,.15); color:var(--green); } .pill.red { background:rgba(255,77,66,.15); color:var(--red); }
.pill.orange { background:var(--orange-dim); color:var(--orange-hi); }
.banner { background:var(--orange-dim); border:1px solid rgba(249,76,0,.35); color:#ffd9c7; padding:12px 14px; border-radius:var(--r); margin:10px 0; font-size:14px; }
.err { color:var(--red); min-height:20px; margin:6px 0; font-size:14px; }
.opt { display:flex; align-items:flex-start; gap:6px; padding:12px; border:1px solid var(--line); border-radius:12px; margin:8px 0; background:var(--card2); cursor:pointer; }
.opt input { margin-top:4px; } .opt small { display:block; color:var(--muted); }
.opt:has(input:checked) { border-color:var(--orange); background:var(--orange-dim); }

.login-hero { margin:-14px -14px 18px; padding:46px 20px 30px; text-align:center;
  background:linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.75) 65%, var(--bg) 100%), url(img/hero-mats.jpg) center 30%/cover; }
.logo { width:96px; height:96px; border-radius:50%; border:3px solid var(--orange); margin-bottom:12px; }
.code-input { font-size:28px; letter-spacing:.4em; text-align:center; }

.bars { display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; margin-top:8px; text-align:center; font-size:12px; color:var(--muted); }
.bars div { background:var(--card2); border-radius:8px; padding:6px 0; } .bars b { display:block; font:900 18px/1.1 var(--head); color:var(--ink); }
.bars div.top b { color:var(--orange-hi); }
table.list { width:100%; border-collapse:collapse; font-size:14px; }
table.list td, table.list th { padding:8px 6px; border-top:1px solid var(--line); text-align:left; vertical-align:top; }
table.list th { color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.06em; border-top:0; }
.off-week { opacity:.75; } .off-week td:first-child { color:var(--amber); }
pre.txt { white-space:pre-wrap; font:13px/1.4 var(--body); background:var(--card2); padding:8px 10px; border-radius:8px; margin:4px 0; }
.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:calc(90px + env(safe-area-inset-bottom)); background:#222; border:1px solid var(--line);
  color:#fff; padding:10px 16px; border-radius:99px; z-index:9; font-size:14px; max-width:90vw; }
details summary { cursor:pointer; color:var(--orange-hi); font-size:14px; margin-top:6px; }

/* Coach curriculum page (#/curriculum, 2026-10-14) */
a.linkcard { display:flex; flex-direction:column; gap:4px; text-decoration:none; color:var(--ink); border-color:rgba(249,76,0,.45); }
a.linkcard b { font-family:var(--head); text-transform:uppercase; letter-spacing:.03em; color:var(--orange-hi); }
.cur-list { padding:4px 0; }
a.cur-row { display:flex; align-items:center; gap:12px; padding:12px 16px; border-top:1px solid var(--line); text-decoration:none; color:var(--ink); min-height:56px; }
a.cur-row:first-child { border-top:0; }
a.cur-row.now { background:var(--orange-dim); }
.cur-no { flex:none; width:36px; height:36px; border-radius:50%; background:var(--card2); display:flex; align-items:center; justify-content:center; font:900 16px/1 var(--head); color:var(--orange-hi); }
.cur-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.cur-main b { font-weight:700; }
.cur-badges { display:flex; flex-wrap:wrap; gap:4px; }
.cur-go { color:var(--muted); font-size:22px; }
a.arrow { text-decoration:none; display:inline-block; }
.links { margin-top:8px; display:flex; flex-direction:column; gap:4px; }
.edit-links { margin-top:10px; border-top:1px solid var(--line); padding-top:10px; }
.prep { white-space:pre-wrap; word-break:break-word; margin-top:4px; }
.savebar { position:sticky; bottom:calc(76px + env(safe-area-inset-bottom)); display:flex; gap:8px; margin:16px -4px 0; padding:10px 4px;
  background:rgba(10,10,10,.94); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-top:1px solid var(--line); z-index:4; }

/* Round intentions (2026-10-15): card on This Week, bottom sheets, 56 px targets for sweaty thumbs */
.icard { border-color:rgba(249,76,0,.5); background:linear-gradient(135deg, rgba(249,76,0,.10), var(--card) 60%); }
.icard.achieved { border-color:rgba(47,191,113,.55); background:linear-gradient(135deg, rgba(47,191,113,.12), var(--card) 60%); }
.icard.achieved .eyebrow { color:var(--green); }
.i-text { font:800 19px/1.3 var(--body); margin:8px 0 6px; }
.i-text.small-i { font-size:16px; font-weight:700; margin:4px 30px 4px 0; }
.i-dots { display:flex; align-items:center; gap:6px; margin:4px 0 10px; }
.dot { display:inline-block; width:14px; height:14px; border-radius:50%; border:2px solid var(--green); }
.dot.hit { background:var(--green); } .dot.empty { border-color:#444; border-style:dashed; }
.i-dots .small { margin-left:6px; }
.i-btns { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
button.zone { min-height:56px; font-weight:800; font-size:16px; border:1px solid transparent; }
button.zone.g { background:rgba(47,191,113,.16); color:var(--green); border-color:rgba(47,191,113,.5); }
button.zone.y { background:rgba(245,165,36,.14); color:var(--amber); border-color:rgba(245,165,36,.5); }
button.zone.r { min-height:48px; background:rgba(255,77,66,.10); color:var(--red); border-color:rgba(255,77,66,.35); font-size:14px; padding:10px 16px; }
button.tall { min-height:56px; }
.i-today { margin-top:8px; }
.i-stuck { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.i-parked { border-top:1px solid var(--line); padding:8px 0; } .i-parked:first-of-type { border-top:0; }
.i-chart { display:flex; align-items:flex-end; gap:3px; flex-wrap:wrap; min-height:44px; margin:10px 0 6px; }
.i-chart .bar { display:inline-block; width:9px; border-radius:3px 3px 0 0; }
.i-chart .bar.g, .lg { background:var(--green); color:var(--green); } .i-chart .bar.y, .ly { background:var(--amber); color:var(--amber); }
.lg, .ly { background:none !important; }

body.sheet-open { overflow:hidden; }
.sheet-bg { position:fixed; inset:0; z-index:20; background:rgba(0,0,0,.6); display:flex; align-items:flex-end; justify-content:center; }
.sheet { position:relative; width:100%; max-width:720px; max-height:88vh; overflow-y:auto; overscroll-behavior:contain;
  background:var(--card); border:1px solid var(--line); border-bottom:0; border-radius:20px 20px 0 0;
  padding:18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-x { position:absolute; top:8px; right:8px; font-size:18px; color:var(--muted) !important; min-width:44px; min-height:44px; }
.scale { display:flex; flex-direction:column; gap:8px; }
.scale button { min-height:56px; display:flex; align-items:center; gap:14px; text-align:left; border:1px solid var(--line); }
.scale button b { font:900 26px/1 var(--head); color:var(--orange-hi); width:22px; text-align:center; }
.scale button span { font-weight:700; } .scale button small { display:block; font-weight:400; color:var(--muted); font-size:12px; }
.scale button:active { background:var(--orange-dim); border-color:var(--orange); }
.blockers { display:flex; flex-direction:column; gap:8px; margin-bottom:6px; }
.blockers button { min-height:56px; border:1px solid var(--line); font-weight:600; }
.suggs { display:flex; flex-direction:column; gap:8px; }
.sugg { min-height:56px; text-align:left; border:1px solid var(--line); line-height:1.35; display:flex; flex-direction:column; gap:2px; }
.sugg.on { border-color:var(--orange); background:var(--orange-dim); }
.i-hint { color:var(--amber); margin-top:6px; }
.menu { display:flex; flex-direction:column; gap:8px; margin:10px 0; }
.menu button { min-height:56px; text-align:left; border:1px solid var(--line); font-weight:700; }
.menu button small { display:block; font-weight:400; color:var(--muted); font-size:12px; }
.toast button.undo { background:transparent; color:var(--orange-hi); font-weight:800; padding:4px 6px 4px 10px; }

/* P1b (2026-10-15): ladder blocker chips, reflection intention line */
.lblock { margin-top:8px; } .lblock .chips { margin:4px 0 0; } .lblock .chip { min-height:36px; font-size:13px; }
.rf-int { background:var(--card2); border-radius:10px; padding:8px 10px; margin:0 0 10px; }
