/* Homepage design system. Existing interactive labs retain their own styles. */
body.portfolio-home {
  --home-content-max: 1600px;
  --home-gutter: clamp(22px, 4vw, 64px);
  --home-content-width: min(var(--home-content-max), calc(100% - 2 * var(--home-gutter)));
  --home-bg: #f6f8fc;
  --home-surface: #fff;
  --home-text: #152039;
  --home-muted: #58677e;
  --home-line: #dfe5ee;
  --home-accent: #0369a1;
  --home-tint: #edf4ff;
  --home-section-heading: #e6edf7;
  --home-header: rgba(246, 248, 252, .94);
  font-family: 'Manrope', sans-serif;
  background: var(--home-bg);
  color: var(--home-text);
}
body.portfolio-home.dark {
  --home-bg: #0b101b;
  --home-surface: #111927;
  --home-text: #f0f4fc;
  --home-muted: #95a2b8;
  --home-line: #243044;
  --home-accent: #64b5f6;
  --home-tint: #15253b;
  --home-section-heading: #172338;
  --home-header: rgba(11, 16, 27, .94);
}
html { --home-header-height: 104px; scroll-padding-top: calc(var(--home-header-height) + 12px); }
body.portfolio-home { padding-top: var(--home-header-height) !important; }
.home-shell { width: var(--home-content-width); margin-inline: auto; }
.home-mono { font-family: 'IBM Plex Mono', monospace; }
body.portfolio-home #wrapper, body.portfolio-home #content { background: var(--home-bg) !important; }
body.portfolio-home #header {
  position: fixed !important; inset: 0 0 auto; z-index: 120; width: 100%; height: var(--home-header-height) !important;
  margin: 0 !important; border: 0 !important; background: var(--home-header) !important;
}
.home-nav { width: min(1840px, calc(100% - 96px)); height: var(--home-header-height); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--home-line); gap: 24px; }
html body.portfolio-home #header { position: fixed !important; top: 0; min-height: 0 !important; }
html body.portfolio-home #header #header-wrap { position: static !important; width: 100%; height: auto !important; background: var(--home-header) !important; border: 0 !important; box-shadow: none !important; }
.home-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--home-text) !important; font-size: 16px; font-weight: 800; letter-spacing: -.6px; white-space: nowrap; }
.home-brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--home-line); border-radius: 9px; background: var(--home-surface); font-family: 'IBM Plex Mono', monospace; color: var(--home-accent); font-size: 14px; letter-spacing: -2px; padding-right: 2px; }
.home-brand-dot { color: var(--home-accent); }
.home-brand-logo {
  display: block; flex: 0 0 auto;
  /* Keep the vector wordmark large while preserving a clear 12px inset from the header rule. */
  width: 198px; height: 80px; max-height: calc(var(--home-header-height) - 24px);
  color: var(--home-accent);
}
.home-brand-copy { display: flex; flex-direction: column; gap: 5px; letter-spacing: -.3px; }
.home-brand-copy strong { color: var(--home-accent); font-size: 23px; font-weight: 800; line-height: 1.1; }
.home-brand-copy small { color: var(--home-accent); font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .1px; }
.home-nav-links { display: flex; align-items: center; gap: 20px; }
.home-nav-links > a { color: var(--home-muted) !important; font-size: 13px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; text-transform: uppercase; transition: color .2s; }
.home-nav-links > a[aria-current="location"],
.home-nav-links > a:hover { color: var(--home-accent) !important; }
.home-nav-actions { display: flex; align-items: center; gap: 16px; }
body.portfolio-home #theme-toggle { position: static !important; display: grid !important; place-items: center; width: 34px !important; height: 34px !important; padding: 7px !important; margin: 0 !important; border: 1px solid var(--home-line) !important; border-radius: 8px !important; background: transparent !important; box-shadow: none !important; color: var(--home-muted) !important; transform: none !important; animation: none !important; cursor: pointer; }
body.portfolio-home #theme-toggle::before { display: none; }
#theme-toggle svg { width: 18px; height: 18px; }
.home-menu-toggle { display: none; }
body.portfolio-home #slider.home-hero { position: relative; height: auto !important; overflow: hidden; background: var(--home-bg); }
.home-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--home-line) 1px, transparent 1px), linear-gradient(90deg, var(--home-line) 1px, transparent 1px); background-size: 88px 88px; opacity: .12; mask-image: linear-gradient(90deg, transparent 35%, black); }
.home-hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 64px; padding-top: 64px; padding-bottom: 64px; }
.home-availability { display: inline-flex; align-items: center; gap: 9px; color: var(--home-muted); font-size: 11px; }
.home-status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #62d8a0; box-shadow: 0 0 0 4px rgba(98,216,160,.09); }
.home-intro { margin: 0 0 22px; color: var(--home-accent); font-size: 10px; letter-spacing: 1.2px; }
.home-intro strong { color: var(--home-text); font-weight: 600; }
body.portfolio-home .home-hero h1 { margin: 0 0 18px; font-family: 'Manrope', sans-serif; color: var(--home-text); font-size: clamp(54px, 5vw, 76px); line-height: 1.06; font-weight: 800; letter-spacing: -3.6px; text-transform: none; }
body.portfolio-home .home-hero h1 span { color: var(--home-accent) !important; }
.home-role { margin: 0 0 20px; color: var(--home-text); font-size: clamp(20px, 2vw, 27px); font-weight: 600; letter-spacing: -.6px; line-height: 1.4; }
.home-description { max-width: 470px; margin: 0 0 27px; font-size: 14px; line-height: 1.9; color: var(--home-muted); }
.home-personal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.home-personal-links a { color: var(--home-accent) !important; font-size: 11px; }
.home-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.home-button { display: inline-flex; justify-content: center; align-items: center; gap: 19px; padding: 14px 20px; border-radius: 7px; border: 1px solid var(--home-line); font: 600 12px 'Manrope', sans-serif; color: var(--home-text) !important; background: var(--home-surface); transition: transform .2s, border-color .2s, background .2s; }
.home-button:hover { transform: translateY(-2px); border-color: var(--home-accent); }
.home-button--primary { border-color: #1976d2; background: #1976d2; color: #fff !important; }
.home-button--primary:hover { background: #1565c0; }
.home-button svg { width: 15px; height: 15px; }
.home-credentials { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 19px; font-size: 10px; color: var(--home-muted); }
.home-credentials span { display: inline-flex; align-items: center; gap: 7px; }
.home-credentials svg { width: 14px; height: 14px; color: var(--home-accent); }
.home-editor-wrap { position: relative; min-width: 0; padding: 12px 0 24px; }
.home-example-heading { margin-bottom: 16px; }
.home-example-heading .home-eyebrow { margin-bottom: 6px; }
.home-example-heading p { margin: 0; font-size: 12px; color: var(--home-muted); }
.home-editor { border: 1px solid var(--home-line); border-radius: 12px; overflow: hidden; background: var(--home-surface); box-shadow: 0 24px 70px rgba(0,0,0,.13); }
.home-editor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--home-line); }
.home-window-dots { display: flex; gap: 5px; }
.home-window-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #fb7974; }
.home-window-dots i:nth-child(2) { background: #e8c267; }
.home-window-dots i:nth-child(3) { background: #78cba3; }
.home-editor-path { font-size: 9px; color: var(--home-muted); }
.home-editor-branch { font-size: 9px; color: var(--home-muted); }
.home-editor-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid var(--home-line); gap: 21px; }
.home-editor-tabs button { padding: 13px 0 11px; background: none; border: 0; border-bottom: 2px solid transparent; font: 10px 'IBM Plex Mono', monospace; color: var(--home-muted); cursor: pointer; }
.home-editor-tabs button[aria-selected="true"] { color: var(--home-accent); border-bottom-color: var(--home-accent); }
.home-editor-code { position: relative; padding: 23px 16px; min-height: 249px; overflow-x: auto; }
.home-editor-code pre { border: 0; padding: 0; margin: 0; background: transparent; color: var(--home-text); font: 11px/2.1 'IBM Plex Mono', monospace; white-space: pre; word-break: normal; overflow: visible; }
.home-code-line { display: block; }
.home-line-number { display: inline-block; width: 25px; user-select: none; color: var(--home-muted); opacity: .45; }
.home-code-purple { color: #ad91e8; }
.home-code-blue { color: var(--home-accent); }
.home-code-string { color: #82b49b; }
body:not(.dark) .home-code-string { color: #317850; }
body:not(.dark) .home-code-purple { color: #8050af; }
.home-editor-terminal { padding: 16px 20px 18px; border-top: 1px solid var(--home-line); background: var(--home-bg); }
.home-terminal-heading { display: flex; align-items: center; justify-content: space-between; font-size: 8px; color: var(--home-muted); letter-spacing: 1px; }
.home-run-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--home-line); background: var(--home-tint); color: var(--home-accent); border-radius: 4px; padding: 5px 8px; font: 9px 'IBM Plex Mono', monospace; cursor: pointer; letter-spacing: 0; }
.home-run-button:disabled { opacity: .6; cursor: wait; }
.home-terminal-output { display: grid; gap: 5px; min-height: 46px; margin-top: 11px; color: var(--home-muted); font-size: 9px; line-height: 1.7; }
.home-terminal-command { color: var(--home-text); }
.home-terminal-result { color: #69c799; }
body:not(.dark) .home-terminal-result { color: #29784f; }
.home-editor-note { display: block; color: var(--home-muted); font-size: 8px; margin-top: 9px; opacity: .8; }
.home-editor-label { display: inline-flex; align-items: center; gap: 10px; position: absolute; right: -15px; bottom: 3px; padding: 12px 17px; border: 1px solid var(--home-line); border-radius: 8px; background: var(--home-surface); color: var(--home-text); font-size: 10px; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
.home-editor-label svg { color: #69c799; width: 16px; height: 16px; }
.home-hero-foot { position: relative; display: flex; align-items: center; justify-content: space-between; padding-block: 20px; border-top: 1px solid var(--home-line); font-size: 9px; color: var(--home-muted); }
.home-hero-foot a { color: var(--home-muted); display: flex; gap: 14px; align-items: center; }
.home-hero-foot a:hover { color: var(--home-accent); }
.home-socials { display: flex; gap: 22px; }
.home-stack { border-block: 1px solid var(--home-line); background: var(--home-surface); }
.home-stack-inner { display: flex; align-items: center; gap: 38px; padding-block: 27px; }
.home-stack-label { flex-shrink: 0; font-size: 9px; letter-spacing: 1px; color: var(--home-muted); }
.home-stack-list { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 22px; list-style: none; margin: 0; }
.home-stack-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--home-muted); }
.home-tool-mark { color: var(--home-accent); font: 600 13px 'IBM Plex Mono', monospace; }
.home-work { padding-block: 0 64px; }
.home-section-band { background: var(--home-section-heading); border-block: 1px solid var(--home-line); }
.home-section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-block: 36px; }
.home-eyebrow { display: block; margin-bottom: 12px; font-size: 9px; color: var(--home-accent); letter-spacing: 1.4px; text-transform: uppercase; }
body.portfolio-home .home-section-top h2 { margin: 0; font: 700 32px/1.2 'Manrope', sans-serif; text-transform: uppercase; letter-spacing: -1.4px; color: var(--home-accent); }
.home-section-top p { margin: 0 0 2px; font-size: 12px; color: var(--home-muted); }
.home-work-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-work-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--home-line); border-radius: 10px; background: var(--home-surface); color: var(--home-text) !important; transition: transform .2s, border-color .2s; }
.home-work-card:hover { transform: translateY(-4px); border-color: var(--home-accent); }
.home-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.home-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--home-line); border-radius: 8px; background: var(--home-tint); color: var(--home-accent); }
.home-card-icon svg { width: 19px; height: 19px; }
.home-card-number { color: var(--home-muted); font-size: 9px; }
.home-work-card h3 { margin: 0 0 10px; font: 700 17px 'Manrope', sans-serif; color: var(--home-text); letter-spacing: -.4px; }
.home-work-card p { font-size: 12px; color: var(--home-muted); line-height: 1.85; margin: 0 0 22px; }
.home-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--home-line); font-size: 10px; color: var(--home-accent); }
.home-card-link span:last-child { font-size: 17px; }
.home-skip { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 999999; padding: 12px 18px; border-radius: 6px; background: #1976d2; color: #fff; }
.home-skip:focus { transform: translateY(0); color: #fff; }
.portfolio-home :is(a, button):focus-visible { outline: 2px solid var(--home-accent); outline-offset: 5px; }
/* Distinct heading bands make transitions between portfolio sections visible. */
html body.portfolio-home :is(#content .page-section, #section-contact, #section-quick-links) { background: var(--home-bg) !important; }
html body.portfolio-home :is(#content .page-section, #section-contact, #section-quick-links) > .section { background: var(--home-bg) !important; border-color: var(--home-line) !important; }
html body.portfolio-home :is(#content .page-section, #section-contact, #section-quick-links) > .section.sec-head { background: var(--home-section-heading) !important; padding-block: 40px !important; border-block: 1px solid var(--home-line) !important; }
html body.portfolio-home :is(#content .page-section, #section-contact, #section-quick-links) h2.sec-title { font-family: 'Manrope', sans-serif !important; font-size: 32px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: -1.2px !important; color: var(--home-accent) !important; }
html body.portfolio-home :is(#content .page-section, #section-contact, #section-quick-links) h2.sec-title + p { color: var(--home-muted) !important; font-family: 'Manrope', sans-serif; font-size: 13px; }
/* Persistent shortcuts share the same surfaces and focus treatment. */
html body.portfolio-home .si-sticky {
  display: flex !important; position: fixed; top: calc(50% + var(--home-header-height) / 2);
  left: 8px !important; right: auto; bottom: auto; transform: translateY(-50%);
  flex-direction: column; gap: 8px; padding: 4px; z-index: 110;
  max-height: calc(100dvh - var(--home-header-height) - 32px); overflow: auto;
}
html body.portfolio-home .si-sticky a.social-icon {
  flex: 0 0 44px; width: 44px !important; height: 44px !important; margin: 0 !important;
  background: var(--home-surface) !important; border: 1px solid var(--home-line) !important;
  border-radius: 10px !important; color: var(--home-muted) !important;
  box-shadow: none !important; transform: none !important; animation: none !important;
}
html body.portfolio-home .si-sticky a.social-icon i { color: inherit !important; font-size: 20px; }
html body.portfolio-home .si-sticky a.social-icon .bug-lab-icon { color: inherit !important; width: 25px; height: 25px; }
html body.portfolio-home .si-sticky a.social-icon .bug-lab-icon g { stroke: currentColor !important; }
html body.portfolio-home .si-sticky a.social-icon .bug-lab-icon circle { fill: currentColor !important; }
html body.portfolio-home .si-sticky a.social-icon .istqb-logo {
  display: block; width: 36px; height: 28px;
  color: inherit !important; fill: currentColor !important; stroke: none !important;
}
html body.portfolio-home #hsnakd-notice {
  display: flex !important; position: fixed !important; right: 12px !important;
  top: calc(var(--home-header-height) + 60px) !important; z-index: 110 !important;
  width: 44px; min-height: 132px; padding: 16px 10px; gap: 12px;
  flex-direction: column-reverse; transform: none !important;
  background: var(--home-surface) !important; border: 1px solid var(--home-line) !important;
  border-radius: 10px; color: var(--home-accent) !important; box-shadow: none !important;
  font: 700 12px 'Manrope', sans-serif; letter-spacing: 1px;
}
html body.portfolio-home #hsnakd-notice::before,
html body.portfolio-home #hsnakd-notice::after { display: none !important; }
html body.portfolio-home #hsnakd-notice .notice-text { writing-mode: vertical-rl; }
html body.portfolio-home #hsnakd-notice :is(.notice-text, .notice-icon) {
  color: inherit !important; text-shadow: none; transform: none !important;
}
/* Override legacy brand hover colors consistently in both themes. */
html body.portfolio-home:is(.dark, :not(.dark)) .si-sticky a.social-icon:hover,
html body.portfolio-home #hsnakd-notice:hover {
  background: var(--home-tint) !important; border-color: var(--home-accent) !important; color: var(--home-accent) !important;
}
html body.portfolio-home:is(.dark, :not(.dark)) .si-sticky a.social-icon:hover i { color: inherit !important; }
/* Instagram's warm lower-left glow blends into pink, purple, and blue. */
html body.portfolio-home:is(.dark, :not(.dark)) :is(.si-sticky, #footer, #side-panel) a.social-icon.si-instagram:is(:hover, :focus-visible) {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
  border-color: #d6249f !important; color: #fff !important;
}
html body.portfolio-home:is(.dark, :not(.dark)) :is(.si-sticky, #footer, #side-panel) a.social-icon.si-instagram:is(:hover, :focus-visible) i { color: inherit !important; }
html body.portfolio-home :is(.si-sticky a, #hsnakd-notice):focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
@media (min-width: 801px) { body.portfolio-home { --home-gutter: 72px; } }
@media (max-width: 800px) {
  html body.portfolio-home .si-sticky {
    top: auto; bottom: 12px; left: 12px !important; right: 12px; transform: none;
    flex-direction: row; gap: 6px; padding: 8px; max-height: none; width: max-content !important;
    max-width: calc(100% - 24px); margin-inline: auto; background: var(--home-surface);
    border: 1px solid var(--home-line); border-radius: 14px;
  }
  html body.portfolio-home #hsnakd-notice {
    top: auto !important; bottom: 88px; right: 12px !important;
    width: auto; min-height: 44px; flex-direction: row-reverse; padding: 10px 14px;
  }
  html body.portfolio-home #hsnakd-notice .notice-text { writing-mode: horizontal-tb; }
  html body.portfolio-home #chatbot-container { bottom: 144px !important; }
  html body.portfolio-home #gotoTop { bottom: 144px !important; }
  body.portfolio-home { padding-bottom: 90px; }
}
/* Embedded applications and legacy components share the same surface tokens. */
html body.portfolio-home :is(#section-ci-pipeline-lab, #section-api-mock-lab) :is(#ci-pipeline-lab-root, #api-mock-lab-root, [data-ci-pipeline-lab], [data-api-mock-lab]) {
  background: var(--home-bg) !important;
}
html body.portfolio-home :is(#section-playwright-demo, #section-ci-pipeline-lab, #section-api-mock-lab) {
  --pw-panel: var(--home-surface); --pw-panel-ink: var(--home-surface);
}
html body.portfolio-home #section-playwright-demo :is(.pw-glass, .pw-report-dash) {
  background: var(--home-surface) !important; border-color: var(--home-line) !important; box-shadow: none !important; border-radius: 12px;
}
html body.portfolio-home #section-playwright-demo :is(.pw-allure-hero, .pw-allure-panels) {
  --allure-bg: var(--home-surface); background: var(--home-surface) !important; border-color: var(--home-line);
}
html body.portfolio-home #section-playwright-demo #pw-flow { background: var(--home-surface) !important; border-color: var(--home-line) !important; }
html body.portfolio-home :is(#bug-report-lab-root, #ci-pipeline-lab-root, #api-mock-lab-root) [class~="backdrop-blur-2xl"] {
  background: var(--home-surface) !important; border-color: var(--home-line) !important; box-shadow: none !important;
}
html body.portfolio-home :is(#bug-report-lab-root, #ci-pipeline-lab-root, #api-mock-lab-root) [class*="border-white/"] { border-color: var(--home-line) !important; }
/* One content width across the introduction, demonstrations, and resources. */
html body.portfolio-home :is(.page-section, #section-work) > .container,
html body.portfolio-home :is(.page-section, #section-work) > .section > .container,
html body.portfolio-home :is([data-ci-pipeline-lab], [data-api-mock-lab]) > div,
html body.portfolio-home #footer.ft > .container {
  width: var(--home-content-width) !important; max-width: var(--home-content-max) !important; margin-inline: auto; padding-inline: 0 !important;
}
html body.portfolio-home #section-tools .container .container { width: 100% !important; max-width: 100% !important; padding-inline: 0 !important; }
html body.portfolio-home #section-tools { --psg-lab-outer: 100%; }
html body.portfolio-home #section-tools :is(.tools-pairs, .pos-guide) { width: 100%; max-width: 100%; padding-inline: 0; }
html body.portfolio-home #section-tools .tools-pair__tool .tool-card-item { flex: 1; align-items: stretch; }
html body.portfolio-home #section-about :is(.about-v2__board, .pro-snap-v2__grid),
html body.portfolio-home #section-qa-practice .vl-lab__board,
html body.portfolio-home #section-contact .ct-layout,
html body.portfolio-home #section-playwright-demo .pw-flow-wrap { width: 100%; max-width: 100%; }
html body.portfolio-home #section-about #section-pro-snapshot .pro-snap-v2__grid { max-width: 100%; }
@media (min-width: 1400px) {
  html body.portfolio-home #section-tools .tools-pairs--lab { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.3fr); }
}
@media (min-width: 601px) and (max-width: 1399px) {
  html body.portfolio-home #section-tools .tools-pairs--lab { display: flex; }
  html body.portfolio-home #section-tools .tools-pairs--lab .psg-pair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); grid-column: auto; gap: 20px; }
}
html body.portfolio-home #section-qa-practice { --vl-panel: var(--home-surface); --vl-border: var(--home-line); }
html body.portfolio-home #section-qa-practice .vl-lab__board {
  background: var(--home-surface) !important; border-color: var(--home-line) !important; box-shadow: none !important; border-radius: 12px;
}
html body.portfolio-home #section-tools { --psg-mini-surface: var(--home-surface); --psg-line: var(--home-line); --psg-mini-ink: var(--home-text); }
html body.portfolio-home #section-tools :is(.psg-skill-card, .psg-mini-demo) {
  background: var(--home-surface) !important; border: 1px solid var(--home-line) !important; box-shadow: none !important; border-radius: 12px; animation: none !important;
}
html body.portfolio-home #section-tools .psg-skill-card::before { display: none !important; }
html body.portfolio-home #section-tools .psg-skill-card :is(.card-text, .psg-vlab-name) { color: var(--home-text) !important; text-shadow: none !important; }
html body.portfolio-home #section-tools .psg-skill-card :is(.psg-vlab-tagline, .psg-vlab-hint) { color: var(--home-muted) !important; }
html body.portfolio-home #section-tools .psg-mini-demo__open {
  background: #1976d2 !important; color: #fff !important; border-color: #1976d2 !important; box-shadow: none !important;
}
html body.portfolio-home #section-sdet {
  --qa-surface: var(--home-surface); --qa-surface-2: var(--home-surface); --qa-border: var(--home-line); --qa-text: var(--home-text); --qa-muted: var(--home-muted);
}
html body.portfolio-home :is(#section-subjects, #subj-reader) {
  --subj-surface: var(--home-surface); --subj-surface-2: var(--home-tint); --subj-border: var(--home-line); --subj-text: var(--home-text); --subj-muted: var(--home-muted); --subj-faint: var(--home-muted);
}
html body.portfolio-home #section-contact {
  --ct-surface: var(--home-surface); --ct-panel: var(--home-surface); --ct-input: var(--home-bg); --ct-input-focus: var(--home-surface); --ct-border: var(--home-line); --ct-input-border: var(--home-line); --ct-text: var(--home-text); --ct-muted: var(--home-muted);
}
html body.portfolio-home #section-about :is(.about-v2__ctas .button, .pro-snap-v2__ico),
html body.portfolio-home #section-qa-practice .vl-lab__ctaHero { box-shadow: none !important; }
html body.portfolio-home #section-about .about-v2__ctas .button {
  background: #1976d2 !important; border-color: #1976d2 !important; color: #fff !important; border-radius: 7px !important;
}
html body.portfolio-home #section-about {
  --ab-panel: var(--home-surface); --ab-border: var(--home-line); --ab-text: var(--home-text); --ab-muted: var(--home-muted); --ab-title: var(--home-accent);
}
html body.portfolio-home #section-about .about-v2__board,
html body.portfolio-home #section-about #section-pro-snapshot .pro-snap-v2__card {
  background: var(--home-surface); border-color: var(--home-line); border-radius: 12px; box-shadow: none;
}
html body.portfolio-home #footer.ft {
  --ft-bg: var(--home-surface); --ft-bottom: var(--home-bg); --ft-border: var(--home-line); --ft-text: var(--home-text); --ft-muted: var(--home-muted); --ft-faint: var(--home-muted); --ft-accent: var(--home-accent); --ft-chip: var(--home-tint);
}
html body.portfolio-home #footer.ft .ft-social { display: flex; flex-wrap: wrap; }
html body.portfolio-home.dark #footer.ft .ft-social .si-lab:not(:hover) { background: transparent !important; }
html body.portfolio-home #gotoTop,
html body.portfolio-home #chatbot-toggle {
  width: 44px !important; height: 44px !important; line-height: 44px !important; border-radius: 12px !important;
  background: var(--home-surface) !important; border: 1px solid var(--home-line) !important; color: var(--home-accent) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.12) !important; font-size: 18px !important;
}
html body.portfolio-home #chatbot-toggle i { font-size: 19px !important; }
html body.portfolio-home #chatbot-container { right: 20px !important; bottom: 20px !important; }
html body.portfolio-home #gotoTop { right: 74px !important; bottom: 20px !important; }
@media (min-width: 1500px) { .home-hero-grid { padding-top: 80px; padding-bottom: 80px; } }
@media (max-width: 1499px) {
  .home-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; width: var(--home-content-width); max-width: var(--home-content-max); margin-inline: auto; padding: 12px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 0 0 10px 10px; z-index: 10; }
  .home-nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .home-nav-links > a { padding: 14px 12px; font-size: 14px; }
  .home-menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--home-line); border-radius: 8px; background: transparent; color: var(--home-text); cursor: pointer; }
  .home-menu-toggle svg { width: 18px; height: 18px; }
}
@media (max-width: 1100px) {
  .home-hero-grid { gap: 36px; }
  body.portfolio-home .home-hero h1 { font-size: 53px; letter-spacing: -2.8px; }
  .home-nav-links { gap: 16px; }
  .home-editor-code pre { font-size: 9px; }
  .home-stack-inner { gap: 25px; }
  .home-stack-list { flex-wrap: wrap; justify-content: flex-start; gap: 18px 24px; }
}
@media (max-width: 800px) {
  html { --home-header-height: 96px; }
  .home-brand-logo { width: 124px; height: 50px; }
  .home-brand-copy strong { font-size: 20px; }
  .home-brand-copy small { font-size: 12px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 35px; padding-top: 48px; padding-bottom: 35px; }
  .home-hero-copy { max-width: 560px; }
  body.portfolio-home .home-hero h1 { font-size: clamp(46px, 8vw, 64px); }
  .home-description { max-width: 470px; }
  .home-editor-wrap { max-width: 560px; width: 100%; margin-inline: auto; }
  .home-editor-code pre { font-size: 11px; }
  .home-nav { gap: 16px; }
  .home-nav-links { gap: 16px; }
  .home-nav-links > a { font-size: 14px; }
  .home-stack-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .home-stack-list { width: 100%; justify-content: space-between; }
  .home-stack-list li { font-size: 11px; }
  .home-work { padding-block: 0 48px; }
  .home-section-top { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 28px; }
  .home-work-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-work-card { padding: 22px; }
  .home-card-top { margin-bottom: 18px; }
  .home-work-card p { max-width: 430px; margin-bottom: 16px; }
}
@media (max-width: 540px) {
  html { --home-header-height: 88px; }
  html body.portfolio-home #header #theme-toggle, .home-menu-toggle { width: 44px !important; height: 44px !important; }
  .home-run-button { min-height: 36px; }
  .home-brand { font-size: 14px; gap: 9px; }
  .home-brand-logo { width: 68px; height: 28px; }
  .home-brand-copy strong { font-size: 15px; }
  .home-brand-copy small { font-size: 10px; letter-spacing: 0; }
  .home-nav-actions { gap: 4px; }
  .home-nav { width: calc(100% - 24px); gap: 6px; }
  .home-brand { gap: 6px; }
  .home-availability { font-size: 10px; }
  body.portfolio-home .home-hero h1 { font-size: clamp(36px, 12vw, 47px); letter-spacing: -2.6px; }
  .home-intro { font-size: 9px; letter-spacing: .7px; }
  .home-description { font-size: 13px; }
  .home-button { padding: 13px 15px; font-size: 11px; gap: 12px; }
  .home-credentials { gap: 15px; font-size: 9px; }
  .home-editor-code { padding: 19px 9px; min-height: 225px; }
  .home-editor-code pre { font-size: 9px; }
  .home-line-number { width: 20px; }
  .home-editor-label { right: -6px; font-size: 9px; padding: 10px 13px; }
  .home-editor-path { font-size: 8px; }
  .home-editor-branch { display: none; }
  .home-editor-top { padding: 14px; }
  .home-hero-foot { font-size: 8px; }
  .home-hero-foot > a { gap: 7px; }
  .home-socials { gap: 14px; }
  .home-stack-list { justify-content: flex-start; gap: 17px 22px; }
  .home-section-top h2 { font-size: 28px !important; }
  html body.portfolio-home :is(#content .page-section, #section-contact, #section-quick-links) h2.sec-title { font-size: 27px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-home *, .portfolio-home *::before, .portfolio-home *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Override the legacy template's sticky-bar positioning and inline centering. */
html body.portfolio-home .si-sticky {
  top: calc(50% + var(--home-header-height) / 2) !important;
  bottom: auto !important; margin: 0 !important; gap: 8px !important;
  flex-direction: column !important; transform: translateY(-50%) !important;
}
html body.portfolio-home .home-nav-actions > button { margin: 0 !important; box-sizing: border-box; flex-shrink: 0; }
/* Proof of Skill: present each tool and its live preview as one of three desktop columns. */
@media (min-width: 1200px) {
  html body.portfolio-home #section-tools .tools-pairs--lab {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
  html body.portfolio-home #section-tools .tools-pairs--lab .psg-pair {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-column: auto !important;
    gap: 16px !important;
  }
}
@media (max-width: 800px) {
  html body.portfolio-home .si-sticky {
    top: auto !important; bottom: 12px !important; flex-direction: row !important;
    transform: none !important; margin: 0 auto !important; gap: 6px !important;
    height: 62px !important; overflow-x: auto !important; overflow-y: hidden !important;
  }
}
