:root{
  --bg:#f6f7f9;
  --surface:#ffffff;
  --surface-2:#eef2f6;
  --text:#151922;
  --muted:#657083;
  --line:#dce3ec;
  --primary:#1f2937;
  --primary-2:#475569;
  --accent:#b78a32;
  --good:#16865f;
  --danger:#c0392b;
  --radius:8px;
  --shadow:0 18px 50px rgba(18,28,45,.08);
}

.domain-a{
  --bg:#f4f2ee;
  --surface:#fffdf8;
  --surface-2:#ebe5dc;
  --text:#161616;
  --muted:#655f55;
  --line:#d7cfc2;
  --primary:#111827;
  --primary-2:#3b3f46;
  --accent:#b9892b;
}

.domain-b{
  --bg:#f4f8fb;
  --surface:#ffffff;
  --surface-2:#e7f0f5;
  --text:#102331;
  --muted:#587084;
  --line:#cddce6;
  --primary:#173b57;
  --primary-2:#2f6f8f;
  --accent:#35a6b1;
}

.domain-c{
  --bg:#f4faf7;
  --surface:#ffffff;
  --surface-2:#e2f2ea;
  --text:#12251e;
  --muted:#527064;
  --line:#cbe3d6;
  --primary:#174333;
  --primary-2:#27785b;
  --accent:#d6a33d;
}

.domain-d{
  --bg:#f7f7fb;
  --surface:#ffffff;
  --surface-2:#eceefa;
  --text:#171a2a;
  --muted:#61667d;
  --line:#d9dced;
  --primary:#25314d;
  --primary-2:#53618f;
  --accent:#8c63d8;
}

.domain-e{
  --bg:#f8f6fb;
  --surface:#ffffff;
  --surface-2:#eee7f4;
  --text:#211b2b;
  --muted:#6c6276;
  --line:#dfd5e8;
  --primary:#3b2f52;
  --primary-2:#765aa0;
  --accent:#c27663;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.65;
}

a{color:inherit;text-decoration:none}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:0 28px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
}

.brand{
  flex:0 1 320px;
  display:flex;
  align-items:center;
  min-width:180px;
}

.brand img{
  display:block;
  width:min(100%,300px);
  height:auto;
}

.header-call{
  flex:0 0 auto;
  padding:10px 14px;
  border-radius:var(--radius);
  background:var(--primary);
  color:#fff;
  font-weight:900;
  font-size:14px;
}

