:root {
  --brand-green-gradient: linear-gradient(105deg, #008a14, #006d10);
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #172b3a;
  background: #f5f8fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #087f8c;
}

.library-header {
  background: #fff;
  border-bottom: 1px solid #dce6eb;
}

.library-header-inner,
.library-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.library-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.library-brand {
  color: #153447;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.library-header nav {
  display: flex;
  gap: 20px;
}

.library-header nav a {
  font-weight: 600;
  text-decoration: none;
}

.library-main {
  padding: 56px 0 80px;
}

.library-eyebrow {
  margin: 0 0 10px;
  color: #087f8c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.library-main h1 {
  max-width: 820px;
  margin: 0;
  color: #153447;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.library-intro {
  max-width: 760px;
  margin: 18px 0 32px;
  color: #536979;
  font-size: 1.1rem;
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.library-controls {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.library-subject-index {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid #d9e5e9;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5fbfa, #f6fbff);
}

.library-subject-index h2 {
  margin: 0 0 14px;
  color: #173849;
  font-size: 1.2rem;
}

.library-subject-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-subject-index a {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid #c6dbdc;
  border-radius: 999px;
  background: #fff;
  color: #176b73;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.library-subject-index a:hover,
.library-subject-index a:focus-visible {
  border-color: #087f8c;
  background: #087f8c;
  color: #fff;
}

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.library-filter {
  padding: 9px 14px;
  border: 1px solid #c8d6de;
  border-radius: 999px;
  background: #fff;
  color: #264456;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.library-filter[aria-pressed="true"] {
  border-color: #087f8c;
  background: #087f8c;
  color: #fff;
}

.library-results {
  margin: 0 0 14px;
  color: #536979;
}

.library-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.library-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  color: #536979;
}

.library-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.library-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dce6eb;
  border-radius: 12px;
  background: #fff;
}

.library-card a {
  display: block;
  color: #153447;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.library-card a:hover,
.library-card a:focus-visible {
  color: #087f8c;
  text-decoration: underline;
}

.library-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 11px;
  color: #637987;
  font-size: 0.84rem;
}

.library-card-excerpt {
  margin: 12px 0 0;
  color: #536979;
  line-height: 1.55;
}

.library-back {
  display: inline-block;
  margin-bottom: 26px;
  font-weight: 700;
  text-decoration: none;
}

.library-article {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 0.9fr);
  column-gap: 30px;
  row-gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.library-article > .library-back {
  grid-column: 1 / -1;
  grid-row: 1;
}

.library-article > .library-eyebrow {
  grid-column: 1 / -1;
  grid-row: 2;
}

.library-article > article {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid #dce6eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 52, 71, 0.06);
}

.library-article h1 {
  max-width: 900px;
  color: #008a14;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.library-article-content {
  color: #263e4e;
  font-size: 1.02rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
  user-select: none;
  -webkit-user-select: none;
}

.library-article-content h2,
.library-article-content h3,
.library-article-content h4 {
  margin: 1.8em 0 0.7em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid #dce6eb;
  color: #008a14;
  line-height: 1.3;
}

.library-article-content h2 {
  padding-left: 12px;
  border-bottom-color: rgba(0, 138, 20, 0.28);
  border-left: 4px solid #008a14;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
}

.library-article-content h3 {
  color: #006d10;
  font-size: 1.3rem;
}

.library-article-content p:has(> strong:only-child),
.library-article-content p:has(> b:only-child) {
  margin: 1.65em 0 0.55em;
  color: #153447;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
}

.library-article-content p,
.library-article-content ul,
.library-article-content ol,
.library-article-content blockquote {
  margin: 0 0 1.2em;
}

.library-article-content img {
  max-width: 100%;
  height: auto;
}

.library-article-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.library-source-note {
  padding: 16px;
  border-left: 4px solid #d49a28;
  background: #fff8e9;
  color: #59451c;
}

.library-article-content th,
.library-article-content td {
  padding: 9px 12px;
  border: 1px solid #c8d6de;
  text-align: left;
}

.library-rubric-table-wrap {
  margin: 1.5rem 0 2rem;
  container-name: library-rubric;
  container-type: inline-size;
  overflow-x: auto;
  border: 1px solid #d7e2e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 55, 71, 0.08);
}

.library-article-content table.library-rubric-table {
  display: table;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  margin: 0;
  border: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.library-article-content .library-rubric-table caption {
  padding: 1rem 1.1rem;
  color: #153447;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: left;
}

.library-article-content .library-rubric-table thead th {
  background: #123e53;
  color: #fff;
  font-size: 0.9rem;
  vertical-align: bottom;
}

.library-article-content .library-rubric-table thead th span,
.library-article-content .library-rubric-table tbody th span {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.library-article-content .library-rubric-table tbody th {
  width: 12%;
  min-width: 0;
  background: #f2f7f9;
  color: #153447;
}

.library-article-content .library-rubric-table tbody td {
  width: 18.5%;
  min-width: 0;
  vertical-align: top;
}

.library-article-content .library-rubric-table thead th:first-child,
.library-article-content .library-rubric-table tbody th {
  width: 12%;
}

.library-article-content .library-rubric-table thead th:last-child,
.library-article-content .library-rubric-table tbody td:last-child {
  width: 14%;
  min-width: 0;
}

.library-article-content table.library-rubric-table--five-level {
  min-width: 0;
}

.library-article-content .library-rubric-table--five-level thead th:first-child,
.library-article-content .library-rubric-table--five-level tbody th {
  width: 15%;
}

.library-article-content .library-rubric-table--five-level tbody td {
  width: 14%;
}

.library-article-content .library-rubric-table--five-level thead th:last-child,
.library-article-content .library-rubric-table--five-level tbody td:last-child {
  width: 15%;
}

.library-article-content .library-rubric-table tbody tr:nth-child(even) td {
  background: #f8fbfc;
}

.library-article-content .library-rubric-table tbody td strong {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #08751b;
}

.library-article-content .library-rubric-table tfoot th,
.library-article-content .library-rubric-table tfoot td {
  background: #e8f4ea;
  color: #153447;
  font-weight: 800;
}

.library-article-content .library-rubric-table tfoot td {
  white-space: nowrap;
}

@container library-rubric (max-width: 760px) {
  .library-rubric-table-wrap {
    overflow: visible;
  }

  .library-article-content table.library-rubric-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .library-article-content .library-rubric-table caption {
    display: block;
  }

  .library-article-content .library-rubric-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .library-article-content .library-rubric-table tbody,
  .library-article-content .library-rubric-table tfoot {
    display: block;
  }

  .library-article-content .library-rubric-table tbody tr {
    display: block;
    padding: 0.75rem;
    border-bottom: 1px solid #c8d6de;
  }

  .library-article-content .library-rubric-table tbody th {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0.75rem;
    border: 0;
    border-radius: 8px;
  }

  .library-article-content .library-rubric-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0.8rem 0.6rem;
    border: 0;
    border-bottom: 1px solid #e4ecef;
    background: #fff !important;
  }

  .library-article-content .library-rubric-table tbody td:last-child {
    width: auto;
    min-width: 0;
  }

  .library-article-content .library-rubric-table tbody td::before {
    display: block;
    margin-bottom: 0.35rem;
    color: #315567;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .library-article-content .library-rubric-table tbody td:nth-child(2)::before {
    content: "Exceeds expectations · 90–100%";
  }

  .library-article-content .library-rubric-table tbody td:nth-child(3)::before {
    content: "Meets expectations · 80–89%";
  }

  .library-article-content .library-rubric-table tbody td:nth-child(4)::before {
    content: "Needs improvement · 73–79%";
  }

  .library-article-content .library-rubric-table tbody td:nth-child(5)::before {
    content: "Deficient · 40–72%";
  }

  .library-article-content .library-rubric-table tbody td:nth-child(6)::before {
    content: "Not evident · 0–39%";
  }

  .library-article-content .library-rubric-table--four-level tbody td:nth-child(2)::before {
    content: "Exceeds expectations · 100%";
  }

  .library-article-content .library-rubric-table--four-level tbody td:nth-child(3)::before {
    content: "Meets expectations · 85%";
  }

  .library-article-content .library-rubric-table--four-level tbody td:nth-child(4)::before {
    content: "Partially meets expectations · 55%";
  }

  .library-article-content .library-rubric-table--four-level tbody td:nth-child(5)::before {
    content: "Does not meet expectations · 0%";
  }

  .library-article-content .library-rubric-table--four-level tbody td:nth-child(6)::before {
    content: "Points";
  }

  .library-article-content .library-rubric-table--five-level tbody td:nth-child(2)::before {
    content: "Exceptional";
  }

  .library-article-content .library-rubric-table--five-level tbody td:nth-child(3)::before {
    content: "Exceeds expectations";
  }

  .library-article-content .library-rubric-table--five-level tbody td:nth-child(4)::before {
    content: "Meets exceptions";
  }

  .library-article-content .library-rubric-table--five-level tbody td:nth-child(5)::before {
    content: "Meets some expectations";
  }

  .library-article-content .library-rubric-table--five-level tbody td:nth-child(6)::before {
    content: "Not done";
  }

  .library-article-content .library-rubric-table--five-level tbody td:nth-child(7)::before {
    content: "Points";
  }

  .library-article-content .library-rubric-table tfoot tr {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .library-article-content .library-rubric-table tfoot th,
  .library-article-content .library-rubric-table tfoot td {
    display: block;
    padding: 0.4rem;
    border: 0;
  }
}

.library-sidebar {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.library-widget {
  padding: 23px;
  border: 1px solid #dce6eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(21, 52, 71, 0.05);
}

.library-widget--accent {
  border-top: 4px solid #087f8c;
  background: #f3fbfa;
}

.library-widget-eyebrow {
  margin: 0 0 7px;
  color: #087f8c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.library-widget h2 {
  margin: 0 0 13px;
  color: #153447;
  font-size: 1.12rem;
  line-height: 1.35;
}

.library-widget p:not(.library-widget-eyebrow) {
  margin: 0 0 15px;
  color: #536979;
  font-size: 0.94rem;
  line-height: 1.6;
}

.library-widget ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 19px;
}

.library-widget li,
.library-widget li a {
  color: #264456;
  font-size: 0.94rem;
  line-height: 1.45;
}

.library-widget-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 7px;
  background: #087f8c;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.library-widget-button:hover,
.library-widget-button:focus-visible {
  background: #066a75;
  color: #fff;
}

.library-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed #c8d6de;
  border-radius: 12px;
  color: #536979;
  text-align: center;
}

@media (max-width: 680px) {
  .library-header-inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }

  .library-header nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .library-main {
    padding-top: 38px;
  }

  .library-list {
    grid-template-columns: 1fr;
  }

  .library-article {
    display: block;
  }

  .library-article > article {
    padding: 22px;
  }

  .library-sidebar {
    position: static;
    margin-top: 22px;
  }
}

body:has(.library-article) {
  background: #fff;
  color: #17232d;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header-stack {
  position: sticky;
  top: 0;
  z-index: 100;
}

.library-header {
  position: relative;
  top: auto;
  z-index: auto;
  border-bottom: 2px dashed #008a14;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.library-main {
  width: min(1350px, calc(100% - 40px));
}

.library-home-promo {
  min-height: 80px;
  background: var(--brand-green-gradient);
}

.library-home-promo .home-promo-inner {
  display: flex;
  width: min(1360px, calc(100% - 48px));
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.library-home-promo p {
  margin: 0;
  color: #fff;
  font-size: 15px;
}

.library-home-promo p strong {
  color: #fff;
  font-style: italic;
  font-weight: 800;
}

.library-home-promo p a {
  margin-left: 10px;
  color: #f04431;
  font-weight: 800;
  text-decoration: none;
}

.library-home-promo .home-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border-radius: 999px;
  background: #da00d6;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.library-home-promo .home-promo-cta:hover,
.library-home-promo .home-promo-cta:focus-visible {
  transform: translateY(-1px);
  background: #bf00ba;
}

.library-header .nav-wraper {
  display: flex;
  width: min(1360px, calc(100% - 48px));
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
}

.library-header .home-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: #38a9e6;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.library-header .home-brand-icon {
  width: 24px;
  height: 24px;
  color: #38a9e6;
}

.library-header .main-nav.home-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 28px);
  min-width: 0;
  margin: 0 auto;
}

