:root{
  /* ---- LIGHT: hồng nhạt tươi sáng ---- */
  --bg:#FFF7F9;
  --panel:#FFEEF3;
  --panel-2:#FFE4EC;
  --line:#F5CBD8;
  --text:#3A0B1F;
  --muted:#8B5A6B;
  --accent:#D1336A;
  --accent-hover:#B3255A;
  --accent-soft:#FFE0EA;
  --accent-soft-border:#F7AFC6;
  --accent-ink:#FFFFFF;
  --accent-glow:rgba(209,51,106,0.14);
  --wave-a:#F06292;
  --wave-b:#FFB3C8;
  --wave-opacity:0.75;
  --online:#16A34A;
  --shadow:0 1px 2px rgba(58,11,31,0.04), 0 10px 28px rgba(209,51,106,0.08);
  --radius-lg:10px;
  --radius-md:8px;
  --radius-sm:5px;
  --font:'Saira', system-ui, sans-serif;
}
html[data-theme="dark"]{
  /* ---- DARK: nền mận đậm + accent đỏ mận trầm ---- */
  --bg:#1E0712;
  --panel:#270B19;
  --panel-2:#311021;
  --line:#4A1B30;
  --text:#FFF3F1;
  --muted:#C7A3AE;
  --accent:#B83A5E;
  --accent-hover:#C94A6D;
  --accent-soft:rgba(184,58,94,0.14);
  --accent-soft-border:rgba(184,58,94,0.42);
  --accent-ink:#FFF3F1;
  --accent-glow:rgba(184,58,94,0.14);
  --wave-a:#9F2D52;
  --wave-b:#5F1D3B;
  --wave-opacity:0.9;
  --online:#4ADE80;
  --shadow:0 1px 2px rgba(0,0,0,0.35), 0 14px 36px rgba(0,0,0,0.45);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg); color:var(--text); font-family:var(--font);
  line-height:1.65; -webkit-font-smoothing:antialiased; transition:background .25s, color .25s;
}
h1,h2,h3{font-family:var(--font); letter-spacing:-0.01em;}
a{color:inherit;}
.wrap{max-width:1140px; margin:0 auto; padding:0 32px; position:relative;}
section{padding:96px 0;}
::selection{background:var(--accent); color:var(--accent-ink);}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
.icon-defs{display:none;}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
}

.highlight{color:var(--accent); text-shadow:0 0 10px var(--accent-glow);}

