.practice-preview .hero {
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.practice-preview .hero h1 {
  font-size: clamp(3.1rem, 8vw, 8rem);
  letter-spacing: -.065em;
}
.practice-preview .cover {
  aspect-ratio: 1 / 1;
  border-radius: .2rem;
  box-shadow: none;
}
.preview-topics {
  position: relative;
  overflow: hidden;
  background: #344c3b;
  color: #fbf9f4;
  padding-block: 1.1rem;
}
.preview-track {
  display: flex;
  width: max-content;
  animation: preview-ticker 58s linear infinite;
}
.preview-topics:hover .preview-track { animation-play-state: paused; }
.preview-track > div { display: flex; }
.preview-track span {
  white-space: nowrap;
  font-size: clamp(.82rem, 1.4vw, 1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.preview-track span::after { content: "✦"; margin-inline: 1.45rem; color: #c7d3b7; }
@keyframes preview-ticker { to { transform: translateX(-50%); } }
.preview-audio { border-top: 1px solid var(--rule); margin-top: 1.7rem; padding-top: 1rem; }
.preview-audio p { color: var(--muted); font-size: .88rem; }
@media (max-width: 650px) {
  .practice-preview .hero { grid-template-columns: 1fr; }
  .practice-preview .hero h1 { font-size: clamp(2.7rem, 10.8vw, 4.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .preview-track > div[aria-hidden] { display: none; }
  .preview-track { width: auto; animation: none; }
  .preview-track > div { flex-wrap: wrap; justify-content: center; gap: .4rem; padding-inline: .6rem; }
  .preview-track span::after { margin-inline: .45rem; }
}

.practice-preview {
  --paper: #faf7ee;
  --ink: #243a2e;
  --olive: #344c3b;
  --muted: #4c5b4d;
  --rule: #c9c9b8;
  --wash: #efe9db;
}
.practice-preview .section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.practice-preview .section h2 { font-size: clamp(2.5rem, 5.7vw, 5rem); max-width: 16ch; }
.practice-preview #about .about-photo { border-radius: .2rem; }
.practice-preview #about .about-copy { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.practice-preview #topics .topic-grid,
.practice-preview #interviews .resource-grid { margin-top: 2rem; }
.practice-preview .topic-card,
.practice-preview .methods > div {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  padding-inline: 0;
}
.practice-preview .prices article {
  background: transparent;
  border-color: var(--rule);
  border-radius: .3rem;
}
.practice-preview .prices .price { font-size: clamp(2.5rem, 5vw, 3.8rem); }
.practice-preview :is(#rules, #faq) > .section { border-top: 1px solid var(--rule); }
.practice-preview .channel-card { background: var(--wash); border-radius: .3rem; }
.practice-preview #resources .resource-card {
  border-radius: .3rem;
  grid-template-columns: minmax(0, 1fr) clamp(4.25rem, 12vw, 9rem);
}
.practice-preview .book-entry { border-radius: .3rem; }
.practice-preview .closing { background: var(--olive); }

.preview-audio audio { display: block; width: min(100%, 26rem); margin-top: .75rem; }

.practice-preview { --portrait-radius: .75rem; }
.practice-preview .cover,
.practice-preview #about .about-photo,
.practice-preview #about .about-portrait { border-radius: var(--portrait-radius); }

.preview-audio audio {
  border-radius: 999px;
  background: var(--wash);
  accent-color: var(--olive);
}
.preview-audio audio::-webkit-media-controls-panel { background-color: var(--wash); }

.approach-editorial { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(1rem, 5vw, 4rem); }
.feelings-collage { position: relative; width: min(100%, 24rem); margin: 0 auto; }
.feelings-collage img, .knitting-collage { display: block; width: 100%; height: auto; }
.feelings-collage figcaption { position: absolute; inset: 7% 4% auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; color: #7a3435; }
.feelings-collage figcaption span { background: var(--paper); border: 1px solid currentColor; border-radius: 50%; padding: .14rem .45rem; font: italic clamp(.8rem, 2vw, 1.1rem)/1.2 var(--serif); }
.knitting-collage { width: min(100%, 24rem); margin: 1.2rem auto 0; }
#resources .resource-cover { border: 0; box-shadow: none; transform: none; align-self: center; }
@media (max-width: 650px) {
  .approach-editorial { grid-template-columns: minmax(0, 1fr); }
  .feelings-collage, .knitting-collage { max-width: 18rem; }
}

.feelings-collage img, .knitting-collage, #resources .resource-cover {
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse 72% 72%, #000 58%, transparent 100%);
}
.practice-preview #approach { background: var(--paper); }
.practice-preview #resources .resource-card { background: var(--paper); }
.feelings-motion { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.feelings-motion path {
  fill: none;
  stroke: #8a4948;
  stroke-width: .35;
  stroke-dasharray: 18 6;
  animation: feelings-flow 5s linear infinite;
}
@keyframes feelings-flow { to { stroke-dashoffset: -48; } }
@media (prefers-reduced-motion: reduce) {
  .feelings-motion path { animation: none; }
}
.practice-preview .video-card,
.practice-preview .video-card:hover {
  border: 1px solid var(--rule);
  border-radius: .3rem;
  padding: clamp(.75rem, 2vw, 1.2rem);
  margin-top: 0;
  background: transparent;
}
.practice-preview .video-preview { border-radius: .2rem; }
:is(#rules, #faq) summary::after,
:is(#rules, #faq) details[open] summary::after {
  width: .57rem;
  height: .57rem;
  border: 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  border-radius: 0 .13rem;
  transform: translateY(-65%) rotate(45deg);
}
:is(#rules, #faq) details[open] summary::after { transform: translateY(-25%) rotate(225deg); }

.feelings-collage figcaption { inset: 0; display: block; }
.feelings-collage figcaption span { position: absolute; white-space: nowrap; }
.feelings-collage figcaption span:nth-child(1) { left: 3%; top: 27%; }
.feelings-collage figcaption span:nth-child(2) { left: 40%; top: 9%; }
.feelings-collage figcaption span:nth-child(3) { right: 2%; top: 23%; }
.topic-thread path { stroke-width: 1.45; }
.topic-thread path:nth-child(2) { color: #925852; }
.topic-thread path:nth-child(3) { color: #77764c; }
.education::before {
  width: 2px;
  mask-image: repeating-linear-gradient(to bottom, #000 0 5px, transparent 5px 7px);
}

.practice-preview :is(#topics, #interviews, #session, #resources, #books) h2 { max-width: none; }
.diploma-gallery {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(14rem, 34%, 24rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 1rem .3rem;
}
.diploma-gallery > * { scroll-snap-align: start; }
.diploma-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--rule);
  color: var(--muted);
}
.practice-preview .book-entry {
  grid-template-columns: minmax(0, 1fr) clamp(4.25rem, 12vw, 8rem);
  background: var(--paper);
}
.book-copy { grid-column: 1; grid-row: 1; }
.book-cover { grid-column: 2; grid-row: 1; align-self: center; }
.book-copy .resource-action { justify-self: start; margin-top: .4rem; }

.education-diploma { display: block; width: min(100%, 21rem); margin-block: .75rem .4rem; }
.education-diploma img { display: block; width: 100%; height: auto; max-height: 19rem; object-fit: contain; object-position: left center; }
@media (prefers-reduced-motion: no-preference) {
  .education-diploma { transition: opacity .45s ease, transform .45s ease; }
  .education-diploma.awaiting-scroll:not(:focus-visible) { opacity: 0; transform: translateY(.75rem); }
}

/* Shared paper mount and warm photographic grading. */
.practice-preview {
  --image-paper: #eee4d4;
  --image-edge: #d8cbbb;
}
.practice-preview .cover,
.practice-preview #about .about-photo,
.practice-preview .video-preview {
  background: var(--image-paper);
  border: 1px solid var(--image-edge);
  border-radius: var(--portrait-radius);
}
.practice-preview .cover::after,
.practice-preview .about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, #ead6b62b, transparent 58%, #4938291a);
  pointer-events: none;
}
.practice-preview .portrait-thread { z-index: 1; }
.practice-preview .portrait-thread path { stroke: #f5e4c9; }
.practice-preview .channel-portrait {
  border: 2px solid var(--image-paper);
  box-shadow: 0 0 0 1px var(--image-edge);
}
.practice-preview .book-cover,
.practice-preview .education-diploma {
  border: 1px solid var(--image-edge);
  background: var(--image-paper);
  padding: .28rem;
  box-shadow: 2px 3px 9px #4938291c;
}

.practice-preview .cover img,
.practice-preview .about-portrait { filter: none; }
.practice-preview .cover::after,
.practice-preview .about-photo::after { content: none; }
.practice-preview .portrait-thread { opacity: .65; }
.practice-preview .cover img { object-position: center 15%; }

.practice-preview .cover,
.practice-preview #about .about-photo { background: transparent; border: 0; border-radius: 0; }
.practice-preview .cover img { object-fit: contain; object-position: center; }
.practice-preview #about .about-portrait { border-radius: 0; }
.practice-preview .portrait-thread { opacity: 1; }
.practice-preview .portrait-thread path { stroke-width: 1.8; filter: none; }
.practice-preview .cover .portrait-thread path { stroke: #8b4d49; }
.practice-preview .about-photo .portrait-thread path { stroke: #687347; }

.practice-preview .cover { aspect-ratio: 4 / 4.55; }
@media (min-width: 651px) {
  .practice-preview .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); }
}
.practice-preview .cover .thread-echo { stroke: #a66a60; stroke-width: 1.2; opacity: .72; }
.practice-preview .about-photo .thread-echo { stroke: #829061; stroke-width: 1.2; opacity: .75; }

@media (prefers-reduced-motion: no-preference) {
  .practice-preview .cover .portrait-thread path {
    stroke-dasharray: 100;
    animation: hero-thread-draw 8s ease-in-out infinite both;
  }
  .practice-preview .cover .thread-echo:nth-child(2) { animation-delay: .55s; }
  .practice-preview .cover .thread-echo:nth-child(3) { animation-delay: 1.05s; }
}
@keyframes hero-thread-draw {
  0%, 100% { stroke-dashoffset: 100; opacity: 0; }
  42%, 62% { stroke-dashoffset: 0; opacity: 1; }
}

.practice-preview .intro { container-type: inline-size; }
.practice-preview .hero h1 {
  font-size: min(7.2rem, 14cqw);
  white-space: nowrap;
}

.practice-preview .cover .portrait-thread.is-offscreen path { animation-play-state: paused; }

.top nav .nav-thread-link { position: relative; }
.top nav .nav-thread-link svg {
  position: absolute;
  inset: auto 0 -3px;
  width: 100%;
  height: 7px;
  color: #8b4d49;
  pointer-events: none;
}
.top nav .nav-thread-link path { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.practice-preview .hero {
  padding-block: clamp(.8rem, 3svh, 2rem);
}
.practice-preview .hero .cover {
  width: 100%;
  min-width: 0;
  max-height: 63svh;
}
@media (max-width: 650px) {
  .practice-preview .hero { gap: .65rem; }
  .practice-preview .hero .cover { max-height: clamp(6rem, calc(100svh - 26rem), 42svh); }
  .practice-preview .hero .lede { margin-top: .75rem; }
  .practice-preview .hero-action { margin-top: .85rem; }
  .preview-topics { padding-block: .65rem; }
}

.hero-cbt { position: absolute; z-index: 2; inset: 0 0 auto; width: 100%; height: 55%; pointer-events: none; }
.cbt-threads { stroke: #8b4d49; stroke-width: 1.2; stroke-linecap: round; }
.cbt-labels rect { fill: var(--paper); stroke: #a67269; stroke-width: .75; }
.cbt-labels text { fill: #693e39; font: 16px system-ui, sans-serif; }
@media (prefers-reduced-motion: no-preference) {
  .cbt-threads path { stroke-dasharray: 100; animation: hero-thread-draw 8s ease-in-out infinite both; }
  .cbt-labels { animation: cbt-label-reveal 8s ease-in-out infinite both; }
}
@keyframes cbt-label-reveal {
  0%, 100% { opacity: 0; }
  38%, 68% { opacity: 1; }
}

.about-visual { width: min(100%, 30rem); }
.about-visual .preview-audio {
  width: min(100%, 20rem);
  margin: 0;
  padding: .6rem .85rem;
  border: 1px solid var(--rule);
  border-radius: .8rem;
  background: var(--wash);
}
.about-visual .preview-audio h3 { font-size: 1.15rem; }
.about-visual .preview-audio audio { width: 100%; height: 38px; margin-top: .35rem; }
.voice-thread { display: block; width: min(75%, 14rem); height: 30px; margin-left: 12%; }
.voice-thread path { stroke: #687347; stroke-width: 1.25; stroke-linecap: round; }

.about-visual .preview-audio {
  width: min(100%, 16rem);
  padding: .42rem .6rem;
  background: transparent;
}
.about-visual .preview-audio h3 { font-size: 1.05rem; }
.about-visual .preview-audio audio { height: 33px; margin-top: .2rem; }
.voice-thread { width: min(100%, 16rem); height: 34px; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .voice-thread path {
      stroke-dasharray: 100;
      animation: voice-thread-draw linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}
@keyframes voice-thread-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.about-visual .preview-audio { padding: 0; border: 0; }
.about-visual .preview-audio summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--wash);
  color: var(--olive);
  font-size: .9rem;
}
.about-visual .preview-audio summary::after { content: none; }
.about-visual .preview-audio audio { margin-top: .55rem; }

.top nav a { position: relative; }
.top nav a::before {
  content: "";
  position: absolute;
  inset: -4px -6px;
  border: 1px solid #8b4d49;
  border-radius: 52% 46% 49% 44% / 48% 54% 42% 52%;
  transform: rotate(-4deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.top nav a:is(:hover, :focus-visible) { text-decoration: none; }
.top nav a:is(:hover, :focus-visible)::before { opacity: 1; }

.practice-preview #about { padding-block: clamp(1.6rem, 4svh, 3rem); row-gap: .7rem; }
#about .about-copy { align-self: start; }
#about .preview-audio summary { padding-inline: .72rem; font-size: .82rem; }
#about .voice-thread { height: 24px; }
@media (prefers-reduced-motion: reduce) {
  .top nav a::before { transition: none; }
}

.practice-preview .hero .cover { scale: 1.06; }
@media (max-width: 650px) {
  .practice-preview .hero .cover { scale: 1.025; }
}

#about { position: relative; }
#about .about-copy { position: relative; z-index: 2; }
#about .about-copy .preview-audio { width: min(100%, 16rem); margin: 0 0 1rem; padding: 0; border: 0; background: transparent; }
#about .about-copy .preview-audio summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  padding: .4rem .85rem;
  background: var(--wash);
  color: var(--olive);
}
#about .about-copy .preview-audio summary::after { content: none; }
#about .voice-thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

#about .voice-thread path { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  #about .voice-thread path.is-drawn {
    stroke-dasharray: 100;
    animation: hero-thread-draw 8s ease-in-out infinite both;
    animation-timeline: auto;
  }
}

#about .about-copy .preview-audio summary,
#about .about-copy .preview-audio audio { width: 100%; }
#about .about-copy .preview-audio summary { justify-content: center; }

.practice-preview .mobile-hero-action,
.practice-preview .mobile-price-action,
.practice-preview .mobile-topic-thread { display: none; }
@media (max-width: 750px) {
  .practice-preview #topics > .topic-thread { display: none; }
  .practice-preview .hero .intro .hero-action { display: none; }
  .practice-preview .hero .mobile-hero-action {
    display: flex;
    position: relative;
    z-index: 3;
    margin: -1.5rem 0 0;
  }
  .practice-preview .mobile-topic-thread { display: block; height: 3rem; }
  .practice-preview #topics .topic-grid { grid-template-columns: 1fr; }
  #about .about-copy .preview-audio { width: 100%; }
  #about .about-copy .preview-audio summary { min-height: 52px; }
  .feelings-collage { width: min(100%, 23rem); max-width: none; }
  .practice-preview #resources .resource-card { grid-template-columns: minmax(0, 1fr) minmax(7rem, 38%); }
  .practice-preview #books .book-grid { grid-template-columns: 1fr; gap: 0; }
  .practice-preview #books .book-entry {
    grid-template-columns: minmax(6rem, 32%) minmax(0, 1fr);
    border: 0;
    border-bottom: 1px solid var(--rule);
    padding-inline: 0;
  }
  #books .book-cover { grid-column: 1; align-self: start; }
  #books .book-copy { grid-column: 2; }
  #books .book-copy h3 { font-size: clamp(1.25rem, 5vw, 1.75rem); }
}

.extra-videos { margin-top: 1rem; }
.extra-videos summary { color: var(--olive); }
@media (min-width: 751px) {
  .extra-videos[open] > summary { display: none; }
}

.preview-topics.mobile-ticker { display: none; }
@media (max-width: 750px) {
  .practice-preview main > .preview-topics { display: none; }
  .preview-topics.mobile-ticker { display: block; margin: .65rem -18px 0; }
}

@media (min-width: 751px) {
  #interviews .video-caption small { display: none; }
}

.education-certificates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }

.education-viewer {
  width: min(94vw, 64rem);
  max-height: 94dvh;
  padding: .8rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.education-viewer::backdrop { background: #202b23c9; }
.education-viewer-controls { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; }
.education-viewer-controls form { margin-inline-start: auto; }
.education-viewer-controls button {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .4rem .8rem;
  background: var(--wash);
  color: inherit;
  cursor: pointer;
}
.education-viewer img { display: block; width: 100%; max-height: 78dvh; object-fit: contain; }

.education-viewer-controls [data-step] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.education-viewer-controls [data-step="-1"] { inset-inline-start: .8rem; }
.education-viewer-controls [data-step="1"] { inset-inline-end: .8rem; }
.education-viewer:has([data-step]:not([hidden])) img {
  width: calc(100% - 5.5rem);
  margin-inline: auto;
}
.education-viewer-controls form button { font-size: 1.5rem; line-height: 1; }

.education-viewer-controls [data-step] {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}
.education-viewer-dots:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding-top: .65rem;
}
.education-viewer-dots span {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--rule);
}
.education-viewer-dots .is-current { background: var(--olive); }

.education-viewer-controls button {
  border: 0;
  background: transparent;
}
.education-viewer-controls svg { display: block; margin: auto; }
.education-viewer-controls svg path {
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 750px) {
  .practice-preview #topics .topic-card { border: 0; }
}
@media (min-width: 751px) {
  #books .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
  .practice-preview #books .book-entry {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    border: 0;
    padding: 0;
    background: transparent;
  }
  #books .book-cover {
    grid-area: 1 / 1;
    height: clamp(12rem, 23vw, 18rem);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    justify-self: center;
    border: 0;
    padding: 0;
  }
  #books .book-copy { grid-area: 2 / 1; grid-template-rows: auto auto 1fr auto; }
  #books .book-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
}

@media (min-width: 751px) {
  #books .book-grid { gap: clamp(1rem, 2.6vw, 2rem); }
  .practice-preview #books .book-entry { grid-template-rows: auto auto; gap: .85rem; }
  #books .book-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: .85rem;
    background: var(--wash);
  }
  #books .book-copy { grid-template-rows: none; gap: .25rem; }
  #books .book-copy h3 { font: 600 clamp(1rem, 1.65vw, 1.35rem)/1.3 "Golos Text", system-ui, sans-serif; }
  #books .book-copy p:not(.book-author) { display: none; }
  #books .book-copy .resource-action { padding-inline: 0; background: transparent; text-decoration: underline; }
}

@media (min-width: 751px) {
  #books .book-copy p:not(.book-author) { display: block; font-size: .86rem; }
  #books .book-cover { object-fit: contain; }
}
@media (min-width: 1100px) {
  #books .book-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
  #books .book-copy h3 { font-size: 1rem; }
}

.language-switch { display: flex; flex: none; align-items: center; justify-content: center; gap: .45rem; color: var(--muted); font-size: .85rem; }
.language-switch > a, .language-switch > [aria-current] { display: inline-grid; place-items: center; min-height: 44px; min-width: 44px; border-radius: 999px; }
.language-switch > a { text-decoration: none; }
.language-switch > a:hover { text-decoration: underline; }
.language-switch > [aria-current] { background: var(--wash); color: var(--ink); font-weight: 650; }
html[lang="en"] .practice-preview .hero h1 { font-size: min(6rem, 13cqw); }

html[lang="en"] #session .price-usdt {
  font: 600 clamp(1.35rem, 2.4vw, 2rem)/1.2 var(--serif);
}

.top .brand { display: flex; align-items: center; gap: .75rem; }
.top .brand .brand-mark {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  margin: 0; border-radius: 50%; background: var(--olive); color: var(--paper);
  font: 700 .61rem/1 "Golos Text", sans-serif; letter-spacing: .025em;
}
.top .brand .brand-copy { margin: 0; color: inherit; font: inherit; }
.top .brand .brand-copy > span { display: block; }
.language-switch { justify-self: center; gap: 1px; padding: 2px; font-size: .75rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.language-switch > a, .language-switch > [aria-current] { min-width: 36px; min-height: 30px; }
.language-switch > [aria-current] { background: var(--olive); color: var(--paper); }
@media (max-width: 750px) {
  .top .brand { justify-content: center; text-align: start; }
  .top nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .language-switch > a, .language-switch > [aria-current] {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    isolation: isolate;
  }
  .language-switch > [aria-current] { background: transparent; }
  .language-switch > [aria-current]::before {
    content: "";
    position: absolute;
    inset: 7px 4px;
    z-index: -1;
    border-radius: 999px;
    background: var(--olive);
  }
}

@media (max-width: 750px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; column-gap: .5rem; }
  .top .brand { grid-area: 1 / 1; justify-content: flex-start; }
  .top .language-switch { grid-area: 1 / 2; justify-self: end; align-self: start; }
  .top nav { grid-area: 2 / 1 / 3 / -1; }
}

@media (max-width: 750px) {
  .top .language-switch > [aria-current] { display: none; }
  .top .language-switch > a {
    background: var(--olive);
    color: var(--paper);
  }
}

.mobile-menu-toggle, .mobile-menu-contacts { display: none; }

@media (max-width: 750px) {
  html:has(.mobile-menu-toggle[aria-expanded="true"]) { overflow: hidden; }

  .top { grid-template-columns: minmax(0, 1fr) auto auto; }
  .top .language-switch { align-self: center; }
  .top .language-switch > a { min-width: 46px; min-height: 46px; }

  .top:has(.mobile-menu-toggle[aria-expanded="true"])::after {
    content: "";
    position: absolute;
    inset: 0 calc((100% - 100vw) / 2);
    z-index: -1;
    background: var(--paper);
  }

  .top .mobile-menu-toggle {
    display: grid;
    grid-area: 1 / 3;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: var(--wash);
    color: var(--olive);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    position: relative;
    width: 21px;
    height: 20px;
  }

  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    content: "";
    position: absolute;
    inset: 9px 0 auto;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s ease;
  }
  .mobile-menu-toggle span::before { transform: translateY(-4px); }
  .mobile-menu-toggle span::after { transform: translateY(4px); }
  .mobile-menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

  .top #site-navigation {
    position: fixed;
    inset: var(--sticky-header-height, 5rem) 0 auto;
    height: calc(100dvh - var(--sticky-header-height, 5rem));
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: .25rem;
    padding: clamp(1.15rem, 4dvh, 2.75rem) clamp(1.25rem, 6vw, 3rem);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--rule);
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.85rem);
    transition: opacity .26s ease, transform .32s ease, visibility 0s linear .32s;
    pointer-events: none;
  }

  .top .mobile-menu-toggle[aria-expanded="true"] + #site-navigation {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
    pointer-events: auto;
  }

  .top #site-navigation > a {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    justify-content: flex-start;
    min-height: 47px;
    padding: .15rem 0;
    font: 600 clamp(1.9rem, 6.8vw, 3.1rem)/1.06 var(--serif);
    touch-action: manipulation;
  }

  .top #site-navigation a::before { display: none; }
  .top #site-navigation > a[aria-current="location"] { color: var(--olive); }
  .top #site-navigation .nav-thread-link svg { display: none; }
  .top #site-navigation .nav-thread-link { color: var(--olive); }

  .mobile-menu-contacts {
    display: grid;
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
    justify-items: start;
  }

  .top #site-navigation .mobile-menu-contacts a {
    justify-content: flex-start;
    font-size: .95rem;
    text-decoration: underline;
    text-underline-offset: .25em;
  }

  .mobile-menu-social {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin-top: .25rem;
  }
}

@media (max-width: 750px) and (prefers-reduced-motion: reduce) {
  .top #site-navigation, .mobile-menu-toggle span::before, .mobile-menu-toggle span::after {
    transition: none;
  }
}

@media (max-width: 420px) and (max-height: 650px) {
  .practice-preview .top { min-height: 0; gap: .35rem; padding-block: .25rem; }
  .practice-preview .hero { gap: 0; padding-block: .3rem .65rem; }
  .practice-preview .hero .lede { margin-top: .35rem; line-height: 1.35; }
  .practice-preview .mobile-ticker { margin-top: .3rem; padding-block: .3rem; }
  .practice-preview .hero .mobile-hero-action { margin-top: -1.7rem; }
}

/* Full-width navigation, shared document icons, and centered mobile legal details. */
.practice-preview .top { width: 100%; padding-inline: clamp(18px, 3.33vw, 48px); }
.education-viewer-controls button { -webkit-appearance: none; appearance: none; display: inline-grid; place-items: center; padding: 0; min-width: 44px; min-height: 44px; border: 0; background: transparent; border-radius: 0; }
.education-viewer-controls svg { width: 18px; height: 18px; }
.education-viewer-controls svg path { stroke-width: 1.4; }
@media (max-width: 750px) {
 .site-footer, .site-footer .footer-meta { text-align: center; justify-content: center; align-items: center; justify-items: center; }
 .site-footer .footer-meta { width: 100%; flex-direction: column; }
 .site-footer .footer-identity { display: grid; gap: .3rem; }
 .site-footer .footer-divider { display: none; }
 .site-footer .privacy-link { justify-content: center; margin-inline: 0; }
}
