/* NativeWork: the brand layer (NativeWork Brand Bible 1.7; belongs to Centipod Brand Bible 1.32, section 8.10; kit 1.3.2).
   The kit build publishes this file as brands/nativework/css/brand.css, and a page loads it from the CDN, from the same
   host and version as the kit and after it. The site keeps no local copy:
     https://cdn.centipod.io/v1/css/centipod.css                    (DEV: cdn.dev.centipod.io, UAT: cdn.uat.centipod.io)
     https://cdn.centipod.io/v1/brands/nativework/css/brand.css     (this file)
   The kit is the baseline for spacing, layout, type scale, radius, components, forms, tables, the busy layer and the
   not-found page, so this file redefines none of them. NativeWork keeps the Centipod ground and the Centipod palette,
   so it sets no colour token and no font stack: the action colours (Burnt Orange), the mark, the block colours, the
   status tints, the spinner colours (Logo Navy arc, which is also the blue of the NativeWork logo) and the fonts
   (Albert Sans, Inter, Source Code Pro) are the kit's, and so is the focus colour (--color-focus, the line of an
   active or tabbed-to control), which is ink:
     light  ink #0F2133 on base #FFFFFF 16.3:1, on surface #F8FAFC 15.6:1
     dark   ink #F8FAFC on base #0F2133 15.6:1, on surface #12293F 14.2:1
   All four are above the 4.5:1 the Bible asks of a brand. If NativeWork ever sets a colour of its own, write it for
   light (:root), for :root[data-theme="dark"] and, with the same values, under
   @media (prefers-color-scheme: dark) { :root:not([data-theme]) { ... } }, and keep the 4.5:1.
   What follows is NativeWork's own and nothing else: the frame of the not-found template (a simplified header and
   footer; a real site keeps its own), with the class prefix nw. It is built from the kit's tokens only. Distances are
   the kit's classes (.cp-actions, .cp-card, .cp-form and .cp-field, .cp-flow; Bible 3.6), so this file sets none for
   content; the frame below keeps only the header and footer distances, which the kit lacks.
   The not-found page itself is the kit's .cp-notfound, and the busy layer is the kit's .cp-busy (js/busy.js, no
   data-busy-prefix, so the kit's own prefix applies): neither needs a NativeWork rule. Form elements and tables are
   the kit's .cp-input, .cp-select, .cp-check, .cp-radio, .cp-switch, .cp-file, .cp-table and the rest; none is
   redrawn here. */

/* The header: the logo and, always top right on the same row, the Light, Dark, System control;
   the menu wraps underneath on a phone and sits between them from 1024 px (Brand Bible 6.12). */
.nw-bar { border-bottom: var(--hairline) solid rgb(var(--color-line)); }
.nw-bar__inner { display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-4) var(--space-6); min-height: 72px; box-sizing: border-box;
  padding-top: var(--space-3); padding-bottom: var(--space-3); }
.nw-logo { order: 1; flex: 0 1 auto; display: inline-flex; align-items: center; min-width: 24px; min-height: 24px; }   /* the logo is a 20 px high link: a 24 px target */
.nw-logo img { display: block; width: 128px; height: auto; max-width: 100%; }   /* 112 px is the least */
.nw-theme { order: 2; margin-left: auto; display: inline-flex; }
.nw-menu { order: 3; width: 100%; }
@media (min-width: 480px) { .nw-logo img { width: 176px; } }
@media (min-width: 1024px) {
  .nw-bar__inner { column-gap: var(--space-12); }
  .nw-menu { order: 2; width: auto; flex: 1 1 auto; }
  .nw-theme { order: 3; margin-left: 0; }
}

/* Each theme shows its own logo master: by data-theme, or by the device while none is set. The reversed master is
   the file nativework-logo-on-blue.svg (white pieces and name); it serves Harbour Midnight and Centipod blue alike. */
.nw-logo .logo-dark { display: none; }
:root[data-theme="dark"] .nw-logo .logo-light { display: none; }
:root[data-theme="dark"] .nw-logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .nw-logo .logo-light { display: none; }
  :root:not([data-theme]) .nw-logo .logo-dark { display: block; }
}

/* The footer: the legal links and Cookie preferences. */
.nw-footer { border-top: var(--hairline) solid rgb(var(--color-line));
  padding: var(--space-8) 0 var(--space-12); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: var(--space-4); }
.nw-footer p { margin: 0; }
.nw-footer ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0;
  gap: var(--space-2) var(--space-6); }
/* A target is at least 24 px high (the accessibility floor, Brand Bible 1.32, section 6.1): the Cookie preferences button
   keeps its text-link look with a 24 px minimum height and some side padding for the hit area; the links share the height. */
.nw-footer a, .nw-footer button { display: inline-flex; align-items: center; min-height: 24px; }
.nw-footer button { font: inherit; color: inherit; background: none; border: 0; padding: 0 var(--space-1);
  cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px; }
