/* WHIN Ventures Portal. Colors from the WHIN Brand Guidelines (Workhorse palette first; fuchsia only for D grades). */
:root {
  --teal: #509994;      /* Dark Teal, primary */
  --bright: #00BFB0;    /* Bright Teal */
  --mint: #79D9D2;      /* Light Mint */
  --navy: #005E8C;      /* Navy, headings */
  --gray: #949494;      /* Cool Gray 8U */
  --light: #D4D4D4;     /* Light Gray */
  --fuchsia: #FF57BA;
  --ink: #26323a;
  --soft: #f4f8f8;
  --line: #e3e9ea;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: #fff; line-height: 1.55;
  font-family: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: var(--teal); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1 { font-size: 1.9rem; margin: 0 0 .3rem; font-weight: 600; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; font-weight: 600; }

/* Header */
header.site { display: flex; align-items: center; gap: 24px; padding: 12px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 46px; width: auto; display: block; }
.brand-name { color: var(--teal); font-size: 1.05rem; letter-spacing: .02em; border-left: 1px solid var(--light); padding-left: 12px; }
.top-nav { display: flex; gap: 18px; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top-nav a:hover { color: var(--teal); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--gray); }
.who-name { color: var(--ink); font-weight: 500; }
.who form { display: inline; margin: 0; }
button.link { background: none; border: 0; color: var(--teal); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.brand-bar { height: 4px; background: linear-gradient(90deg, var(--teal), var(--bright)); }
main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; }
.site-foot { text-align: center; color: var(--gray); font-size: .8rem; padding: 24px; border-top: 1px solid var(--line); }

/* Intro, tabs, pills */
.intro p { color: #55636b; max-width: 680px; margin: 0 0 1.2rem; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tab { padding: 8px 14px; text-decoration: none; color: var(--gray); font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.on { color: var(--navy); border-bottom-color: var(--bright); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pill { padding: 5px 12px; border: 1px solid var(--light); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .88rem; }
.pill.on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--mint); transform: translateY(-1px); }
.card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.card-main { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.product { margin: 0; color: #55636b; font-size: .92rem; }
.product.big { font-size: 1.05rem; margin-bottom: 10px; }
.focus { margin: 4px 0 0; color: var(--gray); font-size: .82rem; }
.rid { margin: auto 0 0; color: var(--gray); font-size: .78rem; letter-spacing: .03em; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: #4d5b62; font-size: .76rem; }
.chip.kind { background: #e6f5f4; color: var(--teal); font-weight: 600; }
.chip.kind-brief { background: #e0f4f2; color: #2f7a75; }
.chip.kind-audit { background: #e3eef5; color: var(--navy); }
.chip.kind-pilot { background: #def7f5; color: #008f84; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }

/* Company logos: the logo fitted into a fixed height, or the company's initials on a tile */
.co-logo { display: flex; align-items: center; height: 40px; margin-bottom: 10px; }
.co-logo img { display: block; height: 100%; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.co-logo.mono { width: 40px; justify-content: center; border-radius: 8px; background: #e6f5f4; color: var(--navy); font-weight: 700; font-size: .95rem; letter-spacing: .03em; }
.co-logo.lg { height: 64px; margin-bottom: 14px; }
.co-logo.lg img { max-width: 240px; }
.co-logo.lg.mono { width: 64px; font-size: 1.4rem; border-radius: 12px; }

/* Grades */
.grade { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; font-size: 1.05rem; color: #fff; }
.grade.xl { width: 84px; height: 84px; font-size: 2rem; }
.grade-a { background: var(--teal); }
.grade-b { background: var(--bright); }
.grade-c { background: var(--gray); }
.grade-d { background: var(--fuchsia); }
.grade-none { background: var(--soft); color: var(--light); }

/* Report */
.crumbs { margin: 0 0 14px; font-size: .9rem; }
.crumbs a { text-decoration: none; }
.report-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.score { flex: 0 0 320px; background: var(--soft); border-radius: 14px; padding: 18px; text-align: center; }
.score .label { margin: 0 0 8px; color: var(--gray); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.score .note { margin: 12px 0 0; color: var(--gray); font-size: .78rem; }
.rubric { margin-top: 14px; text-align: left; display: grid; gap: 8px; }
.dim { display: grid; grid-template-columns: 1fr 90px 28px; gap: 8px; align-items: center; font-size: .85rem; }
.bar { height: 8px; background: #fff; border-radius: 4px; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 4px; }
.w1 { width: 8%; } .w2 { width: 17%; } .w3 { width: 25%; } .w4 { width: 33%; } .w5 { width: 42%; } .w6 { width: 50%; }
.w7 { width: 58%; } .w8 { width: 67%; } .w9 { width: 75%; } .w10 { width: 83%; } .w11 { width: 92%; } .w12 { width: 100%; }
.dim-grade { font-weight: 700; color: var(--navy); text-align: right; }
.block { margin: 0 0 22px; max-width: 760px; }
.block p { margin: 0; }
.block.muted p { color: #55636b; background: var(--soft); padding: 14px 16px; border-radius: 10px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 28px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--teal); background: #fff; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--teal); color: #fff; }
.btn:hover { border-color: var(--navy); }
.list { margin: 0 0 8px; padding-left: 18px; }
.staff-note { color: var(--gray); font-size: .8rem; border-top: 1px dashed var(--light); padding-top: 10px; }
.print-stamp { display: none; }

/* Company timeline */
.trail { color: var(--teal); font-weight: 600; }
.timeline { display: grid; gap: 10px; max-width: 760px; }
.timeline-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.timeline-row:hover { border-color: var(--mint); }
.when { color: var(--navy); font-weight: 600; }

/* Activity */
.table-wrap { overflow-x: auto; }
.activity { border-collapse: collapse; width: 100%; font-size: .9rem; }
.activity th, .activity td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.activity th { color: var(--gray); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

/* Forms (sign-in, terms) */
label { display: block; margin: 10px 0; }
input { display: block; width: 100%; max-width: 380px; padding: 10px; font: inherit; border: 1px solid var(--light); border-radius: 8px; margin-top: 4px; }
main > form button, main > button, #signin button, #setpw button { margin: 8px 8px 8px 0; padding: 10px 18px; font: inherit; font-weight: 600; border-radius: 8px; border: 1px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; }
#google { background: #fff; color: var(--teal); }
/* Sign-in and set-password messages: errors must stand out (Johnny 2026-10-20). */
.msg { max-width: 380px; margin: 12px 0; padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--light); background: var(--soft); color: var(--ink); font-size: .95rem; }
.msg[hidden] { display: none; }
.msg-error { border-left-color: #c2185b; background: #fdecf3; color: #8a0f3f; font-weight: 600; }
.msg-ok { border-left-color: var(--teal); background: #e6f5f4; color: #2f6f6b; }
.empty { max-width: 620px; }

/* Phone */
@media (max-width: 700px) {
  header.site { padding: 10px 16px; gap: 12px; }
  .who { margin-left: 0; width: 100%; }
  main { padding: 20px 16px 40px; }
  h1 { font-size: 1.5rem; }
  .report-head { flex-direction: column; }
  .score { flex: none; width: 100%; }
  .timeline-row { grid-template-columns: 70px 1fr auto; }
}

/* Print: the report itself, stamped for the reader */
@media print {
  header.site, .brand-bar, .site-foot, .actions, .crumbs, .staff-note { display: none; }
  main { padding: 0; max-width: none; }
  .score { background: none; border: 1px solid var(--light); }
  .print-stamp { display: block; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; color: var(--gray); font-size: 9pt; }
  a { color: inherit; text-decoration: none; }
}
