        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --ink: #0f172a;
            --paper: #1e293b;
            --paper-light: #334155;
            --text: #e2e8f0;
            --text-fade: #94a3b8;
            --highlight: #60a5fa;
            --accent: #3b82f6;
            --code: #1a1f2e;
            --warning: #fbbf24;
            --error: #f87171;
            --success: #34d399;
            --primary-color: #ffffff;
            --secondary-color: #6c757d;
            --main-font: 'chirp-reg';
            --heading-font: 'chirp-medium';
            --accent: #0bc6ff;
            --accent-hover: #08a4cc;
            --bg-primary: #000000;
            --bg-secondary: #111111;
            --bg-tertiary: #1a1a1a;
            --border: rgba(255, 255, 255, 0.1);
            --terminal-bg: #222222;
            --terminal-border: rgba(255, 255, 255, 0.1);
            --terminal-text: #0bc6ff;
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.85);
            --text-muted: rgba(255, 255, 255, 0.6);
            --font-mono: 'Fira Code', monospace;
}




        /* =====================================================
           HEADER DESIGN
           ===================================================== */
        .page-header {
            background: linear-gradient(165deg, #1e3a8a 0%, #3730a3 100%);
            padding: clamp(40px, 8vw, 80px) 20px clamp(30px, 6vw, 60px);
            position: relative;
            overflow: hidden;
        }

        .page-header::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 40%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="60" opacity="0.1" fill="white">{ }</text></svg>');
            background-size: 200px;
            opacity: 0.3;
        }

        .header-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: rgba(255,255,255,0.9);
            text-decoration: none;
            font-family: -apple-system, system-ui, sans-serif;
            font-size: clamp(0.85rem, 1.5vw, 0.95rem);
            margin-bottom: 30px;
            padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2vw, 16px);
            background: rgba(255,255,255,0.1);
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.2);
            transition: all 0.2s;
            min-height: 44px;
        }

        .back-link:hover {
            background: rgba(255,255,255,0.15);
            transform: translateX(-4px);
        }

        h1 {
            font-size: clamp(1.75rem, 5vw + 1rem, 2.75rem);
            font-weight: 700;
            color: white;
            margin-bottom: 20px;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .subtitle {
            font-size: clamp(1rem, 3vw + 0.5rem, 1.25rem);
            color: rgba(255,255,255,0.85);
            font-weight: 400;
            font-style: italic;
            margin-bottom: 25px;
        }

        .meta-info {
            display: flex;
            gap: 25px;
            flex-wrap: wrap;
            font-family: -apple-system, system-ui, sans-serif;
            font-size: clamp(0.8rem, 1.5vw, 0.9rem);
            color: rgba(255,255,255,0.7);
        }

        .meta-info span::before {
            content: '•';
            margin-right: 8px;
            color: var(--highlight);
        }

        /* =====================================================
           ARTICLE LAYOUT
           ===================================================== */
        .article-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: clamp(30px, 5vw, 60px) 20px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            align-items: start;
        }

        article {
            background: var(--paper);
            padding: clamp(25px, 5vw, 50px);
            border-radius: 8px;
            border: 1px solid var(--paper-light);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            animation: fadeIn 0.5s ease-out;
        }

        /* =====================================================
           TYPOGRAPHY
           ===================================================== */
        .lede {
            font-size: clamp(1.1rem, 2vw + 0.5rem, 1.3rem);
            line-height: 1.6;
            color: var(--text-fade);
            margin-bottom: 40px;
            padding-left: 20px;
            border-left: 4px solid var(--accent);
            font-style: italic;
        }

        article p {
            margin-bottom: 24px;
            font-size: clamp(1rem, 1.5vw + 0.5rem, 1.05rem);
        }

        article h2 {
            font-size: clamp(1.5rem, 3vw + 0.5rem, 1.9rem);
            margin: 60px 0 25px;
            color: var(--text);
            font-weight: 600;
            position: relative;
            padding-bottom: 12px;
        }

        article h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--accent);
        }

        article h2:first-of-type {
            margin-top: 0;
        }

        article h3 {
            font-size: clamp(1.2rem, 2.5vw + 0.5rem, 1.4rem);
            margin: 40px 0 20px;
            color: var(--highlight);
            font-weight: 600;
        }

        article ul, article ol {
            margin: 20px 0 30px 0;
            padding-left: 0;
            list-style: none;
        }

        article li {
            position: relative;
            padding-left: 30px;
            margin-bottom: 12px;
        }

        article ul li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }

        article ol {
            counter-reset: item;
        }

        article ol li::before {
            counter-increment: item;
            content: counter(item) ".";
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }

        strong {
            color: white;
            font-weight: 600;
        }

        em {
            color: var(--highlight);
        }

        /* =====================================================
           CODE BLOCKS - RESPONSIVE & WRAPPING
           ===================================================== */
        code {
            background: var(--code);
            padding: 3px 8px;
            border-radius: 4px;
            color: var(--highlight);
            font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
            font-size: 0.9em;
            border: 1px solid var(--paper-light);
        }

        pre {
            background: var(--code);
            padding: clamp(15px, 3vw, 25px);
            border-radius: 6px;
            overflow-x: auto;
            margin: 30px 0;
            border: 1px solid var(--paper-light);
            position: relative;
            white-space: pre-wrap;
            word-wrap: break-word;
            overflow-wrap: break-word;
            max-width: 100%;
        }

        pre code {
            background: none;
            padding: 0;
            border: none;
            color: #7dd3fc;
            font-size: clamp(0.8rem, 1.5vw, 0.95rem);
            line-height: 1.6;
            white-space: pre-wrap;
            word-break: break-word;
        }

        /* =====================================================
           CALLOUT BOXES
           ===================================================== */
        .insight {
            background: rgba(59, 130, 246, 0.08);
            border-left: 4px solid var(--accent);
            padding: 25px 30px;
            margin: 35px 0;
            border-radius: 0 6px 6px 0;
            position: relative;
        }

        .insight::before {
            content: 'ℹ';
            position: absolute;
            top: 25px;
            left: -14px;
            width: 28px;
            height: 28px;
            background: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
            font-size: 18px;
        }

        .insight h4 {
            margin: 0 0 12px;
            color: var(--highlight);
            font-size: 1.1em;
        }

        .insight p {
            margin-bottom: 12px;
        }

        .insight p:last-child {
            margin-bottom: 0;
        }

        .warning {
            background: rgba(251, 191, 36, 0.08);
            border-left-color: var(--warning);
        }

        .warning::before {
            content: '⚠';
            background: var(--warning);
            color: var(--ink);
        }

        .warning h4 {
            color: var(--warning);
        }

        .example {
            background: rgba(52, 211, 153, 0.08);
            border-left-color: var(--success);
        }

        .example::before {
            content: '✓';
            background: var(--success);
        }

        .example h4 {
            color: var(--success);
        }

        /* =====================================================
           TABLES - RESPONSIVE
           ===================================================== */
        .table-wrapper {
            overflow-x: auto;
            margin: 35px 0;
            -webkit-overflow-scrolling: touch;
        }

        table {
            width: 100%;
            min-width: 500px;
            margin: 0;
            border-collapse: separate;
            border-spacing: 0;
            background: var(--code);
            border-radius: 8px;
            overflow: hidden;
            font-family: -apple-system, system-ui, sans-serif;
        }

        thead {
            background: var(--ink);
        }

        th {
            padding: clamp(10px, 2vw, 16px);
            text-align: left;
            font-weight: 600;
            color: var(--highlight);
            font-size: clamp(0.85rem, 1.5vw, 0.95rem);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        td {
            padding: clamp(10px, 2vw, 14px) clamp(10px, 2vw, 16px);
            border-top: 1px solid var(--paper-light);
            font-size: clamp(0.85rem, 1.5vw, 0.95rem);
        }

        tbody tr:hover {
            background: rgba(59, 130, 246, 0.05);
        }

        /* =====================================================
           CODE COMPARISON
           ===================================================== */
        .code-compare {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin: 30px 0;
        }

        .code-label {
            font-family: -apple-system, system-ui, sans-serif;
            font-size: 0.85em;
            font-weight: 600;
            margin-bottom: 8px;
            padding: 6px 12px;
            border-radius: 4px;
            display: inline-block;
        }

        .wrong {
            background: rgba(248, 113, 113, 0.2);
            color: var(--error);
        }

        .right {
            background: rgba(52, 211, 153, 0.2);
            color: var(--success);
        }

        /* =====================================================
           SIDEBAR - INVISIBLE SCROLLBAR
           ===================================================== */
        aside {
            position: sticky;
            top: 20px;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            overflow-x: hidden;
        }

        /* Hide scrollbar - All browsers */
        aside::-webkit-scrollbar {
            display: none;
        }

        aside {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .sidebar-section {
            background: var(--paper);
            padding: clamp(15px, 3vw, 25px);
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid var(--paper-light);
            animation: fadeIn 0.5s ease-out;
        }

        .sidebar-section:last-child {
            margin-bottom: 0;
        }

        .sidebar-section h4 {
            font-family: -apple-system, system-ui, sans-serif;
            font-size: 0.95em;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-fade);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--paper-light);
        }

        .sidebar-section ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar-section li {
            padding: 10px 0;
            font-family: -apple-system, system-ui, sans-serif;
            font-size: 0.9em;
            color: var(--text-fade);
            border-bottom: 1px solid var(--paper-light);
        }

        .sidebar-section li:last-child {
            border-bottom: none;
        }

        .sidebar-section a {
            color: var(--highlight);
            text-decoration: none;
            transition: color 0.2s;
        }

        .sidebar-section a:hover {
            color: white;
        }

        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            background: var(--code);
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 0.8em;
            color: var(--text-fade);
            border: 1px solid var(--paper-light);
            font-family: -apple-system, system-ui, sans-serif;
        }

        /* =====================================================
           FOOTER
           ===================================================== */
        .article-footer {
            margin-top: 60px;
            padding-top: 30px;
            border-top: 2px solid var(--paper-light);
            font-family: -apple-system, system-ui, sans-serif;
        }

        .article-footer .tag-list {
            margin-bottom: 20px;
        }

        .author-note {
            color: var(--text-fade);
            font-style: italic;
            font-size: 0.95em;
        }

        /* =====================================================
           ANIMATIONS
           ===================================================== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        /* Small Mobile (320px - 479px) */
        @media (max-width: 479px) {
            .page-header {
                padding: 30px 15px 25px;
            }

            .meta-info {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }

            article {
                padding: 20px 15px;
            }

            .lede {
                font-size: 1.1rem;
                padding-left: 15px;
            }

            article ul, article ol {
                padding-left: 20px;
            }

            article li {
                padding-left: 20px;
            }

            .insight, .warning, .example {
                padding: 20px 20px 20px 35px;
            }

            .insight::before, .warning::before, .example::before {
                left: -10px;
                width: 24px;
                height: 24px;
                font-size: 14px;
            }

            table {
                min-width: 400px;
            }
        }

        /* Mobile (480px - 599px) */
        @media (min-width: 480px) and (max-width: 599px) {
            article {
                padding: 25px 20px;
            }
        }

        /* Large Mobile / Small Tablet (600px - 767px) */
        @media (min-width: 600px) and (max-width: 767px) {
            article {
                padding: 30px 25px;
            }

            .article-wrapper {
                padding: 40px 25px;
            }
        }

        /* Tablet Portrait (768px - 899px) */
        @media (min-width: 768px) and (max-width: 899px) {
            .article-wrapper {
                grid-template-columns: 1fr;
                padding: 50px 30px;
            }

            article {
                padding: 40px 35px;
            }

            aside {
                position: static;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
                max-height: none;
                overflow-y: visible;
            }

            .code-compare {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Tablet Landscape (900px - 1023px) */
        @media (min-width: 900px) and (max-width: 1023px) {
            .article-wrapper {
                grid-template-columns: 1fr 260px;
                gap: 35px;
            }

            article {
                padding: 40px;
            }

            .code-compare {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Desktop (1024px - 1199px) */
        @media (min-width: 1024px) and (max-width: 1199px) {
            .article-wrapper {
                grid-template-columns: 1fr 280px;
                gap: 40px;
            }

            article {
                padding: 45px;
            }

            .code-compare {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Large Desktop (1200px - 1399px) */
        @media (min-width: 1200px) and (max-width: 1399px) {
            .article-wrapper {
                grid-template-columns: 1fr 280px;
                gap: 50px;
            }

            article {
                padding: 50px;
            }

            .code-compare {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Extra Large Desktop (1400px+) */
        @media (min-width: 1400px) {
            .article-wrapper {
                max-width: 1400px;
                grid-template-columns: 1fr 300px;
                gap: 60px;
                padding: 60px 40px;
            }

            article {
                padding: 50px 60px;
            }

            .page-header::after {
                width: 30%;
            }
        }

        /* Landscape Orientation Fixes */
        @media (max-width: 900px) and (orientation: landscape) {
            .page-header {
                padding: 30px 20px 25px;
            }

            aside {
                position: static;
                max-height: none;
                overflow-y: visible;
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
                gap: 15px;
            }

            article {
                padding: 30px;
            }
        }

        /* Touch Device Optimizations */
        @media (hover: none) and (pointer: coarse) {
            .back-link,
            .sidebar-section a,
            .tag {
                min-height: 44px;
                min-width: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            article li {
                padding: 8px 0 8px 30px;
            }

            .back-link:hover,
            .sidebar-section:hover {
                transform: none;
            }
        }

        /* Print Styles */
        @media print {
            body {
                background: white;
                color: black;
            }

            .page-header {
                background: none;
                color: black;
                border-bottom: 2px solid black;
            }

            .back-link,
            aside {
                display: none;
            }

            .article-wrapper {
                grid-template-columns: 1fr;
                padding: 0;
            }

            article {
                background: white;
                border: none;
                box-shadow: none;
                padding: 20px 0;
            }

            pre {
                border: 1px solid #ccc;
                background: #f5f5f5;
                page-break-inside: avoid;
            }

            h2 {
                page-break-after: avoid;
            }

            .insight, .warning, .example {
                border: 1px solid #ccc;
                page-break-inside: avoid;
            }
        }

        /* Accessibility */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        @media (prefers-contrast: high) {
            :root {
                --border: #666;
                --paper-light: #555;
            }

            .back-link,
            .sidebar-section,
            article {
                border-width: 2px;
            }
        }

/* =====================================================
   GLOBAL VARIABLES & FONTS
   ===================================================== */



@font-face {
  font-family: 'chirp-reg';
  src: url(/assets/fonts/chirp-regular-web.woff) format('woff');
}
@font-face {
  font-family: 'chirp-medium';
  src: url(/assets/fonts/chirp-medium-web.woff) format('woff');
}
@font-face {
  font-family: 'chirp-bold';
  src: url(/assets/fonts/chirp-bold-web.woff) format('woff');
}
@font-face {
  font-family: 'chirp-heavy';
  src: url(/assets/fonts/chirp-heavy-web.woff) format('woff');
}

/* =====================================================
   BASE STYLES
   ===================================================== */
body {
  margin: 0;
  font-family: var(--main-font);
  background-color: #000000;
  color: var(--text-primary);
}

.h1 {
  text-align: center;
  font-family: 'chirp-heavy';
  font-size: large;
}

/* =====================================================
   LAYOUT GRID - 3 COLUMNS
   ===================================================== */
.layout {
  display: grid;
  grid-template-columns: 1fr 600px 1.2fr; /* left | center | right */
  min-height: 100vh;
}

/* =====================================================
   LEFT & RIGHT SIDEBARS
   ===================================================== */
.sidebar {
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  height: 100vh;
  overflow-y: auto;
}

.sidebar.left {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 5;
}

.sidebar.left .sidebar-inner {
  display: flex;
  flex-direction: row; /* logo + nav columns */
  height: 100%;
  gap: 2rem;
}

.sidebar-col-left {
  flex: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sidebar-col-right {
  flex: 2.5;
  
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.nav-button button ion-icon {
  font-size: 30px; /* change to whatever size you want */
  vertical-align: middle; /* keeps it aligned with text */
}

.nav-button ion-icon,
.nav-button .m-logo-in-nav {
    pointer-events: none; /* lets clicks pass through to the <a> */
}


.nav-button button,
.nav-button button a {
  color: inherit;
  text-decoration: none;;
}

.sidebar-col-right .nav-button button {
  width: auto;                  /* shrink to content */
  display: inline-flex;         /* shrink + flex for icon + text */
  align-items: center;          /* vertically center icon + text */
  justify-content: flex-start;  /* keep icon left of text */
  gap: 15px;                    /* space between icon and text */
  padding: 1rem 0.8rem;       /* background padding */
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 22px;
  border-radius: 8px;           /* rounded corners for hover */
  
}

.sidebar-col-right .nav-button button:hover {
  background-color: rgba(49, 45, 45, 0.418);
  border-radius: 50px;
  transition: background 0.2s;
  
  
}

.sidebar.left .sidebar-inner-scroll {
  overflow-y: auto;
  flex: 1;
}



/*===============================*/
/*THIS IS FOR ONLY THE GROK PAGE*/
/*===============================*/
/* =====================================================
   LAYOUT GRID - 3 COLUMNS
   ===================================================== */
.grok-layout {
  display: grid;
  grid-template-columns: 2.3fr 4fr 1fr; /* left | center | right */
  min-height: 100vh;
  background: url(/assets/gif/stars.gif);
  background-position: center;
  background-repeat: none;
  background-size: cover;
}

/* =====================================================
   LEFT & RIGHT SIDEBARS
   ===================================================== */
.grok-sidebar {
  background:transparent;
  color: var(--text-primary);
  position: relative;
  height: 100vh;
  overflow-y: auto;

}

.grok-sidebar.left {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 5;
 


}

.grok-sidebar.left .grok-sidebar-inner {
  display: flex;
  flex-direction: row; /* logo + nav columns */
  height: 100%;
  gap: 2rem;
}

.grok-sidebar-col-left {
  flex: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.grok-sidebar-col-right {
  flex: 2.5;
  
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.nav-button button ion-icon {
  font-size: 30px; /* change to whatever size you want */
  vertical-align: middle; /* keeps it aligned with text */
}

.nav-button ion-icon,
.nav-button .m-logo-in-nav {
    pointer-events: none; /* lets clicks pass through to the <a> */
}


.nav-button button,
.nav-button button a {
  color: inherit;
  text-decoration: none;;
}

/* Grok-Post Button */
.grok-post-btn {
  background-color: var(--primary-color);
  color: var(--bg-primary);
  border: none;
  border-radius: 25px;
  padding: 1rem 6rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
  font-family: 'chirp-bold';
 
  
}



.grok-post-btn:hover {
  background-color: var(--accent-hover);
}




.grok-sidebar-col-right .nav-button button {
  width: auto;                  /* shrink to content */
  display: inline-flex;         /* shrink + flex for icon + text */
  align-items: center;          /* vertically center icon + text */
  justify-content: flex-start;  /* keep icon left of text */
  gap: 15px;                    /* space between icon and text */
  padding: 1rem .8rem;       /* background padding */
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 22px;
  border-radius: 8px;           /* rounded corners for hover */
  
}

.grok-sidebar-col-right .nav-button button:hover {
  background-color: rgba(49, 45, 45, 0.418);
  border-radius: 50px;
  transition: background 0.2s;
  
  
}

.grok-sidebar.left .grok-sidebar-inner-scroll {
  overflow-y: auto;
  flex: 1;
}
/* =====================================================
   SEARCH BAR  -------------------inside-------
   ===================================================== */

   .grok-sidebar-col-right-grok {
  flex: 2.5;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  top: 40%;
}

/*buttons under search bar*/

.nav-button-grok button ion-icon {
  font-size: 1rem; /* change to whatever size you want */
  vertical-align: middle; /* keeps it aligned with text */
}

.nav-button-grok ion-icon,
.nav-button-grok .m-logo-in-nav {
    pointer-events: none; /* lets clicks pass through to the <a> */
}


.nav-button-grok button,
.nav-button-grok button a {
  color: inherit;
  text-decoration: none;;

}

.grok-sidebar-col-right-grok .nav-button-grok button {
  width: auto;                  /* shrink to content */
  display: inline-flex;         /* shrink + flex for icon + text */
  align-items: center;          /* vertically center icon + text */
  justify-content: flex-start;  /* keep icon left of text */
  gap: 15px;                    /* space between icon and text */
  padding: .6rem 0.8rem;       /* background padding */
  background: none;
  border: .5px solid;
  border-color: #333;
  border-radius: 50px;
  padding: 12px 12px;;
  margin: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  border-radius: 25px;           /* rounded corners for hover */
  
}

.grok-sidebar-col-right-grok .nav-button-grok button:hover {
  background-color: rgba(49, 45, 45, 0.418);
  border-radius: 50px;
  transition: background 0.2s;
  
  
}


/* =====================================================
   RIGHT SIDEBAR 
   ===================================================== */
.grok-sidebar.right {
  background: transparent;
  color: var(--text-primary);
  
  height: 100vh;
  width: 75%;
  overflow: hidden;
  
  box-sizing: border-box;
  display: grid;
  

  
}


    .grok-main-container {
     display: flex;
     flex-direction: column;
     padding-bottom: 5rem ; 
     margin: 0;
    }

/* The search box area inside the right sidebar */
.grok-sidebar.right .grok-search-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: black;
  border: 1px solid;
  border-color: #333;
  border-radius: 50px;
  padding: 12px 12px;
  
  top: 40%;
  

}


.grok-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #555; /* dark gray by default */
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.grok-submit.enabled {
  background-color: rgb(211, 197, 197); /* bright when text is typed */
}

.grok-submit.enabled:hover {
  box-shadow: 0 0 12px rgba(255,0,0,0.6);
}

.grok-submit ion-icon {
  font-size: 22px;
  color: rgb(0, 0, 0);
  
}




.paper-clip-ion-icon {
  display: inline-block;    /* safe for transforms */
  font-size: 1.5em;           /* match icon size to text (1em uses .grok-search-logo font-size) */
  line-height: 1;           /* avoids extra vertical spacing */
  vertical-align: middle;   /* extra safety for inline alignment */
  transform: scaleX(-1) 

}

.grok-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700; /* or 400 if you want regular weight */
  font-optical-sizing: auto;
  font-size: 2rem;
}


.noto-sans-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.grok-search-logo {
  display: flex;
  align-items: center;      /* vertically center icon + text */
  justify-content: center;  /* horizontally center inside parent */
  gap: 0.5rem;              /* space between icon and text */
  font-size: 2rem;          /* controls text size and icon size (icon inherits) */
  position: relative;
  top: 40%;                 /* keep if you intentionally want vertical offset */
  text-align: center;
  padding: 1rem;
}

.grok-sidebar.right .grok-search-input {
  flex: 1;
  border: 1px;
  background: none;
  padding: 7px;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  border-radius: 50px;
  

}

/* Hide any scrollbars just in case */
.grok-sidebar.right::-webkit-scrollbar {
  display: none;
}
.grok-sidebar.right {
  scrollbar-width: none;
}

/* =====================================================
   DRAWER STYLES
   ===================================================== */
.drawer {
  position: fixed;
  left: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: var(--paper);
  z-index: 999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.drawer.open {
  left: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.drawer-overlay.open {
  display: block;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer .nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer .nav-button {
  background: var(--code);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.drawer .nav-button:hover {
  background: var(--paper-light);
}

.drawer .nav-button button {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  width: 100%;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* Show menu toggle on mobile (below 1100px like your grok-layout) */
@media (max-width: 1099px) {
  .menu-toggle {
    display: block;
  }
}


/*end grok page*/







/* Logos */
.m-logo img {
  height: 40px;
  width: 40px;
  padding-left: 1rem;
  padding-bottom: 1rem;
}

.m-logo-in-nav img {
  height: 20px;
  width: 20px;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.content {
  background: var(--bg-primary);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.grok-content {
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

}

/* =====================================================
   TOP BUTTON BAR
   ===================================================== */
.top-button {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.top-button button {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding: 1rem 0;
  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


.top-button button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 40%;
  width: 20%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;

}

.top-button button:hover {
  background-color: rgba(56, 50, 50, 0.418);
  transition: background 0.2s, border-bottom 0.2s;
}

.top-button a {
  color: inherit;
  text-decoration: none;
}

/* =====================================================
   SEARCH BAR
   ===================================================== */
/* =====================================================
   RIGHT SIDEBAR (STICKY + CLEAN SEARCH)
   ===================================================== */
.sidebar.right {
  background: var(--bg-primary);
  color: var(--text-primary);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding-top: .5rem; 
  padding-left: 2rem;
  box-sizing: border-box;
}

/* The search box area inside the right sidebar */
.sidebar.right .search-container {

  position: sticky;
  display: flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border-radius: 50px;
  padding: 5px 12px 5px;
  width: 50%;
  padding: .5rem;
  z-index: 10;
}

.sidebar.right .search-input {
  flex: 1;
  border: 1px;
  background: none;
  padding: 7px;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  border-radius: 50px;

}

/* Hide any scrollbars just in case */
.sidebar.right::-webkit-scrollbar {
  display: none;
}
.sidebar.right {
  scrollbar-width: none;
}


/* =====================================================
   NEW POST & POST LAYOUT
   ===================================================== */
.new-post {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  padding: 0;
  transition: background-color 0.2s;
  align-items: flex-start;
  
}



/* Content area */
.new-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border: none;
  
}

/* Input area */
.new-post-input {
  width: 90%;
  min-height: 60px;
  padding: 0.6rem 0.8rem;
  font-family: var(--main-font);
  font-size: 1.3rem;
  color: var(--text-muted);
  background-color: var(--bg-primary);
  border: none;
  resize: none;
  outline: none;
  
}

.new-post-input::-webkit-scrollbar {
    display: none;  /* WebKit browsers */

}

.new-post-input:focus {
  border-color: var(--accent);
  
}

/* Action Row */
.new-post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
}

/* Icon Buttons */
.icon-actions {
  display: flex;
  gap: 0.6rem;
  
}

.action-btn {
  background: none;
  border: none;
  color: #1d9bf0;
  font-size: 1.23rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.action-btn:hover {
  background-color: rgba(11, 198, 255, 0.1);
  color: var(--accent);
}

/* Icon Buttons under post */
.icon-actions-post {
  display: flex;
  gap: 5rem;
  co
}

.post-action-btn {
  background: none;
  border: none;
  color: grey;
  font-size: 1.23rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.post-action-btn:hover {
  background-color: rgba(11, 198, 255, 0.1);
  color: var(--accent);
}

.post-box{
  background-size: contain;
}

/* Post Button */
.post-btn {
  background-color: var(--primary-color);
  color: var(--bg-primary);
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 2rem;
  
}



.post-btn:hover {
  background-color: var(--accent-hover);
}

/* Responsive */
@media (max-width: 600px) {
  .new-post {
    flex-direction: column;
    align-items: stretch;
  }
  .new-post-actions {
    flex-direction: row;
    justify-content: space-between;
  }
}

.user-profile-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #333;
  margin-left: 1rem;
  margin-top: 1rem;
  background-image: var(--profile-image);
  
}





/*end new post */

.post {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  transition: background-color 0.2s;
}

.post:hover {
  background-color: rgba(0, 255, 255, 0.05);
}

.profile-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #333;
  background-image: var(--profile-image);
}

.username {
  font-weight: 700;
}

.handle {
  color: rgb(150, 150, 150);
  margin-left: 4px;
}

.verified-badge {
  height: 20px;
  width: 20px;
  vertical-align: middle;
}

.post-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.post-text {
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.new-post-text-box {

}

.post-image {
  width: 500px;
  height: 300px;
  border-radius: 4%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #333;
  margin-top: 1rem;
  background-image: var(--post-image);
  
}


/* =====================================================
   TYPOGRAPHY & HEADINGS
   ===================================================== */
body, .h1, h2, h3, h4, p, li {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.h1 {
  text-align: center;
  font-family: 'chirp-heavy';
}

.post-container-blog .post-main-blog h2,
.post-container-blog .post-main-blog h3,
.post-container-blog .post-main-blog h4 {
  max-width: 700px;
  color: var(--text-primary);
}

.post-container-blog .post-main-blog h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 3rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

/* =====================================================
   CODE BLOCKS, TABLES & IMAGES
   ===================================================== */
.post-container-blog .post-main-blog code {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--accent);
  border: 1px solid var(--border);
}

.post-container-blog .post-main-blog pre {
  max-width: 900px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-container-blog .post-main-blog table {
  max-width: 900px;
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-tertiary);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-container-blog .post-main-blog img {
  max-width: 900px;
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* =====================================================
   CALLOUT BOXES
   ===================================================== */
.post-container-blog .callout {
  max-width: 700px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .post-container-blog .post-main-blog, .post-container-blog .post-sidebar-blog { max-width: 100%; }
}

@media (max-width: 768px) {
  .sidebar.left { display: none; }
  .x-logo { display: block; text-align: center; }
}

@media (max-width: 480px) {
  .post-container-blog { padding: 0.75rem; }
  .post-container-blog .post-main-blog { padding: 1rem; }
}


/* Logo handling */
.x-logo {
  display: none; /* hidden by default */
  text-align: center;
}

@media (max-width: 768px) {
  .x-logo {
    display: block; /* visible only on mobile/tablet */
  }
}

/* =====================================================
   END REWRITTEN RESPONSIVE CSS
   ===================================================== */


