/* michaelhele.com — main stylesheet
   Extracted from inline <style>. Tokens unchanged. */

:root{
  --ink:#0F0F0F;
  --paper:#FFFFFF;
  --grey-mid:#6E6E6E;
  --grey-soft:#9A9A9A;
  --grey-label:#5C5C5C;
  --line:#E2E2E2;
  --line-strong:#C9C9C9;
  --focus:#0F0F0F;
  --unit: 8px;
}

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

html{scroll-behavior:smooth;}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

/* Grid backdrop */
.grid-backdrop{
  position:fixed;
  inset:0;
  z-index:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 90%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 90%);
  pointer-events:none;
}

.crosshair{
  position:fixed;
  top:0; left:0;
  width:1px; height:100vh;
  background:var(--line-strong);
  z-index:1;
  pointer-events:none;
  transition:opacity .3s ease;
}
.crosshair.h{width:100vw; height:1px;}
.coord{
  position:fixed;
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  letter-spacing:.05em;
  color:var(--grey-soft);
  z-index:2;
  pointer-events:none;
  white-space:nowrap;
}

@media (max-width: 720px){
  .crosshair, .coord{ display:none; }
}

/* Subtle occasional motion for touch devices, where there's no cursor to drive the crosshair */
.mobile-signal{
  display:block;
  position:fixed;
  z-index:2;
  pointer-events:none;
}
@media (pointer: fine){
  .mobile-signal{ display:none !important; }
}

.mobile-signal.dot{
  top:22%;
  left:-2%;
  width:6px; height:6px;
  background:var(--ink);
  border-radius:50%;
  opacity:0;
  animation: signal-travel 15s ease-in-out infinite;
}
.mobile-signal.dot.alt{
  top:68%;
  animation-duration:19s;
  animation-delay:6s;
}

.mobile-signal.tag{
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  letter-spacing:.05em;
  color:var(--grey-label);
  opacity:0;
}
.mobile-signal.tag.t1{
  top:16%; right:20px;
  animation: coord-blip 21s ease-in-out infinite;
  animation-delay:3s;
}
.mobile-signal.tag.t2{
  bottom:22%; left:20px;
  animation: coord-blip 24s ease-in-out infinite;
  animation-delay:12s;
}

@keyframes signal-travel{
  0%, 84%  { left:-2%; opacity:0; }
  86%      { opacity:.55; }
  94%      { left:102%; opacity:.55; }
  97%, 100%{ left:102%; opacity:0; }
}

@keyframes coord-blip{
  0%, 88%  { opacity:0; }
  90%, 96% { opacity:.6; }
  100%     { opacity:0; }
}

/* AI tool ticker — a quiet, greyscale strip pinned to the bottom of the viewport */
.ai-ticker{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:150;
  display:flex;
  justify-content:center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  opacity: 1;
  pointer-events: auto;
}
.ai-ticker-inner{
  display:flex;
  align-items:center;
  gap:12px;
  max-width:480px;
  width:100%;
}
.ai-ticker-box{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  border:1px solid var(--line-strong);
  border-radius:20px;
  background: rgba(0, 0, 0, 0.02);
  padding:7px 14px;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  color:var(--grey-label);
  white-space:nowrap;
  overflow:hidden;
}
.ai-ticker-tool{
  flex-shrink:0;
  font-weight:500;
  color:var(--grey-mid);
  transition: opacity .4s ease;
}
.ai-ticker-text{
  overflow:hidden;
  text-overflow:ellipsis;
}
.ai-ticker-cursor{
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink{ 50%{ opacity:0; } }

/* The logo sits outside the box, floated to the far right of the bar */
.ai-ticker-icon{
  flex:0 0 auto;
  width:20px; height:20px;
  display:flex; align-items:center; justify-content:center;
  filter:grayscale(1);
  opacity:.55;
  transition: filter .6s ease, opacity .6s ease;
}
.ai-ticker-icon.colored {
  filter: grayscale(0) !important;
  opacity: 1 !important;
}
.ai-ticker-icon svg,
.ai-ticker-icon img{
  width:100%; height:100%;
  display:block;
}

@media (max-width: 480px){
  .ai-ticker-tool{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .ai-ticker{ display:none !important; }
}

main{
  position:relative;
  z-index:3;
  max-width:920px;
  margin:0 auto;
  padding: clamp(20px, 3.5vw, 40px) 24px 160px;
}

/* Header / eyebrow */
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--grey-mid);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: clamp(16px, 3vw, 28px);
}
.eyebrow .dot{
  width:6px; height:6px;
  background:var(--ink);
  border-radius:50%;
  flex-shrink:0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{opacity:1;}
  50%{opacity:.25;}
}

