/* /sistem/material: list of free PDFs. Builds on /css/home.css (tokens, header, fonts). */
.mat { flex: 1; width: min(1120px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--gut) clamp(48px, 7vw, 88px); }
.mat-back { display: inline-block; margin-bottom: 28px; color: var(--ink-2); text-decoration: none; }
.mat-back:hover { color: var(--ink); }
.mat h1 { font-size: clamp(44px, 7vw, 104px); margin-bottom: .3em; animation: rise 1s var(--ease) both; }
.mat-lead { max-width: 680px; font: 400 clamp(19px, 1.4vw + 12px, 24px)/1.45 var(--sans); color: var(--ink-2); animation: rise 1s .1s var(--ease) both; }

/* six bars as a divider (framework page) */
.mat-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin: 36px 0 0; padding-bottom: 0; border-bottom: 1.5px solid var(--ink); }
.mat-bars i { width: 12px; border-radius: 12px 12px 0 0; transform-origin: bottom; animation: drop .9s var(--ease) backwards; }
.mat-bars i:nth-child(1) { background: #3B4BDB; height: 62%; }
.mat-bars i:nth-child(2) { background: #F25C3B; height: 78%; animation-delay: .07s; }
.mat-bars i:nth-child(3) { background: #F4B223; height: 54%; animation-delay: .14s; }
.mat-bars i:nth-child(4) { background: #0FA38F; height: 88%; animation-delay: .21s; }
.mat-bars i:nth-child(5) { background: #DB3F8E; height: 70%; animation-delay: .28s; }
.mat-bars i:nth-child(6) { background: #6FB038; height: 96%; animation-delay: .35s; }

.mat-list { list-style: none; margin: 0; padding: 0; }
.mat-item {
  display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: clamp(18px, 4vw, 48px); align-items: start;
  padding: clamp(24px, 4vw, 40px) 0; border-bottom: 1px solid var(--line);
  animation: rise .9s calc(.2s + var(--i) * 70ms) var(--ease) backwards;
}
.mat-cover { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease); }
.mat-cover:hover { transform: translateY(-3px); }
.mat-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #EBE4D7; }
.mat-body h2 { margin: 0 0 10px; font: 400 clamp(28px, 3.4vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.mat-body p { color: var(--ink-2); max-width: 600px; }
.mat-only { color: var(--ink) !important; display: inline-block; padding: 8px 12px; border-radius: 99px; background: #EBE4D7; line-height: 1.2 !important; }
.mat-meta { margin: 4px 0 18px; }
.mat-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mat-btn {
  padding: 13px 20px; border: 1.5px solid var(--ink); border-radius: 99px; text-decoration: none;
  font: 500 15px/1 var(--sans); transition: background .3s, color .3s, transform .3s var(--ease);
}
.mat-btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.mat-btn.main { background: var(--ink); color: var(--paper); }
.mat-btn.main:hover { background: none; color: var(--ink); }

@media (max-width: 560px) {
  .mat-item { grid-template-columns: 104px 1fr; gap: 16px; }
  .mat-btn { flex: 1; text-align: center; }
}

/* link to /oyunlar under the list */
.mat-games {
  display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(16px, 3vw, 24px); border: 1.5px solid var(--ink); border-radius: 22px; text-decoration: none;
  transition: transform .4s var(--ease);
}
.mg-chips { display: flex; flex-shrink: 0; }
.mg-chips i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); font: 400 22px/1 var(--serif); font-style: normal; }
.mg-chips i + i { margin-left: -10px; }
.mg-chips i:nth-child(1) { background: #3B4BDB; color: #fff; }
.mg-chips i:nth-child(2) { background: #0FA38F; }
.mg-chips i:nth-child(3) { background: #DB3F8E; }
.mg-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mg-text b { font: 400 clamp(22px, 2.4vw, 30px)/1.1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.mg-text span { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.mg-arrow { font-size: 24px; transition: transform .4s var(--ease); }
@media (hover: hover) {
  .mat-games:hover { transform: translateY(-3px); }
  .mat-games:hover .mg-arrow { transform: translateX(4px); }
}
@media (max-width: 560px) { .mg-chips i { width: 36px; height: 36px; font-size: 18px; } .mg-arrow { display: none; } }
