:root { color-scheme: light; --ink: #243533; --brand: #981747; --line: #e8dce0; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1120px; padding: 32px 22px; font-family: system-ui, sans-serif; color: var(--ink); background: #f6f7f2; line-height: 1.6; }
header { padding: 20px 0 24px; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; max-width: 760px; margin: 12px 0; }
h2, h3 { line-height: 1.3; }
.eyebrow { letter-spacing: .18em; font-size: .75rem; font-weight: 700; color: var(--brand); }
.site-title { font-size: 2.25rem; line-height: 1.2; letter-spacing: .06em; margin: 0 0 8px; }
.site-tagline { font-size: 1rem; line-height: 1.4; margin: 0 0 12px; }
nav { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
button { border: 1px solid var(--brand); background: var(--brand); color: white; padding: 10px 16px; border-radius: 7px; cursor: pointer; font: inherit; font-weight: 600; margin: 5px 0; }
button:hover { filter: brightness(.9); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary, nav button { color: var(--brand); background: transparent; }
nav button[aria-current] { color: white; background: var(--brand); }
nav a { margin: 5px 0; padding: 8px 12px; color: var(--brand); font-weight: 600; }
nav a[aria-current] { background: #e6ede6; border-radius: 7px; }
a { color: var(--brand); }
.public-panels .card { margin-top: 0; }
.public-page { max-width: 920px; }
.public-page li { margin-bottom: 10px; }
details { padding: 16px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
.publication-notice { border-left: 4px solid #e6ae52; padding-left: 14px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #e6ae52; outline-offset: 3px; }
.session-bar { display: flex; justify-content: space-between; align-items: center; min-height: 60px; font-size: .9rem; color: #53615d; }
.card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin: 20px 0; }
.app-page { position: relative; }
body.landing-page { max-width: none; padding: 0; }
.landing-page > .site-header, .landing-page > .session-bar { display: none; }
.landing-page .main-navigation { position: absolute; top: 20px; right: 24px; z-index: 5; max-width: calc(100% - 48px); justify-content: flex-end; border: 0; padding: 0; }
.landing-page .main-navigation [data-section="home"] { display: none; }
.landing-page .main-navigation button { margin: 0; background: var(--brand); border-color: var(--brand); color: white; box-shadow: 0 3px 16px rgb(73 10 33 / 20%); }
.home-hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; width: 100%; margin: 0; overflow: hidden; background: #f7e5cf; }
.home-hero::before { content: ""; position: absolute; inset: -24px; background: url('/images/vivah-yog-hero-960.webp') center / cover no-repeat; filter: blur(20px); opacity: .45; pointer-events: none; }
.hero-picture { position: relative; display: block; width: 100%; height: 100%; }
.hero-image { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.home-content { max-width: 1120px; margin: 0 auto; padding: 24px 22px 0; }
.hero-content { padding: 26px; }
.hero-content h2 { margin-top: 0; }
.landing-page > footer { max-width: 1120px; margin: 24px auto 0; padding: 0 22px 32px; }
.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; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.reports-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.reports-heading h2 { margin: 6px 0; font-size: 2rem; }
.reports-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.metric-card { margin: 0; border-top: 4px solid var(--brand); min-width: 0; }
.metric-card h3 { font-size: 1rem; margin: 0; }
.metric-card .metric-value { color: var(--brand); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; margin: 20px 0; overflow-wrap: anywhere; }
.metric-card > p:not(.metric-value) { font-size: .85rem; }
.dashboard-footnote { margin-bottom: 0; font-size: .9rem; }
#admin_dashboard h4 { margin: 24px 0 8px; }
#admin_dashboard .metric-card { padding: 18px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 22px; margin: 0 0 24px; min-width: 0; }
legend { font-size: 1.05rem; font-weight: 700; padding-bottom: 16px; }
label { display: block; font-size: .9rem; font-weight: 600; margin: 8px 0 12px; }
input, select, textarea { display: block; width: 100%; padding: 11px; border-radius: 6px; border: 1px solid #b9c5be; margin-top: 6px; font: inherit; background: white; color: var(--ink); }
textarea { resize: vertical; min-height: 110px; }
input[readonly], select:disabled { background: #eef1ec; color: #53615d; }
.family-row { margin-bottom: 16px; }
.family-row button { align-self: end; justify-self: start; margin-bottom: 12px; }
.profile-number { position: sticky; top: 0; z-index: 2; background: white; color: var(--brand); border-bottom: 1px solid var(--line); padding: 12px 0; margin-top: 0; font-size: clamp(1rem, 4vw, 1.35rem); font-weight: 700; overflow-wrap: anywhere; }
input[type="checkbox"] { width: auto; display: inline-block; margin-right: 10px; }
.check { display: flex; align-items: baseline; font-weight: 400; }
.reference { margin-bottom: 16px; }
.language-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.language-row > label:first-child { flex: 1; min-width: 150px; }
.result { white-space: pre-wrap; overflow-wrap: anywhere; }
.result.error { color: #a42222; }
.result.success { color: var(--brand); }
p { color: #53615d; }
img { max-width: 100%; object-fit: contain; }
code, pre { overflow-wrap: anywhere; white-space: pre-wrap; word-break: break-word; }
pre { font-size: .85rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
td, th { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
td button { font-size: .8rem; margin-right: 6px; padding: 6px 10px; }
.table-scroll { overflow-x: auto; }
.photos { display: flex; gap: 12px; flex-wrap: wrap; }
.photos img { width: 180px; height: 180px; border-radius: 8px; }
.candidate-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 18px; }
.candidate-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 20px; overflow-wrap: anywhere; }
.candidate-card img, .photo-placeholder { width: 150px; height: 170px; border-radius: 8px; object-fit: cover; background: #eef1ec; }
.photo-placeholder { display: grid; place-items: center; color: #53615d; }
.profile-name { display: block; background: transparent; color: var(--brand); text-align: left; padding: 0; border: 0; text-decoration: underline; font-size: 1.15rem; overflow-wrap: anywhere; }
.candidate-number { font-weight: 700; color: var(--brand); }
.pagination { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 20px; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; }
.profile-facts > div { min-width: 0; }
.profile-facts dt { font-weight: 700; font-size: .85rem; color: #53615d; }
.profile-facts dd { margin: 3px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.detail-header h3 { margin: 4px 0; font-size: 1.6rem; }
.detail-meta { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.detail-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.status-pill { display: inline-block; padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; background: #eef1ec; color: #53615d; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.status-pill.pending, .status-pill.under_review { background: #fff4d6; border-color: #e8c56a; color: #7a5200; }
.status-pill.approved { background: #e6f3e8; border-color: #9cccaa; color: #1f6b33; }
.status-pill.rejected { background: #fbe9e9; border-color: #e3a5a5; color: #9a2222; }
.status-pill.correction_requested { background: #fdf0e3; border-color: #e8bb85; color: #8a4b00; }
.detail-number { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7edf0; color: var(--brand); font-size: .85rem; font-weight: 700; }
.decision-note { margin: 18px 0 0; padding: 10px 14px; border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0; background: #fdf1f4; color: var(--ink); }
.detail-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 14px; font-size: 1.05rem; }
.detail-section h5 { margin: 0 0 6px; color: var(--brand); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.detail-stack { display: grid; gap: 14px; }
.detail-address, .detail-review { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf7; }
.detail-address p, .detail-review p { margin: 4px 0; }
.detail-review-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.detail-review-heading span { color: #53615d; font-size: .85rem; }
.detail-empty { color: #53615d; font-style: italic; }
#admin_details .profile-facts { margin: 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-actions button { margin: 0; }
.sheet-search { max-width: 380px; margin: 12px 0 4px; }
.sheet-help { font-size: .85rem; }
.sheet-scroll { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.sheet-table { min-width: max-content; border-collapse: separate; border-spacing: 0; font-size: .78rem; }
.sheet-table th, .sheet-table td { max-width: 280px; padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-table th { position: sticky; top: 0; z-index: 2; background: #f4f1e9; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.sheet-table tbody tr:nth-child(even) { background: #fbfaf6; }
.sheet-table td.wrap { max-width: 340px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-table th:last-child, .sheet-table td:last-child { border-right: 0; }
.sheet-table tr:last-child td { border-bottom: 0; }
.sheet-count { margin: 0; padding: 2px 6px; border: 0; background: transparent; color: var(--brand); font-weight: 700; text-decoration: underline; }
.sheet-count:hover { background: #f7edf0; filter: none; }
.notifications { padding-left: 24px; overflow-wrap: anywhere; }
.notifications li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.notifications .unread { font-weight: 700; }
.link-danger { color: #a42222; border: 0; background: transparent; text-decoration: underline; padding-left: 0; }
button.danger { background: #a42222; border-color: #a42222; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 26px; max-width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 40px); color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / 45%); }
footer { font-size: .8rem; margin: 36px 0 12px; color: #53615d; }
[hidden] { display: none !important; }
@media (max-width: 650px) { body { padding: 20px 12px; } .card, .hero-content { padding: 18px; } .two-column { grid-template-columns: 1fr; gap: 0; } .detail-badges { flex-direction: row; flex-wrap: wrap; } .detail-header h3 { font-size: 1.35rem; } }
@media (max-width: 650px) {
  .landing-page .main-navigation { top: 12px; right: 12px; max-width: calc(100% - 24px); gap: 8px; }
  .landing-page .main-navigation button { padding: 9px 12px; font-size: .85rem; }
  .home-content { padding: 16px 12px 0; }
  .landing-page > footer { padding: 0 12px 24px; }
}
@media (max-aspect-ratio: 3/4) {
  .hero-image { object-fit: cover; }
  .home-hero::before { display: none; }
}
