/* AIM family style — shared layer for inner pages. Loads AFTER styles.css and
   re-points its custom properties at the itisnothuman family palette, then adds
   the family header/footer and neo-brutalist surface accents. */

:root {
  --bg: #f5f3ec;
  --bg-soft: #efede4;
  --bg-ink: #0b0d12;
  --surface: #ffffff;
  --ink: #16150f;
  --ink-soft: #3f3e37;
  --muted: #6c6b61;
  --faint: #9a998e;
  --line: rgba(20,19,12,.28);
  --line-soft: rgba(20,19,12,.12);
  --line-2: rgba(20,19,12,.2);
  --navy: #0b0d12;
  --accent: #12958a;
  --teal: #23b3a4;
  --mint: #9fe3c1;
  --mint-soft: #e7f5ed;
  --cyan: #38d4f5;
  --bs-sm: 3px 3px 0 var(--ink);
  --bs: 5px 5px 0 var(--ink);
  --bs-lg: 8px 8px 0 var(--ink);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --disp: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

body { background: var(--bg); }
h1, h2, h3, h4 { font-family: var(--disp); letter-spacing: -.02em; }

/* Header — itisnothuman flat bar, light */
.gnav { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 2px solid var(--ink); }
.gnav-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 14px; height: 70px; padding-left: 24px; }
.gnav-auth { display: flex; align-items: stretch; }
.gnav-cell { display: inline-flex; align-items: center; padding: 0 28px; border-left: 2px solid var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.gnav-cell:hover { background: var(--mint-soft); }
.gnav-cell.cta { background: var(--mint); color: var(--ink); }
.gnav-cell.cta:hover { background: #b8ecd2; }
.brand-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 800; letter-spacing: -.02em; font-size: 17px; white-space: nowrap; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--ink); flex: none; }
.brand .mark svg { width: 21px; height: 21px; }
.byline { display: inline-flex; align-items: center; gap: 6px; font-family: var(--disp); font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px 3px 4px; white-space: nowrap; transition: color .15s, border-color .15s; }
.byline img { width: 19px; height: 19px; border-radius: 50%; }
.byline:hover { color: var(--accent); border-color: var(--teal); }
@media (max-width: 1240px) { .byline span { display: none; } .byline { padding: 3px; border-color: transparent; } }
.brand-group { align-self: center; }
.gnav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; padding-right: 12px; }
.gnav-links a { font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 8px 13px; border-radius: 999px; white-space: nowrap; transition: color .14s, background .14s; }
.gnav-links a:hover { color: var(--ink); background: rgba(20,19,12,.05); }
.nav-toggle { display: none; align-self: center; margin-right: 16px; width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.gnav-menu { display: contents; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 70; }
  .brand-group { position: relative; z-index: 70; }
  .gnav { backdrop-filter: none; background: var(--bg); }
  .gnav-menu { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: rgba(245,243,236,.98); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .gnav.open .gnav-menu { opacity: 1; pointer-events: auto; }
  .gnav-links { flex-direction: column; align-items: center; margin: 0; gap: 4px; }
  .gnav-links a { font-family: var(--disp); font-size: 26px; font-weight: 700; color: var(--ink); padding: 9px 18px; }
  .gnav-auth { flex-direction: column; align-items: stretch; margin: 24px 0 0; width: min(320px, 78vw); gap: 10px; }
  .gnav-cell { justify-content: center; border-left: 0; border: 1.5px solid var(--ink); border-radius: 999px; height: 52px; }
  .gnav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gnav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .gnav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

footer { background: var(--navy); color: #eef1f6; padding: 54px 0 40px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 800; font-size: 16px; }
.foot-brand .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--navy); flex: none; }
.foot-brand .mark svg { width: 19px; height: 19px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.foot-links a { color: rgba(238,241,246,.72); transition: color .15s; }
.foot-links a:hover { color: var(--mint); }
.foot-studio { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: rgba(238,241,246,.6); }
.foot-studio .made { display: inline-flex; align-items: center; gap: 8px; }
.foot-studio .made img { width: 20px; height: 20px; border-radius: 50%; }


/* Family accents on the Swiss content components */
.btn { border: 2px solid var(--ink); box-shadow: var(--bs-sm); border-radius: 999px; font-weight: 700; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #b8ecd2; color: var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.doc-sec, .card, .doc-fig, .doc-note, .eu-doc, .duty, .art { border-color: var(--ink); }
.doc-fig { border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--bs-sm); background: var(--surface); }
.doc-note { border: 2px solid var(--ink); box-shadow: var(--bs-sm); background: var(--mint-soft); }
details { border: 2px solid var(--ink) !important; border-radius: 14px; background: var(--surface); box-shadow: var(--bs-sm); }
pre, code { font-family: var(--mono); }
table th { font-family: var(--disp); }
.gnav-links a.here, .dd-menu a.here, .dd-toggle.here { color: var(--ink); background: rgba(20,19,12,.06); border-radius: 999px; }

/* Resources dropdown (desktop) */
.gnav-dd { position: relative; }
.dd-toggle { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 8px 13px; border-radius: 999px; cursor: pointer; transition: color .14s, background .14s; }
.dd-toggle:hover, .gnav-dd.open .dd-toggle { color: var(--ink); background: rgba(20,19,12,.05); }
.dd-caret { width: 13px; height: 13px; transition: transform .16s ease; }
.gnav-dd.open .dd-caret { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 176px; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--bs); padding: 6px; display: none; flex-direction: column; z-index: 70; visibility: visible; opacity: 1; pointer-events: auto; transition: none; }
.gnav-dd.open .dd-menu { display: flex; }
/* Invisible hover bridge across the toggle-to-menu gap */
.dd-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dd-menu a { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 9px 13px; border-radius: 9px; white-space: nowrap; }
.dd-menu a:hover { background: var(--mint-soft); }

@media (max-width: 1040px) {
  .gnav-dd { display: contents; }
  .dd-toggle { display: none; }
  .dd-menu { display: flex !important; position: static; transform: none; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0; flex-direction: column; align-items: center; gap: 8px; }
  .dd-menu::before { content: none; }
  .dd-menu a { font-family: var(--disp); font-size: 26px; font-weight: 700; color: var(--ink); padding: 9px 18px; }
}


/* Support / card grids — equal-height cards, buttons aligned to the bottom */
.grid .card { display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--bs-sm); }
.grid .card h3 { font-family: var(--disp); }
.grid .card p { margin-bottom: 20px; }
.grid .card .btn { margin-top: auto; }

/* Dropdown also opens on hover (desktop) — no JS required */
@media (min-width: 1041px) {
  .gnav-dd:hover .dd-menu,
  .gnav-dd:focus-within .dd-menu { display: flex; }
}
