:root{--ink:#121315;--blue:#1646d8;--fog:#f3f5f7;--muted:#525964}
.head .account-link,.mobilemenu summary{font-weight:700;text-decoration:none;padding:.55rem .8rem;border:1.5px solid var(--ink);font-size:.92rem;white-space:nowrap}.head .account-link:hover{background:var(--ink);color:white}.mobilemenu{display:none;position:relative}.mobilemenu div{position:absolute;right:0;top:calc(100% + 6px);background:white;border:2px solid;z-index:6;min-width:190px;box-shadow:4px 4px var(--ink)}.mobilemenu a{display:block;padding:.68rem .9rem;text-decoration:none}.mobilemenu a:hover{background:var(--fog)}
.sub{padding-block:clamp(28px,4vw,70px);min-height:65vh}.page-intro{max-width:980px;margin-bottom:clamp(24px,3vw,48px)}.page-intro h1{font-size:clamp(2.8rem,5.8vw,6.6rem);overflow-wrap:anywhere;line-height:1.05;margin:.65rem 0}.category,.meta,.back{font-size:.87rem;font-weight:650;color:var(--muted)}.category{color:var(--blue)}.meta span{margin:0 .25em}.dek{max-width:67ch;font-size:clamp(1.05rem,1.55vw,1.4rem);line-height:1.45}.back{display:inline-block;margin-bottom:1.4rem}.casegrid{gap:clamp(24px,3.8vw,65px)}.case{border-top:2px solid var(--ink);padding-top:1rem}.case h3{font-size:clamp(1.65rem,2.4vw,2.8rem);margin:.35rem 0}.case>p:not(.meta){min-height:3em}
.gallery {
  margin: 1.15rem auto;
  min-width: 0;
  max-width: 34rem;
}
.strip {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-block: 4px;
}
.strip.enhanced { scrollbar-width: none; }
.strip.enhanced::-webkit-scrollbar { display: none; }
.frame {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  text-align: center;
  scroll-snap-align: start;
}
.frame > a {
  display: block;
  width: min(91%, 14.5rem);
  margin-inline: auto;
  padding: 3px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 22px;
}
.frame > a:hover { outline: 2px solid var(--blue); outline-offset: 3px; }
.frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  border: 0;
  border-radius: 17px;
  background: var(--fog);
}
.frame figcaption {
  max-width: 34ch;
  margin: .75rem auto 0;
  padding-inline: .5rem;
  font-size: 1rem;
  color: var(--ink);
}
.frame figcaption strong, .frame figcaption span { display: block; }
.frame figcaption span { color: var(--muted); font-size: .92rem; }
.gtools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: .65rem;
}
.gtools button {
  background: white;
  border: 1.3px solid var(--ink);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  font: 1.85rem/.85 Arial;
}
.gtools button:disabled { opacity: .35; cursor: default; }
.counter, .vcount {
  min-width: 3.2em;
  text-align: center;
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
}
.case-detail, .columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .82fr);
  gap: clamp(22px,6vw,92px);
  align-items: start;
}
.case-detail { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); }
.case-detail > * { min-width: 0; }
.case-detail .gallery { margin-top: 0; }
.case-detail h2,.lined h2,.columns h2,.dash h2,.reading h2{font-size:clamp(1.45rem,2.4vw,2.45rem)}.case-detail aside p{margin:.65rem 0 1.4rem}
.field{display:grid;gap:.35rem;font-size:1rem;font-weight:650}.filters label{flex:1;min-width:160px}.field{margin-bottom:1.15rem}.field small,.hint{color:var(--muted);font-weight:400}.field input,.field select,.field textarea{background:#fff;font:400 1rem/1.45 inherit;font-family:inherit;font-weight:400;font-size:1rem;line-height:1.45;border:1.2px solid #69717a;border-radius:0;padding:.65rem .75rem;min-height:44px;color:var(--ink);width:100%}.field textarea{min-height:132px;resize:vertical}.paperform{border-top:2px solid var(--ink);max-width:650px;padding:1.3rem 0;margin:1rem 0}.paperform .button{margin:0 .6rem .5rem 0}.inline{display:inline-block;padding:0;margin:.15rem .5rem .15rem 0}.inline .button{padding:.52rem .7rem;min-height:40px;font-size:.92rem}.inline.secondary .button,.outline{background:white;color:var(--ink)}.inline.secondary .button:hover,.outline:hover{background:var(--ink);color:white}.result,.notice{border-left:4px solid var(--blue);background:#f1f5ff;padding:.8rem 1rem;margin:1rem 0}.empty{color:var(--muted);padding:.8rem 0}.block{padding:1.1rem 1.35rem;background:var(--fog);border-top:3px solid var(--ink)}.block h3,.block p,.lined p,.reading p{margin-bottom:.8rem}.block h3:not(:first-child){margin-top:1.35rem}.lessonlist{margin:.9rem 0 1rem;padding:0;list-style:none;counter-reset:lesson}.lessonlist li{position:relative;counter-increment:lesson;border-top:1px solid #b6bcc2;padding:.85rem 0 .85rem 2.8rem}.lessonlist li:before{content:counter(lesson,decimal-leading-zero);position:absolute;left:0;top:.9rem;color:var(--blue);font-weight:700}.lessonlist h3{font-size:1.15rem;margin-bottom:.3rem}.reading{max-width:900px}.reading section{border-top:1px solid #aeb5bc;padding:1rem 0}.reading section p{margin:.6rem 0;max-width:72ch}.lined,.dash>section{border-top:2px solid var(--ink);padding:1.25rem 0;margin-top:1.4rem}.lined .under{display:inline-block;margin:.35rem 1.1rem .35rem 0}footer{border-top:2px solid var(--ink);gap:1.25rem}footer>div{display:flex;gap:1rem;flex-wrap:wrap}footer .brand{font-size:1.65rem}.signin{max-width:540px}.step-menu{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0}.step-menu a{min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid var(--ink);text-decoration:none;font-weight:bold}.step-menu a[aria-current]{background:var(--ink);color:white}.sample{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.5;background:#f4f6f7;padding:1rem;margin:.75rem 0}.learning details>summary,.dash details>summary{font-weight:bold;text-decoration:underline;margin:.8rem 0}.ticks{list-style:none;padding:0}.ticks li{margin:.45rem 0}.ticks label{display:flex;gap:.55rem;align-items:baseline}.ticks input{accent-color:var(--blue)}.dash{max-width:1050px}.row{padding:.9rem 0;border-bottom:1px solid #d5d9de;overflow-wrap:anywhere}.row h3{font-size:1.17rem;margin:0 0 .3rem}.row p{margin:.3rem 0;white-space:pre-line}.chips{display:flex;flex-wrap:wrap;gap:.55rem}.chips a{border:1px solid var(--ink);padding:.4rem .8rem;text-decoration:none}.chips a:hover{color:var(--blue)}.smallform{max-width:550px}.button:disabled{opacity:.5}.goodlink{display:inline-block;margin:.55rem 1rem .55rem 0}.stage{width:100%;border:1.5px solid var(--ink);height:260px;background:white}.hidden-trap{display:none}.linkcode{font:700 1.5rem/1.2 monospace;letter-spacing:.08em}.busy{color:var(--muted);font-size:.9rem}.project-editor{margin-top:.8rem}.workcopy{white-space:pre-wrap;overflow-wrap:anywhere}.sub h1{word-break:normal}.auth-grid{display:grid;grid-template-columns:1fr .85fr;align-items:start;gap:clamp(22px,6vw,90px)}
@media(max-width:920px){.head nav{display:none}.head .account-link{margin-left:auto}.mobilemenu{display:block}}
@media(max-width:760px){.columns,.case-detail,.auth-grid{grid-template-columns:1fr}.head{gap:.65rem}.head .descriptor{font-size:.69rem}.head .account-link,.mobilemenu summary{font-size:.85rem;padding:.45rem .55rem}.case>p:not(.meta){min-height:0}.sub{padding-top:26px}.casegrid{gap:2rem}.case-detail .gallery{margin-bottom:0}footer{align-items:flex-start}footer>div{display:grid;grid-template-columns:1fr 1fr}.page-intro h1{font-size:clamp(2.65rem,12vw,4.4rem)}}
@media(max-width:370px){.head .descriptor{display:none}}
@media print{header,footer,.skip,.no-print,.gtools,.button{display:none!important}.sub{width:100%;padding:0}.row{break-inside:avoid}.page-intro h1{font-size:36pt}}


.viewer {
  width: min(94vw, 26rem);
  max-width: 100%;
  max-height: 94dvh;
  padding: .8rem 1rem;
  border: 2px solid var(--ink);
  overflow: auto;
  background: white;
  color: var(--ink);
}
.viewer::backdrop { background: rgba(15,18,26,.76); }
.vbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}
.vname { font-weight: 700; }
.vclose {
  min-height: 44px;
  background: white;
  border: 1px solid var(--ink);
  padding: .45rem .8rem;
  font: inherit;
  cursor: pointer;
}
.vimage {
  display: block;
  width: min(100%, 19rem, 30dvh);
  height: auto;
  aspect-ratio: 390 / 844;
  margin-inline: auto;
  border: 3px solid var(--ink);
  border-radius: 21px;
  background: var(--fog);
}
.vcaption { margin: .65rem 0; }
.viewer .gtools { margin: .25rem 0; }
@media (max-width: 760px) {
  .case-detail { grid-template-columns: minmax(0, 1fr); }
}

