/* The public Integrations directory (central/integrations/index.blade.php, ADR 0067 P1): the plan's navy mock (D5,
   "navy, like Armhive"), on the public site's shell. Colours from landing-home.css's brand tokens (--h-*), set on
   .ig as the page's own; no new colour is invented. landing.css pads every <section> by 5rem, so each one here sets its
   own padding. The menu is fixed side rails, so the hero starts below them and the filters stick under them. */

.ig-main { background: #0f1626; }
.ig-main::before { opacity: 0.06; filter: invert(1); } /* the page lattice, faint on the navy (as the contact page) */

.ig {
    --ig-page: #0f1626;
    --ig-card: var(--h-950);
    --ig-ink: var(--h-50);
    --ig-text: rgb(238 255 250 / 0.72);
    --ig-line: rgb(238 255 250 / 0.11);
    --ig-line-2: rgb(238 255 250 / 0.22);
    --ig-chip: rgb(238 255 250 / 0.07);
    --ig-on: var(--h-400);
    --ig-on-ink: var(--h-950);
    --ig-acc: var(--h-accent-on-dark);
    --ig-soft: rgb(102 208 151 / 0.14);
    color: var(--ig-ink);
    font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
}
.ig :focus-visible { outline: 2px solid var(--ig-acc); outline-offset: 2px; }
.ig a { color: inherit; text-decoration: none; }
.ig-js .ig-nojs { display: none; }

/* ── The hero: the search and the trades ── */
.ig-hero { position: relative; isolation: isolate; max-width: 900px; margin: 0 auto; padding: 136px 24px 36px; text-align: center; }
.ig-hero__glow {
    position: absolute; inset: 0 -40vw; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 34% 70% at 50% 0%, rgb(31 133 79 / 0.32), transparent 72%);
}
.ig-eyebrow { margin: 0; font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; line-height: 20px; color: var(--ig-acc); }
.ig-title {
    max-width: 760px; margin: 12px auto 0;
    font-family: "IBM Plex Sans", "Geist", ui-sans-serif, system-ui, sans-serif; font-size: 52px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em;
    color: #fff; text-wrap: balance;
}
.ig-lead { max-width: 640px; margin: 16px auto 0; font-size: 17px; line-height: 28px; color: var(--ig-text); text-wrap: balance; }
.ig-search {
    display: flex; align-items: center; gap: 10px; max-width: 580px; height: 56px; margin: 28px auto 0; padding: 0 6px 0 20px;
    border-radius: 999px; background: #fff; color: var(--h-950); box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.6);
}
.ig-search:focus-within { box-shadow: 0 0 0 3px var(--h-400), 0 18px 40px -20px rgb(0 0 0 / 0.6); }
.ig-search > i { font-size: 18px; color: rgb(21 30 49 / 0.5); }
.ig-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: var(--h-950); font-size: 16px; }
.ig-search input::placeholder { color: rgb(21 30 49 / 0.55); }
.ig-search input:focus-visible { outline: 0; }
.ig-search__go { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--h-400); color: var(--h-950); font-weight: 700; }
.ig-trades { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.ig-trade {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px;
    border: 1px solid rgb(238 255 250 / 0.2); color: var(--h-on-dark); font-size: 14px; font-weight: 500; white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ig-trade:hover { border-color: rgb(238 255 250 / 0.45); color: #fff; }
.ig-trade[aria-current="true"] { background: var(--ig-on); border-color: transparent; color: var(--ig-on-ink); font-weight: 600; }

/* ── The body: the filters beside the cards ── */
.ig-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; max-width: 1392px; margin: 0 auto; padding: 32px 28px 80px; }
/* the <details> itself sticks: its content box is only as tall as the filters, so a sticky child can't move */
.ig-side { position: sticky; top: 104px; align-self: start; min-width: 0; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; margin: -2px; }
.ig-side__toggle { display: none; }
/* wide and still folded (no script): its bar stays, so the filters can be opened */
.ig-side:not([open]) > .ig-side__toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ig-line); border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.ig-side__toggle::-webkit-details-marker { display: none; }
.ig-fgs { display: grid; gap: 26px; align-content: start; }
.ig-fg { margin: 0; }
.ig-fg__h { display: block; margin: 0 0 10px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ig-text); }
.ig-opts { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ig-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--ig-ink); }
.ig-opt:hover { background: var(--ig-chip); }
.ig-opt i { color: var(--ig-text); }
.ig-opt__n { margin-inline-start: auto; font-size: 12.5px; color: var(--ig-text); font-variant-numeric: tabular-nums; }
.ig-opt[aria-current="true"] { background: var(--ig-soft); font-weight: 600; }
.ig-opt[aria-current="true"] i { color: var(--ig-acc); }
.ig-opt[data-zero] { opacity: 0.45; }
.ig-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px;
    border: 1px solid var(--ig-line); background: var(--ig-chip); color: var(--ig-ink); font-size: 13px; white-space: nowrap; cursor: pointer;
}
.ig-chip:hover { border-color: var(--ig-line-2); }
.ig-chip[aria-current="true"] { background: var(--ig-on); border-color: transparent; color: var(--ig-on-ink); font-weight: 600; }
.ig-chip.ig-nojs { margin-top: 8px; }
.ig-select { position: relative; }
.ig-select select {
    appearance: none; width: 100%; height: 42px; padding: 0 36px; border: 1px solid var(--ig-line); border-radius: 12px;
    background: var(--ig-chip); color: var(--ig-ink); font-size: 14px; cursor: pointer;
}
.ig-select select:hover { border-color: var(--ig-line-2); }
.ig-select select option { color: var(--h-950); background: #fff; }
.ig-select > i { position: absolute; top: 50%; inset-inline-start: 12px; transform: translateY(-50%); color: var(--ig-acc); pointer-events: none; }
.ig-select > .ig-select__chev { inset-inline-start: auto; inset-inline-end: 12px; color: var(--ig-text); font-size: 12px; }
.ig-hint { margin: 6px 0 0; font-size: 12px; line-height: 17px; color: var(--ig-text); }

/* ── The results ── */
.ig-results { min-width: 0; container-type: inline-size; }
.ig-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 32px; margin-bottom: 18px; font-size: 14px; color: var(--ig-text); }
.ig-count b { color: var(--ig-ink); font-size: 15px; }
.ig-count__active { display: contents; }
.ig-x {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border: 1px solid var(--ig-line); border-radius: 999px;
    background: var(--ig-chip); color: var(--ig-ink); font-size: 12.5px; cursor: pointer;
}
.ig-x i { font-size: 11px; }
.ig-x:hover { border-color: var(--ig-line-2); }
.ig-clear { border: 0; background: none; padding: 0 4px; color: var(--ig-acc); font-size: 13px; font-weight: 600; cursor: pointer; }

