/*
Theme Name: HTMLCodeRunner Community
Author: HTMLCodeRunner
Description: Responsive developer community theme with bbPress integration. Run Appearance > Community setup after activating bbPress.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: hcr-community
License: GPL-2.0-or-later
*/
:root{--ink:#202620;--muted:#747a72;--green:#286145;--line:#e3e7df;--paper:#fcfcf9;--soft:#f1f4ec}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif;font-size:14px;line-height:1.6}a{color:inherit;text-decoration:none}a:hover{color:var(--green)}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #609575;outline-offset:4px}.wrap{max-width:1280px;margin:auto;padding-left:36px;padding-right:36px}.site-header{border-bottom:1px solid var(--line);background:#fff}.header-inner{max-width:1440px;margin:auto;padding:22px 40px;display:flex;align-items:center;gap:55px}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750;letter-spacing:-.6px;line-height:1.2}.brand-icon{font-family:monospace;background:var(--green);color:#fff;border-radius:9px;padding:10px 8px;font-size:19px}.brand small{display:block;letter-spacing:2.4px;font-size:8px;color:var(--muted);margin-top:6px}.site-header nav,.account{display:flex;gap:26px;align-items:center;font-size:13px}.account{margin-left:auto;gap:22px}.button{display:inline-flex;align-items:center;justify-content:center;gap:25px;padding:13px 21px;border-radius:6px;background:var(--green);color:white;font-size:13px;font-weight:600;box-shadow:0 2px 2px #16271910}.button:hover{background:#1d4b34;color:white}.button.small{padding:10px 15px;gap:15px}.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:65px;padding-top:72px;padding-bottom:70px;align-items:center}.eyebrow,.section-label{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#6c7868}.eyebrow{display:flex;align-items:center;gap:8px}.eyebrow span{width:6px;height:6px;border-radius:50%;background:#6e9a58}h1,h2,h3,p{margin:0}h1{font-size:clamp(38px,4vw,54px);line-height:1.15;letter-spacing:-2.2px;margin:21px 0}h1 em{font-family:Georgia,serif;color:var(--green);font-weight:400}.hero p{color:var(--muted);line-height:1.9;font-size:14px}.hero-actions{display:flex;align-items:center;gap:23px;margin-top:28px}.text-link{font-size:12px;font-weight:600}.welcome-line{display:flex;gap:11px;align-items:center;font-size:10px;color:var(--muted);margin-top:29px;line-height:1.7}.welcome-line strong{font-weight:500;color:#505b4c}.mini-avatar{width:32px;height:32px;border:1px solid #d3dfcd;border-radius:50%;display:grid;place-items:center;background:#e9efdf;color:var(--green);font-weight:700}.code-art{position:relative;background:#242b28;border-radius:11px;transform:rotate(-2deg);box-shadow:0 24px 55px #26352a15;border:7px solid #eff1e8;margin-bottom:20px}.editor-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12;padding:14px 16px;color:#96a299;font:9px monospace}.dots{color:#cfb488;letter-spacing:3px}.code-lines{font:11px/2.25 Consolas,monospace;color:#d6ddd6;padding:22px 10px 27px;white-space:pre}.code-lines i{display:inline-block;width:33px;font-style:normal;color:#59685f}.muted{color:#7f9084}.purple{color:#c1aadf}.pink{color:#e1a8bd}.mint{color:#9ecabc}.yellow{color:#e2cf9d}.editor-bottom{display:flex;justify-content:space-between;border-top:1px solid #ffffff12;color:#9aa69d;padding:10px 15px;font:9px monospace}.editor-bottom b{color:#9bba7b}.floating-note{position:absolute;right:-19px;bottom:-26px;background:#f4f5e6;border:1px solid #dce1c7;border-radius:7px;padding:12px 17px;color:#4b5e39;transform:rotate(5deg);font-size:11px;box-shadow:0 5px 15px #00000008}.floating-note span{font-size:22px;margin-right:8px}.workspace{display:grid;grid-template-columns:205px minmax(0,1fr);gap:36px;border-top:1px solid var(--line);padding-top:35px;padding-bottom:65px}.sidebar{border-right:1px solid var(--line);padding-right:23px}.sidebar>.section-label{display:block;margin-bottom:15px;font-size:9px}.side-link{display:flex;align-items:center;gap:11px;font-size:12px;padding:11px;border-radius:5px;color:#636d60;margin:3px 0}.side-link span{font-size:17px}.side-link.active{background:#eaf0e4;color:#315c37;font-weight:600}.sidebar-note{margin-top:33px;background:#f3f3e9;border:1px solid #e5e6d5;border-radius:7px;padding:18px 15px}.note-icon{font-size:25px;color:#849260}.sidebar-note h3{font-size:13px;margin:9px 0}.sidebar-note p{font-size:11px;color:#7d816f;line-height:1.8}.sidebar-note a{display:block;font-size:10px;font-weight:600;margin-top:15px}.runner-link{display:block;font-size:10px;color:#818775;margin:22px 10px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.section-heading h2,.discussion-heading h2{font-size:21px;letter-spacing:-.6px;font-weight:650;margin-top:5px}.section-heading>a{font-size:10px;color:#63715d}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.category{position:relative;background:white;border:1px solid var(--line);border-radius:8px;padding:20px;transition:transform .2s,border-color .2s}.category:hover{transform:translateY(-3px);border-color:#7c9a6a}.category-icon{display:grid;place-items:center;width:33px;height:33px;background:#eef1e5;color:#7b8b50;border-radius:8px;font:700 17px monospace;margin-bottom:13px}.cat-1 .category-icon{color:#8471ad;background:#f0eaf6}.cat-2 .category-icon{color:#9a883d;background:#faf4db}.cat-3 .category-icon{color:#629d91;background:#e8f4ef}.cat-4 .category-icon{color:#b57c58;background:#f8ece3}.cat-5 .category-icon{color:#6989a7;background:#eaf1f8}.category h3{font-size:13px;font-weight:650;margin-bottom:6px}.category p{font-size:10px;line-height:1.8;color:var(--muted);max-width:190px}.category-arrow{position:absolute;right:17px;top:21px;color:#a3ab9c;font-size:15px}.discussion-heading{display:flex;justify-content:space-between;align-items:center;margin:35px 0 18px}.live-label{font-size:9px;color:#8a9284}.live-label b{color:#7c9b5a;margin-right:5px}.topics{background:white;border:1px solid var(--line);border-radius:8px;padding:12px 18px}.empty-state{text-align:center;padding:40px 18px;color:var(--muted)}.empty-state>span{font-size:28px;color:var(--green)}.empty-state h3{font-size:17px;color:var(--ink);margin:8px 0}.empty-state p{font-size:12px}.bottom-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:27px;padding:27px;background:#edf1e5;border:1px solid #e0e6d6;border-radius:8px}.bottom-banner .section-label{font-size:8px}.bottom-banner h3{font-family:Georgia,serif;font-size:23px;font-weight:400;margin-top:5px}.bottom-banner p{font-size:10px;color:#7d8874;margin-top:6px}.footer{border-top:1px solid var(--line);max-width:1208px;margin:auto;padding:30px 0;display:flex;align-items:center;gap:25px;flex-wrap:wrap}.footer .brand{font-size:15px}.footer .brand-icon{font-size:13px;padding:8px}.footer p{font-size:10px;color:var(--muted)}.footer>div{display:flex;gap:20px;margin-left:auto;font-size:10px;color:var(--muted)}.footer>small{width:100%;font-size:9px;color:#93998c}.skip{position:absolute;left:15px;top:-100px;background:white;padding:10px;z-index:9}.skip:focus{top:10px}.page-content{min-height:65vh;padding-top:45px;padding-bottom:60px}.page-content h1{font-size:36px}.back-link{color:var(--green);font-size:12px}.entry-content{max-width:1100px}.entry-content p{margin:16px 0}.entry-content h2{margin-top:25px}.entry-content a{color:var(--green)}input,textarea,select{font:inherit;border:1px solid #cdd6c7;border-radius:5px;padding:10px;background:white;color:var(--ink);max-width:100%}textarea{width:100%}button,input[type=submit]{background:var(--green);color:white;border:0;border-radius:5px;padding:10px 18px;cursor:pointer}#bbpress-forums{font-size:13px;line-height:1.7}#bbpress-forums li.bbp-header,#bbpress-forums li.bbp-footer{background:var(--soft);border-color:var(--line);padding:15px}#bbpress-forums ul.bbp-topics,#bbpress-forums ul.bbp-forums,#bbpress-forums ul.bbp-replies{border-color:var(--line);font-size:13px}#bbpress-forums div.even,#bbpress-forums ul.even{background:#fafbf7}#bbpress-forums a{color:var(--green)}#bbpress-forums div.bbp-search-form{margin-bottom:15px}#bbpress-forums fieldset.bbp-form{border:1px solid var(--line);border-radius:8px;padding:22px}#bbpress-forums fieldset.bbp-form legend{font-weight:600;padding:8px}#bbpress-forums .bbp-topic-title .bbp-topic-permalink{font-size:14px;font-weight:600}#bbpress-forums pre{overflow:auto;background:#edf1e8;padding:15px}#bbpress-forums .bbp-login-form label{display:block;width:auto;margin-bottom:4px}#bbpress-forums .bbp-login-form input{max-width:100%}#bbpress-forums .bbp-submit-wrapper{margin-bottom:20px}.bbp-pagination{color:var(--muted)}@media(min-width:1500px){.hero{padding-top:90px;padding-bottom:90px}}@media(max-width:1050px){.header-inner{gap:25px;padding:20px 25px}.site-header nav{gap:14px}.hero{gap:30px}.code-lines{font-size:9px}.hero-actions{gap:15px}.workspace{gap:23px;grid-template-columns:180px minmax(0,1fr)}.category{padding:15px}.footer{margin:0 36px}.account{gap:12px}}@media(max-width:800px){.site-header nav{display:none}.hero{grid-template-columns:1fr;padding-top:40px;padding-bottom:45px}.hero-copy{max-width:600px}.code-art{max-width:520px;margin:15px 10px 20px}.code-lines{font-size:12px}.workspace{grid-template-columns:1fr}.sidebar{display:none}.footer>div{margin-left:0}.hero p br{display:none}}@media(max-width:520px){.wrap{padding-left:20px;padding-right:20px}.header-inner{padding:16px 20px}.brand{font-size:15px}.brand-icon{font-size:16px}.account>a:first-child{display:none}.button.small{font-size:10px;padding:10px;gap:6px}.hero h1{font-size:39px}.hero-actions{align-items:start;flex-direction:column}.code-lines{font-size:9px}.category-grid{grid-template-columns:repeat(2,1fr)}.section-heading{gap:15px}.section-heading h2,.discussion-heading h2{font-size:18px}.section-heading>a{font-size:9px}.category p{font-size:10px}.bottom-banner{align-items:start;flex-direction:column}.live-label{display:none}.footer{margin:0 20px;gap:15px}.footer>div{flex-wrap:wrap}.page-content h1{font-size:30px}.topics{padding:10px 7px}}

.community-search{margin:0 0 15px}.community-search form{display:flex;gap:8px}.community-search input[type=text]{flex:1;min-width:0}.community-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category p{max-width:100%}.site-header nav{gap:18px}.header-inner{gap:30px}.hcr-library-group ol{padding-left:25px}@media(max-width:520px){.category-grid{grid-template-columns:1fr 1fr}}
