.family-entry{max-width:1000px;margin:50px auto;padding:30px 22px}.family-entry h1{font-size:2.6rem;margin:22px 0 14px}.family-entry>p{color:#617777}.family-profiles{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:32px 0}.family-profiles .card{padding:36px;border-top:5px solid #a9c68c}.family-profiles .card:nth-child(2){border-top-color:#64a8ba;background:#f4fbfc}.family-profiles p{min-height:70px}.family-avatar{font-size:3.8rem;margin-bottom:18px}.family-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 23px;margin-bottom:14px;border-bottom:1px solid #dce7e5;flex-wrap:wrap}.family-bar .actions{gap:8px}.family-bar button{font-size:.86rem;padding:8px 12px}.family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px}.family-grid h2{font-size:1.22rem}.family-grid p{margin:14px 0}.family-filters{display:flex;gap:18px;flex-wrap:wrap;margin:24px 0}.family-filters label{flex:1;min-width:220px}.family-filters input,.family-filters select,.family-rename input{display:block;width:100%;margin-top:8px}.family-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.family-stats strong{font-size:2rem;color:#236c80}.family-check{display:flex;gap:10px;align-items:center;margin:12px 0}.family-check input{width:auto}.junior-mode{background:#f2f7f9}.junior-shell .sidebar{background:#f9fcfd}.junior-shell .mark{background:#d9eff4;box-shadow:none}.junior-shell .nav button.active,.junior-shell .primary{background:#236a7e;color:white;border-color:#236a7e;box-shadow:0 3px 0 #194c5c}.junior-shell .nav button.active{box-shadow:none}.junior-shell .card{border-color:#dbe7eb;background:#fff;box-shadow:0 3px 0 #dfe9ec66;border-radius:22px}.junior-shell .junior-hero{background:linear-gradient(120deg,#e3f2f4,#f3f8e9);padding:35px}.junior-shell .badge{background:#e6f1f5;color:#245f75}.junior-shell .stack button{text-align:left}.junior-shell blockquote{border-left:4px solid #6fa9b6;padding:18px;background:#f0f7f8;margin:22px 0;font-size:1.2rem}.junior-shell .phrase-card{border:1px solid #e2ebec;border-radius:16px;padding:18px;min-width:0}.junior-shell .phrase-card h3{color:#256d7d}.junior-shell textarea{display:block;box-sizing:border-box;width:100%;margin:12px 0;font:inherit;line-height:1.7;padding:14px;border:1px solid #b9ced5;border-radius:14px}.junior-shell .reading-text{font-size:1.1rem;line-height:1.9;background:#f4f8fa;padding:22px;border-radius:16px}.junior-shell .choices button{text-align:left}.junior-shell .family-grid article{min-width:0}.junior-shell p,.junior-shell td{overflow-wrap:anywhere}.junior-shell .table-wrap{overflow-x:auto}.junior-shell table{min-width:580px}button:focus-visible,a:focus-visible{outline:3px solid #b8872c;outline-offset:3px}
@media(max-width:720px){.family-profiles,.family-grid{grid-template-columns:1fr}.family-entry{margin:14px auto;padding:20px 16px}.family-entry h1{font-size:1.85rem}.family-profiles{gap:18px}.family-profiles .card{padding:24px}.family-profiles p{min-height:0}.family-avatar{font-size:2.7rem}.family-stats{gap:8px}.family-stats .card{padding:16px 9px}.family-stats p{font-size:.76rem}.family-stats strong{font-size:1.5rem}.junior-shell .junior-hero{padding:23px}.family-bar{align-items:flex-start}.family-bar .actions{width:100%;flex-wrap:wrap}.family-filters label{min-width:0;width:100%;flex-basis:100%}.junior-shell .nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:5px}.junior-shell .nav button{white-space:normal;text-align:center;justify-content:center;padding:9px 5px;font-size:.84rem}.junior-shell .reading-text{padding:15px}.junior-shell ol{padding-left:24px}.junior-shell li{margin:12px 0}}

/* Simple grade-eight study route */
.junior-more{margin-top:12px}.junior-more summary{padding:12px;cursor:pointer;font-size:.9rem;color:#5d747d}.junior-more button{width:100%;margin-top:6px}.scope-options{margin-top:18px;font-size:.86rem}.scope-options summary{cursor:pointer;color:#607d88}.scope-options .actions{margin-top:12px;flex-wrap:wrap}.scope-options button{font-size:.85rem;padding:9px 12px}.junior-hero h2{margin:24px 0 18px}.junior-hero>.primary{padding:16px 24px}.junior-shell details>summary{cursor:pointer}.junior-shell .nav .junior-more{grid-column:1/-1}

.family-entry{max-width:1240px}
.family-profiles{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,.76fr)}
.family-profiles .personal-space-card{border-top-color:#b8a77d;background:#fbfaf3}
.personal-space-link{display:inline-flex;align-items:center;padding:11px 18px;border-radius:14px;background:#3d6556;color:#fff;font-weight:700;text-decoration:none;box-shadow:0 3px 0 #315245}
.personal-space-link:hover{background:#34594b}
@media(max-width:720px){.family-profiles{grid-template-columns:minmax(0,1fr)}}
