/* Law Exam Ready · Cognitive Performance Toolkit */
:root {
  --emerald-900: #1b4332;
  --emerald-700: #2d6a4f;
  --emerald-50: #eef5f1;
  --slate-800: #1f2937;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --white: #ffffff;
  --paper: #fafaf7;
  --error: #9b1c1c;
  --error-bg: #fdf2f2;
  --notice-bg: #f5f7fa;
  --radius: 10px;
  --card-padding: 1.5rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--paper);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--emerald-900);
  margin: 0 0 0.5rem;
}
h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.375rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
}
h3 {
  font-size: 1.125rem;
}
h4 {
  font-size: 1rem;
  color: var(--slate-800);
}
p {
  margin: 0 0 1rem;
}

a {
  color: var(--emerald-700);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--emerald-900);
}

:focus-visible {
  outline: 3px solid var(--emerald-700);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  background: var(--emerald-900);
  color: var(--white);
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  color: var(--white);
}

.wrap {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  min-height: 4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--emerald-900);
  text-decoration: none;
}
.brand:hover {
  color: var(--emerald-900);
}
.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 6px;
  background: var(--emerald-900);
  box-shadow: inset 0 -0.5rem 0 var(--emerald-700);
}
.brand-sub {
  color: var(--slate-600);
  font-size: 0.9375rem;
}

.tool-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1.25rem;
}

main {
  display: block;
  padding: 2.5rem 0 3rem;
}
.lede {
  font-size: 1.1875rem;
  color: var(--slate-600);
  max-width: 40rem;
}

.site-footer {
  border-top: 1px solid var(--slate-200);
  padding: 1.5rem 0 2.5rem;
  color: var(--slate-600);
  font-size: 0.9375rem;
}
.site-footer p {
  margin: 0;
}

/* Size actions against the shared content column regardless of panel nesting. */
main > .wrap {
  container-type: inline-size;
}

/* Hub */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: var(--card-padding);
  margin-top: 2rem;
}
.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-700);
}
.planned {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--slate-200);
}
.planned li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-600);
}

/* Buttons */
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: min(100%, 18rem);
  inline-size: min(100%, 18rem, calc(100cqi - var(--card-padding) - var(--card-padding) - 2px));
  min-inline-size: 0;
  min-block-size: max(44px, calc(2.6em + 1rem + 4px));
  padding: 0.5rem 1rem;
  border: 2px solid var(--emerald-900);
  border-radius: 8px;
  background: var(--emerald-900);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.button:hover,
button:hover {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  color: var(--white);
}
.button-secondary,
button.button-secondary {
  background: var(--white);
  color: var(--emerald-900);
  border-color: var(--emerald-700);
}
.button-secondary:hover,
button.button-secondary:hover {
  background: var(--emerald-50);
  color: var(--emerald-900);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
/* Give wrapped labels the same space as single-line actions. */
@media (max-width: 40rem) {
  .actions {
    flex-direction: column;
  }
}
@media (max-width: 23rem) {
  .button,
  button {
    min-block-size: max(44px, calc(3.9em + 1rem + 4px));
  }
}

/* Form */
.panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
}
@media (min-width: 40rem) {
  .panel {
    padding: 1.75rem;
  }
}
.field {
  margin: 0 0 1.75rem;
}
fieldset.field {
  border: 0;
  padding: 0;
  min-width: 0;
}
legend,
.label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.25rem;
  padding: 0;
}
.hint {
  color: var(--slate-600);
  font-size: 0.9375rem;
  margin: 0 0 0.625rem;
}
.options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}
@media (min-width: 40rem) {
  .options-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .options-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.option {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}
.option:has(input:checked) {
  border-color: var(--emerald-700);
  background: var(--emerald-50);
}
.option input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--emerald-900);
}
.option small {
  display: block;
  color: var(--slate-600);
  font-size: 0.875rem;
}
input[type="date"],
input[type="number"] {
  display: block;
  width: 100%;
  max-width: 16rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--slate-600);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate-800);
  font: inherit;
}
.field-error {
  margin: 0 0 0.5rem;
  color: var(--error);
  font-weight: 600;
}
.field.has-error {
  border-left: 4px solid var(--error);
  padding-left: 0.875rem;
}
[aria-invalid="true"] {
  border-color: var(--error) !important;
}

.error-summary {
  border: 3px solid var(--error);
  background: var(--error-bg);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.error-summary h2 {
  margin: 0 0 0.5rem;
  color: var(--error);
  font-size: 1.125rem;
}
.error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}
.error-summary a {
  color: var(--error);
  font-weight: 600;
}

