@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');
@import url('/components/css/footer.css');
@import url('/css/article-enhancements.css');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,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);
  --shadow-sm:0 4px 12px rgba(2,6,23,0.25);
  --shadow-md:0 12px 32px rgba(2,6,23,0.35);
  --shadow-lg:0 24px 60px rgba(2,6,23,0.4);
  --shadow-inset:inset 0 1px 0 rgba(255,255,255,0.06);
  --gradient-heading:linear-gradient(135deg,#ffffff 0%,#bfe9ff 60%,#7dd3fc 100%);
  --radius-sm:10px;
  --radius-md:14px;
  --radius-lg:20px;
  --radius-xl:24px;
  --container-max:1400px;
  --gutter:clamp(16px, 2vw, 24px);
}

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: 100%;
  max-width: var(--container-max, 1400px);
  margin-inline: auto;
  padding-inline: var(--gutter, clamp(16px, 2vw, 24px));
  padding-block: 12px 38px;
  box-sizing: border-box;
}

.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('/assets/images/brand/icon-192.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;
}

/* ===========================
   Top navigation (matches the home page header)
   =========================== */
.home-header{
  position:sticky;
  top:0;
  z-index:50;
  width:100%;
  margin-bottom:22px;
  border-bottom:1px solid rgba(56,189,248,0.1);
  background:rgba(2,6,23,0.94);
  backdrop-filter:blur(20px) saturate(1.4);
  -webkit-backdrop-filter:blur(20px) saturate(1.4);
}

.home-header .top-nav{
  width:100%;
  max-width:var(--container-max);
  margin:0 auto;
  padding-inline:var(--gutter);
}

.top-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:60px;
  padding-block:10px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  color:#e2e8f0;
  font-weight:800;
  text-decoration:none;
}

.brand-logo{
  width:40px;
  height:40px;
  object-fit:cover;
  border-radius:12px;
  box-shadow:0 0 0 1px rgba(56,189,248,0.35), 0 8px 24px rgba(56,189,248,0.18);
}

.brand-text{
  display:grid;
  gap:2px;
}

.brand-title{
  display:block;
  color:var(--text);
  font-size:15px;
  font-weight:700;
  letter-spacing:-0.01em;
}

.brand-subtitle{
  display:block;
  color:#8ea4bc;
  font-size:10px;
  font-weight:400;
  letter-spacing:0.02em;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
}

.nav-links a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:36px;
  padding:8px 14px;
  border:1px solid transparent;
  border-radius:999px;
  color:#94a3b8;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
  transition:color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover{
  color:var(--cyan);
  background:rgba(56,189,248,0.08);
  border-color:rgba(56,189,248,0.2);
}

.nav-links a.active{
  color:#03121c;
  background:linear-gradient(135deg,#38bdf8 0%,#67e8f9 50%,#60a5fa 100%);
  border-color:transparent;
  box-shadow:0 4px 16px rgba(56,189,248,0.25);
  transform:translateY(-1px);
}

.nav-links a.nav-cta{
  color:#020617;
  background:linear-gradient(135deg,#38bdf8 0%,#67e8f9 50%,#60a5fa 100%);
  border-color:transparent;
  font-weight:700;
  box-shadow:0 4px 16px rgba(56,189,248,0.22);
}

.nav-links a.nav-cta:hover{
  color:#020617;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(56,189,248,0.35);
}

.nav-links a:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:2px;
}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:40px;
  height:40px;
  padding:8px;
  border:1px solid rgba(56,189,248,0.2);
  border-radius:var(--radius-sm);
  background:rgba(15,23,42,0.6);
  cursor:pointer;
  flex-shrink:0;
}

.nav-toggle span{
  display:block;
  height:2px;
  background:var(--cyan);
  border-radius:2px;
  transition:all 0.25s ease;
}

.nav-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.active span:nth-child(2){opacity:0;}
.nav-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.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.2);
  border-radius:var(--radius-xl);
  background:
    radial-gradient(ellipse at top right, rgba(56,189,248,0.18), transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(250,204,21,0.08), transparent 35%),
    linear-gradient(145deg, rgba(17,28,49,0.96), rgba(10,17,31,0.88));
  box-shadow:var(--shadow-lg), var(--shadow-inset);
}

