/* Discovery through photographs: the existing navy, white and rounded SI firm type. */
.si-discovery{--dc-ink:#102b43;--dc-line:#b8cbd9;--dc-surface:#fff;color:var(--dc-ink);background:#f0f4f7;padding-block:80px;overflow:clip}
.si-discovery .discovery-shell{width:min(1200px,calc(100% - 2*var(--si-page-gutter,5vw)));margin-inline:auto}
.discovery-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:32px}
.discovery-kicker{font:700 12px/1.8 var(--si-latin-font,Manrope,sans-serif);letter-spacing:.1em;margin:0 0 16px}
.si-discovery h2{font:700 clamp(28px,3vw,40px)/1.6 var(--si-heading-font,'Zen Maru Gothic',sans-serif);letter-spacing:.01em;margin:0}
.discovery-heading>p{font-size:15px;line-height:1.95;max-width:30em;margin:0}
.discovery-tools{display:flex;align-items:center;justify-content:space-between;gap:20px 32px;flex-wrap:wrap;margin-bottom:16px}
.discovery-rail-controls[hidden],.discovery-tools[hidden],.discovery-preview[hidden],.discovery-card[hidden],.discovery-row[hidden],.discovery-empty[hidden]{display:none!important}
.discovery-filters{display:flex;gap:8px;flex-wrap:wrap}
.discovery-filters button{min-height:44px;border:1px solid #9fb4c4;border-radius:24px;padding:10px 18px;background:transparent;color:#29445c;font:700 14px/1.6 var(--si-body-font,'Zen Kaku Gothic New',sans-serif);cursor:pointer}
.discovery-filters button[aria-pressed=true]{background:#102b43;border-color:#102b43;color:#fff}
.discovery-search{display:grid;gap:6px;font:500 12px/1.7 var(--si-body-font,sans-serif)}
.discovery-search input{min-height:48px;width:280px;max-width:100%;background:white;color:#102b43;border:1px solid #9fb4c4;border-radius:6px;padding:10px 14px;font:16px/1.6 var(--si-body-font,sans-serif)}
.discovery-status{font-size:13px;line-height:1.8;color:#435e74;margin:16px 0 32px}
.discovery-row+.discovery-row{margin-top:48px;padding-top:40px;border-top:1px solid var(--dc-line)}
.discovery-row-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.si-discovery .discovery-row-heading :is(h2,h3){font:700 23px/1.6 var(--si-heading-font,'Zen Maru Gothic',sans-serif);margin:0}
.discovery-row-heading p{font-size:14px;line-height:1.8;margin:8px 0 0;color:#435e74}
.discovery-row-heading [data-row-count]{font-size:13px;font-weight:500;white-space:nowrap;margin-left:12px}
.discovery-rail-controls{display:flex;gap:8px;flex-shrink:0}
.discovery-rail-controls button{width:44px;height:44px;border:1px solid #9fb4c4;border-radius:50%;background:#fff;color:#102b43;font:24px/1 sans-serif;cursor:pointer}
.discovery-rail-controls button:disabled{opacity:.35;cursor:default}
.discovery-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/3);gap:24px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:8px 4px 16px;margin-inline:-4px;scroll-padding-inline:4px}
.discovery-card{scroll-snap-align:start;min-width:0;background:var(--dc-surface);border:1px solid #cbd7df;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .18s ease-out,box-shadow .18s ease-out}
.discovery-image{display:block;aspect-ratio:1.72;overflow:hidden;background:#dce6ee}
.discovery-image img{width:100%;height:100%;object-fit:cover;object-position:top;transition:scale .24s ease-out}
.discovery-card-copy{display:flex;flex-direction:column;flex:1;padding:24px}
.discovery-category{font-size:12px;line-height:1.7;margin:0 0 10px;color:#47637a;font-weight:700}
.si-discovery .discovery-card h4{font:700 22px/1.5 var(--si-latin-font,Manrope),var(--si-heading-font,'Zen Maru Gothic',sans-serif);letter-spacing:0;margin:0 0 12px}
.discovery-card-summary{font-size:15px;line-height:1.9;margin:0 0 20px;color:#334b61;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.discovery-card-actions{display:flex;align-items:center;gap:8px 12px;margin-top:auto;flex-wrap:wrap}
.discovery-card-actions a{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;
 padding:8px 14px;border:1px solid var(--dc-ink);border-radius:6px;
 background:var(--dc-ink);color:#fff;font-size:14px;line-height:1.8;font-weight:700;text-decoration:none;
}
.discovery-preview{
 min-height:44px;padding:8px 4px;border:0;background:transparent;color:var(--dc-ink);
 font:700 13px/1.8 var(--si-body-font,sans-serif);cursor:pointer;text-decoration:underline;text-underline-offset:4px;
}
@media screen{
 :root[data-si-theme="dark"] body .discovery-card-actions a{
  background:var(--night-accent);color:var(--night-bg)!important;border-color:var(--night-accent)!important;
 }
}
.discovery-disclosure{font-size:12px;line-height:1.9;color:#435e74;margin:24px 0 0;max-width:72em}
.discovery-empty{padding:32px;background:#fff;border:1px solid #b8cbd9;line-height:1.9}
.discovery-empty button{min-height:44px;padding:10px 20px;background:#102b43;color:white;border:0;border-radius:6px;font:700 14px/1.8 var(--si-body-font,sans-serif);cursor:pointer}
.discovery-empty a{display:inline-flex;align-items:center;min-height:44px;margin-left:24px;text-decoration:underline;text-underline-offset:5px;font-size:14px}
.discovery-full-link{display:inline-flex;align-items:center;gap:32px;min-height:48px;margin-top:32px;font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:6px}
.discovery-page-intro{padding-block:40px 32px}
.discovery-page-intro h1{font:700 clamp(32px,4vw,50px)/1.6 var(--si-heading-font,'Zen Maru Gothic',sans-serif);margin:16px 0}
.discovery-page-intro>p:last-child{font-size:17px;line-height:1.9;max-width:50em}
.discovery-page .si-discovery{padding-top:40px}
body:has(.discovery-dialog[open]){overflow:hidden}
dialog.discovery-dialog{width:min(920px,calc(100% - 40px));max-width:920px;max-height:calc(100dvh - 40px);padding:32px;border:1px solid #9fb4c4;border-radius:12px;background:#fff;color:#102b43;box-shadow:0 24px 80px #00142640;overflow:auto;font-family:var(--si-body-font,'Zen Kaku Gothic New',sans-serif)}
.discovery-dialog::backdrop{background:rgba(6,23,43,.35)}
/* Keep the landing frame still while the card photo moves into it. */
dialog.discovery-dialog[open]{animation:none}
.discovery-photo-covered{visibility:hidden}
.discovery-photo-flight{
 position:fixed;inset:auto;z-index:2;max-width:none;max-height:none;margin:0;padding:0;border:0;
 object-fit:cover;object-position:center top;background:transparent;pointer-events:none;
}
.discovery-photo-flight::backdrop{background:transparent;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .discovery-dialog[open]::backdrop{animation:discovery-shade-in .32s ease-out}
 @keyframes discovery-shade-in{from{opacity:0}to{opacity:1}}
}
.discovery-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:24px;margin-bottom:24px}
.discovery-dialog-head h2{font:700 28px/1.5 var(--si-heading-font,'Zen Maru Gothic',sans-serif);margin:0}
.discovery-dialog-head button{min-width:48px;min-height:44px;flex-shrink:0;background:white;border:1px solid #9fb4c4;border-radius:6px;color:#102b43;font:700 13px/1.8 var(--si-body-font,sans-serif);cursor:pointer}
.discovery-preview-layout{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.discovery-preview-layout img{width:100%;height:auto;aspect-ratio:1.6;object-fit:cover;object-position:top;border-radius:6px}
.discovery-preview-layout p{font-size:15px;line-height:1.95;margin:0 0 20px}
.discovery-preview-layout dl{font-size:14px;line-height:1.9;margin:24px 0}
.discovery-preview-layout dl>div{border-top:1px solid #c4d3df;padding:12px 0}
.discovery-preview-layout dt{font-weight:700;font-size:12px;color:#47637a}
.discovery-preview-layout dd{margin:6px 0 0}
.discovery-preview-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.discovery-preview-links a{display:inline-flex;align-items:center;min-height:48px;padding:12px 20px;background:#102b43;border:1px solid #102b43;border-radius:6px;color:#fff;font-size:14px;font-weight:700;text-decoration:none}
.discovery-preview-links a+a{background:white;color:#102b43}
.si-discovery :is(a,button,input,[tabindex]):focus-visible,.discovery-dialog :is(a,button):focus-visible{outline:3px solid #36759f;outline-offset:4px}
@media(hover:hover){.discovery-card:hover{border-color:#698da8;box-shadow:0 8px 24px #102b4312}.discovery-card:hover .discovery-image img{scale:1.025}.discovery-filters button:hover:not([aria-pressed=true]){background:#e4edf4}.discovery-card-actions a:hover{background:#294b67}.discovery-preview:hover{text-decoration-thickness:2px}}
@media(max-width:960px){.discovery-rail{grid-auto-columns:calc((100% - 24px)/2)}.discovery-heading{display:block}.discovery-heading>p{margin-top:20px}.discovery-tools{align-items:start}.discovery-preview-layout{gap:24px}}
@media(max-width:600px){.si-discovery{padding-block:56px}.si-discovery .discovery-shell{width:calc(100% - 48px)}.si-discovery h2{font-size:28px}.discovery-heading{margin-bottom:24px}.discovery-heading>p{font-size:15px}.discovery-tools{display:block}.discovery-filters{gap:8px}.discovery-filters button{font-size:13px;padding:10px 14px}.discovery-search{margin-top:20px;font-size:13px}.discovery-search input{width:100%}.discovery-status{margin-bottom:24px}.discovery-rail{grid-auto-columns:88%;gap:16px;margin-right:-24px;padding-right:24px}.si-discovery .discovery-row-heading :is(h2,h3){font-size:21px}.discovery-row-heading [data-row-count]{display:block;margin:6px 0 0;font-size:12px}.discovery-row-heading p{font-size:13px}.discovery-rail-controls{gap:6px}.discovery-rail-controls button{width:40px;height:44px}.discovery-card-copy{padding:20px}.si-discovery .discovery-card h4{font-size:22px}.discovery-card-summary{font-size:15px}.discovery-row+.discovery-row{margin-top:32px;padding-top:32px}.discovery-page-intro{padding-block:24px}.discovery-page-intro h1{font-size:32px}.discovery-page-intro>p:last-child{font-size:16px}.discovery-empty{padding:24px}.discovery-empty a{margin:12px 0 0;display:flex}dialog.discovery-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:24px 20px}.discovery-dialog-head h2{font-size:23px}.discovery-preview-layout{grid-template-columns:1fr}.discovery-preview-layout img{max-height:220px}.discovery-preview-links{display:grid}.discovery-preview-links a{justify-content:center}}
@media(prefers-reduced-motion:reduce){.si-discovery *,.discovery-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.discovery-card:hover img{scale:1}}
/* The catalogue already has a page title: keep the chooser close to the first shelf. */
.discovery-page-intro{padding-block:16px 24px}
.discovery-page-intro .discovery-kicker{margin-bottom:8px}
.discovery-page-intro h1{margin-block:8px;font-size:clamp(32px,3.5vw,44px)}
.discovery-page .si-discovery{padding-top:32px}
.discovery-page .discovery-heading{margin-bottom:24px}
.discovery-page .discovery-heading .discovery-kicker,.discovery-page .discovery-heading>p{display:none}
.discovery-page .discovery-heading h2{font-size:24px}
.si-discovery .discovery-card h4{font-family:Manrope,'Zen Maru Gothic',sans-serif}
.discovery-dialog .discovery-preview-links{position:sticky;bottom:-32px;background:#fff;padding:16px 0;margin-bottom:-16px;z-index:1;border-top:1px solid #c4d3df}
@media(max-width:600px){.discovery-page-intro{padding-block:12px 24px}.discovery-page .discovery-heading h2{font-size:22px}.discovery-dialog .discovery-preview-links{bottom:-24px;padding-bottom:16px;margin-bottom:-16px}}

@media(max-width:600px){
 .discovery-page-intro .discovery-kicker{display:none}
 .discovery-page-intro h1{margin:0 0 12px}
 .discovery-page-intro>p:last-child{margin:0;font-size:15px;line-height:1.9}
 .discovery-page .discovery-row-heading :is(h2,h3){font-size:20px}
 .discovery-page .discovery-row-heading [data-row-count]{display:inline-block;margin:0 0 0 8px}
 .discovery-page .discovery-row-heading p{display:none}
 .discovery-page .discovery-row-heading{gap:12px;margin-bottom:16px}
}
