/*
Theme Name: GitHub Portfolio
Theme URI: https://GibranAli.com
Author: Gibran Ali
Author URI: https://GibranAli.com
Description: A developer portfolio theme styled exactly like GitHub's repository interface in light mode. Supports multiple page types mirroring GitHub's Code, Issues, Projects, Wiki, and Insights pages. Responsive across all screen sizes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: github-portfolio
Tags: portfolio, developer, one-column, two-columns, custom-menu, featured-images, theme-options
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica,
    Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2328;
  background: #ffffff;
  padding: 0px;
  margin: 0px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #0969da;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.gh-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.repo-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0 64px;
}
.repo-main {
  flex: 1;
  min-width: 0;
}
.repo-sidebar {
  width: 296px;
  flex-shrink: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#gh-navbar {
  background: #24292f;
  border-bottom: 1px solid #30363d;
  position: sticky;
  top: 0;
  z-index: 200;
}
.gh-navbar-inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.gh-logo {
  color: #fff;
  flex-shrink: 0;
}
.gh-logo svg {
  display: block;
}

.gh-search {
  flex: 1;
  max-width: 272px;
}
.gh-search-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  cursor: text;
}
.gh-search-kbd {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-family: monospace;
}

.gh-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.gh-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color 0.1s,
    background 0.1s;
}
.gh-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.gh-navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gh-nav-icon {
  color: rgba(255, 255, 255, 0.7);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition:
    color 0.1s,
    background 0.1s;
}
.gh-nav-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.gh-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.gh-avatar-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a7f37, #0969da);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.gh-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px;
  border-radius: 4px;
}
.gh-hamburger:hover {
  color: #fff;
}

.gh-mobile-search {
  display: none;
  padding: 0 16px 12px;
  gap: 8px;
}
.gh-mobile-search-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.gh-mobile-menu {
  display: none;
  background: #24292f;
  border-top: 1px solid #30363d;
}
.gh-mobile-menu.open {
  display: block;
}
.gh-mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.gh-mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ============================================================
   REPO HEADER (breadcrumb + tabs)
   ============================================================ */
#gh-repo-header {
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
}
.gh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  flex-wrap: wrap;
  padding: 16px 0 8px;
}
.gh-breadcrumb a {
  color: #0969da;
  font-weight: 600;
  text-decoration: none;
}
.gh-breadcrumb a:hover {
  text-decoration: underline;
}
.gh-breadcrumb .sep {
  color: #656d76;
}
.gh-breadcrumb .repo-name {
  font-weight: 700;
}
.branch-tag {
  background: #ddf4ff;
  color: #0969da;
  border: 1px solid #99ccff;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 500;
}