.library-header .home-nav-link,
.library-header .home-nav-dropdown summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  color: #131923;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.library-header .home-nav-link:hover,
.library-header .home-nav-link:focus-visible,
.library-header .home-nav-dropdown summary:hover {
  color: #e95423;
}

.library-header .home-nav-link.is-current {
  border-color: #42bc8b;
  color: #e95423;
}

.library-header .home-nav-dropdown {
  position: relative;
}

.library-header .home-nav-dropdown summary {
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.library-header .home-nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.library-header .home-nav-dropdown summary span {
  color: inherit;
  font-size: 17px;
  line-height: 1;
}

.library-header .home-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: -12px;
  z-index: 60;
  display: grid;
  min-width: 205px;
  padding: 8px;
  border: 1px solid #e5ecef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 20, 34, 0.14);
}

.library-header .home-nav-dropdown-menu a {
  padding: 9px 11px;
  border-radius: 5px;
  color: #182331;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
}

.library-header .home-nav-dropdown-menu a:hover,
.library-header .home-nav-dropdown-menu a:focus-visible {
  background: #eff7ef;
  color: #006d10;
}

.library-header .header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
}

.library-header .home-signin {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #008a14;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.library-header .home-signin svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.library-header .home-menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 10px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #fff;
  color: #006d10;
}

