/* Small refinements to the original portfolio, with the same type and palette. */
.hero-showcase .hero-cv-actions {
  gap:10px;
  margin:24px 0 0;
}
.hero-cv-actions a {
  min-height:46px;
  padding:10px 16px;
  font-size:.875rem;
  gap:12px;
}
.mobile-header-actions[hidden] { display:none; }
.project-contribution {
  margin:20px 0 16px;
  padding:20px;
  border:1px solid #d9e1f2;
  border-radius:8px;
  background:#edf1fa;
}
.project-contribution h3 { font-size:1rem; margin-bottom:8px; }
.project-contribution p { color:#4d5d78; line-height:1.7; }
.project-contribution .project-role {
  margin-bottom:8px;
  color:#60718c;
  font-size:.8125rem;
}
.project-primary-links {
  gap:10px;
  margin:16px 0;
}
.project-primary-links:empty { display:none; }
.project-primary-links a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border:1px solid #c3d0ee;
  border-radius:7px;
  background:#fff;
  color:#2444c5;
  overflow-wrap:anywhere;
}
.project-delivery {
  padding:20px 0;
  border-top:1px solid var(--line);
}
.project-delivery h3 { font-size:1.125rem; margin-bottom:8px; }
.project-delivery h3:not(:first-child) { margin-top:18px; }
.project-delivery p { color:#53637d; }
.project-context { padding:20px 0; border-top:1px solid var(--line); }
.project-context h3 { font-size:1.125rem; margin-bottom:8px; }
.project-context p { color:#53637d; }
#dialog-content,.card-info>div,.section-heading>div { min-width:0; }
#dialog-content h2,.card-info h3 { overflow-wrap:anywhere; }
.dialog-toolbar button { min-height:44px; padding:6px 10px; }
.filters button,.small-open,.text-button { min-height:44px; }
.small-open { min-width:44px; }

@media(max-width:800px), (max-width:1000px) and (max-height:500px) {
  :root { --rail:0px; --mobile-header-height:calc(68px + env(safe-area-inset-top,0px)); }
  html:has(.js-enabled) { scroll-padding-top:calc(var(--mobile-header-height) + 20px); }
  .portfolio-refresh.js-enabled .sidebar {
    width:100%;
    height:auto;
    bottom:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:space-between;
    min-height:var(--mobile-header-height);
    padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;
    gap:0;
    align-content:start;
  }
  .js-enabled .sidebar-intro,.js-enabled .sidebar-bottom { display:none; }
  .js-enabled .sidebar .brand { font-size:30px; letter-spacing:-2px; }
  .mobile-header-actions {
    display:flex;
    align-items:center;
    gap:6px;
    margin-left:auto;
  }
  html.destroy-mode .mobile-header-actions { visibility:hidden; pointer-events:none; }
  .js .mobile-header-actions .menu-toggle {
    min-height:44px;
    width:44px;
    padding:0;
    justify-content:center;
    flex:none;
  }
  .mobile-header-actions .menu-label { display:none; }
  .mobile-header-actions .destroy-launch {
    min-height:44px;
    min-width:76px;
    margin:0;
    padding:8px 10px;
    gap:6px;
    font-size:.75rem;
    white-space:nowrap;
    border-radius:8px;
    background:#191d29;
    color:#fff;
    border:1px solid #191d29;
    box-shadow:none;
    flex:none;
  }
  .mobile-header-actions .destroy-launch svg { width:14px; height:14px; }
  .mobile-header-actions .destroy-label { display:none; }
  .mobile-header-actions .destroy-short { display:inline; }
  .mobile-header-actions .language-switch { margin:0; padding:2px; gap:1px; }
  .mobile-header-actions .language-switch button {
    min-height:40px;
    min-width:33px;
    padding:6px;
    font-size:.6875rem;
  }
  .portfolio-refresh.js-enabled .page { margin-left:0; padding-top:var(--mobile-header-height); }
  .js-enabled .topbar {
    position:fixed;
    top:var(--mobile-header-height);
    left:0;
    right:0;
    height:2px!important;
    margin:0;
    padding:0;
    background:transparent;
    border:0;
    pointer-events:none;
  }
  .js-enabled .topbar>span,.js-enabled .topbar>a { display:none; }
  .js-enabled .topbar .progress { bottom:0; }
  .js-enabled .sidebar nav {
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    margin:12px 0 0;
    gap:4px 18px;
    border-top:1px solid var(--line);
    max-height:calc(100dvh - var(--mobile-header-height) - 12px);
    overflow-y:auto;
    overscroll-behavior:contain;
    padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
  }
  .js-enabled .sidebar nav a { min-height:48px; padding:12px 8px; border:0; border-radius:6px; }
  .js-enabled .sidebar nav a>span,.js-enabled .sidebar nav i { display:none; }
  .js-enabled .sidebar:not(.menu-open) nav { display:none; }
  .hero-showcase .hero-cv-actions { margin-top:20px; }
  .hero-cv-actions a { min-height:46px; }
  .project-contribution { padding:16px; }
  .project-primary-links { flex-wrap:wrap; }
  .project-primary-links a { flex:1 1 auto; }
  .project-share-actions { margin:16px 0; padding:12px; border-radius:8px; }
  .project-share-actions a,.project-share-actions button { font-size:.8125rem; padding:10px 12px; }
  .project-share-status:empty { display:none; }
  .dialog-toolbar { padding:10px 14px; gap:10px; }
  .dialog-toolbar>span { min-width:0; overflow-wrap:anywhere; }
}
@media(max-width:360px) {
  .portfolio-refresh.js-enabled .sidebar { padding-inline:12px; }
  .js-enabled .sidebar .brand { font-size:28px; }
  .mobile-header-actions { gap:5px; }
  .mobile-header-actions .destroy-launch { min-width:72px; padding-inline:8px; font-size:.6875rem; }
  .mobile-header-actions .language-switch button { min-width:31px; padding-inline:5px; }
  .hero-cv-actions { gap:8px; }
  .hero-cv-actions a { font-size:.8125rem; padding-inline:13px; }
  .project-primary-links a { width:100%; }
}
@media(max-width:560px) {
  .project-cover.pao-cover {
    aspect-ratio:auto;
    min-height:270px;
    padding-bottom:60px;
  }
}
@media print {
  .hero-cv-actions,.mobile-header-actions { display:none!important; }
  .portfolio-refresh.js-enabled .page { padding-top:0; }
}
/* Site review, Oct 2026: four tour routes and the hero proof chips. */
.quick-paths{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.quick-paths{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hero-proof{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.hero-proof li{padding:6px 11px;border:1px solid var(--line,#dce2ed);border-radius:999px;background:#fff;color:var(--muted,#586780);font-size:12.5px;font-weight:700;line-height:1.35}
/* Lucide icons in place of hand-made symbols. */
.destroy-launch .ico{width:14px;height:14px;color:#ff8a3d}
.chrome-dots{display:inline-flex;gap:4px;align-items:center}
.chrome-dots i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.55}