/* Hero */
.hero h1{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height:0.98;
  letter-spacing:-0.02em;
  margin-bottom: 20px;
}
.hero h1 span{
  display:block;
  color:var(--grey-label);
  font-weight:500;
}

.hero p.lede{
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height:1.55;
  color:var(--grey-mid);
  max-width: 46ch;
  margin-bottom: clamp(36px, 7vw, 64px);
}
.hero p.lede strong{ color:var(--ink); font-weight:500; }

/* Section label */
.section-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--grey-label);
  border-top:1px solid var(--line-strong);
  padding-top:10px;
  margin-bottom:20px;
  display:flex;
  justify-content:space-between;
}

/* Sub-label above a brand's social row (was inline style) */
.channel-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--grey-label);
  margin-bottom:10px;
}

/* Ventures grid */
.ventures{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:1px;
  background:var(--line-strong);
  border:1px solid var(--line-strong);
  margin-bottom: clamp(40px, 7vw, 72px);
}
@media (max-width: 620px){
  .ventures{ grid-template-columns: 1fr; }
}

.venture{
  background:var(--paper);
  padding: 26px 24px;
  position:relative;
  transition: background .18s ease;
}
.venture:hover, .venture:focus-within{
  background:#FAFAFA;
}
.venture .num{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  color:var(--grey-label);
  display:block;
  margin-bottom:14px;
}
.venture h2, .venture h3, .venture h4 {
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:1.15rem;
  letter-spacing:-0.01em;
  margin-bottom:8px;
}
.venture h2 a, .venture h3 a, .venture h4 a {
  color:var(--ink);
  text-decoration:none;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat:no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .25s ease;
}
.venture h2 a:hover, .venture h2 a:focus-visible,
.venture h3 a:hover, .venture h3 a:focus-visible,
.venture h4 a:hover, .venture h4 a:focus-visible {
  background-size: 100% 1px;
}

/* Tightened layout for nested options inside step content */
.step-item-content .ventures {
  margin: 16px 0 0;
}
.step-item-content .venture {
  padding: 16px 20px;
}
.step-item-content .venture-meta {
  margin-bottom: 6px;
}
.step-item-content .venture h2,
.step-item-content .venture h3,
.step-item-content .venture h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.step-item-content .venture p {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 8px;
}
.step-item-content .venture .btn-group {
  margin-top: 10px;
}

/* Smaller buttons helper */
.btn-sm {
  padding: 4px 10px;
  font-size: 10px;
}
.venture p{
  font-size:0.92rem;
  line-height:1.5;
  color:var(--grey-mid);
}
.venture .tag{
  display:inline-block;
  margin-top:14px;
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--grey-label);
}
.venture .pending{
  display:inline-block;
  margin-top:14px;
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--grey-label);
  border:1px dashed var(--line-strong);
  padding:3px 8px;
}

a:focus-visible, button:focus-visible{
  outline:2px solid var(--focus);
  outline-offset:3px;
}

/* Social */
.social-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom: clamp(40px, 7vw, 72px);
}
/* Tighter bottom margin when rows stack under channel labels (was inline style) */
.social-row--stacked{
  margin-bottom:28px;
}
.social-link{
  width:44px; height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line-strong);
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.social-link:hover, .social-link:focus-visible{
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}

/* Companies (AMD offices) */
.offices{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top:20px;
  border-top:1px solid var(--line-strong);
  margin-bottom: clamp(40px, 7vw, 64px);
}
@media (max-width: 620px){
  .offices{ grid-template-columns: 1fr; gap:24px; }
}
.office h3{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--grey-label);
  margin-bottom:8px;
}
.office p{
  font-size:0.92rem;
  line-height:1.6;
  color:var(--grey-mid);
}
.office a{
  color:var(--ink);
  font-weight:500;
}

footer{
  padding-top:24px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:.04em;
  color:var(--grey-label);
}
footer a{
  color:var(--grey-mid);
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--ink);
  color:var(--paper);
  padding:10px 16px;
  z-index:100;
  font-family:'IBM Plex Mono', monospace;
  font-size:13px;
}
.skip-link:focus{ left:16px; top:16px; }

@media (prefers-reduced-motion: reduce){
  .eyebrow .dot{ animation:none; }
  .mobile-signal{ display:none !important; }
  html{ scroll-behavior:auto; }
}