.library-header .home-menu-toggle-icon,
.library-header .home-menu-toggle-icon::before,
.library-header .home-menu-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.library-header .home-menu-toggle-icon {
  position: relative;
  margin: 5px 0;
}

.library-header .home-menu-toggle-icon::before,
.library-header .home-menu-toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.library-header .home-menu-toggle-icon::before {
  top: -7px;
}

.library-header .home-menu-toggle-icon::after {
  top: 7px;
}

.library-header .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.library-article {
  display: block;
  width: min(1350px, calc(100% - 40px));
  max-width: 1350px;
  padding: 0 0 84px;
  margin: 0 auto;
}

.library-article > article {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.library-article > article > h1.library-post-title {
  max-width: 1240px;
  margin: 34px auto 28px;
  color: #008a14;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.22;
  text-align: center;
  overflow-wrap: anywhere;
}

.library-article-content {
  color: #18232c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  line-height: 1.62;
}

.library-article-content h2,
.library-article-content h2.library-content-title {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  color: #008a14;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
}

.library-article-content h3,
.library-article-content h4 {
  margin: 1.6em 0 0.55em;
  padding: 0;
  border: 0;
  color: #008a14;
  font-size: 1.35rem;
  line-height: 1.3;
}

.library-article-content a {
  color: #008a14;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.library-article-content a:hover,
.library-article-content a:focus-visible {
  color: #006d10;
}

.library-article-content p,
.library-article-content ul,
.library-article-content ol,
.library-article-content blockquote {
  margin: 0 0 1.25em;
}

.library-article-content .study-prompt-list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5em;
  padding-left: 1.65em;
}

.library-article-content .study-prompt-list li {
  padding-left: 0.35em;
  line-height: 1.78;
}

.library-article-content .study-prompt-list li::marker {
  color: #008a14;
  font-weight: 800;
}

.class-instructions {
  margin-top: 52px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #dce6eb;
  border-radius: 14px;
  background: #f7fafb;
  color: #263e4e;
  font-size: 0.98rem;
  line-height: 1.7;
}

.class-instructions > h2 {
  margin: 0 0 28px;
  color: #153447;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.class-instructions section + section {
  margin-top: 26px;
}

.class-instructions h3 {
  margin: 0 0 10px;
  color: #008a14;
  font-size: 1.16rem;
  line-height: 1.35;
}

.class-instructions p {
  margin: 0 0 12px;
}

.class-instructions p:last-child {
  margin-bottom: 0;
}

.library-order-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  min-height: 300px;
  margin-top: 44px;
  padding: clamp(24px, 5vw, 52px);
  overflow: hidden;
  border: 3px solid #008a14;
  border-radius: 32px;
  background: #f5f8fa;
}

