/* iQ-Studio docs — page chrome shared by every docs page: top nav bar, mobile menu, footer.
   Colours come from iq-tokens.css (--core-*, --ac*); dark/light is switched by [data-iq-theme] on the page root.
   Edit the look HERE once — pages only reference these class names. */

/* ---- top navigation bar ---- */
.iq-navwrap { height:76px; }
.iq-nav { position:fixed; z-index:100; top:18px; left:24px; right:24px; display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; row-gap:10px; column-gap:12px; padding:10px 12px; border-radius:999px; backdrop-filter:blur(14px); transition:background 1s ease, border-color 1s ease; background:var(--core-nav-bg); border:1px solid var(--core-line); box-shadow:0 10px 40px rgba(6,12,30,.2); }

.iq-brand, .iq-brand:hover { flex:none; white-space:nowrap; display:flex; align-items:center; gap:8px; font-size:17px; font-weight:700; letter-spacing:-.015em; transition:color 1s ease; color:var(--core-fg); }
.iq-brand__icon { display:block; height:40px; width:auto; }
.iq-brand__sep { width:1px; height:28px; background:currentColor; opacity:.4; margin:0 6px; }
.iq-brand__word { font-size:14px; font-weight:300; letter-spacing:.3em; }
[data-iq-theme="dark"] .iq-brand__icon--light, [data-iq-theme="light"] .iq-brand__icon--dark { display:none; }

.iq-nav__links { flex:1 1 auto; min-width:0; overflow:hidden; display:flex; justify-content:center; row-gap:6px; column-gap:2px; white-space:nowrap; font-size:14px; font-weight:500; transition:color 1s ease; color:var(--core-fg-muted); }
.iq-nav__link { padding:9px 18px; border-radius:999px; color:inherit; transition:background .25s ease, color .25s ease; }
.iq-nav__link:hover { background:var(--core-chip-bg); color:var(--core-fg); }
a.iq-nav__link--current, a.iq-nav__link--current:hover { color:var(--core-fg); }
.iq-nav__link--current { padding:9px 18px; border-radius:999px; font-weight:600; transition:background 1s ease, color 1s ease; background:var(--core-nav-pill); color:var(--core-fg); }

.iq-nav__actions { flex:none; display:flex; align-items:center; gap:8px; margin-left:auto; white-space:nowrap; }
.iq-search { flex:none; white-space:nowrap; display:flex; align-items:center; gap:9px; padding:9px 15px; border-radius:999px; cursor:pointer; font-size:12.5px; transition:border-color 1s ease, background 1s ease, color 1s ease; border:1px solid var(--core-line); background:var(--core-panel-bg); color:var(--core-fg-muted); }
.iq-search__kbd { padding:2px 7px; border-radius:5px; font-family:'JetBrains Mono',monospace; font-size:10px; transition:background 1s ease; background:var(--core-chip-bg); }

/* round 38px icon buttons: palette, mobile menu, theme switch, GitHub */
.iq-roundbtn, .iq-roundbtn:hover { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; cursor:pointer; transition:border-color 1s ease, color 1s ease; border:1px solid var(--core-line); color:var(--core-fg-muted); }
.iq-roundbtn--menu { display:none; }

/* accent palette dropdown */
.iq-pal { position:relative; display:flex; flex:none; }
.iq-pal__swatch { width:15px; height:15px; border-radius:50%; background:var(--ac); box-shadow:0 0 8px var(--ac); }
.iq-pal__menu { position:absolute; top:46px; right:0; z-index:80; display:flex; flex-direction:column; gap:2px; min-width:190px; padding:10px; border-radius:14px; transition:background 1s ease, border-color 1s ease; background:var(--core-menu-bg); border:1px solid var(--core-line); box-shadow:0 18px 50px rgba(4,8,20,.35); }
.iq-pal__title { padding:4px 10px 8px; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.18em; text-transform:uppercase; transition:color 1s ease; color:var(--core-fg-muted); }
.iq-pal__item { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; cursor:pointer; font-size:12.5px; font-weight:500; color:var(--core-fg); }
.iq-pal__item:hover { background:rgba(128,140,180,.14); }
.iq-pal__dot { width:12px; height:12px; border-radius:50%; flex:none; }
.iq-pal__tick { margin-left:auto; color:var(--ac); }

/* mobile menu (opened by the hamburger) */
.iq-mobscrim { position:fixed; inset:0; z-index:98; background:rgba(4,8,18,.45); }
.iq-mobmenu { position:fixed; top:74px; left:18px; right:18px; z-index:99; display:flex; flex-direction:column; gap:2px; padding:10px; border-radius:14px; border:1px solid var(--core-line); background:var(--core-bg); box-shadow:0 24px 60px rgba(0,0,0,.45); }
.iq-mobmenu a, .iq-mobmenu a:hover { padding:12px 14px; border-radius:9px; font-size:14.5px; font-weight:600; color:var(--core-fg); text-decoration:none; }

/* narrower screens: search box and link row collapse step by step */
@media (max-width: 1280px) {
  .gs-searchlbl { display:none; }
  .iq-nav__links > a, .iq-nav__links > span { padding-left:12px; padding-right:12px; }
}
@media (max-width: 1080px) {
  .iq-search { display:none; }
  .iq-nav__links > a, .iq-nav__links > span { padding-left:10px; padding-right:10px; font-size:13px; }
}
@media (max-width: 880px) { .iq-nav__links { display:none; } }

/* phones: hamburger replaces the link row */
@media (max-width: 880px) {
  .iq-roundbtn--menu { display:grid; }
  .iq-nav { flex-wrap:nowrap; top:10px; left:10px; right:10px; column-gap:6px; padding:8px 12px; }
  .iq-nav .iq-roundbtn--github { display:none; }
  .iq-nav > .iq-brand { font-size:15px; gap:8px; }
  .iq-nav .iq-roundbtn { width:34px; height:34px; }
}

/* ---- footer ---- */
.iq-footer { display:flex; align-items:center; gap:36px; padding:40px 56px; font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; transition:border-color 1s ease, color 1s ease; border-top:1px solid var(--core-line); color:var(--core-fg-muted); }
.iq-footer__links { display:flex; gap:22px; margin-left:auto; }
.iq-footer__links a { letter-spacing:.1em; }
@media (max-width: 700px) {
  .iq-footer { flex-wrap:wrap; padding:28px 18px; gap:14px 20px; }
  .iq-footer__links { margin-left:0; flex-wrap:wrap; gap:10px 18px; }
}

/* Link button used across pages: tinted pill with an accent border (matches the Home page guide links) */
.iq-btn { display:inline-flex; align-items:center; gap:8px; align-self:flex-start; padding:9px 16px; border-radius:999px; font-size:13px; font-weight:600; line-height:1.4; text-decoration:none; color:var(--ac); background:color-mix(in srgb, var(--ac) 10%, transparent); border:1px solid color-mix(in srgb, var(--ac) 35%, transparent); transition:border-color .25s ease, background .25s ease; }
.iq-btn:hover { color:var(--ac); background:color-mix(in srgb, var(--ac) 18%, transparent); }