/* ---- NAV ---- */
nav{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
nav .wrap{display:flex; align-items:center; justify-content:space-between; padding-top:14px; padding-bottom:14px; gap:14px; flex-wrap:nowrap;}
.brand{font-weight:700; font-size:17px; white-space:nowrap; display:inline-flex; align-items:center; gap:10px; text-decoration:none;}
.brand-mark{
  width:30px; height:30px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center;
  border-radius:var(--radius-sm); overflow:hidden;
  box-shadow:0 0 18px var(--accent-glow);
}
.brand-mark img{width:100%; height:100%; object-fit:contain; display:block;}
.btn-cv, .nav-cta{
  height:36px; padding:0 18px; border-radius:var(--radius-sm); font-size:13.5px; font-weight:600; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; line-height:1; white-space:nowrap;
  transition:background .15s, color .15s, border-color .15s;
}
.nav-cta{background:var(--accent); border:1px solid var(--accent); color:var(--accent-ink); box-shadow:0 0 18px var(--accent-glow);}
.nav-cta:hover{background:var(--accent-hover); border-color:var(--accent-hover); box-shadow:0 0 26px var(--accent-glow); transform:translateY(-1px);}
.btn-cv{background:transparent; border:1px solid var(--line); color:var(--text);}
.btn-cv:hover{border-color:var(--accent); color:var(--accent); box-shadow:0 0 18px var(--accent-glow);}
.nav-primary{display:flex; gap:26px; align-items:center; margin-left:auto;}
.nav-link{
  text-decoration:none; color:var(--muted); font-size:14.5px; transition:color .15s;
  white-space:nowrap; display:inline-block;
}
.nav-link:hover{color:var(--text);}
.nav-actions{display:flex; align-items:center; gap:12px;}
.toggle-row{display:contents;}

.icon-btn{
  width:36px; height:36px; border-radius:var(--radius-sm); border:1px solid var(--line); background:transparent;
  color:var(--text); display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
  line-height:1; padding:0; transition:border-color .15s, color .15s;
}
.icon-btn:hover{border-color:var(--accent); color:var(--accent);}
.icon-btn svg{width:17px; height:17px;}

.lang-dropdown{position:relative; width:90px;}
.lang-btn{
  border:1px solid var(--line); background:transparent; color:var(--text); border-radius:var(--radius-sm);
  width:90px; font-size:13px; font-weight:600; padding:0 10px; height:36px; cursor:pointer; line-height:1; white-space:nowrap;
  display:inline-flex; align-items:center; gap:6px; transition:border-color .15s; font-family:inherit;
}
.lang-btn:hover{border-color:var(--accent);}
.lang-btn .chev{font-size:8px; color:var(--muted); margin-left:auto; line-height:1;}
.fi{width:18px; height:13px; border-radius:2px; box-shadow:0 0 0 1px var(--line); flex-shrink:0; display:block; overflow:hidden;}
.lang-menu{
  position:absolute; top:calc(100% + 6px); right:0; background:var(--panel); border:1px solid var(--line);
  border-radius:var(--radius-sm); box-shadow:var(--shadow); overflow:hidden; min-width:150px;
  display:none; z-index:60;
}
.lang-menu.open{display:block;}

.nav-toggle-btn{display:none;}
.nav-primary-extra{display:none;}
.lang-option{
  width:100%; display:flex; align-items:center; gap:9px; padding:10px 12px; background:none; border:none;
  color:var(--text); font-size:13.5px; font-weight:500; cursor:pointer; text-align:left; transition:background .1s; font-family:inherit;
}
.lang-option:hover{background:var(--accent-soft);}
.lang-option.active{color:var(--accent); font-weight:700;}

/* ---- HERO ---- */
.hero{position:relative; overflow:hidden; padding:120px 0 0; min-height:clamp(620px, calc(100vh - 65px), 900px); display:flex; flex-direction:column; justify-content:flex-end;}
.hero-waves{
  position:absolute; top:0; right:0; width:62%; height:78%; pointer-events:none;
  opacity:var(--wave-opacity);
  -webkit-mask-image:linear-gradient(to left, #000 55%, transparent 100%);
  mask-image:linear-gradient(to left, #000 55%, transparent 100%);
}
.hero-waves path{fill:none; stroke-width:1;}
.hero > .wrap{width:100%;}
.hero-inner{display:grid; grid-template-columns:1fr 280px; gap:56px; align-items:end;}
.eyebrow{
  font-size:13px; font-weight:600; color:var(--accent);
  text-transform:uppercase; letter-spacing:0.16em; margin-bottom:18px; display:flex; align-items:center; gap:12px;
}
.eyebrow::before{display:none;}
.hero h1{font-size:clamp(38px, 5.4vw, 68px); font-weight:700; line-height:1.12; margin-bottom:26px; max-width:820px;}
.hero p.lede{color:var(--muted); font-size:clamp(17px, 1.8vw, 21px); font-weight:300; max-width:640px; margin-bottom:34px; line-height:1.55;}
.cta-row{display:flex; gap:12px; flex-wrap:wrap;}
.btn{
  padding:13px 26px; border-radius:var(--radius-sm); font-size:15px; font-weight:600;
  text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:all .15s;
  border:1px solid transparent; cursor:pointer; min-width:170px;
}
.btn-primary{background:var(--accent); color:var(--accent-ink); box-shadow:0 0 20px var(--accent-glow);}
.btn-primary:hover{background:var(--accent-hover); box-shadow:0 0 30px var(--accent-glow); transform:translateY(-1px);}
.btn-ghost{border-color:var(--line); color:var(--text); background:transparent;}
.btn-ghost:hover{border-color:var(--accent); color:var(--accent);}

.hero-meta{display:flex; flex-direction:column; gap:18px; font-weight:300; padding-bottom:6px;}
.hero-meta dt{font-size:12.5px; color:var(--muted); font-weight:400;}
.hero-meta dd{font-size:15.5px; color:var(--text); line-height:1.4; word-break:break-word;}

.hero-kpis{display:grid; grid-template-columns:repeat(4, 1fr); margin-top:72px; border-top:1px solid var(--line);}
.kpi{padding:26px 24px 34px 0;}
.kpi + .kpi{padding-left:24px; border-left:1px solid var(--line);}
.kpi .num{font-size:40px; font-weight:700; color:var(--accent); letter-spacing:-0.02em; line-height:1;}
.kpi .unit{font-size:15px; font-weight:500; color:var(--accent); margin-left:5px;}
.kpi .lbl{font-size:14px; color:var(--muted); margin-top:8px; font-weight:300;}

/* ---- SECTION HEADINGS ---- */
.sec-head{margin-bottom:42px;}
.sec-head .eyebrow{margin-bottom:12px;}
.sec-head h2{font-size:clamp(28px, 3.2vw, 38px); font-weight:700; line-height:1.2;}

/* ---- WORKED WITH STRIP ---- */
#worked-with{padding:44px 0 52px; border-top:1px solid var(--line); background:var(--panel);}
.worked-with-label{
  font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase;
  letter-spacing:0.16em; text-align:center; margin-bottom:24px;
}
.logo-strip{display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:16px;}
.logo-card{
  width:150px; height:78px; background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:center; padding:14px 18px; flex-shrink:0;
  font-weight:600; font-size:15px; color:var(--muted); text-align:center; line-height:1.2;
}
.logo-card.has-img{background:#fff;}
.logo-card img{max-width:100%; max-height:100%; object-fit:contain; display:block;}

/* ---- ASK AI SECTION ---- */
#ask-ai{border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:88px 0; position:relative;}
.ask-badge{
  display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600;
  color:var(--accent); border:1px solid var(--accent-soft-border);
  background:var(--accent-soft); padding:5px 13px; border-radius:var(--radius-sm); margin-bottom:18px;
}
.ask-grid{display:grid; grid-template-columns:0.85fr 1.15fr; gap:52px; align-items:start;}
.ask-copy h2{font-size:clamp(28px, 3.2vw, 38px); font-weight:700; margin-bottom:14px; line-height:1.2;}
.ask-copy p{color:var(--muted); font-size:16px; font-weight:300; margin-bottom:22px;}
.ask-copy ul{list-style:none; display:flex; flex-direction:column; gap:12px;}
.ask-copy li{font-size:15px; color:var(--text); display:flex; gap:12px; align-items:center; font-weight:500;}
.ask-copy li::before{content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); flex-shrink:0;}

.ask-box{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow);}
.ask-head{padding:14px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:10px;}
.ask-avatar{
  width:34px; height:34px; border-radius:8px; background:var(--panel-2); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; padding:5px;
}
.ask-avatar img{width:100%; height:100%; object-fit:contain; display:block;}
.ask-wordmark{height:44px; margin-bottom:16px; display:flex; align-items:center;}
.ask-wordmark img{height:100%; width:auto; display:block;}
.ask-head strong{font-size:14.5px; font-weight:700; display:block;}
.ask-head .sub{font-size:12px; color:var(--online); display:flex; align-items:center; gap:5px; font-weight:500;}
.ask-head .sub::before{content:""; width:6px; height:6px; border-radius:50%; background:var(--online);}

#chat-log{padding:16px 18px; display:flex; flex-direction:column; gap:10px; min-height:200px; max-height:340px; overflow-y:auto; background:var(--bg);}
.msg-row{display:flex; gap:8px; align-items:flex-end;}
.msg-row.user{justify-content:flex-end;}
.msg-avatar{
  width:24px; height:24px; border-radius:6px; background:var(--panel-2); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-bottom:2px; padding:3px;
}
.msg-avatar img{width:100%; height:100%; object-fit:contain; display:block;}
.msg{font-size:14px; line-height:1.55; max-width:78%; padding:10px 14px; border-radius:10px;}
.msg.bot{background:var(--panel); border:1px solid var(--line); border-bottom-left-radius:3px;}
.msg.user{background:var(--accent); color:var(--accent-ink); font-weight:500; border-bottom-right-radius:3px;}
.typing-dots{display:flex; gap:3px; padding:4px 2px;}
.typing-dots span{width:5px; height:5px; border-radius:50%; background:var(--muted); animation:typingBounce 1.2s infinite;}
.typing-dots span:nth-child(2){animation-delay:.15s;}
.typing-dots span:nth-child(3){animation-delay:.3s;}
@keyframes typingBounce{0%,60%,100%{transform:translateY(0); opacity:.4;} 30%{transform:translateY(-3px); opacity:1;}}

#chat-suggest{padding:12px 18px; display:flex; flex-wrap:wrap; gap:7px; border-top:1px solid var(--line);}
.suggest-chip{
  font-size:13px; font-weight:500; color:var(--accent); font-family:inherit;
  border:1px solid var(--accent-soft-border); padding:5px 12px; border-radius:var(--radius-sm); cursor:pointer; background:var(--accent-soft);
  transition:background .15s, border-color .15s, color .15s;
}
.suggest-chip:hover{background:var(--accent); color:var(--accent-ink); border-color:var(--accent); box-shadow:0 0 18px var(--accent-glow);}
#chat-input-row{display:flex; align-items:center; gap:8px; padding:12px 14px; border-top:1px solid var(--line);}
#chat-input{
  flex:1; background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-sm); color:var(--text);
  padding:10px 14px; font-size:14px; outline:none; font-family:inherit; transition:border-color .15s;
}
#chat-input:focus{border-color:var(--accent);}
#chat-send{
  width:40px; height:40px; border-radius:var(--radius-sm); background:var(--accent); color:var(--accent-ink); border:none;
  cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .15s, box-shadow .15s;
  box-shadow:0 0 18px var(--accent-glow);
}
#chat-send:hover{background:var(--accent-hover); box-shadow:0 0 26px var(--accent-glow);}
#chat-send:disabled{opacity:0.6; cursor:not-allowed;}
#chat-attach{
  width:40px; height:40px; border-radius:var(--radius-sm); background:transparent; border:1px solid var(--line); color:var(--muted);
  cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:border-color .15s, color .15s;
}
#chat-attach:hover{border-color:var(--accent); color:var(--accent);}
#chat-attach:disabled{opacity:0.6; cursor:not-allowed;}
#chat-attach svg, #chat-send svg{width:16px; height:16px;}
.chat-note{font-size:11.5px; color:var(--muted); text-align:center; padding:0 14px 12px;}
.chat-privacy{font-size:11px; color:var(--muted); text-align:center; padding:0 14px 14px; opacity:0.8; line-height:1.45;}

