:root {
  --ld-river: #0b3566;
  --ld-blue: #1c5fb8;
  --ld-navy: #071525;
  --ld-ink: #101927;
  --ld-muted: #687386;
  --ld-gold: #d4af37;
  --ld-gold-hi: #ecd895;
  --ld-gold-deep: #8e6a2b;
  --ld-platinum: #f7f8fa;
  --ld-mist: #f1f4f8;
  --ld-line: #dce3ec;
  --ld-white: #fff;
  --ld-green: #24764d;
  --ld-radius: 18px;
}

.ld-directory, .ld-form, .ld-account, .ld-plans { color: var(--ld-ink); font-family: inherit; }
.ld-directory *, .ld-form *, .ld-account *, .ld-plans * { box-sizing: border-box; box-shadow: none !important; }
.ld-directory a, .ld-form a, .ld-account a, .ld-plans a { color: var(--ld-river); }

/* Directory hero */
.ld-hero { position: relative; overflow: hidden; padding: 40px; border: 1px solid #173450; border-radius: 24px; background: var(--ld-navy); color: var(--ld-white); }
.ld-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -170px; top: -180px; border: 1px solid rgba(212,175,55,.3); border-radius: 50%; }
.ld-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 11px; margin-bottom: 32px; }
.ld-brand > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ld-gold-deep); border-radius: 14px; background: linear-gradient(145deg, var(--ld-gold-hi), var(--ld-gold)); color: var(--ld-navy); font-size: 14px; font-weight: 700; }
.ld-brand strong, .ld-brand small { display: block; }
.ld-brand strong { color: var(--ld-white); font-size: 16px; line-height: 1; }
.ld-brand small { margin-top: 5px; color: #aab7c5; font-size: 12px; }
.ld-kicker { position: relative; z-index: 1; margin: 0; color: var(--ld-gold-hi); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ld-hero h1 { position: relative; z-index: 1; margin: 10px 0 28px; color: var(--ld-white); font-size: clamp(38px, 6vw, 62px); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; }
.ld-search { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(240px, 2fr) minmax(175px, 1fr) minmax(150px, .8fr) auto; overflow: hidden; padding: 8px; border: 1px solid rgba(236,216,149,.38); border-radius: var(--ld-radius); background: rgba(255,255,255,.07); }
.ld-search label { min-width: 0; display: grid; gap: 2px; padding: 8px 13px; border-right: 1px solid var(--ld-line); background: var(--ld-white); color: var(--ld-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ld-search label:first-child { border-radius: 11px 0 0 11px; }
.ld-search input, .ld-search select { min-width: 0; height: 31px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ld-ink); font: inherit; font-size: 14px; }
.ld-search button, .ld-form > button { min-height: 58px; padding: 0 22px; border: 1px solid var(--ld-gold-deep); border-radius: 0 11px 11px 0; background: linear-gradient(180deg, #e2c76d, var(--ld-gold)); color: var(--ld-navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ld-alpha { position: relative; z-index: 1; display: flex; gap: 5px; align-items: center; overflow-x: auto; margin-top: 20px; padding-bottom: 3px; scrollbar-width: thin; }
.ld-alpha a { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.04); color: #d3dce7; font-size: 12px; font-weight: 700; text-decoration: none; }
.ld-alpha a:first-child { min-width: 58px; }
.ld-alpha a:hover, .ld-alpha a.active { border-color: var(--ld-gold-deep); background: var(--ld-gold); color: var(--ld-navy); }

.ld-toolbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 2px; }
.ld-toolbar > div { display: flex; align-items: baseline; gap: 7px; }
.ld-toolbar strong { color: var(--ld-river); font-size: 25px; letter-spacing: -.025em; }
.ld-toolbar span { color: var(--ld-muted); font-size: 14px; }
.ld-join { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--ld-gold-deep); border-radius: 11px; background: linear-gradient(180deg, #163a66, #0b274a); color: var(--ld-white) !important; font-size: 13px; font-weight: 700; text-decoration: none; }

/* Featured and card */
.ld-featured { margin: 8px 0 24px; padding: 16px; border: 1px solid rgba(212,175,55,.5); border-radius: 22px; background: #fffdf6; }
.ld-featured > header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 2px 4px 14px; }
.ld-featured > header span { color: var(--ld-gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ld-featured > header h2 { margin: 0; color: var(--ld-river); font-size: 16px; }
.ld-featured > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ld-card { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 13px; padding: 16px; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); background: var(--ld-white); }
.ld-card-media { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid #c8d4e1; border-radius: 17px; background: var(--ld-mist); color: var(--ld-river); font-size: 21px; font-weight: 700; }
.ld-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ld-card-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ld-card h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.ld-card h3 a { color: var(--ld-ink); text-decoration: none; }
.ld-card p { margin: 5px 0; color: var(--ld-muted); font-size: 13px; }
.ld-card-copy { margin: 8px 0; color: var(--ld-muted); font-size: 14px; line-height: 1.55; }
.ld-card-body > strong { color: var(--ld-river); font-size: 16px; }
.ld-card > .ld-actions { grid-column: 1/-1; }

/* Raw A-Z list */
.ld-book { display: grid; gap: 14px; background: transparent; }
.ld-letter-group { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: start; gap: 10px; }
.ld-letter-group > h2 { position: sticky; top: 94px; width: 54px; height: 54px; display: grid; place-items: center; margin: 0; border: 1px solid var(--ld-gold-deep); border-radius: 16px; background: linear-gradient(145deg, var(--ld-gold-hi), var(--ld-gold)); color: var(--ld-navy); font-size: 22px; line-height: 1; }
.ld-letter-group > div { min-width: 0; display: grid; gap: 8px; }
.ld-raw-row { min-height: 82px; display: grid; grid-template-columns: minmax(210px, 1.35fr) minmax(116px, .52fr) minmax(132px, .6fr) auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--ld-line); border-radius: 16px; background: var(--ld-white); }
.ld-raw-row.is-essential { border-color: rgba(212,175,55,.62); background: #fffdf6; }
.ld-raw-name { min-width: 0; }
.ld-raw-name h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.ld-raw-name h3 a { color: var(--ld-ink); text-decoration: none; }
.ld-raw-name p { margin: 5px 0 0; overflow: hidden; color: var(--ld-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ld-raw-flags { display: flex; gap: 5px; flex-wrap: wrap; }
.ld-verified, .ld-essential, .ld-review { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid #b9dcc9; border-radius: 999px; background: #eff8f3; color: var(--ld-green); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ld-essential { border-color: rgba(212,175,55,.55); background: #fff8dc; color: #75580f; }
.ld-review { border-color: #e0c990; background: #fffaf0; color: #806119; }
.ld-number { color: var(--ld-river); font-size: 16px; font-weight: 700; white-space: nowrap; }
.ld-actions { display: flex; align-items: center; gap: 5px; }
.ld-actions a { min-height: 42px; display: inline-grid; place-items: center; padding: 0 11px; border: 1px solid var(--ld-line); border-radius: 10px; background: var(--ld-white); color: var(--ld-river); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ld-actions .ld-call { border-color: var(--ld-gold-deep); background: linear-gradient(180deg, #163a66, #0b274a); color: var(--ld-white); }
.ld-actions .ld-whatsapp { border-color: #4d9b70; background: #287a50; color: var(--ld-white); }
.ld-goads-inline { position: relative; min-height: 104px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #cbd3dd; border-radius: 16px; background: var(--ld-platinum); }
.ld-goads-inline > span { position: absolute; top: 8px; left: 10px; color: #788596; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ld-empty, .ld-notice, .ld-success { padding: 28px; border: 1px dashed #bdc8d5; border-radius: var(--ld-radius); background: var(--ld-mist); }
.ld-empty strong, .ld-empty span, .ld-notice strong, .ld-notice p, .ld-success strong, .ld-success p { display: block; }
.ld-empty strong, .ld-notice strong { color: var(--ld-river); }
.ld-empty span, .ld-notice p, .ld-success p { margin: 6px 0 14px; color: var(--ld-muted); font-size: 14px; line-height: 1.55; }
.ld-empty a { font-size: 13px; font-weight: 700; }
.ld-success { border-style: solid; border-color: #b8dcc9; background: #f1faf5; color: var(--ld-green); }
.ld-pagination { display: flex; gap: 6px; justify-content: center; padding: 26px; }
.ld-pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ld-line); border-radius: 10px; background: var(--ld-white); font-size: 13px; font-weight: 700; text-decoration: none; }
.ld-pagination a.active { border-color: var(--ld-gold-deep); background: var(--ld-river); color: var(--ld-white); }
.ld-directory-note { padding: 18px 0 2px; color: var(--ld-muted); font-size: 12px; text-align: center; }

/* Forms, account and plans */
.ld-form { position: relative; padding: 34px; border: 1px solid var(--ld-line); border-radius: 22px; background: var(--ld-white); }
.ld-form header > span, .ld-account header span, .ld-plans > header span { color: var(--ld-gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ld-form header h1, .ld-account header h1, .ld-plans > header h2 { margin: 8px 0; color: var(--ld-river); font-size: clamp(34px, 5vw, 56px); letter-spacing: -.025em; line-height: 1.02; }
.ld-form header p, .ld-plans > header p { max-width: 700px; color: var(--ld-muted); font-size: 15px; line-height: 1.6; }
.ld-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.ld-grid label { display: grid; gap: 7px; color: var(--ld-ink); font-size: 13px; font-weight: 700; }
.ld-grid input, .ld-grid select, .ld-grid textarea, .ld-plan-grid select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ld-line); border-radius: 11px; outline: 0; background: var(--ld-white); color: var(--ld-ink); font: inherit; font-size: 14px; }
.ld-grid input:focus, .ld-grid select:focus, .ld-grid textarea:focus { border-color: var(--ld-blue); }
.ld-grid textarea { resize: vertical; }
.ld-grid label > small { color: var(--ld-muted); font-size: 12px; }
.ld-wide { grid-column: 1/-1; }
.ld-consent { grid-template-columns: auto 1fr !important; align-items: start; padding: 14px; border: 1px solid rgba(212,175,55,.5); border-radius: 12px; background: #fffdf6; }
.ld-consent input { width: auto; min-height: auto; margin-top: 2px; }
.ld-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ld-request-target { margin-top: 18px; padding: 14px; border: 1px solid rgba(212,175,55,.5); border-radius: 12px; background: #fffdf6; }
.ld-account > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.ld-account-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; padding: 16px; border: 1px solid var(--ld-line); border-radius: 14px; background: var(--ld-white); }
.ld-account-row strong, .ld-account-row small { display: block; }
.ld-account-row small { margin-top: 4px; color: var(--ld-muted); font-size: 12px; }
.ld-account-row > div:last-child { display: flex; gap: 10px; }
.ld-account-row a { font-size: 13px; font-weight: 700; }
.ld-plans > header { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.ld-plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.ld-plan-grid article { min-height: 370px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--ld-line); border-radius: 20px; background: var(--ld-white); }
.ld-plan-grid article:nth-child(2) { border-color: rgba(212,175,55,.72); background: #fffdf6; }
.ld-plan-grid small { color: var(--ld-gold-deep); }
.ld-plan-grid h3 { margin: 8px 0; color: var(--ld-river); font-size: 28px; letter-spacing: -.025em; }
.ld-plan-grid > article > strong { font-size: 18px; }
.ld-plan-grid p, .ld-plan-grid > article > div { color: var(--ld-muted); font-size: 14px; line-height: 1.6; }
.ld-plan-grid form { display: grid; gap: 8px; margin-top: auto; }
.ld-plan-grid form label { font-size: 13px; font-weight: 700; }
.ld-plan-grid article > a, .ld-plan-grid button { min-height: 46px; display: grid; place-items: center; margin-top: auto; padding: 0 12px; border: 1px solid var(--ld-gold-deep); border-radius: 11px; background: var(--ld-river); color: var(--ld-white); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }

@media (max-width: 1080px) {
  .ld-search { grid-template-columns: 1fr 1fr; }
  .ld-search label { border-bottom: 1px solid var(--ld-line); }
  .ld-search label:first-child { border-radius: 11px 0 0 0; }
  .ld-search button { border-radius: 0 0 11px 0; }
  .ld-raw-row { grid-template-columns: minmax(190px, 1fr) minmax(128px, .5fr) auto; }
  .ld-raw-flags { display: none; }
}

@media (max-width: 760px) {
  .ld-hero { margin-right: -8px; margin-left: -8px; padding: 26px 18px; border-radius: 20px; }
  .ld-search { grid-template-columns: 1fr; }
  .ld-search label, .ld-search label:first-child { border-right: 0; border-bottom: 1px solid var(--ld-line); border-radius: 0; }
  .ld-search label:first-child { border-radius: 11px 11px 0 0; }
  .ld-search button { min-height: 50px; border-radius: 0 0 11px 11px; }
  .ld-alpha { margin-right: -18px; margin-left: -18px; padding-right: 18px; padding-left: 18px; }
  .ld-featured > div { grid-template-columns: 1fr; }
  .ld-letter-group { grid-template-columns: 38px minmax(0,1fr); gap: 7px; }
  .ld-letter-group > h2 { top: 76px; width: 38px; height: 38px; border-radius: 11px; font-size: 17px; }
  .ld-raw-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 13px; }
  .ld-number { text-align: right; }
  .ld-raw-row > .ld-actions { grid-column: 1/-1; }
  .ld-actions a { flex: 1; min-height: 40px; }
  .ld-grid, .ld-plan-grid { grid-template-columns: 1fr; }
  .ld-wide { grid-column: auto; }
  .ld-account > header, .ld-account-row { align-items: flex-start; flex-direction: column; }
  .ld-account-row > div:last-child { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .ld-hero h1 { font-size: 42px; }
  .ld-toolbar { align-items: flex-start; flex-direction: column; padding: 16px 2px; }
  .ld-toolbar .ld-join { width: 100%; }
  .ld-letter-group { grid-template-columns: 1fr; }
  .ld-letter-group > h2 { position: static; width: 42px; height: 42px; }
  .ld-raw-row { grid-template-columns: 1fr; }
  .ld-number { font-size: 15px; text-align: left; }
  .ld-actions { width: 100%; }
  .ld-card { grid-template-columns: 48px minmax(0,1fr); }
  .ld-card-media { width: 48px; height: 48px; border-radius: 14px; }
  .ld-form { padding: 20px; }
  .ld-directory-note { text-align: left; }
}
