/* Moonlit lilac: market, homestead, staff, and recovery pages.
   Content keeps its existing forms, data attributes, and workflow states. */
.moon-secondary {
  color: var(--lh-ink);
  min-width: 0;
  --lh-soft: var(--lh-ink);
  --lh-white: var(--lh-ink);
  --lh-card: var(--lh-surface);
  --lh-card-2: var(--lh-surface-soft);
}
.moon-secondary :is(h1, h2, h3, h4) { color: var(--lh-ink); text-shadow: none; }
.moon-secondary h1 { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.moon-secondary :is(p, li) { line-height: 1.65; }
.moon-secondary :is(.page-heading, .orders-head, .waitlist-head, .chick-shop-status-head) { margin-bottom: 1.8rem; }
.moon-secondary :is(.page-title, .shop-hero h1, .egg-signup-hero h1) { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.moon-secondary :is(.section-kicker, .hero-kicker, .shop-kicker, .dash-eyebrow, .breed-icon) {
  color: var(--lh-accent); font-family: var(--lh-sans); font-size: .76rem;
  font-weight: 750; text-transform: uppercase; letter-spacing: .15em;
}
.moon-secondary :is(.card-subtitle, .mini-help, .helptext) { color: var(--lh-muted); text-shadow: none; }
.moon-secondary :is(input, select, textarea) { color-scheme: light; max-width: 100%; font: inherit; }
.moon-secondary :is(input, textarea)::placeholder { color: rgb(var(--c-border)); opacity: 1; }
.moon-secondary :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--lh-accent); }
.moon-secondary :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgb(var(--c-status-rerun)); outline-offset: 3px;
}
.moon-secondary :is(button, input[type="submit"], .btn, .btn-secondary, .pill-outline) { min-height: 2.65rem; }
.moon-secondary :is(.btn, .btn-primary, .btnpink, .credit-submit, .market-cta, .admin-btn.primary, .public-order-button) {
  color: rgb(var(--c-white)); -webkit-text-fill-color: rgb(var(--c-white));
  background: linear-gradient(135deg, rgb(var(--c-accent)), rgb(var(--c-deep)));
  border: 1px solid rgb(var(--c-neon));
  box-shadow: inset 0 1px 0 rgb(var(--c-violet-200)), 0 3px 12px rgb(var(--c-deep) / 0.18), 0 0 16px rgb(var(--c-violet-500-3) / 0.22);
}
.moon-secondary :is(.btn-secondary, .btn-inline-secondary, .btnghost, .pill-outline) {
  color: var(--lh-ink); -webkit-text-fill-color: currentColor;
  background: var(--lh-surface-soft); border: 1px solid var(--lh-border); box-shadow: none;
}
.moon-secondary :is(.btn-danger, .row-action-danger, .admin-btn.danger, .cancel-button) {
  color: rgb(var(--c-rose-600)); -webkit-text-fill-color: currentColor; background: rgb(var(--c-rose-100));
  border: 1px solid rgb(var(--c-rose-400-2)); box-shadow: none;
}
.moon-secondary :is(.btn-danger, .row-action-danger, .admin-btn.danger, .cancel-button):hover { background: rgb(var(--c-rose-100-2)); }
.moon-secondary :is(.btn, .btn-secondary, .market-cta, .admin-btn, .pill-outline) { text-decoration: none; }
.moon-secondary :is(.errorlist, .credit_error) { color: rgb(var(--c-rose-600)); }
.moon-secondary :is(.table-scroll, .table_scroll, .table-wrap, .table-responsive, .sheet-wrap) {
  max-width: 100%; overflow-x: auto; scrollbar-color: rgb(var(--c-violet-400-4)) rgb(var(--c-surface));
  overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch;
}
.moon-secondary th { font-weight: 750; }
.moon-secondary :is(th, td) { overflow-wrap: anywhere; }
.moon-secondary :is(img, video) { max-width: 100%; }
.moon-secondary :is(.hatch-glow, .sparkle::before, .sparkle::after) { display: none; }

