/* Shared, self-hosted styles for the Wardleaf and Sahayata applications. */
@font-face {
  font-family: "DM Sans"; src: url("./dm-sans.woff2") format("woff2");
  font-weight: 100 1000; font-display: swap;
}
@font-face {
  font-family: "Noto Devanagari"; src: url("./noto-devanagari.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; unicode-range: U+0900-097F,U+A8E0-A8FF;
}
:root {
  --wl-font: "DM Sans", "Noto Devanagari", "Nirmala UI", sans-serif;
  --wl-ink: #173430;
  --wl-muted: #526963;
  --wl-paper: #f5f8f5;
  --wl-surface: #fff;
  --wl-line: #d3dfd9;
  --wl-field-border: #758b83;
  --wl-deep: #123f40;
  --wl-action: #176457;
  --wl-action-soft: #e3f1e9;
  --wl-info: #395876;
  --wl-info-soft: #e7eef6;
  --wl-caution: #794715;
  --wl-caution-soft: #fff2cf;
  --wl-danger: #9b3437;
  --wl-danger-soft: #fcebed;
  --wl-focus: #b35518;
  --wl-space-1: .25rem;
  --wl-space-2: .5rem;
  --wl-space-3: .75rem;
  --wl-space-4: 1rem;
  --wl-space-5: 1.5rem;
  --wl-space-6: 2rem;
  --wl-space-7: 3rem;
  --wl-radius-control: 6px;
  --wl-radius-panel: 12px;
  --wl-radius-dialog: 16px;
  --wl-target: 44px;
  --wl-duration: 140ms;
  --wl-ease: cubic-bezier(.2,.7,.3,1);
}
.wl-ui {
  font-family: var(--wl-font);
  color: var(--wl-ink);
  background: var(--wl-paper);
}
:where(.wl-ui) *, :where(.wl-ui) *::before, :where(.wl-ui) *::after { box-sizing: border-box; }
.wl-ui :focus-visible { outline: 3px solid var(--wl-focus); outline-offset: 3px; }
.wl-button, .wl-input, .wl-segmented > button { box-sizing: border-box; font-family: var(--wl-font); }
.wl-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--wl-space-2);
  min-height: var(--wl-target); min-width: var(--wl-target); max-width: 100%;
  padding: .6rem 1rem; border: 1px solid transparent; border-radius: var(--wl-radius-control);
  background: var(--wl-action); color: white; font-size: .9rem; font-weight: 640; line-height: 1.35;
  cursor: pointer; text-decoration: none; text-align: center; overflow-wrap: anywhere;
  transition: filter var(--wl-duration) var(--wl-ease), box-shadow var(--wl-duration) var(--wl-ease);
}
.wl-button--secondary { color: var(--wl-ink); background: var(--wl-surface); border-color: var(--wl-field-border); }
.wl-button--danger { color: white; background: var(--wl-danger); }
.wl-button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.wl-button[aria-busy="true"] { cursor: progress; }
.wl-button:disabled, .wl-button[aria-disabled="true"] { color: #51665d; background: #ebefec; border-color: var(--wl-line); cursor: default; }
@media (hover: hover) {
  .wl-button:not(:disabled, [aria-disabled="true"]):hover { filter: brightness(.89); }
}
.wl-card {
  padding: var(--wl-space-5); background: var(--wl-surface); border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius-panel); min-width: 0;
}
.wl-field { display: grid; gap: var(--wl-space-2); min-width: 0; }
.wl-field > label, .wl-field > legend { font-weight: 640; }
.wl-input {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: var(--wl-target);
  padding: .625rem .75rem; border: 1px solid var(--wl-field-border); border-radius: var(--wl-radius-control);
  color: var(--wl-ink); background: var(--wl-surface); font-size: 1rem;
}
textarea.wl-input { min-height: 5rem; resize: vertical; }
.wl-input[aria-invalid="true"] { border: 2px solid var(--wl-danger); }
.wl-input:disabled, .wl-input[readonly] { background: var(--wl-paper); }
.wl-help, .wl-error { margin: 0; font-size: .875rem; line-height: 1.45; }
.wl-help { color: var(--wl-muted); }
.wl-error { color: var(--wl-danger); }
.wl-segmented { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: #edf3ef; border-radius: 8px; }
.wl-segmented > button {
  min-width: var(--wl-target); min-height: var(--wl-target); padding: .25rem .55rem;
  color: var(--wl-muted); border: 0; background: transparent; border-radius: 5px;
  font-size: .875rem; font-weight: 625; cursor: pointer;
}
.wl-segmented > button[aria-pressed="true"] { color: var(--wl-deep); background: var(--wl-surface); box-shadow: 0 1px 4px #283f3525; }
.wl-disclosure { border-block: 1px solid var(--wl-line); }
.wl-disclosure > summary {
  display: flex; align-items: center; gap: var(--wl-space-3); min-height: var(--wl-target);
  padding: var(--wl-space-4) .2rem; list-style: none; cursor: pointer; font-weight: 620;
}
.wl-disclosure > summary::-webkit-details-marker { display: none; }
.wl-status { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: var(--wl-radius-control); line-height: 1.4; font-size: .875rem; font-weight: 600; background: var(--wl-info-soft); color: var(--wl-info); }
.wl-status[data-tone="success"] { color: var(--wl-action); background: var(--wl-action-soft); }
.wl-status[data-tone="warning"] { color: var(--wl-caution); background: var(--wl-caution-soft); }
.wl-status[data-tone="error"] { color: var(--wl-danger); background: var(--wl-danger-soft); }
.wl-dialog {
  box-sizing: border-box; width: min(30rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: var(--wl-space-5); border: 1px solid var(--wl-line); border-radius: var(--wl-radius-dialog);
  font-family: var(--wl-font); color: var(--wl-ink); background: var(--wl-surface);
}
.wl-dialog::backdrop { background: rgb(15 37 34 / 60%); }
.wl-dialog[open] { animation: wl-dialog-in var(--wl-duration) var(--wl-ease); }
.wl-actions, .wl-call-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wl-space-2); }
.wl-actions { margin-top: var(--wl-space-5); }
.wl-call-controls { padding: var(--wl-space-3); justify-content: center; border-block-start: 1px solid var(--wl-line); }
.wl-video-stage { display: grid; place-items: center; aspect-ratio: 16 / 9; min-width: 0; background: #142d2a; color: white; overflow: hidden; border-radius: var(--wl-radius-panel); }
.wl-video-stage video { width: 100%; height: 100%; object-fit: contain; }
@keyframes wl-dialog-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .wl-button { transition: none; }
  .wl-dialog[open] { animation: none; }
}
@media (forced-colors: active) {
  .wl-ui :focus-visible { outline-color: Highlight; }
  .wl-button, .wl-status, .wl-segmented > button[aria-pressed="true"] { border: 1px solid ButtonText; }
}
/* Product wordmark for department sign-in and in-app navigation. */
.wl-product-brand { display: inline-flex; align-items: center; gap: .6rem; text-align: start; color: inherit; }
.wl-product-brand-copy { display: grid; gap: .22rem; line-height: 1; }
.wl-product-brand-copy strong { font-size: 1.2rem; font-weight: 760; letter-spacing: -.025em; }
.wl-product-brand-copy small { font-size: .69rem; font-weight: 550; }
.wl-product-mark {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  flex: none;
  background: url("./wardleaf-mark.png") center / contain no-repeat;
}