.tab-bar {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-bar::-webkit-scrollbar {
  display: none;
}
.tab-item {
  padding: 8px 16px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  color: #656d76;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition:
    color 0.1s,
    border-color 0.1s;
}
.tab-item:hover {
  color: #1f2328;
  border-color: #d0d7de;
  text-decoration: none;
}
.tab-item.active {
  color: #1f2328;
  border-color: #fd8c73;
  font-weight: 600;
}
.tab-item svg {
  flex-shrink: 0;
}
.counter-badge {
  background: rgba(175, 184, 193, 0.2);
  color: #1f2328;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(31, 35, 40, 0.15);
  background: linear-gradient(180deg, #f6f8fa, #f0f2f5);
  color: #24292f;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.1s,
    border-color 0.1s;
  text-decoration: none;
}
.gh-btn:hover {
  background: linear-gradient(180deg, #f3f4f6, #ebecef);
  border-color: rgba(31, 35, 40, 0.2);
  text-decoration: none;
}
.gh-btn-primary {
  background: linear-gradient(180deg, #2da44e, #298e46);
  color: #fff !important;
}
.gh-btn-primary:hover {
  background: linear-gradient(180deg, #2c974b, #268d44);
}
.gh-btn-sm {
  padding: 3px 10px;
  font-size: 12px;
}
.gh-btn-danger {
  background: linear-gradient(180deg, #fa4549, #cf222e);
  color: #fff !important;
  border-color: rgba(31, 35, 40, 0.15);
}
.gh-split-left {
  border-radius: 6px 0 0 6px;
  border-right: none;
}
.gh-split-right {
  border-radius: 0 6px 6px 0;
  padding: 5px 9px;
}

/* ============================================================
   FILE BROWSER (Code page)
   ============================================================ */
.commit-bar {
  border: 1px solid #d0d7de;
  border-radius: 6px 6px 0 0;
  background: #f6f8fa;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.file-box {
  border: 1px solid #d0d7de;
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #d0d7de;
  cursor: pointer;
  transition: background 0.05s;
}
.file-row:last-child {
  border-bottom: none;
}
.file-row:hover {
  background: #f6f8fa;
}
.file-name {
  color: #0969da;
  font-size: 14px;
  flex-shrink: 0;
  min-width: 120px;
  text-decoration: none;
}
.file-name:hover {
  text-decoration: underline;
}
.file-msg {
  color: #656d76;
  font-size: 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-date {
  color: #656d76;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   README
   ============================================================ */
.readme-box {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 16px;
}
.readme-header {
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.readme-body {
  padding: 24px 32px;
}
.readme-body h1 {
  font-size: 1.8em;
  font-weight: 600;
  border-bottom: 1px solid #d0d7de;
  padding-bottom: 0.3em;
  margin: 0 0 16px;
}
.readme-body h2 {
  font-size: 1.4em;
  font-weight: 600;
  border-bottom: 1px solid #d0d7de;
  padding-bottom: 0.3em;
  margin: 24px 0 16px;
}
.readme-body h3 {
  font-size: 1.15em;
  font-weight: 600;
  margin: 24px 0 10px;
}
.readme-body h4 {
  font-size: 1em;
  font-weight: 600;
  margin: 16px 0 8px;
}
.readme-body p {
  margin: 0 0 16px;
}
.readme-body ul,
.readme-body ol {
  margin: 0 0 16px;
  padding-left: 2em;
}
.readme-body li {
  margin: 4px 0;
}
.readme-body code {
  background: rgba(175, 184, 193, 0.2);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 85%;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
.readme-body pre {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0 0 16px;
}
.readme-body pre code {
  background: none;
  padding: 0;
  font-size: 13px;
}
.readme-body a {
  color: #0969da;
}
.readme-body blockquote {
  border-left: 4px solid #d0d7de;
  padding: 0 16px;
  color: #656d76;
  margin: 0 0 16px;
}
.readme-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  display: block;
  overflow-x: auto;
}
.readme-body th,
.readme-body td {
  border: 1px solid #d0d7de;
  padding: 6px 13px;
  white-space: nowrap;
}
.readme-body th {
  background: #f6f8fa;
  font-weight: 600;
}
.readme-body tr:nth-child(even) td {
  background: #f6f8fa;
}
.readme-body hr {
  border: none;
  border-top: 1px solid #d0d7de;
  margin: 24px 0;
}
.readme-body img {
  border-radius: 6px;
  max-width: 100%;
}

/* WordPress WYSIWYG content inside readme-body */
.readme-body .wp-caption {
  max-width: 100%;
}
.readme-body .aligncenter {
  margin: 0 auto 16px;
  display: block;
}
.readme-body .alignleft {
  float: left;
  margin: 0 16px 16px 0;
}
.readme-body .alignright {
  float: right;
  margin: 0 0 16px 16px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-section {
  border-bottom: 1px solid #d0d7de;
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.sidebar-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sidebar-heading h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2328;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #656d76;
  font-size: 13px;
  padding: 3px 0;
  text-decoration: none;
}
.sidebar-link:hover {
  text-decoration: none;
}
.sidebar-link .sl-text {
  color: #0969da;
}
.sidebar-link:hover .sl-text {
  text-decoration: underline;
}
.sidebar-link svg {
  flex-shrink: 0;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.topic-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #ddf4ff;
  color: #0969da;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    background 0.1s,
    color 0.1s;
}
.topic-tag:hover {
  background: #0969da;
  color: #fff;
  text-decoration: none;
}
.lang-bar {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  height: 8px;
  gap: 1px;
  margin-bottom: 10px;
}
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.lang-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.activity-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.activity-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2328;
  font-size: 14px;
  padding: 2px 0;
  text-decoration: none;
}
.activity-stat:hover {
  color: #0969da;
  text-decoration: none;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}
.activity-cell {
  height: 11px;
  border-radius: 2px;
}
.release-tag {
  background: #dafbe1;
  color: #1a7f37;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
}

/* Sidebar collapse on mobile */
.sidebar-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2328;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}
.sidebar-collapsible {
  display: block;
}

/* ============================================================
   ISSUES PAGE
   ============================================================ */
.issues-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.issues-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.issues-filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #656d76;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.issues-filter-btn:hover {
  color: #1f2328;
  background: rgba(175, 184, 193, 0.1);
}
.issues-list {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow: hidden;
}
.issues-header {
  background: #f6f8fa;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #d0d7de;
  font-size: 14px;
}
.issues-header a {
  color: #656d76;
  font-weight: 500;
  text-decoration: none;
}
.issues-header a:hover {
  color: #0969da;
}
.issues-header a.active {
  color: #1f2328;
  font-weight: 600;
}
.issue-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #d0d7de;
  transition: background 0.05s;
}
.issue-row:last-child {
  border-bottom: none;
}
.issue-row:hover {
  background: #f6f8fa;
}
.issue-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.issue-body {
  flex: 1;
  min-width: 0;
}
.issue-title {
  font-weight: 600;
  color: #1f2328;
  font-size: 15px;
  margin-bottom: 4px;
}
.issue-title a {
  color: #1f2328;
  text-decoration: none;
}
.issue-title a:hover {
  color: #0969da;
}
.issue-meta {
  color: #656d76;
  font-size: 12px;
}
.issue-label {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 4px;
  border: 1px solid transparent;
}
.issue-assignee {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.project-card {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 16px;
  background: #fff;
  transition: border-color 0.1s;
}
.project-card:hover {
  border-color: #0969da;
}
.project-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.project-card h3 a {
  color: #0969da;
  text-decoration: none;
}
.project-card h3 a:hover {
  text-decoration: underline;
}
.project-card p {
  color: #656d76;
  font-size: 13px;
  margin-bottom: 12px;
}
.project-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #656d76;
}
.project-progress {
  margin-top: 8px;
}
.progress-bar-bg {
  background: #d0d7de;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  background: #1a7f37;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
.project-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.status-open {
  background: #dafbe1;
  color: #1a7f37;
}
.status-closed {
  background: #f3f0ff;
  color: #8250df;
}

/* ============================================================
   WIKI / PAGE content
   ============================================================ */
.wiki-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0 64px;
}
.wiki-nav {
  width: 220px;
  flex-shrink: 0;
}
.wiki-nav-list {
  list-style: none;
}
.wiki-nav-list li a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  color: #1f2328;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.1s;
}
.wiki-nav-list li a:hover {
  background: #f3f4f6;
}
.wiki-nav-list li a.active {
  background: #ddf4ff;
  color: #0969da;
  font-weight: 600;
}
.wiki-main {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   INSIGHTS / STATS PAGE
   ============================================================ */
.insights-nav {
  width: 200px;
  flex-shrink: 0;
}
.insights-nav ul {
  list-style: none;
}
.insights-nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #1f2328;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.1s;
}
.insights-nav ul li a:hover {
  background: #f3f4f6;
}
.insights-nav ul li a.active {
  background: #f3f4f6;
  font-weight: 600;
}
.insights-main {
  flex: 1;
  min-width: 0;
}
.stat-card {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 20px;
  background: #fff;
}
.stat-card h3 {
  font-size: 14px;
  color: #656d76;
  font-weight: 400;
  margin-bottom: 8px;
}
.stat-card .stat-number {
  font-size: 36px;
  font-weight: 600;
  color: #1f2328;
  line-height: 1;
}
.stat-card .stat-sub {
  font-size: 13px;
  color: #1a7f37;
  margin-top: 4px;
}
.contrib-graph {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 2px;
  padding: 8px;
}
.contrib-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contrib-day {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: #656d76;
}
.empty-state svg {
  margin: 0 auto 16px;
  color: #d0d7de;
}
.empty-state h3 {
  font-size: 20px;
  font-weight: 400;
  color: #1f2328;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#gh-footer {
  border-top: 1px solid #d0d7de;
  padding: 40px 0;
  background: #f6f8fa;
}
.gh-footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.gh-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.gh-footer-nav a {
  font-size: 12px;
  color: #656d76;
  text-decoration: none;
}
.gh-footer-nav a:hover {
  color: #0969da;
}

/* ============================================================
   BRANCH / ACTION BAR
   ============================================================ */
.branch-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.branch-bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.gh-notice {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.gh-notice-info {
  border-color: #99ccff;
  background: #ddf4ff;
  color: #0550ae;
}
.gh-notice-success {
  border-color: #56d364;
  background: #dafbe1;
  color: #1a7f37;
}
.gh-notice-warning {
  border-color: #e3b341;
  background: #fff8c5;
  color: #9a6700;
}

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wp-block-image img {
  border-radius: 6px;
}
.wp-caption-text {
  font-size: 12px;
  color: #656d76;
  text-align: center;
  margin-top: 4px;
}
.alignnone {
  margin: 0 0 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1011px) {
  .repo-layout {
    flex-direction: column-reverse;
  }
  .repo-sidebar {
    width: 100%;
  }
  .sidebar-toggle-btn {
    display: flex;
  }
  .sidebar-collapsible {
    display: none;
  }
  .sidebar-collapsible.open {
    display: block;
  }
  .file-date {
    display: none;
  }
  .file-msg {
    display: none;
  }
  .wiki-layout {
    flex-direction: column;
  }
  .wiki-nav {
    width: 100%;
  }
  .insights-nav {
    display: none;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .gh-nav-links {
    display: none;
  }
  .gh-hamburger {
    display: block;
  }
  .gh-search {
    display: none;
  }
  .gh-mobile-search {
    display: flex;
  }
  .branch-bar-right .gh-btn-sm:not(.gh-btn-primary) {
    display: none;
  }
  .commit-sha {
    display: none;
  }
  .commit-count {
    display: none;
  }
  .tab-item .counter-badge {
    display: none;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .readme-body {
    padding: 16px;
  }
  .issues-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .gh-breadcrumb {
    font-size: 16px;
  }
  .branch-tag {
    display: none;
  }
  .readme-body h1 {
    font-size: 1.4em;
  }
  .readme-body h2 {
    font-size: 1.2em;
  }
}