/* Homestead pages share an editorial gallery rather than neon cards. */
.moon-breed .breed-wrapper { width: 100%; margin: 0; padding: clamp(.25rem, 2vw, 1rem); }
.moon-breed .breed-inner { max-width: 1080px; margin-inline: auto; }
.moon-breed .breed-hero { max-width: 840px; margin: .5rem auto 2rem; text-align: center; }
.moon-breed .breed-icon { text-align: center; margin-bottom: .75rem; }
.moon-breed .breed-hero .card-subtitle { max-width: 700px; margin: 1rem auto 0; font-weight: 400; font-size: 1.08rem; }
.moon-breed .breed-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1rem; margin: 1.8rem auto; }
.moon-breed .breed-image {
  display: block; width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover;
  border: 5px solid rgb(var(--c-bg-2)); outline: 1px solid rgb(var(--c-violet-400-8)); outline-offset: -3px;
  border-radius: 48% 48% 4px 4px; box-shadow: 0 10px 22px rgb(var(--c-ink) / 0.2);
}
.moon-breed :is(.breed-section, .breed-cta, .coming-soon-box) {
  max-width: 940px; margin: 1.5rem auto; padding: clamp(1.1rem, 2.8vw, 2rem);
  background: var(--lh-surface-soft); color: var(--lh-ink);
  border: 1px solid var(--lh-border); border-radius: 4px;
  box-shadow: 0 5px 16px rgb(var(--c-ink) / 0.08);
}
.moon-breed :is(.breed-section h2, .breed-cta h2) { margin-top: 0; font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; }
.moon-breed :is(.breed-section p, .breed-section li, .info-card p) { color: var(--lh-ink); max-width: 75ch; }
.moon-breed .breed-section p { text-align: left; }
.moon-breed :is(.comparison-grid, .genetics-box, .quick-facts, .info-grid) { min-width: 0; }
.moon-breed :is(.comparison-card, .info-card, .genetics-box li) { background: var(--lh-surface-soft); border-color: var(--lh-border); }
.moon-breed .breed-cta { text-align: center; border: 3px double rgb(var(--c-muted)); background: var(--lh-surface-deep); }
.moon-breed .breed-cta .btn { margin: .75rem .25rem 0; }
.moon-breed .hatch-page { padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.moon-breed :is(.hero-panel, .quick-start-card, .guide-toc-card, .section-shell) { border-radius: 4px; }
.moon-breed .hero-title { text-shadow: none; }
.moon-breed .hero-copy { color: var(--lh-ink); }
.moon-breed :is(.quick-start-list, .soft-list) { padding-left: 1.2rem; }
.moon-breed .guide-toc-card { top: 6.5rem; background: var(--lh-surface-soft); }
.moon-breed .guide-toc a { color: var(--lh-ink); display: block; padding: .6rem .7rem; }
.moon-breed .guide-toc a:hover { color: var(--lh-accent); background: var(--lh-surface-deep); }
.moon-breed .guide-section { scroll-margin-top: 7rem; }
.moon-breed .decor-photo { border-radius: 3px; }

/* Shops, reservations, and payment summaries. */
.moon-shop :is(.shop-hero, .egg-signup-hero, .waitlist-intro, .chick-shop-status-card, .status-card, .success-summary, .success-highlight) {
  border: 1px solid var(--lh-border); border-radius: 5px; background: var(--lh-surface-soft); color: var(--lh-ink);
  box-shadow: 0 8px 24px rgb(var(--c-violet-900) / 0.1);
}
.moon-shop :is(.shop-panel, .waitlist-form-card, .egg-signup-form) { border-radius: 5px; background: var(--lh-surface); }
.moon-shop .shop-hero { padding: clamp(1rem, 3vw, 2rem); }
.moon-shop .shop-hero-media { align-self: center; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); height: 400px; }
.moon-shop .hero-main-photo { min-height: 0; }
.moon-shop .hero-main-photo img { min-height: 0; height: 400px; }
.moon-shop .hero-side-stack { min-height: 0; grid-template-rows: repeat(2,minmax(0,1fr)); }
.moon-shop .hero-side-stack img { min-height: 0; height: 100%; border-radius: 4px; border: 2px solid rgb(var(--c-muted)); }
.moon-shop :is(.shop-lead, .status-subtitle, .waitlist-subtitle) { color: var(--lh-muted); }
.moon-shop :is(.shop-hero-notes, .shop-note-card, .shop-list-card, .shop-category-card, .scheduler-card, .cart-total-group, .testcard) { border-radius: 5px; }
.moon-shop :is(.shop-category-card, .shop-list-card, .scheduler-card) { border: 1px solid var(--lh-border); box-shadow: 0 6px 20px rgb(var(--c-ink) / 0.08); }
.moon-shop :is(.shop-category-card, .shop-list-card) { background: var(--lh-surface-soft); }
.moon-shop :is(.shop-hero-media, .shop-list-photo, .shop-category-photo) { overflow: hidden; }
.moon-shop .hero-main-photo img { border-radius: 45% 45% 3px 3px; border: 4px solid rgb(var(--c-bg-2)); }
.moon-shop :is(.shop-back-link, .shop-category-link) { color: var(--lh-accent); }
.moon-shop :is(.cart-sidebar, .shop-cart, .cart-panel) { align-self: start; }
.moon-shop .grand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; font-size: 1.15rem; }
.moon-shop :is(.status-line, .status-grid, .cart-line, .status-top-grid) { min-width: 0; overflow-wrap: anywhere; }
.moon-shop :is(.shop-view-pill, .btnghost, .status-actions a, .success-actions a) { min-height: 2.7rem; align-items: center; }
.moon-shop :is(.waitlist-form-card, .egg-signup-form) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  min-height: 2.9rem; background: var(--lh-surface-soft); color: var(--lh-ink); border: 1px solid var(--lh-border); border-radius: 4px;
}
.moon-shop :is(.waitlist-field, .egg-signup-form label) { color: var(--lh-ink); }
.moon-shop .waitlist-policy { background: var(--lh-surface-soft); color: var(--lh-ink); }
.moon-shop .status-pill { color: var(--lh-ink); }

