@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/RobotoSlab-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ksp-ink: #1f2933;
  --ksp-deep-blue: #214d78;
  --ksp-accent: #346a98;
  --ksp-mist: #edf3f8;
  --ksp-paper: #fbfaf7;
  --ksp-line: #c6d1db;
  --ksp-focus: #163754;
}

body {
  background:
    linear-gradient(180deg, rgba(237, 243, 248, 0.6) 0%, rgba(251, 250, 247, 0) 28rem),
    var(--ksp-paper);
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.wp-block-group {
  flex: 1 0 auto;
  width: 100%;
}

footer.wp-block-group {
  flex-shrink: 0;
}

a {
  text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ksp-focus);
  outline-offset: 3px;
}

.ksp-template-note,
.ksp-start-form__note {
  color: #465767;
}

.ksp-start-form,
.ksp-progress,
.ksp-path-warning,
.ksp-download,
.ksp-downloads,
.ksp-step-nav {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.ksp-start-form {
  padding: 1.25rem;
  border: 1px solid var(--ksp-line);
  border-radius: 18px;
  background: #ffffff;
}

.ksp-start-form__fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.ksp-start-form__time-group[hidden] {
  display: none;
}

.ksp-start-form__choice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--ksp-line);
  border-radius: 14px;
  background: var(--ksp-paper);
}

.ksp-start-form__choice input {
  margin-top: 0.15rem;
}

.ksp-progress {
  margin-top: 0;
  margin-bottom: 2.3rem;
}

.ksp-path-warning {
  padding: 1rem 1.1rem;
  border: 1px solid #8aa3bb;
  border-radius: 18px;
  background: #f5f9fc;
}

.ksp-progress__meta {
  margin-bottom: 0.6rem;
}

.ksp-progress__count {
  display: block;
  color: #4f6272;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}

.ksp-progress__bar {
  display: block;
  width: 100%;
  min-height: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(198, 209, 219, 0.7);
  overflow: hidden;
}

.ksp-progress__fill {
  display: block;
  width: 0;
  min-width: 0.5rem;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ksp-accent) 0%, var(--ksp-deep-blue) 100%);
}

.ksp-step-nav {
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.ksp-step-nav__button,
.ksp-download-button {
  display: block;
  box-sizing: border-box;
  min-width: 11rem;
  text-align: center;
}

.ksp-downloads {
  margin-top: 1.25rem;
}

.ksp-downloads__list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.75rem;
  list-style: disc;
}

.ksp-downloads__item {
  padding: 0.1rem 0;
}

.ksp-downloads__title {
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.35;
}

.ksp-downloads__note {
  margin: 0.35rem 0 0;
  color: #465767;
  line-height: 1.5;
}

.ksp-download {
  margin: 0;
}

.ksp-download .ksp-download-button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  padding: 0.55rem 0.95rem;
  align-items: center;
  justify-content: center;
}

.ksp-download-icon {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  margin-left: 0.45rem;
  border: 1px solid var(--ksp-deep-blue);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--ksp-deep-blue);
  color: #ffffff;
  text-decoration: none;
  vertical-align: text-bottom;
}

.ksp-download-icon:hover,
.ksp-download-icon:focus-visible {
  background: var(--ksp-accent);
  border-color: var(--ksp-accent);
}

.is-style-outline {
  background: transparent !important;
  color: var(--ksp-deep-blue) !important;
  box-shadow: inset 0 0 0 1px var(--ksp-deep-blue);
}

.ksp-screen-only {
  display: block;
}

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

.wp-block-post-title {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0;
}

.ksp-page-info {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ksp-page-info__toggle {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid var(--ksp-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ksp-deep-blue);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ksp-page-info__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  width: min(22rem, 78vw);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ksp-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.12);
  color: var(--ksp-ink);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.2rem);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  pointer-events: none;
}

.ksp-page-info:hover .ksp-page-info__panel,
.ksp-page-info:focus-within .ksp-page-info__panel,
.ksp-page-info.is-open .ksp-page-info__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ksp-header-links {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: auto;
}

.ksp-header-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.ksp-header-link--icon-only {
  gap: 0;
}

.ksp-header-link__icon {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.ksp-header-bar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.ksp-header-brand {
  min-width: 0;
  flex: 1 1 auto;
}

.ksp-header-brand .wp-block-site-title,
.ksp-header-brand .wp-block-site-tagline {
  margin-right: 0;
}

.ksp-header-brand .wp-block-site-title {
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
}

.ksp-header-brand .wp-block-site-title,
.ksp-header-brand .wp-block-site-title a {
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif !important;
}

.ksp-step-minutes {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--ksp-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #566877;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}

.ksp-footer-meta {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.ksp-footer-meta__links {
  margin: 0;
}

.ksp-footer-meta__logo {
  display: block;
  width: min(17rem, 38vw);
  max-width: 100%;
  height: auto;
}

.ksp-footer-meta__logo-link {
  display: inline-block;
  border-radius: 10px;
  transition: opacity 140ms ease, transform 140ms ease;
}

.ksp-footer-meta__logo-link:hover,
.ksp-footer-meta__logo-link:focus-visible {
  opacity: 0.86;
  transform: translateY(-1px);
}

.ksp-footer-meta a {
  color: inherit;
}

@media (max-width: 700px) {
  .ksp-header-bar {
    align-items: flex-start;
  }

  .ksp-header-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
  }

  .ksp-header-link {
    font-size: 0.95rem;
    align-self: flex-start;
  }

  .ksp-header-link__icon {
    width: 1.45rem;
    height: 1.45rem;
  }

  .ksp-step-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ksp-step-nav > * {
    min-width: 0;
  }

  .ksp-step-nav__button,
  .ksp-download-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ksp-page-info__panel {
    left: 0;
    right: auto;
    width: min(18rem, 82vw);
  }

  .ksp-footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ksp-footer-meta__logo {
    width: min(14rem, 62vw);
    align-self: flex-end;
  }
}
