/* ECNOVA Network (TimeLayer OS): раскладка страниц поверх shared-theme.css.
   Только структура и отступы; цвета, типографика, кнопки, статусы, уведомления,
   таблицы и код берутся из shared-theme.css. Заменяет прежний assets/site.css. */

body{min-width:320px;overflow-x:hidden}
.scope-strip{background:var(--accent-soft);color:var(--ink);border-bottom:1px solid var(--line);padding:6px var(--gutter);font-size:.8125rem;text-align:center}

.site-header{border-bottom:1px solid var(--line);background:var(--bg);position:relative;z-index:2}
.site-header .header-inner,.site-header .nav-wrap{display:flex;align-items:center;gap:20px;min-height:76px;padding-block:12px}
.site-header .brand{display:inline-flex;align-items:center;gap:11px;margin-right:auto;flex:0 0 auto}
.site-header .brand img{width:42px;height:42px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface)}
.brand-name{font-size:1.4rem;line-height:1;font-weight:700;letter-spacing:.01em}
.brand-name b{color:var(--accent);font-weight:700}
.site-nav{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap}
/* цвет, hover и текущая страница ссылок навигации задаёт shared-theme.css (.site-nav a); здесь только форма */
.nav-link{padding:8px 2px;border-bottom:2px solid transparent;white-space:nowrap;font-size:.95rem}
.nav-link:hover,.nav-link[aria-current]{border-bottom-color:var(--accent)}

.hero{padding:64px 0 48px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);align-items:end;gap:56px}
.hero-grid>*{min-width:0}
.hero h1{max-width:16ch;margin-top:14px;overflow-wrap:anywhere}
.hero-lede{max-width:62ch;margin:20px 0 0;color:var(--muted);font-size:var(--fs-lead)}
.hero-actions{gap:12px;margin-top:28px}
.hero-note{border-left:4px solid var(--accent);padding:4px 0 4px 20px;color:var(--muted);font-size:1rem}
.hero-note strong{display:block;margin-bottom:6px;color:var(--ink)}

.section{padding:56px 0}
.section+.section,.hero+.section{border-top:1px solid var(--line)}
.section-head{display:grid;grid-template-columns:minmax(200px,.55fr) minmax(0,1fr);gap:48px;margin-bottom:32px}
.section-head h2{margin:0}
.section-intro{max-width:66ch;margin:0;color:var(--muted)}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{min-width:0}
.card h3{margin:10px 0 8px}
.card p{margin:0;color:var(--muted);font-size:1rem}
.card p+p,.card ul,.card .actions{margin-top:14px}
.card .actions{gap:10px}
.prose{max-width:820px}
.prose h2{margin-top:1.5em}
.prose h3{margin:1.8em 0 .5em}
.prose p,.prose li{color:var(--muted)}
.prose strong{color:var(--ink)}
.prose ul,.prose ol{padding-left:1.3em}
.prose li+li{margin-top:.45em}
.repo-link{overflow-wrap:anywhere}

.architecture{counter-reset:layer;display:grid;gap:10px}
.layer{display:grid;grid-template-columns:54px minmax(0,1fr);gap:18px;border:1px solid var(--line);border-radius:var(--radius);padding:19px;background:var(--surface)}
.layer::before{counter-increment:layer;content:counter(layer,decimal-leading-zero);color:var(--accent);font-weight:700;font-size:1.15rem}
.layer h3{margin:0}
.layer p{margin:5px 0 0;color:var(--muted);font-size:.95rem}
.checklist{display:grid;gap:10px;margin:20px 0;padding:0;list-style:none}
.checklist li{position:relative;border-left:2px solid var(--line-strong);padding-left:22px}
.checklist li::before{content:"";position:absolute;left:-6px;top:.65em;width:10px;height:10px;background:var(--accent);border-radius:50%}

.site-footer{border-top:1px solid var(--line);padding:48px 0 32px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}
.footer-title{font-size:1.4rem;font-weight:700;line-height:1.2}
.footer-copy{max-width:44ch;color:var(--muted);font-size:.95rem}
.footer-col h2{margin:0 0 12px;color:var(--muted);font-size:.8125rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.footer-col a{display:block;margin:8px 0;color:var(--ink);font-size:.95rem}
.colophon{display:flex;justify-content:space-between;gap:18px;margin-top:32px;border-top:1px solid var(--line);padding-top:20px;color:var(--muted);font-size:.85rem}

@media (max-width:900px){
  .site-header .header-inner,.site-header .nav-wrap{flex-wrap:wrap}
  .site-nav{order:3;width:100%}
  .hero-grid,.section-head{grid-template-columns:1fr;gap:24px}
  .grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  .brand-name{font-size:1.25rem}
  .hero{padding:44px 0 36px}
  .section{padding:44px 0}
  .grid.two,.grid.three,.footer-grid{grid-template-columns:1fr}
  .card{padding:20px}
  .colophon{flex-direction:column}
  .layer{grid-template-columns:40px minmax(0,1fr);gap:12px}
}

/* F10 local-only editable briefs; established colours/type remain. */
textarea {display:block;width:100%;max-width:100%;min-height:16rem;padding:1rem;margin:1rem 0;font:inherit;line-height:1.5;border:1px solid var(--line,#bcb9b0);border-radius:.5rem;background:var(--paper,#faf8f1);color:inherit;resize:vertical;box-sizing:border-box} .prose a,.card a{overflow-wrap:anywhere} .hero-actions{line-height:1.9}
