/* ============ Invention disclosure page (generated) ============
   GENERATED by scripts/build_disclosure.py. Edit PAGE_CSS there and re-run;
   changes made here are overwritten. Its own file for the same reason as
   reimbursements.css: a regeneration must never race a hand edit in a shared
   stylesheet. Only .idf-* and .fld selectors, nothing overrides portal.css. */

/* ---- guidance cards ---- */
.idf-guide-band { background: var(--bg-soft); }
.idf-guide { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.idf-card { background: #fff; border: 1px solid var(--line); padding: 24px 26px 22px; }
.idf-card-head {
  margin: 0 0 10px; font-family: var(--font-display); font-size: var(--fs-2);
  font-weight: var(--fw-med); color: var(--navy); letter-spacing: var(--tr-snug);
}
.idf-card p { margin: 0; font-size: var(--fs-0); line-height: 1.7; color: var(--ink); }
.idf-guide-foot { margin: 18px 0 0; font-size: var(--fs--1); color: var(--muted); }

/* ---- not connected ---- */
.idf-notice {
  padding: 16px 20px; margin-bottom: 28px;
  background: rgba(216,150,30,.08); border-left: 3px solid #d8961e;
  font-size: var(--fs--1); color: var(--ink); line-height: 1.7;
}

/* ---- layout ---- */
.idf-layout { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 56px; align-items: start; }
.idf-layout[hidden] { display: none; }                 /* an explicit display beats the UA [hidden] rule */
.idf-form { min-width: 0; max-width: 860px; }
.idf-aside { position: sticky; top: 140px; font-size: var(--fs--1); }
.idf-aside-head {
  margin: 0 0 10px; font-size: var(--fs-micro); letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--muted); font-weight: var(--fw-semi);
}
.idf-index { margin: 0; padding: 0 0 0 20px; color: var(--muted); }
.idf-index li { padding: 4px 0; }
.idf-index a { color: var(--navy); text-decoration: none; }
.idf-index a:hover { color: var(--blue); }
.idf-aside-note { margin: 18px 0 0; font-size: var(--fs--2); color: var(--muted); line-height: 1.6; }

.idf-step {
  display: flex; align-items: center; gap: 12px; margin: 52px 0 14px;
  font-family: var(--font-display); font-size: var(--fs-4); font-weight: var(--fw-med);
  color: var(--navy); scroll-margin-top: 140px;
}
.idf-step:first-of-type { margin-top: 0; }
.idf-step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--font-body); font-size: var(--fs--2); font-weight: var(--fw-semi);
}
.idf-hint { font-size: var(--fs--1); color: var(--muted); margin: 0 0 20px; line-height: 1.7; }
.idf-callout {
  margin: 0 0 22px; padding: 14px 18px; background: var(--bg-soft-2);
  border-left: 3px solid var(--blue); font-size: var(--fs--1); line-height: 1.7; color: var(--ink);
}

/* ---- fields (same look as the reimbursement form) ---- */
.idf-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 24px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs--1);
       font-weight: var(--fw-med); color: var(--navy); min-width: 0; }
