/* HTML Online Compiler — Main Stylesheet */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
	margin:0;
	font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
	background:var(--hoc-bg,#0b1020);
	color:var(--hoc-text,#e7ecff);
	line-height:1.6;
	-webkit-font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
body.hoc-no-scroll{overflow:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--hoc-primary,#5b8cff);text-decoration:none;transition:color .18s}
a:hover{color:var(--hoc-accent,#22d3ee)}
:focus-visible{outline:2px solid var(--hoc-primary,#5b8cff);outline-offset:2px;border-radius:4px}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link{position:absolute;left:-9999px;top:8px;background:#fff;color:#000;padding:8px 12px;border-radius:6px;z-index:1000}
.skip-link:focus{left:8px}
button{font-family:inherit;cursor:pointer}
h1,h2,h3,h4{font-weight:700;line-height:1.2;color:var(--hoc-text)}
h1{font-size:clamp(1.8rem,3.6vw,2.6rem)}
h2{font-size:clamp(1.5rem,2.6vw,2rem)}
h3{font-size:1.25rem}

.hoc-container{max-width:var(--hoc-container,1200px);margin:0 auto;padding:0 20px}

/* ============ HEADER ============ */
.hoc-header{
	position:sticky;top:0;z-index:80;
	background:color-mix(in oklab, var(--hoc-bg) 78%, transparent);
	backdrop-filter:saturate(160%) blur(14px);
	-webkit-backdrop-filter:saturate(160%) blur(14px);
	border-bottom:1px solid rgba(255,255,255,.08);
}
.hoc-header__inner{max-width:var(--hoc-container,1200px);margin:0 auto;display:flex;align-items:center;gap:22px;padding:14px 20px}
.hoc-logo{display:inline-flex;align-items:center;gap:10px;font-weight:800;color:var(--hoc-text);font-size:1.05rem}
.hoc-logo__mark{
	display:inline-grid;place-items:center;width:34px;height:34px;border-radius:9px;
	background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));
	color:#0b1020;font-family:'JetBrains Mono',monospace;font-size:.85rem;font-weight:700;
	box-shadow:0 6px 18px -6px color-mix(in oklab, var(--hoc-primary) 60%, transparent);
}
.hoc-nav{flex:1;display:flex;justify-content:center}
.hoc-menu{list-style:none;display:flex;gap:6px;padding:0;margin:0;flex-wrap:wrap}
.hoc-menu li{position:relative}
.hoc-menu a{
	display:inline-block;padding:8px 14px;border-radius:8px;color:var(--hoc-text);
	font-weight:500;font-size:.94rem;transition:background .18s,color .18s;
}
.hoc-menu a:hover,.hoc-menu .current-menu-item>a{background:rgba(255,255,255,.06);color:var(--hoc-accent)}
.hoc-menu .sub-menu{
	position:absolute;top:calc(100% + 8px);left:0;min-width:220px;
	background:#12172a;border:1px solid rgba(255,255,255,.08);border-radius:12px;
	padding:8px;list-style:none;margin:0;opacity:0;visibility:hidden;transform:translateY(6px);
	transition:all .18s;box-shadow:0 18px 40px -10px rgba(0,0,0,.5);z-index:90;
}
.hoc-menu li:hover>.sub-menu,.hoc-menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.hoc-menu .sub-menu a{display:block;border-radius:6px}
.hoc-menu .menu-item-has-children>a::after{content:"▾";margin-left:6px;font-size:.7em;opacity:.7}

.hoc-header__actions{display:flex;align-items:center;gap:8px}
.hoc-icon-btn{
	width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.1);
	background:rgba(255,255,255,.04);color:var(--hoc-text);display:grid;place-items:center;transition:all .18s;
}
.hoc-icon-btn:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2)}
.hoc-icon-sun{display:none}
.hoc-theme-light .hoc-icon-sun{display:inline}
.hoc-theme-light .hoc-icon-moon{display:none}
.hoc-cta{
	display:inline-flex;align-items:center;padding:9px 16px;border-radius:10px;
	background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));
	color:#0b1020!important;font-weight:700;font-size:.9rem;
	box-shadow:0 8px 20px -8px color-mix(in oklab, var(--hoc-accent) 60%, transparent);
}
.hoc-cta:hover{transform:translateY(-1px);color:#0b1020}
.hoc-hamburger{display:none;width:40px;height:40px;background:transparent;border:0;flex-direction:column;justify-content:center;align-items:center;gap:5px}
.hoc-hamburger span{display:block;width:22px;height:2px;background:var(--hoc-text);border-radius:2px;transition:transform .25s,opacity .25s}
.hoc-hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hoc-hamburger[aria-expanded="true"] span:nth-child(2){opacity:0}
.hoc-hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Search panel */
.hoc-search-panel{border-top:1px solid rgba(255,255,255,.08);background:rgba(11,16,32,.9);padding:16px 20px;max-width:var(--hoc-container,1200px);margin:0 auto}
.hoc-search-form{display:flex;gap:8px;max-width:720px;margin:0 auto}
.hoc-search-form input{
	flex:1;padding:12px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.12);
	background:#0e1430;color:var(--hoc-text);font-size:1rem;
}
.hoc-search-results{max-width:720px;margin:12px auto 0}
.hoc-search-results a{display:block;padding:10px 12px;border-radius:8px;color:var(--hoc-text)}
.hoc-search-results a:hover{background:rgba(255,255,255,.05)}
.hoc-search-results small{display:block;color:var(--hoc-muted,#8892b0);font-size:.8rem}

/* Mobile overlay */
.hoc-mobile-overlay{
	position:fixed;inset:0;z-index:100;background:rgba(6,10,24,.96);
	backdrop-filter:blur(10px);opacity:0;visibility:hidden;transform:translateY(-12px);
	transition:opacity .28s,visibility .28s,transform .28s;overflow-y:auto;
}
.hoc-mobile-overlay.is-open{opacity:1;visibility:visible;transform:translateY(0)}
.hoc-mobile-overlay__inner{padding:80px 24px 40px;max-width:520px;margin:0 auto}
.hoc-mobile-close{position:absolute;top:18px;right:20px;background:transparent;border:0;color:var(--hoc-text);font-size:2.4rem;line-height:1;padding:6px 12px;border-radius:8px}
.hoc-mobile-close:hover{background:rgba(255,255,255,.06)}
.hoc-mobile-menu{list-style:none;padding:0;margin:0}
.hoc-mobile-menu li{border-bottom:1px solid rgba(255,255,255,.06)}
.hoc-mobile-menu a{display:block;padding:16px 8px;font-size:1.15rem;color:var(--hoc-text);font-weight:500}
.hoc-mobile-menu .sub-menu{list-style:none;padding-left:16px;max-height:0;overflow:hidden;transition:max-height .3s}
.hoc-mobile-menu li.is-open>.sub-menu{max-height:600px}
.hoc-mobile-menu .menu-item-has-children>a::after{content:"+";float:right;font-weight:700}
.hoc-mobile-menu li.is-open>a::after{content:"−"}

/* ============ HERO / PLAYGROUND ============ */
.hoc-hero{padding:32px 20px 40px;max-width:1400px;margin:0 auto}
.hoc-hero__intro{text-align:center;margin-bottom:22px}
.hoc-hero__title{
	font-size:clamp(2rem,4.4vw,3.4rem);font-weight:800;margin:0 0 10px;
	background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));
	-webkit-background-clip:text;background-clip:text;color:transparent;
}
.hoc-hero__subtitle{color:var(--hoc-muted,#8892b0);max-width:720px;margin:0 auto;font-size:1.05rem}

.hoc-playground{
	background:#0e1430;border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;
	height:90vh;min-height:600px;display:flex;flex-direction:column;
	box-shadow:0 30px 80px -30px rgba(0,0,0,.6);
}
.hoc-playground.is-fullscreen{position:fixed;inset:0;z-index:1000;height:100vh;border-radius:0}
body.hoc-fs-active .hoc-header,body.hoc-fs-active .hoc-footer,body.hoc-fs-active .hoc-features,body.hoc-fs-active .hoc-latest,body.hoc-fs-active .hoc-hero__intro{display:none}

.hoc-playground__toolbar{
	display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
	padding:10px 14px;background:#0b1020;border-bottom:1px solid rgba(255,255,255,.06);
}
.hoc-tabs{display:flex;gap:4px;background:#12172a;padding:4px;border-radius:10px}
.hoc-tab{
	background:transparent;border:0;color:var(--hoc-muted,#8892b0);
	padding:8px 16px;border-radius:8px;font-weight:600;font-size:.88rem;transition:all .18s;
}
.hoc-tab.is-active{background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));color:#0b1020}
.hoc-tab:hover:not(.is-active){color:var(--hoc-text);background:rgba(255,255,255,.05)}

.hoc-toolbar-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.hoc-btn{
	background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:var(--hoc-text);
	padding:8px 14px;border-radius:8px;font-size:.85rem;font-weight:500;transition:all .18s;
}
.hoc-btn:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);transform:translateY(-1px)}
.hoc-btn--primary{background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));color:#0b1020;border-color:transparent;font-weight:700}
.hoc-btn--primary:hover{color:#0b1020;filter:brightness(1.08)}
.hoc-btn--sm{padding:6px 10px;font-size:.8rem}
.hoc-select-wrap select{
	background:#12172a;color:var(--hoc-text);border:1px solid rgba(255,255,255,.1);
	padding:7px 10px;border-radius:8px;font-size:.85rem;
}

.hoc-playground__body{flex:1;display:flex;min-height:0}
.hoc-editor-pane,.hoc-preview-pane{flex:1;display:flex;flex-direction:column;min-width:0;background:#12172a}
.hoc-preview-pane{background:#fff}
.hoc-editor{flex:1;min-height:0;width:100%}
.hoc-editor.is-hidden{display:none}
.hoc-splitter{
	width:6px;background:#0b1020;cursor:col-resize;position:relative;flex-shrink:0;transition:background .18s;
}
.hoc-splitter:hover,.hoc-splitter:focus{background:var(--hoc-primary)}
.hoc-splitter::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:2px;height:32px;background:rgba(255,255,255,.2);border-radius:2px}

.hoc-preview-toolbar{
	display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
	padding:8px 12px;background:#f5f6fa;border-bottom:1px solid #e4e7ef;
}
.hoc-device-toggle{display:flex;gap:2px;background:#fff;border:1px solid #e4e7ef;border-radius:8px;padding:3px}
.hoc-device-toggle button{
	background:transparent;border:0;padding:6px 12px;border-radius:6px;font-size:.8rem;font-weight:600;color:#4b5568;
}
.hoc-device-toggle button.is-active{background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));color:#fff}
.hoc-preview-actions{display:flex;gap:6px;flex-wrap:wrap}
.hoc-preview-actions .hoc-btn{background:#fff;color:#1a1f36;border-color:#e4e7ef}
.hoc-preview-actions .hoc-btn:hover{background:#f0f2f8}

.hoc-preview-frame-wrap{flex:1;background:#e8ebf2;display:flex;justify-content:center;align-items:flex-start;padding:14px;overflow:auto;min-height:0}
.hoc-preview-frame{border:0;width:100%;height:100%;background:#fff;border-radius:6px;box-shadow:0 6px 20px -8px rgba(0,0,0,.15);transition:width .25s,height .25s}
.hoc-preview-frame-wrap[data-device="tablet"] .hoc-preview-frame{width:768px;max-width:100%;height:1024px;max-height:100%}
.hoc-preview-frame-wrap[data-device="mobile"] .hoc-preview-frame{width:375px;height:667px;max-height:100%}

/* ============ FEATURES / LATEST ============ */
.hoc-features,.hoc-latest{padding:64px 20px}
.hoc-features__inner,.hoc-latest__inner{max-width:var(--hoc-container,1200px);margin:0 auto}
.hoc-features h2,.hoc-latest h2{text-align:center;margin:0 0 36px}
.hoc-features__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.hoc-feature{
	background:linear-gradient(180deg,#12172a,#0e1430);
	border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:24px;transition:transform .25s,border-color .25s;
}
.hoc-feature:hover{transform:translateY(-4px);border-color:color-mix(in oklab, var(--hoc-primary) 40%, transparent)}
.hoc-feature h3{margin:0 0 8px;color:var(--hoc-accent)}
.hoc-feature p{margin:0;color:var(--hoc-muted,#8892b0)}

.hoc-latest__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}

/* ============ CARDS ============ */
.hoc-card{
	background:#12172a;border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden;
	display:flex;flex-direction:column;transition:transform .25s,border-color .25s,box-shadow .25s;
}
.hoc-card:hover{transform:translateY(-4px);border-color:color-mix(in oklab, var(--hoc-primary) 40%, transparent);box-shadow:0 24px 40px -18px rgba(0,0,0,.5)}
.hoc-card__thumb{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#1a2145,#0b1020);position:relative;overflow:hidden}
.hoc-card__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.hoc-card:hover .hoc-card__thumb img{transform:scale(1.04)}
.hoc-card__thumb-fallback{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.25);font-family:'JetBrains Mono',monospace;font-size:2rem}
.hoc-card__body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1}
.hoc-card__cats,.hoc-card__cats a{color:var(--hoc-accent);font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.hoc-card__title{margin:0;font-size:1.15rem;line-height:1.35}
.hoc-card__title a{color:var(--hoc-text)}
.hoc-card__title a:hover{color:var(--hoc-accent)}
.hoc-card__excerpt{margin:0;color:var(--hoc-muted,#8892b0);font-size:.92rem}
.hoc-card__meta{display:flex;gap:8px;color:var(--hoc-muted,#8892b0);font-size:.8rem;margin-top:auto;padding-top:8px}

/* ============ LAYOUT ============ */
.hoc-layout{
	max-width:var(--hoc-container,1200px);margin:0 auto;padding:32px 20px 60px;
	display:grid;grid-template-columns:minmax(0,1fr) var(--hoc-sidebar,320px);gap:40px;
}
.hoc-main{min-width:0}
.hoc-breadcrumbs{margin:0 0 16px;font-size:.85rem;color:var(--hoc-muted,#8892b0)}
.hoc-breadcrumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.hoc-breadcrumbs li:not(:last-child)::after{content:"›";margin-left:8px;opacity:.5}

.hoc-archive-header{margin-bottom:28px}
.hoc-archive-title{margin:0 0 8px}
.hoc-post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}
.hoc-pagination{margin-top:32px;display:flex;justify-content:center}
.hoc-pagination .nav-links{display:flex;gap:6px;flex-wrap:wrap}
.hoc-pagination a,.hoc-pagination span{padding:8px 14px;border-radius:8px;background:#12172a;border:1px solid rgba(255,255,255,.1);color:var(--hoc-text)}
.hoc-pagination .current{background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));color:#0b1020;border-color:transparent}

/* ============ SIDEBAR ============ */
.hoc-sidebar{position:sticky;top:88px;align-self:start;display:flex;flex-direction:column;gap:20px;max-height:calc(100vh - 108px);overflow-y:auto;padding-right:4px}
.hoc-sidebar::-webkit-scrollbar{width:6px}
.hoc-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:3px}
.widget{background:#12172a;border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:20px}
.widget-title{margin:0 0 14px;font-size:1rem;text-transform:uppercase;letter-spacing:.05em;color:var(--hoc-accent)}
.hoc-sidebar-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.hoc-sidebar-list li{display:flex;flex-direction:column;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.06)}
.hoc-sidebar-list li:last-child{border-bottom:0;padding-bottom:0}
.hoc-sidebar-list a{color:var(--hoc-text);font-weight:500;font-size:.92rem}
.hoc-sidebar-list span{color:var(--hoc-muted,#8892b0);font-size:.75rem;margin-top:2px}
.hoc-newsletter-card p{margin:0 0 12px;color:var(--hoc-muted,#8892b0);font-size:.9rem}
.hoc-newsletter{display:flex;flex-direction:column;gap:8px}
.hoc-newsletter input{padding:10px 12px;border-radius:8px;border:1px solid rgba(255,255,255,.1);background:#0e1430;color:var(--hoc-text)}
.hoc-newsletter .hoc-btn{width:100%}

/* ============ ARTICLE ============ */
.hoc-reading-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:200;background:transparent;pointer-events:none}
.hoc-reading-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--hoc-primary),var(--hoc-accent));transition:width .1s}
.hoc-article__header{margin-bottom:28px}
.hoc-article__cats{margin-bottom:10px}
.hoc-article__cats a{color:var(--hoc-accent);font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;font-weight:700;margin-right:8px}
.hoc-article__title{margin:0 0 18px;font-size:clamp(1.8rem,3.5vw,2.6rem)}
.hoc-article__meta{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.hoc-author{display:flex;align-items:center;gap:12px}
.hoc-author img{border-radius:50%}
.hoc-author__name{display:block;font-weight:600;color:var(--hoc-text)}
.hoc-author__date{display:block;color:var(--hoc-muted,#8892b0);font-size:.82rem}
.hoc-article__thumb img{border-radius:14px;width:100%}

.hoc-article__toc{position:sticky;top:88px;background:#12172a;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:18px;margin-bottom:24px;float:right;width:260px;margin-left:24px;max-height:calc(100vh - 120px);overflow-y:auto}
.hoc-article__toc[hidden]{display:none}
.hoc-article__toc h2{margin:0 0 10px;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:var(--hoc-accent)}
.hoc-article__toc ol{list-style:none;padding:0;margin:0;font-size:.88rem;display:flex;flex-direction:column;gap:6px}
.hoc-article__toc a{color:var(--hoc-muted,#8892b0);display:block;padding:4px 0;border-left:2px solid transparent;padding-left:10px}
.hoc-article__toc a:hover,.hoc-article__toc a.is-active{color:var(--hoc-text);border-left-color:var(--hoc-accent)}
.hoc-article__toc .toc-h3{padding-left:22px;font-size:.82rem}

.hoc-article__content{font-size:1.05rem;line-height:1.75}
.hoc-article__content p,.hoc-article__content ul,.hoc-article__content ol,.hoc-article__content blockquote,.hoc-article__content pre,.hoc-article__content figure{margin:0 0 1.2em}
.hoc-article__content h2,.hoc-article__content h3,.hoc-article__content h4{margin:1.6em 0 .6em;scroll-margin-top:90px}
.hoc-article__content blockquote{border-left:4px solid var(--hoc-primary);padding:8px 18px;color:var(--hoc-muted,#8892b0);background:rgba(91,140,255,.06);border-radius:0 8px 8px 0}
.hoc-article__content a{border-bottom:1px solid color-mix(in oklab, var(--hoc-accent) 40%, transparent)}
.hoc-article__content img{border-radius:10px}
.hoc-article__content pre{
	position:relative;background:#0b1020;color:#e7ecff;padding:18px;border-radius:12px;overflow-x:auto;
	font-family:'JetBrains Mono',monospace;font-size:.9rem;border:1px solid rgba(255,255,255,.08);
}
.hoc-article__content code{font-family:'JetBrains Mono',monospace;font-size:.9em;background:rgba(255,255,255,.06);padding:2px 6px;border-radius:4px}
.hoc-article__content pre code{background:transparent;padding:0}
.hoc-copy-code{position:absolute;top:10px;right:10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);color:#fff;padding:4px 10px;border-radius:6px;font-size:.75rem;cursor:pointer;transition:all .18s}
.hoc-copy-code:hover{background:rgba(255,255,255,.15)}

.hoc-article__footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:24px 0;margin-top:16px;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.hoc-tags a{background:rgba(255,255,255,.06);padding:4px 10px;border-radius:6px;font-size:.8rem;margin-right:6px;color:var(--hoc-muted,#8892b0)}
.hoc-share{display:flex;gap:6px;flex-wrap:wrap}

.hoc-author-box{display:flex;gap:18px;padding:22px;background:#12172a;border:1px solid rgba(255,255,255,.08);border-radius:14px;margin:28px 0;align-items:flex-start}
.hoc-author-box img{border-radius:50%;flex-shrink:0}
.hoc-author-box h3{margin:0 0 6px}
.hoc-author-box p{margin:0;color:var(--hoc-muted,#8892b0)}

.hoc-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:28px 0}
.hoc-post-nav a{display:block;padding:18px;border-radius:12px;background:#12172a;border:1px solid rgba(255,255,255,.08);color:var(--hoc-text);transition:border-color .2s,transform .2s}
.hoc-post-nav a:hover{border-color:var(--hoc-primary);transform:translateY(-2px)}
.hoc-post-nav__next{text-align:right}
.hoc-post-nav span{display:block;font-size:.78rem;color:var(--hoc-accent);text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.hoc-post-nav strong{font-weight:600}

.hoc-related{margin:32px 0}
.hoc-related h2{margin:0 0 20px}

/* ============ COMMENTS ============ */
.hoc-comments{margin-top:40px;padding-top:32px;border-top:1px solid rgba(255,255,255,.08)}
.hoc-comments__title{margin:0 0 24px}
.hoc-comment-list,.hoc-comment-list .children{list-style:none;padding:0;margin:0}
.hoc-comment-list .children{padding-left:24px;margin-top:16px;border-left:2px solid rgba(255,255,255,.06)}
.hoc-comment{margin-bottom:20px}
.hoc-comment__inner{display:flex;gap:14px;padding:18px;background:#12172a;border:1px solid rgba(255,255,255,.08);border-radius:12px}
.hoc-comment__avatar img{border-radius:50%}
.hoc-comment__body{flex:1;min-width:0}
.hoc-comment__meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap;margin-bottom:6px}
.hoc-comment__author{font-weight:700;color:var(--hoc-text)}
.hoc-comment__date{font-size:.8rem;color:var(--hoc-muted,#8892b0)}
.hoc-comment__content p{margin:0 0 8px}
.hoc-comment__actions{display:flex;gap:10px;margin-top:8px}
.hoc-comment__actions a{font-size:.82rem;color:var(--hoc-accent);font-weight:600}
.hoc-comment-form{margin-top:32px;background:#12172a;border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:24px}
.hoc-comment-form__title{margin:0 0 6px;font-size:1.3rem}
.hoc-comment-form__notes{margin:0 0 18px;color:var(--hoc-muted,#8892b0);font-size:.85rem}
.hoc-field{margin:0 0 14px;display:flex;flex-direction:column;gap:6px}
.hoc-field label{font-size:.85rem;font-weight:600;color:var(--hoc-muted,#8892b0)}
.hoc-field input,.hoc-field textarea{
	padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.1);
	background:#0e1430;color:var(--hoc-text);font-family:inherit;font-size:.95rem;transition:border-color .18s,box-shadow .18s;
}
.hoc-field input:focus,.hoc-field textarea:focus{outline:none;border-color:var(--hoc-primary);box-shadow:0 0 0 3px color-mix(in oklab, var(--hoc-primary) 25%, transparent)}
.hoc-field textarea{resize:vertical;min-height:120px}
.hoc-field--check{flex-direction:row;align-items:center;gap:10px}
.hoc-field--check label{font-size:.85rem;color:var(--hoc-muted,#8892b0);font-weight:400}

/* ============ FOOTER ============ */
.hoc-footer{background:#080c1c;border-top:1px solid rgba(255,255,255,.06);margin-top:40px}
.hoc-footer__inner{max-width:var(--hoc-container,1200px);margin:0 auto;padding:56px 20px 20px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:36px}
.hoc-footer__col h4,.hoc-footer__col .widget-title{margin:0 0 14px;color:var(--hoc-text);font-size:.95rem;text-transform:uppercase;letter-spacing:.06em}
.hoc-footer__desc{color:var(--hoc-muted,#8892b0);font-size:.9rem;margin:12px 0 16px}
.hoc-footer-menu{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.hoc-footer-menu a{color:var(--hoc-muted,#8892b0);font-size:.9rem}
.hoc-footer-menu a:hover{color:var(--hoc-accent)}
.hoc-socials{list-style:none;padding:0;margin:16px 0 0;display:flex;gap:10px}
.hoc-socials a{
	display:grid;place-items:center;width:36px;height:36px;border-radius:10px;
	background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:var(--hoc-muted,#8892b0);
	transition:all .2s;
}
.hoc-socials a:hover{background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));color:#0b1020;border-color:transparent;transform:translateY(-2px)}
.hoc-footer__bottom{max-width:var(--hoc-container,1200px);margin:0 auto;padding:20px;border-top:1px solid rgba(255,255,255,.06);color:var(--hoc-muted,#8892b0);font-size:.85rem;text-align:center}

/* ============ 404 ============ */
.hoc-404{text-align:center;padding:80px 20px}
.hoc-404 h1{font-size:6rem;margin:0;background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));-webkit-background-clip:text;background-clip:text;color:transparent}
.hoc-404 .hoc-btn{margin:20px 0}

/* ============ MISC ============ */
.hoc-back-to-top{
	position:fixed;bottom:24px;right:24px;width:44px;height:44px;border-radius:50%;
	background:linear-gradient(135deg,var(--hoc-primary),var(--hoc-accent));color:#0b1020;border:0;
	font-size:1.2rem;font-weight:800;box-shadow:0 12px 30px -10px rgba(0,0,0,.5);
	opacity:0;visibility:hidden;transform:translateY(10px);transition:all .25s;z-index:60;
}
.hoc-back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}

/* Light mode override */
body.hoc-theme-light{
	--hoc-bg:#f7f8fc;--hoc-text:#0b1020;--hoc-muted:#4b5568;
	background:var(--hoc-bg);color:var(--hoc-text);
}
body.hoc-theme-light .hoc-header{background:rgba(247,248,252,.8);border-bottom-color:rgba(0,0,0,.08)}
body.hoc-theme-light .widget,body.hoc-theme-light .hoc-card,body.hoc-theme-light .hoc-feature,body.hoc-theme-light .hoc-comment__inner,body.hoc-theme-light .hoc-comment-form,body.hoc-theme-light .hoc-author-box,body.hoc-theme-light .hoc-post-nav a,body.hoc-theme-light .hoc-article__toc{background:#fff;border-color:rgba(0,0,0,.08)}
body.hoc-theme-light .hoc-menu a{color:var(--hoc-text)}
body.hoc-theme-light .hoc-icon-btn{background:#fff;border-color:rgba(0,0,0,.08);color:var(--hoc-text)}
body.hoc-theme-light .hoc-playground{background:#fff}
body.hoc-theme-light .hoc-field input,body.hoc-theme-light .hoc-field textarea,body.hoc-theme-light .hoc-search-form input,body.hoc-theme-light .hoc-newsletter input{background:#f7f8fc;color:var(--hoc-text);border-color:rgba(0,0,0,.12)}
body.hoc-theme-light .hoc-footer{background:#0b1020}

/* ============ RESPONSIVE ============ */
@media (max-width:1024px){
	.hoc-nav{display:none}
	.hoc-hamburger{display:flex}
	.hoc-cta{display:none}
	.hoc-layout{grid-template-columns:1fr;gap:24px}
	.hoc-sidebar{position:static;max-height:none}
	.hoc-article__toc{float:none;width:auto;margin-left:0;position:static}
	.hoc-footer__inner{grid-template-columns:1fr 1fr}
	.hoc-playground{height:80vh}
}
@media (max-width:640px){
	.hoc-header__inner{padding:12px 16px;gap:12px}
	.hoc-playground{height:75vh;min-height:520px}
	.hoc-playground__body{flex-direction:column}
	.hoc-splitter{width:100%;height:6px;cursor:row-resize}
	.hoc-splitter::before{width:32px;height:2px}
	.hoc-toolbar-actions .hoc-btn{padding:7px 10px;font-size:.78rem}
	.hoc-footer__inner{grid-template-columns:1fr;gap:24px;padding:40px 20px 16px}
	.hoc-post-nav{grid-template-columns:1fr}
	.hoc-article__footer{flex-direction:column;align-items:flex-start}
	h1{font-size:1.8rem}h2{font-size:1.4rem}
	.hoc-features,.hoc-latest{padding:44px 16px}
	.hoc-layout{padding:20px 16px 40px}
}
@media (max-width:400px){
	.hoc-logo__text{display:none}
	.hoc-tabs{width:100%}.hoc-tab{flex:1}
	.hoc-comment-list .children{padding-left:14px}
}
@media (prefers-reduced-motion:reduce){
	*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
