/* SearchForPart: small, dependency-free stylesheet. */
:root {
  --ink: #1b2228;
  --muted: #4a5560;
  --line: #c9d0d6;
  --bg: #f4f5f6;
  --panel: #ffffff;
  --accent: #c2410c;      /* safety orange, AA on white for large text */
  --accent-dark: #9a3412; /* AA for normal text / buttons */
  --steel: #2f3e4b;
  --error: #b42318;
  --focus: #1d4ed8;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 10; }
a { color: var(--accent-dark); }
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

.site-header { background: var(--steel); color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { color: #fff; font-weight: 800; font-size: 1.35rem; text-decoration: none;
  letter-spacing: .01em; }
.brand span { color: #fdba74; }
.site-header nav a { color: #fff; margin-left: 1rem; text-decoration: none; font-weight: 600; }
.site-header nav a:hover { text-decoration: underline; }

main { padding-top: 1.5rem; padding-bottom: 2rem; }
.hero { padding: 1.5rem 0 1rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; line-height: 1.15; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46rem; }
.h2 { font-size: 1.6rem; } .h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.25rem; margin: 1rem 0; }
.how { margin: 1.5rem 0; }
.steps { padding-left: 1.25rem; } .steps li { margin: .4rem 0; }
.small { font-size: .9rem; color: var(--muted); }

.btn { display: inline-block; border: 2px solid transparent; border-radius: 4px;
  padding: .7rem 1.2rem; font-size: 1rem; font-weight: 700; text-decoration: none;
  cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: #7c2d12; }
.btn-secondary { background: #fff; color: var(--steel); border-color: var(--steel); }
.btn-secondary:hover { background: #e8ecef; }

form { margin: 0; }
.search-form { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; align-items: end; }
.search-form .field-wide { grid-column: 1 / -1; }
.search-form button { grid-column: 1 / -1; justify-self: start; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 1rem 0; padding: .75rem 1rem 1rem; }
legend { font-weight: 700; padding: 0 .25rem; }
.source-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.source-form legend { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; }
label { font-weight: 600; margin-bottom: .25rem; }
.opt, .req { font-weight: 400; color: var(--muted); font-size: .9rem; }
input, select, textarea { font: inherit; padding: .55rem .6rem; border: 1px solid #8a959f;
  border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.error { color: var(--error); font-weight: 600; margin: .25rem 0 0; }
.notice { background: #fff7ed; border-left: 4px solid var(--accent); padding: .6rem .8rem; }
.consent { font-size: .95rem; color: var(--muted); max-width: 46rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inline-form { margin-top: 1rem; }

.results { list-style: none; padding: 0; }
.result { border-top: 1px solid var(--line); padding: 1rem 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .5rem 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.tag { font-size: .75rem; background: #e8ecef; padding: .05rem .4rem; border-radius: 3px; font-weight: 600; }
.reference { font-size: 1.25rem; }
.prose h2 { font-size: 1.15rem; margin-top: 1.25rem; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-top: 1rem; padding-bottom: 1rem; color: var(--muted); }
.footer-row nav a { margin-left: 1rem; }

@media (max-width: 40rem) {
  .search-form, .source-form fieldset { grid-template-columns: 1fr; }
  .site-header nav a { margin: 0 1rem 0 0; }
  .footer-row nav a { margin: 0 1rem 0 0; }
}