.practice-catalog { padding-top: clamp(24px, 3vw, 46px); }

.practice-catalog .page-intro {
  margin-bottom: clamp(20px, 2.2vw, 34px);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .52fr);
  align-items: end;
  gap: 1.25rem 2rem;
  padding: clamp(1rem, 1.7vw, 1.35rem);
  border: 1px solid #c5cfdf;
  border-top: 3px solid var(--blue);
  background: #f3f6fc;
}

.catalog-label {
  display: block;
  margin-bottom: .6rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .72rem;
  border: 1px solid #b2bfd2;
  background: white;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.catalog-tabs a:hover {
  border-color: var(--blue);
  color: #203dc0;
}

.catalog-tabs a[aria-current] {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.catalog-search {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.catalog-search-row {
  display: flex;
  gap: 6px;
}

.catalog-search-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid #aebbd0;
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
}

.catalog-search-row input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.catalog-search-row .button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: .5rem .85rem;
}

.catalog-results {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .45rem 1rem;
  margin: 1.5rem 0 .85rem;
}

.catalog-results p {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.catalog-results a {
  color: #203dc0;
  font-size: .92rem;
  font-weight: 700;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 1.7vw, 1.45rem);
  margin: 0 0 1.25rem;
}

.content .catalog-grid { margin-top: 1.3rem; }

.practice-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #b8c2d1;
  background: white;
  color: var(--ink);
  text-decoration: none;
}