.notice {
  border-left: 4px solid var(--emerald-700);
  background: var(--notice-bg);
  padding: 0.875rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice-warning {
  border-left-color: var(--error);
}
.status {
  min-height: 1.6em;
  margin: 1rem 0;
  color: var(--slate-600);
}

/* Results */
.summary {
  display: grid;
  gap: 0.25rem 1.5rem;
  margin: 0 0 1rem;
}
@media (min-width: 40rem) {
  .summary {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}
.summary dt {
  font-weight: 650;
}
.summary dd {
  margin: 0 0 0.5rem;
}
.estimate {
  font-weight: 600;
  color: var(--slate-600);
}

.sessions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .sessions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.session {
  min-inline-size: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem 1.125rem;
}
.session h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}
.session ul {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
}
.session .weight {
  color: var(--slate-600);
}

.weeks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.week {
  overflow-wrap: anywhere;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.125rem min(1.125rem, 4vw);
  margin: 0 0 1.25rem;
}
@media (min-width: 40rem) {
  .week {
    padding: 1.5rem;
  }
}
.week-meta {
  color: var(--slate-600);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}
.week-total {
  font-weight: 650;
  color: var(--slate-800);
}
.days {
  list-style: none;
  margin: 0;
  padding: 0;
}
.day {
  border-top: 1px solid var(--slate-200);
  padding: 0.875rem 0;
}
.day:last-child {
  padding-bottom: 0;
}
.day-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
}
.day-head span {
  color: var(--slate-600);
  font-size: 0.9375rem;
}
.day-note {
  margin: 0.25rem 0 0;
  color: var(--slate-600);
  font-size: 0.9375rem;
}
.day-exam {
  font-weight: 650;
  color: var(--emerald-900);
}
.blocks {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
}
.block {
  min-inline-size: 0;
  border-left: 3px solid var(--emerald-700);
  padding: 0.125rem 0 0.125rem 0.75rem;
}
.block-title {
  display: block;
  font-weight: 600;
}
.block-duration {
  display: inline-block;
  max-inline-size: 100%;
  font-weight: 400;
  color: var(--slate-600);
}
.block p {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.375rem 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  min-inline-size: 0;
  max-inline-size: 100%;
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--slate-200);
  color: var(--slate-800);
}

.closing {
  margin-top: 3rem;
  color: var(--slate-600);
}

input[type="file"] {
  font: inherit;
  max-width: 100%;
  min-height: 44px;
}
input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--emerald-700);
  border-radius: 8px;
  background: var(--white);
  color: var(--emerald-900);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Print: A4, every week of the plan, no controls. */
