:root{
--bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --accent:#3b82f6;
  --accent2:#22c55e;
  --card:#f8fafc;
  --border:rgba(15,23,42,.10);

  --radius:5px;           
  --shadow:0 10px 24px rgba(15,23,42,.06);
  --density:1;
  --content-w: 860px;
}

html,body{
height:100%
}

body{
margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,sans-serif;
  padding-top:98px;
}

a{
color:var(--accent);text-decoration:none
}

a:hover{
text-decoration:underline
}

img{
max-width:100%;height:auto;display:block
}

.container{
width:100%;
  max-width:var(--content-w);
  margin:0 auto;
  padding: calc(16px * var(--density)) calc(14px * var(--density));
}
.site-header .container,
.site-header .header-inner,
main.container{
  box-sizing:border-box;
}
h1,h2,h3{
line-height:1.2;margin:0 0 12px 0
}

h1{
font-size:34px
}

h2{
font-size:24px;margin-top:26px
}

h3{
font-size:18px;margin-top:20px
}

p{
margin:0 0 12px 0;color:var(--text)
}

small,.muted{
color:var(--muted)
}

.callout{
border-left:3px solid var(--accent);
  background:rgba(59,130,246,.06);
  padding:12px 14px;
  border-radius:var(--radius);
}

.post-body table,
.page-post table,
.listing-page table{
width:100%;
  border-collapse:collapse;
  margin:18px 0;
  background:var(--card);
  border-radius:var(--radius);
  overflow:hidden;
}

.post-body thead,
.page-post thead,
.listing-page thead{
background:rgba(59,130,246,.06);
}

.post-body th,.post-body td,
.page-post th,.page-post td,
.listing-page th,.listing-page td{
padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:15px;
}

.post-body th,
.page-post th,
.listing-page th{
font-weight:600;
}

.post-body tr:last-child td,
.page-post tr:last-child td,
.listing-page tr:last-child td{
border-bottom:none;
}

ul,ol{
margin:0 0 16px 20px;
}

ul li::marker{
color:var(--accent);
}

@media (max-width: 720px){
.post-body table,
  .page-post table,
  .listing-page table{
display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}
}

.toc{
background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
  margin:14px 0 18px 0;
  position:relative;
}

.toc-title{
font-weight:800;
  margin:0 0 10px 0;
}

.toc-list{
margin:0;
  padding-left:18px;
}

.toc-list > li{
  margin:8px 40px 8px 0 !important;
}

.toc-h2 > a{
display:inline-block;
  font-weight:700;
  color:var(--text);
}

.toc-sub{
margin:8px 0 0 0;
  padding-left:16px;
  list-style:none;
}

.toc-sub > li{
margin:6px 0;
}

.toc-h3{
list-style-type:"– ";
}

.toc-h3 > a{
color:var(--muted);
}

.toc a{
cursor:pointer;
  display:inline-block;
  padding:2px 0;
  text-decoration:none;
}

.toc a:hover{
text-decoration:none;
  color:var(--accent);
}

.toc .toc-title{
font-size:14px;
  letter-spacing:.2px;
}

.toc-sub > li.toc-h3{
list-style:none;
  position:relative;
  padding-left:14px;
}

.toc-sub > li.toc-h3::marker{
content:"";
}

.toc-sub > li.toc-h3::before{
content:"–";
  position:absolute;
  left:0;
  top:0;
  color:var(--muted);
}

body.toc-compact .toc{
padding:12px;
}

body.toc-compact .toc .toc-title{
margin-bottom:8px;
}

body.toc-compact .toc-list > li{
margin:6px 0;
}

body.toc-compact .toc-sub > li{
margin:4px 0;
}

.post-layout.toc-side .toc{
position: static;
    margin: 14px 0 18px 0;
}
.post-layout.toc-side .toc-wrap{
grid-column: auto;
}