/* ---------- Help Page Extensions ---------- */

/* OS-specific display filters */
body.platform-windows .only-mac {
  display: none !important;
}
body.platform-mac .only-windows {
  display: none !important;
}

/* OS Switcher styling */
.os-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.os-selector-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--grey-label);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.os-tab-btn {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--grey-label);
  padding: 8px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .18s ease;
}
.os-tab-btn:hover, .os-tab-btn:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}
.os-tab-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Step container & details */
.step-section {
  margin-bottom: clamp(48px, 8vw, 80px);
}
.step-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.step-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--grey-mid);
  margin-bottom: 24px;
  max-width: 72ch;
}
.step-intro strong {
  color: var(--ink);
  font-weight: 500;
}

/* Sequence step items (Phases 1, 6) */
.step-sequence {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step-item {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  transition: border-color .18s ease;
}
.step-item:hover, .step-item:focus-within {
  border-color: var(--line-strong);
}
.step-item-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.step-item-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--grey-soft);
  flex-shrink: 0;
}
.step-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.step-item-content {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--grey-mid);
}
.step-item-content p {
  margin-bottom: 12px;
}
.step-item-content p:last-child {
  margin-bottom: 0;
}
.step-item-content strong {
  color: var(--ink);
  font-weight: 500;
}
.step-item-content ul {
  list-style: none;
  margin-top: 10px;
  padding-left: 0;
}
.step-item-content li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.step-item-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--grey-soft);
}
.step-item-content li:last-child {
  margin-bottom: 0;
}

/* Action button configurations */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn i {
  margin-right: 8px;
  font-size: 12px;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--paper);
  color: var(--ink);
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* Info Callout Blocks (PowerShell, Terminal explanations) */
.info-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 720px) {
  .info-callout-grid {
    grid-template-columns: 1fr;
  }
}
.info-callout {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  padding: 24px;
}
.info-callout-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--grey-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.info-callout h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.info-callout p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--grey-mid);
  margin-bottom: 12px;
}
.info-callout p:last-child {
  margin-bottom: 0;
}
.info-callout strong {
  color: var(--ink);
  font-weight: 500;
}

/* Fenced Code / Terminal Window style for Geek Customisation */
.terminal-window {
  background: #111111;
  border: 1px solid #333333;
  margin-top: 24px;
  overflow: hidden;
}
.terminal-header {
  background: #1A1A1A;
  border-bottom: 1px solid #2A2A2A;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terminal-controls {
  display: flex;
  gap: 6px;
}
.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444;
}
.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }

.terminal-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #888888;
}
.terminal-copy-btn {
  background: transparent;
  border: 1px solid #444444;
  color: #888888;
  padding: 4px 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
}
.terminal-copy-btn:hover, .terminal-copy-btn:focus-visible {
  color: #FFFFFF;
  border-color: #888888;
  outline: none;
}
.terminal-body {
  padding: 20px;
  overflow-x: auto;
}
.terminal-body pre {
  margin: 0;
}
.terminal-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: #D4D4D4;
  line-height: 1.5;
  display: block;
}

/* Custom card additions for standard instructions inside grid */
.venture .btn-group {
  margin-top: 14px;
}
.venture-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--grey-label);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.brand-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.85;
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.brand-logo.logo-dark {
  display: none;
}
.brand-logo.logo-light {
  display: block;
}
body.dark-mode .brand-logo.logo-dark {
  display: block;
}
body.dark-mode .brand-logo.logo-light {
  display: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-label);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all .2s ease;
  padding: 4px 0;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Footer layout elements */
.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.footer-separator {
  color: var(--line-strong);
}
footer a {
  transition: color .2s ease;
}
footer a:hover, footer a:focus-visible {
  color: var(--ink);
}

/* Navigation Hamburger Button */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: all .2s ease;
  border-radius: 4px;
}
.nav-toggle-btn:hover, .nav-toggle-btn:focus-visible {
  border-color: var(--ink);
  background: rgba(0,0,0,0.02);
}
body.dark-mode .nav-toggle-btn:hover, body.dark-mode .nav-toggle-btn:focus-visible {
  background: rgba(255,255,255,0.05);
}
.hamburger-bar {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: all 0.25s ease-in-out;
  display: block;
}