/* The public marketplace has lilac shelves with dark, narrow gallery edges. */
.moon-market .moonlit-page { margin: 0; padding: 0 0 1rem; min-height: auto; background: transparent; color: var(--lh-ink); }
.moon-market .moon-wrap { width: 100%; max-width: 1180px; margin-inline: auto; }
.moon-market .moon-hero { padding: 0; min-height: 0; }
.moon-market .moon-hero-image { max-height: 280px; object-fit: contain; border: 3px solid rgb(var(--c-bg-2)); border-radius: 4px; background: rgb(var(--c-night)); }
.moon-market .moon-intro { padding: 1.6rem 0; }
.moon-market .moon-intro h1 { margin: .5rem 0 .8rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.moon-market :is(.moon-intro p, .market-disclosure, .product-desc, .timeframe, .color-summary, .affiliate-disclosure) { color: var(--lh-muted); }
.moon-market :is(.market-coming-soon, .seasonal-banner, .featured-panel, .browse-panel, .category-hero) {
  background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-radius: 4px;
  box-shadow: 0 8px 22px rgb(var(--c-violet-900) / 0.09); color: var(--lh-ink);
}
.moon-market .market-coming-soon { padding: 1.2rem; border-style: double; border-width: 3px; }
.moon-market .market-coming-soon span { color: var(--lh-ink); font-size: clamp(1.7rem, 4vw, 2.6rem); text-shadow: none; }
.moon-market .market-coming-soon p { color: var(--lh-muted); font-size: 1rem; }
.moon-market :is(.seasonal-banner h2, .featured-panel h2, .browse-panel h2, .category-card b, .category-hero h1, .product-body strong, .modal-copy h2) { color: var(--lh-ink); text-shadow: none; }
.moon-market .category-hero { padding: clamp(1.2rem, 3vw, 2.4rem); margin: 1rem 0 1.5rem; }
.moon-market .category-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; }
.moon-market :is(.category-card, .market-product) {
  background: var(--lh-surface); color: var(--lh-ink); border: 1px solid rgb(var(--c-border)); border-radius: 4px;
  box-shadow: 0 4px 14px rgb(var(--c-ink) / 0.09);
}
.moon-market .category-card { border-top: 3px solid rgb(var(--c-bg-2)); }
.moon-market .category-card span { color: var(--lh-muted); }
.moon-market :is(.category-card:hover, .market-product:hover) { transform: translateY(-2px); border-color: rgb(var(--c-accent)); box-shadow: 0 8px 22px rgb(var(--c-violet-700-3) / 0.17); }
.moon-market .product-hit {
  all: unset; display: block; width: 100%; height: 100%; cursor: pointer; color: var(--lh-ink);
  text-align: left; border-radius: inherit; box-sizing: border-box;
}
.moon-market .product-hit:focus-visible { outline: 3px solid rgb(var(--c-status-rerun)); outline-offset: 3px; }
.moon-market .product-body { padding: 1.1rem; gap: .7rem; }
.moon-market .product-body strong { font-size: 1.3rem; line-height: 1.25; }
.moon-market :is(.product-kicker, .price-row em) { color: var(--lh-muted); }
.moon-market .love-note { color: var(--lh-muted); border-left: 2px solid rgb(var(--c-violet-400-4)); }
.moon-market :is(.love-note span, .price-row b) { color: var(--lh-ink); }
.moon-market :is(.moon-badge, .moon-pill, .subcategory-strip a) { background: var(--lh-surface-deep); color: var(--lh-ink); border-color: var(--lh-border); }
.moon-market .subcategory-strip a.active { color: rgb(var(--c-white)); background: rgb(var(--c-violet-600-4)); }
.moon-market .filter-bar { position: static; background: var(--lh-surface-deep); border-color: var(--lh-border); padding: .85rem; }
.moon-market :is(.filter-bar input, .filter-bar select, .suggestion-form input, .suggestion-form textarea, .cart-line input, .cart-add-form input) {
  background: var(--lh-surface-soft); border: 1px solid var(--lh-border); color: var(--lh-ink); min-height: 2.75rem; border-radius: 4px;
}
.moon-market :is(.filter-bar button, .suggestion-form button, .market-cta, .moon-staff-pill) { background: rgb(var(--c-violet-600-4)); color: rgb(var(--c-white)); min-height: 2.75rem; border-radius: 999px; }
.moon-market .moon-account-link { background: var(--lh-surface-soft); color: var(--lh-ink); border-color: var(--lh-border); }
.moon-market .market-modal {
  max-height: calc(100dvh - 2rem); overflow-y: auto; background: var(--lh-surface);
  border: 4px solid rgb(var(--c-bg-2)); outline: 1px solid rgb(var(--c-violet-300-2)); outline-offset: -3px; border-radius: 5px; color: var(--lh-ink);
}
.moon-market .market-modal::backdrop { background: rgb(var(--c-night) / 0.76); }
.moon-market .modal-close { width: 44px; height: 44px; background: rgb(var(--c-bg-2)); color: rgb(var(--c-surface-soft)); border: 1px solid rgb(var(--c-violet-300-2)); box-shadow: 0 2px 10px rgb(var(--c-ink) / 0.2667); }
.moon-market .modal-media { min-height: 300px; background: var(--lh-surface-deep); }
.moon-market .modal-copy { padding: 2rem; }
.moon-market :is(.modal-copy p, .modal-purchase, .cart-add-form label, .color-options legend, .color-choice) { color: var(--lh-ink); }
.moon-market .modal-note { background: var(--lh-surface-soft); color: var(--lh-ink); border-color: var(--lh-border); }
.moon-market :is(.market-secondary-link, .note-label) { color: var(--lh-accent); }
.moon-market .color-options { background: var(--lh-surface-soft); border-color: var(--lh-border); min-width: 0; }
.moon-market .color-choice { background: var(--lh-surface); border-color: var(--lh-border); min-height: 2.75rem; }
.moon-market .color-choice:has(input:checked) { outline: 2px solid rgb(var(--c-status-rerun)); }
.moon-market .color-choice:has(input:disabled) { opacity: .65; cursor: not-allowed; }
.moon-market .cart-total { color: var(--lh-ink); }
.market-carousel-controls { display: flex; gap: .5rem; margin: .75rem 0; justify-content: flex-end; }
.market-carousel-controls button { color: var(--lh-ink); background: var(--lh-surface); border: 1px solid var(--lh-border); border-radius: 999px; padding: .45rem 1rem; }
.market-receipts { overflow-x: auto; }

