/* ============================================================================
   gallery.css — Arihant Fabrics
   Shared fabric-gallery + lightbox component, linked by the fabric pages
   (yarn-dyed, greige, denim). Structure is identical across fabrics; the accent
   colour is set per page via --spec-label-colour and --gallery-accent (each
   defined in that page's own stylesheet). Relies on the
   shared design tokens in base.css. Behaviour lives in js/gallery.js.
   ============================================================================ */

.fabric-gallery-row { margin-top: 14px; border-top: 1px solid rgba(10,37,117,.08); }
.fabric-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; margin-bottom: 10px; }
.fabric-gallery-label { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--spec-label-colour); margin: 0; }
.fabric-gallery-count { opacity: 0.75; }
.gallery-see-all-btn { background: none; border: none; padding: 4px; font-size: 11px; font-weight: 500; color: var(--gallery-accent); cursor: pointer; display: flex; align-items: center; flex-shrink: 0; min-height: 24px; }
.gallery-see-all-btn:hover { text-decoration: underline; }
.gallery-see-all-btn:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 767px) { .gallery-see-all-btn { min-height: 44px; } }

.gallery-track-viewport { position: relative; overflow: hidden; }
.gallery-fade-left, .gallery-fade-right { position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; z-index: 2; }
.gallery-fade-left { left: 0; background: linear-gradient(to left, rgba(255,255,255,0), var(--color-white) 90%); }
.gallery-fade-right { right: 0; background: linear-gradient(to right, rgba(255,255,255,0), var(--color-white) 90%); }
@media (prefers-reduced-motion: no-preference) { .gallery-fade-left, .gallery-fade-right { transition: opacity .15s ease; } }
.gallery-track { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gallery-track.is-auto { overflow-x: hidden; }
.gallery-strip { display: flex; align-items: flex-start; gap: 14px; width: max-content; }
.gallery-card { position: relative; flex: 0 0 auto; width: 144px; display: block; background: none; border: none; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.gallery-card:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; border-radius: 12px; }   /* 12px = the site's image corners (I-4; was 10px) */
.gallery-card__image { width: 144px; height: 160px; border-radius: 12px; display: block; }
img.gallery-card__image { object-fit: cover; object-position: center; }
/* Name: navy (J-20); up to 3 lines, then "…" (I-8) — the full name is in the modal and in the
   card's tooltip. Size, weight and line spacing unchanged. The details line under the name
   (.gallery-card__spec) is gone (I-8); details stay in the modal. */
.gallery-card__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--color-navy); margin: 9px 0 0; }
@media (max-width: 640px) { .gallery-card { width: 128px; } .gallery-card__image { width: 128px; height: 142px; } }
/* On touch / reduced-motion devices gallery.js sets the card size when the page starts.
   base.css's reduced-motion rule gives every element a 0.01ms transition, which delayed
   that size change until just after the browser had jumped to a #link — leaving the
   target section 18–25px off on phones (P1.2). Cards have no transitions of their own,
   so switching transitions off for them makes the size apply at once. */
.gallery-card, .gallery-card__image { transition-property: none; }
/* Navy tick on designs that are in the buyer's Enquiry List (D-10): 20px circle, white 12px
   check (line weight 2 — I-2), 2px white ring, 8px from the photo's top-right corner.
   Added and shown by gallery.js; not tappable itself (the card still opens the design). */
.gallery-card__tick {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--color-white);
  pointer-events: none;
}
.gallery-card__tick[hidden] { display: none; }
.gallery-card__tick svg { width: 12px; height: 12px; display: block; }

/* ============================================================
   "SEE ALL DESIGNS" VIEW (J-14) — full screen: a bar (fabric, category, "N designs",
   Close), category tabs, and a grid that fills each row exactly.
   - One left/right edge for bar, tabs and grid: the page padding (16 / 24 / 40 / 80px),
     or centred on a 1440px content width — which only starts beyond a 1600px screen (J-13a).
   - Phones (<640px): gap 12px, thumbnails at most 200px (2 columns on normal phones,
     3 from 445px — J-13b). From 640px: gap 20px, thumbnails at most 144px, more columns
     as the screen widens (J-10). The column count is set by gallery.js (--cols).
   - Cards are the same cards as in the strips (name, tick); photos 9:10, 12px corners.
   ============================================================ */
