*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

:root{
  color-scheme:dark;
  --bg:#050816;
  --panel:#0f172a;
  --panel-soft:#111c31;
  --line:#23324a;
  --text:#f8fafc;
  --body:#e4edf9;
  --muted:#94a3b8;
  --cyan:#38bdf8;
  --cyan-dark:#0ea5e9;
  --green:#22c55e;
  --yellow:#facc15;
  --shadow:0 28px 70px rgba(2,6,23,0.32);
}

html{
  scroll-behavior:smooth;
  background:var(--bg);
}

body{
  overflow-x:hidden;
  min-height:100vh;
  color:var(--body);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34,197,94,0.09), transparent 30%),
    linear-gradient(135deg, #030712 0%, var(--bg) 58%, #08111f 100%);
  line-height:1.7;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,0.025), transparent 22%, rgba(0,0,0,0.12));
}

a{
  color:inherit;
}

img, table, pre{
  max-width:100%;
}

.article-content, .article-title, .article-dek, .toc, .note, td, th{
  overflow-wrap:anywhere;
}


.page-shell{
  width:min(1180px, calc(100% - 28px));
  margin:0 auto;
  padding:12px 0 38px;
}

.page-shell::before{
  content:"AIX OS Learning  |  Professional Knowledge Base";
  display:flex;
  align-items:center;
  min-height:58px;
  margin-bottom:14px;
  padding:8px 18px 8px 66px;
  border:1px solid rgba(255,255,255,0.09);
  border-radius:18px;
  background:
    url('/web-app-manifest-192x192.png') 14px center / 40px 40px no-repeat,
    linear-gradient(180deg, rgba(18,30,49,0.90), rgba(14,25,42,0.78));
  box-shadow:0 14px 32px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter:blur(16px);
  color:#f8fafc;
  font-size:16px;
  font-weight:800;
  letter-spacing:0;
}

.article-hero{
  position:relative;
  min-height:360px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
  margin-bottom:22px;
  padding:30px 34px;
  border:1px solid rgba(56,189,248,0.18);
  border-radius:24px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(250,204,21,0.08), transparent 30%),
    linear-gradient(145deg, rgba(17,28,49,0.94), rgba(15,23,42,0.82));
  box-shadow:var(--shadow);
}

.article-hero::before{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-110px;
  width:260px;
  height:260px;
  border-radius:999px;
  background:rgba(56,189,248,0.08);
  pointer-events:none;
}

.article-hero::after{
  content:"AIX";
  position:absolute;
  top:24px;
  right:34px;
  color:rgba(248,250,252,0.05);
  font-size:clamp(82px,13vw,164px);
  font-weight:900;
  line-height:1;
  letter-spacing:0;
  pointer-events:none;
}

.article-hero > *{
  position:relative;
  z-index:1;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:30px;
  margin-bottom:14px;
  padding:0 13px;
  border:1px solid rgba(250,204,21,0.25);
  border-radius:999px;
  background:rgba(250,204,21,0.11);
  color:#fde68a;
  font-size:13px;
  font-weight:bold;
  text-transform:uppercase;
}

.article-title{
  max-width:920px;
  margin:0;
  color:var(--text);
  font-size:clamp(38px,5vw,58px);
  line-height:1.04;
  letter-spacing:0;
  text-wrap:balance;
}

.article-dek{
  max-width:820px;
  margin:16px 0 0;
  color:#cbd5e1;
  font-size:17px;
  line-height:1.7;
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
  color:#e2e8f0;
  font-size:13px;
}

.meta-pill{
  padding:8px 12px;
  border:1px solid rgba(56,189,248,0.14);
  border-radius:999px;
  background:rgba(15,23,42,0.78);
  backdrop-filter:blur(12px);
}

.article-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:20px;
  align-items:start;
}

.article-card{
  padding:34px 40px;
  border:1px solid rgba(35,50,74,0.86);
  border-radius:18px;
  background:rgba(17,28,49,0.94);
  box-shadow:0 18px 60px rgba(2,6,23,0.28);
  backdrop-filter:blur(16px);
}

.article-content{
  max-width:900px;
  font-size:16px;
}

.article-content p{
  margin:0 0 16px;
}

.article-content h2{
  position:relative;
  margin:42px 0 14px;
  padding-top:12px;
  color:var(--text);
  font-size:26px;
  line-height:1.22;
  letter-spacing:0;
  scroll-margin-top:26px;
  text-wrap:balance;
}

