/* The pages about the materials (/materialen and /materialen/{slug}, Services/MaterialPages.cs), on top of info.css. */

/* The group in the kicker leads back to that group on the overview. */
main.info .info-kicker a { color: inherit; text-decoration: none; }
main.info .info-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ the overview */
.mat-overview { min-width: 0; }
.mat-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.mat-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.mat-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; overflow-wrap: anywhere; }
.mat-card h3 a { color: var(--ink); text-decoration: none; }
.mat-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent-dark); text-underline-offset: 3px; }
main.info .mat-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.mat-card .thick { margin-top: auto; }
.thick .thick-unit { min-width: 0; padding-left: 2px; border: 0; background: none; color: var(--steel); }
main.info .mat-closed { color: var(--steel); }

/* ------------------------------------------------------------------ one material */
/* The text on the left, the thicknesses with their stock beside it. The aside comes first in the page, so on a phone
   the thicknesses and "Bereken je prijs" stand right under the introduction. */
.mat-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 48px; align-items: start; }
.mat-text { grid-column: 1; grid-row: 1; min-width: 0; }
.mat-aside { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 24px); padding: 22px 24px; background: var(--card);
  border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); }
.mat-aside h2 { margin: 0 0 14px; font-size: 1.2rem; }
.mat-stock { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 0; }
.mat-stock li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.mat-stock li:first-child { border-top: 0; }
.mat-stock-mm { flex: none; font: 600 14px/1.45 var(--mono); color: var(--ink); }
.mat-stock-state { text-align: right; }
.mat-stock-state.is-in { color: var(--ok); font-weight: 600; }
.mat-stock-state.is-out { color: var(--warn); }
main.info .mat-sheet { margin: 0 0 18px; color: var(--ink-2); }
.mat-sheet strong { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.mat-cta { width: 100%; }
main.info .mat-aside-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--steel); }

main.info .mat-note-owner { white-space: pre-line; overflow-wrap: anywhere; }
.mat-text .rule:first-child { padding-top: 0; border-top: 0; }
.mat-text .text-note + .rule { padding-top: 0; border-top: 0; }
.rule ul.points li, .mat-specs td { overflow-wrap: anywhere; }
.mat-uses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mat-uses li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 14px; color: var(--ink-2); }
/* A label is one word that must not break in the middle ("Productcertificaat" on a phone): the column takes its width. */
.mat-specs tbody th[scope="row"] { width: 38%; color: var(--steel); overflow-wrap: normal; }
main.info .mat-back { margin-top: 28px; }

@media (max-width: 1020px) {
  .mat-page { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mat-text, .mat-aside { grid-column: 1; grid-row: auto; }
  .mat-aside { position: static; }
}
@media (max-width: 760px) {
  .mat-aside { padding: 18px 18px 20px; }
}