.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;
}

/* Sendmail / email-series articles show a "Sendmail" hero watermark.
   Two-class selector keeps this override winning over the base and the
   mobile ::after rules (whose content is not marked !important). */
.article-hero.article-hero--sendmail::after{
  content:"Sendmail";
  font-size:clamp(46px,7vw,108px);
}

/* Linux articles use a "Linux" hero watermark instead of the default AIX. */
.article-hero.article-hero--linux::after{
  content:"Linux";
  font-size:clamp(64px,10vw,140px);
}

.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.02em;
  text-wrap:balance;
  background:linear-gradient(135deg, #ffffff 0%, #bfe9ff 60%, #7dd3fc 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.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 images (sendmail series) */
.article-image {
  margin: 1.25rem 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #101826;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.article-image figcaption {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: #9fb3c8;
  text-align: center;
  font-style: italic;
}

.article-card{
  padding:34px 40px;
  border:1px solid rgba(56,189,248,0.1);
  border-radius:var(--radius-lg);
  background:linear-gradient(165deg, rgba(20,33,58,0.95) 0%, rgba(10,17,31,0.88) 100%);
  box-shadow:var(--shadow-lg), var(--shadow-inset);
  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.2);
  border-left:4px solid var(--cyan);
  border-radius:var(--radius-md);
  background:linear-gradient(135deg, rgba(56,189,248,0.12), rgba(15,23,42,0.65));
  box-shadow:var(--shadow-sm);
}

.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);
}

.table-wrap{
  margin:22px 0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:14px;
}

.table-wrap table{
  margin:0;
  min-width:520px;
}

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:18px;
  border:1px solid rgba(56,189,248,0.12);
  border-radius:var(--radius-lg);
  background:linear-gradient(165deg, rgba(20,33,58,0.95) 0%, rgba(10,17,31,0.88) 100%);
  box-shadow:var(--shadow-md), var(--shadow-inset);
  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);
}
.article-hero.article-hero--linux::after{
content:"Linux";
font-size:56px;
}
.article-hero.article-hero--sendmail::after{
content:"Sendmail";
font-size:42px;
}

  .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;}
}

/* ===== 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('/assets/images/brand/icon-192.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{
    content:"AIX";
    font-size:58px !important;
    top:14px !important;
    right:16px !important;
    opacity:.9;
  }

  .article-hero.article-hero--linux::after{
    content:"Linux";
    font-size:48px !important;
  }

  .article-hero.article-hero--sendmail::after{
    content:"Sendmail";
    font-size:34px !important;
  }

  .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('/assets/images/brand/icon-192.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;
  }

}

/* ===== Top navigation — mobile (collapsible menu, matches home) ===== */
@media (max-width:768px){
  .top-nav{
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
  }

  .brand{
    flex:1;
    min-width:0;
  }

  .brand-subtitle{
    display:none;
  }

  .nav-toggle{
    display:flex;
    margin-left:auto;
  }

  .nav-links{
    display:none;
    order:3;
    flex-direction:column;
    width:100%;
    gap:4px;
    padding:12px 0 4px;
    border-top:1px solid rgba(56,189,248,0.1);
  }

  .nav-links.open{
    display:flex;
  }

  .nav-links a{
    width:100%;
    text-align:left;
  }

  .nav-links a.active,
  .nav-links a.nav-cta{
    transform:none;
  }
}

/* ===========================
   Single top nav: hide the redundant branded bar so only .top-nav shows
   (matches the site's home-style navigation).
   =========================== */
.page-shell::before,
.page-shell::after{
  content:none !important;
  display:none !important;
}

/* Accessibility skip link: keep it off-screen until focused, matching the
   rest of the site (css/base.css). Prevents it rendering as visible text on
   article pages, which only load this stylesheet. */
.skip-link{
  position:absolute;
  top:-100px;
  left:16px;
  z-index:1000;
  padding:10px 14px;
  border-radius:8px;
  background:#0ea5e9;
  color:#fff;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(2,6,23,0.35);
}

.skip-link:focus{
  top:16px;
  outline:2px solid #7dd3fc;
  outline-offset:2px;
}
