/* Content-sized layout: no fixed card or authentication-panel height. */
:root { --paper: #f6f5ef; --ink: #243a36; --muted: #607167; --green: #214b41; --line: #dce0d5; --orange: #eab27c; --soft: #eceee5; --white: #fffef9; --page-width: 1280px; --gutter: 24px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Noto Sans SC',system-ui,sans-serif; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button,a,input { touch-action: manipulation; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 3px solid #d99a5b; outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
h1,h2,h3,p { margin: 0; }
h1,h2 { font-family: 'Noto Serif SC',Georgia,serif; font-weight: 600; line-height: 1.45; }
h3 { font-weight: 600; line-height: 1.6; }
.topbar { height: auto; max-width: var(--page-width); padding: 10px var(--gutter); margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.brandmark { font-family: Georgia,serif; font-size: 29px; line-height: 36px; text-align: center; width: 36px; height: 36px; background: var(--ink); color: var(--orange); border-radius: 5px; letter-spacing: 0; }
.topbar nav { display: flex; gap: 20px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.topbar nav>a:hover { color: #9d672e; }
.navcta { padding: 5px 12px; border: 1px solid var(--ink); border-radius: 4px; }
.inline { display: inline; margin: 0; }
.navbutton { border: 0; background: transparent; color: var(--muted); padding: 0; }
.hero { max-width: var(--page-width); margin: auto; padding: 24px var(--gutter) 0; display: block; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.hero h1 { font-size: 30px; letter-spacing: 0; margin: 0; }
.hero-desc { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 6px; }
.actions { display: flex; gap: 16px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 14px; border-radius: 5px; border: 1px solid transparent; font-size: 14px; font-weight: 500; line-height: 1.6; transition: background .15s; min-height: 40px; }
.button:hover { transform: none; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #306354; }
.secondary { border-color: var(--line); background: transparent; }
.secondary:hover { background: #ecede4; }
.outline { border-color: #67877c; color: #e7eee3; }
.full { display: flex; width: 100%; margin-top: 8px; }
.textlink { font-size: 14px; color: #3d6657; }
.hero-stats { display: block; gap: 37px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.hero-art { background: #1d3632; color: #d8e3d7; border-radius: 5px; padding: 12px 16px 0; box-shadow: none; position: relative; transform: none; max-width: 560px; margin: 0 0 12px; }
.art-label { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0; color: #c1d0c3; }
.orbital { position: relative; }
.orbital svg { width: 100%; display: block; margin: 0 auto; max-height: 220px; }
.formula { position: absolute; top: 12px; left: 14px; color: #d5d5b6; font-family: Georgia,serif; font-style: italic; font-size: 17px; }
.formula sub { font-size: 12px; }
.art-bottom { font-size: 12px; letter-spacing: 0; margin: 0 -16px; padding: 8px 16px; border-top: 1px solid #40574b; display: flex; justify-content: space-between; color: #c1d0c3; gap: 12px; }
.art-bottom span { color: var(--orange); }
.section-wrap { max-width: var(--page-width); margin: auto; padding: 24px var(--gutter); }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.section-heading h2 { font-size: 22px; margin-top: 0; }
.experiment-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.experiment-card { display: flex; flex-direction: column; padding: 14px; min-height: 0; background: var(--white); border: 1px solid var(--line); border-radius: 5px; transition: background .15s; }
.experiment-card:hover { transform: none; box-shadow: none; border-color: #809780; background: #fafcf4; }
.card-top { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-bottom: 6px; gap: 8px; }
.card-top>span:first-child { color: #9d7754; }
.experiment-card h3 { font-size: 17px; margin-bottom: 6px; }
.experiment-card p { font-size: 14px; line-height: 1.6; color: var(--muted); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tags span { font-size: 12px; color: #546c58; border: 1px solid #e3e6da; background: #f5f6ef; padding: 1px 6px; border-radius: 3px; }
.card-bottom { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eceee4; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; }
.source-band { background: none; color: var(--ink); display: flex; gap: 24px; align-items: start; padding: 16px 0 0; max-width: calc(var(--page-width) - 2 * var(--gutter)); margin: 0 auto 24px; border-radius: 0; border-top: 1px solid var(--line); }
.source-band h2 { font-size: 18px; margin: 0 0 6px; }
.source-band p:not(.eyebrow) { font-size: 14px; line-height: 1.6; color: var(--muted); }
.source-band small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
footer { max-width: var(--page-width); margin: auto; display: flex; align-items: center; gap: 16px; padding: 16px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footerbrand { font-size: 15px; color: #435c4b; font-weight: 600; }
footer>div { margin-left: auto; display: flex; gap: 16px; }
.page-heading { max-width: var(--page-width); margin: auto; padding: 20px var(--gutter) 12px; }
.page-heading h1 { font-size: 28px; margin: 0 0 6px; }
.page-heading p:not(.eyebrow) { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.catalog-layout { max-width: var(--page-width); margin: auto; display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 20px; padding: 8px var(--gutter) 24px; }
.chapter-nav { padding-top: 4px; }
.chapter-nav>.eyebrow { margin-bottom: 8px; font-size: 12px; }
.chapter-nav>a { display: flex; align-items: center; padding: 6px 8px; font-size: 13px; gap: 8px; border-radius: 5px; margin-bottom: 2px; min-height: 36px; }
.chapter-nav>a>span:last-child:not(.chapter-no) { margin-left: auto; font-size: 11px; }
.chapter-nav>a:hover { background: #ebede4; }
.chapter-nav>a.selected { background: #dfe7da; color: #2c5645; }
.chapter-no { font-size: 12px; color: var(--muted); min-width: 16px; }
.sidebar-note { margin: 14px 8px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sidebar-note strong { font-size: 13px; }
.sidebar-note p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.searchbar { display: flex; border: 1px solid var(--line); background: var(--white); border-radius: 4px; overflow: visible; }
.searchbar input { width: 100%; padding: 8px 12px; border: 0; min-width: 0; background: transparent; font-size: 15px; min-height: 42px; }
.searchbar button { padding: 8px 12px; background: transparent; border: 0; color: #64806b; white-space: nowrap; font-size: 14px; }
.results-heading { display: flex; justify-content: space-between; margin: 10px 0; color: var(--muted); font-size: 12px; gap: 12px; }
.results-heading>span:last-child { font-size: 12px; letter-spacing: 0; }
.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-wrap { max-width: var(--page-width); margin: auto; padding: 18px var(--gutter) 24px; }
.back { font-size: 13px; color: #84907d; }
.detail-header { display: block; justify-content: space-between; gap: 40px; align-items: center; padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.detail-header h1 { font-size: 30px; margin: 6px 0 8px; }
.detail-summary { font-size: 15px; max-width: 900px; color: var(--muted); line-height: 1.6; }
.detail-columns { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; padding-top: 20px; }
.detail-section { margin-bottom: 24px; }
.detail-section h2 { font-size: 21px; margin: 0 0 10px; }
.questions { list-style: none; padding: 0; margin: 0; }
.questions li { padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); font-size: 15px; position: relative; }
.questions li:before { content: '↗'; position: absolute; left: 0; color: #b08550; }
.steps>div { display: flex; gap: 12px; margin-bottom: 12px; }
.steps b { font-family: Georgia,serif; color: #9f9b77; font-size: 17px; min-width: 26px; font-weight: 400; }
.steps h3 { font-size: 15px; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.source-note { border: 1px solid var(--line); padding: 12px 14px; border-radius: 6px; background: #eef0e7; font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 20px; }
.source-note strong { color: #556e55; }
.source-note p { margin-top: 5px; }
.source-note small { font-size: 12px; display: block; margin-top: 5px; }
.launch-panel { align-self: start; position: sticky; top: 16px; background: var(--white); border: 1px solid var(--line); padding: 14px; border-radius: 5px; }
.launch-panel h3 { font-size: 20px; margin: 0 0 6px; }
.launch-panel p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.launch-panel small { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.launch-panel .button { font-size: 14px; padding: 7px 14px; }
.launch-panel hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.dashboard-stats { display: flex; gap: 24px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.dashboard-stats strong { font-family: Georgia,serif; font-size: 22px; font-weight: 400; color: var(--ink); margin-right: 6px; }
.compact { padding-top: 8px; }
.empty { grid-column: 1/-1; border: 1px dashed #cbd4c3; padding: 20px; border-radius: 7px; background: #eef0e7; }
.empty h3 { font-size: 19px; margin-bottom: 6px; }
.empty p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.auth-layout { max-width: 480px; margin: 24px auto 32px; display: block; grid-template-columns: 1fr 1fr; min-height: 0; border: 1px solid var(--line); border-radius: 6px; overflow: visible; background: var(--white); }
.auth-panel { padding: 24px; align-self: center; }
.auth-panel h2 { font-size: 24px; margin: 0 0 8px; }
.auth-panel p:not(.eyebrow) { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.auth-panel small { font-size: 12px; color: var(--muted); display: block; line-height: 1.6; }
.auth-form { margin: 16px 0; }
.auth-form p { margin-bottom: 12px!important; }
.auth-form label { display: block; color: #4e6652; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.auth-form input { display: block; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fbfcf7; color: var(--ink); font-size: 16px; min-height: 42px; }
.helptext { font-size: 12px; line-height: 1.6; display: block; margin-top: 5px; color: var(--muted); }
.helptext ul { padding-left: 16px; margin: 0; }
.helptext li { font-size: 12px; color: var(--muted); }
.errorlist { list-style: none; padding: 8px 10px; margin: 10px 0; background: #f7e9df; color: #874b25; font-size: 13px; border-radius: 5px; }
.errorlist li { margin: 0; }
.forgot { display: block; text-align: right; font-size: 13px; color: #668269; margin: 2px 0 10px; }
.auth-switch { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.auth-switch a { color: #35664c; }
.success-icon { font-size: 24px; color: #699374; background: none; border-radius: 0; width: auto; height: auto; text-align: left; line-height: 1.6; margin-bottom: 8px; }
.messages { max-width: calc(var(--page-width) - 2 * var(--gutter)); margin: 12px auto; padding: 10px 12px; background: #e6edde; color: #4c704d; border: 1px solid #c9d8c0; font-size: 14px; border-radius: 5px; }
.sr-only { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; margin: -1px; overflow: hidden; }
.live-controls { padding: 0 4px 10px; }
.live-controls label { display: flex; justify-content: space-between; font-size: 13px; color: #c1d0c3; letter-spacing: 0; }
.live-controls input[type=range] { width: 100%; height: 24px; accent-color: #efb384; margin: 0 0 5px; }
.live-controls output { color: #efb384; font-family: monospace; }
.live-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #b4c5b6; align-items: center; }
.live-caption button { background: none; border: 0; color: #e2b480; font-size: 12px; padding: 6px; white-space: nowrap; min-height: 32px; }
.coverage-wrap { padding-top: 8px; }
.coverage-wrap h2 { font-size: 22px; margin: 0 0 10px; }
.coverage-note { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 10px 0 14px; }
.coverage-note a { color: #37674d; text-decoration: underline; }
.coverage-chapter { background: #fffef9; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 6px; }
.coverage-chapter summary { cursor: pointer; padding: 9px 12px; font-size: 14px; }
.coverage-chapter summary small { float: right; color: var(--muted); font-size: 12px; margin-top: 3px; }
.coverage-rows { padding: 0 12px 6px; }
.coverage-rows>div { border-top: 1px solid var(--line); display: flex; align-items: start; gap: 12px; padding: 9px 0; }
.coverage-number { color: #b18b59; font-size: 13px; min-width: 30px; }
.coverage-rows section { flex: 1; min-width: 0; }
.coverage-rows strong { display: block; font-size: 14px; font-weight: 500; }
.coverage-rows a { display: block; color: #45684d; font-size: 13px; margin-top: 3px; }
.coverage-rows small { font-size: 12px; color: #87917c; white-space: normal; }
.section-tasks>div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.section-tasks span { font-size: 12px; color: #a17d51; }
.section-tasks p { font-size: 14px; color: #6f7e69; line-height: 1.6; margin-top: 5px; }
.catalog-jumps { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.catalog-jumps a { font-size: 13px; color: #365f4c; border: 0; padding: 4px 0; border-radius: 0; text-decoration: underline; text-underline-offset: 3px; }
.paths-wrap { padding-top: 0; padding-bottom: 8px; }
.path-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: start; }
.path-card { border: 1px solid var(--line); border-radius: 6px; background: #eef1e7; overflow: hidden; }
.path-card summary { padding: 12px; list-style: none; cursor: pointer; }
.path-card summary::-webkit-details-marker { display: none; }
.path-index { display: block; font-size: 12px; letter-spacing: 0; color: #9a7b4e; margin-bottom: 6px; }
.path-index small { float: right; color: #7f8b75; letter-spacing: 0; font-size: 12px; }
.path-card h3 { font-size: 16px; margin-bottom: 5px; }
.path-card p { font-size: 13px; color: #75836f; line-height: 1.6; min-height: 0; }
.path-expand { display: block; margin-top: 7px; color: #637d5d; font-size: 12px; }
.path-card[open] .path-expand { display: none; }
.path-card ol { padding: 0 12px 10px 30px; margin: 0; font-size: 13px; color: #76816e; }
.path-card li { padding: 4px 0; line-height: 1.6; }
.path-card li a { color: #42634a; }
.path-card li a:hover { text-decoration: underline; }
.capstone-card { background: #fffef9; }
.project-body { border-top: 1px solid var(--line); padding-top: 10px; }
.project-body h4 { font-size: 13px; margin: 0 12px 6px; color: #8a805e; }
.capstones-wrap { padding-top: 8px; }
.project-body ol { padding-bottom: 18px; }
.topbar nav>a,.navbutton { display: inline-flex; align-items: center; min-height: 36px; }
.hero-copy { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero .actions { margin: 0; }
.home-demo { margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-demo>summary,.route-collection>summary { padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.home-demo>summary span,.route-collection>summary span { margin-left: 14px; font-size: 13px; font-weight: 400; color: var(--muted); }
.home-experiments { padding-top: 16px; }
.source-band>div { flex: 1; }
.source-band>a { white-space: nowrap; }
.auth-form input[type=hidden] { display: none; }
.route-collection { border-bottom: 1px solid var(--line); }
.route-collection .path-grid { padding-bottom: 12px; }
summary:focus-visible { outline: 3px solid #b77c3e; outline-offset: 3px; }

@media(min-width:1250px) {
  .two { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:1000px) {
  .experiment-grid,.path-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-layout { grid-template-columns:180px minmax(0,1fr);gap:16px; }
  .source-band,.messages { margin-left:var(--gutter);margin-right:var(--gutter); }
}
@media(max-width:760px) {
  :root { --gutter:16px; }
  .topbar { flex-wrap:wrap;gap:4px 12px;padding-top:8px;padding-bottom:8px; }
  .brand { font-size:18px; }
  .brandmark { width:32px;height:32px;line-height:32px;font-size:26px; }
  .topbar nav { gap:12px;font-size:13px; }
  .topbar nav>a,.navbutton { min-height:40px; }
  .navcta { padding:4px 8px; }
  .hero { padding-top:16px; }
  .hero-copy { gap:12px; }
  .hero h1 { font-size:27px; }
  .hero-desc { font-size:14px; }
  .home-demo>summary span,.route-collection>summary span { display:block;margin:3px 0 0 18px; }
  .section-wrap { padding-top:18px;padding-bottom:18px; }
  .section-heading { align-items:baseline;flex-wrap:wrap;gap:6px 12px; }
  .section-heading h2,.coverage-wrap h2 { font-size:21px; }
  .experiment-grid,.two,.path-grid { grid-template-columns:1fr; }
  .experiment-card { padding:12px; }
  .source-band { margin:0 var(--gutter) 18px;flex-wrap:wrap;gap:10px; }
  .source-band>div { flex-basis:100%; }
  .page-heading { padding-top:16px;padding-bottom:8px; }
  .page-heading h1 { font-size:27px; }
  .catalog-layout { padding-top:8px;grid-template-columns:1fr;gap:8px; }
  .chapter-nav { display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px; }
  .chapter-nav>.eyebrow,.sidebar-note { display:none; }
  .chapter-nav>a { white-space:nowrap;border:1px solid var(--line);padding:7px 9px;min-height:40px;margin:0; }
  .chapter-nav>a>span:last-child:not(.chapter-no) { margin:0; }
  .results-heading { flex-wrap:wrap;gap:4px; }
  .detail-wrap { padding-top:14px; }
  .detail-header h1 { font-size:27px; }
  .detail-columns { display:flex;flex-direction:column-reverse;gap:20px;padding-top:16px; }
  .launch-panel { position:static;width:100%; }
  .auth-layout { max-width:480px;margin:16px var(--gutter) 24px; }
  .auth-panel { padding:18px; }
  .auth-panel h2 { font-size:23px; }
  .auth-form input,.button,.searchbar input { min-height:44px; }
  .dashboard-stats { gap:20px;flex-wrap:wrap; }
  .empty { padding:16px; }
  footer { flex-wrap:wrap;gap:8px 12px; }
  footer>div { margin-left:0; }
  .coverage-chapter summary small { float:none;margin-left:8px; }
  .coverage-rows>div { gap:8px;flex-wrap:wrap; }
  .coverage-rows small { flex-basis:100%;padding-left:38px; }
  .paths-wrap { padding-top:0;padding-bottom:0; }
}
