/* Styles added for Q207 on top of P005's style.css (kept byte-equal). Same file in P013, P014, P015. */

/* style.css sets label to display:flex, which would beat the hidden attribute. */
[hidden] {
  display: none !important;
}

h3 {
  margin: 18px 0 6px;
  font-size: 17px;
}

.checks li.note {
  border-color: var(--accent);
}

/* Affiliate links, kept apart from the results (Q204 pattern). */
#tool-links {
  margin: 0 0 14px;
  padding-left: 20px;
}

#tool-links li {
  margin: 2px 0;
}

.method li {
  margin: 6px 0;
}

.safety {
  padding: 8px 12px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
  font-size: 15px;
}

nav.more ul {
  padding-left: 20px;
}

nav.more li {
  margin: 4px 0;
}

/* Sections list (concrete) and chart (roof pitch). */
.span-all {
  grid-column: 1 / -1;
  margin: 0;
}

.rows {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 12px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.row button {
  padding: 8px 10px;
}

td.num,
th.num {
  text-align: right;
}

tr.picked td {
  background: #fbefe3;
  font-weight: 700;
}

/* Print: the results (and the chart where there is one), never the links. */
@media print {
  @page {
    size: letter portrait;
    margin: 0.5in;
  }

  main {
    max-width: none;
    padding: 0;
  }

  #tools,
  nav.more,
  .row button,
  #add-row {
    display: none;
  }

  .safety {
    background: none;
  }

  tr.picked td {
    background: none;
  }
}