@page {
  size: A4;
  margin: 14mm 13mm;
}
.source-notes,
.fl-details li {
  overflow-wrap: anywhere;
}
.source-notes li + li {
  margin-top: 0.5rem;
}
@media print {
  details.source-notes::details-content,
  details.fl-details::details-content {
    display: block;
    content-visibility: visible;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10pt;
    line-height: 1.4;
  }
  .no-print,
  .skip-link,
  .site-footer,
  .status:empty {
    display: none !important;
  }
  main {
    padding: 0;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .site-header {
    border: 0;
  }
  .site-header .wrap {
    min-height: 0;
  }
  h1,
  h2,
  h3,
  h4 {
    color: #000;
    break-after: avoid;
  }
  h2 {
    margin-top: 1.25rem;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .week,
  .session {
    border: 1px solid #999;
    padding: 8pt 10pt;
    margin-bottom: 8pt;
  }
  .day {
    break-inside: avoid;
    padding: 5pt 0;
    border-top-color: #ccc;
  }
  .block {
    border-left-color: #666;
  }
  .block p,
  .week-meta,
  .day-head span {
    color: #333;
  }
  .tags li {
    background: none;
    border: 1px solid #999;
    color: #000;
  }
  .estimate {
    color: #000;
  }
  .sessions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Exam-day rehearsal card. */
.protocol {
  max-width: 43rem;
  margin-inline: auto;
}
.protocol fieldset {
  border: 0;
  padding: 0;
  margin: 1rem 0;
}
.protocol legend,
.protocol h2 {
  font-weight: 700;
  color: #064e3b;
  font-size: 1.4rem;
}
.protocol-choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
}
.protocol-choices label {
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin: 0;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  color: #263d35;
  background: white;
  border: 1px solid #b6c8c1;
  border-radius: 8px;
  font-weight: 500;
}
.protocol-choices input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  min-height: 0;
  accent-color: #064e3b;
}
.protocol-choices label:has(:checked) {
  background: #e8f2ec;
  border-color: #064e3b;
}
.protocol-choices label:has(:focus-visible) {
  outline: 3px solid #064e3b;
  outline-offset: 2px;
}
.protocol .response {
  margin: 1.2rem 0;
}
.protocol .response label,
.protocol .protocol-more label {
  display: block;
  margin: 0.7rem 0 0.35rem;
  font-weight: 600;
}
.protocol .response textarea {
  width: 100%;
  font: inherit;
  line-height: 1.45;
  border: 1px solid #6b8178;
  border-radius: 7px;
  padding: 0.6rem;
  min-height: 4.25rem;
  resize: vertical;
}
.protocol button {
  min-height: 3rem;
  border: 1px solid #064e3b;
  border-radius: 8px;
  background: #064e3b;
  color: white;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.protocol button.secondary {
  background: white;
  color: #064e3b;
}
.protocol button:disabled {
  cursor: default;
  opacity: 0.6;
}
.protocol-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.protocol-more {
  padding: 0.85rem 0;
  border-top: 1px solid #dce5df;
  margin-top: 1.2rem;
}
.protocol-more summary {
  cursor: pointer;
  font-weight: 600;
  color: #064e3b;
  padding: 0.3rem 0;
}
#protocol-pairs {
  padding-left: 1.5rem;
}
#protocol-pairs li {
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid #dce5df;
  overflow-wrap: anywhere;
}
#protocol-pairs p {
  margin: 0.2rem 0;
}
@media print {
  body.protocol-view .site-header,
  body.protocol-view #protocol-title,
  body.protocol-view #protocol > *:not(#protocol-card),
  body.protocol-view .no-print {
    display: none !important;
  }
  body.protocol-view #protocol-card {
    display: block;
  }
  body.protocol-view #card-title {
    font:
      bold 20pt Georgia,
      serif;
    margin: 0 0 8pt;
  }
  body.protocol-view #protocol-pairs li {
    break-inside: avoid;
    line-height: 1.32;
    font-size: 11pt;
    padding: 6pt 2pt;
  }
  body.protocol-view .protocol {
    max-width: none;
  }
}