.library-order-banner img {
  display: block;
  width: min(100%, 300px);
  max-height: 280px;
  justify-self: end;
  object-fit: contain;
  object-position: center bottom;
}

.library-order-banner-copy h2 {
  margin: 0 0 18px;
  color: #19232d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.16;
}

.library-order-banner-copy p {
  margin: 0 0 22px;
  color: #334452;
  font-size: 1.08rem;
  line-height: 1.65;
}

.library-order-banner-copy a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 4px;
  background: #008a14;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.library-order-banner-copy a:hover,
.library-order-banner-copy a:focus-visible {
  background: #006d10;
  color: #fff;
}

.library-conversion-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  max-height: min(90vh, 700px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(14, 39, 51, 0.12);
  border-radius: 22px;
  background: #fff;
  color: #172b3a;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.library-conversion-dialog::backdrop {
  background: rgba(8, 24, 34, 0.66);
  backdrop-filter: blur(3px);
}

.library-conversion-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(23, 43, 58, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #173849;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.library-conversion-image {
  display: grid;
  min-height: 170px;
  place-items: center;
  overflow: hidden;
  background: #eff7f0;
}

.library-conversion-image img {
  display: block;
  width: 100%;
  max-height: 290px;
  object-fit: cover;
  object-position: center 42%;
}