.practice-card:hover,
.practice-card:focus-visible { border-color: var(--blue); }

.practice-card-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid #c3cfe3;
  background: #eef3ff;
}

.practice-card-meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  align-self: center;
  padding: .6rem .9rem;
  font-size: .875rem;
  line-height: 1.3;
}

.practice-card-category { color: #163d9e; font-weight: 750; }
.practice-card-time { color: var(--muted); font-variant-numeric: tabular-nums; }

.practice-sign {
  position: relative;
  flex: 0 0 72px;
  border-inline-start: 1px solid #bfd0f1;
  background-color: #e4edff;
  background-image:
    linear-gradient(#1646d81c 1px, transparent 1px),
    linear-gradient(90deg, #1646d81c 1px, transparent 1px);
  background-size: 9px 9px;
  color: #1646d8;
}

.practice-sign::before,
.practice-sign::after {
  position: absolute;
  display: block;
  content: "";
}

.practice-sign--research::before {
  top: 16px;
  left: 18px;
  width: 28px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: #f8faff;
}

.practice-sign--research::after {
  top: 41px;
  left: 42px;
  width: 16px;
  height: 3px;
  transform: rotate(45deg);
  transform-origin: left center;
  background: currentColor;
}

.practice-sign--build::before {
  top: 19px;
  left: 17px;
  width: 36px;
  height: 28px;
  border: 3px solid currentColor;
  background: linear-gradient(currentColor 2px, #f8faff 2px);
  box-shadow: 5px 5px 0 #8eaff7;
}

.practice-sign--build::after {
  top: 30px;
  left: 26px;
  width: 16px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.practice-sign--growth::before {
  bottom: 18px;
  left: 18px;
  width: 9px;
  height: 13px;
  border-bottom: 2px solid currentColor;
  background: currentColor;
  box-shadow: 13px -6px 0 0 currentColor, 26px -13px 0 0 currentColor;
}

.practice-sign--growth::after {
  bottom: 16px;
  left: 17px;
  width: 38px;
  height: 1px;
  background: currentColor;
}

.practice-sign--explore::before {
  top: 17px;
  left: 17px;
  width: 38px;
  height: 38px;
  background: currentColor;
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}

.practice-card-copy {
  flex: 1 1 auto;
  padding: 1rem .9rem 1.05rem;
}

.practice-card-copy h3 {
  margin: 0 0 .55rem;
  font-size: clamp(1.19rem, 1.65vw, 1.56rem);
  line-height: 1.13;
  text-wrap: balance;
}

.practice-card-copy p {
  color: #384354;
  font-size: .97rem;
  line-height: 1.5;
}

.practice-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 45px;
  padding: .55rem .9rem;
  border-top: 1px solid #d6deed;
  color: #163d9e;
  font-size: .875rem;
  font-weight: 700;
}

.practice-card-action::after {
  display: block;
  width: .44rem;
  height: .44rem;
  margin-inline-end: .15rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.practice-card:hover .practice-card-action,
.practice-card:focus-visible .practice-card-action { background: #eef3ff; }

.catalog-empty {
  padding: 1.15rem;
  border: 1px solid #b8c2d1;
}

.catalog-empty h2 {
  margin: 0 0 .35rem;
  font-size: 1.28rem;
}

@media (max-width: 1060px) {
  .catalog-tools { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .catalog-search { max-width: 34rem; }
}

@media (max-width: 920px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-tools { padding: .85rem; }
  .catalog-results { margin-top: 1rem; }
}
