.lgsd-app {
  --ink: #102033;
  --muted: #647184;
  --line: #dce2e8;
  --paper: #f7f4ed;
  --white: #fff;
  --navy: #10253d;
  --navy-2: #173b59;
  --orange: #ef8f23;
  --orange-dark: #bf6311;
  --green: #24755f;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #e4dfd3;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(16, 37, 61, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 28px auto;
  max-width: 1180px;
  overflow: hidden;
}

.lgsd-app *, .lgsd-app *::before, .lgsd-app *::after { box-sizing: border-box; }
.lgsd-app button, .lgsd-app input, .lgsd-app select, .lgsd-app textarea { font: inherit; }
.lgsd-app button, .lgsd-app a { -webkit-tap-highlight-color: transparent; }

.lgsd-hero {
  align-items: end;
  background: radial-gradient(circle at 88% 15%, rgba(239, 143, 35, .23), transparent 27%), linear-gradient(125deg, #0d1f32, #173b59);
  color: var(--white);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr);
  padding: 58px clamp(24px, 5vw, 70px) 50px;
}

.lgsd-eyebrow { color: #efaa56; display: block; font-size: 15px; font-weight: 850; letter-spacing: .13em; margin-bottom: 12px; text-transform: uppercase; }
.lgsd-hero h2, .lgsd-form-intro h3, .lgsd-membership-head h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.lgsd-hero p { color: #d9e2ea; font-size: 20px; margin: 18px 0 0; max-width: 760px; }
.lgsd-tabs { background: var(--white); border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; padding: 0 clamp(18px, 5vw, 70px); }
.lgsd-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 800; margin-bottom: -1px; padding: 20px 16px 17px; white-space: nowrap; }
.lgsd-tabs button:hover, .lgsd-tabs button:focus-visible { color: var(--navy); }
.lgsd-tabs button.is-active { border-color: var(--orange); color: var(--navy); }

.lgsd-panel { display: none; padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 70px) 70px; }
.lgsd-panel.is-active { display: block; }
.lgsd-searchbar { align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 35px rgba(16, 32, 51, .06); display: grid; gap: 12px; grid-template-columns: 1.6fr 1fr .65fr; padding: 16px; }
.lgsd-searchbar label, .lgsd-form label { display: block; }
.lgsd-searchbar label > span, .lgsd-form label > span, .lgsd-plans legend { color: #425066; display: block; font-size: 12px; font-weight: 800; letter-spacing: .035em; margin: 0 0 7px; text-transform: uppercase; }
.lgsd-app input, .lgsd-app select, .lgsd-app textarea { background: var(--white); border: 1px solid #c9d1db; border-radius: 10px; color: var(--ink); outline: none; padding: 12px 13px; width: 100%; }
.lgsd-app input:focus, .lgsd-app select:focus, .lgsd-app textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 143, 35, .15); }
.lgsd-results-head { align-items: center; display: flex; justify-content: space-between; margin: 24px 2px 15px; }
.lgsd-results-head p { color: var(--muted); font-size: 14px; font-weight: 700; margin: 0; }
.lgsd-text-button { background: transparent; border: 0; color: var(--orange-dark); cursor: pointer; font-size: 13px; font-weight: 800; padding: 4px; }

