/* Studiekeuze component styles. Colours, radii and type come from tokens.css. */

.hf-page {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
}
:where(.hf-page) *,
:where(.hf-page) *::before,
:where(.hf-page) *::after { box-sizing: border-box; }
:where(.hf-page) a { color: inherit; }
:where(.hf-page) p { margin: 0; }
:where(.hf-page) :is(h1, h2, h3, h4) {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hf-page :focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: var(--radius-focus);
}

.hf-wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.hf-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--gap-col);
}
.hf-band { padding-block: var(--section); background: var(--paper); color: var(--navy); }
.hf-band--quiet { padding-block: var(--section-l); background: var(--paper); }
.hf-band--mint { background: var(--navy); color: white; }
.hf-band--ink { background: var(--section-alt); color: var(--navy); }
.hf-band--mint :focus-visible { outline-color: white; }

.hf-label { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.hf-lead { font-size: var(--font-size-lead); line-height: 1.7; max-width: 42rem; color: var(--body); }
.hf-heading { font-size: var(--font-size-heading); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; color: var(--navy); }
.hf-statement { font-size: var(--font-size-statement); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; color: var(--navy); }
.hf-statement em {
  font-style: normal;
  background-image: var(--gradient-mint);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--mint);
  -webkit-text-fill-color: transparent;
}
.hf-body { font-size: 1rem; line-height: 1.7; color: var(--ink-70); }

.hf-strike { text-decoration: line-through; text-decoration-color: var(--navy); text-decoration-thickness: 2px; }

.hf-wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 1.625rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: inherit;
}
.hf-wordmark--small { font-size: 1.625rem; }
.hf-logo-img {
  display: block;
  height: 1.6rem;
  width: auto;
}
.hf-logo-o {
  width: 0.78em;
  height: 0.78em;
  margin-inline: 2px 0.05em;
  border-radius: 50%;
  flex: none;
  transform: translateY(0.06em);
  background: radial-gradient(
    circle closest-side at 50% 50%,
    currentColor 0 34.6%,
    transparent 34.6% 62.8%,
    var(--mint) 62.8%
  );
}

.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--navy);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--font-size-button);
  line-height: 1.25;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.hf-btn:hover {
  background: color-mix(in srgb, var(--navy) 85%, white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}
.hf-btn--small {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hf-btn--small:hover {
  transform: none;
  background: color-mix(in srgb, var(--navy) 85%, white);
  box-shadow: var(--shadow-md);
}
.hf-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.hf-link:hover { color: var(--navy); }

.hf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--chrome);
  color: white;
  border-bottom: 1px solid var(--white-10);
  box-shadow: var(--shadow-md);
}
.hf-header-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100%, var(--content-max));
  min-height: 72px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.hf-header-desktop {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.hf-header-desktop a:not(.hf-btn) {
  padding: 0.625rem 1rem;
  font-size: 17px;
  font-weight: 500;
  color: var(--white-70);
  text-decoration: none;
  border-radius: var(--radius);
}
.hf-header-desktop a:not(.hf-btn):hover { color: white; text-decoration: none; }
.hf-header-desktop a[aria-current="page"] {
  color: white;
  box-shadow: inset 0 -2px 0 var(--mint);
}
.hf-header-mobile { display: none; position: relative; margin-left: auto; }
.hf-header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  list-style: none;
}
.hf-header-menu-btn::-webkit-details-marker { display: none; }
.hf-header-menu-btn:hover { background: var(--white-10); }
.hf-header-menu-icon {
  width: 18px;
  height: 2px;
  background: white;
  box-shadow: 0 -6px 0 white, 0 6px 0 white;
}
.hf-header-mobile[open] .hf-header-menu-icon {
  background: transparent;
  box-shadow: none;
  position: relative;
}
.hf-header-mobile[open] .hf-header-menu-icon::before,
.hf-header-mobile[open] .hf-header-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: white;
}
.hf-header-mobile[open] .hf-header-menu-icon::before { transform: rotate(45deg); }
.hf-header-mobile[open] .hf-header-menu-icon::after { transform: rotate(-45deg); }
.hf-header-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  gap: 0.25rem;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.5rem;
  background: var(--chrome);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xl);
}
.hf-header-mobile-panel a:not(.hf-btn) {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--white-70);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.hf-header-mobile-panel a:not(.hf-btn):hover { color: white; background: var(--white-10); }
.hf-header-mobile-panel .hf-btn { margin: 0.35rem 0.25rem 0.25rem; }