/* ---- ABOUT ---- */
.about-grid{display:grid; grid-template-columns:1fr 1fr; gap:64px;}
.about-grid p{color:var(--muted); margin-bottom:16px; font-size:16.5px; font-weight:300;}
.about-aside{color:var(--muted); font-size:16.5px;}
.col-header{font-size:clamp(24px, 2.6vw, 30px); font-weight:700; margin-bottom:22px; line-height:1.25;}
.stack-groups{display:flex; flex-direction:column; gap:20px;}
.stack-group .label{font-size:12px; font-weight:600; color:var(--accent); text-transform:uppercase; letter-spacing:0.12em; margin-bottom:10px; display:block;}
.chips{display:flex; flex-wrap:wrap; gap:8px;}
.chip{font-size:13.5px; font-weight:500; padding:5px 12px; background:transparent; border:1px solid var(--line); border-radius:var(--radius-sm); color:var(--text);}

/* ---- EXPERIENCE ---- */
#experience{border-top:1px solid var(--line); background:var(--panel);}
.tl-item{display:grid; grid-template-columns:190px 1fr; gap:32px; padding:28px 0; border-top:1px solid var(--line);}
.tl-item:first-child{border-top:none;}
.tl-when{font-size:14px; font-weight:600; color:var(--text); padding-top:3px;}
.tl-locs{margin-top:6px; display:flex; flex-wrap:wrap; gap:4px 12px;}
.tl-loc{display:flex; align-items:center; gap:6px; color:var(--muted); font-size:12.5px; font-weight:400; white-space:nowrap;}
.tl-loc .fi{width:15px; height:11px;}
.tl-suffix{color:var(--muted); font-size:12px; margin-top:4px; font-style:italic;}
.tl-heading{display:flex; align-items:center; gap:14px; margin-bottom:12px;}
.tl-logo{width:52px; height:52px; flex-shrink:0; display:flex; align-items:center; justify-content:center;}
.tl-logo img{max-width:100%; max-height:100%; object-fit:contain; display:block;}
.tl-logo.chip{background:#fff; border-radius:8px; padding:6px; border:1px solid var(--line);}
.tl-logo.mono{border:1px solid var(--accent-soft-border); background:var(--accent-soft); color:var(--accent); border-radius:8px; font-weight:700; font-size:20px;}
.tl-body h3{font-size:19px; font-weight:700; margin-bottom:2px;}
.tl-body .company{font-size:14px; color:var(--accent); font-weight:600; display:block;}
.tl-body ul{list-style:none; display:flex; flex-direction:column; gap:8px;}
.tl-body li{color:var(--muted); font-size:15px; font-weight:300; padding-left:20px; position:relative;}
.tl-body li::before{content:""; position:absolute; left:2px; top:10px; width:6px; height:6px; border-radius:50%; background:var(--accent);}
.tl-tags{display:flex; gap:6px; flex-wrap:wrap; margin-top:14px;}
.tl-tags span{font-size:12px; font-weight:500; color:var(--accent); background:var(--accent-soft); border:1px solid var(--accent-soft-border); padding:2px 9px; border-radius:var(--radius-sm);}
.tl-detail{display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-size:13.5px; font-weight:600; color:var(--accent); background:none; border:none; padding:0; cursor:pointer; font-family:inherit;}
.tl-detail:hover{text-decoration:underline;}
.tl-detail svg{width:13px; height:13px;}

.exp-tabbox{display:flex; gap:28px; border-bottom:1px solid var(--line); margin-bottom:8px;}
.exp-tabbtn{
  padding:10px 0 12px; font-size:15px; font-weight:600; cursor:pointer; transition:color .2s, border-color .2s;
  border:none; border-bottom:2px solid transparent; margin-bottom:-1px; background:none; color:var(--muted); font-family:inherit;
}
.exp-tabbtn.active{color:var(--text); border-bottom-color:var(--accent);}
.exp-tabbtn:not(.active):hover{color:var(--text);}
.exp-panel{display:none;}
.exp-panel.active{display:block;}

/* ---- PORTFOLIO ---- */
#portfolio{border-top:1px solid var(--line);}
.proj-grid{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
.proj-card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-lg); padding:26px; transition:border-color .15s; display:flex; gap:22px; align-items:center;}
.proj-card:hover{border-color:var(--accent-soft-border);}
.proj-card .tag{font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:0.1em;}
.proj-card h3{font-size:18px; font-weight:700; margin:8px 0 6px; line-height:1.3;}
.proj-card p{color:var(--muted); font-size:14.5px; font-weight:300;}
.impact-visual{flex-shrink:0; width:80px; height:80px; position:relative; display:flex; align-items:center; justify-content:center;}
.impact-visual svg{width:80px; height:80px; transform:rotate(-90deg); display:block;}
.impact-visual .ring-num{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:18px; font-weight:700; color:var(--accent); line-height:1;}
.impact-kpi{flex-shrink:0; width:88px; text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center;}
.impact-kpi .kpi-num{font-size:24px; font-weight:700; color:var(--accent); line-height:1.1; white-space:nowrap;}
.impact-kpi .kpi-unit{font-size:12px; color:var(--muted); margin-top:3px; white-space:nowrap;}

