/*
 * /nar-publiceras-hogskoleprovet-fragor-facit-resultat/
 * Bygger på css/hpm-pages.css (sektioner, typografi, knappar, nästa steg).
 * Här ligger bara datumtabellen, anmälningsformuläret och textavsnitten.
 */

/* Heron: maskoten i stället för en egen illustration. */
.facitbesked-page #top.shp-seo-hero .hpf-hero-mascot {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  margin: 0 auto;
}

.facitbesked-page #top.shp-seo-hero .shp-seo-hero__title {
  max-width: 18ch;
}

/* ------------------------------------------------------------------
 * Datumtabellen
 * ------------------------------------------------------------------ */

.facitbesked-page .hpm .hpf-dates-wrap {
  max-width: 980px;
  margin-top: 36px;
}

.facitbesked-page .hpm .hpf-dates {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.facitbesked-page .hpm .hpf-dates th,
.facitbesked-page .hpm .hpf-dates td {
  padding: 18px 20px 18px 0;
  border: 0;
  border-bottom: 1px solid var(--m-line);
  background: transparent;
  color: var(--m-text);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.facitbesked-page .hpm .hpf-dates thead th {
  padding-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #cfd8e5;
  color: var(--m-muted);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none;
}

.facitbesked-page .hpm .hpf-dates tbody th {
  width: 40%;
  color: var(--m-ink);
  font-weight: 700;
}

.facitbesked-page .hpm .hpf-dates td:nth-child(2) {
  color: var(--m-ink);
  font-weight: 600;
}

.facitbesked-page .hpm .hpf-dates td:last-child {
  color: var(--m-muted);
  font-variant-numeric: tabular-nums;
}

.facitbesked-page .hpm .hpf-dates tr.is-ours th,
.facitbesked-page .hpm .hpf-dates tr.is-ours td:nth-child(2) {
  color: var(--m-blue);
}

.facitbesked-page .hpm .hpf-source {
  max-width: 72ch;
  margin-top: 18px;
  color: var(--m-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.facitbesked-page .hpm .hpf-source .hpm-link {
  font-size: inherit;
}

/* ------------------------------------------------------------------
 * Anmälan
 * ------------------------------------------------------------------ */

.facitbesked-page .hpm .hpf-signup {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px 72px;
  align-items: start;
}

.facitbesked-page .hpm .hpf-form {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
}

.facitbesked-page .hpm .hpf-field {
  display: grid;
  gap: 8px;
}

.facitbesked-page .hpm .hpf-field label {
  color: var(--m-ink);
  font-size: 15px;
  font-weight: 600;
}

.facitbesked-page .hpm .hpf-field input {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #cfd8e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: var(--m-ink);
  font-family: inherit;
  font-size: 16px;
}

.facitbesked-page .hpm .hpf-field input:focus {
  border-color: var(--m-blue);
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: 0;
}

.facitbesked-page .hpm .hpf-field input[aria-invalid="true"] {
  border-color: var(--m-red);
}

/* Honungsfälla för botar. */
.facitbesked-page .hpm .hpf-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.facitbesked-page .hpm .hpf-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--m-text);
  font-size: 14.5px;
  line-height: 1.55;
  cursor: pointer;
}

.facitbesked-page .hpm .hpf-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--m-blue);
}

.facitbesked-page .hpm .hpf-submit {
  justify-self: start;
}

