/* Shared product, course and case navigation. */
.language-switch > div,
#resource-nav details > div {
  max-block-size: min(68vh, 25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-app-preview {display:none}
.app-screen-dialog {
  background: #f6f5ee; border: 1px solid #bacabd; border-radius: 12px;
  color: #183d2e; margin: auto; padding: 11px; max-width: calc(100vw - 16px);
  max-height: 96vh; max-height: 96dvh;
}
.app-screen-dialog::backdrop {background: rgba(18, 35, 29, .78)}
.app-screen-dialog img {display:block; max-width:100%; width:auto; height:auto; max-height:calc(94vh - 68px); max-height:calc(94dvh - 68px); margin:auto}
.app-screen-dialog button {display:block; margin:0 0 8px auto; min-height:38px; border:1px solid #496e57; border-radius:6px; background:#fff; color:#194b37; font:600 .92rem/1.2 system-ui; padding:6px 13px}
.manual-filesize {white-space:nowrap; font-variant-numeric:tabular-nums}
#documents .resource-file-size {font-size:.86em; font-weight:500}
#resource-nav.case-nav {
  /* The case player also uses scrollable nav elements. Let language options extend beyond the header. */
  position:relative; z-index:50; overflow:visible;
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
  gap:5px 14px; padding-block:6px 9px; border-block-end:1px solid #bccbbe;
}
#resource-nav.case-nav > details {justify-self:end}
#resource-nav .case-resource-links {
  grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap;
  gap:3px 16px; margin:0; padding:0;
}
#resource-nav .case-resource-links a {display:inline-flex; gap:.3em; min-height:34px; align-items:center; flex-wrap:wrap; font:600 .86rem/1.35 system-ui; text-decoration:underline; text-underline-offset:.17em; color:#24533d}
#resource-nav .case-resource-links small {color:#455d4b; font-size:.83em; white-space:nowrap}
.case-resource-links a:focus-visible,.course-text-links a:focus-visible,.mobile-app-preview:focus-visible {outline:3px solid #984522; outline-offset:2px}
.course-text-links {display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 16px; margin:0 0 16px; font:500 .86rem/1.4 Inter,system-ui,sans-serif; color:#345941}
.course-text-links span {font-weight:650}
.course-text-links a {color:#214e36; padding-block:4px; text-decoration:underline; text-underline-offset:.18em}
.lesson[aria-current="true"] time {color:#355b3d}
@media (max-width:750px) {
  .hero .mobile-app-preview {
    display:flex; float:inline-end; flex-direction:column; align-items:center;
    width:clamp(68px, 19vw, 100px); margin:15px 0 4px; margin-inline-start:14px;
    color:#294b37; line-height:1.3; font-size:.7rem; font-weight:650;
    text-align:center; text-decoration:underline; text-underline-offset:.12em;
  }
  .mobile-app-preview img {width:100%; height:auto; max-height:170px; object-fit:contain; filter:drop-shadow(0 2px 4px #24372a33)}
  .mobile-app-preview span {margin-block-start:4px}
  .hero-copy .actions {clear:both}
}
@media (max-width:600px) {
  .site-header .header-row {
    display:grid; grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand language" "navigation navigation";
    row-gap:0; column-gap:14px; align-items:center; padding:5px 0 2px;
  }
  .site-header .header-row .brand {grid-area:brand; justify-self:start}
  .site-header .header-row nav {grid-area:navigation; flex-wrap:wrap; justify-content:flex-start; gap:0 17px}
  .site-header .header-row .language-switch {grid-area:language; justify-self:end; margin:0}
  .site-header .language-switch > div {inset-inline-start:auto; inset-inline-end:0; max-inline-size:calc(100vw - 32px)}
  .site-header .language-switch summary, #resource-nav summary {min-height:36px; display:flex; align-items:center}
  .site-header .language-switch a, #resource-nav details > div a {min-height:36px; display:flex; align-items:center}
  .wrap.prose h1 {overflow-wrap:anywhere; hyphens:auto}
  .toolbar {flex-wrap:wrap; gap:6px 12px}
  .toolbar .roles {max-inline-size:100%; flex-wrap:wrap}
  .toolbar .roles button {max-inline-size:100%; white-space:normal; overflow-wrap:anywhere}
  .toolbar .stats {max-inline-size:100%; white-space:normal; overflow-wrap:anywhere}
  #resource-nav .case-resource-links {gap:2px 14px}
  .course-text-links {gap:0 12px}
}
