/* Transfer Certificates page. The hero banner comes from about.css (same as the other inner pages).
   Every class here starts with tcs- so no other page is touched. */

.tcs { padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.tcs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem); }
.tcs__heading { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--maroon); }
.tcs__sub { margin: 0.6rem 0 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--text); }
.tcs__date { margin: 0; padding: 0.35rem 0.85rem; border: 1.5px solid var(--maroon); border-radius: 0.6rem; font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--maroon); }

/* the search box, the class filter and the count */
.tcs__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.tcs__field { position: relative; display: flex; flex: 1 1 18rem; max-width: 30rem; }
.tcs__icon { position: absolute; left: 1.1rem; top: 50%; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); color: var(--amber); pointer-events: none; }
.tcs__input { flex: 1; min-width: 0; padding: 0.9rem 1.25rem 0.9rem 3.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); box-shadow: 0 0.75rem 2rem -1.5rem rgba(12, 74, 143, 0.4); transition: border-color 0.2s, box-shadow 0.2s; }
.tcs__input:focus, .tcs__select:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(254, 182, 40, 0.3); }
.tcs__select { flex: 0 1 12rem; -webkit-appearance: none; appearance: none; padding: 0.9rem 2.75rem 0.9rem 1.4rem; border: 1.5px solid var(--line); border-radius: 999px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230C4A8F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.25rem center; background-size: 0.75rem; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; }
.tcs__count { margin: 0 0 0 auto; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--muted); }

/* one card for each certificate */
.tcs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.tcs-card[hidden] { display: none; }
.tcs-card a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 0.9rem; height: 100%; padding: 1rem 1.15rem; border: 1px solid var(--line); border-left: 4px solid var(--flame); border-radius: var(--r-lg); background: #fff; color: var(--ink); text-decoration: none; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.tcs-card a:hover, .tcs-card a:focus-visible { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 1rem 2rem -1.5rem rgba(12, 74, 143, 0.6); }
.tcs-card a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.tcs-card__pdf { grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 3.25rem; border-radius: 0.5rem; background: #1388D8; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; color: #fff; }
.tcs-card__name { font-family: var(--display); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); font-weight: 340; line-height: 1.2; color: var(--maroon); overflow-wrap: anywhere; }
.tcs-card__class { grid-row: span 2; align-self: start; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--flame); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--band); }
.tcs-card__open { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.tcs__none { margin: 1.5rem 0 0; font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--maroon); }
.tcs__none[hidden], .tcs__more[hidden] { display: none; }
.tcs__more { display: flex; justify-content: center; margin-top: clamp(1.75rem, 1.5rem + 1.5vw, 3rem); }

@media (max-width: 1000px) { .tcs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tcs__grid { grid-template-columns: minmax(0, 1fr); }
  .tcs__count { margin-left: 0; }
}
