@font-face {
  font-family: Archivo;
  src: url("./assets/fonts/archivo-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --display: Archivo,"Segoe UI",Arial,sans-serif;
  --serif: var(--display);
  --ink: #161e32;
  --teal: #075d52;
  --muted: #465763;
  --cream: #fafaf6;
  --paper: #fffffc;
  --line: #d4dedb;
  --gold: #83f8b3;
  font-family: var(--display);
  color: var(--ink);
}

h1,h2 {
  font-weight: 730;
  letter-spacing: -.053em;
}

.tool-heading h1,.tool-panel h2,.screen-slide h2 {
  font-family: var(--display);
}

.button-primary {
  background: #163e44;
}

.button-primary:hover {
  background: #142b33;
}

.button-accent {
  color: #112825;
  background: #82f7af;
}

.button-accent:hover {
  background: #afffcb;
}

:focus-visible {
  outline: 3px solid #8452bd;
  outline-offset: 3px;
}

@media screen {
  .site-header {
    position: relative;
    z-index: 4;
    background: #111526;
    color: #fafcf7;
    border-bottom: 1px solid #394152;
  }
  .site-header .header-inner {
    position: relative;
    min-height: 74px;
    gap: clamp(.55rem,2vw,1.2rem);
    flex-wrap: nowrap;
    padding-block: .5rem;
  }
  .site-header .brand-name {
    font: 730 1.08rem/1.02 var(--display);
    letter-spacing: -.025em;
    white-space: nowrap;
  }
  .site-header .brand-name span {
    font-size: .82rem;
    line-height: 1.25;
    letter-spacing: .025em;
    color: #a8f2cf;
  }
  .site-header .brand-icon {
    width: 43px;
    height: 43px;
    flex: none;
  }
  .primary-nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: clamp(.65rem,1.9vw,1.7rem);
    font-weight: 650;
    font-size: .91rem;
  }
  .primary-links {
    display: none;
    align-items: center;
    gap: clamp(.22rem,1.35vw,1.2rem);
  }
  .primary-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .44rem;
    border-radius: .32rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .primary-links a:hover,
  .primary-links a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .35rem;
  }
  .primary-links a[aria-current="page"] {
    background: #263448;
  }
  .primary-links .primary-nav-extra {
    display: none;
  }
  .primary-nav .emergency-nav {
    color: #ffca9f;
  }
  .section-menu > summary {
    display: flex;
    align-items: center;
    gap: .57rem;
    list-style: none;
    min-height: 44px;
    border: 1px solid #718793;
    border-radius: .42rem;
    padding: .52rem .85rem;
    color: #e7f6ef;
    font-size: .92rem;
    font-weight: 680;
    white-space: nowrap;
  }
  .section-menu > summary::-webkit-details-marker {
    display: none;
  }
  .menu-symbol {
    position: relative;
    flex: 0 0 1rem;
    width: 1rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .menu-symbol::before,
  .menu-symbol::after {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
  }
  .menu-symbol::before { transform: translateY(-5px); }
  .menu-symbol::after { transform: translateY(5px); }
  .section-menu[open] .menu-symbol { background: transparent; }
  .section-menu[open] .menu-symbol::before { transform: rotate(45deg); }
  .section-menu[open] .menu-symbol::after { transform: rotate(-45deg); }
  .section-menu > summary:hover,
  .section-menu[open] > summary {
    background: #293448;
  }
  .section-menu:not([open]) .nav-panel {
    display: none;
  }
  .nav-panel {
    position: absolute;
    z-index: 1;
    inset-inline-end: 0;
    inset-block-start: calc(100% + .25rem);
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    width: min(49rem,100%);
    max-height: calc(100vh - 5.6rem);
    max-height: calc(100dvh - 5.6rem);
    overscroll-behavior: contain;
    overflow-y: auto;
    gap: .95rem 1rem;
    padding: .95rem;
    border: 1px solid #637889;
    border-radius: .6rem;
    box-shadow: 0 12px 40px #10142340;
    background: #172033;
    color: #f1f8f4;
  }
  .nav-group-title {
    padding: 0 .62rem .42rem;
    margin: 0 0 .25rem;
    border-bottom: 1px solid #52697b;
    color: #b8e8d0;
    font-size: .87rem;
    font-weight: 740;
  }
  .nav-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-more > summary {
    min-height: 44px;
    padding: .64rem .62rem;
    border-radius: .35rem;
    color: #cae0da;
    cursor: pointer;
  }
  .nav-more > summary:hover,
  .nav-more[open] > summary {
    background: #223446;
  }
  .nav-more > ul {
    margin: .14rem 0 .22rem .62rem;
    padding-inline-start: .38rem;
    border-inline-start: 1px solid #52697b;
  }
  .nav-panel a {
    padding: .46rem .62rem;
    text-decoration: none;
    border-radius: .35rem;
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: .92rem;
  }
  .nav-panel a:hover,
  .nav-panel a[aria-current="page"] {
    background: #293e4e;
  }
  .nav-panel a[aria-current="page"] {
    box-shadow: inset 3px 0 #84f4ba;
    font-weight: 760;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  .site-header :focus-visible,.site-footer :focus-visible {
    outline-color: #84f4ba;
  }
  .site-footer {
    background: #111526;
  }
  :is(.grants-hero,.training-hero,.island-intro,.outage-hero,.business-hero,.setup-hero,.opportunities-hero) {
    background: linear-gradient(112deg,#101528 32%,#162f43 76%,#23465a);
    color: #fafcf9;
  }
  .tool-heading h1 {
    font-weight: 750;
    letter-spacing: -.055em;
  }
  .notice-copy h2,.place-panel h3,.guide-columns h3,.process-list h3 {
    font-weight: 650;
  }
  .site-footer strong {
    font-size: 1.1rem;
    letter-spacing: -.02em;
  }
}

@media screen and (min-width:820px) {
  .primary-links { display: flex; }
}

@media screen and (min-width:1070px) {
  .primary-links .primary-nav-extra { display: inline-flex; }
}

@media screen and (max-width:740px) {
  .nav-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media screen and (max-width:520px) {
  .nav-panel { grid-template-columns: minmax(0,1fr); }
}

@media screen and (max-width:380px) {
  .site-header .brand { gap: .53rem; }
  .site-header .brand-name {
    font-size: .96rem;
  }
  .site-header .brand-name span { font-size: .75rem; }
  .site-header .brand-icon {
    width: 36px;
    height: 36px;
  }
  .section-menu > summary {
    gap: .48rem;
    padding-inline: .62rem;
    font-size: .84rem;
  }
}

@media print {
  .site-header {
    display: none;
  }
}