/* Shared Law Exam Ready typography, actions and directory. */
:root {
  --emerald-900: #064e3b;
  --emerald-700: #17664e;
  --emerald-50: #e8f2ec;
  --paper: #fbfcfa;
  --slate-200: #dce5df;
  --slate-800: #263731;
}
@media screen {
  :root {
    --font:
      "LER Montserrat", Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  .hint.local-backup-action button {
    inline-size: auto;
    min-inline-size: 24px;
    min-block-size: 24px;
    min-height: 24px;
    padding: 0 0.125rem;
    border: 0;
    background: transparent;
    color: var(--emerald-700);
    font: inherit;
    font-weight: 400;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }
  .hint.local-backup-action button:hover,
  .hint.local-backup-action button:focus-visible {
    background: transparent;
    color: var(--emerald-900);
  }
  .site-header .wrap {
    max-width: 65rem;
    min-height: 3.85rem;
    justify-content: space-between;
    align-items: center;
  }
  .site-header .brand {
    font:
      700 1.45rem/1.15 Georgia,
      serif;
    letter-spacing: -0.035em;
  }
  .brand-mark {
    display: none;
  }
  .brand-sub {
    font-size: 0.83rem;
  }
  .site-header {
    border-bottom-color: #bfd1c7;
  }
  main h1 {
    font:
      500 clamp(2rem, 4.3vw, 3rem)/1.12 Georgia,
      serif;
    letter-spacing: -0.035em;
    max-width: 23ch;
  }
  main h2 {
    font:
      600 clamp(1.3rem, 2.6vw, 1.65rem)/1.22 Georgia,
      serif;
    letter-spacing: -0.016em;
  }
  main {
    padding: clamp(1.4rem, 4vw, 3rem) 0 2.8rem;
  }
  .wrap {
    padding-inline: clamp(1rem, 3vw, 1.6rem);
  }
  .lede {
    font-size: 1.055rem;
    line-height: 1.55;
    margin-block: 0.65rem 1.35rem;
  }
  .tool-back,
  .back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 0 0.65rem;
  }
  .site-footer {
    background: white;
  }
  .site-footer .wrap {
    max-width: 65rem;
  }
  .hub-shell:not(.protocol-view) main > .wrap {
    max-width: 65rem;
  }
  #directory {
    padding-block: clamp(0.6rem, 2vw, 1.4rem);
  }
  #directory h1 {
    font-weight: 700;
    max-width: none;
  }
  #directory .lede {
    margin-bottom: 1.5rem;
  }
  .study-directory {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.6rem;
  }
  .task-link {
    min-width: 0;
    min-height: 4.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
    background: white;
    border: 1px solid #c6d6cd;
    border-radius: 8px;
    color: #064e3b;
  }
  .task-link:hover,
  .task-link:focus-visible {
    background: #e8f2ec;
    border-color: #548772;
  }
  .task-link > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .task-link strong,
  .task-link small {
    display: block;
  }
  .task-link strong {
    font-size: 1.03rem;
    line-height: 1.28;
  }
  .task-link small {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #475569;
    margin-top: 0.18rem;
  }
  .task-arrow {
    font:
      1.65rem/1 Georgia,
      serif;
    color: #326651;
  }
  .device-note {
    font-size: 0.9rem;
    color: #475569;
    margin: 1.2rem 0 0;
  }
  .protocol button {
    min-block-size: max(44px, calc(2.6em + 1rem + 4px));
  }
  .protocol button.secondary:hover {
    background: #e8f2ec;
  }
  #protocol-pairs strong {
    display: block;
    color: #064e3b;
    font-size: 0.9em;
  }
  .resume-panel {
    border-left: 3px solid #4a7c65;
    border-radius: 0 6px 6px 0;
    background: #e8f2ec;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
  }
  .resume-panel h2 {
    margin: 0.1rem 0 0.5rem;
  }
  .resume-panel p {
    margin: 0.4rem 0 0.8rem;
  }
  .study-details {
    border-block-start: 1px solid #c6d6cd;
    margin: 1.3rem 0;
    padding-block: 0.55rem;
  }
  .study-details > summary {
    padding: 0.45rem 0;
    color: #064e3b;
    cursor: pointer;
    font-weight: 650;
  }
  @media (min-width: 46rem) {
    .study-directory {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.85rem;
    }
    .task-link {
      padding: 1.05rem 1.2rem;
      min-height: 5.25rem;
    }
  }
  @media (max-width: 34rem) {
    .brand-sub {
      display: none;
    }
  }
}

@media screen and (max-width: 23rem) {
  .protocol button {
    min-block-size: max(44px, calc(3.9em + 1rem + 4px));
  }
}
@media screen {
  .study-details > summary,
  .week summary {
    min-block-size: 44px;
    cursor: pointer;
  }
  .week summary {
    font-weight: 650;
    color: #064e3b;
  }
}

@media print {
  #protocol-pairs strong {
    display: block;
    font-size: 9pt;
    line-height: 1.15;
  }
}

/* Reflow: no page-level horizontal scroll at 320 CSS px with text at 200%.
   Containers may shrink below their content's longest word, and long text wraps. */
fieldset,
legend,
label,
.option,
.option > span,
.card,
.panel,
.protocol-actions,
.protocol-actions > *,
.protocol-choices label > span,
.task-link > span:first-child {
  min-width: 0;
  max-width: 100%;
}
legend {
  white-space: normal;
}
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]) {
  max-width: 100%;
}
@media (max-width: 40rem) {
  legend,
  label,
  .option > span,
  .card,
  .panel,
  button,
  .protocol-choices label > span,
  .protocol .response label,
  .hint,
  .lede {
    overflow-wrap: anywhere;
  }
  button {
    white-space: normal;
  }
  .protocol-actions > button {
    flex: 1 1 12rem;
  }
}