/* Groups flow 3 across; a group of one or two sits beside the next (the mock's Team alerts and Reports) */
.ig-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; align-items: start; }
.ig-group { --span: 3; grid-column: span var(--span); min-width: 0; margin: 0; padding: 0; }
.ig-group[data-n="1"] { --span: 1; grid-column: span 1; }
.ig-group[data-n="2"] { --span: 2; grid-column: span 2; }
.ig-group__h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-family: "IBM Plex Sans", "Geist", sans-serif; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--ig-ink); }
.ig-group__h small { font-family: "Geist", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ig-text); }
.ig-grid { display: grid; grid-template-columns: repeat(var(--span), minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ig-item { min-width: 0; display: grid; }

.ig-card {
    display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; min-width: 0; padding: 22px;
    border: 1px solid var(--ig-line); border-radius: 26px; background: var(--ig-card); color: var(--ig-ink);
    transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.15s ease;
}
a.ig-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ig-acc) 55%, transparent); }
.ig-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ig-logo {
    display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex: none; width: 48px; height: 48px; overflow: hidden;
    border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgb(21 30 49 / 0.08);
}
.ig-logo img { display: block; max-width: 34px; max-height: 34px; }
.ig-logo--two img { max-width: 21px; max-height: 21px; }
.ig-logo--round { background: transparent; box-shadow: none; }
.ig-logo--round img { width: 100%; height: 100%; max-width: none; max-height: none; }
.ig-logo--icon { background: var(--ig-soft); color: var(--ig-acc); box-shadow: none; font-size: 22px; }
.ig-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border: 1px solid var(--ig-line); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ig-ink); white-space: nowrap; }
.ig-badge--new { border-color: transparent; background: var(--ig-soft); color: var(--ig-acc); font-weight: 600; }
.ig-badge--soon { border-style: dashed; color: var(--ig-text); }
.ig-card__name { margin: 0; font-family: "IBM Plex Sans", "Geist", sans-serif; font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--ig-ink); }
/* two or three lines (Rio: "each with a 2 or 3 lines of description"); a card is at least 260px wide so they fit */
.ig-card__desc {
    margin: 0; min-height: 4.5em; font-size: 14px; line-height: 1.5; color: var(--ig-text);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.ig-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ig-line); font-size: 12.5px; color: var(--ig-text); }
.ig-card__foot > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ig-card__foot i { font-size: 13px; }
.ig-card__go { margin-inline-start: auto; color: var(--ig-acc); transition: transform 0.15s ease; }
a.ig-card:hover .ig-card__go { transform: translateX(3px); }
[dir="rtl"] .ig-card__go { transform: scaleX(-1); }
[dir="rtl"] a.ig-card:hover .ig-card__go { transform: scaleX(-1) translateX(3px); }

