/*
Theme Name: Open Source Prompt PH
Author: Otohacks
Theme URI: https://opensourcepromptph.com/
Description: Customized for Open Source Prompt PH. A clean repository-inspired publishing theme with profile sidebar, post cards and dark/light modes. Independent and not affiliated with GitHub.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forgepress
Tags: blog, two-columns, custom-logo, custom-menu, featured-images, threaded-comments
*/
:root{color-scheme:dark;--bg:#0d1117;--surface:#161b22;--hover:#1c232d;--border:#30363d;--text:#e6edf3;--muted:#919ba7;--link:#58a6ff;--green:#3fb950;--pill:#12233a;--orange:#f78166}
:root[data-mode=light]{color-scheme:light;--bg:#fff;--surface:#f6f8fa;--hover:#eef1f4;--border:#d0d7de;--text:#1f2328;--muted:#59636e;--link:#0969da;--green:#1a7f37;--pill:#ddf4ff;--orange:#bf5700}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}img{max-width:100%;height:auto}h1,h2,h3{line-height:1.25;letter-spacing:-.025em}h1{font-size:30px}h2{font-size:22px}h3{font-size:15px}p{margin:0 0 16px}.wrap{width:min(1240px,calc(100% - 64px));margin-inline:auto}.topbar{background:var(--surface);border-bottom:1px solid var(--border)}.top-inner{max-width:1440px;margin:auto;padding:20px 32px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:14px;color:var(--text);font-weight:650;min-width:0}.brand-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid var(--border);border-radius:50%;font:700 16px monospace}.header-search{margin-left:auto;width:350px}.search-form{display:flex;gap:8px}.search-form label{flex:1;min-width:0}input:not([type=checkbox]):not([type=radio]),textarea,select{border:1px solid var(--border);background:var(--bg);color:var(--text);padding:8px 12px;border-radius:6px;max-width:100%}.search-form input{width:100%;font-size:13px}.button,input[type=submit]{display:inline-flex;align-items:center;justify-content:center;padding:7px 14px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font-size:13px;font-weight:600;white-space:nowrap}.button:hover,input[type=submit]:hover{background:var(--hover);text-decoration:none}.nav-wrap{border-bottom:1px solid var(--border)}.site-nav .menu{display:flex;gap:26px;list-style:none;margin:0;padding:0;flex-wrap:wrap}.menu>li{position:relative}.menu>li>a{display:block;padding:18px 4px 16px;color:var(--text);font-size:14px;border-bottom:2px solid transparent}.menu>.current-menu-item>a,.menu>.current_page_item>a{border-color:var(--orange);font-weight:600}.sub-menu{display:none;position:absolute;z-index:5;list-style:none;min-width:180px;background:var(--surface);padding:10px;border:1px solid var(--border);border-radius:6px}.sub-menu a{display:block;padding:8px;color:var(--text)}.menu li:hover>.sub-menu,.menu li:focus-within>.sub-menu{display:block}.layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:40px;padding-top:38px;min-height:70vh}.profile{min-width:0}.avatar{width:180px;height:180px;border-radius:50%;border:1px solid var(--border);display:grid;place-items:center;background:var(--surface);overflow:hidden;margin-bottom:22px}.avatar>span{font:500 56px ui-monospace,monospace;color:var(--green)}.avatar a,.avatar img{display:block;width:180px;height:180px;object-fit:cover}.profile h2{margin:0 0 6px;overflow-wrap:anywhere}.tagline{color:var(--muted);font-size:17px}.profile p{font-size:14px}.profile-button{width:100%;margin:4px 0 10px}.profile-section{border-top:1px solid var(--border);margin-top:24px;padding-top:8px}.topics,.archive-list{list-style:none;padding:0;font-size:13px;color:var(--muted)}.topics li,.archive-list li{margin-bottom:9px}.topics .children{padding-left:18px;list-style:none}.topics a{background:var(--pill);padding:3px 9px;border-radius:12px}.archive-list a{color:var(--muted)}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}.eyebrow{font:11px/1.4 ui-monospace,monospace;letter-spacing:.14em;color:var(--muted);margin:0 0 9px}.page-heading h1{margin:0;font-size:26px}.pill{display:inline-block;border:1px solid var(--border);border-radius:20px;padding:1px 8px;font-size:11px;color:var(--muted);white-space:nowrap}.repo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.repo-card{border:1px solid var(--border);border-radius:8px;padding:22px;display:flex;flex-direction:column;min-width:0;transition:border-color .15s}.repo-card:hover{border-color:var(--muted)}.card-top{display:flex;align-items:center;justify-content:space-between}.repo-icon{font-size:20px;color:var(--muted)}.repo-card h2{font-size:19px;margin:14px 0 12px;overflow-wrap:anywhere}.repo-card .excerpt{font-size:14px;color:var(--muted)}.card-image{display:block;margin:2px 0 16px;overflow:hidden;border-radius:5px}.card-image img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.card-categories{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}.card-categories a,.tags a{font-size:12px;background:var(--pill);border-radius:20px;padding:2px 10px}.card-meta{margin-top:auto;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;padding-top:14px;border-top:1px solid var(--border);flex-wrap:wrap}.status-dot{background:var(--green);width:8px;height:8px;border-radius:50%}.author{margin-left:auto}.panel{border:1px solid var(--border);border-radius:8px;overflow:hidden}.file-bar{padding:12px 24px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;gap:10px;align-items:center;font:12px ui-monospace,monospace}.file-bar .pill{margin-left:auto}.document-inner{padding:32px}.document h1{margin:12px 0 14px;font-size:36px;overflow-wrap:anywhere}.byline{color:var(--muted);font-size:13px}.hero-image{display:block;width:100%;border-radius:6px;margin:24px 0}.entry-content{overflow-wrap:anywhere;font-size:16px;line-height:1.8}.entry-content h2,.entry-content h3{padding-bottom:12px;border-bottom:1px solid var(--border);margin-top:32px}.entry-content a{text-decoration:underline}.entry-content pre{padding:20px;background:var(--surface);overflow:auto;border-radius:6px}.entry-content code{font-family:ui-monospace,monospace;background:var(--surface);border-radius:4px;padding:2px 5px}.entry-content blockquote{border-left:4px solid var(--border);padding-left:20px;margin-left:0;color:var(--muted)}table{border-collapse:collapse;width:100%}th,td{border:1px solid var(--border);padding:8px}iframe{max-width:100%}.aligncenter{display:block;margin-inline:auto}.alignleft{float:left;margin:0 20px 20px 0}.alignright{float:right;margin:0 0 20px 20px}.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{font-size:13px;color:var(--muted)}.entry-content:after{content:"";display:table;clear:both}.navigation{margin:28px 0}.nav-links{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.page-numbers{padding:6px 12px;border-radius:6px}.page-numbers.current{background:var(--link);color:var(--bg)}.comments{padding:28px;margin:28px 0}.comment-list{padding-left:20px}.comment-body{padding:18px 0;border-bottom:1px solid var(--border)}.comment-metadata{font-size:12px}.comment-author img{border-radius:50%;vertical-align:middle;margin-right:8px}.comment-form label{display:block}.comment-form-cookies-consent label{display:inline}.comment-form textarea{width:100%}.comment-list .children{padding-left:20px}.bypostauthor>.comment-body{border-left:2px solid var(--green);padding-left:12px}.sticky{border-top:2px solid var(--orange)}.empty{padding:32px;background:var(--surface)}.site-footer{border-top:1px solid var(--border);margin-top:64px;padding:28px 0;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.skip-link:focus{position:fixed;top:8px;left:8px;padding:12px;background:var(--surface);z-index:99}:focus-visible{outline:2px solid var(--link);outline-offset:4px}
@media(max-width:960px){.layout{grid-template-columns:210px minmax(0,1fr);gap:28px}.repo-grid{grid-template-columns:1fr}.header-search{width:280px}.brand span:last-child{max-width:210px}.document-inner{padding:24px}}
@media(max-width:680px){.wrap{width:calc(100% - 32px)}.top-inner{padding:16px;gap:12px;flex-wrap:wrap}.brand{flex:1}.brand span:last-child{max-width:none;font-size:14px}.header-search{order:3;width:100%}.mode{font-size:12px}.site-nav .menu{gap:18px}.layout{display:block;padding-top:24px}.profile{border-bottom:1px solid var(--border);padding-bottom:22px;margin-bottom:26px}.avatar{width:72px;height:72px;float:left;margin:0 18px 16px 0}.avatar>span{font-size:26px}.avatar a,.avatar img{width:72px;height:72px}.profile h2{padding-top:8px;font-size:20px}.profile .profile-section{display:none}.profile:after{content:"";display:table;clear:both}.profile-button{width:auto}.profile>p:not(.tagline){clear:both}.document h1{font-size:28px}.document-inner{padding:20px}.site-footer{flex-direction:column;gap:6px;margin-top:36px}.repo-card{padding:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Open Source Prompt PH welcome panel */
.welcome{padding:30px;margin-bottom:26px;background:var(--surface);border-top:2px solid var(--green)}.welcome h2{font-size:29px;max-width:570px;margin:12px 0}.welcome p{max-width:570px;color:var(--muted);font-size:15px}.welcome .welcome-button{background:#238636;border-color:#2ea043;color:#fff;padding:9px 16px}.welcome .welcome-button:hover{background:#2ea043}#prompt-collection{scroll-margin-top:20px}@media(max-width:680px){.welcome{padding:22px}.welcome h2{font-size:24px}}

.site-footer{flex-wrap:wrap}.site-owner{flex-basis:100%;font-size:13px}.site-owner a{font-weight:600}

.community-intro{font-size:21px;font-weight:600}.community-hints{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.community-hints span{background:var(--pill);color:var(--link);border-radius:20px;padding:4px 12px;font-size:12px}.community-note{font-size:13px;color:var(--muted);margin-top:24px}.community-callout{padding:26px;margin-top:28px;background:var(--surface)}.community-callout h2{margin-top:0}.community-callout p{color:var(--muted)}.community-footer{flex-basis:100%}
