/* Loaded by /analizler and the five category pages. See static/pages/report.css for why page
 * sheets exist. */

/* ---- hub ---- */

.hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-4);
}

.hubcard {
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.hubcard:hover { border-color: var(--border-strong); background: var(--surface-solid); }

.hubcard h2 { font-size: var(--text-lg); margin: 0; }

.hubcard__no {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  color: var(--accent);
}

.hubcard__summary { color: var(--fg-muted); font-size: var(--text-sm); margin: 0; }

.hubcard__example {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--fg-faint);
  font-size: var(--text-sm);
}

.hubcard__example .badge { justify-self: start; }

.hubcard__go { position: absolute; top: var(--space-5); right: var(--space-5); color: var(--fg-faint); }

/* ---- category page ---- */

.cat-figure { margin-top: clamp(var(--space-7), 4vw, var(--space-9)); }

/* The list of measured quantities. Name on the left, plain Turkish on the right: a reader who does
 * not know what "roughness" means should not have to look it up to finish the page. */
.measures { list-style: none; margin: var(--space-6) 0 0; padding: 0; }

.measures li {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 720px) {
  .measures li { grid-template-columns: 1fr; }
}

.measures__name { font-weight: 500; }
.measures__note { color: var(--fg-muted); font-size: var(--text-sm); }

.example {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg-muted);
  max-width: 68ch;
}

.siblings { list-style: none; margin: var(--space-5) 0 0; padding: 0; }

.siblings li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.siblings__note { color: var(--fg-faint); font-size: var(--text-sm); }

/* Can / cannot, inside a .note column. The card grid used elsewhere for limits is two columns
 * wide and would be crushed here. The two lists carry the same weight on purpose: a guide that
 * lists what the product does and buries what it does not is an advert. */
.ruleset { list-style: none; margin: var(--space-4) 0 0; padding: 0; }

.ruleset li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.ruleset li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.6rem;
  height: 1px;
  background: var(--fg-faint);
}

.ruleset--can li::before {
  top: 0.85em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* The photograph at the top of a guide or a use-case page. A 2:1 band rather than a block, so it
 * sets the subject without becoming the page. Held back in saturation for the same reason the
 * site-visit photograph is: the measured imagery elsewhere should stay the brighter object. */
.guide__photo {
  margin: 0 0 clamp(var(--space-6), 3vw, var(--space-7));
  display: grid;
  gap: var(--space-3);
}

.guide__photo picture { display: block; }

.guide__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  filter: saturate(0.85) brightness(0.93);
}

/* A module, with the quantities it produces nested under it. These were two flat lists — the
 * modules that run and the things measured — which overlapped and, on the water page, repeated an
 * entry word for word. They are not two lists: a module is what runs, a measure is what it
 * returns, and saying so makes the page shorter rather than longer. */
.module {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-strong);
}

.module h3 {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-lg);
}

.module__no { font-family: var(--font-data); font-size: 0.72rem; color: var(--accent); }

.module__note {
  margin-top: var(--space-2);
  color: var(--fg-muted);
  font-size: var(--text-sm);
  max-width: 62ch;
}

.module .measures { margin-top: var(--space-4); }

/* A hub card that carries a figure. Five text boxes in a row made the set look thinner than it is;
 * the diagram is the category's own, and the photograph is the segment page's own, so neither is
 * a stock image standing in for content. */
.hub--figured .hubcard { gap: var(--space-4); }

.hubcard__figure,
.hubcard__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.hubcard__figure { background: var(--bg-raised); padding: var(--space-2); }

.hubcard__photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85) brightness(0.9);
}

.hubcard__figure .diagram { width: 100%; height: auto; display: block; }

/* Four segments break to 3 + 1 on a wide screen and the orphan reads as a mistake. A fixed four
 * columns keeps the row whole. */
@media (min-width: 1100px) {
  .hub--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