.hf-footer {
  background: var(--chrome);
  color: var(--white-70);
  border-top: 1px solid var(--white-10);
  padding-block: 2rem 2.5rem;
}
.hf-footer .hf-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  font-size: 0.9375rem;
}
.hf-footer nav { margin-left: auto; display: flex; gap: 1.5rem; font-weight: 500; }
.hf-footer a { color: var(--white-70); text-decoration: none; }
.hf-footer a:hover { color: white; }
.hf-footer .hf-wordmark { color: white; }

.hf-hero {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--gap-col);
  align-items: center;
}
.hf-hero-title {
  grid-column: 1 / span 6;
  margin: 0;
  color: white;
  font-size: var(--font-size-display-thin);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.hf-hero-title span { display: block; font-weight: 700; }
.hf-hero-title .is-firm {
  background-image: var(--gradient-mint);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hf-hero-side { grid-column: 7 / -1; }
.hf-hero-side .hf-lead-hero { font-size: var(--font-size-lead-hero); line-height: 1.7; color: rgb(229 231 235); }
.hf-hero-side .hf-actions {
  margin-top: var(--gap-m);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-s);
}
.hf-hero .hf-btn { box-shadow: var(--shadow-hero); }
.hf-hero .hf-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-hero-hover); }
.hf-hero-side .hf-fine { margin-top: var(--gap-s); color: var(--white-70); font-size: 0.875rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.hf-hero .hf-link { color: var(--mint-light); }
.hf-hero .hf-link:hover { color: white; }

.hf-quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-quote);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--navy);
}
.hf-quotes li { position: relative; }
.hf-quotes li::before { content: "\201C"; position: absolute; right: 100%; }
.hf-quotes li::after { content: "\201D"; }

.hf-register { margin: 0; color: white; }
.hf-register header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--white-10);
  padding-bottom: 12px;
}
.hf-register header b {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hf-register .hf-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--gap-col);
  margin-top: 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--white-70);
}
.hf-register .hf-col { min-width: 0; }
.hf-register h4 { font-size: 0.875rem; font-weight: 700; margin: 14px 0 2px; color: white; }
.hf-register .hf-col h4:first-child { margin-top: 0; }
.hf-register ul { list-style: none; margin: 0; padding: 0; }
.hf-register li { white-space: nowrap; overflow: hidden; }
.hf-register .hf-cut {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--white-10);
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--white-70);
}

.hf-narrowed {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: white;
  box-shadow: var(--shadow-card);
}
.hf-narrowed .hf-cap { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: var(--mint); font-weight: 700; }
.hf-narrowed p.hf-flow { font-size: 0.875rem; line-height: 2.05; color: var(--ink-60); text-wrap: pretty; }
.hf-narrowed s { text-decoration-color: var(--navy); text-decoration-thickness: 1.5px; }
.hf-narrowed b { font-size: 1.125rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.hf-narrowed mark {
  font-size: 1.125rem;
  font-weight: 700;
  background: var(--mint);
  color: var(--navy);
  padding: 2px 8px;
  letter-spacing: -0.01em;
  border-radius: var(--radius-mark);
}

.hf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-col); }
.hf-step {
  border-top: 2px solid var(--mint);
  padding: 1.25rem 0 0;
}
.hf-step .hf-label { color: var(--mint); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hf-step h3 { margin-top: var(--gap-xs); font-size: var(--font-size-step-title); letter-spacing: -0.025em; line-height: 1.15; color: var(--navy); }
.hf-step p.hf-body { margin-top: var(--gap-xs); max-width: 36ch; color: var(--ink-70); }

.hf-doc-figure { margin: 0; min-width: 0; }
.hf-doc {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1.414;
  padding: 9% 9% 7%;
  display: flex;
  flex-direction: column;
}
.hf-doc .hf-doc-head { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 600; color: var(--ink-60); }
.hf-doc h3 {
  margin-top: auto;
  font-size: var(--font-size-doc-title);
  letter-spacing: -0.025em;
  line-height: 1.1;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hf-doc .hf-who { margin-top: 8px; font-size: 0.875rem; color: var(--ink-70); }
.hf-doc dl { margin: 20px 0 26px; display: grid; gap: 13px; }
.hf-doc dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-60); }
.hf-doc dd { margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-70); }
.hf-doc dd.hf-big { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--navy); }
.hf-doc dd.hf-big span { background: var(--mint); color: var(--navy); padding: 0 5px; margin-left: -5px; border-radius: var(--radius-mark); }
.hf-doc .hf-doc-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-60);
}
.hf-doc-figure figcaption { margin-top: 24px; display: grid; gap: 8px; max-width: 40ch; }
.hf-doc-figure figcaption h3 { font-size: var(--font-size-caption-title); letter-spacing: -0.025em; line-height: 1.2; }
.hf-doc-figure figcaption p { color: var(--ink-70); line-height: 1.7; }
.hf-doc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-col); align-items: start; }
.hf-doc-pair > :last-child { margin-top: 120px; }