/* Administrative tools use the same materials, with denser spacing. */
.moon-market .market-admin { margin: 0; min-height: auto; background: transparent; color: var(--lh-ink); padding: 0; }
.moon-market .admin-wrap { width: 100%; padding: .5rem 0; }
.moon-market :is(.admin-top h1, .admin-top p, .admin-table td, .admin-table th, .inventory-card small, .inventory-card-head span, .inventory-toolbar span) { color: var(--lh-ink); }
.moon-market .admin-card { background: var(--lh-surface-soft); border-color: var(--lh-border); border-radius: 4px; overflow-x: auto; }
.moon-market :is(.admin-nav a, .admin-btn, .view-toggle a) { background: var(--lh-surface); border-color: var(--lh-border); color: var(--lh-ink); min-height: 2.65rem; display: inline-flex; align-items: center; justify-content: center; }
.moon-market :is(.admin-card input, .admin-card select, .admin-card textarea, .market-input) { background: var(--lh-field); color: var(--lh-ink); border-color: var(--lh-border); min-height: 2.6rem; }
.moon-market .admin-card :is(input[type="checkbox"], input[type="radio"]) { width: 1.15rem; min-height: 1.15rem; }
.moon-market .admin-card label { color: var(--lh-ink); }
.moon-market :is(.inventory-card, .drop-zone) { background: var(--lh-surface); border-color: var(--lh-border); }
.moon-market .admin-table { min-width: 620px; }
.moon-market .admin-table th { background: var(--lh-surface-deep); }
.moon-market .admin-table :is(th, td) { border-bottom: 1px solid rgb(var(--c-violet-300-2)); }
.moon-market .admin-table small { color: var(--lh-muted); }
.moon-market :is(.badge, .drag-handle) { background: var(--lh-surface-deep); color: var(--lh-ink); border-color: var(--lh-border); }
.moon-market .low { color: rgb(var(--c-amber-600-2)); }.moon-market .out { color: rgb(var(--c-rose-600)); }.moon-market .ok { color: rgb(var(--c-green-600)); }
.moon-staff { font-size: .95rem; }
.moon-staff :is(.content-card, .card-large) { max-width: 100%; }
.moon-staff :is(.staff-card, .staff_card, .credit-card, .labbench-panel, .chick-panel, .history-panel, .campaign-admin-list, .campaign-admin-form) {
  background: var(--lh-surface-soft); color: var(--lh-ink); border: 1px solid var(--lh-border); border-radius: 5px;
  box-shadow: 0 5px 16px rgb(var(--c-violet-900) / 0.08);
}
.moon-staff :is(.staff-card, .staff_card) { padding: clamp(.8rem, 2vw, 1.3rem); max-width: 100%; overflow-x: auto; }
.moon-staff .page-heading h1 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.moon-staff :is(.staff-tabs, .staff_tabs) { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.moon-staff :is(.staff-tab, .staff_tab, .staff-pill, .staff-sub-pill, .tab-pill) {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: .55rem .9rem; border: 1px solid rgb(var(--c-violet-400-4));
  background: var(--lh-surface-soft); color: var(--lh-ink); text-decoration: none; border-radius: 999px;
}
.moon-staff :is(.staff-tab-active, .staff_tab_active, .staff-pill.is-active, .staff-sub-pill.is-active, .tab-pill.is-active) { color: rgb(var(--c-white)); background: rgb(var(--c-violet-600-4)); border-color: rgb(var(--c-status-rerun)); }
.moon-staff .staff-nav-shell { background: var(--lh-surface-deep); border: 1px solid var(--lh-border); border-radius: 5px; }
.moon-staff :is(.staff-table, .staff_table) { width: 100%; border-collapse: collapse; font-size: .9rem; }
.moon-staff :is(.staff-table, .staff_table) th { background: var(--lh-surface-deep); color: var(--lh-ink); text-align: left; }
.moon-staff :is(.staff-table, .staff_table) :is(th, td) { border-bottom: 1px solid rgb(var(--c-violet-300-2)); padding: .8rem .65rem; }
.moon-staff :is(.staff-table, .staff_table) tbody tr:nth-child(even) { background: rgb(var(--c-surface)); }
.moon-staff :is(.staff-table, .staff_table) tbody tr:hover { background: rgb(var(--c-surface-deep)); }
.moon-staff :is(.staff-search-row, .staff_search_row, .staff_search_form) { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; }
.moon-staff :is(.staff-search-row, .staff_search_row, .staff_search_form) input { flex: 1; min-width: min(210px, 100%); min-height: 2.7rem; }
.moon-staff :is(.labbench-search-bar, .quick-receive-form) { background: var(--lh-surface); border-color: var(--lh-border); }
.moon-staff :is(.labbench-stat, .stat-pill, .credit-search) { background: var(--lh-surface); border-color: var(--lh-border); }
.moon-staff .labbench-stat strong { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; font-size: 2.5rem; }
.moon-staff .labbench-cyan { grid-column: 1 / -1; }
.moon-staff .labbench-cyan strong { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.moon-staff :is(.labbench-order, .labbench-note) { background: var(--lh-surface); border-radius: 4px; color: var(--lh-ink); }
.moon-staff :is(.labbench-drag-handle, .labbench-empty) { color: var(--lh-muted); }
.moon-staff .labbench-footer-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.moon-staff :is(.staff-sample-card, .staff-workspace-section, .staff-side-note-card, .staff-notes-card, .history-card, .order-card, .table-card) { border-radius: 5px; }
.moon-staff :is(.staff-result-btn, .staff-tab-btn) { min-height: 2.6rem; border-radius: 4px; }
.moon-staff :is(.staff-result-btn.is-active, .staff-tab-btn.is-active) { outline: 2px solid rgb(var(--c-violet-600-4)); outline-offset: 1px; }
.moon-staff .staff-delete-panel .staff-delete-final { color: rgb(var(--c-rose-600)); background: rgb(var(--c-rose-100)); border-color: rgb(var(--c-rose-400-2)); }
.moon-staff :is(.staff-workspace-grid, .staff-workspace-main, .staff-workspace-sidebar, .campaign-admin, .credit-layout) { min-width: 0; }
.moon-staff .sheet-wrap { border: 1px solid var(--lh-border); background: var(--lh-surface-soft); }
.moon-staff .sheet-table th { background: var(--lh-surface-deep); color: var(--lh-ink); }
.moon-staff :is(.sheet-table input, .sheet-table textarea, .sheet-table select) { background: var(--lh-field); color: var(--lh-ink); }
.moon-staff .pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.moon-staff .pagination :is(a, .current) { padding: .5rem .8rem; min-height: 2.65rem; border-radius: 4px; }

/* Sign-in entry and recovery states. */
.moon-portal .dash-hero-inner { background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-radius: 5px; }
.moon-portal .dash-title { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; }
.moon-portal .dash-hero-image { border: 4px solid rgb(var(--c-bg-2)); border-radius: 45% 45% 3px 3px; }
.moon-portal .public-order-cta { background: var(--lh-surface); border: 1px solid var(--lh-border); border-radius: 5px; }
.moon-error .error-page-shell { max-width: 730px; text-align: center; margin: 1rem auto; padding: clamp(1rem, 5vw, 3rem); color: var(--lh-ink); }
.moon-error .error-page-moon { width: 62px; height: 62px; margin: 0 auto 1.5rem; border-radius: 50%; background: rgb(var(--c-violet-600-4)); box-shadow: inset 13px -8px 0 var(--lh-surface), 0 0 20px rgb(var(--c-violet-500-5) / 0.3333); }
.moon-error .error-page-shell p { color: var(--lh-muted); max-width: 54ch; margin: 1rem auto; }
.moon-error .error-page-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem; }

/* A restrained carved frame ties secondary reading pages to the main site. */
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero) {
  position: relative; isolation: isolate; padding: clamp(1.5rem, 4vw, 3rem) clamp(1.1rem, 4vw, 3rem);
  border: 3px double rgb(var(--c-muted)); border-radius: 3px;
  background: linear-gradient(140deg, rgb(var(--c-surface-soft)), rgb(var(--c-surface-deep)));
  box-shadow: inset 0 0 0 5px rgb(var(--c-surface-soft)), 0 8px 20px rgb(var(--c-ink) / 0.0627);
}
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::before,
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::after {
  content: ""; position: absolute; z-index: -1; top: 0; width: 66px; height: 66px; pointer-events: none;
  background: url('/static/dna_portal/moonlit/ornate-corner-v2.webp') left top / contain no-repeat;
}
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::before { left: 0; }
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::after { right: 0; transform: scaleX(-1); }
.moon-secondary .breed-hero .page-title { margin: .7rem 0; }
.moon-market :is(.admin-nav, .featured-controls) { align-items: center; }
.moon-market :is(.admin-nav a, .featured-controls button, .moon-pill) { gap: .45rem; }
.moon-market .admin-nav { padding: .8rem; background: var(--lh-surface-deep); border: 1px solid var(--lh-border); border-radius: 4px; }
.moon-market .admin-nav a { font-size: .86rem; box-shadow: none; }
.moon-market .admin-nav a.is-active,
.moon-market .view-toggle .admin-btn.active { background: rgb(var(--c-violet-600-4)); color: rgb(var(--c-white)); border-color: rgb(var(--c-status-rerun)); }
.moon-market .admin-card :is(h2, h3) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; }
.moon-market .admin-card > h2:first-child { margin-top: 0; }
.moon-market #inventoryTableView { max-width: 100%; overflow-x: auto; scrollbar-color: rgb(var(--c-violet-400-4)) rgb(var(--c-surface)); }
.moon-market #inventoryTableView .admin-table { min-width: 1660px; }
.moon-market #inventoryTableView :is(th, td) { min-width: 135px; }
.moon-market #inventoryTableView :is(th, td):first-child { min-width: 200px; }
.moon-market #inventoryTableView :is(th, td):nth-child(2) { min-width: 90px; }
.moon-market .admin-card input[type="file"] { padding: .6rem; }
.moon-market .image-edit-fields { grid-template-columns: minmax(0,1fr); align-content: start; }
.moon-market .image-edit-fields input[type="range"] { padding: 0; accent-color: var(--lh-accent); }
.moon-market .market-field-control { display: block; min-width: 0; font-weight: 400; overflow-wrap: anywhere; line-height: 1.6; }
.moon-market .market-field-control input[type="file"] { margin-top: .5rem; }
.moon-market .admin-grid { align-items: start; }
.moon-market .admin-card :is(input, select, textarea) { font-weight: 400; }
.moon-staff .staff-nav-shell { padding: .9rem; }
.moon-staff .staff-main-pills { padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid rgb(var(--c-violet-300-2)); }
.moon-staff .staff-sub-pills:empty { display: none; }
.moon-staff :is(.staff-pill, .staff-sub-pill) { box-shadow: none; font-weight: 650; }
.moon-staff :is(.staff-pill.is-active, .staff-sub-pill.is-active) { box-shadow: inset 0 1px 0 rgb(var(--c-violet-300-3)), 0 2px 7px rgb(var(--c-deep) / 0.1255); }

