/* CDA Validation Tools landing site.
   Visual system matches the SITT chrome on the other tools: navy header,
   gold title and nav, teal programme brand, Verdana eyebrows, blue panels. */

:root {
  --navy: #021a4c;
  --navy-deep: #01112f;
  --gold: #F3C60D;
  --gold-pale: #ffec9d;
  --teal: #2DD4BF;
  --teal-deep: #0F766E;
  --teal-text: #9fe4d8;
  --panel: #428bca;
  --panel-border: #bfd6ea;
  --ink: #1f2937;
  --muted: #8a93a3;
  --rule: #e3e7ee;
  --paper: #ffffff;
  --ground: #f4f6f9;
  --body-font: Verdana, Geneva, sans-serif;
  --title-font: "Cairo", Verdana, Geneva, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 13px/1.55 var(--body-font);
  color: var(--ink);
  background: var(--ground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #2a6db5; text-decoration: none; }
a:hover { text-decoration: underline; }
h4 { margin: 14px 0 4px; font-size: 13px; color: var(--navy); }
p { margin: 0 0 10px; }
ul { margin: 0 0 10px 18px; padding: 0; }
li { margin: 0 0 4px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
#appheader {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(94,234,212,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,234,212,0.045) 1px, transparent 1px),
    radial-gradient(1200px 220px at 18% 0%, rgba(45,212,191,0.10), transparent 70%);
  background-size: 24px 24px, 24px 24px, auto;
  color: #fff;
  padding: 0 18px 12px 10px;
  font-family: var(--body-font);
  font-weight: 700;
}
#appheader .brandlink { display: inline-block; color: inherit; text-decoration: none; text-shadow: none; }
#appheader #programbrand {
  display: block; margin: 12px 0 8px 10px;
  font-size: 15px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase;
  line-height: 1; color: var(--teal-text); white-space: nowrap;
}
#appheader #programbrand .pb-tick {
  display: inline-block; width: 26px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  vertical-align: middle; margin-right: 8px; margin-bottom: 2px;
}
#appheader #programbrand .pb-text { display: inline-block; vertical-align: middle; }
#apptitle {
  margin: 0 0 2px 10px; display: block;
  font-family: var(--title-font); font-weight: 700; font-size: 34px; line-height: 1.1;
  color: var(--gold); letter-spacing: 0.2px;
  animation: rise .5s ease-out both;
}
#appsubtitle { font-size: 14px; margin-left: 10px; color: var(--gold-pale); font-weight: 700; animation: rise .5s .08s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

#appheader .hosted-lockup { float: right; text-align: right; margin: 12px 0 0 0; }
#appheader .appheader-mb {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 32px; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.2);
  color: #fff; text-decoration: none;
}
.mb-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; font-family: var(--body-font); }
#appheader .appheader-mb .mb-eyebrow { color: rgba(255,255,255,.55); letter-spacing: 1.8px; }
#appheader .appheader-mb .vt-mark { display: inline-block; vertical-align: middle; }
#appheader .appheader-mb .vt-word { font-family: var(--body-font); font-size: 14px; font-weight: 700; letter-spacing: 2.4px; color: #fff; }
#appheader .appheader-mb .vt-word .vt-word-accent { color: var(--teal); }

/* ---------- nav ---------- */
#mainnav {
  background: var(--gold); color: #000;
  display: flex; align-items: stretch; justify-content: space-between;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
#mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
#mainnav li { margin: 0; }
#mainnav a {
  display: block; padding: 10px 14px; color: #000; font-weight: 700; font-size: 13px;
  text-decoration: none; border-right: 1px solid rgba(0,0,0,.06);
  transition: background-color .15s ease;
}
#mainnav a .ico { margin-right: 6px; opacity: .75; }
#mainnav a:hover { background: rgba(255,255,255,.35); }
#mainnav a.active { background: var(--paper); color: var(--navy); }
#mainnav .nav-right {
  align-self: center; padding: 0 16px; font-size: 10px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase; color: rgba(0,0,0,.55); white-space: nowrap;
}
#mainnav .nav-right .dot { margin: 0 8px; }