@media screen and (max-width: 25rem) {
  input[type="file"] {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .panel {
    padding-inline: min(1.25rem, 4vw);
  }
  .option,
  .protocol-choices label {
    column-gap: min(0.625rem, 2vw);
    padding-inline: min(0.75rem, 3vw);
  }
}

/* Private rehearsal of one response. */
.protocol-rehearse {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid #4a7c65;
  border-radius: 0 6px 6px 0;
  background: #e8f2ec;
}
.protocol-rehearse h2 {
  margin-top: 0;
}
.rehearse-cue {
  font-weight: 600;
  color: #064e3b;
}
.rehearse-words {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  background: white;
  border: 1px solid #b6c8c1;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.response-actions {
  margin: 0.5rem 0 0;
}

/* Print: the card title and the five if/then pairs only, on one A4 page. */
@media print {
  body.protocol-view main {
    padding: 0;
  }
  body.protocol-view #protocol-card > :not(#card-title):not(#protocol-pairs) {
    display: none !important;
  }
  body.protocol-view #protocol-pairs {
    margin: 0;
    padding-left: 1.4em;
  }
  body.protocol-view #protocol-pairs li {
    overflow-wrap: anywhere;
    word-break: break-word;
    border-bottom: 1px solid #999;
  }
  body.protocol-view #protocol-pairs li:last-child {
    border-bottom: 0;
  }
}

/* Directory only. Match the practice panel on Law Exam Ready articles. */
.directory-practice {
  padding: 0 0 2.5rem;
}
.directory-practice .wrap {
  max-width: 65rem;
}
.directory-practice .practice-panel {
  padding: 2rem;
  border: 1px solid #d9e6de;
  border-radius: 1rem;
  background: #e7f1eb;
  color: #24352d;
  text-align: left;
}
.directory-practice h2 {
  margin: 0 0 0.875rem;
  padding: 0;
  font:
    400 1.875rem/1.25 Georgia,
    "Times New Roman",
    serif;
  color: #064e3b;
  text-wrap: balance;
}
.directory-practice p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.directory-practice .practice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.directory-practice .practice-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9375rem 1.4375rem;
  border: 1px solid #064e3b;
  border-radius: 0.5rem;
  background: #064e3b;
  color: #fff;
  font:
    600 0.875rem/1.7 "LER Montserrat",
    Montserrat,
    Arial,
    sans-serif;
  text-align: center;
  text-decoration: none;
}
.directory-practice .practice-actions a + a {
  background: #fff;
  color: #064e3b;
}
.directory-practice .practice-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.directory-practice .practice-actions a:focus-visible {
  outline: 3px solid #064e3b;
  outline-offset: 3px;
}
@media (max-width: 36rem) {
  .directory-practice .practice-panel {
    padding: 1.5rem;
  }
  .directory-practice .practice-actions a {
    width: 100%;
  }
}
@media print {
  .directory-practice {
    display: none;
  }
}

/* Keep the directory and main website distinct at every screen size. */
.site-header .brand {
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  text-decoration: none;
}
.ler-wordmark {
  color: #064e3b;
  font:
    700 1.125rem/1.2 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ler-wordmark span {
  font-family: "LER Montserrat", Montserrat, Arial, sans-serif;
  letter-spacing: 0.07em;
  color: #475569;
}
.tools-title,
.site-header .site-home {
  font:
    600 0.875rem/1.4 "LER Montserrat",
    Montserrat,
    Arial,
    sans-serif;
  letter-spacing: normal;
  color: #064e3b;
}
.tools-title {
  border-inline-start: 1px solid #bfd1c7;
  padding-inline-start: 1.25rem;
}
.site-header .brand:hover .tools-title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-header .site-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: #e7f1eb;
  border: 1px solid #bfd1c7;
  border-radius: 0.5rem;
  text-decoration: none;
}
.site-header .site-home:hover {
  background: #064e3b;
  color: white;
}
.site-header a:focus-visible {
  outline: 3px solid #064e3b;
  outline-offset: 3px;
}
.fl-dark .ler-wordmark,
.fl-dark .tools-title {
  color: #d1fae5;
}
.fl-dark .ler-wordmark span {
  color: #cbd5e1;
}
.fl-dark .site-header .site-home {
  color: #d1fae5;
  background: #17352f;
  border-color: #66a792;
}
.fl-dark .site-header .site-home:hover {
  background: #245448;
}
.fl-dark .site-header a:focus-visible {
  outline-color: #d1fae5;
}
@media (max-width: 43rem) {
  .site-header .wrap {
    gap: 0.5rem;
  }
  .site-header .brand {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .ler-wordmark {
    font-size: clamp(0.875rem, 4.1vw, 1.125rem);
    letter-spacing: 0.04em;
  }
  .tools-title {
    padding: 0;
    border: 0;
    font-size: 0.8125rem;
  }
  .site-header .site-home {
    padding-inline: 0.625rem;
    gap: 0.25rem;
  }
}
@media (max-width: 22rem) {
  .site-header .site-home svg {
    display: none;
  }
}
@media print {
  .site-header .site-home {
    display: none;
  }
}