.sa {
  --sa-pad: 16px; --sa-width: 1440px;
  position: fixed; inset: 0; z-index: 1200; background: var(--color-white);
  display: flex; flex-direction: column;
}
@media (min-width: 640px)  { .sa { --sa-pad: 24px; } }
@media (min-width: 768px)  { .sa { --sa-pad: 40px; } }
@media (min-width: 1024px) { .sa { --sa-pad: 80px; } }
.sa[hidden] { display: none; }
.sa[inert] { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .sa:not([hidden]) { animation: saIn .2s ease; }
  @keyframes saIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
.sa__edge { padding-inline: max(var(--sa-pad), calc((100% - var(--sa-width)) / 2)); }
.sa__bar { flex-shrink: 0; background: var(--color-white); border-bottom: 1px solid rgba(10,37,117,.08); padding-top: env(safe-area-inset-top, 0px); }
.sa__barin { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 768px) { .sa__barin { padding-top: 16px; padding-bottom: 16px; } }
.sa__id { flex: 1; min-width: 0; }
/* Fabric label: the deeper amber (#8a5a2a, 5.87:1 on white). The page accent #b47840 is too faint
   for 10px text (3.68:1; small text needs 4.5:1) — it stays for the tab underline, which is not text. */
.sa__eyebrow { margin: 0; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gallery-accent, var(--color-navy)); font-weight: 600; }
.sa__title { margin: 2px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--color-navy); }
@media (min-width: 768px) { .sa__title { font-size: 26px; } }
.sa__count { margin: 2px 0 0; font-size: 12px; color: rgba(10,37,117,.72); }
.sa__close {
  flex-shrink: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; border-radius: 8px;
  color: var(--color-navy); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sa__close:hover { background: #f4f3ee; }
.sa__close:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.sa__close svg { display: block; width: 20px; height: 20px; }
.sa__tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.sa__tabs::-webkit-scrollbar { display: none; }
.sa__tab {
  flex-shrink: 0; margin: 0; border: 0; background: none; padding: 10px 0 11px; min-height: 44px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500; color: rgba(10,37,117,.72);
  border-bottom: 2px solid transparent; cursor: pointer;
}
.sa__tab[aria-selected="true"] { color: var(--color-navy); font-weight: 600; border-bottom-color: var(--page-accent, var(--color-navy)); }
.sa__tab:focus-visible { outline: 3px solid var(--color-gold); outline-offset: -3px; }
.sa__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sa__grid {
  --cols: 2;   /* starting value; gallery.js sets the real number for the screen */
  display: grid; align-items: start; gap: 20px 12px;
  padding-top: 16px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
}
@media (min-width: 640px) { .sa__grid { gap: 24px 20px; padding-top: 24px; padding-bottom: 48px; } }
.sa__grid .gallery-card { width: auto; }
.sa__grid .gallery-card__image { width: 100%; height: auto; aspect-ratio: 9 / 10; }

/* Lightbox: two subtrees (mobile + desktop) under one #lbx overlay, switched
   at 768px by `display` and driven by one shared JS controller. All selectors
   are `lbx-` namespaced so they never collide with the page's own classes. */

#lbx { position: fixed; inset: 0; z-index: 1300; }
#lbx[hidden] { display: none; }
.lbx-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Entrance animates opacity ONLY — a transform on the centring wrapper fights
   margin:auto and the card's own scale() and throws the card to a corner. */
@media (prefers-reduced-motion: no-preference) {
  #lbx:not([hidden]) .lbx-fade { animation: lbxFade .18s ease; }
  @keyframes lbxFade { from { opacity: 0; } to { opacity: 1; } }
}

/* Phone design modal (base, <768px) — locked mobile modal + D-01…D-07, D-22, H3-2,
   H3-8, H3-11, I-2. A full-screen sheet on the modal surface: the photo on top
   (Close and arrows float over it), the details below, and the enquiry buttons in
   a bar that stays at the bottom of the screen. The sheet itself scrolls.
   Accepted exceptions: 40px Close / arrows; "(1 of 4)" counter contrast. */
.lbx-mobile {
  position: absolute; inset: 0; z-index: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; background: #f4f3ee;
}
.lbx-m-screen { min-height: 100%; display: flex; flex-direction: column; background: #f4f3ee; }
.lbx-m-scroll { flex: 1; padding-bottom: 16px; }
/* The photo: gestures kept from the old viewer (double-tap zoom, drag while zoomed,
   swipe left / right, swipe down to close when the sheet is at its top). Sideways
   moves are ours; up / down scrolls the sheet; while zoomed every move is ours. */
.lbx-m-photo { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #f4f1ea; overflow: hidden; touch-action: pan-y; }
.lbx-m-photo.is-zoomed { touch-action: none; }
.lbx-m-img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; transform-origin: 0 0; }
.lbx-m-close, .lbx-m-arrow {
  position: absolute; width: 40px; height: 40px; margin: 0; padding: 0; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--color-navy);
  box-shadow: 0 1px 6px rgba(10,37,117,.18); cursor: pointer; z-index: 5;
}
.lbx-m-close { top: 12px; right: 12px; }
.lbx-m-close svg { display: block; width: 16px; height: 16px; }
.lbx-m-arrow { top: 50%; transform: translateY(-50%); }
.lbx-m-arrow svg { display: block; width: 20px; height: 20px; }
.lbx-m-prev { left: 10px; }
.lbx-m-next { right: 10px; }
.lbx-m-close:focus-visible, .lbx-m-arrow:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.lbx-m-body { padding: 20px 20px 8px; }
.lbx-m-hdr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lbx-m-eyebrow { margin: 0; font-size: 12px; letter-spacing: 1.5px; line-height: 14px; color: rgba(10,37,117,.8); text-transform: uppercase; }
.lbx-m-pos { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(10,37,117,.5); margin-left: 5px; }
.lbx-m-designno { margin: 0; font-size: 12px; line-height: 14px; color: rgba(10,37,117,.72); white-space: nowrap; }   /* navy 72% = the site's secondary text (I-6) */
/* Long names wrap on as many lines as needed — never cut (D-22). */
.lbx-m-pname { margin: 8px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 30px; line-height: 40px; color: var(--color-navy); overflow-wrap: anywhere; }
.lbx-m-rows { margin-top: 22px; }
.lbx-m-row { margin-bottom: 16px; }
.lbx-m-row:last-child { margin-bottom: 0; }
.lbx-m-lbl { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 14px; color: var(--spec-label-colour); }
.lbx-m-lbl .lbx-paren { letter-spacing: normal; }
.lbx-m-val { margin: 4px 0 0; font-size: 15px; font-weight: 600; line-height: 18px; color: var(--color-navy); }
.lbx-m-rule { display: block; height: 1px; background: rgba(10,37,117,.3); margin-top: 4px; }
.lbx-m-rownote { margin: 4px 0 0; font-size: 12px; line-height: 14px; color: rgba(10,37,117,.8); }
.lbx-m-bar {
  position: sticky; bottom: 0; background: #f4f3ee;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(10,37,117,.1); box-shadow: 0 -2px 14px rgba(10,37,117,.06);
}
.lbx-m-enqbar { display: flex; align-items: center; gap: 12px; }

/* Desktop subtree (hidden until ≥768px). */
.lbx-desktop { display: none; }

@media (min-width: 768px) {
  .lbx-mobile { display: none; }
  .lbx-desktop { display: block; position: absolute; inset: 0; overflow: auto; z-index: 1; }

  .lbx-scrim { position: fixed; inset: 0; background: rgba(6,26,94,.72); }
  /* margin:auto centres on both axes and collapses to 0 (not negative) on
     overflow, so the far edge stays reachable by scrolling below the k floor. */
  .lbx-lbinner { position: relative; min-height: 100%; display: flex; box-sizing: border-box; padding: 24px; }
  .lbx-cardwrap { position: relative; margin: auto; }

  .lbx-card {
    --lbx-k: 1; --hit: 40px; --dot: 34px; --band-h: 58px; --band-v: 46px; --count-bottom: 16px;
    position: absolute; top: 0; left: 0; background: #f4f3ee;
    border: 1px solid rgba(10,37,117,.12); border-radius: 12px;
    padding: var(--band-v) var(--band-h);
    transform: scale(var(--lbx-k, 1)); transform-origin: 0 0;
    box-shadow: 0 0 48px -8px rgba(6,26,94,.34), 0 18px 56px -22px rgba(6,26,94,.42);
  }
  .lbx-content { position: relative; display: grid; grid-template-columns: 330px 319px; gap: 23px; }

  /* Clipping lives on the cell, never on the scaled surface. */
  .lbx-imgcell {
    position: relative; height: 440px; border-radius: 12px; overflow: hidden;   /* 12px — I-4 */
    box-shadow: 0 0 0 1px rgba(10,37,117,.12);
  }
  .lbx-imgsurface {
    display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: none;
    background: none; cursor: zoom-in; transform-origin: 0 0;
  }
  .lbx-imgsurface img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .lbx-imgsurface:focus-visible { outline: 3px solid var(--color-gold); outline-offset: -3px; border-radius: 12px; }
  .lbx-card.is-zoomed .lbx-imgsurface { cursor: zoom-out; }
  .lbx-card.is-dragging .lbx-imgsurface { cursor: grabbing; }

  .lbx-panel { width: 319px; height: 440px; display: flex; flex-direction: column; }
  .lbx-eyebrow { margin: 0; font-size: 12px; letter-spacing: 1.5px; line-height: 14px; color: rgba(10,37,117,.8); }
  /* Long names wrap on as many lines as needed — never cut (D-22). */
  .lbx-pname { margin: 4px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 30px; line-height: 40px; color: var(--color-navy); overflow-wrap: anywhere; }
  .lbx-designno { margin: 4px 0 0; font-family: var(--font-body); font-size: 12px; line-height: 14px; color: rgba(10,37,117,.72); }   /* navy 72% = the site's secondary text (I-6) */
  .lbx-rows { margin-top: 24px; }
  .lbx-row { position: relative; height: 60px; }
  .lbx-row--note { height: 74px; }
  .lbx-row--last { height: 54px; }
  /* Labels typed in caps (not text-transform) so "(inches)" stays lower case
     as drawn; held at 10px — the size .fabric-spec-label ships at. */
  .lbx-lbl { position: absolute; top: 0; left: 0; margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .16em; line-height: 14px; color: var(--spec-label-colour); }
  .lbx-lbl .lbx-paren { letter-spacing: normal; }
  .lbx-val { position: absolute; top: 20px; left: 0; margin: 0; font-size: 15px; font-weight: 600; line-height: 18px; color: var(--color-navy); }
  .lbx-rule { position: absolute; top: 37px; left: 0; right: 0; height: 1px; background: rgba(10,37,117,.5); }
  .lbx-rownote { position: absolute; top: 40px; left: 0; margin: 0; font-size: 12px; font-style: normal; line-height: 14px; color: rgba(10,37,117,.8); }

  /* Details scroll inside the panel; the buttons (and the green "Added" line) stay
     pinned, bottom edge = photo bottom. The modal's size never depends on its
     content (D-21). The scrollbar and the soft fade appear only when the details are
     taller than the space; the fade goes once the end is reached (D-23). */
  .lbx-scrollwrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .lbx-scroll {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    margin-left: -4px; padding-left: 4px;   /* room for letters that overhang the left edge (e.g. Cardo "C") */
    scrollbar-width: thin; scrollbar-color: rgba(10,37,117,.28) transparent;
  }
  .lbx-scroll::-webkit-scrollbar { width: 6px; }
  .lbx-scroll::-webkit-scrollbar-thumb { background: rgba(10,37,117,.28); border-radius: 3px; }
  .lbx-scroll::-webkit-scrollbar-track { background: transparent; }
  .lbx-scroll.is-scrollable { padding-right: 10px; }   /* text keeps clear of the scrollbar, only when it exists */
  .lbx-scroll:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; border-radius: 4px; }
  .lbx-scrollfade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 36px; pointer-events: none; opacity: 0;
    background: linear-gradient(to bottom, rgba(244,243,238,0), #f4f3ee);
  }
  .lbx-scrollfade.is-on { opacity: 1; }
  .lbx-enqwrap { padding-top: 12px; flex-shrink: 0; }
  .lbx-enq { display: flex; gap: 15px; align-items: center; }

  .lbx-d-close, .lbx-d-arrow {
    position: absolute; width: var(--hit); height: var(--hit); border: none; background: none;
    padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2;
  }
  .lbx-d-dot {
    width: var(--dot); height: var(--dot); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; background: rgba(10,37,117,.08); color: var(--color-navy);
  }
  .lbx-d-close:hover .lbx-d-dot, .lbx-d-arrow:hover .lbx-d-dot { background: rgba(10,37,117,.17); }
  .lbx-d-close:focus-visible, .lbx-d-arrow:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; border-radius: 50%; }
  .lbx-d-dot svg { width: 44%; height: 44%; }
  .lbx-d-close { top: calc(var(--band-v) - var(--hit)); right: calc((var(--band-h) - var(--hit)) / 2); }
  .lbx-d-arrow { top: 50%; transform: translateY(-50%); }
  .lbx-d-prev { left: calc((var(--band-h) - var(--hit)) / 2); }
  .lbx-d-next { right: calc((var(--band-h) - var(--hit)) / 2); }
  .lbx-d-count {
    position: absolute; left: 0; right: 0; bottom: var(--count-bottom); text-align: center;
    margin: 0; font-size: 11px; line-height: 13px; color: var(--color-navy); font-variant-numeric: tabular-nums;
  }
}

