/* Wildwood heir search.
   Tokens taken from docs/design-system.md so the form reads as part of
   wildwoodcemeterypa.com rather than a bolted-on third-party page. */
:root {
  --primary:    #1c3829;   /* deep green */
  --secondary:  #b8863f;   /* warm bronze */
  --bg:         #f6f1e7;   /* warm off-white */
  --fg:         #1c1c1c;
  --muted:      #5f655f;
  --line:       #d9d0bf;
  --card:       #fffdf8;
  --error:      #8c2f21;
  --ok:         #1c3829;
  --radius:     6px;
  --measure:    46rem;
}
* { box-sizing: border-box; }
a { color: var(--primary); }
a:hover { color: var(--secondary); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
.wrap { max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1rem 4rem; }

.masthead {
  background: var(--primary); color: var(--bg);
  padding: 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  align-items: baseline; justify-content: center; text-align: center;
}
.wordmark { color: var(--bg); text-decoration: none; font-size: 1.25rem; letter-spacing: .04em; }
.est { color: #cfc6b4; font-size: .8rem; }

h1 { font-size: 1.7rem; line-height: 1.25; margin: 1.5rem 0 .5rem; color: var(--primary); }
h2 { font-size: 1.2rem; color: var(--primary); margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; color: var(--primary); }
h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
     color: var(--muted); margin: 1rem 0 .35rem; }
.lede { font-size: 1.05rem; }
.note, .hint, .smallprint, .dim { color: var(--muted); }
.hint, .smallprint { font-size: .85rem; }
.smallprint { margin-top: 1.25rem; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem 0;
}
.card.narrow { max-width: 22rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
legend { font-weight: bold; color: var(--primary); padding: 0; margin-bottom: .5rem; }
label { display: block; font-size: .9rem; margin: .75rem 0 .25rem; }
.req { color: var(--muted); font-weight: normal; font-size: .8rem; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input:not([type]), textarea, select {
  width: 100%; padding: .6rem .7rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--fg);
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible,
button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--secondary); outline-offset: 2px;
}

.row { display: flex; gap: .75rem; flex-wrap: wrap; }
.row > * { flex: 1 1 12rem; min-width: 0; }
.row > .grow { flex: 2 1 18rem; }

details.more { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
details.more summary { cursor: pointer; color: var(--primary); font-weight: bold; }

.consent .check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.consent input { margin-top: .3rem; flex: 0 0 auto; width: auto; }

.btn {
  background: var(--primary); color: var(--bg); border: 0;
  padding: .8rem 1.5rem; font: inherit; font-size: 1rem;
  border-radius: var(--radius); cursor: pointer;
}
.btn:hover { background: #24492f; }
.linkbtn { background: none; border: 0; color: var(--primary);
           text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }

/* Off-screen rather than display:none, so a bot parsing the DOM still
   finds it while nobody using the page ever does. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.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; }

.flashes { margin: 1rem 0; }
.flash { padding: .7rem .9rem; border-radius: var(--radius); border-left: 4px solid; margin: .4rem 0; }
.flash.error { background: #fbecea; border-color: var(--error); color: var(--error); }
.flash.ok { background: #eaf1ec; border-color: var(--ok); color: var(--ok); }
.banner { background: #fdf3e0; border-left: 4px solid var(--secondary);
          padding: .75rem .9rem; border-radius: var(--radius); font-size: .9rem; }

.foot { border-top: 1px solid var(--line); padding: 1.5rem 1rem; text-align: center;
        font-size: .82rem; color: var(--muted); }
.foot a { color: var(--primary); }

/* ---- staff review ---- */
.queue-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.crumb { font-size: .85rem; margin: 1rem 0 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.tabs a { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px;
          text-decoration: none; color: var(--primary); font-size: .82rem; background: var(--card); }
.tabs a.on { background: var(--primary); color: var(--bg); border-color: var(--primary); }

.grid { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--card); }
.grid th, .grid td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.grid th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.grid .num, th.num { text-align: right; }
.mini { width: 100%; border-collapse: collapse; font-size: .85rem; }
.mini td { padding: .3rem .5rem .3rem 0; border-bottom: 1px solid #efe9dc; vertical-align: top; }

.score { display: inline-block; min-width: 2.2rem; text-align: center;
         padding: .1rem .4rem; border-radius: var(--radius); font-weight: bold; font-size: .85rem; }
.score.hi  { background: #d8e7db; color: #14301d; }
.score.mid { background: #fbeed6; color: #6b4a12; }
.score.lo  { background: #ece8e0; color: var(--muted); }

.pill { font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; background: #ece8e0; }
.pill.new { background: #d8e7db; color: #14301d; }
.pill.contacted { background: #dde6f0; color: #1d3a57; }
.tag { font-size: .7rem; background: #ece8e0; padding: .1rem .35rem; border-radius: 3px; }
.tag.warn, .warn { color: #8a5a12; }

.lot { border: 1px solid var(--line); border-radius: var(--radius);
       padding: .9rem; margin: .9rem 0; background: #fff; }
.lot header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lot header h3 { margin: 0; }
.why { margin: .5rem 0; padding-left: 1.1rem; font-size: .85rem; color: var(--muted); }
.pairs { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; font-size: .9rem; margin: 0; }
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; }
.names { padding-left: 1.1rem; }
.quote { border-left: 3px solid var(--line); padding-left: .8rem; font-style: italic; }
.empty { color: var(--muted); font-style: italic; }

@media (max-width: 34rem) {
  /* Stacking the row turns the main axis vertical, which makes the
     flex-basis above a *height* -- every field was being forced to 12rem
     tall, leaving a screen of dead space between inputs. Reset the basis
     so they size to their content. */
  .row { flex-direction: column; gap: .25rem; }
  .row > *, .row > .grow { flex: 0 0 auto; }
  .grid th:nth-child(6), .grid td:nth-child(6) { display: none; }
}