/* Toggle Animation to "X" */
.nav-toggle-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Dark Mode Overrides ---------- */
body.dark-mode {
  --ink: #F0F0F0;
  --paper: #0F0F0F;
  --grey-mid: #9A9A9A;
  --grey-soft: #6E6E6E;
  --grey-label: #C9C9C9;
  --line: #222222;
  --line-strong: #333333;
  --focus: #F0F0F0;
}
/* In dark mode, ensure the grid backdrop line color adapts */
body.dark-mode .grid-backdrop {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  opacity: 0.4;
}
/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--grey-label);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  padding: 0;
  border-radius: 50%;
}
.theme-toggle-btn:hover, .theme-toggle-btn:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(0,0,0,0.02);
}
body.dark-mode .theme-toggle-btn:hover, body.dark-mode .theme-toggle-btn:focus-visible {
  background: rgba(255,255,255,0.05);
}

/* Dark mode custom overrides for visual items */
body.dark-mode .info-callout {
  background: #141414;
}
body.dark-mode .step-item {
  background: #141414;
}
body.dark-mode .venture {
  background: #141414;
}
body.dark-mode .venture:hover, body.dark-mode .venture:focus-within {
  background: #1C1C1C;
}
body.dark-mode .terminal-window {
  border-color: #222;
}
body.dark-mode .terminal-header {
  background: #161616;
  border-color: #222;
}
body.dark-mode .ai-ticker-box {
  background: rgba(255, 255, 255, 0.04);
}
body.dark-mode .ai-ticker-icon {
  filter: grayscale(1) invert(0.85) !important;
  opacity: 0.7 !important;
}
body.dark-mode .ai-ticker-icon.colored {
  filter: grayscale(0) !important;
  opacity: 1 !important;
}

/* Make header responsive on mobile */
@media (max-width: 620px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 20px;
    gap: 12px;
  }
  
  .nav-toggle-btn {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-top: none;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  body.dark-mode .main-nav {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 8px 0;
    font-size: 12px;
  }

  .main-nav .theme-toggle-btn {
    margin-top: 8px;
    align-self: flex-start;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-separator {
    display: none;
  }
}

/* ---------- YouTube Subscribe CTA Section ---------- */
.cta-box {
  position: relative;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease, margin 0.8s ease;
  width: 100%;
}
.cta-box.revealed {
  max-height: 250px;
  opacity: 1;
  margin: 48px 0;
}

.cta-box-border {
  position: relative;
  padding: 1px; /* border thickness */
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
  width: 100%;
}

/* Conic gradient line animation */
.cta-box.revealed .cta-box-border::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 20%,
    var(--grey-soft) 40%,
    var(--ink) 50%,
    var(--grey-soft) 60%,
    transparent 80%
  );
  animation: rotate-border 5s linear infinite;
  z-index: 1;
}

@keyframes rotate-border {
  100% { transform: rotate(360deg); }
}

.cta-inner {
  position: relative;
  background: var(--paper);
  border-radius: 11px;
  padding: 32px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cta-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: var(--grey-label);
  margin: 0;
  line-height: 1.4;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s ease;
  background: #FF0000;
  color: #FFFFFF;
  border: 1px solid #FF0000;
}
.btn-youtube:hover, .btn-youtube:focus-visible {
  background: #E60000;
  border-color: #E60000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
  color: #FFFFFF;
}
body.dark-mode .btn-youtube:hover, body.dark-mode .btn-youtube:focus-visible {
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.45);
  color: #FFFFFF;
}

/* ---------- AI Help Page Expanded Styles ---------- */

/* Why am I doing this callout box */
.why-box {
  background: rgba(0,0,0,0.015);
  border-left: 3px solid var(--line-strong);
  padding: 18px 20px;
  margin-bottom: 24px;
}
body.dark-mode .why-box {
  background: rgba(255,255,255,0.01);
  border-left-color: var(--line-strong);
}
.why-box .info-callout-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.why-box p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--grey-mid);
  margin: 0;
}

/* Before You Continue checklist box */
.before-continue-box {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--ink);
  padding: 20px 24px;
  margin-top: 32px;
  margin-bottom: 16px;
}
body.dark-mode .before-continue-box {
  background: #141414;
}
.before-continue-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.before-continue-box ul.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.before-continue-box ul.checklist li {
  font-size: 0.88rem;
  color: var(--grey-label);
  display: flex;
  align-items: center;
  gap: 8px;
}
.before-continue-box ul.checklist li i {
  color: var(--ink);
  font-size: 11px;
}