.hf-prices { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1.25rem; }
.hf-price {
  flex: 1 1 16rem;
  background: white;
  color: var(--navy);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
}
.hf-price b {
  display: block;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.hf-price--main b { font-size: var(--font-size-price-main); }
.hf-price--next b { font-size: var(--font-size-price-next); color: var(--ink-70); }
.hf-price span { display: block; margin-top: 1rem; font-size: 1rem; line-height: 1.6; max-width: 28ch; color: var(--ink-70); }
.hf-price span strong { font-weight: 700; color: var(--navy); }
.hf-price-go {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--white-10);
}
.hf-price-go p { max-width: 42rem; color: rgb(229 231 235); line-height: 1.7; }

.hf-faq { margin: 0; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius-card); background: white; box-shadow: var(--shadow-sm); }
.hf-faq > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap-col); padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); }
.hf-faq > div:first-child { border-top: 0; }
.hf-faq dt { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; color: var(--navy); }
.hf-faq dd { margin: 0; max-width: 44ch; color: var(--ink-70); line-height: 1.7; }

.hf-landing .hf-label:not(.hf-fine) {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}
.hf-landing .hf-label:not(.hf-fine)::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  flex: none;
}

@media (min-width: 1024px) {
  .hf-band,
  .hf-band--quiet { padding-block: 6rem; }
  .hf-wrap { padding-inline: 2rem; }
  .hf-header-in { padding-inline: 2rem; }
}
@media (min-width: 640px) {
  .hf-header-in { padding-inline: 1.5rem; }
}
@media (max-width: 1000px) {
  .hf-register .hf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
}
@media (max-width: 900px) {
  .hf-hero-title,
  .hf-hero-side { grid-column: 1 / -1; }
  .hf-hero-side { padding-top: 2rem; }
  .hf-register .hf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-quotes { padding-left: 0.7em; }
  .hf-steps,
  .hf-doc-pair { grid-template-columns: 1fr; row-gap: 2rem; }
  .hf-doc-pair > :last-child { margin-top: 0; }
  .hf-doc { aspect-ratio: auto; padding: 1.75rem 1.5rem; }
  .hf-doc h3 { margin-top: 2rem; }
  .hf-faq > div { grid-template-columns: 1fr; row-gap: 0.5rem; }
  .hf-header-desktop { display: none; }
  .hf-header-mobile { display: block; }
  .hf-footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-hero-title .is-firm { animation: none; }
}

.hf-app { min-height: 100%; background: var(--page-alt); }
.hf-public { min-height: 100vh; background: var(--section-alt); }
.hf-public .hf-column { padding-block: 2rem 4rem; }
.hf-column { max-width: var(--app-column); margin-inline: auto; padding-inline: 1rem; }
.hf-column--wide { max-width: var(--app-wide); }
@media (min-width: 640px) { .hf-column { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .hf-column { padding-inline: 2rem; } }

.hf-btn--outline {
  background: white;
  color: var(--gray-900);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.hf-btn--outline:hover {
  background: white;
  color: var(--gray-900);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.hf-btn--danger {
  background: var(--danger-text);
  color: white;
}
.hf-btn--danger:hover {
  background: color-mix(in srgb, var(--danger-text) 82%, black);
  color: white;
}
.hf-btn[disabled],
.hf-btn[aria-disabled="true"] {
  background: var(--disabled);
  color: var(--disabled-text);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  opacity: 1;
}
.hf-btn[disabled]:hover,
.hf-btn[aria-disabled="true"]:hover {
  background: var(--disabled);
  transform: none;
  box-shadow: none;
}
button.hf-link {
  background: none;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  box-shadow: none;
}
button.hf-link:hover { color: var(--gray-900); background: transparent; transform: none; box-shadow: none; }

.hf-appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: var(--chrome);
  color: white;
  border-bottom: 1px solid var(--white-10);
  box-shadow: var(--shadow-md);
}
.hf-appbar-in {
  max-width: none;
  height: 72px;
  margin-inline: auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hf-appbar .hf-wordmark { color: white; font-size: 1.625rem; }
.hf-appbar nav { display: flex; gap: 0.25rem; font-size: 17px; font-weight: 500; }
.hf-appbar nav a { text-decoration: none; color: var(--white-70); padding: 0.625rem 1rem; border-radius: var(--radius); }
.hf-appbar nav a:hover { color: white; }
.hf-appbar nav a[aria-current="page"] { color: white; box-shadow: inset 0 -2px 0 white; }
@media (min-width: 640px) { .hf-appbar-in { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .hf-appbar-in { padding-inline: 2rem; } }

.hf-assignment {
  background: white;
  border: 0;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
}
.hf-assignment > .hf-label { color: var(--ink-60); }
.hf-assignment h1 {
  margin-top: 0.5rem;
  font-size: var(--font-size-app-title);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--navy);
}
.hf-assignment .hf-intro { margin-top: var(--gap-s); max-width: 52ch; color: var(--ink-70); line-height: 1.7; }
.hf-assignment .hf-qs { margin-top: var(--gap-l); display: grid; gap: var(--gap-l); }
.hf-assignment-foot {
  margin-top: var(--gap-l);
  padding-top: var(--gap-s);
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hf-assignment table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.hf-assignment th,
.hf-assignment td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--navy);
}
.hf-assignment th {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-60);
}
@media (min-width: 640px) { .hf-assignment { padding: 3rem; } }

h3.hf-prompt,
legend.hf-prompt,
.hf-qcard .hf-prompt {
  display: block;
  font-size: var(--font-size-prompt);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  padding: 0;
  color: var(--navy);
}
h3.hf-prompt { font-size: 1.5rem; }
label.hf-prompt {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--navy);
}
.hf-help { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.5; color: var(--ink-60); }
.hf-input,
select.hf-input {
  display: block;
  width: 100%;
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-input);
  line-height: 1.5;
  color: var(--navy);
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0.75rem 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
textarea.hf-input { resize: vertical; min-height: 120px; }
.hf-input::placeholder { color: var(--gray-400); opacity: 1; }
.hf-input:focus,
.hf-input:focus-visible,
select.hf-input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--line);
  box-shadow: none;
}
.hf-field.is-error .hf-input { border-color: var(--danger-border); border-width: 2px; background: var(--danger-fill); }
.hf-error,
.hf-field-error {
  margin-top: 0.75rem;
  border: 2px solid var(--danger-border);
  background: var(--danger-fill);
  color: var(--danger-text);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
}
fieldset.hf-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.hf-choice-list { margin-top: 0.75rem; display: grid; gap: 0.75rem; }
.hf-choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--navy);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-card);
  background: white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}
