/*
Theme Name: Northwest Sky Imaging
Theme URI: https://dwstack.com/theme
Author: DW McEwing
Author URI: https://dwstack.com/theme
Description: A lightweight, responsive frame for Northwest Sky Imaging pages and flight desk tools.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northwest-sky-imaging-theme
*/
:root {
  --nsit-ink: #112c3c;
  --nsit-link: #09617d;
  --nsit-sky: #9adcec;
  --nsit-gutter: clamp(1rem, 4vw, 4rem);
  --nsit-width: 78rem;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--nsit-ink);
  background: white;
  font: 1rem/1.6 system-ui, -apple-system, sans-serif;
}
:where(img, video) { max-width: 100%; height: auto; }
:where(button, input, select, textarea) { font: inherit; }
:where(a) { color: var(--nsit-link); text-underline-offset: .2em; }
:where(h1, h2, h3) { line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
:where(h1) { font-size: clamp(2.15rem, 5vw, 4rem); }
:where(h2) { font-size: clamp(1.65rem, 3vw, 2.6rem); }
:focus-visible { outline: 3px solid #1384a4; outline-offset: 3px; }
.nsit-header :focus-visible, .nsit-footer :focus-visible { outline-color: var(--nsit-sky); }
.nsit-skip, .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.nsit-skip:focus, .screen-reader-text:focus {
  width: auto; height: auto; clip-path: none; z-index: 100;
  background: white; color: var(--nsit-ink); padding: .6rem 1rem;
}
.nsit-bar {
  width: min(var(--nsit-width), calc(100% - 2 * var(--nsit-gutter)));
  margin-inline: auto; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem;
}
.nsit-header, .nsit-footer { background: var(--nsit-ink); color: white; }
.nsit-header { position: relative; z-index: 5; border-bottom: 3px solid var(--nsit-sky); }
.nsit-header .nsit-bar { padding-block: 1rem; }
.nsit-brand {
  display: grid; line-height: 1.05; font-size: 1.3rem; font-weight: 650;
  letter-spacing: -.025em; text-decoration: none; color: white;
}
.nsit-brand span {
  font-size: .66rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--nsit-sky); margin-bottom: .32rem;
}
.nsit-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  max-width: min(60%, 18rem);
  padding: .35rem .75rem;
  border-radius: .3rem;
  background: #fff;
}
.nsit-header .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(4rem, 8vw, 5.5rem);
  object-fit: contain;
}
.nsit-nav { min-width: 0; }
.nsit-links, .nsit-links ul, .nsit-footer-links {
  list-style: none; margin: 0; padding: 0;
}
.nsit-links, .nsit-footer-links { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.nsit-links li { position: relative; }
.nsit-links a, .nsit-footer-links a {
  display: inline-flex; min-height: 44px; align-items: center; color: inherit;
  text-decoration: none; font-weight: 550; overflow-wrap: anywhere;
}
.nsit-links a:hover, .nsit-footer-links a:hover, .nsit-links [aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--nsit-sky);
}
.nsit-links .sub-menu {
  display: none; position: absolute; right: 0; z-index: 1;
  min-width: 12rem; padding: .5rem 1rem; background: var(--nsit-ink);
  box-shadow: 0 .4rem 1rem #10233226;
}
.nsit-links li:is(:hover, :focus-within) > .sub-menu { display: block; }
.nsit-links .sub-menu .sub-menu { position: static; min-width: 0; box-shadow: none; padding-left: .8rem; }
.nsit-toggle {
  min-height: 44px; padding: .35rem .9rem; background: transparent;
  color: white; border: 1px solid #7294a5; border-radius: .3rem; cursor: pointer;
}
.nsit-main { flex: 1; min-width: 0; }
.nsit-page { width: 100%; }
.nsit-page > :where(:not(.alignfull)) {
  max-width: min(68rem, calc(100% - 2 * var(--nsit-gutter))); margin-inline: auto;
}
.nsit-page > .alignwide { max-width: min(var(--nsit-width), calc(100% - 2 * var(--nsit-gutter))); }
.nsit-page > .alignfull { width: 100%; max-width: none; margin-inline: 0; box-sizing: border-box; }
.nsit-page > :where(.nsi) { width: calc(100% - 2 * var(--nsit-gutter)); }
.nsit-reading { width: min(48rem, calc(100% - 2 * var(--nsit-gutter))); margin: 2rem auto; }
.nsit-reading article + article { border-top: 1px solid #ccd9df; margin-top: 2rem; }
.nsit-footer { margin-top: auto; }
.nsit-footer .nsit-bar { padding-block: 1.2rem; font-size: .875rem; }
.nsit-footer p { margin: 0; }
@media (max-width: 52rem) {
  .nsit-nav { width: 100%; }
  .nsit-links { display: block; }
  .nsit-links .sub-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .nsit-links a { display: flex; }
  .nsit-footer .nsit-bar { align-items: flex-start; flex-direction: column; }
}
