/* PQC Innovation Lab portal. Patterns and colors follow the client website; replace sampled values with brand guide values when available. */
:root {
  --indigo: #1A0F5C;
  --red: #E31E24;
  --red-dark: #C0161C;
  --blue: #2E6FD8;
  --black: #111111;
  --text: #1E1E1E;
  --muted: #4A4A4A;
  --rule: #E3E3E3;
  --head: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--text); background: #fff; font-size: 15px; line-height: 1.95; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--red); }
img { max-width: 100%; }
.wrap { max-width: none; margin: 0; padding: 0 clamp(20px, 3vw, 64px); }

/* Top trim */
.utility { background: var(--indigo); height: 42px; }
.utility .wrap { height: 100%; display: flex; align-items: center; justify-content: center; }
.utility .banner { margin: 0; color: #fff; font-family: var(--head); font-weight: 700; font-size: clamp(14px, min(2.1vh, 4vw), 19px); line-height: 1.2; letter-spacing: 0.3px; text-align: center; }

/* Header */
header.site { background: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(6px, 1.6vh, 22px); padding-bottom: clamp(6px, 1.6vh, 22px); flex-wrap: wrap; }
header.site img { height: clamp(50px, 8vh, 90px); width: auto; display: block; }
nav.main { display: flex; gap: 36px; flex-wrap: wrap; }
nav.main a { color: var(--black); text-decoration: none; font-size: 14.5px; font-weight: 500; }
nav.main a:hover, nav.main a.active { color: var(--red); }

/* Sections */
section.block { padding: 70px 0 30px; }
section.block:last-of-type { padding-bottom: 80px; }
h2 { font-family: var(--head); color: var(--black); font-weight: 700; margin: 0 0 18px; }
h2.caps { text-transform: uppercase; text-align: center; font-size: 34px; letter-spacing: 0.3px; margin-bottom: 52px; }
h2.side { font-size: 34px; }
h3 { font-family: var(--head); color: var(--black); font-size: 21px; line-height: 1.35; margin: 0 0 10px; }
p { margin: 0 0 16px; }

/* Outlined card grid */
.cards { display: grid; gap: clamp(14px, 1.5vw, 20px); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border: 1px solid var(--red); border-radius: 22px; padding: 26px clamp(14px, 1.6vw, 22px); background: #fff; transition: border-color 0.15s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--blue); }
.card .meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.card p { color: var(--muted); line-height: 1.75; }
.card .actions { display: flex; align-items: center; gap: 6px clamp(8px, 1.2vw, 24px); flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.card .actions a { white-space: nowrap; }
.btn-solid { display: inline-block; border-radius: 8px; background: var(--red); color: #fff; text-decoration: none; padding: 7px 22px; font-family: var(--head); font-weight: 700; font-size: 14px; line-height: 1.6; }
.btn-solid:hover { background: var(--red-dark); }
.text-link { color: var(--black); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--red); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--head); color: #fff; background: var(--indigo); font-weight: 700; }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 0.93em; }
.note { color: var(--muted); font-size: 14px; }

/* Walkthrough */
ol.walk { margin: 0; padding-left: 24px; max-width: 900px; }
ol.walk li { padding: 0 0 22px 8px; }
ol.walk li::marker { font-family: var(--head); font-weight: 700; color: var(--red); }
ol.walk h3 { margin-bottom: 4px; }
ol.walk p { margin: 0 0 4px; color: var(--muted); line-height: 1.75; }

/* Footer */
footer.site { background: var(--indigo); color: #DAD7F2; font-size: 14px; }
footer.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 4px 18px; flex-wrap: wrap; min-height: 42px; padding-top: 0; padding-bottom: 0; line-height: 1.4; }


/* Page title (inner pages) */
.pagetitle { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.pagetitle .wrap { padding-top: 34px; padding-bottom: 30px; }
.pagetitle h1 { font-family: var(--head); font-size: 34px; color: var(--black); margin: 0 0 4px; line-height: 1.3; }
.pagetitle p { margin: 0; color: var(--muted); }
.cards.three .card .actions .btn-solid, .cards.two .card .actions .btn-solid { padding: 10px clamp(10px, 1.2vw, 26px); font-size: clamp(12px, 0.95vw, 15px); }
.card .actions .text-link { font-size: clamp(12px, 0.9vw, 14px); }

/* Home: fit the window without scrolling */
body[data-page="home"] main { display: flex; flex-direction: column; justify-content: space-evenly; padding: clamp(2px, 0.6vh, 20px) 0; }
body[data-page="home"] section.block, body[data-page="home"] section.block:last-of-type { padding: clamp(2px, 0.6vh, 14px) 0; }
body[data-page="home"] h2.caps { font-size: clamp(18px, 2.9vh, 30px); margin-bottom: clamp(4px, 1.3vh, 18px); }
body[data-page="home"] .card { padding-top: clamp(6px, 1.5vh, 20px); padding-bottom: clamp(6px, 1.5vh, 20px); }
body[data-page="home"] .card h3 { font-size: clamp(16px, 2.3vh, 21px); margin-bottom: 2px; }
body[data-page="home"] .card .meta { margin-bottom: clamp(0px, 0.4vh, 8px); }
body[data-page="home"] .card p { line-height: 1.5; margin-bottom: clamp(4px, 0.9vh, 12px); }
body[data-page="home"] h2.caps { line-height: 1.2; }
body[data-page="home"] .card h3 { line-height: 1.3; }
body[data-page="home"] .card .meta { line-height: 1.5; }
body[data-page="home"] .card .actions { padding-top: 2px; }
body[data-page="home"] .card .actions .btn-solid { padding-top: clamp(3px, 0.9vh, 9px); padding-bottom: clamp(3px, 0.9vh, 9px); line-height: 1.5; }

@media (max-width: 900px) {
  .cards.three, .cards.two { grid-template-columns: minmax(0, 1fr); }
}

/* Sign-in page */
body[data-page="login"] main { display: flex; flex-direction: column; justify-content: center; }
.card.signin { max-width: 380px; margin: 0 auto; padding: 28px 28px 30px; }
.card.signin:hover { border-color: var(--red); }
.card.signin h2 { font-size: 26px; margin: 0; }
.card.signin .note { margin: 2px 0 14px; }
.card.signin label { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; margin: 12px 0 4px; color: var(--black); }
.card.signin input { width: 100%; font: inherit; font-size: 15px; line-height: 1.3; padding: 9px 11px; border: 1px solid #C9C9D3; border-radius: 6px; }
.card.signin input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.card.signin .btn-solid { width: 100%; border: 0; cursor: pointer; margin-top: 4px; padding: 10px 22px; font-size: 15px; }
.card.signin .signin-msg { min-height: 22px; margin: 10px 0 6px; font-size: 14px; line-height: 1.4; color: var(--red-dark); }
