/* Startup Junkie Resource Directory
   Brand: navy #194160, gold #FFCF24, off-white ground #F0F0F0, typeface Slate */

@font-face { font-family: "Slate"; src: url("./assets/Slate-Book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Slate"; src: url("./assets/Slate-Medium.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Slate"; src: url("./assets/Slate-Black.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }

:root {
  --navy: #194160;
  --navy-deep: #0f2b42;
  --navy-mid: #24516f;
  --gold: #ffcf24;
  --gold-deep: #e9b900;
  --ground: #f0f0f0;
  --surface: #ffffff;
  --surface-2: #f7f8f9;

  --color-bg: var(--ground);
  --color-text: var(--navy);
  --color-primary: var(--navy);
  --text-muted: #4a6880;
  --on-navy: #ffffff;
  --on-navy-muted: #c3d2de;
  --line: rgb(25 65 96 / 0.14);
  --line-strong: rgb(25 65 96 / 0.28);
  --line-on-navy: rgb(255 255 255 / 0.16);

  --font-body: "Slate", Arial, sans-serif;
  --font-display: "Slate", Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --text-hero: clamp(3rem, 1.6rem + 6.4vw, 6.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgb(15 43 66 / 0.06), 0 1px 1px rgb(15 43 66 / 0.04);
  --shadow-md: 0 10px 28px -12px rgb(15 43 66 / 0.28), 0 2px 6px rgb(15 43 66 / 0.06);
  --shadow-lg: 0 30px 80px -20px rgb(15 43 66 / 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 160ms var(--ease);
  --topbar-h: 68px;
}

/* scroll-margin on targets, not scroll-padding on html: padding makes focus inside the sticky bar scroll the page */
html { scroll-padding-top: 0; }
#results, .catbreak { scroll-margin-top: var(--topbar-h); }
body { font-weight: 400; overflow-x: hidden; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.browse :focus-visible, .sheet :focus-visible { outline-color: var(--navy); }

.wrap { width: min(100% - 2.5rem, 1320px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 4rem, 1320px); } }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--navy); padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-weight: 500; }
.skip-link:focus { top: 1rem; }

.ico { display: inline-flex; width: 1.125rem; height: 1.125rem; flex: none; }
.ico svg { width: 100%; height: 100%; }
.act svg, .starbtn svg, .iconbtn svg { width: 1.125rem; height: 1.125rem; }
.starbtn svg { width: 1.25rem; height: 1.25rem; }

.eyebrow { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.eyebrow--navy { color: var(--text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.125rem; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #ffdb57; }
.btn--gold:active { background: var(--gold-deep); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { color: #fff; border-color: var(--line-on-navy); }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }
.btn--line { color: var(--navy); border-color: var(--line-strong); background: var(--surface); }
.btn--line:hover { border-color: var(--navy); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-full); color: var(--navy); flex: none; }
.iconbtn:hover { background: rgb(25 65 96 / 0.08); }

/* The speech-bubble count, borrowed from the monogram's bubbles */
.bubble { position: relative; display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.375rem; padding: 0 0.4rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-size: var(--text-xs); font-weight: 800; font-variant-numeric: tabular-nums; }
.bubble::after { content: ""; position: absolute; left: 22%; bottom: -3px; width: 7px; height: 7px; background: inherit; clip-path: polygon(0 0, 100% 0, 10% 100%); }
.bubble[data-empty="true"] { display: none; }
.bubble.pop { animation: pop 420ms var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar-h); margin-bottom: calc(var(--topbar-h) * -1); color: #fff; transition: background 240ms var(--ease), box-shadow 240ms var(--ease); }
.topbar.is-stuck { background: rgb(15 43 66 / 0.96); box-shadow: 0 1px 0 var(--line-on-navy), 0 12px 30px -18px rgb(0 0 0 / 0.6); backdrop-filter: blur(10px); }
.topbar__inner { width: min(100% - 2.5rem, 1320px); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: var(--space-4); }
@media (min-width: 720px) { .topbar__inner { width: min(100% - 4rem, 1320px); } }
.topbar__brand { display: inline-flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; font-weight: 800; font-size: var(--text-base); letter-spacing: 0.01em; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.topbar__brand img { width: 38px; height: 45px; }
.topbar.is-stuck .topbar__brand { opacity: 1; pointer-events: auto; transform: none; }
.topbar__search { flex: 1; max-width: 26rem; margin-left: var(--space-4); display: none; align-items: center; gap: 0.5rem; height: 44px; padding: 0 1rem; border-radius: var(--radius-full); background: rgb(255 255 255 / 0.1); border: 1.5px solid transparent; opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease), border-color var(--transition-interactive); }
.topbar__search:focus-within { border-color: var(--gold); }
.topbar__search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-size: var(--text-sm); }
.topbar__search input::placeholder { color: var(--on-navy-muted); }
.topbar.is-stuck .topbar__search { opacity: 1; pointer-events: auto; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.topbar__searchbtn { padding: 0; width: 44px; opacity: 0; pointer-events: none; }
.topbar.is-stuck .topbar__searchbtn { opacity: 1; pointer-events: auto; }
.btn__label-short { display: none; }
@media (min-width: 900px) { .topbar__search { display: flex; } .topbar__searchbtn { display: none; } }
@media (max-width: 560px) {
  .topbar__brand span { display: none; }
  #openShortlist .btn__label { display: none; }
  #openShortlist { padding: 0 0.75rem; }
  .btn__label-long { display: none; } .btn__label-short { display: inline; }
}

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero__inner { position: relative; z-index: 1; padding-block: 1.5rem clamp(2.5rem, 5vw, 4.5rem); }
.hero__logo { width: 216px; margin-left: -20px; height: auto; margin-bottom: clamp(1.5rem, 3.5vw, 3rem); }
.hero__art { position: absolute; z-index: 0; right: -12%; top: 50%; width: min(60vw, 880px); max-width: none; transform: translateY(-46%); pointer-events: none; user-select: none; clip-path: inset(5.5%); /* trims the artboard's corner registration marks */ }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: var(--text-hero); line-height: 0.92; letter-spacing: -0.025em; margin: 0 0 1.5rem; }
.hero__lead { max-width: 34rem; font-size: var(--text-lg); line-height: 1.5; color: #e3ebf1; }
.hero__lead span { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }

.search { margin-top: var(--space-8); max-width: 40rem; display: flex; align-items: center; gap: 0.75rem; height: 68px; padding: 0 0.625rem 0 1.375rem; background: #fff; color: var(--navy); border-radius: var(--radius-full); box-shadow: var(--shadow-lg); border: 2px solid transparent; }
.search:focus-within { border-color: var(--gold); }
.search .ico { width: 1.375rem; height: 1.375rem; color: var(--text-muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 1.125rem; font-weight: 500; color: var(--navy); }
.search input::placeholder { color: #6b8497; font-weight: 400; }
.search input::-webkit-search-cancel-button, .topbar__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__kbd { font-family: inherit; font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0.1rem 0.45rem; }
.search__go { min-height: 48px; padding: 0 1.5rem; font-size: var(--text-base); }
.search__hint { min-height: 1.5rem; margin-top: 0.75rem; padding-left: 1.375rem; font-size: var(--text-sm); color: var(--on-navy-muted); }
.search__hint b { color: var(--gold); font-weight: 800; }

.tries { margin-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; max-width: 40rem; }
.tries__label { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-muted); margin-right: 0.25rem; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 36px; padding: 0 0.875rem; border-radius: var(--radius-full); font-size: var(--text-sm); border: 1.5px solid var(--line-strong); color: var(--navy); background: var(--surface); }
.chip--onnavy { color: #fff; background: rgb(15 43 66 / 0.55); border-color: var(--line-on-navy); }
.chip--onnavy:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 980px) {
  .hero__art { right: -30%; top: 0; width: 620px; transform: translateY(-8%); opacity: 0.62; }
  /* navy halo keeps copy readable where it crosses the line art */
  .hero h1, .hero__lead { text-shadow: 0 0 2px var(--navy), 0 0 5px var(--navy), 0 0 10px var(--navy), 0 0 16px var(--navy), 0 0 24px var(--navy); }
}
@media (max-width: 560px) {
  .hero__logo { width: 190px; margin-left: -18px; }
  .search { height: 60px; padding-left: 1rem; }
  .search__kbd { display: none; }
  .search__go { padding: 0 1rem; min-height: 44px; }
  .search input { font-size: 1rem; }
}

/* Needs band */
.needs { background: var(--navy-deep); color: #fff; }
.needs__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.need { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 0.5rem; text-align: left; padding: 1.75rem 1.5rem 1.5rem; color: #fff; border-left: 1px solid var(--line-on-navy); min-height: 150px; }
.need:last-child { border-right: 1px solid var(--line-on-navy); }
.need__label { font-weight: 900; font-size: var(--text-xl); letter-spacing: -0.01em; line-height: 1.1; }
.need__sub { font-size: var(--text-sm); color: var(--on-navy-muted); line-height: 1.4; max-width: 18ch; }
.need__go { width: 1.25rem; height: 1.25rem; margin-top: 0.5rem; color: var(--gold); transition: transform 220ms var(--ease); }
.need:hover .need__go { transform: translateY(3px); }
.need::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease); }
.need:hover { background: rgb(255 255 255 / 0.05); }
.need:hover::after, .need.is-on::after { transform: scaleX(1); }
.need.is-on { background: var(--navy); }
.need:focus-visible { outline-offset: -3px; }
@media (max-width: 980px) {
  .needs .wrap { width: 100%; }
  .needs__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(200px, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; }
  .needs__grid::-webkit-scrollbar { display: none; }
  .need { scroll-snap-align: start; min-height: 140px; }
}
@media (min-width: 720px) and (max-width: 980px) { .needs__grid { grid-auto-columns: minmax(150px, 1fr); padding-inline: 2rem; scroll-padding-inline: 2rem; } }

/* Browse */
.browse { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); outline: 0; }
.browse__inner { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: clamp(1.5rem, 2.5vw, 2.5rem); align-items: start; }

.rail { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100dvh - var(--topbar-h) - 32px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.rail__toggle { display: none; }
.rail__all, .rail__cat, .rail__group { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; text-align: left; border-radius: var(--radius-sm); }
.rail__all { min-height: 44px; padding: 0 0.75rem; font-weight: 800; font-size: var(--text-base); }
.rail__group { margin-top: 0.875rem; min-height: 34px; padding: 0 0.75rem; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.rail__cat { min-height: 34px; padding: 0.3125rem 0.75rem; font-size: var(--text-sm); line-height: 1.3; }
.rail__n { font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--text-muted); flex: none; }
.rail__all:hover, .rail__cat:hover, .rail__group:hover { background: rgb(25 65 96 / 0.08); }
.rail .is-on { background: var(--navy); color: #fff; }
.rail .is-on:hover { background: var(--navy-deep); }
.rail .is-on .rail__n { color: var(--gold); }
.rail__group.is-on { color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.toolbar h2 { font-weight: 900; font-size: var(--text-2xl); letter-spacing: -0.02em; }
.toolbar h2 small { font-size: var(--text-base); font-weight: 400; letter-spacing: 0; color: var(--text-muted); margin-left: 0.5rem; white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.625rem; }
.pills:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 32px; padding: 0 0.375rem 0 0.75rem; border-radius: var(--radius-full); background: var(--navy); color: #fff; font-size: var(--text-sm); }
.pill .ico { width: 1rem; height: 1rem; }
.pill:hover { background: var(--navy-deep); }
.toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.select select { height: 44px; padding: 0 2.25rem 0 1rem; border-radius: var(--radius-full); border: 1.5px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23194160' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.875rem center; appearance: none; font-size: var(--text-sm); font-weight: 500; color: var(--navy); cursor: pointer; }
.select select:hover { border-color: var(--navy); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-full); background: rgb(25 65 96 / 0.1); }
.seg__btn { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 38px; padding: 0 0.875rem; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 500; color: var(--navy); }
.seg__btn.is-on { background: var(--surface); box-shadow: var(--shadow-sm); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 284px), 1fr)); gap: 1rem; }
.catbreak { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 0.75rem; margin-top: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--navy); }
.catbreak:first-child { margin-top: 0; }
.catbreak h3 { font-weight: 900; font-size: var(--text-lg); letter-spacing: -0.005em; }
.catbreak span { font-size: var(--text-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease); animation: rise 380ms var(--ease) backwards; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.card:has(.card__open:hover), .card:focus-within { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__spec { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding-right: 3rem; line-height: 1.4; }
.card__open { display: block; width: 100%; text-align: left; margin-top: 0.5rem; padding-right: 2.5rem; }
.card__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3, .card h4 { font-weight: 800; font-size: 1.1875rem; line-height: 1.2; letter-spacing: -0.005em; color: var(--navy); }
.card__loc { display: flex; align-items: flex-start; gap: 0.375rem; margin-top: 0.5rem; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.4; }
.card__loc .ico { width: 0.9375rem; height: 0.9375rem; margin-top: 0.15rem; }
.card__note { margin-top: 0.625rem; font-size: var(--text-sm); line-height: 1.5; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__people { padding-top: 1rem; }
.card__people ul { list-style: none; border-top: 1px solid var(--line); }
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.person__id { flex: 1; min-width: 0; }
.person__num { position: relative; z-index: 1; flex: 0 0 100%; display: flex; align-items: center; gap: 0.5rem; min-height: 40px; margin-top: 0.25rem; padding: 0 0.25rem 0 0.75rem; border-radius: var(--radius-md, 10px); background: rgb(25 65 96 / 0.06); font-size: var(--text-sm); font-weight: 500; color: var(--navy); }
.person__num[hidden] { display: none; }
.person__num .ico { width: 0.875rem; height: 0.875rem; color: var(--text-muted); flex: none; }
.person__numtxt { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: all; }
.act.is-on { background: var(--navy); color: #fff; }
.person__name { display: block; font-weight: 500; font-size: var(--text-sm); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__title { display: block; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__acts { position: relative; z-index: 1; display: flex; gap: 0.125rem; flex: none; }
.act { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); color: var(--navy); }
.act:hover { background: var(--navy); color: #fff; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.625rem; font-size: var(--text-sm); }
.card__more { color: var(--text-muted); }
.card__web { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.25rem; min-height: 40px; font-weight: 500; color: var(--navy); text-decoration: none; margin-left: auto; }
.card__web:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__web .ico { width: 0.9375rem; height: 0.9375rem; }

.starbtn { position: absolute; z-index: 1; top: 0.75rem; right: 0.75rem; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-full); color: var(--text-muted); }
.starbtn:hover { background: rgb(25 65 96 / 0.08); color: var(--navy); }
.starbtn[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); }
.starbtn[aria-pressed="true"] svg { fill: currentColor; }
.starbtn.pop { animation: pop 420ms var(--ease); }

/* Table */
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: auto; max-height: calc(100dvh - var(--topbar-h) - 48px); box-shadow: var(--shadow-sm); }
.tbl { width: 100%; min-width: 940px; table-layout: fixed; font-size: var(--text-sm); }
.tbl col.c-org { width: 20%; } .tbl col.c-spec { width: 17%; } .tbl col.c-name { width: 14%; } .tbl col.c-title { width: 15%; } .tbl col.c-email { width: 21%; } .tbl col.c-phone { width: 13%; }
.tbl td { overflow-wrap: anywhere; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--navy); color: #fff; text-align: left; font-weight: 500; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.75rem 0.875rem; white-space: nowrap; }
.tbl td { padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl td.org { font-weight: 500; }
.tbl td button { text-align: left; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tbl a { color: var(--navy); text-underline-offset: 3px; }
.tbl .muted { color: var(--text-muted); }
.tbl td.nowrap { white-space: nowrap; }

/* Empty */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4rem 1.5rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty[hidden], .tablewrap[hidden], .cards[hidden] { display: none; }
.empty__bubble { position: relative; display: grid; place-items: center; width: 108px; height: 76px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 900; font-size: 2rem; margin-bottom: 1.75rem; }
.empty__bubble::after { content: ""; position: absolute; left: 24%; bottom: -12px; width: 22px; height: 22px; background: inherit; clip-path: polygon(0 0, 100% 0, 8% 100%); }
.empty h3 { font-weight: 900; font-size: var(--text-xl); margin-bottom: 0.5rem; }
.empty p { color: var(--text-muted); max-width: 38ch; margin-bottom: 1.5rem; }

/* Sheets (detail + shortlist) */
.sheet { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100vw, 520px); max-width: none; height: 100dvh; max-height: none; border: 0; padding: 0; background: var(--surface); color: var(--navy); box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet::backdrop { background: rgb(15 43 66 / 0.62); backdrop-filter: blur(2px); }
.sheet[open] { animation: slidein 360ms var(--ease); }
.sheet[open]::backdrop { animation: fade 300ms ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet__panel { display: flex; flex-direction: column; height: 100%; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-weight: 900; font-size: var(--text-2xl); line-height: 1.08; letter-spacing: -0.02em; margin-top: 0.375rem; }
.sheet__head--navy { background: var(--navy); color: #fff; border-bottom: 0; padding-bottom: 1.5rem; }
.sheet__head--navy .iconbtn { color: #fff; }
.sheet__head--navy .iconbtn:hover { background: rgb(255 255 255 / 0.12); }
.sheet__head--navy :focus-visible { outline-color: var(--gold); }
.sheet__spec { margin-top: 0.625rem; font-size: var(--text-base); color: #e3ebf1; }
.sheet__scroll { flex: 1; overflow-y: auto; padding: 1.5rem; }
.sheet__foot { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.sheet__foot .btn { flex: 1 1 auto; }
.kv { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.kv__row { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; font-size: var(--text-base); line-height: 1.5; }
.kv__row .ico { margin-top: 0.2rem; color: var(--text-muted); }
.kv__row a { color: var(--navy); font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sheet h3.sub { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact:last-child { border-bottom: 0; }
.contact__name { font-weight: 800; font-size: var(--text-lg); line-height: 1.25; }
.contact__title { color: var(--text-muted); font-size: var(--text-sm); margin-top: 0.125rem; }
.contact__rows { margin-top: 0.625rem; display: grid; gap: 0.25rem; }
.contact__row { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.contact__row a { flex: 1; min-width: 0; color: var(--navy); font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact__val { flex: 1; min-width: 0; color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.contact__row .ico { color: var(--text-muted); }
.copybtn { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 36px; padding: 0 0.625rem; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); flex: none; }
.copybtn:hover { background: rgb(25 65 96 / 0.08); color: var(--navy); }
.copybtn .ico { width: 0.875rem; height: 0.875rem; }
.copybtn.is-done { color: var(--navy); }

.sl-item { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.sl-item strong { font-weight: 800; line-height: 1.25; }
.sl-item span { grid-column: 1; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.4; }
.sl-item .iconbtn { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--text-muted); }
.field { display: grid; gap: 0.375rem; margin: 1.25rem 0 1rem; }
.field label { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); padding: 0.75rem 0.875rem; font-size: var(--text-base); }
#shortlistBody { display: flex; flex-direction: column; }
.field--grow { flex: 1 0 auto; grid-template-rows: auto 1fr auto; margin-bottom: 1.25rem; }
.sheet__foot--pin #slMail { flex-basis: 100%; }
.send { display: grid; gap: 0.25rem; margin: 0 0 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.send .sub { margin: 0; }
.send__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 0.75rem; }
.send .field { margin: 0.75rem 0 0.5rem; }
.send .btn { justify-self: start; margin: 0.5rem 0 0.375rem; }
.send .btn[disabled] { opacity: 0.6; cursor: default; }
.send__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sheet__foot--pin { position: sticky; bottom: -1.5rem; margin: auto -1.5rem -1.5rem; }
.field textarea { min-height: 240px; height: 100%; font-size: var(--text-sm); line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(25 65 96 / 0.14); }
.empty__bubble svg { width: 2rem; height: 2rem; }
.field__note { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.45; }
.field--grow { grid-template-rows: auto 1fr auto auto; }
.status { min-height: 1.25rem; font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.25rem; }

/* Footer */
.footer { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.footer__art { position: absolute; z-index: -1; left: 0; bottom: -18%; width: 100%; min-width: 900px; max-width: none; opacity: 0.85; pointer-events: none; }
.footer__text { text-shadow: 0 0 2px var(--navy), 0 0 5px var(--navy), 0 0 10px var(--navy), 0 0 16px var(--navy), 0 0 24px var(--navy); }
.footer__inner > img { filter: drop-shadow(0 0 6px var(--navy)) drop-shadow(0 0 14px var(--navy)); }
.footer .btn--ghost { background: rgb(25 65 96 / 0.9); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; padding-block: 3rem 3.5rem; }
.footer__text { flex: 1 1 22rem; font-size: var(--text-sm); color: #e3ebf1; display: grid; gap: 0.25rem; }
.footer__text p { max-width: none; }

/* Responsive browse */
@media (max-width: 980px) {
  .browse__inner { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; overflow: visible; padding: 0; }
  .rail__toggle { display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 48px; padding: 0 1rem; border-radius: var(--radius-md); background: var(--surface); border: 1.5px solid var(--line-strong); font-weight: 500; }
  .rail__nav { display: none; margin-top: 0.5rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
  .rail__nav.is-open { display: block; }
  .rail__cat, .rail__all { min-height: 44px; }
  .toolbar__tools { width: 100%; }
  .select { flex: 1; } .select select { width: 100%; }
}
@media (max-width: 560px) {
  .seg__btn span:not(.ico) { display: none; }
  .sheet { width: 100vw; }
  .footer__inner { padding-block: 2.5rem 3rem; }
}

/* ---------- password gate (WordPress-hosted version only) ---------- */
html.is-gated, html.is-gated body { background: var(--navy); }
html.is-gated body > :not(.gate) { display: none !important; }
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--navy); color: #fff; }
.gate__card { width: 100%; max-width: 30rem; display: grid; gap: 0.75rem; }
.gate__card[hidden] { display: none; }
.gate__logo { width: 168px; height: auto; margin-bottom: 1.25rem; }
.gate__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; color: #fff; }
.gate__lead { color: rgb(255 255 255 / 0.82); line-height: 1.5; margin-bottom: 0.75rem; }
.gate__label { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(255 255 255 / 0.72); }
.gate__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gate__row input { flex: 1 1 12rem; min-width: 0; height: 48px; padding: 0 1rem; border-radius: var(--radius-full); border: 1.5px solid transparent; background: #fff; color: var(--navy-deep); font-size: var(--text-base); }
.gate__row input:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.gate__row .btn { min-height: 48px; flex: 0 0 auto; }
.gate__row .btn[disabled] { opacity: 0.6; cursor: default; }
.gate__status { min-height: 1.5rem; color: #fff; font-size: var(--text-sm); font-weight: 500; }
