
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-soft: #eeeeea;
  --text: #171717;
  --muted: #666666;
  --line: #d9d9d3;
  --accent: #225cc4;
  --accent-dark: #184695;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

button, input { font: inherit; }

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  background: rgba(245, 245, 242, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.hero {
  padding: 38px 0 40px;
}

.hero-inner {
  max-width: 1040px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 1040px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 860px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
}

.search-box {
  max-width: 900px;
}

.search-box label {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 600;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
}

.search-row button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 56px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2,
.explainer h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grade-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.grade-number {
  display: block;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.grade-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.topic-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
}

.topic-card h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.topic-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.explainer {
  max-width: 850px;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.step > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  font-weight: 900;
}

.step h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 700px) {
  .header-inner { min-height: 60px; }
  .main-nav { gap: 14px; }
  .hero { padding: 30px 0 32px; }
  h1 { font-size: 34px; }
  .hero-text { font-size: 16px; }
  .search-row { grid-template-columns: 1fr; }
  .grade-grid { grid-template-columns: 1fr; }
  .grade-card { min-height: auto; }
  .topic-grid { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .footer-inner { flex-direction: column; gap: 4px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #181b1f;
    --surface-soft: #20242a;
    --text: #f2f3f5;
    --muted: #a9afb8;
    --line: #30353c;
    --accent: #6ea8ff;
    --accent-dark: #8fbbff;
  }

  .site-header {
    background: rgba(17, 19, 21, 0.96);
  }

  .search-row input {
    color-scheme: dark;
  }
}

@media (prefers-color-scheme: dark) {
  .grade-card {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
  }

  .grade-number {
    color: var(--text);
  }

  .grade-label {
    color: var(--muted);
  }

  .topic-card {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
  }

  .topic-card h3 {
    color: var(--text);
  }

  .topic-card p {
    color: var(--muted);
  }
}

.school-level-grid {
  grid-template-columns: repeat(2, 1fr);
}

.school-level-card {
  display: block;
  text-decoration: none;
}

.school-level-title {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

@media (max-width: 700px) {
  .school-level-grid {
    grid-template-columns: 1fr;
  }

  .school-level-title {
    font-size: 22px;
  }
}

/* Kompakt og fremtidssikker forside */
.hero {
  padding: 42px 0 36px;
}

.hero-inner {
  max-width: 1080px;
}

.hero h1 {
  max-width: 1080px;
  margin-bottom: 12px;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.08;
}

.hero-text {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: 16px;
}

.search-box {
  max-width: 960px;
}

.section {
  padding: 46px 0;
}

.school-level-card {
  min-height: 125px;
}

@media (max-width: 700px) {
  .hero {
    padding: 32px 0 30px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-text {
    margin-bottom: 20px;
  }

  .section {
    padding: 36px 0;
  }

  .school-level-card {
    min-height: auto;
  }
}

/* Skolekalkulator-identitet i header */
.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.brand-school {
  color: var(--text);
}

.brand-calc {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-button {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.menu-icon {
  font-size: 18px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .menu-button:hover {
    border-color: var(--accent);
  }
}

@media (max-width: 700px) {
  .brand {
    font-size: 20px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .menu-button {
    min-height: 40px;
    padding: 0 12px;
  }
}

/* Footer */
.site-footer {
  margin-top: 10px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.footer-school {
  color: var(--text);
}

.footer-calc {
  color: var(--accent);
}

.footer-project {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-badge {
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.01em;
}

@media (max-width: 700px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-project {
    flex-wrap: wrap;
  }
}

/* Footer – samme struktur som Hverdagskalkulator */
.site-footer {
  margin-top: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 28px;
}

.footer-top strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 17px;
}

.footer-top p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-top nav a,
.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (hover: hover) and (pointer: fine) {
  .footer-top nav a:hover,
  .footer-bottom a:hover {
    color: var(--accent);
  }
}

@media (max-width: 700px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
  }

  .footer-top nav {
    gap: 14px;
  }
}



/* SKOLEKALKULATOR FOOTER – MATCH HVERDAGSKALKULATOR */

.site-footer {
  margin-top: 20px;
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-top {
  padding: 30px 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-top strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 520;
}

.footer-top p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
}

.footer-bottom {
  padding: 16px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer-top nav a:hover {
    color: var(--accent);
  }
}

@media (max-width: 620px) {
  .footer-top {
    flex-direction: column;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}



/* Aldersnøytral hovedside */
.school-level-card {
  min-height: 112px;
  padding: 22px 24px;
  border-radius: 8px;
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.school-level-title {
  margin-bottom: 5px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.school-level-card .grade-label {
  margin-top: 0;
  font-size: 15px;
  font-weight: 600;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.explainer h2 {
  font-size: clamp(26px, 3.5vw, 34px);
}

.section-soft {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  grid-template-columns: 34px 1fr;
  gap: 16px;
}

.step > span {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .school-level-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
}

@media (max-width: 700px) {
  .school-level-card {
    padding: 19px 20px;
    border-radius: 8px;
  }

  .school-level-title {
    font-size: 21px;
  }
}


/* Ny prosessdesign - Slik fungerer det */
.explainer {
  max-width: var(--max);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  display: block;
  min-width: 0;
  padding: 26px 24px 28px;
  border-bottom: 0;
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step + .step {
  border-left: 1px solid var(--line);
}

.step > span {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.step:nth-child(1) > span {
  font-size: 0;
}

.step:nth-child(1) > span::after {
  content: "STEG 01";
  font-size: 12px;
}

.step:nth-child(2) > span {
  font-size: 0;
}

.step:nth-child(2) > span::after {
  content: "STEG 02";
  font-size: 12px;
}

.step:nth-child(3) > span {
  font-size: 0;
}

.step:nth-child(3) > span::after {
  content: "STEG 03";
  font-size: 12px;
}

.step:nth-child(4) > span {
  font-size: 0;
}

.step:nth-child(4) > span::after {
  content: "STEG 04";
  font-size: 12px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.step p {
  max-width: 240px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 850px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    padding: 24px 20px;
  }

  .step:first-child {
    padding-left: 20px;
  }

  .step:last-child {
    padding-right: 20px;
  }

  .step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .step:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .step p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step:first-child,
  .step:last-child {
    padding: 22px 0;
    border-left: 0;
  }

  .step + .step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-color-scheme: dark) {
  .steps {
    border-color: #353a42;
  }

  .step + .step {
    border-color: #353a42;
  }

  .step > span {
    color: var(--accent);
  }

  .step h3 {
    color: var(--text);
  }

  .step p {
    color: #aeb4bd;
  }
}


.level-heading {
  color: var(--accent);
}


/* Breadcrumb */
.breadcrumb {
  border-bottom: 1px solid var(--line);
}

.breadcrumb-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 700px) {
  .breadcrumb-inner {
    min-height: 36px;
    overflow-x: auto;
    white-space: nowrap;
  }
}


/* Felles bred intro på alle Skolekalkulator-sider */
main > section:first-child > .wrap {
  width: min(calc(100% - 32px), var(--max));
  max-width: var(--max) !important;
}

main > section:first-child h1 {
  max-width: 1080px !important;
}

main > section:first-child > .wrap > p:not(.eyebrow) {
  max-width: 900px !important;
}

/* Samme brede struktur for kjente introsider */
.grade-intro .wrap,
.school-intro .wrap,
.tool-intro .wrap,
.page-intro .wrap {
  max-width: var(--max) !important;
}

.grade-intro > .wrap > p:not(.eyebrow),
.school-intro > .wrap > p:not(.eyebrow),
.tool-intro > .wrap > p:not(.eyebrow),
.page-intro > .wrap > p:not(.eyebrow) {
  max-width: 900px !important;
}

@media (max-width: 700px) {
  main > section:first-child > .wrap {
    width: min(calc(100% - 32px), var(--max));
  }

  main > section:first-child h1,
  main > section:first-child > .wrap > p:not(.eyebrow) {
    max-width: none !important;
  }
}


/* Grunnleggende verktøy på forsiden */
.basic-tools-grid {
  grid-template-columns: minmax(0, 560px);
}

.basic-tool-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-radius: 8px;
}

.basic-tool-card h3 {
  font-size: 21px;
  font-weight: 600;
}

.basic-tool-arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .basic-tool-card:hover {
    border-color: var(--accent);
  }
}

@media (max-width: 700px) {
  .basic-tools-grid {
    grid-template-columns: 1fr;
  }

  .basic-tool-card {
    padding: 20px;
  }
}


/* Søkeresultater */
.search-box {
  position: relative;
}

.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover {
  background: var(--surface-soft);
}

.search-result-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-result-main strong {
  font-weight: 600;
}

.search-result-main span {
  color: var(--muted);
  font-size: 14px;
}

.search-result-level {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.search-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .search-result {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .search-result-level {
    white-space: normal;
  }
}

@media (prefers-color-scheme: dark) {
  .search-results {
    background: var(--surface);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  }
}

/* =========================================================
   GLOBAL MENY – SKOLEKALKULATOR
   ========================================================= */

.global-menu[hidden] {
  display: none;
}

.global-menu {
  position: fixed;
  z-index: 1000;

  inset: 0;

  display: flex;
  justify-content: flex-end;

  padding: 72px 16px 16px;

  background: rgba(0, 0, 0, 0.18);
}

.global-menu-panel {
  width: min(100%, 320px);

  align-self: flex-start;

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--surface);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.global-menu-nav {
  display: grid;
}

.global-menu-nav a {
  padding: 15px 18px;

  border-bottom: 1px solid var(--line);

  color: var(--text);

  font-size: 15px;
  font-weight: 700;

  text-decoration: none;
}

.global-menu-nav a:last-child {
  border-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  .global-menu-nav a:hover {
    background: var(--surface-soft);
    color: var(--accent);
  }
}

@media (max-width: 620px) {
  .global-menu {
    padding: 66px 12px 12px;
  }

  .global-menu-panel {
    width: 100%;
  }

  .global-menu-nav a {
    padding: 16px;
  }
}


/* Planlagte skolenivåer */
.school-level-card.planned {
  background: var(--surface-soft);
  cursor: default;
}

.school-level-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.school-level-status {
  display: inline-flex;
  align-items: center;

  min-height: 24px;
  padding: 0 8px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: var(--surface);

  color: var(--muted);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .school-level-card.planned:hover {
    border-color: var(--line);
    transform: none;
  }
}

/* Dynamisk hovedmeny */
.menu-section-link {
  font-weight: 850 !important;
}

.menu-grade-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.menu-grade-links a {
  padding: 10px 12px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  font-weight: 750;
}

.menu-grade-links a:nth-child(3n) {
  border-right: 0;
}

@media (max-width: 620px) {
  .menu-grade-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-grade-links a:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .menu-grade-links a:nth-child(2n) {
    border-right: 0;
  }
}

/* Kompakt, voksen dynamisk meny */
.global-menu-panel {
  width: min(100%, 360px);
}

.global-menu-nav {
  display: block;
  padding: 6px 0;
}

.global-menu-nav a {
  border-bottom: 0;
  text-decoration: none;
}

.menu-top-links,
.menu-utility-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
}

.menu-top-links {
  border-bottom: 1px solid var(--line);
}

.menu-utility-links {
  border-top: 1px solid var(--line);
}

.menu-top-links a,
.menu-utility-links a {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.menu-section {
  padding: 10px 14px 11px;
  border-bottom: 1px solid var(--line);
}

.menu-section:last-of-type {
  border-bottom: 0;
}

.global-menu-nav .menu-section-link {
  display: inline-block;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800 !important;
}

.menu-grade-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 7px;
  border: 0;
  background: transparent;
}

.menu-grade-links a {
  padding: 2px 0;
  border: 0 !important;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.global-menu-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .menu-top-links a:hover,
  .menu-utility-links a:hover {
    background: var(--surface-soft);
    color: var(--accent);
  }

  .global-menu-nav .menu-section-link:hover,
  .menu-grade-links a:hover {
    background: transparent;
    color: var(--accent);
  }
}

@media (max-width: 620px) {
  .global-menu-panel {
    width: min(100%, 360px);
    margin-left: auto;
  }

  .menu-grade-links {
    display: flex;
    grid-template-columns: none;
  }

  .menu-grade-links a,
  .menu-grade-links a:nth-child(2n),
  .menu-grade-links a:nth-child(3n) {
    padding: 3px 0;
    border-right: 0;
  }
}