.hero{
  position:relative;
  padding:78px 24px 44px;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(115deg,rgba(255,255,255,.9),rgba(255,255,255,.45)),
    radial-gradient(circle at 90% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
    var(--surface-2);
}

.domain-a .hero{
  min-height:420px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    linear-gradient(90deg,rgba(17,24,39,.93),rgba(17,24,39,.72)),
    url("/assets/og-template.png") center/cover;
  color:#fff;
}

.domain-a .hero .summary,
.domain-a .hero .eyebrow{color:rgba(255,255,255,.78)}

.eyebrow{
  max-width:1120px;
  margin:0 auto 12px;
  color:var(--primary-2);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero h1{
  max-width:1120px;
  margin:0 auto;
  font-size:clamp(32px,5vw,64px);
  line-height:1.12;
  letter-spacing:0;
}

.summary{
  max-width:880px;
  margin:20px auto 0;
  color:var(--muted);
  font-size:18px;
}

.hub-page .summary:empty{
  display:none;
}

.page-shell{
  width:min(1180px,calc(100% - 40px));
  margin:34px auto 0;
}

.hub-stats-section{
  margin-bottom:18px;
}

.hub-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.hub-stats div,
.article-block,
.related,
.cta,
.case-table-wrap{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.hub-stats div{
  padding:28px 22px;
}

.hub-stats strong{
  display:block;
  color:var(--primary);
  font-size:46px;
  line-height:1;
  letter-spacing:-.02em;
}

.hub-stats span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:14px;
  font-weight:800;
}

.case-search-wrap{
  display:flex;
  gap:10px;
  margin-bottom:22px;
}

.case-search{
  flex:1;
  min-width:0;
  height:58px;
  padding:0 18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  color:var(--text);
  font-size:16px;
}

.search-btn,
button{
  width:96px;
  border:0;
  border-radius:var(--radius);
  background:var(--primary);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.case-table-wrap{
  overflow:hidden;
}

.case-table-title{
  padding:22px 24px;
  border-bottom:1px solid var(--line);
}

.case-table-title h2{
  margin:0;
  font-size:22px;
}

.case-table-lead{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.case-table-header,
.case-row{
  display:grid;
  grid-template-columns:84px minmax(260px,1fr) 140px 130px 110px;
  gap:18px;
  align-items:center;
  padding:14px 24px;
}

.case-table-header{
  color:var(--muted);
  background:var(--surface-2);
  font-size:13px;
  font-weight:900;
}

.case-row{
  border-top:1px solid var(--line);
  min-height:68px;
  transition:background .16s ease, transform .16s ease;
}

.case-row:hover{
  background:color-mix(in srgb, var(--surface-2) 60%, white);
}

.case-no{
  color:var(--accent);
  font-weight:900;
}

.case-title-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.case-title{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:17px;
}

.today-badge{
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:4px;
  background:var(--danger);
  color:#fff;
  font-size:11px;
  font-style:normal;
  font-weight:900;
}

.case-status{
  width:max-content;
  padding:6px 9px;
  border-radius:4px;
  background:color-mix(in srgb, var(--primary) 10%, white);
  color:var(--primary);
  font-size:13px;
  font-weight:900;
}

.case-date,
.case-views{
  color:var(--muted);
  font-weight:800;
}

.landing-page .page-shell{
  display:block;
}

.article-block,
.related{
  padding:28px;
  margin-bottom:18px;
}

.article-block h2,
.related h2,
.cta h2{
  margin:0 0 14px;
  font-size:clamp(22px,3vw,32px);
  line-height:1.25;
}

.article-block p{
  margin:0 0 14px;
  color:#303846;
}

.article-block ul{
  margin:0;
  padding-left:20px;
}

.article-block li{
  margin:8px 0;
}

.section-kicker{
  color:var(--accent)!important;
  font-weight:900;
}

.faq details{
  padding:16px 0;
  border-top:1px solid var(--line);
}

.faq details:first-of-type{border-top:0}

.faq summary{
  cursor:pointer;
  font-weight:900;
}

.faq p{
  margin-top:8px;
  color:var(--muted);
}

.related-grid{
  display:grid;
  gap:10px;
}

.related-card{
  display:block;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-2);
}

.related-card span{
  display:block;
  color:var(--accent);
  font-size:12px;
  font-weight:900;
}

.related-card strong{
  display:block;
  margin-top:4px;
  font-size:15px;
  line-height:1.35;
}

.related-card.is-active{
  border-color:var(--primary);
  background:#fff;
}


.domain-c .article-block{
  border-left:6px solid var(--accent);
}

.domain-d .article-block{
  box-shadow:none;
}

.domain-d .brief-card{
  background:var(--surface-2);
}


.cta{
  width:min(1180px,calc(100% - 40px));
  margin:30px auto 80px;
  padding:34px;
  background:var(--primary);
  color:#fff;
}

.cta .eyebrow,
.cta p{
  margin-left:0;
  color:rgba(255,255,255,.78);
}

.cta a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-top:10px;
  padding:0 20px;
  border-radius:var(--radius);
  background:#fff;
  color:var(--primary);
  font-weight:900;
}

.consult-form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:16px;
}

.consult-form input{
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  color:var(--text);
  font-size:16px;
}

.consult-form button{
  width:100%;
  height:52px;
  font-size:16px;
  font-weight:900;
}

.consult-msg{
  margin:10px 0 0;
  font-size:14px;
  font-weight:800;
}

.consult-msg.ok{ color:var(--good); }
.consult-msg.err{ color:var(--danger); }

.site-footer{
  border-top:1px solid var(--line);
  background:var(--surface);
}

.footer-inner{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
  padding:34px 0 38px;
}

.footer-brand img{
  display:block;
  width:min(100%,300px);
  height:auto;
}

.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:24px 0 18px;
}

.footer-nav a{
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  color:var(--muted);
  background:var(--surface-2);
  font-size:14px;
  font-weight:800;
}

.footer-nav a.is-active{
  border-color:var(--primary);
  color:var(--primary);
  background:#fff;
}

.footer-info{
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:14px;
  font-style:normal;
  font-weight:700;
}

.footer-info a{
  color:var(--primary);
}

.copyright{
  margin:18px 0 0;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

@media(max-width:980px){
  .site-header{
    padding:12px 18px;
  }

  .brand{
    flex-basis:240px;
    min-width:150px;
  }

  .landing-page .page-shell,
  .domain-b .landing-page .page-shell{
    display:block;
  }

  .landing-page .related,
  .domain-b .landing-page .related{
    position:static;
  }
}

@media(max-width:760px){
  .hero{
    padding:52px 18px 34px;
  }

  .domain-a .hero{
    min-height:360px;
  }

  .summary{
    font-size:16px;
  }

  .page-shell,
  .cta{
    width:calc(100% - 28px);
  }

  .hub-stats{
    grid-template-columns:1fr;
  }

  .case-table-header{
    display:none;
  }

  .case-row{
    grid-template-columns:1fr;
    gap:8px;
    padding:18px;
  }

  .case-title{
    white-space:normal;
  }

  .case-search-wrap{
    flex-direction:column;
  }

  .search-btn{
    width:100%;
    height:48px;
  }

  .article-block,
  .related,
  .cta{
    padding:22px;
  }

  .footer-inner{
    width:calc(100% - 28px);
  }
}

.og-thumbnail{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  margin:16px 0 24px;
  max-width:600px;
}

.og-thumbnail img{
  width:100%;
  display:block;
}

.og-thumbnail-title{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding:22px 28px;
  font-size:clamp(17px,2.6vw,28px);
  font-weight:700;
  color:#fff;
  text-align:left;
  text-shadow:0 2px 10px rgba(0,0,0,.65);
  background:rgba(0,0,0,.22);
  line-height:1.4;
}