.library-conversion-copy {
  padding: clamp(22px, 5vw, 38px);
}

.library-conversion-eyebrow {
  margin: 0 0 8px;
  color: #087f8c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-conversion-copy h2 {
  margin: 0 36px 12px 0;
  color: #153447;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}

.library-conversion-copy > p:not(.library-conversion-eyebrow) {
  margin: 0 0 22px;
  color: #536979;
  line-height: 1.6;
}

.library-popup-order-cta,
.library-popup-chat-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.library-popup-order-cta {
  background: #008a14;
  color: #fff;
  animation: library-order-cta-pulse 2.4s ease-in-out infinite;
}

.library-popup-order-cta:hover,
.library-popup-order-cta:focus-visible {
  background: #006d10;
  color: #fff;
}

.library-popup-chat-button {
  margin-left: 8px;
  background: #eef5f6;
  color: #173849;
  cursor: pointer;
}

.library-chat-bell {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  transform-origin: top center;
  animation: library-chat-bell-shake 1.5s ease-in-out infinite;
}

.library-chat-bell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@keyframes library-order-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 138, 20, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(0, 138, 20, 0); }
}

@keyframes library-chat-bell-shake {
  0%, 65%, 100% { transform: rotate(0); }
  70% { transform: rotate(12deg); }
  75% { transform: rotate(-10deg); }
  80% { transform: rotate(7deg); }
  85% { transform: rotate(-5deg); }
  90% { transform: rotate(0); }
}

@media (max-width: 600px) {
  .library-popup-order-cta,
  .library-popup-chat-button {
    width: 100%;
  }

  .library-popup-chat-button {
    margin: 10px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .library-popup-order-cta,
  .library-chat-bell {
    animation: none;
  }
}

.library-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
}

.library-post-body {
  min-width: 0;
}

.library-article-quick-actions {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid #dce8ea;
  border-radius: 18px;
  background: #f7fafb;
  box-shadow: 0 8px 22px rgba(24, 43, 58, 0.03);
}

.library-utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.library-utility-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7e4e8;
  border-radius: 999px;
  background: #fff;
  color: #1b3340;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.library-utility-bar a:hover,
.library-utility-bar a:focus-visible {
  border-color: #008a14;
  color: #006d10;
}