.article-content h2::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:54px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--cyan), #7dd3fc);
}

.article-content h3{
  margin:26px 0 10px;
  color:#7dd3fc;
  font-size:19px;
  line-height:1.3;
}

.article-content strong,
.article-content b{
  color:#f8fafc;
}

.article-content ul{
  margin:0 0 18px;
  padding-left:0;
  list-style:none;
}

.article-content li{
  position:relative;
  margin:8px 0;
  padding-left:24px;
}

.article-content li::before{
  content:"";
  position:absolute;
  top:0.72em;
  left:3px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow:0 0 0 4px rgba(56,189,248,0.12);
}

.note{
  position:relative;
  overflow:hidden;
  margin:20px 0;
  padding:18px 20px 18px 22px;
  border:1px solid rgba(56,189,248,0.24);
  border-left:4px solid var(--cyan);
  border-radius:14px;
  background:linear-gradient(135deg, rgba(56,189,248,0.10), rgba(15,23,42,0.62));
}

.note h3:first-child,
.note strong:first-child{
  margin-top:0;
}

.flow-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin:22px 0;
}

.flow-step{
  min-height:88px;
  padding:13px;
  border:1px solid rgba(35,50,74,0.86);
  border-radius:14px;
  background:rgba(15,23,42,0.78);
}

.flow-step span{
  display:block;
  color:var(--cyan);
  font-size:11px;
  font-weight:bold;
  text-transform:uppercase;
}

.flow-step strong{
  display:block;
  margin-top:6px;
  color:var(--text);
  font-size:14px;
  line-height:1.25;
}

pre{
  position:relative;
  margin:18px 0 22px;
  padding:20px 22px;
  overflow-x:auto;
  border:1px solid rgba(56,189,248,0.24);
  border-radius:14px;
  background:linear-gradient(90deg, rgba(56,189,248,0.08), transparent 32%), #050816;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}

pre::before{
  content:"terminal";
  display:block;
  margin-bottom:10px;
  color:var(--muted);
  font-size:11px;
  font-weight:bold;
  text-transform:uppercase;
}

code{
  color:#c3e4ff;
  font-family:"Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size:0.9rem;
  line-height:1.55;
  white-space:pre;
}

table{
  width:100%;
  margin:22px 0;
  overflow:hidden;
  border:1px solid rgba(35,50,74,0.86);
  border-collapse:separate;
  border-spacing:0;
  border-radius:14px;
  background:rgba(15,23,42,0.68);
}

th,
td{
  padding:14px 16px;
  border-bottom:1px solid rgba(35,50,74,0.86);
  text-align:left;
  vertical-align:top;
}

th{
  color:#ffffff;
  background:rgba(56,189,248,0.14);
  font-size:13px;
  text-transform:uppercase;
}

tr:last-child td{
  border-bottom:0;
}

.toc{
  position:sticky;
  top:18px;
  padding:16px;
  border:1px solid rgba(35,50,74,0.86);
  border-radius:18px;
  background:rgba(17,28,49,0.94);
  box-shadow:0 16px 45px rgba(2,6,23,0.24);
  backdrop-filter:blur(16px);
}

.toc h2{
  margin:0 0 10px;
  color:var(--text);
  font-size:14px;
}

.toc a{
  display:block;
  padding:9px 0;
  border-top:1px solid rgba(255,255,255,0.07);
  color:#cbd5e1;
  font-size:13px;
  line-height:1.35;
  text-decoration:none;
}

.toc a:hover{
  color:var(--cyan);
}

.back-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin-top:24px;
  padding:0 18px;
  border:1px solid rgba(56,189,248,0.34);
  border-radius:12px;
  color:var(--cyan);
  background:rgba(56,189,248,0.1);
  font-weight:bold;
  text-decoration:none;
  transition:transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.back-btn::before{
  content:"\2190";
  margin-right:8px;
}

.back-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(56,189,248,0.5);
  background:rgba(56,189,248,0.16);
}

.site-footer{
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}



/* ===========================
   Responsive rebuild
   =========================== */

