/* DegreeWorx funding tools. Matches the scholarship matcher's look. */
.dw-ft {
  --dw-ink: #1d2733; --dw-muted: #5b6673; --dw-line: #d9dee4; --dw-bg: #f6f8fa;
  --dw-accent: #1f5fa8; --dw-warn: #a3340f; --dw-warn-bg: #fdeee8; --dw-ok: #1b6b3a; --dw-ok-bg: #e9f5ee;
  color: var(--dw-ink); margin: 1.5em 0;
}
.dw-ft *, .dw-ft *::before, .dw-ft *::after { box-sizing: border-box; }
.dw-ft-form { background: var(--dw-bg); border: 1px solid var(--dw-line); border-radius: 8px; padding: 20px; }
.dw-ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 20px; align-items: start; }
.dw-ft-sub { grid-column: 1 / -1; margin: 10px 0 0; font-size: 1.1em; }
.dw-ft-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.dw-ft-field select, .dw-ft-field input[type="text"] {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #b8c0c9; border-radius: 6px;
  background: #fff; color: var(--dw-ink); font: inherit;
}
.dw-ft-field select:focus, .dw-ft-field input:focus { outline: 3px solid #f0b400; outline-offset: 2px; }
.dw-ft-check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.dw-ft-check input { width: 18px; height: 18px; margin-top: .2em; flex: none; }
.dw-ft-group { display: contents; }
.dw-ft-help { font-size: .875em; color: var(--dw-muted); margin: 4px 0 0; }
.dw-ft-prof { grid-column: 1 / -1; }
.dw-ft [hidden] { display: none !important; }

.dw-ft-out { margin-top: 24px; }
.dw-ft-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.dw-ft-table th, .dw-ft-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--dw-line); vertical-align: top; }
.dw-ft-table th { font-weight: 400; width: 55%; }
.dw-ft-table td { font-variant-numeric: tabular-nums; }
.dw-ft-table tr.dw-ft-key th, .dw-ft-table tr.dw-ft-key td { font-weight: 700; background: var(--dw-bg); }
.dw-ft-gap { border-radius: 8px; padding: 16px 20px; margin: 8px 0 16px; border: 2px solid; }
.dw-ft-gap.is-gap { border-color: #f2b9a5; background: var(--dw-warn-bg); }
.dw-ft-gap.is-ok { border-color: #a9d8bb; background: var(--dw-ok-bg); }
.dw-ft-gap p { margin: 0 0 4px; }
.dw-ft-gap-label { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85em; }
.dw-ft-gap-amount { font-size: 2em; font-weight: 700; line-height: 1.2; }
.is-gap .dw-ft-gap-amount { color: var(--dw-warn); }
.is-ok .dw-ft-gap-amount { color: var(--dw-ok); }
.dw-ft-alert { background: var(--dw-warn-bg); border-left: 4px solid var(--dw-warn); padding: 10px 14px; margin-bottom: 14px; }
.dw-ft-next { border-left: 4px solid var(--dw-accent); background: var(--dw-bg); padding: 14px 18px; margin: 0 0 16px; border-radius: 0 8px 8px 0; }
.dw-ft-next h3 { margin-top: 0; font-size: 1.1em; }
.dw-ft-next li { margin: 4px 0; }
.dw-ft-details summary { cursor: pointer; font-weight: 600; color: var(--dw-accent); padding: 6px 0; }
.dw-ft-notes { font-size: .92em; color: var(--dw-muted); padding-left: 1.2em; }
.dw-ft-sources a { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .dw-ft-form { padding: 16px; }
  .dw-ft-table th { width: 50%; }
}