/* Long policy and location content gets the same deliberate reading rhythm. */
.moon-document { max-width: 1080px; margin-inline: auto; }
.moon-policy .moonwrap { padding: 0; }
.moon-policy .mooncard { max-width: 960px; margin: 0 auto; }
.moon-policy .moonhead { text-align: center; }
.moon-policy .moonbadge { color: var(--lh-accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 750; }
.moon-policy .moontitle { font-size: clamp(2rem, 4vw, 3.5rem); margin: .8rem 0; }
.moon-policy .moonsub { color: var(--lh-muted); max-width: 64ch; margin: .8rem auto 0; }
.moon-policy .policy-jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; padding: 1.1rem 0; }
.moon-policy .policy-jump-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 999px; background: var(--lh-surface-soft); color: var(--lh-ink); font-size: .85rem; text-decoration: none; }
.moon-policy .policy-jump-nav a:hover { background: var(--lh-surface-deep); border-color: var(--lh-accent); }
.moon-policy .moonpanel { padding: clamp(1.1rem, 3vw, 2.5rem); background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-radius: 4px; }
.moon-policy .moonh { font: 500 clamp(1.4rem, 2.5vw, 1.9rem)/1.25 var(--lh-serif); font-size-adjust: 0.46; color: var(--lh-ink); margin: 0 0 .8rem; scroll-margin-top: 7rem; }
.moon-policy .moonp { margin: .8rem 0 0; color: var(--lh-ink); }
.moon-policy .moonstrong { font-weight: 750; }
.moon-policy .moondivider { border-top: 1px solid rgb(var(--c-violet-300-2)); margin: 2rem 0; }
.moon-policy .mooncallout { margin: 1.1rem 0 1.6rem; padding: 1.25rem; background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-violet-400-4)); border-left: 4px solid var(--lh-accent); border-radius: 3px; }
.moon-policy .mooncalltitle { font-weight: 750; margin-bottom: .8rem; }
.moon-policy .moonlist { padding-left: 1.2rem; margin: .5rem 0; }
.moon-policy .moonlist li + li { margin-top: .5rem; }
.moon-policy .moongrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: .9rem 0 1.8rem; }
.moon-policy .moonstat { padding: 1.1rem 1.3rem; border: 1px solid rgb(var(--c-violet-300-2)); background: var(--lh-surface); border-radius: 3px; }
.moon-policy .moonstat.full { grid-column: 1/-1; }
.moon-policy .moonstatlabel { color: var(--lh-muted); font-size: .85rem; font-weight: 650; }
.moon-policy .moonstatvalue { font: 500 1.75rem/1.2 var(--lh-serif); font-size-adjust: 0.46; margin-top: .4rem; }
.moon-policy .moonfooter { margin-top: 2rem; border-top: 1px solid rgb(var(--c-violet-300-2)); padding-top: 1.5rem; }
.moon-policy .moonsign { color: var(--lh-muted); font-family: var(--lh-serif); font-size-adjust: 0.46; font-style: italic; font-size: 1.1rem; line-height: 1.65; }
.moon-florida .content-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.moon-florida .lh-section { margin: 0 0 2.2rem; }
.moon-florida .lh-section:first-child { text-align: center; padding: clamp(1.5rem,4vw,3rem); border: 3px double rgb(var(--c-muted)); background: linear-gradient(140deg,rgb(var(--c-surface-soft)),rgb(var(--c-surface-deep))); box-shadow: inset 0 0 0 5px rgb(var(--c-surface-soft)); }
.moon-florida .section-head { margin-bottom: 1rem; }
.moon-florida .page-title { margin: .6rem auto 1rem; max-width: 22ch; }
.moon-florida :is(h2,h3) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; line-height: 1.25; }
.moon-florida h2 { font-size: clamp(1.7rem,3vw,2.3rem); margin: .5rem 0; }
.moon-florida h3 { font-size: 1.5rem; margin: 0 0 .8rem; }
.moon-florida .card-subtitle { max-width: 70ch; margin-inline: auto; }
.moon-florida .lh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.moon-florida .lh-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.moon-florida .lh-card { display: flex; flex-direction: column; padding: 1.5rem; background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-top: 3px solid rgb(var(--c-violet-700-4)); border-radius: 3px; box-shadow: 0 5px 15px rgb(var(--c-ink) / 0.0627); }
.moon-florida .lh-card p { margin: 0 0 1.2rem; }
.moon-florida .lh-card .btn-secondary { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; padding: .7rem 1rem; line-height: 1.4; text-align: center; }
.moon-florida .lh-section:nth-child(2) { padding: 1.5rem 2rem; background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-radius: 3px; }