.fld[hidden] { display: none; }
.fld-wide { grid-column: span 2; }
.fld .opt { font-weight: var(--fw-book); color: var(--muted); }
.fld-l { display: block; }                            /* keeps a label and its (optional) on one line in the flex column */
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 10px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-body); font-size: var(--fs-0); font-weight: var(--fw-book);
  color: var(--ink); transition: border-color .2s var(--ease);
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--blue); }
.fld input[readonly] { background: var(--bg-soft); color: var(--muted); }
.fld textarea { resize: vertical; min-height: 62px; line-height: 1.6; }
.fld-note { font-size: var(--fs--2); font-weight: var(--fw-book); color: var(--muted); line-height: 1.55; }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: #c0392b; }
.idf-q.bad .idf-seg { outline: 1px solid #c0392b; outline-offset: 3px; }

/* ---- yes/no questions ---- */
.idf-q { margin: 0 0 16px; }
.idf-q-label { margin: 0 0 8px; font-size: var(--fs--1); font-weight: var(--fw-med); color: var(--navy); }
.idf-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); background: #fff; }
.idf-seg label { position: relative; cursor: pointer; }
.idf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.idf-seg span {
  display: block; padding: 8px 16px; font-size: var(--fs--1); color: var(--ink);
  border-right: 1px solid var(--line); transition: background .2s var(--ease), color .2s var(--ease);
}
.idf-seg label:last-child span { border-right: 0; }
.idf-seg input:checked + span { background: var(--navy); color: #fff; }
.idf-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ---- repeating rows (disclosures, funding) ---- */
.idf-rows { margin: 0 0 24px; }
.idf-rows[hidden] { display: none; }
.idf-row {
  display: grid; grid-template-columns: 170px minmax(0,1fr) auto; gap: 12px 16px; align-items: end;
  padding: 16px 18px; margin-bottom: 10px; background: var(--bg-soft); border: 1px solid var(--line);
}
.idf-row.fund { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,.8fr) auto; }
.idf-drop-row {
  background: none; border: 0; cursor: pointer; padding: 10px 4px; color: var(--muted);
  font-family: inherit; font-size: var(--fs--1);
}
.idf-drop-row:hover { color: #c0392b; }

/* ---- contributor cards ---- */
.idf-person { padding: 24px 24px 22px; margin-bottom: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.idf-person-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.idf-person-n {
  font-size: var(--fs-micro); letter-spacing: var(--tr-caps); text-transform: uppercase;
  color: var(--muted); font-weight: var(--fw-semi); white-space: nowrap;
}
.idf-person-name { font-family: var(--font-display); font-size: var(--fs-2); color: var(--navy); font-weight: var(--fw-med); }
.idf-person-head .idf-drop-row { margin-left: auto; }
.idf-person .idf-grid { gap: 16px 20px; }
.idf-person .idf-q { margin: 0; }
.idf-sub { grid-column: span 2; padding: 16px 18px; background: #fff; border-left: 3px solid var(--blue); }
.idf-sub[hidden] { display: none; }
.idf-sub-head { margin: 0 0 12px; font-size: var(--fs--1); color: var(--ink); line-height: 1.65; }
.idf-sub .idf-grid { gap: 14px 18px; }
.idf-qs { grid-column: span 2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px 18px; }
.idf-qs .idf-q-label { font-weight: var(--fw-book); color: var(--ink); }

.idf-tools { margin: 0 0 26px; }
.idf-add {
  padding: 10px 18px; cursor: pointer; background: none;
  border: 1px dashed var(--line); color: var(--navy);
  font-family: inherit; font-size: var(--fs--1); font-weight: var(--fw-med);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.idf-add:hover { border-color: var(--blue); color: var(--blue); }

/* ---- split summary ---- */
.idf-split { margin: 0 0 28px; padding: 20px 22px; border: 1px solid var(--line); background: #fff; }
.idf-split-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin: 0 0 10px; }
.idf-split-head h3 { margin: 0; font-family: var(--font-display); font-size: var(--fs-1); font-weight: var(--fw-med); color: var(--navy); }
.idf-split-head .idf-check { margin-left: auto; }
.idf-split-list { list-style: none; margin: 0; padding: 0; }
.idf-split-list li {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: var(--fs--1); color: var(--ink);
}
.idf-split-list li span { flex: 1; min-width: 0; }
.idf-split-list input {
  width: 92px; padding: 6px 8px; text-align: right; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: var(--fs--1);
}
.idf-split-list input[readonly] { background: var(--bg-soft); color: var(--muted); }
.idf-split-list .pct { color: var(--muted); }
.idf-split-total { margin: 10px 0 8px; font-size: var(--fs--1); color: var(--navy); font-weight: var(--fw-med); }
.idf-split-total.bad { color: #c0392b; }
.idf-split .fld { margin: 6px 0 10px; }
.idf-after-people { margin: 0 0 20px; }
.idf-agreed-note { margin: 0 0 8px; }

.idf-check { display: inline-flex; align-items: flex-start; gap: 9px; font-size: var(--fs--1); color: var(--ink); cursor: pointer; line-height: 1.55; }
.idf-check input { margin: 3px 0 0; flex: none; }

/* ---- files ---- */
.idf-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px;
  border: 1px dashed #b8c4d6; background: var(--bg-tint); cursor: pointer; text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.idf-drop:hover, .idf-drop.over { border-color: var(--blue); background: rgba(127,178,229,.10); }
.idf-drop:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.idf-drop-main { font-size: var(--fs-0); color: var(--navy); }
.idf-drop-main u { color: var(--blue); }
.idf-drop-note { font-size: var(--fs--2); color: var(--muted); }
.idf-files { list-style: none; margin: 12px 0 0; padding: 0; }
.idf-files li {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: var(--fs--1);
}
.idf-files .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.idf-files .sz { color: var(--muted); font-size: var(--fs--2); white-space: nowrap; }
.idf-files .st { font-size: var(--fs--2); color: var(--muted); white-space: nowrap; }
.idf-files li.done .st { color: #2e7d32; }
.idf-files li.failed .st, .idf-files li.toobig .st { color: #c0392b; }
.idf-files-note { margin: 10px 0 0; font-size: var(--fs--2); color: var(--muted); }

/* ---- submit ---- */
.idf-confirm { margin: 34px 0 0; }
.idf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 22px 0 0; }
.idf-submit {
  padding: 14px 26px; border: 0; cursor: pointer; background: var(--blue); color: #fff;
  font-family: var(--font-body); font-size: var(--fs--2); font-weight: var(--fw-semi);
  letter-spacing: var(--tr-caps); text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.idf-submit:hover:not(:disabled) { background: var(--blue-light); color: var(--navy); }
.idf-submit:disabled { opacity: .5; cursor: not-allowed; }
.idf-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-family: inherit; font-size: var(--fs--1); }
.idf-link:hover { color: #c0392b; text-decoration: underline; }
.idf-saved { margin-left: auto; font-size: var(--fs--2); color: var(--muted); }
.idf-status { margin: 18px 0 0; padding: 14px 18px; font-size: var(--fs--1); line-height: 1.65; background: var(--bg-soft-2); border-left: 3px solid var(--blue); }
.idf-status.bad { background: rgba(192,57,43,.07); border-left-color: #c0392b; }
.idf-status ul { margin: 6px 0 0; padding-left: 20px; }

.idf-done { max-width: 720px; padding: 30px 32px; border: 1px solid rgba(46,125,80,.35); background: rgba(46,125,80,.05); }
.idf-done[hidden] { display: none; }
.idf-done h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: var(--fs-4); font-weight: var(--fw-med); color: var(--navy); }
.idf-done p { font-size: var(--fs-0); line-height: 1.7; }
.idf-next { font-weight: var(--fw-med); }

@media (max-width: 1080px) {
  .idf-layout { grid-template-columns: minmax(0,1fr); }
  .idf-aside { display: none; }
}
@media (max-width: 760px) {
  .idf-guide, .idf-grid, .idf-qs { grid-template-columns: minmax(0,1fr); }
  .fld-wide, .idf-sub, .idf-qs { grid-column: span 1; }
  .idf-row, .idf-row.fund { grid-template-columns: minmax(0,1fr); }
  .idf-drop-row { justify-self: start; padding: 0; }
  .idf-split-head .idf-check { margin-left: 0; }
  .idf-saved { margin-left: 0; width: 100%; }
  .idf-person { padding: 18px 16px; }
  .idf-person-head { flex-wrap: wrap; gap: 4px 14px; }
  .idf-person-name { order: 3; flex-basis: 100%; }
}