/* ---- ACHIEVEMENTS ---- */
#achievements{border-top:1px solid var(--line); background:var(--panel);}
.ach-item{display:grid; grid-template-columns:160px 1fr; gap:32px; padding:18px 0; border-top:1px solid var(--line);}
.ach-item:first-child{border-top:none;}
.ach-when{font-size:14px; font-weight:600; color:var(--accent);}
.ach-item p{font-size:15.5px; color:var(--text); font-weight:300;}

/* ---- CONTACT ---- */
#contact{border-top:1px solid var(--line); text-align:center; padding:112px 0;}
#contact h2{font-size:clamp(30px, 4vw, 48px); font-weight:700; margin-bottom:10px;}
#contact p{color:var(--muted); font-size:17px; font-weight:300; margin-bottom:34px;}
.contact-icons{display:flex; gap:14px; justify-content:center;}
.contact-icon{
  width:56px; height:56px; border-radius:var(--radius-md); background:transparent; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--text); transition:all .15s; text-decoration:none;
}
.contact-icon:hover{background:var(--accent); border-color:var(--accent); color:var(--accent-ink); transform:translateY(-3px); box-shadow:0 0 24px var(--accent-glow);}
.contact-icon svg{width:22px; height:22px;}

footer{padding:28px 0; text-align:center; color:var(--muted); font-size:13.5px; font-weight:300; border-top:1px solid var(--line);}

