:root{
  --bg:#f5f7f8;--surface:#ffffff;--surface-2:#f0f4f5;--text:#1c262b;--muted:#5b6a71;
  --border:#d7e0e3;--shadow:0 10px 30px rgba(16,33,39,.06);--brand:#0d5a61;--brand-2:#126f78;
  --brand-soft:rgba(13,90,97,.10);--accent:#c96b2c;--accent-soft:rgba(201,107,44,.12);--radius:18px;--wrap:1680px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:linear-gradient(180deg,#f8fbfb 0%, var(--bg) 220px);
  color:var(--text);
  font:16px/1.65 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  min-width:0
}
img,svg,video{max-width:100%;height:auto}
a{color:var(--brand-2)}
a:hover{text-decoration-thickness:2px}

.wrap{width:min(var(--wrap), calc(100% - 48px));margin-inline:auto;min-width:0}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden
}
.skip-link:focus{
  left:12px;
  top:12px;
  width:auto;
  height:auto;
  padding:.6rem .9rem;
  background:#fff;
  border-radius:10px;
  border:1px solid var(--border);
  z-index:1000
}

.site-top{background:#fff;border-bottom:1px solid var(--border)}
.site-top .inner,.nav .inner,.footer-top .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:72px
}

.brand{display:flex;align-items:center;gap:.85rem;min-width:0}
.brand img{width:48px;height:48px;flex:0 0 auto}
.brand-text{min-width:0}
.brand-title{
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--text);
  text-decoration:none;
  display:inline-block;
  font-size:1.1rem
}
.brand-tag{font-size:.84rem;color:var(--muted)}

.langs{display:flex;gap:.75rem;flex-wrap:wrap}
.langs a{
  text-decoration:none;
  padding:.42rem .72rem;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted)
}
.langs a.active,.langs a:hover{
  background:var(--brand-soft);
  border-color:rgba(13,90,97,.14);
  color:var(--brand)
}

.nav{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(215,224,227,.8)
}
.menu{display:flex;gap:1rem;flex-wrap:wrap}
.menu a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  padding:.9rem 0;
  border-bottom:2px solid transparent
}
.menu a:hover,.menu a.current{
  color:var(--brand);
  border-color:var(--brand)
}
.toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:.55rem .8rem;
  font:inherit
}

.hero{padding:4.3rem 0 2.4rem}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);
  gap:1.2rem
}

.panel,.card,.stat,.notice,.article-shell,.sidebar-box{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow)
}
.panel{padding:2rem}

.kicker{
  display:inline-block;
  padding:.35rem .65rem;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase
}

h1,h2,h3{line-height:1.15;letter-spacing:-.02em;margin:0 0 .8rem}
h1{font-size:clamp(2.1rem,4vw,3.5rem)}
h2{font-size:clamp(1.45rem,2.5vw,2rem)}
h3{font-size:1.15rem}

.lead{
  color:var(--muted);
  font-size:1.08rem;
  max-width:none;
  margin:.7rem 0 0
}
.lead+.lead{margin-top:.9rem}

.hero-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.35rem}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 1rem;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-weight:700
}
.btn:hover{
  transform:translateY(-1px);
  transition:.12s ease;
  background:var(--surface-2)
}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn.accent{background:var(--accent);border-color:var(--accent);color:#fff}

.panel-list{padding-left:1.1rem;margin:1rem 0 0}
.panel-list li{margin:.45rem 0}

.quick-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  margin-top:1.2rem
}
.stat{padding:1rem}
.stat strong{
  display:block;
  font-size:1.45rem;
  margin-bottom:.35rem
}
.stat span{
  color:var(--muted);
  font-size:.95rem
}

.section{padding:1rem 0}
.grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:1rem
}
.card{padding:1.35rem}

.col-4{grid-column:span 4}
.col-5{grid-column:span 5}
.col-6{grid-column:span 6}
.col-7{grid-column:span 7}
.col-8{grid-column:span 8}
.col-12{grid-column:span 12}

.card p:last-child{margin-bottom:0}
.card ul{padding-left:1.1rem}
.card li{margin:.45rem 0}

.topic-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem
}
.topic-card{
  position:relative;
  padding:1.2rem;
  border-radius:16px;
  background:linear-gradient(180deg,var(--surface),#fbfcfc);
  border:1px solid var(--border);
  box-shadow:var(--shadow)
}
.topic-card .count{
  font-size:.88rem;
  color:var(--muted);
  margin-bottom:.45rem
}
.topic-card p{margin:.35rem 0 0;color:var(--muted)}

.topic-links{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.tag{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 .6rem;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:.82rem;
  font-weight:700;
  text-decoration:none
}

.feature-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem
}
.article-card{
  display:flex;
  flex-direction:column;
  gap:.65rem;
  padding:1.15rem;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface-2)
}
.article-card p{color:var(--muted);margin:0}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem .7rem;
  color:var(--muted);
  font-size:.88rem
}

