/* The organization directory's public pages (templates/website/directory/*,
   organization_detail.html). Plain CSS rather than Tailwind utilities: the
   page is drawn from the design boards' own measurements, and these classes
   need no rebuild of the prebuilt Tailwind file.

   Three levels, one variable set each (.dir-level-*):
   not verified = green, Freemium = blue, Pro / Plus Payments = gold. */

.dir {
  --dir-ink: #0f172a; --dir-muted: #64748b; --dir-soft: #475569; --dir-line: #e2e8f0;
  --dir-brand: #1d4d7f; --dir-brand-2: #2a5f96; --dir-navy: #0f2a4a; --dir-gold: #f0d49a;
  --dir-cover: linear-gradient(135deg, #064e3b 0%, #0f766e 55%, #14b8a6 100%);
  --dir-pattern: #99f6e4; --dir-band: #0f766e; --dir-chip-bg: #ecfdf5; --dir-chip: #115e59;
  --dir-text: #334155; --dir-faint: #94a3b8; --dir-pale: #cbd5e1; --dir-rule: #f1f5f9;
  color: var(--dir-ink);
}
.dir-level-verified { --dir-cover: linear-gradient(135deg, #1d4d7f 0%, #2a5f96 55%, #56b8e9 100%);
  --dir-pattern: #bfe0f5; --dir-band: #1d4d7f; --dir-chip-bg: #e3f1fa; --dir-chip: #1d4d7f; }
.dir-level-partner { --dir-cover: linear-gradient(135deg, #5c430c 0%, #9a6b1f 55%, #cfa55f 100%);
  --dir-pattern: #f6e9c9; --dir-band: #9a6b1f; --dir-chip-bg: #fbf1d9; --dir-chip: #7a5a12; }

/* `:where` keeps .dir out of the weight, so any class rule for a link beats this. */
:where(.dir) a:not([class]) { color: var(--dir-brand); }
.dir-card { background: #fff; border: 1px solid var(--dir-line); border-radius: 16px; box-shadow: 0 8px 22px rgba(15,23,42,.06); }
.dir-h2 { font-family: 'Baloo 2', Nunito, sans-serif; font-size: 1.375rem; line-height: 1.2; margin: 0; font-weight: 700; }
.dir-small { font-size: .8125rem; color: var(--dir-muted); }
.dir-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .875rem; font-weight: 700;
  background: var(--dir-chip-bg); color: var(--dir-chip); text-decoration: none; }
.dir-chip.is-subject { background: #e3f1fa; color: #1d4d7f; }
.dir-chip.is-warm { background: #fef9c3; color: #854d0e; }
.dir-chip.is-community { background: #f5f3ff; color: #5b21b6; }
.dir-chip.is-plain { background: #f1f5f9; color: var(--dir-brand); }

/* Header: cover, logo overlapping it, name, actions */
.dir-hero { overflow: hidden; margin-bottom: 24px; }
.dir-cover { position: relative; height: 200px; background: var(--dir-cover); }
/* An organization's own cover photo (``Organization.cover_upload``), darkened at
   the foot so the logo and the name below it keep their edge. */
.dir-cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dir-cover.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(15,23,42,.35)); pointer-events: none; }
.dir-cover svg { position: absolute; inset: 0; opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%, transparent 55%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 45%, transparent 55%, #000); }
.dir-logo { position: absolute; inset-inline-start: 28px; bottom: -56px; z-index: 2; width: 112px; height: 112px; border-radius: 26px;
  background: var(--dir-chip-bg); border: 4px solid #fff; box-shadow: 0 6px 16px rgba(15,23,42,.14); color: var(--dir-chip);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 50px; }
.dir-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.dir-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; min-height: 72px; padding: 0 28px 22px 160px; }
[dir="rtl"] .dir-head { padding: 0 160px 22px 28px; }
.dir-title { flex: 1 1 320px; min-width: 0; padding-top: 12px; }
.dir-name-row { display: block; }
.dir-title h1 { margin: 0; font-family: 'Baloo 2', Nunito, sans-serif; font-size: 2rem; line-height: 1.1; font-weight: 700; display: inline; }
.dir-shield { display: inline-flex; vertical-align: -3px; margin-inline-start: 8px; color: var(--dir-band); }
.dir-level-partner .dir-shield { color: #b8893e; }
.dir-place { margin: 4px 0 0; font-size: 1rem; color: var(--dir-soft); }
.dir-status { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.dir-actions { display: flex; gap: 8px; padding-top: 14px; }
.dir-body { padding: 0 28px 24px; }
.dir-about-lead { margin: 6px 0 6px; font-size: 1.0625rem; line-height: 1.7; color: #334155; max-width: 72ch; }

/* Contact tiles */
.dir-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 0 28px 22px; list-style: none; margin: 0; }
.dir-body .dir-tiles { padding: 0; margin-top: 18px; }
.dir-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dir-line); background: #fff;
  text-decoration: none; color: var(--dir-ink); min-height: 44px; width: 100%; font: inherit; text-align: start; cursor: pointer; box-sizing: border-box; }
.dir-tile:hover { border-color: var(--dir-brand-2); }
.dir-tile b { display: block; font-size: .9375rem; }
.dir-tile.is-primary { background: var(--dir-brand); border-color: var(--dir-brand); color: #fff; }
.dir-tile.is-primary .dir-small { color: #cbd5e1; }
.dir-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dir-ico svg { width: 18px; height: 18px; }
.dir-ico.is-green { background: #dcfce7; color: #15803d; } .dir-ico.is-blue { background: #e3f1fa; color: #1d4d7f; }
.dir-ico.is-violet { background: #ede9fe; color: #6d28d9; } .dir-ico.is-indigo { background: #eef2ff; color: #3730a3; }
.dir-ico.is-amber { background: #fef3c7; color: #b45309; } .dir-ico.is-white { background: rgba(255,255,255,.15); color: #fff; }
.dir-also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.dir-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 11px 28px; background: var(--dir-band); color: #fff; font-size: .875rem; }
.dir-band details { margin-inline-start: auto; }
.dir-band summary { cursor: pointer; font-weight: 800; font-size: .8125rem; list-style: none; }
.dir-band summary::-webkit-details-marker { display: none; }
.dir-band details p { margin: 6px 0 0; max-width: 46ch; font-size: .8125rem; color: #e2e8f0; }

/* Columns */
.dir-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.dir-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dir-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dir-section { padding: 24px 26px; }

/* Fact rows (not verified: what we know and what to ask) */
.dir-q { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid #eef1f4; }
.dir-q:first-of-type { border-top: 0; }
.dir-qlabel { width: 150px; flex-shrink: 0; font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dir-muted); padding-top: 3px; }
.dir-unknown { color: var(--dir-muted); font-style: italic; }
.dir-row { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid #f1f5f9; }
.dir-row:first-child { border-top: 0; padding-top: 0; }
.dir-rlabel { width: 90px; flex-shrink: 0; font-size: .8125rem; font-weight: 800; color: var(--dir-muted); padding-top: 1px; }

/* Crowd question */
.dir-ask { margin: 0 0 6px; padding: 16px 18px; border-radius: 14px; background: #fffaf0; border: 1px solid #ecdcb8; }
.dir-ask-kicker { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9a6b1f; }
.dir-ask h3 { margin: 8px 0 12px; font-size: 1.0625rem; line-height: 1.35; }
.dir-ask-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-ask-buttons button { flex: 1 1 90px; min-height: 44px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; font-weight: 800; font-size: .9375rem; font-family: inherit; cursor: pointer; color: var(--dir-ink); }
.dir-ask-buttons button[value="yes"] { border: 0; background: #0f766e; color: #fff; }
.dir-ask-next { margin-top: 8px; border: 0; background: transparent; padding: 0; color: var(--dir-brand); font-weight: 800; font-size: .875rem; font-family: inherit; cursor: pointer; min-height: 36px; }

/* Buttons */
.dir-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 11px 18px; font-weight: 800; font-size: .9375rem;
  text-decoration: none; min-height: 46px; box-sizing: border-box; cursor: pointer; font-family: inherit; border: 0; }
.dir-btn.is-solid { background: var(--dir-brand); color: #fff; }
.dir-btn.is-solid:hover { background: var(--dir-brand-2); }
.dir-btn.is-outline { background: #fff; border: 1px solid #cbd5e1; color: var(--dir-ink); }
.dir-btn.is-gold { background: var(--dir-gold); color: var(--dir-navy); }
.dir-btn.is-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent; }

/* Program (Freemium listing) */
.dir-listing { margin-top: 14px; border: 1px solid var(--dir-line); border-radius: 14px; padding: 18px 20px; }
.dir-listing h3 { margin: 0; font-size: 1.25rem; }
.dir-pill { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #ecfdf5; color: #115e59; white-space: nowrap; }

/* Map */
.dir-map { margin-top: 12px; height: 220px; width: 100%; border-radius: 14px; border: 1px solid var(--dir-line); display: block; background: #eef6ee; }
/* The embed sits on a drawn street map and pin (_map.html): what shows while it
   loads, where it is blocked, and when there is an address but no pin. */
.dir-map-box { position: relative; margin-top: 12px; height: 220px; border-radius: 14px; border: 1px solid var(--dir-line); overflow: hidden; background: #eef6ee; }
.dir-map-box .dir-map { position: absolute; inset: 0; margin: 0; height: 100%; border: 0; border-radius: 0; background: transparent; }
.dir-map-art i { position: absolute; background: #fff; }
.dir-map-art .is-road-a { inset-inline: 0; top: 46%; height: 10px; }
.dir-map-art .is-road-b { top: 0; bottom: 0; inset-inline-start: 38%; width: 10px; }
.dir-map-art .is-road-c { top: 0; bottom: 0; inset-inline-start: 72%; width: 6px; }
.dir-map-art .is-road-d { inset-inline: 0; top: 18%; height: 6px; }
.dir-map-art .is-park { inset-inline-start: 8%; top: 60%; width: 22%; height: 30%; background: #dbeafe; border-radius: 12px; }
.dir-map-art .is-pin { inset-inline-start: calc(38% - 12px); top: calc(46% - 34px); width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--dir-brand); box-shadow: 0 4px 10px rgba(29,77,127,.35); }

/* Mr. Nibras card */
.dir-online { position: relative; overflow: hidden; border-radius: 18px; color: #fff; box-shadow: 0 12px 28px rgba(15,42,74,.25);
  background: linear-gradient(160deg, #0f2a4a 0%, #163a63 60%, #1d4d7f 100%); padding: 22px 22px 20px; }
.dir-online h2 { margin: 14px 0 6px; font-family: 'Baloo 2', Nunito, sans-serif; font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: #fff; }
.dir-online p { margin: 0 0 12px; font-size: .875rem; line-height: 1.55; color: #cbd5e1; }
.dir-online ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: .875rem; }
.dir-online li::before { content: '✓'; color: var(--dir-gold); font-weight: 800; margin-inline-end: 8px; }
.dir-online-brand { display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.dir-online-brand span:first-child { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dir-online-brand img { width: 38px; height: auto; }
.dir-online-brand b { display: block; font-size: .9375rem; color: var(--dir-gold); }
.dir-online .dir-btn { width: 100%; min-height: 48px; }

/* Nearby */
.dir-near-card { padding: 20px 22px 10px; }
.dir-near { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #eef1f4; text-decoration: none; color: var(--dir-ink); }
.dir-near-mark { width: 40px; height: 40px; border-radius: 10px; background: #e3f1fa; color: var(--dir-brand); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.dir-near-mark.is-partner { background: var(--dir-brand); color: #fff; }
.dir-near-all { display: block; padding: 12px 0; border-top: 1px solid #eef1f4; font-weight: 800; text-decoration: none; }

/* Closing band (claim / add yours / bring Nibras) */
.dir-cta { position: relative; overflow: hidden; margin-top: 28px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #0f2a4a 0%, #1d4d7f 70%, #2a5f96 100%); }
.dir-cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; padding: 30px 32px; }
.dir-cta-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dir-gold); }
.dir-cta h2 { margin: 6px 0 6px; font-family: 'Baloo 2', Nunito, sans-serif; font-size: 1.625rem; font-weight: 700; line-height: 1.2; color: #fff; }
.dir-cta p { margin: 0; font-size: .9375rem; line-height: 1.65; color: #cbd5e1; max-width: 62ch; }
.dir-cta-text { flex: 999 1 380px; min-width: 0; }
.dir-cta-actions { flex: 0 0 260px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.dir-cta-actions .dir-btn { white-space: nowrap; }
.dir-cta-note { text-align: center; font-size: .75rem; color: #94a3b8; }
.dir-feedback { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; margin-top: 18px; font-size: .875rem; color: var(--dir-muted); }

/* Phone */
@media (max-width: 720px) {
  .dir-cover { height: 110px; }
  .dir-logo { width: 72px; height: 72px; border-radius: 18px; bottom: -36px; inset-inline-start: 18px; font-size: 30px; }
  .dir-head, [dir="rtl"] .dir-head { padding: 44px 18px 18px; }
  .dir-title h1 { font-size: 1.625rem; }
  .dir-actions { padding-top: 0; width: 100%; }
  .dir-tiles { padding: 0 18px 18px; grid-template-columns: 1fr 1fr; }
  .dir-body { padding: 0 18px 18px; }
  .dir-band { padding: 11px 18px; }
  .dir-section { padding: 20px 18px; }
  .dir-q { flex-direction: column; gap: 6px; }
  .dir-qlabel { width: auto; }
  .dir-cta-inner { padding: 24px 20px; }
  .dir-cta-actions { flex: 1 1 100%; }
}
.dir-tiles:empty { display: none; }
.dir-tile > span:last-child { min-width: 0; }
.dir-tile .dir-small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-listing h3, .dir-h3 { font-weight: 800; }

/* Every button in a closing band or empty state is the full width of its
   column and one height, so a pair lines up whatever their words. */
.dir-cta-actions > .dir-btn, .dir-cta-how, .dir-cta-how > summary { width: 100%; }
.dir-cta-how > summary { list-style: none; min-height: 46px; }
.dir-cta-how > summary::-webkit-details-marker { display: none; }
.dir-cta-actions .dir-btn { min-height: 48px; }

/* Nothing to show yet */
.dir-empty { text-align: center; }
.dir-empty p { margin: 6px auto 16px; max-width: 46ch; color: var(--dir-soft); line-height: 1.6; }
.dir-empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--dir-chip-bg); color: var(--dir-chip);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.dir-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dir-empty-actions .dir-btn { flex: 1 1 200px; max-width: 260px; }
.dir-empty.is-row { display: flex; align-items: center; gap: 16px; text-align: start; box-shadow: none; }
.dir-empty.is-row .dir-empty-icon { margin: 0; flex-shrink: 0; }
.dir-empty.is-row p { margin: 0; }

/* An organization's page (organization_detail.html): what used to be inline. */
.dir-cover-lines { color: var(--dir-pattern); }
.dir-h2.is-xl { font-size: 1.625rem; }
.dir-h2.is-lg { font-size: 1.5rem; }
.dir-empty-title { margin: 0 0 4px; font-size: 1.0625rem; }
.dir-lede { margin: 2px 0 14px; }
.dir-ask-note { margin: 10px 0 0; }
.dir-ask h3.dir-ask-thanks { margin-bottom: 4px; }
.dir-q .dir-chip { margin: 0 6px 6px 0; }
.dir-q-fill { flex: 1; min-width: 0; }
.dir-link { color: var(--dir-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.dir-link.is-strong { font-weight: 800; }
.dir-link.is-soft { color: var(--dir-soft); }
.dir-ask-link { text-decoration: underline; font-style: normal; }
.dir-link.is-block { display: inline-block; margin-top: 8px; }
/* A phone or email shown on tap (directory_page.js) is a button that reads as a link. */
button.dir-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.dir-quote { margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.7; color: var(--dir-text); }
.dir-quote-by { margin-top: 6px; }
.dir-facts { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dir-rule); }
.dir-label { font-weight: 800; margin-bottom: 8px; }
.dir-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-langs { font-weight: 700; }
.dir-split { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.dir-listing-rows { margin-top: 10px; }
.dir-listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.dir-join-btn { margin-top: 12px; }
.dir-address { margin: 8px 0 0; }
.dir-also.is-flush { margin-top: 0; }
.dir-online-sub { font-size: .75rem; color: var(--dir-pale); }
:is(html[lang="ur"], html[lang="pa"]) .dir-online-sub { line-height: 1.9; }
.dir-online-note { margin-top: 8px; text-align: center; font-size: .75rem; color: var(--dir-faint); }
.dir-near-title { margin: 0 0 4px; font-family: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.dir-near-lede { margin: 0 0 6px; }
.dir-near-name { display: block; }
.dir-chip.is-apply { background: #e0f2fe; color: #075985; font-size: .75rem; padding: 2px 8px; margin-top: 4px; }

/* An organization's page, matched to its boards (Main, Confirmed, Partner,
   Phone, PhoneVerified). Scoped to the page's own classes. */
.dir-status .dir-chip { font-size: .8125rem; }
.dir-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dir-soc { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--dir-line); background: #fff; color: var(--dir-soft); }
.dir-soc:hover { border-color: var(--dir-brand-2); }
.dir-soc.is-facebook { color: #3730a3; } .dir-soc.is-instagram { color: #9d174d; } .dir-soc.is-youtube { color: #b91c1c; }
.dir-soc.is-whatsapp { color: #15803d; } .dir-soc.is-tiktok, .dir-soc.is-x { color: var(--dir-ink); }
.dir-hero .dir-logo { background: #e3f1fa; color: var(--dir-brand); }
.dir-level-partner .dir-hero .dir-logo { background: linear-gradient(135deg, #1d4d7f, #2a5f96); color: var(--dir-gold); }
.dir-verified-line { display: none; margin: 2px 0 0; font-size: .75rem; }
/* Share and More, drawn as the boards' squared outline buttons. */
.dir-actions .page-action { height: 40px; border-radius: 12px; font-weight: 800; color: var(--dir-ink); }
.dir-level-unverified .dir-actions .page-action { height: 44px; border: 2px solid var(--dir-brand-2); color: var(--dir-brand); }
.dir-ico.is-slate { background: #f1f5f9; color: #334155; }
/* Share is a tile on a phone only (the header's Share does it on a desktop). */
.dir-tile-share { display: none; }
.dir-tiles:not(:has(li:not(.dir-tile-share))) { display: none; }
.dir-band > svg { flex-shrink: 0; }
.dir-band summary { text-decoration: underline; text-underline-offset: 2px; }
.dir-contact-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 160px)); gap: 8px; margin-top: 8px; }
.dir-btn.is-line { background: #fff; border: 2px solid var(--dir-brand-2); color: var(--dir-brand); }
.dir-btn.is-brand { background: linear-gradient(135deg, #1d4d7f, #2a5f96, #56b8e9); color: #fff; width: 100%; }
.dir-q .dir-chip { margin: 0 0 6px; margin-inline-end: 6px; }
.dir-listing h3 { font-family: inherit; font-size: 1.25rem; font-weight: 700; }
.dir-programs { margin-bottom: 24px; }
.dir-programs-head { margin-bottom: 12px; }
.dir-program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.dir-ask-thanks [data-thanks-line] { font-weight: 700; color: var(--dir-soft); }
/* Mr. Nibras: a gold lattice down its far side. */
.dir-online-pattern { position: absolute; inset: 0; opacity: .12; pointer-events: none; }
.dir-online > :not(.dir-online-pattern) { position: relative; }
.dir-online .dir-btn { font-size: .9375rem; }
[dir="rtl"] .dir-online .dir-btn svg, [dir="rtl"] .dir-cta .dir-btn svg { transform: scaleX(-1); }
/* Nearby */
.dir-near-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.dir-near-all { color: var(--dir-brand); }
/* Closing band: icon tile, gold lattice, outlined white second button. */
.dir-cta-pattern { position: absolute; inset: 0; opacity: .16; pointer-events: none; }
.dir-cta-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(240,212,154,.16); border: 1px solid rgba(240,212,154,.4);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--dir-gold); }
.dir-cta-icon svg { stroke-width: 1.8; }
.dir-cta .dir-btn.is-ghost { font-size: .875rem; min-height: 44px; }
.dir-cta-how ol { margin: 10px 0 0; padding-inline-start: 18px; font-size: .8125rem; color: #cbd5e1; line-height: 1.6; }
.dir-claim-card { display: none; }
.dir-feedback a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 720px) {
  /* Header: not verified stays a card with a short cover and the logo beside
     the name; verified and Pro run edge to edge with the logo above it. */
  .dir-level-unverified .dir-cover { height: 96px; }
  .dir-level-unverified .dir-logo { width: 60px; height: 60px; border-radius: 16px; bottom: -30px; inset-inline-start: 18px; font-size: 28px; }
  .dir-level-unverified .dir-head, [dir="rtl"] .dir-level-unverified .dir-head { padding: 6px 18px 0; }
  .dir-level-unverified .dir-title { padding: 0; padding-inline-start: 74px; }
  .dir-level-unverified .dir-status { margin-inline-start: -74px; margin-top: 12px; }
  .dir-level-unverified .dir-title h1 { font-size: 1.5rem; line-height: 1.15; }
  .dir-level-unverified .dir-place { font-size: .875rem; margin-top: 2px; }
  .dir-level-unverified .dir-about-lead { font-size: .9375rem; line-height: 1.65; margin-top: 14px; }
  .dir:not(.dir-level-unverified) .dir-hero { margin-inline: -16px; border-radius: 0; border-inline: 0; border-top: 0; box-shadow: none;
    /* up to the site header: the main column's 20px top padding */
    margin-top: -20px; }
  .dir:not(.dir-level-unverified) .dir-cover { height: 140px; }
  .dir:not(.dir-level-unverified) .dir-logo { width: 84px; height: 84px; border-radius: 20px; bottom: -42px; inset-inline-start: 16px; font-size: 38px; }
  .dir:not(.dir-level-unverified) .dir-head, [dir="rtl"] .dir:not(.dir-level-unverified) .dir-head { padding: 52px 16px 0; }
  .dir:not(.dir-level-unverified) .dir-title { padding-top: 0; }
  .dir:not(.dir-level-unverified) .dir-title h1 { font-size: 1.625rem; }
  .dir:not(.dir-level-unverified) .dir-place { font-size: .875rem; margin-top: 2px; }
  .dir:not(.dir-level-unverified) .dir-views { display: none; }
  .dir-verified-line { display: block; }
  .dir:not(.dir-level-unverified) .dir-band { display: none; }
  .dir:not(.dir-level-unverified) .dir-tiles { padding: 0 16px 16px; }
  .dir-shield svg { width: 22px; height: 22px; }
  /* Share and the report menu move to the tiles and the page's foot. */
  .dir:not(.is-managed) .dir-actions { display: none; }
  /* The contact tiles become a row of round icons. */
  .dir-tiles, .dir-body .dir-tiles { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 4px; margin-top: 14px; }
  .dir-tile-share { display: block; }
  .dir-tiles:not(:has(li:not(.dir-tile-share))) { display: grid; }
  .dir-tile, .dir-tile.is-primary { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 8px 2px; border: 0; background: transparent;
    color: var(--dir-ink); text-align: center; font-size: .8125rem; }
  .dir-tile .dir-small { display: none; }
  .dir-tile b { font-size: .8125rem; font-weight: 700; }
  .dir-tile .dir-ico { width: 46px; height: 46px; border-radius: 14px; }
  .dir-tile .dir-ico svg { width: 20px; height: 20px; }
  .dir-tile.is-primary .dir-ico { background: var(--dir-brand); color: #fff; }
  .dir-socials { margin-top: 10px; }
  /* Cards: the program first on a verified page. */
  .dir-listing-card { order: -1; }
  .dir-cols, .dir-main, .dir-side { gap: 14px; }
  .dir-hero { margin-bottom: 14px; }
  .dir-section { padding: 16px; }
  .dir-h2, .dir-h2.is-lg { font-size: 1.25rem; }
  .dir-q { padding: 16px 0; }
  .dir-qlabel { font-size: .75rem; }
  .dir-map-box { height: 140px; border-radius: 12px; }
  .dir-listing { padding: 0; border: 0; }
  .dir-listing-card .dir-listing-actions .dir-btn { width: 100%; min-height: 48px; }
  .dir-near-title { font-size: 1rem; }
  /* Not verified: a short claim card in the band's place. */
  .dir-cta.has-phone-card { display: none; }
  .dir-claim-card { display: block; margin-top: 14px; padding: 18px; background: #fffbeb; border-color: #fde68a; }
  .dir-claim-card h2 { margin: 0 0 6px; font-family: inherit; font-size: 1rem; font-weight: 700; }
  .dir-claim-card p { margin: 0 0 12px; font-size: .875rem; line-height: 1.6; color: var(--dir-soft); }
  .dir-cta-icon { display: none; }
  .dir-feedback-q { display: none; }
  .dir-feedback a { color: var(--dir-soft); font-weight: 700; }
}
@media (max-width: 720px) {
  /* The round icons in the boards' order: Call, Directions, Facebook, the rest, Share last. */
  .dir-tiles > li:has([data-tap="directions"]) { order: 1; }
  .dir-tiles > li:has([data-tap="facebook"]) { order: 2; }
  .dir-tiles > li:has([data-tap="email"]), .dir-tiles > li:has([data-tap="website"]) { order: 3; }
  .dir-tiles > .dir-tile-share { order: 4; }
  .dir-tiles > li:has([data-tap="apply"]) { order: -1; }
  .dir-tiles, .dir-body .dir-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dir-level-unverified .dir-tiles:not(:has(> li:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dir-row { gap: 12px; padding: 10px 0; font-size: .875rem; }
  .dir-rlabel { width: 52px; font-size: .75rem; }
  .dir-contact-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Message an organization (signed in): a short form under the page. */
.dir-message form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dir-message-box { width: 100%; box-sizing: border-box; border: 1px solid var(--dir-line); border-radius: 12px; padding: 10px 12px; font: inherit; }
