/* IC frame (Steve's preferred layout, Nov 12 2026): the same header, tabs and
   left menu as IC Wizard's Light theme — black header, aqua active tab
   and My account, IC blue on the menu. The pages themselves keep their own
   styles; js/ic-frame.js adds the menu on tool pages. */
.ic-head { position: sticky; top: 0; z-index: 100; background: #000; border-bottom: 0; backdrop-filter: none; display: flex; flex-direction: column; }
.ic-head-row { display: flex; align-items: center; gap: 16px; height: 70px; padding: 0 24px; max-width: none; }
.ic-brand img.ic-brand-mark { height: 44px; filter: none; }
.ic-brand-name { font-size: 11px; letter-spacing: 0.16em; font-weight: 500; color: #fff; white-space: nowrap; }
.ic-search { position: relative; margin-left: auto; width: min(350px, 34vw); }
.ic-search input { width: 100%; height: 38px; padding: 0 44px 0 12px; border-radius: 6px; border: 1px solid #2a2d33; background: #111214; color: #eaecef; font-size: 13px; }
.ic-search input::placeholder { color: #94a3b8; }
.ic-search kbd { position: absolute; right: 8px; top: 9px; font-size: 10px; padding: 2px 5px; border-radius: 4px; border: 1px solid #2a2d33; color: #94a3b8; font-family: inherit; }
.ic-search-results { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.18); padding: 6px; display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.ic-search-results[hidden] { display: none; }
.ic-search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #0f172a; font-size: 13px; }
.ic-search-results a span { color: #64748b; font-size: 11px; }
.ic-search-results a:hover, .ic-search-results a[aria-selected="true"] { background: #eff6ff; color: #2563eb; }
.ic-search-results p { margin: 0; padding: 8px 10px; color: #64748b; font-size: 13px; }
.ic-head .header-nav.ic-head-tools { flex-wrap: nowrap; gap: 10px; }
.ic-head .header-nav a.ic-account { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 6px; background: #a3feff; color: #0f172a; font-size: 12px; font-weight: 650; }
.ic-head .header-nav a.ic-account:hover { background: #c7feff; color: #0f172a; }
.ic-head .header-nav a.ic-link { background: transparent; color: #cbd5e1; border-radius: 6px; font-weight: 600; }
.ic-head .header-nav a.ic-link:hover { color: #fff; background: #0a0a0a; }
.ic-tabs { display: flex; align-items: stretch; height: 52px; padding: 0 24px; overflow-x: auto; scrollbar-width: none; }
.ic-tab { display: inline-flex; align-items: center; padding: 0 24px; font-size: 12px; color: #cbd5e1; border-bottom: 2px solid transparent; white-space: nowrap; }
.ic-tab:hover { color: #fff; }
/* Per-page pill sets: a page with <body data-ic-pills="wizard"> shows Home plus the
   pills marked data-ic-set="wizard" and hides the standard four. */
.ic-tab[data-ic-set] { display: none; }
body[data-ic-pills] .ic-tabs .ic-tab:not([data-ic-tab="home"]) { display: none; }
body[data-ic-pills="wizard"] .ic-tabs .ic-tab[data-ic-set~="wizard"] { display: inline-flex; }
.ic-tab[aria-current="page"] { background: #0a0a0a; color: #a3feff; border-bottom-color: #a3feff; font-weight: 750; }
/* The left menu on tool pages. */
.ic-side { position: fixed; top: 122px; left: 0; bottom: 0; width: 205px; overflow-y: auto; background: #f1f5f9; border-right: 1px solid #e2e8f0; padding: 28px 12px 18px; display: flex; flex-direction: column; gap: 14px; z-index: 50; }
.ic-side-head { margin: 0 10px; font-size: 10.5px; font-weight: 750; letter-spacing: 0.14em; color: #2563eb; }
.ic-side-list { display: grid; gap: 4px; }
.ic-side-item { display: flex; flex-direction: column; justify-content: center; min-height: 40px; padding: 4px 12px; border-radius: 7px; font-size: 13px; color: #475569; }
.ic-side-item small { font-size: 10.5px; color: #94a3b8; }
.ic-side-item:hover { color: #0f172a; }
.ic-side-item[aria-current="page"] { background: #fff; color: #2563eb; font-weight: 700; box-shadow: inset 2px 0 0 #2563eb, 0 1px 2px rgba(15, 23, 42, 0.06); }
.ic-side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #e2e8f0; font-size: 12px; display: grid; gap: 6px; }
.ic-side-foot a { color: #2563eb; font-weight: 650; }
/* Every page block beside the menu (pages have no common wrapper). */
body.ic-has-side > :not(header):not(.ic-side):not(.mobile-nav):not(script):not(link):not(style):not(noscript) { margin-left: 205px; }
@media (max-width: 1000px) {
  .ic-head-row { padding: 0 12px; gap: 10px; }
  .ic-search, .ic-brand-name { display: none; }
  .ic-head .header-nav.ic-head-tools { display: none; }
  .ic-head .hamburger { margin-left: auto; }
  .ic-tabs { padding: 0 6px; }
  .ic-tab { padding: 0 14px; }
  .ic-side { display: none; }
  body.ic-has-side > :not(header):not(.ic-side):not(.mobile-nav):not(script):not(link):not(style):not(noscript) { margin-left: 0; }
}
/* Audit round 3 (Nov 12 2026). F09: one availability badge, the same in the menu,
   search and on the page. F10: breadcrumb + Back on every tool page. F15: the
   phone menu is one tap-to-open row; search opens from an icon. */
.ic-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.ic-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ic-badge-preview { background: #ecfdf3; color: #15803d; }
.ic-badge-plan { background: #eff6ff; color: #2563eb; }
.ic-badge-tba { background: #fff7e6; color: #92400e; }
.ic-badge-soon { background: #f1f5f9; color: #64748b; }
.ic-side-item .ic-badge { margin-top: 3px; align-self: flex-start; }
.ic-side-group { margin: 14px 10px 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: #94a3b8; }
.ic-crumbs { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 34px 0; font-size: 12.5px; color: #94a3b8; }
.ic-crumbs nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ic-crumbs nav a { color: #2563eb; font-weight: 650; }
.ic-crumbs nav b { color: #0f172a; font-weight: 600; }
.ic-back { color: #2563eb; font-weight: 650; font-size: 13px; }
.ic-mside { display: none; }
.ic-search-toggle { display: none; }
.ic-acct-m { display: none; }
@media (max-width: 1000px) {
  .ic-crumbs { padding: 10px 16px 0; }
  .ic-mside { display: block; margin: 12px 16px 0; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; }
  .ic-mside summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 13px; font-weight: 700; color: #2563eb; min-height: 44px; }
  .ic-mside summary::-webkit-details-marker { display: none; }
  .ic-mside summary::after { content: "▾"; color: #94a3b8; }
  .ic-mside[open] summary::after { content: "▴"; }
  .ic-mside .ic-side-list { border-top: 1px solid #e2e8f0; padding: 6px; }
  .ic-mside .ic-side-item { min-height: 44px; }
  .ic-search-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; border: 1px solid #2a2d33; background: #111214; color: #cbd5e1; font-size: 16px; cursor: pointer; margin-left: auto; }
  .ic-head .hamburger { margin-left: 0; }
  .ic-head.ic-search-open .ic-search { display: block; position: absolute; left: 12px; right: 12px; top: 62px; width: auto; z-index: 101; }
  .ic-head.ic-search-open .ic-search input { font-size: 16px; }
}
.tb-card-facts { font-size: 12px; color: #64748b; margin-top: 6px; }

/* Phone header: a signed-in member's My Account link sits left of search and the menu. */
@media (max-width: 1000px) {
  .ic-acct-m { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; margin-left: auto; border-radius: 999px; border: 1.5px solid #e3e0d8; background: #fff; color: #111827; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
  .ic-acct-m:focus-visible { outline: 3px solid #1f6feb; outline-offset: 3px; }
  .ic-in .ic-acct-m ~ .ic-search-toggle, .ic-in .ic-acct-m ~ .hamburger { margin-left: 0; }
}