/* ---------- content ---------- */
#content { flex: 1; padding: 14px 18px 10px; }
.tab[hidden] { display: none; }
.tab { animation: fade .25s ease-out both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.welcome-bar {
  background: #d9edf7; border: 1px solid var(--panel-border); color: #2f6ea5;
  font-weight: 700; padding: 8px 12px; margin: 0 0 14px; border-radius: 3px;
}
.welcome-bar .ico { margin-right: 6px; }

.panels { display: grid; gap: 18px; margin-bottom: 18px; }
.panels.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panels.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .panels.three { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .panels.two { grid-template-columns: 1fr; } }

.panel { background: var(--paper); border: 1px solid var(--panel); border-radius: 4px; display: flex; flex-direction: column; }
.panel-heading { background: var(--panel); color: #fff; font-weight: 700; padding: 9px 14px; border-radius: 3px 3px 0 0; }
.panel-body { padding: 14px; flex: 1; }

table.versions, table.files { width: 100%; border-collapse: collapse; margin: 0 0 10px; }
table.versions th, table.files th { text-align: left; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 0 8px 6px 0; border-bottom: 1px solid var(--rule); }
table.versions td, table.files td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.versions td:first-child, table.files td:first-child { white-space: nowrap; font-weight: 700; }
table.files td:first-child { white-space: normal; word-break: break-all; max-width: 260px; }

ul.rules li { margin-bottom: 8px; }
ul.browsers { list-style: none; margin-left: 0; display: flex; gap: 14px; flex-wrap: wrap; }
ul.browsers li::before { content: "\25CF"; color: var(--teal-deep); margin-right: 6px; font-size: 9px; vertical-align: 2px; }

/* ---------- tool tabs ---------- */
.toolbar {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--panel-border); border-left: 4px solid var(--gold);
  border-radius: 4px; padding: 14px 16px; margin-bottom: 10px;
}
.toolmeta { max-width: 900px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--teal-deep); }
.toolbar h2 { margin: 4px 0 6px; font-family: var(--title-font); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--navy); }
.toolbar p { margin: 0; }
.toolactions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 220px; }
.btn {
  display: inline-block; text-align: center; padding: 8px 12px; border-radius: 3px; font-weight: 700; font-size: 12px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: #0a2a6e; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--navy); border-color: #c9d3e3; }
.btn.ghost:hover { background: #eef2f8; }

.note { background: #fff8dc; border: 1px solid #f1dd8a; color: #5a4a00; padding: 7px 12px; border-radius: 3px; margin: 0 0 10px; }

.frame { background: var(--paper); border: 1px solid var(--panel-border); border-radius: 4px; overflow: hidden; min-height: 720px; position: relative; }
.frame iframe { display: block; width: 100%; border: 0; min-height: 720px; }
.frame .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------- footer ---------- */
#footer { font-size: .9em; border-top: 1px solid #a6a6a6; clear: both; padding: 10px 18px 10px; margin-top: 10px; background: var(--paper); }
#footer .boxes { display: flex; gap: 48px; flex-wrap: wrap; }
#footer h5 { margin: 4px 0 4px; font-size: 12px; color: var(--ink); }
#footer ul { margin-left: 18px; }
#footer .managed-by {
  border-top: 1px solid rgba(2,26,76,.12); margin-top: 10px; padding: 11px 2px 4px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
#footer .managed-by .prev-nist { font-family: var(--body-font); font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; line-height: 1; color: var(--muted); }
#footer .managed-by .mb { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
#footer .managed-by .mb-eyebrow { color: var(--muted); }
#footer .managed-by .mb-mark { display: inline-block; width: 3px; height: 18px; background-color: var(--navy); border-radius: 2px; }
#footer .managed-by .mb-name { color: var(--navy); font-size: 18px; font-weight: 700; letter-spacing: .3px; font-family: var(--title-font); }

@media (max-width: 760px) {
  #appheader .hosted-lockup { float: none; text-align: left; margin: 10px 0 0 10px; }
  #appheader .appheader-mb { margin-left: 0; padding-left: 0; border-left: 0; }
  #apptitle { font-size: 28px; }
  .toolbar { flex-direction: column; }
  #mainnav .nav-right { display: none; }
}
