/* Interview prep pages, /interview-questions (26 Oct 2026), and the prep
   section on a company hub. Loaded by those pages alone, so page.css and its
   ?v= stay as they are on every other page. Written against the tokens in
   styles.css; nothing here moves on hover. */

.iq-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.iq-go {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border: 1px solid var(--cta); border-radius: var(--r-pill);
  background: var(--cta); color: var(--cta-ink);
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: transform var(--d-press, .12s) ease-out, filter .18s;
}
.iq-go:active { transform: scale(.975); }
.iq-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.iq-hub { font-size: 14px; color: var(--ink-15); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .iq-go:hover { filter: brightness(1.06); }
}

.iq-n {
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: var(--card-2); border: 1px solid var(--rule);
  border-radius: var(--r-pill); padding: 2px 9px; font-variant-numeric: tabular-nums;
}

.iq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.iq {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-2);
  padding: 18px 20px; min-width: 0;
}
.iq-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.iq-meta span {
  font-size: 12px; color: var(--ink-2); border: 1px solid var(--rule);
  border-radius: var(--r-pill); padding: 2px 9px;
}
.iq-q {
  margin: 12px 0 0; font-size: 16px; font-weight: 500; line-height: 1.5;
  color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere;
}
.iq-code {
  margin: 12px 0 0; padding: 12px 14px; overflow-x: auto;
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r);
  font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--ink-15);
  white-space: pre; tab-size: 4;
}
.iq-opts {
  margin: 12px 0 0; padding-left: 26px; list-style: upper-alpha;
  display: grid; gap: 5px; font-size: 14.5px; line-height: 1.5; color: var(--ink-15);
}
.iq-opts li { overflow-wrap: anywhere; }
.iq-opts li::marker { color: var(--ink-3); font-weight: 500; }

.iq-ans { margin-top: 14px; }
.iq-ans summary {
  display: inline-flex; align-items: center; height: 32px; padding: 0 13px;
  border: 1px solid var(--rule-2); border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none;
}
.iq-ans summary::-webkit-details-marker { display: none; }
.iq-ans summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.iq-ans[open] summary { background: var(--card-2); }
@media (hover: hover) and (pointer: fine) {
  .iq-ans summary:hover { border-color: var(--ink-3); }
}
.iq-ans p { margin: 10px 0 0; max-width: 72ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-15); text-wrap: pretty; }
.iq-ans .iq-right { font-weight: 600; color: var(--ink); }

.iq-src { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.iq-src a { color: var(--ink-15); text-underline-offset: 3px; }

/* The company hub's section: three questions, each a way in. */
.iq-peek { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.iq-peek a {
  display: block; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--card); color: var(--ink-15); text-decoration: none;
  font-size: 14px; line-height: 1.5; overflow-wrap: anywhere;
}
.iq-peek span { display: block; margin-bottom: 3px; font-size: 12px; color: var(--ink-2); }
.iq-peek a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .iq-peek a:hover { border-color: var(--rule-2); }
}

/* The index of employers. */
.iq-cos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px;
}
.iq-cos a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--card);
  text-decoration: none;
}
.iq-cos b { font-size: 15px; font-weight: 600; color: var(--ink); }
.iq-cos span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.iq-cos a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .iq-cos a:hover { border-color: var(--rule-2); }
}

@media (max-width: 480px) {
  .iq { padding: 16px; }
  .iq-code { font-size: 12.5px; }
}