@media (max-width: 1000px) {
  .moon-market .filter-bar.has-subcategory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-shop .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .moon-shop :is(.cart-sidebar, .shop-cart, .cart-panel) { position: static; }
  .moon-breed .guide-toc-card { position: static; }
}
@media (max-width: 720px) {
  .moon-market .admin-nav { gap: .4rem; padding: .65rem; }
  .moon-market .admin-nav a { flex: 1 0 auto; min-height: 44px; padding: .5rem .65rem; }
  .moon-staff .staff-main-pills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .moon-staff .staff-pill { justify-content: center; text-align: center; padding: .55rem .65rem; font-size: .8rem; }
  .moon-staff .staff-sub-pills { gap: .4rem; }
  .moon-staff .staff-sub-pill { font-size: .78rem; padding: .5rem .7rem; }
  .moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::before,
  .moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::after { width: 43px; height: 43px; }
  .moon-florida .lh-card-grid { grid-template-columns: 1fr; }
  .moon-florida :is(.lh-card, .lh-section:nth-child(2)) { padding: 1.2rem; }
  .moon-florida .lh-actions > a { width: 100%; }
  .moon-policy .moongrid { grid-template-columns: 1fr; }
  .moon-policy .mooncallout { padding: 1rem; }
  .moon-secondary :is(.page-title, .shop-hero h1, .egg-signup-hero h1) { font-size: clamp(2rem, 8vw, 2.8rem); }
  .moon-secondary :is(button, .btn, .btn-secondary, .staff-tab, .staff_tab, .staff-pill, .staff-sub-pill) { min-height: 44px; }
  .moon-breed .breed-gallery { gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-breed .breed-gallery > :only-child { grid-column: 1/-1; }
  .moon-breed .breed-image { aspect-ratio: 4/5; }
  .moon-breed :is(.quick-facts, .info-grid, .comparison-grid, .genetics-box ul) { grid-template-columns: 1fr; }
  .moon-breed :is(.breed-section, .breed-cta) { padding: 1rem; }
  .moon-shop :is(.shop-hero, .shop-hero-notes, .shop-category-grid, .status-top-grid, .status-grid) { grid-template-columns: 1fr; }
  .moon-shop .shop-hero-media { height: 270px; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
  .moon-shop .hero-main-photo img { height: 270px; }
  .moon-shop .shop-list-card { grid-template-columns: 1fr; }
  .moon-shop .shop-list-photo img { max-height: 320px; width: 100%; object-fit: cover; }
  .moon-market .modal-shell { grid-template-columns: 1fr; }
  .moon-market .modal-copy { padding: 1.2rem; }
  .moon-market .modal-media { min-height: 180px; max-height: 300px; }
  .moon-market .modal-media img { aspect-ratio: 4/3; }
  .moon-market .market-modal { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .moon-market .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-market :is(.category-card, .featured-panel, .browse-panel) { padding: .85rem; }
  .moon-market .filter-bar.has-subcategory { grid-template-columns: 1fr; }
  .moon-staff :is(.labbench-grid, .credit-layout, .campaign-admin, .staff-workspace-grid) { grid-template-columns: 1fr; }
  .moon-staff .staff-search-row > * { max-width: 100%; }
  .moon-staff :is(.staff-table, .staff_table) { min-width: 620px; }
  .moon-staff .staff-table:has(td[data-label]) { min-width: 0; }
  .moon-staff .staff_table.mobile-credit-table { min-width: 0; }
  .moon-staff :is(.staff-card, .staff_card) { padding: .75rem; }
  .moon-staff:has(.sheet-wrap) { overflow-x: clip; }
  .moon-staff .staff-sample-summary-top { flex-direction: column; align-items: stretch; }
  .moon-staff .staff-sample-card-actions { width: 100%; justify-content: flex-start; }
  .moon-staff .staff-delete-sample[open] { flex: 1 0 100%; width: 100%; }
  .moon-staff .staff-delete-sample[open] .staff-delete-panel { position: static; inset: auto; width: 100%; min-width: 0; max-width: 100%; margin-top: .65rem; }
  .moon-staff :is(.breed-need-admin-row, .donor-wall-admin-row) { grid-template-columns: 1fr; }
  .moon-portal .dash-hero-inner { grid-template-columns: 1fr; padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .moon-secondary *, .moon-secondary *::before, .moon-secondary *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .moon-market :is(.category-card:hover, .market-product:hover) { transform: none; }
}

/* Staff typing boxes: a lighter field so notes and entries stand off the lilac cards. */
body .moon-staff :is(textarea, select, input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"]) {
  background-color: rgb(var(--c-pure-white)) !important;
  color: rgb(var(--c-ink));
}
body .moon-staff :is(textarea, input):focus {
  border-color: rgb(var(--c-accent)) !important;
  box-shadow: 0 0 0 3px rgb(var(--c-neon) / .25);
}