.library-sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.library-sidebar-primary,
.library-sidebar-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.library-sidebar-primary {
  border: 1px solid #008a14;
  background: linear-gradient(135deg, #008a14, #006d10);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 138, 20, 0.18);
}

.library-sidebar-secondary {
  border: 1px solid #d9e7ea;
  background: #fff;
  color: #19384d;
}

.library-sidebar-secondary svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.library-sidebar-primary:hover,
.library-sidebar-primary:focus-visible,
.library-sidebar-secondary:hover,
.library-sidebar-secondary:focus-visible {
  transform: translateY(-1px);
}

.library-post-widgets {
  position: sticky;
  top: 104px;
  display: grid;
  align-self: start;
  gap: 16px;
  min-width: 0;
}

.library-post-widget {
  padding: 24px;
  border: 1px solid #008a14;
  border-radius: 15px;
  background: #f6f9fb;
}

.library-post-widget h2 {
  margin: 0 0 18px;
  color: #1d2735;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.3;
}

.library-post-widget--trust ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-post-widget--trust li {
  position: relative;
  padding-left: 25px;
  color: #273747;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.library-post-widget--trust li::before {
  position: absolute;
  top: 0.16em;
  left: 0;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: #008a14;
  color: #fff;
  content: "✓";
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.library-payment-widget {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 15px;
  background: #008a14;
  color: #fff;
}

.library-payment-lock {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
}

.library-payment-widget strong,
.library-payment-widget small {
  display: block;
}

.library-payment-widget strong {
  font-size: 0.98rem;
}

.library-payment-widget small {
  margin-top: 4px;
  color: #efffef;
  font-size: 0.76rem;
  line-height: 1.4;
}

.library-post-widget--offer h2 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.library-post-widget--offer p {
  margin: 0 0 18px;
  color: #344554;
  font-size: 0.95rem;
  line-height: 1.7;
}

.library-coupon-code {
  white-space: nowrap;
}

.library-post-widget--offer .library-widget-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 4px;
  background: #008a14;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.library-post-widget--offer .library-widget-button:hover,
.library-post-widget--offer .library-widget-button:focus-visible {
  background: #006d10;
  color: #fff;
}

.library-post-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  column-gap: clamp(24px, 3vw, 42px);
  row-gap: 18px;
}

.library-post-layout > .library-post-title {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  color: #008a14;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  line-height: 1.14;
  text-align: left;
  overflow-wrap: anywhere;
}

.library-post-layout > .library-post-widgets {
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 18px;
  padding-top: 14px;
}

.library-post-layout > .library-post-body {
  grid-column: 1;
  grid-row: 2;
}

.library-post-widgets .library-post-widget {
  padding: 26px 24px;
  border-radius: 18px;
}

.library-post-widgets .library-post-widget h2 {
  margin-bottom: 19px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.library-post-widgets .library-post-widget--trust h2,
.library-post-widgets .library-post-widget--offer h2 {
  white-space: nowrap;
}

.library-post-widgets .library-post-widget--trust ul {
  gap: 13px;
}

.library-post-widgets .library-post-widget--trust li {
  font-size: 0.92rem;
  line-height: 1.4;
}

.library-post-widgets .library-payment-widget {
  min-height: 88px;
  padding: 19px 22px;
  border-radius: 18px;
}

.library-post-widgets .library-post-widget--offer p {
  margin-bottom: 19px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.library-post-widgets .library-post-widget--offer .library-widget-button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.9rem;
}

body:has(.library-article) .site-header-stack .home-utility-links,
body:has(.library-article) .site-header-stack .header-actions {
  display: none;
}

body:has(.library-article) .site-header-stack .home-promo-inner {
  justify-content: center;
}

.library-post-widgets .library-article-quick-actions {
  gap: 15px;
  padding: 20px;
}

.library-post-widgets .library-utility-bar {
  justify-content: space-between;
  gap: 8px;
}

.library-post-widgets .library-utility-bar a {
  flex: 1 1 auto;
  white-space: nowrap;
}

.library-post-widgets .library-sidebar-actions {
  gap: 12px;
}

@media (max-width: 1120px) and (min-width: 993px) {
  .library-post-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  }
}

@media (max-width: 992px) {
  .library-post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .library-post-widgets {
    position: static;
  }

  .library-post-layout > .library-post-title,
  .library-post-layout > .library-post-body,
  .library-post-layout > .library-post-widgets {
    grid-column: 1;
  }

  .library-post-layout > .library-post-title {
    grid-row: 1;
    margin: 0 0 8px;
  }

  .library-post-layout > .library-post-widgets {
    grid-row: 2;
    padding-top: 0;
  }

  .library-post-layout > .library-post-body {
    grid-row: 3;
  }
}

@media (max-width: 760px) {
  .library-post-layout > .library-post-widgets {
    grid-template-columns: 1fr;
  }

  .library-post-widgets .library-post-widget--trust h2,
  .library-post-widgets .library-post-widget--offer h2 {
    white-space: normal;
  }
}

.library-post-footer {
  padding-bottom: 24px;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(52, 183, 241, 0.12), transparent 32%),
    linear-gradient(145deg, #08283b, #0b3446 58%, #0c3a49);
  color: #d8e8ed;
}

.library-post-footer .container {
  width: min(1360px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.library-post-footer .footer-cta {
  border-bottom: 1px solid rgba(228, 247, 250, 0.12);
  background: linear-gradient(105deg, rgba(0, 138, 20, 0.2), rgba(52, 183, 241, 0.08));
}

.library-post-footer .footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.library-post-footer .footer-eyebrow {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.library-post-footer .footer-cta h2 {
  margin: 6px 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.library-post-footer .footer-cta p {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
}

.library-post-footer .footer-cta-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: var(--brand-green-gradient);
  box-shadow: 0 9px 24px rgba(0, 138, 20, 0.24);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.library-post-footer .footer-cta-button:hover,
.library-post-footer .footer-cta-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.library-post-footer .footer-cta-button:focus-visible,
.library-post-footer .footer-contact-link:focus-visible,
.library-post-footer .footer-link-group a:focus-visible,
.library-post-footer .footer-back-top:focus-visible {
  outline: 2px solid #75d789;
  outline-offset: 4px;
}

.library-post-footer .footer-cta-button span {
  font-size: 1.15rem;
}

.library-post-footer .footer-assurances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
  margin-bottom: 0;
  padding: 0 0 25px;
  border-bottom: 1px solid rgba(228, 247, 250, 0.12);
  list-style: none;
}

.library-post-footer .footer-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  padding: 5px 12px;
  color: #fff;
  font-size: 0.79rem;
  line-height: 1.4;
}

.library-post-footer .footer-assurance + .footer-assurance {
  border-left: 1px solid rgba(228, 247, 250, 0.12);
}

.library-post-footer .footer-assurance-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(117, 215, 137, 0.3);
  border-radius: 11px;
  background: rgba(0, 138, 20, 0.2);
  color: #75d789;
}

.library-post-footer .footer-assurance-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.library-post-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) repeat(3, minmax(135px, 0.8fr));
  gap: clamp(28px, 4vw, 64px);
  padding-top: 42px;
  padding-bottom: 38px;
}