.notice{
  padding:1rem 1.15rem;
  background:linear-gradient(180deg,var(--accent-soft),rgba(201,107,44,.03))
}

.ad-slot{
  margin:1rem 0;
  padding:1rem;
  border:1px dashed rgba(13,90,97,.25);
  border-radius:16px;
  background:linear-gradient(180deg,#fff,rgba(13,90,97,.03));
  text-align:center
}
.ad-label{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:.45rem
}

.site-footer{
  margin-top:2rem;
  border-top:1px solid var(--border);
  background:#fff
}
.footer-top{padding:1rem 0}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  padding:1rem 0 1.6rem
}
.footer-grid h3{font-size:1rem;margin-bottom:.6rem}
.footer-grid a{
  display:block;
  margin:.3rem 0;
  color:var(--muted);
  text-decoration:none
}
.footer-grid a:hover{color:var(--brand)}
.footer-legal{
  border-top:1px solid var(--border);
  padding:1rem 0 2rem;
  color:var(--muted);
  font-size:.92rem
}

.breadcrumbs{font-size:.9rem;color:var(--muted);margin-bottom:.85rem}
.breadcrumbs a{text-decoration:none;color:var(--muted)}

.page-header{padding:2rem 0 1rem}
.page-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:1rem;
  align-items:start
}
.article-shell{padding:1.6rem}
.article-shell p,.article-shell li{max-width:none}
.article-shell ul{padding-left:1.1rem}
.article-shell h2{margin-top:1.7rem}
.article-shell h3{margin-top:1.2rem}

.toc{
  padding:.9rem 1rem;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface-2);
  margin:1rem 0 1.1rem
}
.toc ol{margin:.4rem 0 0;padding-left:1.1rem}

.sidebar-box{padding:1rem}
.sidebar-box+.sidebar-box{margin-top:1rem}

.author-box{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:1rem;
  align-items:center
}
.author-avatar{
  width:96px;
  height:96px;
  border-radius:16px;
  background:var(--surface-2);
  border:1px solid var(--border)
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:14px
}
table{
  width:100%;
  border-collapse:collapse;
  background:#fff
}
th,td{
  padding:.8rem;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top
}
th{background:var(--surface-2)}

.callout{
  padding:1rem 1.15rem;
  border-left:5px solid var(--accent);
  background:rgba(201,107,44,.07);
  border-radius:12px;
  margin:1rem 0
}

.hero-art{
  padding:1.35rem;
  background:linear-gradient(180deg, rgba(13,90,97,.10), rgba(201,107,44,.08));
  border-radius:18px;
  border:1px solid var(--border)
}
.hero-art svg{display:block;width:100%;height:auto}

.logo-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.85rem;
  margin-top:1rem
}
.logo-chip{
  padding:.85rem;
  border-radius:14px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(13,90,97,.12)
}

.muted{color:var(--muted)}
.center{text-align:center}

/* Allow text to fully use available width inside cards and page content */
.panel,
.card,
.stat,
.notice,
.article-shell,
.sidebar-box,
.topic-card,
.article-card,
.author-box,
.logo-chip,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-12{
  min-width:0;
}

.card p,
.card li,
.panel p,
.panel li,
.notice p,
.notice li,
.topic-card p,
.topic-card li,
.article-card p,
.article-card li,
.sidebar-box p,
.sidebar-box li,
.logo-chip div,
.author-box p,
.author-box li,
.article-shell p,
.article-shell li,
.stat span{
  max-width:none;
  width:auto;
}

.author-box > div,
.brand-text,
.menu,
.hero-grid > *,
.page-shell > *,
.grid > *,
.feature-list > *,
.topic-grid > *,
.quick-stats > *,
.footer-grid > *,
.logo-grid > *{
  min-width:0;
}

@media (max-width: 1180px){
  .hero-grid,
  .page-shell,
  .topic-grid,
  .feature-list,
  .footer-grid{
    grid-template-columns:1fr
  }
  .quick-stats{grid-template-columns:repeat(2,1fr)}
  .col-4,.col-5,.col-6,.col-7,.col-8,.col-12{grid-column:span 12}
}

@media (max-width: 780px){
  .site-top .inner,.nav .inner{min-height:64px}
  .menu{
    display:none;
    flex-direction:column;
    gap:.25rem;
    background:#fff;
    position:absolute;
    left:16px;
    right:16px;
    top:100%;
    padding:.75rem 1rem;
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:var(--shadow)
  }
  .menu a{padding:.55rem 0}
  .toggle{display:inline-flex}
  .hero{padding:3rem 0 1.5rem}
  .quick-stats{grid-template-columns:1fr}
  .wrap{width:min(var(--wrap), calc(100% - 20px))}
}