@media (max-width:1024px){
  .article-layout{
    display:flex;
    flex-direction:column;
    gap:18px;
  }
  .toc{
    position:relative;
    top:auto;
    order:-1;
    margin:0 0 18px;
    max-height:220px;
    overflow:auto;
  }
  .article-card{
    order:0;
  }
  .flow-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:768px){

body{background:#050816;line-height:1.7;}
body::before{display:none;}

.page-shell{
 max-width:760px;
 width:100%;
 padding:12px;
}

.page-shell::before{
 content:"AIX OS Learning";
 font-size:15px;
 min-height:54px;
 border-radius:16px;
 padding:8px 14px 8px 60px;
 backdrop-filter:none;
}

.article-hero,
.article-card,
.toc{
 backdrop-filter:none;
 box-shadow:0 8px 20px rgba(0,0,0,.18);
}

.article-hero{
 min-height:auto;
 padding:20px;
 border-radius:18px;
 margin-bottom:18px;
}

.article-hero::before,
.article-hero::after{display:none;}

.eyebrow{
 font-size:11px;
 padding:5px 10px;
 margin-bottom:12px;
}

.article-title{
 font-size:clamp(30px,7vw,38px);
 line-height:1.15;
 max-width:100%;
 text-wrap:pretty;
}

.article-dek{
 font-size:16px;
 line-height:1.7;
 max-width:100%;
}

.article-meta{
 gap:8px;
 margin-top:16px;
}

.meta-pill{
 font-size:12px;
 padding:7px 10px;
}

.article-card{
 padding:22px 18px;
 border-radius:16px;
}

.article-content{
 max-width:680px;
 margin:0 auto;
 font-size:16px;
 line-height:1.8;
}

.article-content h2{font-size:24px;margin:30px 0 12px;}
.article-content h3{font-size:19px;}

.note{
 max-width:680px;
 margin:18px auto;
 padding:16px;
}

pre{
 padding:16px;
 overflow:auto;
 -webkit-overflow-scrolling:touch;
}

table{
 display:block;
 overflow-x:auto;
 -webkit-overflow-scrolling:touch;
}

.back-btn{width:100%;}
}

@media (max-width:480px){

.page-shell{padding:10px;}

.article-hero{padding:18px 16px;}

.article-title{
 font-size:26px;
}

.article-dek{
 font-size:15px;
}

.article-card{
 padding:18px 16px;
}

.article-content{
 font-size:15.5px;
 line-height:1.75;
}

.flow-strip{
 grid-template-columns:1fr;
}

th,td{min-width:150px;}

}

/* ===========================
   Mobile stability overrides
   Keeps desktop layout intact while fixing phone rendering.
   =========================== */

@media (max-width:1024px){
  .article-layout{
    display:flex;
    flex-direction:column;
  }

  .toc{
    position:relative;
    top:auto;
    order:-1;
    width:100%;
    max-height:none;
    overflow:visible;
    margin:0 0 16px;
  }
}

@media (max-width:768px){
  html,
  body{
    width:100%;
    overflow-x:hidden;
  }

  body{
    background:#050816;
    line-height:1.65;
  }

  body::before{
    display:none;
  }

  .page-shell{
    width:min(100% - 18px, 760px);
    max-width:none;
    padding:10px 0 28px;
  }

  .page-shell::before{
    content:"AIX OS Learning";
    min-height:52px;
    margin-bottom:12px;
    padding:7px 12px 7px 58px;
    border-radius:16px;
    background-size:36px 36px;
    background-position:12px center;
    font-size:15px;
    line-height:1.15;
    box-shadow:0 10px 24px rgba(0,0,0,0.22);
    backdrop-filter:none;
  }

  .article-hero{
    min-height:auto;
    margin-bottom:16px;
    padding:20px 16px;
    border-radius:18px;
    box-shadow:0 10px 24px rgba(0,0,0,0.22);
    backdrop-filter:none;
  }

  .article-hero::before{
display:block;
right:-70px;
bottom:-80px;
width:180px;
height:180px;
opacity:.7;
}
.article-hero::after{
display:block;
top:16px;
right:18px;
font-size:72px;
color:rgba(248,250,252,.06);
}

  .eyebrow{
    max-width:100%;
    min-height:28px;
    margin-bottom:12px;
    padding:5px 10px;
    white-space:normal;
    font-size:11px;
    line-height:1.25;
  }

  .article-title{
    max-width:100%;
    font-size:clamp(28px, 8vw, 38px);
    line-height:1.15;
    text-wrap:pretty;
  }

  .article-dek{
    max-width:100%;
    margin-top:12px;
    font-size:15px;
    line-height:1.65;
  }

  .article-meta{
    gap:8px;
    margin-top:16px;
  }

  .meta-pill{
    padding:7px 10px;
    font-size:12px;
    line-height:1.2;
  }

  .toc{
    max-height:none;
    overflow:visible;
    padding:14px;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(0,0,0,0.18);
    backdrop-filter:none;
  }

  .toc h2{
    font-size:14px;
    margin-bottom:8px;
  }

  .toc a{
    padding:9px 0;
    font-size:13px;
    line-height:1.4;
  }

  .article-card{
    width:100%;
    padding:20px 16px;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(0,0,0,0.18);
    backdrop-filter:none;
  }

  .article-content{
    max-width:100%;
    margin:0;
    font-size:15px;
    line-height:1.75;
  }

  .article-content p{
    margin-bottom:14px;
  }

  .article-content h2{
    margin:30px 0 12px;
    font-size:22px;
    line-height:1.28;
    scroll-margin-top:14px;
  }

  .article-content h3{
    margin:22px 0 8px;
    font-size:18px;
    line-height:1.3;
  }

  .article-content ul{
    margin-bottom:15px;
  }

  .article-content li{
    margin:7px 0;
    padding-left:22px;
  }

  .note{
    max-width:100%;
    margin:16px 0;
    padding:15px 14px 15px 16px;
    border-radius:14px;
  }

  .flow-strip{
    grid-template-columns:1fr;
    gap:10px;
  }

  .flow-step{
    min-height:auto;
  }

  pre{
    max-width:100%;
    margin:16px 0 18px;
    padding:14px;
    overflow-x:auto;
    border-radius:13px;
    -webkit-overflow-scrolling:touch;
  }

  code{
    font-size:12.5px;
    line-height:1.5;
  }

  table{
    display:block;
    width:100%;
    max-width:100%;
    overflow-x:auto;
    border-radius:13px;
    -webkit-overflow-scrolling:touch;
  }

  th,
  td{
    min-width:150px;
    padding:10px;
    font-size:13px;
  }

  img{
    max-width:100%;
    height:auto;
  }

  .back-btn{
    width:100%;
    min-height:42px;
    margin-top:20px;
  }
}

@media (max-width:420px){
  .page-shell{
    width:min(100% - 14px, 420px);
    padding-top:8px;
  }

  .page-shell::before{
    min-height:50px;
    padding-left:54px;
    background-size:34px 34px;
    background-position:10px center;
    font-size:14px;
  }

  .article-hero{
    padding:18px 14px;
    border-radius:16px;
  }

  .article-title{
    font-size:27px;
    line-height:1.16;
  }

  .article-dek{
    font-size:14.5px;
  }

  .article-card{
    padding:18px 14px;
  }

  .article-content{
    font-size:14.5px;
  }

  .meta-pill{
    max-width:100%;
  }
}



/* Elegant heading refinement */
.article-content h2{font-weight:800;letter-spacing:-0.02em;}
.article-content h2::before{width:72px;height:5px;box-shadow:0 0 16px rgba(56,189,248,.35);}
.article-content h3{font-weight:700;font-size:22px;}

@media (max-width:768px){
.article-content h2{font-size:26px!important;}
.article-content h3{font-size:20px!important;}
.article-hero::after{
display:block!important;
content:"AIX";
position:absolute;
top:18px;
right:16px;
font-size:64px;
font-weight:900;
color:rgba(255,255,255,.05);
}
}

/* ===== Elegant section heading accents ===== */

/* Remove the old small bar */
.article-content h2::before{
    width:84px !important;
    height:4px !important;
    border-radius:999px;
    background:linear-gradient(90deg,#38bdf8 0%,#60d7ff 45%,rgba(96,215,255,.15) 100%) !important;
    box-shadow:
        0 0 12px rgba(56,189,248,.35),
        0 1px 0 rgba(255,255,255,.12);
}

/* Add a subtle full-width fade line */
.article-content h2::after{
    content:"";
    display:block;
    margin-top:14px;
    height:1px;
    width:100%;
    background:linear-gradient(
        90deg,
        rgba(56,189,248,.28) 0%,
        rgba(56,189,248,.10) 35%,
        rgba(255,255,255,.04) 100%
    );
}

/* Better spacing */
.article-content h2{
    padding-top:20px;
    margin-top:54px;
}

@media (max-width:768px){

.article-content h2{
    margin-top:40px;
    padding-top:16px;
}

.article-content h2::before{
    width:68px !important;
    height:4px !important;
}

.article-content h2::after{
    margin-top:10px;
}

}
/* ===== Shared mobile article header/logo fix ===== */
@media (max-width:768px){
  .page-shell{
    position:relative;
  }

  .page-shell::before{
    content:"AIX OS Learning";
    display:flex;
    align-items:center;
    min-height:52px;
    margin-bottom:12px;
    padding:7px 12px 7px 58px;
    border:none!important;
    outline:1px solid rgba(56,189,248,.18);
    border-radius:18px!important;
    background:linear-gradient(180deg,rgba(18,30,49,.96),rgba(12,22,38,.96))!important;
    box-shadow:0 0 0 1px rgba(255,255,255,.05) inset,0 10px 24px rgba(0,0,0,.22);
    backdrop-filter:none;
    color:#f8fafc;
    font-size:15px;
    font-weight:800;
    line-height:1.15;
  }

  .page-shell::after{
    content:"";
    position:absolute;
    top:18px;
    left:14px;
    z-index:1;
    width:36px;
    height:36px;
    border-radius:10px;
    background:url('/web-app-manifest-192x192.png') center / contain no-repeat;
    pointer-events:none;
  }
}

@media (max-width:420px){
  .page-shell::before{
    min-height:50px;
    padding-left:56px;
    font-size:14px;
  }

  .page-shell::after{
    top:15px;
    left:11px;
    width:34px;
    height:34px;
  }
}




/* =========================================================
   Mobile polish (desktop unaffected)
   ========================================================= */
@media (max-width:768px){

  /* Compact branded header */
  .page-shell::before{
    min-height:48px !important;
    margin-bottom:16px !important;
    padding:6px 14px 6px 56px !important;
    font-size:14px !important;
    border-radius:16px !important;
  }

  .page-shell::after{
    top:14px !important;
    left:14px !important;
    width:32px !important;
    height:32px !important;
  }

  /* More compact hero without removing graphics */
  .article-hero{
    padding:18px 18px 20px !important;
    margin-bottom:26px !important;
    min-height:auto !important;
  }

  .article-hero::before{
    width:150px !important;
    height:150px !important;
    right:-55px !important;
    bottom:-60px !important;
    opacity:.45 !important;
  }

  .article-hero::after{
    font-size:58px !important;
    top:14px !important;
    right:16px !important;
    opacity:.9;
  }

  .eyebrow{
    font-size:10px !important;
    padding:4px 10px !important;
    margin-bottom:10px !important;
  }

  .article-title{
    font-size:clamp(24px,7vw,34px) !important;
    line-height:1.18 !important;
  }

  .article-dek{
    margin-top:14px !important;
    font-size:15px !important;
    line-height:1.65 !important;
  }

  .article-meta{
    margin-top:16px !important;
    gap:8px !important;
  }

  .meta-pill{
    padding:6px 10px !important;
    font-size:12px !important;
  }

  /* Better spacing before TOC */
  .toc{
    margin-top:4px !important;
    border-radius:16px !important;
  }

  .toc a{
    position:relative;
    padding-right:18px !important;
  }

  .toc a::after{
    content:"›";
    position:absolute;
    right:2px;
    color:#38bdf8;
    font-size:16px;
    transition:transform .2s ease;
  }

  .toc a:hover::after{
    transform:translateX(3px);
  }
}

@media (max-width:420px){

  .article-title{
    font-size:23px !important;
  }

  .article-hero{
    padding:16px !important;
  }

  .page-shell::before{
    min-height:46px !important;
  }
}



/* ===== Header alignment & blending fix ===== */
@media (max-width:768px){

  /* Blend header and hero a bit more */
  .page-shell::before{
    margin-bottom:8px !important;
    background:
      url('/web-app-manifest-192x192.png') 14px center/32px 32px no-repeat,
      linear-gradient(180deg,rgba(18,30,49,.96),rgba(12,22,38,.96)) !important;
    padding-left:56px !important;
    display:flex;
    align-items:center;
    line-height:1;
  }

  /* Disable separate logo pseudo-element */
  .page-shell::after{
    content:none !important;
    display:none !important;
  }

  .article-hero{
    margin-top:0 !important;
    margin-bottom:18px !important;
  }

}