/* ============================================================
   ENQUIRY CONTROLS inside the design modal (section D of the decisions log)
   Before adding:  [Add for enquiry] [WhatsApp]
   After adding:   "✓ Added to your Enquiry List · Remove" above
                   [View list (n)] [WhatsApp]            (D-01, D-07, H3-8)
   List full:      a note in the green line's place      (H3-2)
   Button system H3-11: 8px corners, Inter 500, normal letter-spacing,
   44px minimum height, 1px outlines; the in-row icon button is a 44px
   8px-rounded square.
   ============================================================ */
.lbx-btn {
  flex: 1; min-height: 44px; margin: 0; padding: 0; border: none; border-radius: 8px;
  background: var(--color-navy); color: var(--color-white);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: normal;
  text-decoration: none; cursor: pointer;
}
.lbx-btn:hover { color: var(--color-white); text-decoration: none; }
.lbx-btn svg { display: block; flex-shrink: 0; width: 17px; height: 17px; }
.lbx-wa {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; border: 1px solid #25d366;
  display: flex; align-items: center; justify-content: center; background: transparent;
  cursor: pointer; text-decoration: none;
}
.lbx-wa svg { display: block; width: 22px; height: 22px; }
.lbx-status {
  display: flex; align-items: center; gap: 6px; margin: 0 0 8px;
  font-size: 12px; font-weight: 600; line-height: 16px; color: #1e7a3c;   /* 4.84:1 on the modal surface (D-04) */
}
.lbx-status svg { display: block; flex-shrink: 0; width: 14px; height: 14px; }
.lbx-status__sep { color: #8492ba; font-weight: 400; margin: 0 2px; }
.lbx-remove {
  margin: 0; padding: 4px 2px; min-height: 24px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--color-navy); text-decoration: underline; text-underline-offset: 2px;
}
.lbx-full { margin: 0 0 8px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--color-navy); }
.lbx-full a { color: var(--color-navy); text-decoration: underline; text-underline-offset: 2px; }
.lbx-btn[hidden], .lbx-status[hidden], .lbx-full[hidden] { display: none; }
.lbx-btn:focus-visible, .lbx-wa:focus-visible, .lbx-remove:focus-visible, .lbx-full a:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .lbx-scrollfade { transition: opacity .15s ease; }
  .lbx-status { animation: lbxStatusIn .18s ease-out; }
  @keyframes lbxStatusIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   "NO LONGER IN OUR GALLERY" (N2) — a small modal shown when a link
   points to a design that is not on the page any more (D-14, D-17 to D-19).
   ============================================================ */