.library-post-footer .footer-brand-panel {
  max-width: 330px;
}

.library-post-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.library-post-footer .footer-brand svg {
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 12px;
  background: #008a14;
  color: #08283b;
}

.library-post-footer .footer-brand img {
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 12px;
  background: #008a14;
  object-fit: contain;
}

.library-post-footer .footer-brand-panel > p {
  margin: 17px 0 18px;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.75;
}

.library-post-footer .footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.library-post-footer .footer-contact-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.library-post-footer .footer-contact-link:hover,
.library-post-footer .footer-contact-link:focus-visible,
.library-post-footer .footer-link-group a:hover,
.library-post-footer .footer-link-group a:focus-visible,
.library-post-footer .footer-back-top:hover,
.library-post-footer .footer-back-top:focus-visible {
  color: #75d789;
}

.library-post-footer .footer-link-group {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
}

.library-post-footer .footer-link-group h3 {
  margin: 3px 0 7px;
  color: #fff;
  font-size: 0.91rem;
  font-weight: 800;
}

.library-post-footer .footer-link-group a {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.library-post-footer .footer-link-group a:hover,
.library-post-footer .footer-link-group a:focus-visible {
  transform: translateX(2px);
}

.library-post-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 19px;
  border-top: 1px solid rgba(228, 247, 250, 0.13);
}

.library-post-footer .copyright {
  color: #fff;
  font-size: 0.76rem;
}

.library-post-footer .footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .library-post-footer .footer-assurances {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }

  .library-post-footer .footer-assurance:nth-child(3) {
    border-left: 0;
  }

  .library-post-footer .footer-main {
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(150px, 1fr));
    gap: 34px;
  }

  .library-post-footer .footer-brand-panel {
    grid-row: span 2;
  }
}