.s-67ca51 .post-body{
color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.s-67ca51 .post-body p{
margin: 0 0 14px 0;
}

.s-67ca51 .post-body section{
margin: 0 0 18px 0;
}

.s-67ca51 .post-body h2{
margin: 26px 0 10px 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.s-67ca51 .post-body h3{
margin: 16px 0 8px 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
}

.s-67ca51 .post-body strong{
font-weight: 700;
}

.s-67ca51 .post-body .media-block{
margin: 18px 0;
}

.s-67ca51 .post-body .media-block img{
display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.s-67ca51 .post-body ul,
.s-67ca51 .post-body ol{
margin: 0 0 14px 20px;
  padding: 0;
}

.s-67ca51 .post-body li{
margin: 6px 0;
}

.s-67ca51 .post-body ul li::marker{
color: var(--accent);
}

.s-67ca51 .post-body table{
width: 100%;
  border-collapse: collapse;
  margin: 16px 0 18px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.s-67ca51 .post-body thead{
    background: rgb(209 148 126 / 22%);
}

.s-67ca51 .post-body th,
.s-67ca51 .post-body td{
padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.s-67ca51 .post-body th{
font-weight: 700;
  color: var(--text);
}

.s-67ca51 .post-body td{
color: var(--text);
}

.s-67ca51 .post-body tr:last-child td{
border-bottom: none;
}

@media (max-width: 680px){
.s-67ca51 .post-body table{
display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
}

.s-67ca51 .post-body .faq[data-faq]{
background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.s-67ca51 .post-body .faq[data-faq] h2{
margin: 0 0 12px 0;
}

.s-67ca51 .post-body .faq-item{
background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 10px 0;
  overflow: hidden;
}

.s-67ca51 .post-body .faq-item summary{
list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
}

.s-67ca51 .post-body .faq-item summary::-webkit-details-marker{
display: none;
}

.s-67ca51 .post-body .faq-item summary::after{
content: "›";
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transform: rotate(0deg);
  transition: transform .12s ease, color .12s ease;
}

.s-67ca51 .post-body .faq-item[open] summary::after{
transform: rotate(90deg);
  color: var(--accent);
}

.s-67ca51 .post-body .faq-item summary:hover{
background: rgba(45,124,255,.05);
}

.s-67ca51 .post-body .faq-a{
    padding: 0 14px 14px 14px;
    border-top: 1px solid #d9770636;
    border-right: 1px solid #d9770636;
    border-bottom: 1px solid #d9770636;
    background: #e6ddd82b;
    border-left: 4px solid #d97706;
    border-radius: 0 5px 5px 0;
}

.s-67ca51 .post-body .faq-a p{
margin: 10px 0 0 0;
}

.listing-header{
margin:10px 0 18px 0
}

.listing-title{
margin:0 0 8px 0
}

.listing-subtitle{
margin:0
}

.listing-list{
list-style:none !important;
  padding:0 !important;
  margin:0 !important;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.listing-list li::marker{
content:"";
}

.listing-item{
list-style:none !important;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:0;
}

.listing-excerpt{
margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.pagination{
display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:20px 0;
  flex-wrap:wrap;
}

.pagination-link,.pagination-page{
display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:3px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  line-height:1;
}

.pagination-link:hover,.pagination-page:hover{
border-color:rgba(59,130,246,.25);
  text-decoration:none;
}

.pagination-pages{
display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}

.pagination-page.is-active{
background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

.pagination-ellipsis{
color:var(--muted);
  padding:0 4px;
}

.listing-card{
display:grid;
  grid-template-columns: 240px 1fr;
  gap:14px;
  align-items:stretch;
  padding:14px;
  color:var(--text);
  text-decoration:none;
}

.listing-card:hover{
text-decoration:none;
}

.listing-thumb{
border-radius:var(--radius);
  overflow:hidden;
  background:rgba(15,23,42,.04);
}

.listing-thumb img{
width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}

.listing-meta{
min-width:0
}

.listing-title{
font-weight:800;
  font-size:16px;
  margin:0 0 8px 0;
  color:var(--text);
  line-height:1.25;
}

.listing-card:hover .listing-title{
color:var(--accent);
}

@media (max-width: 720px){
.listing-card{
grid-template-columns: 1fr;
    padding:12px;
}
.listing-thumb img{
height:180px;
}
}

.post-head{
display:flex;flex-direction:column;gap:10px;margin:12px 0 18px
}

.post-kicker{
display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase
}

.post-kicker__label{
opacity:.75
}

.post-kicker__sep{
opacity:.45
}

.post-kicker__link{
text-decoration:none
}

.post-kicker__link:hover{
text-decoration:underline
}

.post-meta{
display:flex;flex-wrap:wrap;gap:10px;font-size:13px
}

.post-meta__item{
opacity:.85
}

.post-meta__muted{
opacity:.6
}

.post-actions{
display:flex;flex-wrap:wrap;gap:8px
}

.post-action{
display:inline-flex;align-items:center;gap:6px;padding:10px 12px;border-radius:5px;text-decoration:none;font-size:12px;letter-spacing:.08em;text-transform:uppercase;line-height:1;opacity:.95
}

.post-action:hover{
text-decoration:none;opacity:1
}

.breadcrumbs{
display:flex;
  width:100%;
  box-sizing:border-box;
  align-items:center;
  gap:6px;
  padding:5px 15px;
  border-radius:5px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  margin:-20px 0 20px;
  font-size:13px;
}

.breadcrumbs-list{
list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}

.breadcrumbs-item{
display:inline-flex;
  align-items:center;
  color:var(--muted);
}

.breadcrumbs-item::marker{
content:"";
}

.breadcrumbs-item + .breadcrumbs-item::before{
content:"›";
  display:inline-block;
  margin:0 8px 0 2px;
  color:var(--muted);
  opacity:.75;
}

.breadcrumbs a,
.breadcrumbs-list a,
nav.breadcrumbs a{
color:var(--accent);
  text-decoration:none;
}

.breadcrumbs a:hover,
.breadcrumbs-list a:hover,
nav.breadcrumbs a:hover{
opacity:.9;
  text-decoration:underline;
}

.breadcrumbs .sep{
color:var(--muted);
}

.breadcrumbs + h1,
.breadcrumbs + .listing-title{
margin-top:6px;
}

body.palette-dark_contrast{
--bg: var(--bg);
}

body.palette-dark_contrast .btn{
box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

body.palette-dark_contrast .ad-slot{
background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}

body.palette-dark_contrast .card,
body.palette-dark_contrast .faq{
box-shadow: 0 14px 34px rgba(0,0,0,.50);
}

body.palette-dark_contrast a{
text-decoration:none;
}

body.palette-dark_contrast a:hover{
text-decoration:underline;
}

.pagination a,
.pagination span{
display:inline-flex;
  justify-content:center;
  align-items:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:5px;
  background:var(--card);
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  box-shadow:var(--shadow);
}

.pagination a:hover{
border-color:var(--accent);
}

.pagination .active,
.pagination .current{
background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

.pagination .dots{
background:transparent;
  border:none;
  box-shadow:none;
  min-width:auto;
  padding:0 4px;
  color:var(--muted);
}

.post-item, .listing-card{
position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}

.post-item:hover, .listing-card:hover{
transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.10);
}

.post-item .post-thumb, .listing-card .listing-thumb{
overflow: hidden;
  border-radius: var(--radius);
}

.post-item img, .listing-card img{
transform: scale(1);
  transition: transform .22s ease;
  will-change: transform;
}

.post-item:hover img, .listing-card:hover img{
transform: scale(1.20);
}

.post-item a, .listing-card a{
color: inherit !important;
  text-decoration: none !important;
}

.post-item a:hover, .listing-card a:hover{
color: inherit !important;
  text-decoration: none !important;
}

.page-category .listing-header,
.page-tag .listing-header{
padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

.page-category .listing-header,
.page-tag .listing-header,
.page-home .listing-header{
margin-top: 8px; 
  padding-top: 0;
}

.page-post .post{
background:var(--card);
  border:1px solid var(--border);
  border-radius:5px;
  box-shadow:var(--shadow);
  padding:18px;
}

.page-post .post-header{
margin-bottom:14px;
}

.page-post .post-header h1{
margin:0;
  font-size:32px;
  line-height:1.15;
  letter-spacing:-0.2px;
}

.page-post .post-body{
font-size:16px;
  line-height:1.75;
  color:var(--text);
}

.page-post .post-body p{
margin:0 0 14px;
}

.page-post .post-body h2{
margin:26px 0 10px;
  font-size:22px;
  line-height:1.25;
}

.page-post .post-body h3{
margin:18px 0 8px;
  font-size:18px;
  line-height:1.25;
}

.page-post .post-body ul,
.page-post .post-body ol{
margin:0 0 14px 42px;
  padding:0;
}

.page-post .post-body li{
margin:6px 0;
}

.page-post .post-body a{
color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}

.page-post .post-body a:hover{
opacity:.92;
}

.page-post .post-body img{
max-width:100%;
  height:auto;
  border-radius:5px;
  display:block;
}

.page-post .toc{
background:var(--card);
  border:1px solid var(--border);
  border-radius:5px;
  padding:12px 14px;
  margin:14px 0 16px;
}

.page-post .toc .toc-title{
font-weight:700;
  margin:0 0 8px;
  color:var(--text);
}

.page-post .toc a{
color:var(--text);
  text-decoration:none;
}

.page-post .toc a:hover{
color:var(--accent);
}

.page-post .faq,
.page-post [data-faq]{
margin-top:18px;
}

.page-post .faq-item,
.page-post [data-faq] details{
background:var(--card);
  border:1px solid var(--border);
  border-radius:5px;
  padding:10px 12px;
  margin:10px 0;
}

.page-post .faq-item summary,
.page-post [data-faq] summary{
cursor:pointer;
  font-weight:700;
  color:var(--text);
  list-style:none;
}

.page-post .faq-item summary::-webkit-details-marker,
.page-post [data-faq] summary::-webkit-details-marker{
display:none;
}

.page-post .faq-a{
margin-top:8px;
  color:var(--text);
}

.page-post .post-footer{
margin-top:18px;
}

body.style-rounded_soft .card,
body.style-rounded_soft .post-item,
body.style-rounded_soft .listing-item{
border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

body.style-sharp_border .card,
body.style-sharp_border .post-item,
body.style-sharp_border .listing-item{
border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--border);
}

body.style-compact_pro .container{
max-width: 980px;
}

body.style-compact_pro p{
line-height: 1.55;
  margin-bottom: 0.75rem;
}

body.style-compact_pro h2{
margin-top: 1.4rem;
}

body.style-wide_mag .container{
max-width: 1200px;
}

body.style-wide_mag p{
line-height: 1.8;
  margin-bottom: 1.2rem;
}

body.style-wide_mag h1{
font-size: 2.6rem;
}

body.style-wide_mag h2{
font-size: 1.9rem;
  margin-top: 2rem;
}

/* ================================
   WIDTH_TUNING_V1
   Fix narrow content on wide screens.
   - Uses --content-w as the main text column target.
   - Adds explicit sidebar width and correct grid columns for post/listing layouts with sidebar.
================================ */

:root{
  --sidebar-w: 380px;
  --sidebar-w-compact: 340px;
  --sidebar-w-tight: 300px;
  --layout-gap: 32px;
  --layout-gap-compact: 28px;
  --layout-gap-tight: 22px;
  --container-max: 1480px;
}

/* Make container wide enough for content + sidebar */
.container{
  max-width: min(var(--container-max), calc(var(--content-w) + var(--sidebar-w) + var(--layout-gap)));
}

/* Ensure content column is allowed to grow inside grid */
.post,
.listing-main{
  min-width: 0;
}

/* SIDEBAR_LAYOUT_V1 — unified sidebar system (post/category/tag/home) */

.listing-layout,
.post-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--layout-gap);
}

/* sidebar right */
.sidebar-right{
  grid-template-columns:minmax(0, 1fr) minmax(280px, var(--sidebar-w));
}

.sidebar-right .listing-main,
.sidebar-right .post{
  order:1;
}

.sidebar-right .listing-sidebar,
.sidebar-right .post-sidebar{
  order:2;
}

/* sidebar left */
.sidebar-left{
  grid-template-columns:minmax(280px, var(--sidebar-w)) minmax(0, 1fr);
}

.sidebar-left .listing-sidebar,
.sidebar-left .post-sidebar{
  order:1;
}

.sidebar-left .listing-main,
.sidebar-left .post{
  order:2;
}

/* sidebar off */
.sidebar-off .listing-sidebar,
.sidebar-off .post-sidebar{
  display:none;
}

/* sidebar container */
.listing-sidebar,
.post-sidebar{
  min-width:0;
  width:100%;
  position:sticky;
  top:110px;
  align-self:start;
  height:fit-content;
}

.listing-sidebar > *,
.post-sidebar > *{
  min-width:0;
}

/* Ensure sidebar stays sticky on desktop even for toc-side */
@media (min-width: 901px){
  .post-layout.toc-side .post-sidebar{
    position: sticky;
    top: 110px;
  }
}

/* sidebar widgets */
.sidebar-block{
  margin-bottom:28px;
}

.sidebar-title{
  font-weight:700;
  margin-bottom:12px;
}

.sidebar-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* medium desktop: sidebar gets narrower before stacking */
@media (max-width: 1360px){
  :root{
    --sidebar-w: var(--sidebar-w-compact);
    --layout-gap: var(--layout-gap-compact);
  }
}

/* narrow desktop / landscape tablet: make sidebar tighter */
@media (max-width: 1220px){
  :root{
    --sidebar-w: var(--sidebar-w-tight);
    --layout-gap: var(--layout-gap-tight);
  }
}

/* tablet and down: sidebar goes under content earlier */
@media (max-width: 1080px){
  .listing-layout,
  .post-layout,
  .sidebar-right,
  .sidebar-left{
    grid-template-columns:minmax(0,1fr);
  }

  .listing-main,
  .post,
  .listing-sidebar,
  .post-sidebar{
    min-width:0;
    width:100%;
  }

  .listing-sidebar,
  .post-sidebar{
    position:relative;
    top:auto;
  }
}

/* ================================
   TOC_STICKY_GUARD_V2
   Sticky breaks if ancestors have overflow hidden/auto or transform.
   IMPORTANT: do NOT override position/top here (it disables sticky).
================================ */
.post-layout.toc-side{
  overflow: visible;
}
.post-layout.toc-side .post,
.post-layout.toc-side .post-sidebar{
  overflow: visible;
}

/* TOC in sticky sidebar: sidebar sticks, TOC scrolls inside */
.post-layout.toc-side .post-sidebar nav.toc{
  position: static;
  max-height: calc(100vh - 140px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

/* TOC list reset for sidebar mode */
.post-layout.toc-side .post-sidebar nav.toc .toc-list,
.post-layout.toc-side .post-sidebar nav.toc ul{
  margin: 0;
  padding-left: 0;
  list-style: none;
}

/* Mobile: sidebar becomes normal flow, TOC should not be sticky */
@media (max-width: 900px){
  .post-layout.toc-side .post-sidebar nav.toc{
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

/* ================================
   HERO_POST_V1
   Clean solid hero for articles
================================ */
.page-post .post-header.hero{
  margin:0 0 16px 0;
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow);
}

.page-post .hero-title{
  margin:0;
  font-size:34px;
  line-height:1.15;
  letter-spacing:-0.02em;
}

.page-post .hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  align-items:center;
}

.page-post .hero-dot{
  opacity:.5;
}

.page-post .hero-lead{
  margin:12px 0 0 0;
  font-size:16px;
  line-height:1.65;
  color:var(--text);
  opacity:.92;
  max-width:72ch;
}

/* ================================
   TOC_COLLAPSE_V1
   Collapse H3 under H2
================================ */

.toc .toc-sub{
  display:none;
}

.toc .toc-h2.is-open > .toc-sub,
.toc .toc-h2.is-pinned > .toc-sub{
  display:block;
}

/* ================================
   TOC_PREMIUM_UI_V2
   Premium minimal navigation style
   - centered title
   - menu-like rows
   - hover opens submenu
   - click pin handled by theme.js
================================ */

.toc{
  padding:16px;
  backdrop-filter:saturate(120%) blur(2px);
}

.toc .toc-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 0 14px 0;
  padding:0 0 12px 0;
  text-align:center;
  font-size:12px;
  font-weight:800;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text);
  border-bottom:1px solid var(--border);
}

.toc .toc-title::before,
.toc .toc-title::after{
  content:"";
  flex:1 1 auto;
  max-width:52px;
  height:1px;
      background: linear-gradient(90deg, rgb(216 83 26 / 55%), var(--border));
}

.toc .toc-title::after{
      background: linear-gradient(90deg, rgb(216 83 26 / 55%), var(--border));
}

.toc .toc-list,
.toc .toc-sub{
  list-style:none;
}

.toc .toc-h2{
  position:relative;
}

.toc .toc-h2 > a{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:calc(var(--radius) - 1px);
  background:rgba(15,23,42,.02);
  color:var(--text);
  font-size:14px;
  font-weight:700;
  line-height:1.45;
  text-decoration:none;
  transition:background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease, transform .08s ease;
}

.toc .toc-h2 > a:hover{
  background:rgba(59,130,246,.06);
  border-color:rgba(59,130,246,.14);
  color:var(--accent);
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}

.toc .toc-h2 > a:active{
  transform:translateY(1px);
}

.toc .toc-h2 > a::after{
  content:"›";
  position:static;
  flex:0 0 auto;
  margin-left:auto;
  font-size:16px;
  line-height:1;
  opacity:.62;
  transform:rotate(90deg);
  transition:transform .14s ease, opacity .14s ease, color .14s ease;
}

.toc .toc-h2:hover > a::after,
.toc .toc-h2.is-open > a::after,
.toc .toc-h2.is-pinned > a::after{
  opacity:.96;
  color:var(--accent);
  transform:rotate(0deg);
}

.toc .toc-sub{
  margin:6px 0 2px 0;
  padding:0 0 0 10px;
  border-left:1px solid rgba(15,23,42,.08);
}

.toc .toc-sub > li{
  margin:4px 0;
}

.toc .toc-sub > li.toc-h3{
  padding-left:0;
  background: #f5f5f5;
}

.toc .toc-sub > li.toc-h3::before{
  content:none;
}

.toc .toc-h3 > a{
  display:block;
  padding:7px 10px;
  border-radius:calc(var(--radius) - 2px);
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  text-decoration:none;
  transition:background .14s ease, color .14s ease, transform .08s ease;
}

.toc .toc-h3 > a:hover{
  background:rgba(59,130,246,.05);
  color:var(--accent);
}

.toc .toc-h2:hover > .toc-sub,
.toc .toc-h2.is-open > .toc-sub,
.toc .toc-h2.is-pinned > .toc-sub{
  display:block;
}

@media (max-width: 900px){
  .toc{
    padding:14px;
  }

  .toc .toc-title{
    margin-bottom:12px;
  }

  .toc .toc-h2 > a{
    padding:9px 10px;
    font-size:14px;
  }

  .toc .toc-h3 > a{
    padding:6px 8px;
  }
}
/* SIDEBAR_POCKET_V2 */

.sidebar-pocket{
margin-bottom:24px;
}

.sidebar-pocket > :not(script){
display:block;
width:100%;
max-width:100%;
box-sizing:border-box;
border-radius:14px;
}

.listing-sidebar .sidebar-pocket > :not(script),
.post-sidebar .sidebar-pocket > :not(script){
border-color:rgba(194,138,42,.24) !important;
box-shadow:0 8px 20px rgba(15,23,42,.05);
}

.sidebar-pocket iframe,
.sidebar-pocket img{
max-width:100%;
height:auto;
border-radius:inherit;
}

.sidebar-pocket script{
display:none;
}

@media (max-width:1080px){
.listing-sidebar .sidebar-pocket,
.post-sidebar .sidebar-pocket{
padding-inline:16px;
}
}

@media (max-width:640px){
.listing-sidebar .sidebar-pocket,
.post-sidebar .sidebar-pocket{
padding-inline:12px;
}
}
/* ================================
   HEADER_PREMIUM_FINTECH_V3
   Unified header without duplicate blocks.
================================ */

.site-header.premium-header{
  --header-accent:#9a6616;
  --header-accent-soft:rgba(194,138,42,.14);
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:70;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid rgba(15,23,42,.08);
  box-shadow:0 6px 20px rgba(15,23,42,.04);
}

.site-header.premium-header .header-inner{
  display:grid;
  grid-template-columns:minmax(0, auto) minmax(0, 1fr);
  align-items:center;
  column-gap:24px;
  row-gap:14px;
  min-height:78px;
  padding-top:10px;
  padding-bottom:10px;
}

.site-header.premium-header .brand{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.site-header.premium-header .brand-link,
.site-header.premium-header .brand-link-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:fit-content;
  min-width:0;
  color:var(--text);
  text-decoration:none;
}

.site-header.premium-header .brand-logo{
  width:34px;
  height:34px;
  flex:0 0 34px;
  filter:drop-shadow(0 6px 10px rgba(15,23,42,.08));
  transition:transform .18s ease, filter .18s ease;
}

.site-header.premium-header .brand-link-logo:hover .brand-logo{
  transform:translateY(-1px) scale(1.03);
  filter:drop-shadow(0 10px 18px rgba(15,23,42,.12));
}

.site-header.premium-header .brand-text{
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  min-width:0;
}

.site-header.premium-header .brand-name{
  font-size:18px;
  font-weight:800;
  line-height:1;
  letter-spacing:-.03em;
  color:var(--text);
}

.site-header.premium-header .brand-domain{
  margin-left:1px;
  font-size:17px;
  font-weight:700;
  line-height:1;
  color:var(--header-accent);
}

.site-header.premium-header .brand-tagline{
  margin-left:44px;
  font-size:11px;
  line-height:1.25;
  letter-spacing:-.01em;
  opacity:.92;
}

.site-header.premium-header .header-nav-toggle{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}



.site-header.premium-header .header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
  margin-left:auto;
}

.site-header.premium-header .header-nav{
  display:flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border:1px solid rgba(15,23,42,.06);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
}

.site-header.premium-header .header-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  color:var(--text);
  font-size:13px;
  font-weight:700;
  letter-spacing:-.01em;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  transition:color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.site-header.premium-header .header-link::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:7px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, transparent, var(--header-accent), transparent);
  opacity:0;
  transform:scaleX(.55);
  transition:opacity .16s ease, transform .16s ease;
}

.site-header.premium-header .header-link:hover{
  background:rgba(15,23,42,.045);
  color:var(--text);
  text-decoration:none;
  transform:translateY(-1px);
}

.site-header.premium-header .header-link:hover::after{
  opacity:1;
  transform:scaleX(1);
}

.site-header.premium-header .header-link.is-active,
.site-header.premium-header .header-link[aria-current="page"]{
  color:#6f4711;
  background:var(--header-accent-soft);
  box-shadow:inset 0 0 0 1px rgba(194,138,42,.18);
}

.site-header.premium-header .header-link.is-active::after,
.site-header.premium-header .header-link[aria-current="page"]::after{
  opacity:1;
  transform:scaleX(1);
}

.site-header.premium-header .header-utils{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.site-header.premium-header .header-icon-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:999px;
  color:var(--header-accent);
  background:rgba(255,255,255,.72);
  box-shadow:0 4px 12px rgba(15,23,42,.05);
  transition:transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.site-header.premium-header .header-icon-link:hover{
  transform:translateY(-1px);
  text-decoration:none;
  background:rgba(255,255,255,.94);
  border-color:rgba(15,23,42,.12);
  color:var(--text);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}

.site-header.premium-header .header-icon-link svg,
.site-header.premium-header .header-icon-svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
}

.site-header.premium-header .header-sr{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

@media (max-width: 1180px){
  .site-header.premium-header .header-inner{
    column-gap:18px;
  }

  .site-header.premium-header .header-actions{
    gap:10px;
  }

  .site-header.premium-header .header-link{
    padding:0 12px;
    font-size:12px;
  }
}

@media (max-width: 1060px){
  .site-header.premium-header .header-inner{
    position:relative;
    grid-template-columns:minmax(0, 1fr) auto;
    min-height:auto;
  }

  .site-header.premium-header .header-menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    inline-size:42px;
    block-size:42px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:14px;
    background:rgba(255,255,255,.72);
    color:var(--header-accent);
    box-shadow:0 6px 16px rgba(15,23,42,.05);
    cursor:pointer;
    transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
  }

  .site-header.premium-header .header-menu-toggle:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.94);
    border-color:rgba(15,23,42,.12);
    box-shadow:0 8px 18px rgba(15,23,42,.08);
  }

  .site-header.premium-header .header-menu-toggle-box{
    position:relative;
    display:block;
    width:18px;
    height:12px;
  }

  .site-header.premium-header .header-menu-toggle-line{
    position:absolute;
    left:0;
    width:100%;
    height:2px;
    border-radius:999px;
    background:currentColor;
    transition:transform .18s ease, opacity .18s ease, top .18s ease;
  }

  .site-header.premium-header .header-menu-toggle-line:nth-child(1){
    top:0;
  }

  .site-header.premium-header .header-menu-toggle-line:nth-child(2){
    top:5px;
  }

  .site-header.premium-header .header-menu-toggle-line:nth-child(3){
    top:10px;
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle{
    background:var(--header-accent-soft);
    border-color:rgba(194,138,42,.22);
    color:#6f4711;
    box-shadow:0 8px 18px rgba(194,138,42,.10);
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle .header-menu-toggle-line:nth-child(1){
    top:5px;
    transform:rotate(45deg);
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle .header-menu-toggle-line:nth-child(2){
    opacity:0;
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle .header-menu-toggle-line:nth-child(3){
    top:5px;
    transform:rotate(-45deg);
  }

  .site-header.premium-header .header-actions{
    display:none;
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    right:0;
    z-index:140;
    width:100%;
    box-sizing:border-box;
    margin:0;
    padding:10px;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle + .header-actions{
    display:flex;
  }

  .site-header.premium-header .header-nav{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    width:100%;
    padding:8px;
    border-radius:18px;
  }

  .site-header.premium-header .header-link{
    justify-content:flex-start;
    min-height:42px;
    padding:0 14px;
    border-radius:14px;
  }

  .site-header.premium-header .header-link::after{
    display:none;
  }

  .site-header.premium-header .header-utils{
    justify-content:flex-start;
    padding-inline:2px;
  }
}


@media (max-width: 640px){
  body{
    padding-top:88px;
  }

  .site-header.premium-header .header-inner{
    column-gap:12px;
    row-gap:12px;
    padding-top:8px;
    padding-bottom:8px;
  }

  .site-header.premium-header .brand-link-logo{
    gap:9px;
  }

  .site-header.premium-header .brand-logo{
    width:30px;
    height:30px;
    flex-basis:30px;
  }

  .site-header.premium-header .brand-name{
    font-size:16px;
  }

  .site-header.premium-header .brand-domain{
    font-size:15px;
  }

  .site-header.premium-header .brand-tagline{
    margin-left:39px;
    font-size:10px;
    line-height:1.25;
    max-width:26ch;
  }

  .site-header.premium-header .header-menu-toggle,
  .site-header.premium-header .header-icon-link{
    inline-size:36px;
    block-size:36px;
  }
}

@media (max-width: 480px){
  .site-header.premium-header .brand-tagline{
    display:none;
  }
}

/* ================================
   FOOTER_PREMIUM_V1
================================ */

.site-footer{
margin-top:60px;
padding:40px 0 20px 0;
border-top:1px solid var(--border);
background:var(--bg);
}

.footer-inner{
display:flex;
flex-direction:column;
gap:28px;
}

.footer-top{
display:grid;
grid-template-columns: 1.2fr 2fr;
gap:40px;
}

.footer-brand{
font-weight:800;
font-size:18px;
color:var(--text);
text-decoration:none;
}

.footer-tagline{
margin-top:4px;
font-size:13px;
}

.footer-note{
margin-top:10px;
font-size:13px;
max-width:420px;
line-height:1.5;
}

.footer-grid{
display:grid;
grid-template-columns: repeat(3,1fr);
gap:30px;
}

.footer-title{
font-weight:700;
margin-bottom:10px;
font-size:14px;
}

.footer-links{
list-style:none;
padding:0;
margin:0;
display:flex;
flex-direction:column;
gap:6px;
}

.footer-links a{
color:var(--muted);
text-decoration:none;
font-size:14px;
}

.footer-links a:hover{
color:var(--accent);
}

.footer-bottom{
display:flex;
align-items:center;
gap:8px;
font-size:13px;
border-top:1px solid var(--border);
padding-top:14px;
}

.footer-bottom-sep{
opacity:.5;
}

/* mobile */

@media (max-width:900px){

.footer-top{
grid-template-columns:1fr;
}

.footer-grid{
grid-template-columns:1fr 1fr;
gap:24px;
}
}

@media (max-width:560px){
.footer-grid{
grid-template-columns:1fr;
}
}
/* ================================
   FOOTER_PREMIUM_FINTECH_V2
================================ */

.site-footer.premium-footer{
  margin-top:72px;
  padding:44px 0 20px 0;
  border-top:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0) 60%);
}

.site-footer.premium-footer .footer-inner{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.site-footer.premium-footer .footer-top{
  display:grid;
  grid-template-columns:minmax(280px, 1.1fr) minmax(0, 2fr);
  gap:48px;
  align-items:start;
}

.site-footer.premium-footer .footer-branding{
  min-width:0;
}

.site-footer.premium-footer .footer-brand-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
}

.site-footer.premium-footer .footer-logo{
  width:32px;
  height:32px;
  flex:0 0 32px;
}

.site-footer.premium-footer .footer-wordmark{
  display:inline-flex;
  align-items:baseline;
  gap:3px;
}

.site-footer.premium-footer .footer-name{
  font-size:17px;
  font-weight:800;
  line-height:1;
  letter-spacing:-.03em;
  color:var(--text);
}

.site-footer.premium-footer .footer-domain{
  font-size:16px;
  font-weight:700;
  line-height:1;
  color:#c28a2a;
}

.site-footer.premium-footer .footer-tagline{
  margin-top:6px;
  margin-left:42px;
  font-size:12px;
  line-height:1.25;
}

.site-footer.premium-footer .footer-note{
  margin-top:12px;
  max-width:420px;
  font-size:13px;
  line-height:1.55;
}

.site-footer.premium-footer .footer-service-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.site-footer.premium-footer .footer-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 12px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
}

.site-footer.premium-footer .footer-chip:hover{
  transform:translateY(-1px);
  color:#1f2937;
  border-color:rgba(15,23,42,.14);
  box-shadow:0 10px 22px rgba(15,23,42,.06);
  text-decoration:none;
}

.site-footer.premium-footer .footer-chip-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#c28a2a;
  display:inline-block;
}

.site-footer.premium-footer .footer-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:28px;
}

.site-footer.premium-footer .footer-title{
  margin-bottom:12px;
  font-size:14px;
  font-weight:700;
  color:var(--text);
}

.site-footer.premium-footer .footer-links{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.site-footer.premium-footer .footer-links a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  line-height:1.4;
  transition:color .16s ease, transform .16s ease;
}

.site-footer.premium-footer .footer-links a:hover{
  color:var(--text);
  text-decoration:none;
  transform:translateX(2px);
}

.site-footer.premium-footer .footer-links-icons a{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.site-footer.premium-footer .footer-mini-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(194,138,42,.10);
  color:#c28a2a;
  font-size:11px;
  line-height:1;
  flex:0 0 18px;
}

.site-footer.premium-footer .footer-bottom{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  padding-top:14px;
  border-top:1px solid rgba(15,23,42,.08);
  font-size:13px;
}

.site-footer.premium-footer .footer-bottom-sep{
  opacity:.5;
}

@media (max-width: 1100px){
  .site-footer.premium-footer .footer-top{
    grid-template-columns:1fr;
    gap:32px;
  }

  .site-footer.premium-footer .footer-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px){
  .site-footer.premium-footer .footer-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .site-footer.premium-footer .footer-tagline{
    margin-left:42px;
  }

  .site-footer.premium-footer .footer-service-cloud{
    gap:8px;
  }

  .site-footer.premium-footer .footer-chip{
    min-height:32px;
    padding:0 10px;
    font-size:13px;
  }
}

/* ================================
   HOME_TAXONOMY_PREMIUM_V1
   Premium minimal styling for home/category/tag sidebar taxonomy blocks.
================================ */
.listing-sidebar .sidebar-taxonomy-block,
.post-sidebar .sidebar-taxonomy-block{
  margin: 0 0 22px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 100%);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

.listing-sidebar .sidebar-taxonomy-block + .sidebar-taxonomy-block,
.post-sidebar .sidebar-taxonomy-block + .sidebar-taxonomy-block{
  margin-top: 18px;
}

.listing-sidebar .sidebar-title,
.post-sidebar .sidebar-title{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}

.sidebar-taxonomy-chips,
.sidebar-chips{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar-taxonomy-chips > li,
.sidebar-chips > li,
.chip-item{
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-taxonomy-chips > li::marker,
.sidebar-chips > li::marker,
.chip-item::marker{
  content: '';
}

.sidebar-taxonomy-chips .chip,
.sidebar-chips .chip,
.chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease, background-color .18s ease;
}

.sidebar-taxonomy-chips .chip:hover,
.sidebar-taxonomy-chips .chip:focus-visible,
.sidebar-chips .chip:hover,
.sidebar-chips .chip:focus-visible,
.chip:hover,
.chip:focus-visible{
  color: var(--accent);
  border-color: rgba(59,130,246,.22);
  background: rgba(59,130,246,.05);
  box-shadow: 0 8px 18px rgba(59,130,246,.12);
  text-decoration: none;
  transform: translateY(-1px);
  outline: none;
}

.sidebar-taxonomy-chips .chip-label,
.sidebar-chips .chip-label,
.chip-label{
  display: inline-block;
}

@media (max-width: 900px){
  .listing-sidebar .sidebar-taxonomy-block,
  .post-sidebar .sidebar-taxonomy-block{
    padding: 16px;
    border-radius: 14px;
  }

  .sidebar-taxonomy-chips,
  .sidebar-chips{
    gap: 8px;
  }

  .sidebar-taxonomy-chips .chip,
  .sidebar-chips .chip,
  .chip{
    min-height: 32px;
    padding: 7px 11px;
    font-size: 13px;
  }
}

/* POST_RELATED_TAGS_V1 */
.page-post .post-related,
.page-post .post-tags-block{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--border);
}

.page-post .post-related-head{
  margin:0 0 14px 0;
}

.page-post .post-related-title,
.page-post .post-tags-title{
  margin:0 0 6px 0;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-0.01em;
}

.page-post .post-related-subtitle{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.page-post .post-related-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.page-post .related-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:5px;
  box-shadow:var(--shadow);
  padding:14px;
}

.page-post .related-card-kicker{
  display:inline-block;
  margin:0 0 8px 0;
  color:#9a6616;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}

.page-post .related-card-title{
  margin:0 0 8px 0;
  font-size:17px;
  line-height:1.28;
}

.page-post .related-card-title a{
  color:var(--text);
  text-decoration:none;
}

.page-post .related-card-title a:hover{
  color:var(--accent);
  text-decoration:none;
}

.page-post .related-card-excerpt{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.page-post .post-tags-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.page-post .post-tag-chip{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:5px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  line-height:1;
}

.page-post .post-tag-chip:hover{
  border-color:rgba(15,23,42,.16);
  color:var(--accent);
  text-decoration:none;
}

@media (max-width: 900px){
  .page-post .post-related-grid{
    grid-template-columns:1fr;
  }
}

/* ================================
   HEADER_BURGER_MOBILE_FINAL_V1
   Single final mobile burger/dropdown fix.
================================ */
.site-header.premium-header{
  overflow:visible;
}

.site-header.premium-header .header-inner{
  box-sizing:border-box;
}

@media (max-width: 1060px){
  .site-header.premium-header .header-inner{
    position:relative;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center;
    width:100%;
    box-sizing:border-box;
    overflow:visible;
  }

  .site-header.premium-header .brand{
    min-width:0;
  }

  .site-header.premium-header .header-menu-toggle{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    justify-self:end;
    align-self:center;
    margin-left:auto;
    inline-size:42px;
    block-size:42px;
    flex:0 0 42px;
    border:2px solid #c28a2a;
    border-radius:14px;
    background:#fff;
    color:#9a6616;
    box-shadow:0 8px 20px rgba(15,23,42,.10);
    cursor:pointer;
    position:relative;
    z-index:160;
  }

  .site-header.premium-header .header-menu-toggle-box{
    position:relative;
    display:block;
    width:18px;
    height:12px;
  }

  .site-header.premium-header .header-menu-toggle-line{
    position:absolute;
    left:0;
    width:100%;
    height:2px;
    border-radius:999px;
    background:currentColor;
    opacity:1;
  }

  .site-header.premium-header .header-menu-toggle-line:nth-child(1){ top:0; }
  .site-header.premium-header .header-menu-toggle-line:nth-child(2){ top:5px; }
  .site-header.premium-header .header-menu-toggle-line:nth-child(3){ top:10px; }

  .site-header.premium-header .header-actions{
    display:none !important;
    position:absolute !important;
    top:calc(100% + 10px);
    left:0;
    right:0;
    z-index:150;
    width:100%;
    box-sizing:border-box;
    margin:0;
    padding:10px;
    border:1px solid rgba(15,23,42,.10);
    border-radius:16px;
    background:rgba(255,255,255,.98);
    box-shadow:0 18px 40px rgba(15,23,42,.12);
    backdrop-filter:saturate(150%) blur(10px);
    -webkit-backdrop-filter:saturate(150%) blur(10px);
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle{
    background:var(--header-accent-soft);
    color:#6f4711;
    border-color:rgba(194,138,42,.24);
    box-shadow:0 10px 24px rgba(194,138,42,.14);
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle .header-menu-toggle-line:nth-child(1){
    top:5px;
    transform:rotate(45deg);
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle .header-menu-toggle-line:nth-child(2){
    opacity:0;
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle .header-menu-toggle-line:nth-child(3){
    top:5px;
    transform:rotate(-45deg);
  }

  .site-header.premium-header .header-nav-toggle:checked + .header-menu-toggle + .header-actions{
    display:flex !important;
  }

  .site-header.premium-header .header-nav{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:0;
    border:none;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .site-header.premium-header .header-link{
    width:100%;
    min-height:44px;
    justify-content:flex-start;
    padding:0 14px;
    border-radius:12px;
    background:rgba(15,23,42,.03);
  }

  .site-header.premium-header .header-link::after{
    display:none;
  }

  .site-header.premium-header .header-utils{
    width:100%;
    display:flex;
    justify-content:flex-start;
    gap:8px;
    padding-top:4px;
    border-top:1px solid rgba(15,23,42,.08);
  }
}

@media (max-width: 640px){
  .site-header.premium-header .header-menu-toggle{
    inline-size:36px;
    block-size:36px;
    flex-basis:36px;
  }

  .site-header.premium-header .header-actions{
    padding:8px;
    border-radius:14px;
  }

  .site-header.premium-header .header-link{
    min-height:42px;
    padding:0 12px;
    font-size:13px;
  }
}
/* CONTAINER_RIGHT_EDGE_FIX */
.container,
.site-header .container,
.site-header .header-inner,
main.container{
  box-sizing:border-box !important;
}

@media (max-width:1060px){
  .site-header.premium-header .header-inner{
    padding-right:14px !important;
    padding-left:14px !important;
  }
}
/* ================================
   HEADER_DESKTOP_ALIGN_AND_MOBILE_WIDTH_FIX_V1
   - hide burger on desktop so nav returns to first row
   - align desktop nav group to the right/sidebar edge
   - prevent mobile width overflow in header + TOC/content cards
================================ */

@media (min-width: 1061px){
  .site-header.premium-header .header-menu-toggle{
    display:none !important;
  }

  .site-header.premium-header .header-inner{
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:start;
  }

  .site-header.premium-header .header-actions{
    display:flex !important;
    width:auto;
    margin-left:auto;
    justify-self:end;
    align-self:start;
    justify-content:flex-end;
    padding-top:2px;
  }
}

@media (max-width: 1060px){
  .site-header.premium-header .header-inner,
  .site-header.premium-header .header-actions,
  .site-header.premium-header .header-nav,
  .site-header.premium-header .header-link,
  .page-post .post,
  .page-post .post-header,
  .page-post .post-toc-top,
  .page-post .post-content-card,
  .page-post .toc,
  .page-post .toc .toc-h2 > a,
  .page-post .toc .toc-h3 > a,
  .breadcrumbs,
  .post-layout,
  .post-layout > *{
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
  }

  .page-post .toc-list > li{
    margin-right:0 !important;
  }

  .page-post .toc .toc-h2 > a,
  .page-post .toc .toc-h3 > a,
  .site-header.premium-header .header-link{
    width:100%;
    max-width:100%;
  }
}
/* ================================
   FOOTER_MOBILE_REFINEMENT_V1
   Cleaner premium footer on tablet/mobile.
================================ */
@media (max-width: 780px){
  .site-footer.premium-footer{
    margin-top:56px;
    padding:30px 0 18px 0;
  }

  .site-footer.premium-footer .footer-inner{
    gap:20px;
  }

  .site-footer.premium-footer .footer-top{
    gap:20px;
  }

  .site-footer.premium-footer .footer-branding{
    padding:16px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:16px;
    background:rgba(255,255,255,.74);
    box-shadow:0 10px 26px rgba(15,23,42,.05);
  }

  .site-footer.premium-footer .footer-brand-link{
    width:100%;
    justify-content:flex-start;
  }

  .site-footer.premium-footer .footer-tagline{
    margin-top:8px;
    margin-left:42px;
    font-size:12px;
  }

  .site-footer.premium-footer .footer-note{
    max-width:none;
    margin-top:12px;
    font-size:13px;
    line-height:1.55;
  }

  .site-footer.premium-footer .footer-service-cloud{
    margin-top:14px;
    gap:8px;
  }

  .site-footer.premium-footer .footer-chip{
    min-height:32px;
    padding:0 10px;
    font-size:13px;
  }

  .site-footer.premium-footer .footer-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .site-footer.premium-footer .footer-col{
    padding:14px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:14px;
    background:rgba(255,255,255,.7);
    box-shadow:0 8px 22px rgba(15,23,42,.04);
  }

  .site-footer.premium-footer .footer-title{
    margin-bottom:10px;
  }

  .site-footer.premium-footer .footer-links{
    gap:8px;
  }

  .site-footer.premium-footer .footer-links a{
    display:flex;
    align-items:center;
    min-height:40px;
    padding:0 12px;
    border:1px solid rgba(15,23,42,.06);
    border-radius:12px;
    background:rgba(15,23,42,.025);
  }

  .site-footer.premium-footer .footer-links a:hover{
    transform:none;
  }

  .site-footer.premium-footer .footer-bottom{
    justify-content:center;
    text-align:center;
    gap:6px;
    padding-top:12px;
  }
}

@media (max-width: 520px){
  .site-footer.premium-footer{
    margin-top:48px;
    padding:24px 0 16px 0;
  }

  .site-footer.premium-footer .footer-branding{
    padding:14px;
    border-radius:14px;
  }

  .site-footer.premium-footer .footer-brand-link{
    gap:9px;
  }

  .site-footer.premium-footer .footer-logo{
    width:28px;
    height:28px;
    flex-basis:28px;
  }

  .site-footer.premium-footer .footer-name{
    font-size:16px;
  }

  .site-footer.premium-footer .footer-domain{
    font-size:15px;
  }

  .site-footer.premium-footer .footer-tagline{
    margin-left:37px;
    font-size:11px;
    line-height:1.3;
  }

  .site-footer.premium-footer .footer-note{
    font-size:12px;
    line-height:1.5;
  }

  .site-footer.premium-footer .footer-service-cloud{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .site-footer.premium-footer .footer-chip{
    width:100%;
    justify-content:center;
    min-width:0;
    padding:0 8px;
  }

  .site-footer.premium-footer .footer-col{
    padding:12px;
    border-radius:12px;
  }

  .site-footer.premium-footer .footer-links a{
    min-height:38px;
    padding:0 10px;
    font-size:13px;
  }

  .site-footer.premium-footer .footer-bottom{
    flex-direction:column;
  }

  .site-footer.premium-footer .footer-bottom-sep{
    display:none;
  }
}