.lbx-n2 { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lbx-n2[hidden] { display: none; }
.lbx-n2__scrim { position: fixed; inset: 0; background: rgba(6,26,94,.72); }
.lbx-n2__card {
  position: relative; z-index: 1; width: 100%; max-width: 420px; box-sizing: border-box;
  background: #f4f3ee; border-radius: 12px; padding: 22px 22px 18px; color: var(--color-navy);
  box-shadow: 0 18px 56px -22px rgba(6,26,94,.42);
}
.lbx-n2__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; padding: 0; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }   /* 40px — accepted exception (G4-2) */
.lbx-n2__close span { width: 32px; height: 32px; border-radius: 50%; background: rgba(10,37,117,.08); color: var(--color-navy); display: flex; align-items: center; justify-content: center; }
.lbx-n2__close:hover span { background: rgba(10,37,117,.17); }
.lbx-n2__close svg { width: 14px; height: 14px; }
.lbx-n2__id { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.lbx-n2__thumb { width: 64px; height: 72px; border-radius: 6px; object-fit: cover; opacity: .6; flex-shrink: 0; }
.lbx-n2__eyebrow { margin: 0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(10,37,117,.8); }
.lbx-n2__name { margin: 2px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 24px; line-height: 30px; color: var(--color-navy); overflow-wrap: anywhere; }
.lbx-n2__no { margin: 2px 0 0; font-size: 12px; color: rgba(10,37,117,.72); }
.lbx-n2__head { margin: 16px 0 0; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--color-navy); }
.lbx-n2__body { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: rgba(10,37,117,.85); }
.lbx-n2__row { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.lbx-n2__rm {
  display: inline-flex; align-items: center; min-height: 32px; margin: 12px 0 0; padding: 0; border: none; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; color: var(--color-navy); text-decoration: underline; text-underline-offset: 2px;   /* 32px minimum — G4-1 */
}
.lbx-n2__close:focus-visible, .lbx-n2__rm:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