.lgsd-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lgsd-card { background: var(--white); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 30px rgba(16, 32, 51, .05); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.lgsd-card:hover { box-shadow: 0 18px 45px rgba(16, 32, 51, .11); transform: translateY(-3px); }
.lgsd-card-image { aspect-ratio: 3 / 2; height: auto; min-height: 180px; flex: 0 0 auto; overflow: hidden; position: relative; background: #e2e7ed; }
.lgsd-app .lgsd-card-image img { position: absolute; inset: 0; display: block; height: 100%; max-height: none; object-fit: contain; object-position: center; width: 100%; margin: 0; }
.lgsd-card-image > b { background: #fff3df; border-radius: 999px; color: #9b4b07; font-size: 11px; left: 14px; padding: 7px 10px; position: absolute; top: 14px; text-transform: uppercase; }
.lgsd-placeholder, .lgsd-profile-placeholder { align-items: center; background: radial-gradient(circle at 75% 28%, rgba(255, 255, 255, .18), transparent 22%), linear-gradient(145deg, #173b59, #296582); color: rgba(255, 255, 255, .9); display: flex; font-family: Georgia, serif; font-size: 45px; font-weight: 700; height: 100%; justify-content: center; letter-spacing: -.04em; }
.lgsd-card:nth-child(3n+2) .lgsd-placeholder { background: radial-gradient(circle at 75% 28%, rgba(255,255,255,.16), transparent 22%), linear-gradient(145deg, #704421, #c4792d); }
.lgsd-card:nth-child(3n+3) .lgsd-placeholder { background: radial-gradient(circle at 75% 28%, rgba(255,255,255,.16), transparent 22%), linear-gradient(145deg, #275347, #3f8972); }
.lgsd-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.lgsd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.lgsd-tags span { background: #eef3f6; border-radius: 999px; color: #3c566d; font-size: 10px; font-weight: 800; padding: 5px 8px; text-transform: uppercase; }
.lgsd-card h3 { font-family: Georgia, serif; font-size: 23px; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 9px; }
.lgsd-card p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.lgsd-card dl { border-top: 1px solid #edf0f3; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: auto 0 17px; padding-top: 14px; }
.lgsd-card dl div { min-width: 0; }
.lgsd-card dt { color: #8791a0; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.lgsd-card dd { color: var(--ink); font-size: 12px; font-weight: 750; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgsd-card button, .lgsd-membership-grid button { background: var(--navy); border: 0; border-radius: 10px; color: var(--white); cursor: pointer; font-size: 13px; font-weight: 800; padding: 12px 14px; text-align: left; width: 100%; }
.lgsd-card button span { float: right; }
.lgsd-card button:hover { background: var(--navy-2); }
.lgsd-empty { align-items: center; background: var(--white); border: 1px dashed #bec9d4; border-radius: 16px; display: flex; flex-direction: column; grid-column: 1 / -1; padding: 50px 20px; text-align: center; }
.lgsd-empty span { color: var(--muted); font-size: 14px; margin-top: 4px; }

.lgsd-form-intro, .lgsd-membership-head { margin-bottom: 30px; max-width: 760px; }
.lgsd-form-intro h3, .lgsd-membership-head h3 { font-size: clamp(32px, 4.5vw, 48px); }
.lgsd-form-intro p, .lgsd-membership-head p { color: var(--muted); margin: 14px 0 0; }
.lgsd-form { background: var(--white); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 14px 40px rgba(16, 32, 51, .06); padding: clamp(20px, 4vw, 38px); }
.lgsd-form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.lgsd-form textarea { resize: vertical; }
.lgsd-form label small { color: #7a8694; display: block; font-size: 12px; margin-top: 5px; text-align: right; }
.lgsd-form label small.is-ready { color: var(--green); }
.lgsd-field-label { color: #425066; display: block; font-size: 12px; font-weight: 800; letter-spacing: .035em; margin: 0 0 7px; text-transform: uppercase; }
.lgsd-category-field { min-width: 0; position: relative; }
.lgsd-category-picker { position: relative; }
.lgsd-category-toggle { background: var(--white); border: 1px solid #c9d1db; border-radius: 10px; color: var(--ink); cursor: pointer; min-height: 50px; overflow: hidden; padding: 12px 40px 12px 13px; position: relative; text-align: left; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.lgsd-category-toggle::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.lgsd-category-toggle:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 143, 35, .15); outline: none; }
.lgsd-category-menu { background: var(--white); border: 1px solid #c9d1db; border-radius: 10px; box-shadow: 0 14px 35px rgba(16, 32, 51, .16); left: 0; max-height: 310px; overflow-y: auto; padding: 8px; position: absolute; right: 0; top: calc(100% + 5px); z-index: 30; }
.lgsd-category-menu[hidden] { display: none; }
.lgsd-category-menu label { align-items: center; border-radius: 7px; cursor: pointer; display: flex; gap: 9px; padding: 8px 9px; }
.lgsd-category-menu label:hover { background: #f3f6f8; }
.lgsd-category-menu input { accent-color: var(--orange-dark); flex: 0 0 auto; margin: 0; padding: 0; width: auto; }
.lgsd-category-menu span { font-size: 13px; }
.lgsd-category-field > small { color: #7a8694; display: block; font-size: 12px; margin-top: 5px; }
.lgsd-upload { background: #f6f8fa; border: 1px dashed #bbc6d1; border-radius: 12px; margin-top: 18px; padding: 16px; }
.lgsd-upload input { background: transparent; border: 0; padding: 5px 0; }
.lgsd-upload em { color: var(--muted); display: block; font-size: 12px; font-style: normal; }
.lgsd-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lgsd-photo-preview img { border-radius: 9px; height: 72px; object-fit: contain; width: 72px; }
.lgsd-plans { border: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 0; padding: 0; }
.lgsd-plans legend { grid-column: 1 / -1; }
.lgsd-plans label { align-items: center; border: 1px solid #cbd4dc; border-radius: 12px; cursor: pointer; display: flex; gap: 11px; padding: 15px; position: relative; }
.lgsd-plans label:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 143, 35, .12); }
.lgsd-plans input { accent-color: var(--orange-dark); width: auto; }
.lgsd-plans strong, .lgsd-plans small { display: block; }
.lgsd-plans small { color: var(--muted); }
.lgsd-plans b { background: #fff0dc; border-radius: 999px; color: #9b4b07; font-size: 10px; padding: 4px 7px; position: absolute; right: 10px; text-transform: uppercase; top: 9px; }
.lgsd-notice { background: #fff9ec; border: 1px solid #f5d69d; border-radius: 11px; color: #735323; font-size: 13px; margin: 18px 0; padding: 13px 15px; }
.lgsd-primary, .lgsd-secondary { align-items: center; border-radius: 10px; display: inline-flex; font-size: 14px; font-weight: 800; justify-content: center; padding: 13px 18px; text-decoration: none; }
button.lgsd-primary, a.lgsd-primary { background: var(--orange); border: 0; color: #291a09; cursor: pointer; }
button.lgsd-primary:hover, a.lgsd-primary:hover { background: #ffab45; }
button.lgsd-primary:disabled { cursor: wait; opacity: .6; }
.lgsd-secondary { background: #edf2f5; color: var(--navy); }
.lgsd-form-status { font-size: 13px; font-weight: 700; margin: 12px 0 0; }
.lgsd-form-status.is-error { color: #a73326; }
.lgsd-form-status.is-success { background: #e8f6ef; border-radius: 10px; color: #16604b; padding: 12px; }

.lgsd-membership-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.lgsd-membership-grid article { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; }
.lgsd-membership-grid article.is-featured { border: 2px solid var(--orange); box-shadow: 0 16px 40px rgba(191, 99, 17, .12); }
.lgsd-membership-grid article > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.lgsd-membership-grid article > strong { display: block; font-family: Georgia, serif; font-size: 44px; margin: 10px 0 16px; }
.lgsd-membership-grid article > strong small { color: var(--muted); font-family: Inter, sans-serif; font-size: 15px; }
.lgsd-membership-grid ul { color: #445267; margin: 0 0 22px; padding-left: 20px; }
.lgsd-membership-grid li { margin: 7px 0; }
.lgsd-membership-grid button { text-align: center; }
.lgsd-membership-grid .is-featured button { background: var(--orange); color: #291a09; }
.lgsd-center-note { color: var(--muted); font-size: 12px; max-width: 820px; text-align: center; }

.lgsd-modal[hidden] { display: none; }
.lgsd-modal { inset: 0; position: fixed; z-index: 999999; }
.lgsd-modal-backdrop { background: rgba(6, 17, 29, .72); inset: 0; position: absolute; }
.lgsd-modal-card { background: var(--white); border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.3); left: 50%; max-height: 88vh; max-width: 850px; overflow: auto; position: absolute; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); }
.lgsd-modal-close { align-items: center; background: rgba(255, 255, 255, .94); border: 0; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.16); cursor: pointer; display: flex; font-size: 25px; height: 38px; justify-content: center; position: absolute; right: 15px; top: 15px; width: 38px; z-index: 2; }
.lgsd-gallery { background: #e2e7ed; display: grid; gap: 8px; grid-auto-rows: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.lgsd-app .lgsd-gallery img { display: block; height: auto; max-height: 65vh; object-fit: contain; width: 100%; margin: 0; align-self: center; }
.lgsd-gallery img:first-child { grid-column: 1 / -1; }
.lgsd-profile-placeholder { height: 210px; }
.lgsd-profile-content { padding: clamp(24px, 5vw, 44px); }
.lgsd-profile-content h2 { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 0; }
.lgsd-profile-location { color: var(--muted); font-weight: 700; margin: 8px 0 20px; }
.lgsd-about { color: #364456; }
.lgsd-about p:last-child { margin-bottom: 0; }
.lgsd-profile-facts { background: #f3f6f8; border-radius: 12px; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 22px 0; padding: 16px; }
.lgsd-profile-facts span { display: block; }
.lgsd-profile-facts small, .lgsd-profile-facts strong { display: block; }
.lgsd-profile-facts small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.lgsd-profile-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.lgsd-disclaimer { color: #7d8794; font-size: 11px; margin: 18px 0 0; }
body.lgsd-modal-open { overflow: hidden; }

@media (max-width: 850px) {
  .lgsd-hero { grid-template-columns: 1fr; }
  .lgsd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .lgsd-app { border-radius: 14px; margin: 12px 0; }
  .lgsd-hero { padding-top: 40px; }
  .lgsd-searchbar, .lgsd-form-grid, .lgsd-plans, .lgsd-membership-grid { grid-template-columns: 1fr; }
  .lgsd-grid { grid-template-columns: 1fr; }
  .lgsd-tabs { padding-inline: 8px; }
  .lgsd-gallery { grid-auto-rows: auto; grid-template-columns: 1fr 1fr; }
  .lgsd-gallery img:first-child { grid-column: span 2; grid-row: auto; }
  .lgsd-profile-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lgsd-card { transition: none; }
  .lgsd-card:hover { transform: none; }
}

/* Legacy raster placeholders also retain their full image. */
.lgsd-card-image img.lgsd-default-photo { object-fit: contain; background: #f4f5f6; }
.lgsd-gallery.lgsd-gallery-placeholder { display: block; background: #f4f5f6; }
.lgsd-gallery.lgsd-gallery-placeholder img { display: block; width: 100%; height: 260px; object-fit: contain; }

/* Responsive placeholder: full-area background, uncropped icon and real text. */
.lgsd-photo-placeholder { box-sizing: border-box; width: 100%; height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: #3e5062; background: #e2e7ed; text-align: center; }
.lgsd-photo-placeholder svg { display: block; width: 82px; height: 62px; flex: 0 0 auto; }
.lgsd-photo-placeholder span { display: block; max-width: 100%; font: 700 18px/1.25 Arial, sans-serif; overflow-wrap: anywhere; }
.lgsd-photo-placeholder.lgsd-photo-placeholder-profile { height: 260px; }
.lgsd-photo-placeholder-profile svg { width: 110px; height: 83px; }
.lgsd-photo-placeholder-profile span { font-size: 24px; }

/* Content must not inherit an undefined percentage height from the card. */
.lgsd-app .lgsd-card-image .lgsd-photo-placeholder { position: absolute; inset: 0; height: auto; min-height: 100%; }

/* Additional supplier keyword search beneath the advertising strip. */
.lgsd-top-search-wrap { background: #edf2f6; padding: 18px clamp(18px, 7vw, 100px); border-bottom: 1px solid #dce2e8; }
.lgsd-top-search { display: flex; align-items: flex-end; gap: 12px; margin: 0; }
.lgsd-top-search label { flex: 1; min-width: 0; }
.lgsd-top-search label > span { display: block; color: #425066; font-size: 12px; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.lgsd-top-search input { min-height: 50px; }
.lgsd-top-search button { flex: 0 0 auto; min-height: 50px; padding: 12px 25px; border: 0; border-radius: 10px; background: #ee922b; color: #10253d; font-weight: 800; cursor: pointer; }
.lgsd-top-search button:hover { background: #ffab45; }
.lgsd-top-search button:focus-visible { outline: 3px solid #10253d; outline-offset: 3px; }
.lgsd-panel[data-lgsd-panel="browse"] { scroll-margin-top: 85px; }
@media (max-width: 480px) { .lgsd-top-search { flex-wrap: wrap; } .lgsd-top-search label { flex-basis: 100%; } .lgsd-top-search button { width: 100%; } }

/* Homepage featured category widget. Labels stay outside the artwork. */
.lgsd-app .lgsd-featured {margin:24px 0 32px;padding:28px;background:#fff;border:1px solid #e2e7ed;border-top:4px solid #EE922B;border-radius:16px;box-shadow:0 8px 28px rgba(16,37,61,.05)}
.lgsd-app .lgsd-featured-heading {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.lgsd-app .lgsd-featured-kicker {font-size:10px;font-weight:800;letter-spacing:1.8px;color:#97500b}
.lgsd-app .lgsd-featured-heading h2 {margin:5px 0 7px;padding:0;font-size:28px;line-height:1.2;color:#10253d;font-weight:800}
.lgsd-app .lgsd-featured-heading p {margin:0;font-size:14px;color:#586779}
.lgsd-app .lgsd-featured-total {flex-shrink:0;font-size:12px;color:#10253d;background:#f2f5f8;border-radius:20px;padding:8px 12px}
.lgsd-app .lgsd-featured-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.lgsd-app button.lgsd-featured-tile {appearance:none;display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;min-width:0;height:auto;padding:14px 6px;border:1px solid transparent;border-radius:10px;background:#fff;color:#10253d;cursor:pointer;text-align:center;font:inherit;white-space:normal;box-shadow:none;transition:background .15s,border-color .15s}
.lgsd-app button.lgsd-featured-tile[hidden] {display:none!important}
.lgsd-app button.lgsd-featured-tile:hover,.lgsd-app button.lgsd-featured-tile[aria-pressed="true"] {border-color:#EE922B;background:#fff9f1}
.lgsd-app .lgsd-featured-tile:focus-visible,.lgsd-app .lgsd-featured-more:focus-visible {outline:3px solid #10253d;outline-offset:3px}
.lgsd-app .lgsd-featured-tile img {position:static;display:block;width:120px;height:120px;max-width:100%;object-fit:contain;border-radius:8px;margin:0}
.lgsd-app .lgsd-featured-tile strong {display:block;font-size:14px;line-height:1.35;font-weight:800;overflow-wrap:anywhere;color:#10253d}
.lgsd-app .lgsd-featured-link {display:block;margin-top:auto;font-size:11px;line-height:1.5;font-weight:800;color:#98500a}
.lgsd-app .lgsd-featured-link span {color:#EE922B;font-size:18px;font-weight:900}
.lgsd-app button.lgsd-featured-more {display:block;margin:24px auto 0;padding:12px 24px;background:#EE922B;color:#10253d;border:0;border-radius:6px;font-size:13px;font-weight:800;cursor:pointer}
@media(max-width:1000px){.lgsd-app .lgsd-featured-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.lgsd-app .lgsd-featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lgsd-app .lgsd-featured{padding:18px}.lgsd-app .lgsd-featured-heading h2{font-size:23px}}
@media(max-width:480px){.lgsd-app .lgsd-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lgsd-app .lgsd-featured-total{display:none}.lgsd-app .lgsd-featured{padding:14px}.lgsd-app .lgsd-featured-tile img{width:110px;height:110px}}
@media(prefers-reduced-motion:reduce){.lgsd-app button.lgsd-featured-tile{transition:none}}

.lgsd-verification{border:1px solid #8db6a2;background:#edf7f0;border-radius:8px;padding:10px 13px;margin:10px 0;color:#185538}.lgsd-verification strong,.lgsd-verification small{display:block}.lgsd-verification small{font-size:12px;line-height:1.5}.lgsd-verification p{font-size:14px}.lgsd-verification a{text-decoration:underline}