.hf-choice:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
}
.hf-choice input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.125rem 0 0;
  appearance: none;
  border: 2px solid var(--gray-300);
  border-radius: 0.375rem;
  background: white;
  display: grid;
  place-items: center;
}
.hf-choice input[type="radio"] { border-radius: var(--radius-pill); }
.hf-choice input:checked {
  border-color: var(--navy);
  background-color: var(--mint-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318233c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.hf-choice input[type="radio"]:checked {
  background-image: radial-gradient(circle, var(--navy) 32%, var(--mint-soft) 36%);
}
.hf-choice:has(input:checked) {
  border-color: var(--mint-soft);
  background: var(--mint-soft);
  position: relative;
  z-index: 1;
}
.hf-choice:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.hf-choice input:focus-visible { outline: none; }
.hf-choice:has(input:disabled) {
  cursor: not-allowed;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--gray-400);
  transform: none;
  box-shadow: none;
}

.hf-notice { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-card); font-size: 1rem; line-height: 1.5; max-width: 60ch; background: white; color: var(--navy); }
.hf-notice b { font-weight: 700; }
.hf-notice--done { border: 1px solid var(--mint-soft-border); background: var(--mint-soft-fill); color: var(--navy); }
.hf-notice--alert { border: 2px solid var(--danger-border); background: var(--danger-fill); color: var(--danger-text); }
.hf-notice--alert b { color: var(--danger-text); }
.hf-save { font-size: 0.875rem; color: var(--ink-60); }
.hf-save.is-error { color: var(--danger-text); font-weight: 600; }

.hf-docfield { padding-block: 16px; border-bottom: 1px solid var(--line); }
.hf-docfield label,
.hf-docfield .hf-docname { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-60); }

.hf-share { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-xl); align-items: start; }
.hf-share .hf-doc { aspect-ratio: auto; padding: 1.75rem; }
.hf-share .hf-doc h3 { margin-top: 1.5rem; font-size: 1.5rem; }
.hf-share-form h2 { font-size: var(--font-size-app-title); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.hf-share-form > p { margin-top: var(--gap-s); max-width: 44ch; color: var(--ink-70); }
.hf-share-form .hf-field { margin-top: var(--gap-m); }
.hf-share-form .hf-btn { margin-top: var(--gap-s); }

@media (max-width: 768px) {
  .hf-share { grid-template-columns: 1fr; }
  .hf-appbar nav { display: none; }
  .hf-btn,
  .hf-assignment-foot .hf-btn { width: 100%; }
  .hf-assignment-foot { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-btn,
  .hf-btn:hover,
  .hf-choice,
  .hf-choice:hover { transition: none; transform: none; }
}
