/* ============================================================
   INDEX.HOME PAGE-SPECIFIC STYLES
   Moved from inline <style> in index.html for CSP compliance
   ============================================================ */

/* Skip link */
.skip-link{position:absolute;top:-100%;left:50%;transform:translateX(-50%);background:#0a1628;color:var(--ink);padding:12px 24px;z-index:10000;border-radius:0 0 8px 8px;transition:top .2s}
.skip-link:focus{top:0}

/* About section overrides */
#about .about-layout { grid-template-columns: 45fr 55fr; align-items: stretch; }
#about .photo-stack  { width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
#about .photo-name   { margin-top: 28px; }
#about .photo-info   { width: 100%; max-width: 100%; flex: 1; }
#about .photo-tl     { margin: 14px 0 0 !important; max-width: 100% !important; }
#about .ptl-items    { justify-content: flex-start; gap: 6px; }
#about .ptl-role .ptl-sub { display: block; margin-top: 2px; }
#about .about-layout > div:last-child { display: flex; flex-direction: column; justify-content: flex-end; }
#about .about-role   { margin-top: 0; margin-bottom: 12px; }
#about .about-intro  { font-size: 1rem; color: var(--ink-rose); line-height: 1.6; font-weight: 300; margin-bottom: 20px; text-wrap: pretty; }
#about .about-intro strong { color: var(--ink-strong); font-weight: 600; }
#about .stack-logos  { margin-bottom: 0; }
#about .stack-logos .logo-pill { border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }

/* Domain grid */
#about .domain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
#about .domain-box {
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(145deg, rgba(2,38,85,0.55), rgba(39,38,64,0.35));
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
#about .domain-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--ct, var(--accent)); opacity: 0.85;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
#about .domain-box:hover::before { transform: scaleX(1); }
#about .domain-box:hover { border-color: rgba(131,166,206,0.25); transform: translateY(-2px); }
#about .domain-box.full { grid-column: 1 / -1; }
.domain-label {
  font-family: var(--font-mono); font-size: var(--fs-mono-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ct, var(--accent)); margin-bottom: 7px;
}
.domain-text { font-size: var(--fs-md); color: var(--ink-rose); line-height: 1.55; font-weight: 300; }
.domain-text strong { color: var(--gold); font-weight: 500; }

/* About responsive */
@media (max-width: 860px) {
  #about .about-layout { grid-template-columns: 1fr !important; gap: 20px; }
  #about .photo-stack  { display: contents; }
  #about .about-layout > div:last-child { display: block; }
  #about .about-role   { margin-top: 0; }
  #about .photo-name   { margin-top: 0; }
  #about .photo-info, #about .photo-tl, #about .ptl-items { flex: 0 0 auto; }
  #about .ptl-items    { justify-content: flex-start; }
}
@media (max-width: 600px) {
  #about .domain-grid { grid-template-columns: 1fr; }
}

/* MSP solo skill card */
#skills .skill-mini.solo .mini-thumb img.msp-card-thumb { object-fit: contain !important; padding: 8px; }

@media (max-width: 860px) {
  #skills .skill-mini.solo .mini-thumb {
    max-height: 240px;
    align-self: center;
  }
}

/* Inline highlight: CompTIA Security+ mention in the hero bio */
#home .home-bio .hl-sec { color: var(--accent); font-weight: 600; }

/* Responsive tightening for home page (between phone and desktop) */
@media (min-width: 640px) and (max-width: 859px) {
  #home .home-actions .btn  { flex: 1 1 calc(33.33% - 7px); justify-content: center; padding: 11px 18px; font-size: 0.78rem; }
  .stat-l { font-size: 0.62rem; }
}

@media (max-width: 359px) {
  #home .home-actions .btn { flex: 1 1 100%; }
  .stat { min-width: calc(50% - 1px); }
  .stat:nth-child(2n) { border-right: none !important; }
  .stat:nth-child(2n+1) { border-right: 1px solid rgba(255,255,255,0.18) !important; }
  .stats-row { font-size: 0.85rem; }
  .featured-body { padding: 18px !important; }
  h1 { font-size: clamp(1.7rem, 8.5vw, 2.2rem); }
}

@media (max-width: 859px) {
  img, video, table, pre { max-width: 100%; }
  body, html { overflow-x: hidden; }
}

/* Top-of-Skills one-liner: surfaces the headline credentials above the fold */
.skills-creds-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 32px;
  font-size: var(--fs-md);
  color: var(--ink-soft);
}
.creds-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.creds-icon {
  width: 32px; height: 32px;
  object-fit: contain;
}
.creds-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.creds-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(110,231,183,0.18);
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.creds-pill::before { content: '✓ '; }
a.creds-item { text-decoration: none; color: inherit; transition: transform 0.18s, box-shadow 0.2s; }
a.creds-item:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(110,231,183,0.18); }
.creds-arrow { width: 12px; height: 12px; color: var(--ok); flex-shrink: 0; transition: transform 0.2s; }
a.creds-item:hover .creds-arrow { transform: translate(2px, -2px); }
.creds-fresh {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110,231,183,0.45);
  box-shadow: 0 0 0 1px rgba(110,231,183,0.18), 0 0 18px rgba(110,231,183,0.14);
  background: linear-gradient(135deg, rgba(110,231,183,0.08), rgba(110,231,183,0.02));
}
.creds-fresh strong { color: var(--ok); }
.creds-sep {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.85rem;
  line-height: 1;
}
/* The separator is decorative (aria-hidden). Once the line wraps on narrow
   screens it is left stranded on its own row, so drop it there. */
@media (max-width: 600px) {
  .creds-sep { display: none; }
}

/* Pill for an upcoming exam version, e.g. "NEW V2.0" on CCNA 200-301 */
.cert-v2-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(131,166,206,0.18);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: middle;
}

/* Converted from inline style attributes for CSP */
[data-s="s1"] { white-space: nowrap !important; }
[data-s="s2"] { --ct:#038387 !important; }
[data-s="s3"] { --ct:#0078d4 !important; }
[data-s="s4"] { --ct:#6b7280 !important; }
[data-s="s5"] { --ct:#f57814 !important; }
[data-s="s6"] { --ct:var(--accent) !important; }
[data-s="s7"] { --ct:var(--ok-deep) !important; text-decoration: none !important; color: inherit !important; }
[data-s="s8"] { margin: 12px 0 8px !important; }
[data-s="s9"] { --ct:#a78bfa !important; }
[data-s="s10"] { --ct:#60a5fa !important; }
[data-s="s11"] { --ct:#fb7185 !important; }
[data-s="s12"] { --ct:#e879f9 !important; }
[data-s="s13"] { grid-template-columns: 4fr 1fr !important; min-height: auto !important; margin-top: 24px !important; }
[data-s="s14"] { padding: 22px 32px !important; gap: 6px !important; }
[data-s="s15"] { display: flex !important; align-items: center !important; gap: 10px !important; }
[data-s="s16"] { margin: 0 !important; }
[data-s="s17"] { margin: 0 !important; font-size: 0.95rem !important; }
[data-s="s18"] { color:var(--peach) !important; }
[data-s="s19"] { margin-top: 4px !important; }
[data-s="s20"] { min-height: auto !important; border-right: none !important; border-left: 1px solid rgba(255,255,255,0.06) !important; padding: 0 !important; overflow: hidden !important; }
[data-s="s21"] { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; display: block !important; }
[data-s="s22"] { padding: 18px 28px !important; gap: 6px !important; }
[data-s="s23"] { margin: 0 !important; font-size: 0.95rem !important; }
[data-s="s24"] { color:#4ade80 !important; font-weight:600 !important; }