.facitbesked-page .hpm .hpf-submit[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.facitbesked-page .hpm .hpf-status {
  color: var(--m-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.facitbesked-page .hpm .hpf-status:empty {
  display: none;
}

.facitbesked-page .hpm .hpf-status.is-ok {
  color: var(--m-green);
}

.facitbesked-page .hpm .hpf-status.is-error {
  color: var(--m-red);
}

.facitbesked-page .hpm .hpf-form.is-done .hpf-field,
.facitbesked-page .hpm .hpf-form.is-done .hpf-consent,
.facitbesked-page .hpm .hpf-form.is-done .hpf-submit {
  display: none;
}

.facitbesked-page .hpm .hpf-fine {
  color: var(--m-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.facitbesked-page .hpm .hpf-fine .hpm-link {
  font-size: inherit;
}

/* ------------------------------------------------------------------
 * Textavsnitten: rubrik till vänster, text till höger
 * ------------------------------------------------------------------ */

.facitbesked-page .hpm .hpf-topic {
  max-width: 1080px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 16px 56px;
  padding: 40px 0;
  border-bottom: 1px solid var(--m-line);
}

.facitbesked-page .hpm .hpf-topic:first-child {
  padding-top: 0;
}

.facitbesked-page .hpm .hpf-topic:last-child {
  border-bottom: 0;
}

.facitbesked-page .hpm .hpf-topic h2 {
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.8rem);
}

.facitbesked-page .hpm .hpf-topic__body p {
  max-width: 64ch;
  color: var(--m-text);
  font-family: var(--font-reading, "Open Sans", sans-serif);
  font-size: 16.5px;
  line-height: 1.75;
}

.facitbesked-page .hpm .hpf-topic__body p + p {
  margin-top: 14px;
}

.facitbesked-page .hpm .hpf-topic__body h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 18px;
}

.facitbesked-page .hpm .hpf-topic__body .hpm-link {
  font-size: inherit;
}

/* ------------------------------------------------------------------
 * Mindre skärmar
 * ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .facitbesked-page #top.shp-seo-hero .hpf-hero-mascot {
    max-width: 160px;
    margin: 0;
  }

  .facitbesked-page .hpm .hpf-signup,
  .facitbesked-page .hpm .hpf-topic {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  /* Tabellen blir staplade rader: publiceringen som rubrik, värdena under. */
  .facitbesked-page .hpm .hpf-dates,
  .facitbesked-page .hpm .hpf-dates tbody,
  .facitbesked-page .hpm .hpf-dates tr,
  .facitbesked-page .hpm .hpf-dates th,
  .facitbesked-page .hpm .hpf-dates td {
    display: block;
    width: 100%;
  }

  .facitbesked-page .hpm .hpf-dates thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .facitbesked-page .hpm .hpf-dates tbody tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--m-line);
  }

  .facitbesked-page .hpm .hpf-dates tbody th,
  .facitbesked-page .hpm .hpf-dates tbody td {
    width: 100%;
    padding: 0 0 4px;
    border: 0;
  }

  .facitbesked-page .hpm .hpf-dates td::before {
    content: attr(data-label) ": ";
    color: var(--m-muted);
    font-weight: 400;
  }

  .facitbesked-page .hpm .hpf-form {
    padding: 20px 16px;
  }

  .facitbesked-page .hpm .hpf-submit {
    justify-self: stretch;
  }

  .facitbesked-page .hpm .hpf-topic {
    padding: 32px 0;
  }
}

/* ------------------------------------------------------------------
 * Facitsidan (/facit-hogskoleprovet-hosten-2026/)
 * ------------------------------------------------------------------ */

.facitsida-page .hpm .hpfa-plan {
  max-width: 980px;
  margin: 32px 0 0;
  border-top: 1px solid var(--m-line);
}

.facitsida-page .hpm .hpfa-plan > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 6px 48px;
  padding: 18px 0;
  border-bottom: 1px solid var(--m-line);
}

.facitsida-page .hpm .hpfa-plan dt {
  color: var(--m-ink);
  font-size: 16px;
  font-weight: 700;
}

.facitsida-page .hpm .hpfa-plan dd {
  margin: 0;
  color: var(--m-text);
  font-size: 16px;
  line-height: 1.6;
}

.facitsida-page .hpm .hpfa-passes {
  display: grid;
  gap: 48px;
  max-width: 1080px;
  margin-top: 40px;
}

.facitsida-page .hpm .hpfa-pass h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid #cfd8e5;
  font-size: 20px;
}

.facitsida-page .hpm .hpfa-pass__type {
  margin-left: 8px;
  color: var(--m-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.facitsida-page .hpm .hpfa-part {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 32px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--m-line-soft);
}

.facitsida-page .hpm .hpfa-part__name {
  padding-top: 8px;
  color: var(--m-ink);
  font-size: 16px;
  font-weight: 700;
}

.facitsida-page .hpm .hpfa-part__name span {
  display: block;
  color: var(--m-muted);
  font-size: 13px;
  font-weight: 500;
}

.facitsida-page .hpm .hpfa-answers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facitsida-page .hpm .hpfa-answers li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: #fff;
}

.facitsida-page .hpm .hpfa-answers__n {
  color: var(--m-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.facitsida-page .hpm .hpfa-answers strong {
  color: var(--m-ink);
  font-size: 17px;
  font-weight: 700;
}

.facitsida-page .hpm .hpfa-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--m-text);
  font-family: var(--font-reading, "Open Sans", sans-serif);
  font-size: 16.5px;
  line-height: 1.75;
}

.facitsida-page .hpm .hpfa-steps li + li {
  margin-top: 10px;
}

