/* Shared styles for the AI V5 plugin pages.
   The palette matches the project directory homepage so the two areas read as
   one site. */

:root {
  --bg: #f6f8fb;
  --ink: #182c40;
  --ink-strong: #142c47;
  --muted: #65758a;
  --faint: #8795a6;
  --line: #e0e7ef;
  --line-soft: #e7edf4;
  --accent: #1c5db4;
  --accent-soft: #5b81aa;
  --card: #fff;
  --code-bg: #f3f6fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid #3176de; outline-offset: 4px; }

.shell { width: min(980px, calc(100% - 64px)); margin: 0 auto; }

.topbar { display: flex; height: 84px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dfe6ef; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: #213e68; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -.06em; }
.brand-name { color: #172d45; font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.top-link { color: #66768a; font-size: 13px; font-weight: 600; text-decoration: none; }
.top-link:hover { color: var(--accent); text-decoration: none; }

main { padding: 46px 0 24px; }
.eyebrow { margin: 0 0 14px; color: #4674b1; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; color: var(--ink-strong); font-size: clamp(32px, 4.2vw, 46px); font-weight: 750; letter-spacing: -.05em; line-height: 1.15; }
.lede { max-width: 70ch; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--accent-soft); font-size: 12px; font-weight: 650; }

h2 { margin: 44px 0 12px; color: #1d334b; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
h3 { margin: 26px 0 8px; color: #1d334b; font-size: 15px; font-weight: 700; }
p, li { color: #4c5d70; font-size: 14.5px; line-height: 1.8; }
ul { margin: 10px 0; padding-left: 20px; }
li + li { margin-top: 4px; }
strong { color: var(--ink); }

pre { margin: 14px 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--code-bg); color: #23374d; font-size: 13px; line-height: 1.65; }
code { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
p code, li code, td code { padding: 1px 5px; border-radius: 5px; background: #eef3f9; }

table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--accent-soft); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
td { color: #4c5d70; line-height: 1.7; }

.callout { margin: 18px 0; padding: 14px 18px; border: 1px solid #dbe6f3; border-left: 3px solid #7ba4d4; border-radius: 10px; background: #f5f9fe; }
.callout p { margin: 0; font-size: 13.5px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; }
.card { display: flex; min-height: 168px; flex-direction: column; padding: 24px 26px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 7px 24px rgba(36, 60, 90, .035); color: inherit; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card:hover { transform: translateY(-3px); border-color: #aabfda; box-shadow: 0 13px 28px rgba(36, 60, 90, .09); text-decoration: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category { color: var(--accent-soft); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.arrow { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line-soft); border-radius: 50%; color: #6986a6; font-size: 17px; line-height: 1; }
.card:hover .arrow { border-color: #b5c8df; color: var(--accent); }
.card h3 { margin: 15px 0 8px; color: #19324c; font-size: 19px; font-weight: 750; letter-spacing: -.03em; }
.card p { margin: 0; color: #6b7b8d; font-size: 13.5px; line-height: 1.75; }
.card-path { margin-top: auto; padding-top: 16px; color: #9aa8b8; font-size: 11px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 44px 0 36px; color: var(--faint); font-size: 12px; }
footer a { color: inherit; }
footer a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 720px) {
  .shell { width: min(100% - 36px, 520px); }
  .topbar { height: 70px; }
  main { padding-top: 34px; }
  .grid { grid-template-columns: 1fr; }
  table { font-size: 12.5px; }
  th, td { padding: 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
