/* engine.veydristech.com: extras on top of the shared brand package (assets/shared/brand.css).
   Only things the engine site needs and brand.css does not have. No inline styles anywhere (CSP: style-src 'self'). */

/* Header: six links plus the CTA need the room the product label takes on narrower desktops. */
@media (max-width: 920px) { .brand small { display: none; } }

/* Section helpers */
.section-tight { padding: 48px 0 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head h2 { margin-bottom: 0; }
.more-link { font-size: 15px; white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.lead { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 0 16px; }
.sub-title { margin: 40px 0 12px; }
.sub-title:first-child { margin-top: 0; }

/* Download block (same layout as the main site) */
.download { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.req-title { margin-bottom: 10px; }
.req { margin: 0; padding-left: 20px; color: var(--muted); }
.req li { margin-bottom: 6px; }
.release-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-height: 180px; }
.release-card .btn { width: 100%; }
.dl-name { font-size: 20px; font-weight: 700; margin: 0; }
.dl-version { color: var(--muted); margin: 2px 0 14px; }
.dl-notes { color: var(--muted); margin: 0 0 20px; }
.dl-file { color: var(--dim); font-size: 14px; margin: 10px 0 0; text-align: center; overflow-wrap: anywhere; }
.dl-new { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.dl-new h3 { font-size: 15px; margin-bottom: 6px; }
.dl-new p { color: var(--muted); font-size: 15px; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.dl-smartscreen { color: var(--dim); font-size: 14px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.dl-smartscreen b { color: var(--muted); font-weight: 600; }
.dl-unavailable { color: var(--muted); margin: 8px 0 18px; }

/* Lists fed by the release feed */
.feed-list { border-top: 1px solid var(--border); }
.feed-list > .muted-note, .feed-list > .feed-fallback { padding: 20px 0; border-bottom: 1px solid var(--border); }
.feed-fallback { color: var(--muted); margin: 0; }
.feed-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.feed-row.no-date { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.feed-date { color: var(--dim); font-size: 14px; padding-top: 2px; }
.feed-main h3 { margin-bottom: 6px; }
.feed-main p { color: var(--muted); margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.feed-main p:last-child { margin-bottom: 0; }
.feed-main .meta { color: var(--dim); font-size: 13px; }
.feed-badge { color: var(--muted); font-size: 13px; border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; align-self: start; white-space: nowrap; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-self: start; }
.feed-actions a { color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; font-size: 14px; }
.feed-actions a:hover { border-color: #50545c; }
.teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.teaser > .muted-note, .teaser > .feed-fallback { grid-column: 1 / -1; }
.teaser .card h3 { margin: 6px 0 8px; }
.teaser .card .meta { color: var(--dim); font-size: 13px; margin: 0; }
.teaser .card p { overflow-wrap: anywhere; }

/* Steps and plain content lists */
.steps { margin: 0; padding-left: 22px; color: var(--muted); }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps li strong, .plain-list li strong { color: var(--text); font-weight: 600; }
.plain-list { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.plain-list li { margin-bottom: 6px; }
.card .plain-list:last-child { margin-bottom: 0; }
.card .status-pill { margin-bottom: 12px; }

/* Documentation page */
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 108px); overflow: auto; font-size: 15px; }
.toc h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.doc section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.doc section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc h2 { font-size: 26px; margin-bottom: 14px; }
.doc h3 { margin: 28px 0 10px; }
.doc p { color: var(--muted); margin: 0 0 14px; max-width: 760px; }
.doc p strong, .doc li strong, .doc td strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { color: var(--muted); margin: 0 0 14px; padding-left: 22px; max-width: 760px; }
.doc li { margin-bottom: 6px; }
.doc .notice { max-width: 760px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.key-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.key-table th, .key-table td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--border); }
.key-table thead th { color: var(--dim); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.key-table tbody th { font-weight: 500; color: var(--text); width: 34%; min-width: 150px; }
.key-table td { color: var(--muted); }
kbd { display: inline-block; font: 600 13px/1.5 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; white-space: nowrap; }
code { font: 14px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; overflow-wrap: anywhere; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }

/* 404 */
.notfound { padding: 96px 0 120px; }
.notfound h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 12px; }
.notfound p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 28px; }

@media (max-width: 960px) {
  .roadmap, .teaser { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
  .toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .download { grid-template-columns: 1fr; gap: 32px; }
  .roadmap, .teaser { grid-template-columns: 1fr; }
  .feed-row, .feed-row.no-date { grid-template-columns: 1fr; gap: 8px; }
  .feed-actions { justify-content: flex-start; }
  .feed-badge { justify-self: start; }
  .section-tight { padding: 32px 0 56px; }
  .toc ol { columns: 1; }
  .doc h2 { font-size: 23px; }
  .doc section { padding-bottom: 36px; margin-bottom: 36px; }
  .key-table tbody th { min-width: 120px; }
  .notfound { padding: 56px 0 72px; }
}