.facitsida-page .hpm .hpfa-steps .hpm-link {
  font-size: inherit;
}

@media (max-width: 720px) {
  .facitsida-page .hpm .hpfa-plan > div,
  .facitsida-page .hpm .hpfa-part {
    grid-template-columns: minmax(0, 1fr);
  }

  .facitsida-page .hpm .hpfa-part__name {
    padding-top: 0;
  }

  .facitsida-page .hpm .hpfa-answers {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.facitsida-page .hpm .hpfa-pdfs {
  max-width: 1080px;
  margin-top: 48px;
}

.facitsida-page .hpm .hpfa-pdfs h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid #cfd8e5;
  font-size: 20px;
}

.facitsida-page .hpm .hpfa-pdfs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.facitsida-page .hpm .hpfa-pdfs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--m-line-soft);
}

.facitsida-page .hpm .hpfa-pdfs__meta,
.facitsida-page .hpm .hpfa-pdfs__src {
  color: var(--m-muted);
  font-size: 13.5px;
}

.facitsida-page .hpm .hpfa-pdfs__src {
  margin-top: 12px;
}

/* Lösningsförslag (kvantitativa provpass) */

.facitsida-page .hpm .hpfa-answers__link {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: -8px -10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.facitsida-page .hpm .hpfa-answers li:has(.hpfa-answers__link) {
  border-color: var(--m-blue-line);
  background: var(--m-blue-tint);
}

.facitsida-page .hpm .hpfa-answers__link:hover strong,
.facitsida-page .hpm .hpfa-answers__link:focus-visible strong {
  color: var(--m-blue);
}

.facitsida-page .hpm .hpfa-solutions {
  margin-top: 28px;
}

.facitsida-page .hpm .hpfa-solutions h4 {
  margin: 0 0 4px;
  color: var(--m-ink);
  font-size: 17px;
  font-weight: 700;
}

.facitsida-page .hpm .hpfa-solutions__group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 32px;
  padding: 10px 0;
  border-bottom: 1px solid var(--m-line-soft);
}

.facitsida-page .hpm .hpfa-solutions__group > * {
  grid-column: 2;
}

.facitsida-page .hpm .hpfa-solutions__code {
  grid-column: 1;
  grid-row: 1 / span 40;
  padding-top: 12px;
  color: var(--m-ink);
  font-size: 15px;
  font-weight: 700;
}

.facitsida-page .hpm .hpfa-sol {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--m-line-soft);
  background: transparent;
  scroll-margin-top: 24px;
}

.facitsida-page .hpm .hpfa-sol:last-child {
  border-bottom: 0;
}

.facitsida-page .hpm .hpfa-sol summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 36px 12px 0;
  list-style: none;
  cursor: pointer;
  color: var(--m-ink);
  font-size: 15.5px;
  font-weight: 600;
}

.facitsida-page .hpm .hpfa-sol summary::-webkit-details-marker {
  display: none;
}

.facitsida-page .hpm .hpfa-sol summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 10px;
  color: var(--m-muted);
  font-size: 18px;
  font-weight: 500;
}

.facitsida-page .hpm .hpfa-sol[open] summary::after {
  content: "−";
}

.facitsida-page .hpm .hpfa-sol summary:hover .hpfa-sol__n {
  color: var(--m-blue);
}

.facitsida-page .hpm .hpfa-sol__ans {
  color: var(--m-muted);
  font-weight: 600;
}

.facitsida-page .hpm .hpfa-sol__body {
  max-width: 68ch;
  padding: 0 0 18px;
}

.facitsida-page .hpm .hpfa-sol__body p {
  color: var(--m-text);
  font-family: var(--font-reading, "Open Sans", sans-serif);
  font-size: 16px;
  line-height: 1.75;
}

.facitsida-page .hpm .hpfa-sol__body p + p {
  margin-top: 10px;
}

.facitsida-page .hpm .hpfa-sol__body strong {
  color: var(--m-ink);
  font-family: var(--font-ui, "Inter", system-ui, sans-serif);
}

.facitsida-page .hpm .hpfa-sol.is-flash summary {
  color: var(--m-blue);
}

@media (max-width: 720px) {
  .facitsida-page .hpm .hpfa-solutions__group {
    grid-template-columns: minmax(0, 1fr);
  }

  .facitsida-page .hpm .hpfa-solutions__group > *,
  .facitsida-page .hpm .hpfa-solutions__code {
    grid-column: 1;
    grid-row: auto;
  }
}
