/*
  Site styles. Colors are the Wolfe Research palette:
    Dark Blue  #001739  header
    Blue       #002c72  text, table header
    Wolfe Blue #0a4eb7  links and buttons (accent, used sparingly)
    Light Blue #d9e6f3  page background
    Orange     #ffa500  keyboard-focus highlight only
  Font: Nunito Sans, served from this site (see the @font-face rule).
*/

:root {
  --dark-blue: #001739;
  --blue: #002c72;
  --wolfe-blue: #0a4eb7;
  --light-blue: #d9e6f3;
  --orange: #ffa500;
  --white: #ffffff;
}

/* One variable font file covers every weight (200-1000). */
@font-face {
  font-family: "Nunito Sans";
  src: url("/_assets/fonts/nunito-sans-latin-variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--light-blue);
  color: var(--blue);
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--dark-blue);
  color: var(--white);
}
.logo-link { display: inline-flex; }
.logo-link img { display: block; height: 44px; width: 44px; }
.site-title { font-size: 1.25rem; font-weight: 700; }

/* ---- Page body ---- */
.content {
  max-width: 60rem;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.5rem;
}
@media (max-width: 64rem) {
  .content { margin: 1rem; }
}

h1 { margin-top: 0; font-size: 1.5rem; }

a { color: var(--wolfe-blue); }

/* Keyboard focus: dark outline plus orange halo, visible on any background. */
a:focus-visible {
  outline: 3px solid var(--dark-blue);
  box-shadow: 0 0 0 6px var(--orange);
}

/* ---- Breadcrumbs: Home / docs / windows ---- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.breadcrumbs li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--blue);
}
.breadcrumbs a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

/* ---- "Up one level" button ---- */
.button {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--wolfe-blue);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.25rem;
}
.button:hover { background: var(--blue); }

/* ---- Folder / file table ---- */
.listing {
  width: 100%;
  border-collapse: collapse;
}
.listing th,
.listing td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--light-blue);
}
.listing thead th {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}
.listing tbody tr:hover { background: rgba(217, 230, 243, 0.45); }
.listing .number { text-align: right; white-space: nowrap; }
.listing .modified { white-space: nowrap; }

/* A trailing slash marks folders; files and folders are otherwise plain links. */
.listing a.folder { font-weight: 700; }
.listing a.folder::after { content: "/"; }

/* On narrow screens drop the date column so names have room. */
@media (max-width: 36rem) {
  .listing .modified { display: none; }
}

.notice {
  padding: 0.75rem 1rem;
  background: var(--light-blue);
  border-radius: 0.25rem;
}
