/*
 * Copyright 2026 Viquar Khan and the Aegis MCP Gateway contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
:root { --ink: #142531; --muted: #516773; --paper: #f5f8f8; --panel: #ffffff; --navy: #09243a; --teal: #007c78; --line: #d5e0e2; --soft: #e7f4f2; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 Arial, Helvetica, sans-serif; }
a { color: #00635f; font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: #003f3c; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 270px; padding: 34px 26px; color: #d8ebed; background: var(--navy); }
.brand { margin-bottom: 34px; color: #ffffff; font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.brand span { display: block; color: #8ed7d1; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
nav { display: grid; gap: 9px; }
nav a { color: #c7e3e4; font-size: .94rem; text-decoration: none; }
nav a:hover { color: #ffffff; }
.sidebar-note { margin-top: auto; color: #92b8bd; font-size: .82rem; line-height: 1.45; }
main { max-width: 1180px; margin-left: 270px; }
section, .hero { padding: 72px clamp(28px, 7vw, 96px); }
.hero { color: #f5ffff; background: linear-gradient(135deg, #0b4055, #076a67); }
h1 { max-width: 820px; margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.03; letter-spacing: -.04em; }
h2 { margin: 0 0 18px; color: var(--navy); font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.1; letter-spacing: -.025em; }
.hero h1 { color: #ffffff; }
.lead { max-width: 800px; color: #d6f0ee; font-size: 1.18rem; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.hero .eyebrow { color: #a4ece4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-block; padding: 10px 16px; border: 1px solid currentColor; border-radius: 7px; text-decoration: none; }
.button.primary { color: #ffffff; background: var(--teal); border-color: var(--teal); }
.hero .button { color: #e8ffff; }
.hero .button.primary { background: #ffffff; border-color: #ffffff; color: #075e5a; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cards article, .two-column > div { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 14px #0630440d; }
h3 { margin: 0 0 9px; color: var(--navy); font-size: 1.16rem; }
p { margin: 0 0 17px; }
.band { background: var(--soft); }
.band img { display: block; width: 100%; margin: 28px 0; border-radius: 12px; box-shadow: 0 12px 30px #032d3b30; }
.explainer-image { display: block; width: 100%; margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #032d3b20; }
.owasp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.owasp-grid div { padding: 14px 16px; background: #ffffff; border-left: 5px solid #bb7600; border-radius: 8px; box-shadow: 0 3px 10px #0630440d; }
.owasp-grid .strong { border-left-color: #16806e; }
.owasp-grid .limited { border-left-color: #c25345; }
.owasp-grid .external { border-left-color: #667986; }
.owasp-grid strong { display: block; color: var(--navy); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin: 25px 0; border: 1px solid #b8d8d4; border-radius: 10px; }
.steps div { display: grid; gap: 4px; padding: 18px; background: #ffffffaa; border-right: 1px solid #b8d8d4; }
.steps div:last-child { border-right: 0; }
.steps span { color: var(--muted); font-size: .9rem; }
.callout { padding: 16px 19px; border-left: 4px solid var(--teal); background: #ffffffb8; }
pre { overflow-x: auto; padding: 17px; color: #dbfffb; background: #082d3c; border-radius: 9px; }
code { font-family: Consolas, "Courier New", monospace; font-size: .9em; }
ol, ul { padding-left: 23px; }
li { margin: 8px 0; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.reference-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.reference-table a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 18px; color: var(--ink); background: #ffffff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.reference-table a:nth-child(2n) { border-right: 0; }
.reference-table span { color: var(--teal); font-size: .9rem; font-weight: 700; text-align: right; }
.ref-table { width: 100%; margin: 14px 0 26px; border-collapse: collapse; background: #ffffff; border: 1px solid var(--line); font-size: .92rem; }
.ref-table th, .ref-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ref-table th { color: var(--navy); background: var(--soft); font-weight: 800; }
.ref-table td:first-child { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.module { border-top: 1px solid var(--line); }
.module-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.module-meta span { padding: 4px 10px; color: var(--navy); background: #ffffff; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; }
.boundary { padding: 14px 18px; border-left: 4px solid #667986; background: #ffffff; }
.module-basics { display: grid; gap: 8px; margin: 0 0 24px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; }
.module-basics p { margin: 0; }
@media (max-width: 860px) { .sidebar { position: static; width: auto; padding: 22px 26px; }.brand { margin-bottom: 16px; }.sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }.sidebar-note { display: none; }main { margin-left: 0; }.cards, .two-column { grid-template-columns: 1fr; } }
@media (max-width: 560px) { section, .hero { padding: 52px 22px; }.sidebar nav, .steps, .reference-table { grid-template-columns: 1fr; }.steps div, .reference-table a { border-right: 0; border-bottom: 1px solid var(--line); }.reference-table a { display: block; }.reference-table span { display: block; text-align: left; } }