/* Terminal Output Window style */
.terminal-output {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line);
  border-top: none;
  padding: 12px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--grey-mid);
  margin-bottom: 24px;
}
body.dark-mode .terminal-output {
  background: rgba(255, 255, 255, 0.02);
  border-color: #222222;
  color: #A0A0A0;
}
.terminal-output .output-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-soft);
  display: block;
  margin-bottom: 4px;
}
.terminal-output pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Universal Accordion Reset & Styling */
details summary {
  list-style: none !important;
  list-style-type: none !important;
}
details summary::marker,
details summary::-webkit-details-marker {
  display: none !important;
  content: "" !important;
}

/* Accordion component for alternative options */
.troubleshooting-accordion {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 3px solid #FFC107;
  border-radius: 4px;
  margin-top: 20px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
body.dark-mode .troubleshooting-accordion {
  background: #141414;
  border-color: var(--line-strong);
  border-left-color: #FFC107;
}
.troubleshooting-accordion[open] {
  border-color: var(--ink);
  border-left-color: #FFC107;
}
.troubleshooting-accordion summary {
  padding: 16px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  background: rgba(255, 193, 7, 0.05);
  transition: background 0.2s ease;
}
body.dark-mode .troubleshooting-accordion summary {
  background: rgba(255, 193, 7, 0.07);
}
.accordion-title-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ph-smiley-sad {
  color: #D97706;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
body.dark-mode .ph-smiley-sad {
  color: #FFC107;
}
.troubleshooting-accordion summary:hover .ph-smiley-sad,
.troubleshooting-accordion summary:focus-visible .ph-smiley-sad {
  transform: scale(1.15);
}
.hazard-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #FFC107;
  color: #111111;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 2px;
}
.troubleshooting-accordion summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--grey-label);
  transition: transform 0.25s ease;
}
.troubleshooting-accordion[open] summary::after {
  transform: rotate(180deg);
}
.troubleshooting-accordion summary:hover,
.troubleshooting-accordion summary:focus-visible {
  background: rgba(255, 193, 7, 0.12);
}
body.dark-mode .troubleshooting-accordion summary:hover,
body.dark-mode .troubleshooting-accordion summary:focus-visible {
  background: rgba(255, 193, 7, 0.15);
}
.accordion-content {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--grey-mid);
}
.accordion-content p {
  margin-bottom: 10px;
}
.accordion-content p:last-child {
  margin-bottom: 0;
}
.accordion-content strong {
  color: var(--ink);
  font-weight: 500;
}

/* Guide accordion component for operational instructions */
.guide-accordion {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  margin-top: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
body.dark-mode .guide-accordion {
  background: #141414;
  border-color: var(--line-strong);
}
.guide-accordion[open] {
  border-color: var(--ink);
}
.guide-accordion summary {
  padding: 14px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  background: rgba(0, 0, 0, 0.015);
  transition: background 0.2s ease;
}
body.dark-mode .guide-accordion summary {
  background: rgba(255, 255, 255, 0.02);
}
.guide-accordion summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--grey-label);
  transition: transform 0.25s ease;
}
.guide-accordion[open] summary::after {
  transform: rotate(180deg);
}
.guide-accordion summary:hover,
.guide-accordion summary:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}
body.dark-mode .guide-accordion summary:hover,
body.dark-mode .guide-accordion summary:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

/* Tip accordion component for pro tips & lightbulb callouts */
.tip-accordion {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 3px solid #F59E0B;
  border-radius: 4px;
  margin-top: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
body.dark-mode .tip-accordion {
  background: #141414;
  border-color: var(--line-strong);
  border-left-color: #F59E0B;
}
.tip-accordion[open] {
  border-color: var(--ink);
  border-left-color: #F59E0B;
}
.tip-accordion summary {
  padding: 14px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  background: rgba(245, 158, 11, 0.05);
  transition: background 0.2s ease;
}
body.dark-mode .tip-accordion summary {
  background: rgba(245, 158, 11, 0.07);
}
.tip-accordion summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--grey-label);
  transition: transform 0.25s ease;
}
.tip-accordion[open] summary::after {
  transform: rotate(180deg);
}
.tip-accordion summary:hover,
.tip-accordion summary:focus-visible {
  background: rgba(245, 158, 11, 0.1);
}
body.dark-mode .tip-accordion summary:hover,
body.dark-mode .tip-accordion summary:focus-visible {
  background: rgba(245, 158, 11, 0.12);
}
.tip-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #F59E0B;
  color: #111111;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 2px;
}








