/* Temple Maroon theme: tokens, fonts, base elements and shared components.
   Maroon and antique gold on ivory, kept muted. One accent for actions,
   gold for lines and labels only, sage for completed checks. */

@font-face { font-family: 'Marcellus'; font-weight: 400; font-display: swap; src: url('../fonts/marcellus-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Mukta'; font-weight: 400; font-display: swap; src: url('../fonts/mukta-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-weight: 600; font-display: swap; src: url('../fonts/mukta-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-weight: 700; font-display: swap; src: url('../fonts/mukta-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-weight: 400; font-display: swap; src: url('../fonts/mukta-devanagari-400-normal.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta'; font-weight: 600; font-display: swap; src: url('../fonts/mukta-devanagari-600-normal.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta'; font-weight: 700; font-display: swap; src: url('../fonts/mukta-devanagari-700-normal.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta Malar'; font-weight: 400; font-display: swap; src: url('../fonts/mukta-malar-tamil-400-normal.woff2') format('woff2'); unicode-range: U+0B80-0BFF; }
@font-face { font-family: 'Mukta Malar'; font-weight: 600; font-display: swap; src: url('../fonts/mukta-malar-tamil-600-normal.woff2') format('woff2'); unicode-range: U+0B80-0BFF; }

:root {
  --paper: #f6f0e3;
  --surface: #fffcf5;
  --surface-2: #efe6d4;
  --line: #e2d6c2;
  --field: #a99c8e;
  --ink: #2a2023;
  --ink-2: #66585b;
  --band: #4a1520;
  --on-ink: #f6eedf;
  --on-ink-2: #d9c7c0;
  --accent: #6b1f2c;
  --accent-strong: #4a1520;
  --accent-soft: #f3e3e3;
  --gold: #a07c3a;
  --gold-text: #7a5c24;
  --gold-soft: #efe3c8;
  --gold-on-band: #d8b878;
  --sage: #4d6a55;
  --sage-soft: #e3ebe2;
  --error: #a3342b;
  --error-soft: #f6e1de;

  --f-head: 'Marcellus', 'Mukta Malar', Georgia, serif;
  --f-body: 'Mukta', 'Mukta Malar', 'Nirmala UI', system-ui, sans-serif;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(3rem, 7vw, 5.5rem);
  --max: 160rem; /* pages stretch across the window (cap only for very wide screens) */
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 18px 40px -26px rgba(74, 21, 32, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 400; line-height: 1.15; color: var(--accent-strong); margin: 0 0 0.75rem; text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
strong, b { font-weight: 600; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skiplink { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: var(--on-ink); }
.skiplink:focus { left: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.eyebrow { display: block; margin-bottom: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.lede { font-size: var(--step-1); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.kolam { height: 14px; background: radial-gradient(circle, var(--gold) 1.4px, transparent 1.9px) 0 0 / 14px 14px repeat-x; opacity: 0.55; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.55rem 1.3rem; border: 1.5px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: var(--on-ink); font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
.btn-light { background: var(--on-ink); border-color: var(--on-ink); color: var(--accent-strong); }
.btn-light:hover { background: var(--surface); border-color: var(--surface); color: var(--accent-strong); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.btn-danger { background: var(--error); border-color: var(--error); }
.btn-danger:hover { background: #7f2620; border-color: #7f2620; }
.btn-sm { min-height: 2.25rem; padding: 0.3rem 0.9rem; font-size: 0.92rem; }
.btn-block { width: 100%; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* tags, stamps, chips */
.tag { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 4px; background: var(--gold-soft); color: var(--gold-text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.tag.sage { background: var(--sage-soft); color: var(--sage); }
.tag.rose { background: var(--accent-soft); color: var(--accent); }
.stamps { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.stamp { padding: 0.08rem 0.55rem; border: 1px solid var(--sage); border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.stamp.off { border-color: var(--line); background: transparent; color: var(--ink-2); font-weight: 400; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.4rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.ticks li::before { content: '✓'; color: var(--sage); font-weight: 700; }

/* segmented toggles and tabs */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button, .seg a { padding: 0.4rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 0.92rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; }
.seg [aria-pressed='true'], .seg [aria-selected='true'], .seg [aria-current='page'] { background: var(--accent); color: var(--on-ink); }
.seg .count { margin-left: 0.3rem; padding: 0 0.4rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: 0.75rem; }
.seg [aria-selected='true'] .count, .seg [aria-pressed='true'] .count { background: rgba(246, 238, 223, 0.25); color: var(--on-ink); }

/* cards */
.card { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.9rem; }
.card-head h2, .card-head h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* forms */
.field { display: grid; gap: 0.3rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend, .label { padding: 0; font-weight: 600; font-size: 0.95rem; }
.field .opt { color: var(--ink-2); font-weight: 400; }
input:not([type='radio'], [type='checkbox'], [type='range'], [type='file']), select, textarea { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.7rem; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; }
textarea { min-height: 6rem; resize: vertical; }
input[type='checkbox'], input[type='radio'] { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); flex: none; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
.check input { margin-top: 0.3rem; }
.why { margin: 0; color: var(--sage); font-size: 0.88rem; }
.why:empty { display: none; }
.err { margin: 0; color: var(--error); font-size: 0.92rem; font-weight: 600; }
.err:empty { display: none; }
[aria-invalid='true']:not([type='checkbox']), .chips[aria-invalid='true'] .chip span { border-color: var(--error) !important; }
input[aria-invalid='true'] { border-width: 2px !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.chip span { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 0.95rem; border: 1px solid var(--field); border-radius: 999px; background: var(--paper); }
.chip input:checked + span { border: 2px solid var(--accent); padding: 0 calc(0.95rem - 1px); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.tel { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 0.5rem; }
@media (max-width: 480px) { .tel { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.switch input { width: 2.6rem; height: 1.45rem; appearance: none; border-radius: 999px; background: var(--field); position: relative; cursor: pointer; transition: background 0.2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: calc(1.45rem - 6px); height: calc(1.45rem - 6px); border-radius: 50%; background: var(--surface); transition: transform 0.2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(1.15rem); }

/* the demo notice: shows codes and simulated steps that a real service would send */
.demo { display: grid; gap: 0.2rem; padding: 0.75rem 1rem; border: 1px dashed var(--gold); border-radius: var(--radius); background: var(--gold-soft); color: var(--gold-text); font-size: 0.92rem; }
.demo b { color: var(--accent-strong); }
.demo code { font: 700 1.15rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: 0.2em; color: var(--accent-strong); }

/* notices */
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.notice.warn { border-color: var(--gold); background: var(--gold-soft); }
.notice.ok { border-color: var(--sage); background: var(--sage-soft); }
.notice.bad { border-color: var(--error); background: var(--error-soft); }
.notice p { margin: 0; flex: 1 1 18rem; }

/* biodata card */
.biodata { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.bd-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-bottom: 1px dashed var(--line); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink-2); }
.bd-top b { font-weight: 700; text-transform: uppercase; color: var(--gold-text); }
.bd-top .match { padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-weight: 700; letter-spacing: 0; text-transform: none; }
.bd-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.bd-photo.blur::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(circle at 50% 40%, #b89a8c 0 15%, transparent 16%), radial-gradient(ellipse at 50% 96%, #b89a8c 0 34%, transparent 35%), linear-gradient(160deg, #d9c3b0, var(--gold-soft)); filter: blur(10px); }
.bd-photo.mono { display: grid; place-items: center; background: linear-gradient(160deg, var(--gold-soft), var(--accent-soft)); }
.bd-photo.mono span.initial { display: grid; place-items: center; width: 5rem; height: 5rem; border: 2px solid var(--gold); border-radius: 50%; background: var(--surface); font: 400 2rem/1 var(--f-head); color: var(--accent-strong); }
.bd-photo img { width: 100%; height: 100%; object-fit: cover; }
.bd-photo .lock { position: absolute; left: 0.65rem; bottom: 0.65rem; padding: 0.12rem 0.5rem; border-radius: 4px; background: var(--surface); color: var(--ink-2); font-size: 0.76rem; }
.bd-photo .star-btn { position: absolute; top: 0.55rem; right: 0.55rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--gold); font-size: 1.15rem; cursor: pointer; }
.bd-photo .star-btn[aria-pressed='true'] { background: var(--gold); color: var(--surface); border-color: var(--gold); }
.bd-body { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; padding: 0.9rem 1rem 1rem; }
.bd-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; font: 400 1.3rem/1.1 var(--f-head); color: var(--accent-strong); }
.bd-name a { color: inherit; text-decoration: none; }
.bd-name a:hover { text-decoration: underline; }
.bd-body dl { display: grid; grid-template-columns: auto 1fr; gap: 0.12rem 0.85rem; margin: 0; font-size: 0.92rem; }
.bd-body dt { color: var(--ink-2); }
.bd-body dd { margin: 0; font-weight: 600; }
.bd-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.bd-actions .btn { flex: 1 1 6.5rem; }
.bd-top > * { white-space: nowrap; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; background: rgba(42, 32, 35, 0.45); }
.modal { width: min(100%, 32rem); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: 0 30px 60px -20px rgba(42, 32, 35, 0.5); }
.modal h2 { font-size: 1.5rem; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }

/* toast */
.toast-host { position: fixed; left: 50%; bottom: 1.25rem; z-index: 90; display: grid; gap: 0.5rem; transform: translateX(-50%); width: min(100% - 2rem, 26rem); }
.toast { padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--band); color: var(--on-ink); box-shadow: var(--shadow); font-weight: 600; }
.toast.ok::before { content: '✓  '; color: var(--gold-on-band); }

/* meter */
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--accent)); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.45rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); }

.empty { padding: 2rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--ink-2); }
.empty h3 { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* test environment banner */
.env-banner { position: relative; z-index: 35; background: repeating-linear-gradient(135deg, var(--gold-soft) 0 14px, #f4ead3 14px 28px); border-bottom: 1px solid var(--gold); color: var(--gold-text); font-size: 0.88rem; }
.env-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.25rem; padding-block: 0.4rem; }
.env-inner b { color: var(--accent-strong); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
.env-links { display: flex; gap: 1rem; }
.env-links a { color: var(--accent); font-weight: 600; }

/* Shared decorative line symbols: labels remain readable without the artwork. */
.visual-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex: none; margin-bottom: .8rem; border: 1px solid #6b1f2c20; border-radius: 15px 15px 15px 4px; color: var(--accent); background: var(--accent-soft); }
.visual-icon.sage { color: var(--sage); background: var(--sage-soft); border-color: #4d6a5525; }
.visual-icon.gold { color: var(--gold-text); background: var(--gold-soft); border-color: #a07c3a30; }
.visual-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty > .visual-icon { width: 4rem; height: 4rem; margin: 0 auto 1rem; display: grid; border-radius: 50%; }
.empty > .visual-icon svg { width: 2rem; height: 2rem; }

/* Searchable location and occupation catalogs shared by every portal. */
.catalog-choices { min-width: 0; width: 100%; }
.catalog-choice-search { display: flex; gap: .6rem; align-items: center; margin-top: .4rem; }
.catalog-choice-search input { min-width: 0; flex: 1; }
.catalog-choice-search button { flex-shrink: 0; white-space: nowrap; }
.catalog-choice-list { max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; padding: .6rem; border: 1px solid var(--line, #ded3be); border-radius: .6rem; align-content: start; }
.catalog-choice-list .chip[hidden] { display: none !important; }
.catalog-choices .why { margin: .5rem 0; }
.catalog-browse-more { display: inline-block; margin-top: .8rem; font-weight: 600; }
input[data-catalog] { width: 100%; min-width: 0; }

.stack-form .catalog-field { grid-column: 1 / -1; }

.catalog-picker { position: relative; width: 100%; min-width: 0; }
.catalog-menu { position: absolute; z-index: 45; top: calc(100% + .25rem); left: 0; width: 100%; max-height: min(18rem, 45vh); overflow-y: auto; overscroll-behavior: contain; padding: .35rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 12px 28px -14px rgba(42, 32, 35, .45); }
.catalog-menu [role="option"] { display: block; width: 100%; padding: .55rem .7rem; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: inherit; line-height: 1.35; text-align: left; cursor: pointer; }
.catalog-menu [role="option"]:hover, .catalog-menu [role="option"][aria-selected="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.catalog-picker input[data-catalog]:focus-visible { position: relative; z-index: 46; }

/* On-demand browse directories, with native dialog keyboard and focus handling. */
.catalog-dialog { box-sizing: border-box; width: min(44rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.5rem; border: 1px solid var(--line, #ded3be); border-radius: 1rem; color: var(--ink); background: var(--paper, #fffaf2); box-shadow: 0 1.5rem 5rem #30142040; }
.catalog-dialog::backdrop { background: #30142080; }
.catalog-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.catalog-dialog-head h2 { margin: 0; font-size: 1.65rem; }
.catalog-dialog-head button { flex-shrink: 0; }
.catalog-dialog-search label { display: block; margin-bottom: .4rem; }
.catalog-dialog-search > div { display: flex; gap: .6rem; }
.catalog-dialog-search input { flex: 1; min-width: 0; }
.catalog-dialog-search button { flex-shrink: 0; }
.catalog-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem; padding: .4rem; margin: 0; list-style: none; max-height: 45dvh; overflow: auto; overscroll-behavior: contain; }
.catalog-directory li[hidden] { display: none; }
.catalog-directory a { display: block; padding: .65rem; border-radius: .4rem; overflow-wrap: anywhere; }
.catalog-directory a:hover, .catalog-directory a:focus-visible { background: #efe5d5; }
@media (max-width: 600px) { .catalog-directory { grid-template-columns: 1fr; } .catalog-dialog-search > div { flex-direction: column; } .catalog-dialog { padding: 1rem; } }

/* THOGAI: selected maroon/gold feather and wordmark. Preserve the original artwork. */
.brand-picture { display: block; flex: none; }
.brand-logo { display: block; width: 224px; height: 94px; max-width: none; object-fit: cover; }
.foot-logo { display: inline-block; padding: 0 8px; margin: 0 0 14px; background: #f7f1e5; border-radius: 12px; }
.foot-logo .brand-logo { width: 244px; height: 104px; }
.app-top .brand-logo { width: 204px; height: 86px; }
.p-auth-brand .brand-logo { width: 272px; height: 118px; }
.p-brand .brand-logo { width: 190px; height: 80px; }
.p-band.admin .brand-picture { padding: 0 5px; margin-block: 6px; border-radius: 8px; background: #f7f1e5; }
.p-brand-label { font: 600 .85rem/1.2 var(--f-body); padding-left: .7rem; border-left: 1px solid currentColor; }
@media (max-width: 560px) {
  .topbar .brand-logo { width: 184px; height: 78px; }
  .brand-picture--responsive .brand-logo { width: 44px; height: 48px; object-fit: contain; }
  .p-band-in .p-brand { flex-shrink: 0; }
  .p-brand .brand-logo { width: 170px; height: 72px; }
  .p-brand .brand-picture--responsive .brand-logo { width: 40px; height: 46px; }
  .p-brand-label { display: none; }
}