/* only a phone folds a group (below); wider, every card shows */
.ig-more {
    display: none; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin-top: 10px;
    border: 1px solid var(--ig-line); border-radius: 14px; background: none; color: var(--ig-acc); font-size: 14px; font-weight: 600; cursor: pointer;
}
.ig-empty { display: grid; justify-items: center; gap: 8px; margin-top: 8px; padding: 36px 24px; border: 1px dashed var(--ig-line-2); border-radius: 24px; text-align: center; color: var(--ig-text); }
.ig-empty > i { font-size: 28px; color: var(--ig-acc); }
.ig-empty p { margin: 0; }
.ig-empty__title { color: var(--ig-ink); font-size: 17px; font-weight: 600; }
.ig-empty .h-button { margin-top: 8px; }
.ig-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 40px; padding: 20px 24px; border: 1px dashed var(--ig-line-2); border-radius: 22px; }
.ig-ask p { margin: 0; color: var(--ig-text); font-size: 14px; line-height: 21px; }
.ig-ask .ig-ask__title { color: var(--ig-ink); font-size: 16px; font-weight: 600; line-height: 24px; }

/* the closing call to action on the site's mint and lattice (its section brings its own 5rem) */
.ig-band { background: url("../../images/home/grid.svg") 50% 50% / 80px 80px, linear-gradient(180deg, #f3fffb, #eefffa); }

/* ── Two columns of cards ── */
@container (max-width: 860px) {
    .ig-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ig-group, .ig-group[data-n="2"] { --span: 2; grid-column: span 2; }
    .ig-group[data-n="1"] { --span: 1; grid-column: span 1; }
}
/* ── One a row ── */
@container (max-width: 560px) {
    .ig-groups { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .ig-group, .ig-group[data-n="1"], .ig-group[data-n="2"] { --span: 1; grid-column: span 1; }
    .ig-item.is-folded { display: none; }
    .ig-more:not([hidden]) { display: flex; }
}
/* The same columns for a Chrome before 105, which drops @container (a POS terminal's browser, armpos-1b, 2026-11-19),
   by the window's width. .ig-results is the window less 324px from 992px up (236px filters, 32px gap, 28px sides),
   less 264px from 761px (200px, 24px, 20px) and less 32px below: 860px of results is a 1184px window, 560px of
   results an 824px or a 592px one. */
@supports not (container-type: inline-size) {
    @media (max-width: 1184px) {
        .ig-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .ig-group, .ig-group[data-n="2"] { --span: 2; grid-column: span 2; }
        .ig-group[data-n="1"] { --span: 1; grid-column: span 1; }
    }
    @media (min-width: 761px) and (max-width: 824px), (max-width: 592px) {
        .ig-groups { grid-template-columns: minmax(0, 1fr); gap: 32px; }
        .ig-group, .ig-group[data-n="1"], .ig-group[data-n="2"] { --span: 1; grid-column: span 1; }
        .ig-item.is-folded { display: none; }
        .ig-more:not([hidden]) { display: flex; }
    }
}

@media (max-width: 991px) {
    .ig-title { font-size: 42px; }
    .ig-body { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding-inline: 20px; }
}

/* ── A phone: the filters fold into one bar, the trades scroll sideways, a card is a row ── */
@media (max-width: 760px) {
    .ig-hero { padding: 112px 16px 24px; }
    .ig-title { font-size: 32px; line-height: 1.18; }
    .ig-lead { font-size: 15.5px; line-height: 25px; }
    .ig-search { height: 52px; margin-top: 22px; padding-inline-start: 16px; }
    .ig-trades { flex-wrap: nowrap; justify-content: flex-start; margin: 18px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
    .ig-trades::-webkit-scrollbar { display: none; }
    .ig-body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 8px 16px 56px; }
    .ig-side { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; border: 1px solid var(--ig-line); border-radius: 16px; background: var(--ig-card); }
    .ig-side__toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
    .ig-side__toggle::-webkit-details-marker { display: none; }
    .ig-side__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ig-on); color: var(--ig-on-ink); font-size: 12px; }
    .ig-side__n[hidden] { display: none; }
    .ig-side__chev { margin-inline-start: auto; transition: transform 0.2s ease; }
    .ig-side[open] .ig-side__chev { transform: rotate(180deg); }
    .ig-fgs { position: static; gap: 20px; padding: 4px 16px 18px; }
    .ig-card {
        grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto auto;
        grid-template-areas: "logo name badge" "logo desc desc" "logo foot foot";
        column-gap: 14px; row-gap: 4px; padding: 16px; border-radius: 20px;
    }
    .ig-card__top { display: contents; }
    .ig-logo { grid-area: logo; align-self: start; }
    .ig-badge { grid-area: badge; align-self: start; height: 22px; padding: 0 9px; font-size: 11.5px; }
    .ig-card__name { grid-area: name; align-self: center; font-size: 16.5px; }
    .ig-card__desc { grid-area: desc; min-height: 0; font-size: 13.5px; }
    .ig-card__foot { grid-area: foot; margin-top: 4px; padding-top: 10px; }
    .ig-ask { padding: 18px; }
    .ig-ask .h-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ig-card, .ig-card__go, .ig-side__chev { transition: none; }
    a.ig-card:hover { transform: none; }
}