@media (max-width:960px){
  .hero-inner{grid-template-columns:1fr; gap:40px;}
  .hero-meta{flex-direction:row; flex-wrap:wrap; gap:18px 36px;}
  .hero-waves{width:90%; height:55%; opacity:calc(var(--wave-opacity) * 0.5);}
}

@media (max-width:820px){
  .wrap{padding:0 20px;}
  .about-grid, .proj-grid, .ask-grid{grid-template-columns:1fr;}
  .tl-item, .ach-item{grid-template-columns:1fr; gap:10px;}
  section{padding:64px 0;}
  .hero{padding-top:88px; min-height:0;}
  .hero-kpis{grid-template-columns:1fr 1fr; margin-top:48px;}
  .kpi{padding:20px 16px 22px 0;}
  .kpi + .kpi{padding-left:0; border-left:none;}
  .kpi:nth-child(even){padding-left:16px; border-left:1px solid var(--line);}
  .kpi:nth-child(n+3){border-top:1px solid var(--line);}
  .kpi .num{font-size:32px;}
  .btn{min-width:0; flex:1;}
  /* Ask AI / CV / language switcher move into the hamburger menu below. */
  .nav-cta, .btn-cv, .lang-dropdown{display:none;}
  .nav-actions{gap:10px;}

  .nav-toggle-btn{display:inline-flex;}
  .nav-primary{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0; margin-left:0;
    background:var(--panel); border-bottom:1px solid var(--line); box-shadow:var(--shadow);
    padding:4px 20px 12px; max-height:calc(100vh - 65px); overflow-y:auto;
  }
  .nav-primary.open{display:flex;}
  .nav-link{
    text-align:left; padding:14px 0; border-bottom:1px solid var(--line);
    background:none; border-left:none; border-right:none; border-top:none; width:100%;
    font-size:15px; font-family:inherit; cursor:pointer;
  }
  .nav-primary-extra{display:flex; flex-direction:column;}
  .nav-link-cta{color:var(--accent); font-weight:700;}
  .nav-primary-langs{display:flex; gap:8px; padding:14px 0;}
  .nav-primary-langs .nav-link{
    border:1px solid var(--line); border-radius:var(--radius-sm); padding:8px 12px;
    display:inline-flex; align-items:center; gap:6px; width:auto; flex:1; justify-content:center;
  }
  .nav-primary-langs .nav-link .fi{width:16px; height:12px;}
}
