/* Ras-IT static site - minimal TTY look
   Keep it fast: no external fonts, no heavy effects. */

:root{
  --bg:#0b0d10;
  --panel:#0f1217;
  --fg:#d6e2ff;
  --muted:#9aa7c7;
  --dim:#6b7898;
  --accent:#8dfd8d;

  --table-fin:#10202a;
  --table-pp:#141a10;
  --table-gov:#22151a;

  --border:#283047;
  --shadow: 0 12px 24px rgba(0,0,0,.35);
  --radius:14px;
  --maxw: 980px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 800px at 20% -10%, #131a27 0%, var(--bg) 55%) fixed;
  color:var(--fg);
  font-family: var(--mono);
  line-height:1.55;
}

a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
a:focus{ outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }

.container{
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:1rem; top:1rem; width:auto; height:auto;
  background:var(--panel); padding:.6rem .8rem;
  border:1px solid var(--border); border-radius:10px; z-index:1000;
}

header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom:1px solid var(--border);
}

.brand{
  display:flex; align-items:center; justify-content:space-between;
  padding:.9rem 0;
  gap:1rem;
}
.brand-left{
  display:flex; align-items:center; gap:.9rem;
}
.logo span{ color:var(--accent); font-weight:700; letter-spacing:.5px; }
.titleblock .title{
  font-size:1.05rem; font-weight:700;
}
.titleblock .tagline{
  font-size:.9rem; color:var(--muted);
}

nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap;
  gap:.4rem .6rem;
  justify-content:flex-end;
}
nav a{
  display:inline-block;
  padding:.4rem .65rem;
  border-radius:10px;
  border:1px solid transparent;
  color:var(--fg);
}
nav a[aria-current="page"]{
  border-color:var(--border);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
nav a:hover{
  border-color:var(--border);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
}

main{ padding: 1.5rem 0 2.5rem; }

.shell{
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, #0b0d10 92%, transparent));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.shell-top{
  display:flex; align-items:center; justify-content:space-between;
  padding:.7rem .9rem;
  border-bottom:1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.dots{ display:flex; gap:.42rem; align-items:center; }
.dot{ width:10px; height:10px; border-radius:50%; background:#2a334a; }
.dot.red{ background:#ff5f56; }
.dot.yellow{ background:#ffbd2e; }
.dot.green{ background:#27c93f; }
.shell-top .path{
  color:var(--dim);
  font-size:.9rem;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  max-width: 60%;
}

.shell-body{ padding: 1.05rem 1.05rem 1.2rem; }

h1,h2,h3{ margin:0 0 .7rem; }
h1{ font-size:1.65rem; letter-spacing:.3px; }
h2{ font-size:1.25rem; color:var(--fg); margin-top:1.25rem; }
h3{ font-size:1.05rem; color:var(--fg); margin-top:1.1rem; }
p{ margin: .65rem 0; color: var(--fg); }
small, .muted{ color:var(--muted); }

.prompt{
  color: var(--accent);
  user-select:none;
}
.cmdline{
  display:flex; gap:.6rem; align-items:flex-start;
  margin:.25rem 0 .25rem;
}
.cmdline .prompt{ flex:0 0 auto; }
.cmdline .typed{ flex:1 1 auto; min-width:0; }

.caret{
  display:inline-block;
  width: 0.6ch;
  margin-left: .1ch;
  border-right: 2px solid var(--accent);
  animation: blink 1s steps(1) infinite;
  vertical-align: -0.05em;
}
@keyframes blink{ 50%{ border-right-color: transparent; } }

body.js .tty-hidden{ display:none; }
body.js .tty-target{ display:block; }

.hr{
  height:1px; background:var(--border);
  margin: 1rem 0;
}
.callout{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:.9rem 1rem;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
@media (min-width: 860px){
  .grid{ grid-template-columns: 1.1fr .9fr; }
}

.badges{ display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.4rem; }
.badge{
  font-size:.85rem;
  padding:.2rem .55rem;
  border-radius: 999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 75%, transparent);
  color: var(--muted);
}

.table-wrap{ overflow:auto; border-radius: 12px; border:1px solid var(--border); }
table{ width:100%; border-collapse: collapse; min-width: 640px; background: #0b0d10; }
thead th{
  text-align:left;
  font-weight:700;
  padding:.65rem .7rem;
  border-bottom:1px solid var(--border);
  color:var(--muted);
}
tbody td{
  padding:.6rem .7rem;
  border-bottom:1px solid color-mix(in srgb, var(--border) 65%, transparent);
}
tbody tr:last-child td{ border-bottom:none; }
tr.cat-financial{ background: color-mix(in srgb, var(--table-fin) 85%, transparent); }
tr.cat-privatepublic{ background: color-mix(in srgb, var(--table-pp) 85%, transparent); }
tr.cat-government{ background: color-mix(in srgb, var(--table-gov) 85%, transparent); }

footer{
  border-top:1px solid var(--border);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}
footer .cols{
  display:flex; flex-wrap:wrap; gap: 1rem 1.5rem;
  align-items:flex-start; justify-content:space-between;
}
footer .cols > div{ min-width: 220px; }
.footer-small{ margin-top:.8rem; color:var(--dim); font-size:.9rem; }

@media (prefers-reduced-motion: reduce){
  .caret{ animation:none; }
}


/* --- Mobile polish --- */
@media (max-width: 640px){
  .container{ width: calc(100% - 1.25rem); }
  .brand{
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem 0;
  }
  .brand-left{ gap: .7rem; }
  .titleblock .title{ font-size: 1.0rem; }
  .titleblock .tagline{ font-size: .85rem; }
  nav{ width: 100%; }
  nav ul{
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .1rem;
  }
  nav a{ white-space: nowrap; }
  /* hide scrollbar (best-effort) */
  nav ul::-webkit-scrollbar{ height: 0; }
  nav ul{ scrollbar-width: none; }

  .shell-body{ padding: .95rem .9rem 1.05rem; }
  h1{ font-size: 1.45rem; }
  .grid{ grid-template-columns: 1fr; }
}

/* Logo sizing (keep crisp on mobile) */
.logo img{
  width: clamp(96px, 18vw, 150px);
  height: auto;
  display:block;
}

/* Make tables more phone-friendly */
table{ min-width: 520px; }
td, th{ vertical-align: top; }
tbody td{ word-break: break-word; }



/* --- CVE table fixes --- */
table th:first-child,
table td:first-child{
  width: 9.5rem;
  min-width: 9.5rem;
  white-space: nowrap;
  font-weight: 600;
}

@media (max-width: 640px){
  table th:first-child,
  table td:first-child{
    width: 8.5rem;
    min-width: 8.5rem;
    font-size: .9rem;
  }
}


/* --- Clean logo container (SVG wordmark) --- */
.logo{
  display:flex;
  align-items:center;
  padding:0;
  margin:0;
  background:none;
  border:none;
  box-shadow:none;
  width:auto;
  height:auto;
}

.logo img{
  width: clamp(96px, 18vw, 150px);
  height: auto;
  display:block;
}
