/* hawklynx.io site styles. No external fonts, scripts or trackers. */

/* Dark theme tokens (default on :root and when data-theme="dark") */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1222;
  --surface: #1a2332;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --muted: #8b9ab0;
  --accent: #22d3ee;
  --btn-bg: #22d3ee;
  --on-accent: #0c1222;
  --focus: #67e8f9;
  --border-ui: #64748b;
  --border: #334155;
  --accent-soft: rgba(34,211,238,.12);
  --side: var(--surface);
  --panel: var(--surface);
}

/* Light theme tokens (when data-theme="light") */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f1f7fb;
  --text: #0a2433;
  --text-2: #475569;
  --muted: #596a7f;
  --accent: #0a6983;
  --btn-bg: #0a6983;
  --on-accent: #ffffff;
  --focus: #0a6983;
  --border-ui: #64748b;
  --border: #d6e4ec;
  --accent-soft: rgba(10,105,131,.08);
  --side: var(--surface);
  --panel: var(--surface);
}

/* System preference light fallback when no explicit data-theme is saved */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #f1f7fb;
    --text: #0a2433;
    --text-2: #475569;
    --muted: #596a7f;
    --accent: #0a6983;
    --btn-bg: #0a6983;
    --on-accent: #ffffff;
    --focus: #0a6983;
    --border-ui: #64748b;
    --border: #d6e4ec;
    --accent-soft: rgba(10,105,131,.08);
    --side: var(--surface);
    --panel: var(--surface);
  }
}

/* Base elements */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--btn-bg);
  color: var(--on-accent);
  padding: 10px 14px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  left: 8px;
  top: 8px;
}

/* Layout */
#sidebar {
  width: 280px;
  background: var(--side);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.sidebar-header .brand {
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 4px;
}
.sidebar-header .brand a {
  color: var(--text);
  text-decoration: none;
}

.sidebar-header .by {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: 8px;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}


#sidebar .menu {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#sidebar li {
  margin-bottom: 6px;
}

#sidebar a.nav {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
}
#sidebar a.nav:hover, #sidebar a.nav[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-category {
  margin-top: 20px;
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.side-settings {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.settings-toggle {
  background: none;
  border: none;
  font-family: inherit;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}
.settings-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.settings-toggle[aria-expanded="true"] {
  color: var(--accent);
}
.settings-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.settings-toggle::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-right: 2px;
}
.settings-toggle[aria-expanded="true"]::after {
  transform: rotate(135deg);
}

#settings-panel[hidden] {
  display: none;
}
#settings-panel {
  margin-top: 8px;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-ui);
  border-radius: 4px;
  font-size: .9rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.side-contact {
  padding-top: 14px;
  font-size: .85rem;
  text-align: center;
}
.side-contact a {
  color: var(--accent);
  text-decoration: none;
  text-transform: none;
  letter-spacing: .5px;
  font-weight: 500;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.side-contact .addr {
  margin-top: 4px;
  color: var(--muted);
  letter-spacing: .5px;
  font-size: .8rem;
  word-break: break-word;
}

#menu-toggle {
  display: none;
}

#content {
  margin-left: 280px;
  padding: 48px 64px;
  max-width: 1040px;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
h1 {
  font-size: 2.2rem;
  margin: 0 0 .5em;
  letter-spacing: 1px;
  line-height: 1.2;
}
h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 2em 0 .5em;
}
h3 {
  font-size: 1.2rem;
  margin: 1.4em 0 .4em;
}
h4 {
  font-size: 1.05rem;
  margin: 1em 0 .3em;
}

p, li {
  font-size: 1.05rem;
  color: var(--text-2);
}
p {
  margin: 0 0 1.2em;
}
strong {
  color: var(--text);
  font-weight: 600;
}
hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.hero {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 2.2rem;
}
.hero .lead {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 500;
}


.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 11px;
  border-radius: 20px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 6px 8px 0;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 1.5rem 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card h2, .card h3 {
  margin: .2em 0 .5em;
  font-size: 1.3rem;
  color: var(--text);
}
.card p {
  font-size: 1rem;
  flex: 1;
  color: var(--text-2);
}
.card a.card-action, .card a.btn {
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  border: 0;
  font-size: 1rem;
  min-height: 48px;
  margin: 8px 10px 8px 0;
  cursor: pointer;
  text-align: center;
}
.btn:hover {
  opacity: .92;
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.ghost:hover {
  background: var(--accent-soft);
}
.btn.soon {
  background: var(--surface);
  color: var(--muted);
  border: 1px dashed var(--border-ui);
  cursor: not-allowed;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 1.6rem 0;
}
.panel h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

ul.clean {
  padding-left: 1.4em;
}
ul.clean li {
  margin-bottom: .6em;
}

.crumbs {
  font-size: .88rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
}
.crumbs a {
  color: var(--accent);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

.eco {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 1.2rem 0;
}
.eco div {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--text-2);
  font-size: .95rem;
}
.eco div strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* Brands logo display */
.brand-logo-wrap {
  margin-bottom: 16px;
}
.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
}
.brand-logo.logo-light-ink {
  display: block;
}
.brand-logo.logo-dark-ink {
  display: none;
}

:root[data-theme="light"] .brand-logo.logo-light-ink {
  display: none;
}
:root[data-theme="light"] .brand-logo.logo-dark-ink {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .brand-logo.logo-light-ink {
    display: none;
  }
  :root:not([data-theme]) .brand-logo.logo-dark-ink {
    display: block;
  }
}

/* Footer */
footer.site {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
}
footer.site p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .8em;
}
footer.site a {
  color: var(--accent);
}

/* Responsive / Mobile (under 900px) */
@media (max-width: 900px) {
  #sidebar {
    position: static;
    width: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
  }
  .sidebar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
  }
  .sidebar-header .brand {
    font-size: 1.1rem;
    margin: 0;
  }
  .sidebar-header .by {
    margin-bottom: 0;
  }
  .top-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 16px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-ui);
    border-radius: 4px;
    font-size: .9rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  #menu-toggle:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }
  #sidebar.open {
    min-height: 100vh;
  }
  #sidebar .menu {
    display: none;
    margin-top: 16px;
  }
  #sidebar.open .menu {
    display: flex;
  }
  #sidebar.open ~ #content {
    display: none;
  }
  #content {
    margin-left: 0;
    padding: 24px 16px;
  }
  h1 {
    font-size: 1.75rem;
  }
}

/* Print capability statement (/public-sector/) */
@media print {
  #sidebar, .skip, #theme-toggle, footer.site {
    display: none !important;
  }
  #content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-size: 11pt !important;
  }
  h1 { font-size: 18pt !important; }
  h2 { font-size: 14pt !important; color: var(--accent) !important; }
  h3 { font-size: 12pt !important; }
  p, li { font-size: 10.5pt !important; color: var(--text) !important; }
  .panel { border: 1px solid var(--border) !important; background: var(--bg) !important; }
}