@media (max-width: 620px) {
  .library-post-footer .container {
    width: min(100% - 28px, 1360px);
  }

  .library-post-footer .footer-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .library-post-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
    padding-top: 32px;
    padding-bottom: 30px;
  }

  .library-post-footer .footer-brand-panel {
    grid-column: 1 / -1;
    grid-row: auto;
    max-width: 440px;
  }

  .library-post-footer .footer-assurances {
    row-gap: 6px;
    padding-bottom: 20px;
  }

  .library-post-footer .footer-assurance {
    justify-content: flex-start;
    gap: 8px;
    padding: 5px 2px;
    font-size: 0.72rem;
  }

  .library-post-footer .footer-assurance:nth-child(odd) {
    border-left: 0;
  }

  .library-post-footer .footer-assurance-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .library-post-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 992px) {
  .library-post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .library-post-widgets {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-payment-widget {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .library-post-widget--offer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .library-home-promo .home-promo-inner {
    width: min(1360px, calc(100% - 28px));
    min-height: 0;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }

  .library-home-promo p {
    font-size: 0.82rem;
  }

  .library-home-promo .home-promo-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 11px;
  }

  .library-header .nav-wraper {
    width: min(1360px, calc(100% - 28px));
    min-height: 70px;
    gap: 12px;
  }

  .library-header .home-brand {
    gap: 7px;
    font-size: 16px;
  }

  .library-header .home-brand-icon {
    width: 21px;
    height: 21px;
  }

  .library-header .home-menu-toggle {
    width: 40px;
    height: 38px;
  }

  .library-header .header-actions {
    display: none;
  }

  .library-article {
    width: min(100% - 32px, 1350px);
    padding-bottom: 44px;
  }

  .library-post-widgets {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .library-post-widget--offer,
  .library-payment-widget {
    grid-column: auto;
    grid-row: auto;
  }

  .class-instructions {
    margin-top: 36px;
    padding: 22px;
  }

  .library-order-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    margin-top: 30px;
    padding: 24px;
    border-radius: 24px;
  }

  .library-order-banner img {
    width: min(100%, 300px);
    max-height: 200px;
    justify-self: center;
  }

  .library-article > article > h1.library-post-title {
    margin: 30px 0 22px;
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

}

@media (max-width: 1120px) {
  .library-header .nav-wraper {
    gap: 20px;
  }

  .library-header .main-nav.home-nav {
    gap: 12px;
  }

  .library-header .home-nav-link,
  .library-header .home-nav-dropdown summary {
    font-size: 11px;
  }

  .library-header .home-brand {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
  .library-header .nav-wraper {
    position: relative;
    min-height: 76px;
  }

  .library-header .main-nav.home-nav {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: 0;
    z-index: 55;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 14px;
    border: 1px solid #e5ecef;
    border-top: 0;
    background: #fff;
    box-shadow: 0 14px 24px rgba(7, 20, 34, 0.1);
  }

  .library-header .main-nav.home-nav.is-open {
    display: grid;
  }

  .library-header .home-nav-link,
  .library-header .home-nav-dropdown summary {
    min-height: 44px;
    border-top: 0;
    border-bottom: 1px solid #edf1f2;
    font-size: 13px;
  }

  .library-header .home-nav-dropdown-menu {
    position: static;
    box-shadow: none;
  }

  .library-header .home-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
  }

  .library-header .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .library-home-promo .home-promo-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    min-height: 104px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .library-home-promo p {
    font-size: 12px;
    line-height: 1.5;
  }

  .library-home-promo p a {
    margin-left: 5px;
  }

  .library-home-promo .home-promo-cta {
    align-self: flex-start;
    min-height: 38px;
    padding: 0 17px;
    font-size: 11px;
  }

  .library-header .nav-wraper {
    gap: 12px;
    min-height: 70px;
  }

  .library-header .home-brand {
    gap: 7px;
    font-size: 16px;
  }

  .library-header .home-brand-icon {
    width: 21px;
    height: 21px;
  }

  .library-header .home-menu-toggle {
    width: 40px;
    height: 38px;
  }

  .library-header .home-signin {
    gap: 5px;
    font-size: 11px;
  }

  .library-header .home-signin svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 380px) {
  .library-home-promo .home-promo-cta {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 10px;
  }

  .library-header .home-brand {
    font-size: 14px;
  }

  .library-home-promo p strong {
    display: block;
  }
}
