/* LawAI premium navigation: shared header / four-page routing. */
.lawai-premium-header,.lawai-premium-header *{box-sizing:border-box}
header.lawai-premium-header{
 position:sticky!important;top:0;z-index:1050;isolation:isolate;
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 width:100%;min-height:67px;margin:0!important;padding:4px clamp(18px,2vw,34px)!important;
 border:0!important;border-bottom:1px solid rgba(149,132,110,.14)!important;
 background:linear-gradient(180deg,#faf9f6 0%,#f5f3ee 55%,#f9f8f5 100%)!important;
 box-shadow:0 4px 18px rgba(51,56,56,.045)!important;
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
 font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif
}
header.lawai-premium-header::before{
 content:"";position:absolute;left:clamp(205px,20vw,355px);top:0;height:100%;width:min(48vw,760px);
 background:url("/assets/lawai-premium-nav-ribbon.svg") left center/100% 100% no-repeat;
 pointer-events:none;opacity:.78;z-index:-1
}
header.lawai-premium-header::after{
 content:"";position:absolute;inset:0;
 background:radial-gradient(ellipse 43% 130% at 85% 5%,rgba(191,171,142,.07),transparent 90%);
 pointer-events:none;z-index:-1
}
header.lawai-premium-header .logo-container{
 position:relative;z-index:2;flex:0 0 auto;display:flex!important;align-items:center!important;
 margin:0!important;padding:0!important;transform:none!important;transform-origin:left center!important;text-decoration:none
}
header.lawai-premium-header .logo-container img{
 display:block;width:auto!important;height:53px!important;max-height:53px!important;
 max-width:min(230px,34vw)!important;margin:0!important;object-fit:contain
}
header.lawai-premium-header .nav-cluster{
 position:relative;z-index:2;display:flex!important;flex:0 0 auto;
 flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-end!important;
 gap:clamp(8px,1vw,16px)!important;margin:0 0 0 auto!important;padding:0!important;
 max-width:none!important;min-height:0!important;width:auto!important
}
header.lawai-premium-header .nav-cluster .lawai-nav-link{
 position:relative;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto;gap:8px!important;width:auto!important;min-width:0;min-height:43px;
 padding:10px clamp(13px,1.3vw,21px)!important;margin:0!important;
 border:1px solid rgba(188,169,140,.21)!important;border-radius:999px!important;
 background:linear-gradient(180deg,#fff 0%,#f7f7f5 100%)!important;color:#164752!important;
 box-shadow:0 5px 12px rgba(33,51,51,.14),inset 0 1px 0 rgba(255,255,255,.94)!important;
 font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;
 font-size:clamp(14.3px,1.122vw,17.6px)!important;font-weight:700!important;line-height:1.3!important;
 letter-spacing:.012em;text-decoration:none!important;white-space:nowrap;overflow:visible!important;
 cursor:pointer;-webkit-text-fill-color:currentColor!important;
 transition:background .24s ease,box-shadow .24s ease,color .24s ease,transform .24s ease!important
}
header.lawai-premium-header .nav-cluster .lawai-nav-link::before,
header.lawai-premium-header .nav-cluster .lawai-nav-link::after{display:none!important}
header.lawai-premium-header .nav-cluster .lawai-nav-link span{
 display:inline!important;visibility:visible!important;color:inherit!important;
 font:inherit!important;-webkit-text-fill-color:currentColor!important
}
header.lawai-premium-header .nav-cluster .lawai-nav-link .lawai-premium-nav-icon{
 display:block!important;visibility:visible!important;width:21px;height:21px;flex:0 0 21px;
 color:inherit!important;fill:none!important;stroke:currentColor!important
}
header.lawai-premium-header .nav-cluster .lawai-nav-link[aria-current="page"],
header.lawai-premium-header .nav-cluster .lawai-nav-link:hover,
header.lawai-premium-header .nav-cluster .lawai-nav-link:focus-visible,
header.lawai-premium-header .nav-cluster .lawai-nav-link:active{
 border-color:rgba(198,162,91,.85)!important;
 background:linear-gradient(140deg,#0c555c 0%,#073d49 100%)!important;color:#fff!important;
 box-shadow:0 5px 15px rgba(5,54,63,.25),0 0 0 1px rgba(196,159,92,.18),inset 0 1px 0 rgba(255,255,255,.16)!important;
 transform:translateY(-1px)
}
/* Hovered item takes visual priority, current page returns after hover ends. */
@media (hover:hover) and (pointer:fine){
 header.lawai-premium-header .nav-cluster:hover .lawai-nav-link[aria-current="page"]:not(:hover):not(:focus-visible){
  border-color:rgba(188,169,140,.21)!important;background:linear-gradient(180deg,#fff,#f7f7f5)!important;
  color:#164752!important;box-shadow:0 5px 12px rgba(33,51,51,.14),inset 0 1px 0 rgba(255,255,255,.94)!important;
  transform:none
 }
}
header.lawai-premium-header .nav-cluster .lawai-nav-link:focus-visible{
 outline:2px solid #c59c53!important;outline-offset:3px
}
.lawai-premium-mobile{display:none}
.lawai-premium-drawer{background:#fbfaf7!important;box-shadow:-14px 0 34px rgba(26,48,49,.16)!important}
.lawai-premium-drawer .lawai-mh-header{background:#f5f1e9!important;border-bottom:1px solid rgba(176,146,99,.22)!important}
.lawai-premium-drawer .lawai-mh-title{color:#183f46!important}
.lawai-premium-drawer .lawai-mh-links a{
 background:#fff!important;border:1px solid rgba(165,144,111,.22)!important;
 color:#164752!important;border-radius:14px!important
}
.lawai-premium-drawer .lawai-mh-links a:hover,
.lawai-premium-drawer .lawai-mh-links a:focus-visible,
.lawai-premium-drawer .lawai-mh-links a[aria-current="page"]{
 background:#0c4d54!important;border-color:#bda06a!important;color:#fff!important
}
/* Desktop refinement: reduce navbar height about 0.3 cm (11px).
   After header shrink, offset logo 4px so its visual position shifts down ~0.2cm.
   Preserve logo size/aspect ratio and mobile header behavior. */
@media (min-width:769px){
 header.lawai-premium-header .logo-container{
  transform:translateY(4px)!important;
 }
}
@media (min-width:769px) and (max-width:1040px){
 header.lawai-premium-header{padding-inline:15px!important}
 header.lawai-premium-header .logo-container img{height:48px!important;max-height:48px!important;max-width:195px!important}
 header.lawai-premium-header .nav-cluster{gap:7px!important}
 header.lawai-premium-header .nav-cluster .lawai-nav-link{gap:6px!important;padding:9px 11px!important;font-size:13.75px!important}
 header.lawai-premium-header .nav-cluster .lawai-nav-link .lawai-premium-nav-icon{width:18px;height:18px;flex-basis:18px}
}
@media (max-width:768px){
 header.lawai-premium-header{min-height:72px;padding:7px 15px!important}
 header.lawai-premium-header::before{left:175px;width:45vw;opacity:.46}
 header.lawai-premium-header .logo-container img{
  height:54px!important;max-height:54px!important;max-width:min(196px,62vw)!important
 }
 header.lawai-premium-header .nav-cluster,
 header.brand-header.lawai-premium-header nav.nav-cluster,
 header.brand-header.lawai-premium-header .nav-cluster *{
  display:none!important;visibility:hidden!important;pointer-events:none!important
 }
 header.brand-header.lawai-premium-header .lawai-mh-btn{
  display:grid!important;position:relative!important;inset:auto!important;
  margin-left:auto!important;transform:none!important;width:43px!important;height:43px!important;
  flex:0 0 43px;border:1px solid rgba(176,148,101,.24)!important;
  border-radius:14px!important;background:rgba(255,255,255,.83)!important;
  box-shadow:0 3px 10px rgba(40,60,62,.10)!important
 }
 .lawai-premium-mobile{display:block;position:relative;z-index:10;margin-left:auto}
 .lawai-premium-mobile>summary{
  display:grid;place-items:center;width:43px;height:43px;
  border:1px solid rgba(176,148,101,.26);border-radius:14px;
  background:rgba(255,255,255,.92);color:#164752;
  box-shadow:0 3px 10px rgba(40,60,62,.12);cursor:pointer;list-style:none
 }
 .lawai-premium-mobile>summary::-webkit-details-marker{display:none}
 .lawai-premium-mobile>summary:focus-visible{outline:2px solid #c49b56;outline-offset:3px}
 .lawai-premium-menu-lines{display:flex;flex-direction:column;gap:5px}
 .lawai-premium-menu-lines>span{
  display:block;width:20px;height:2px;border-radius:2px;background:#194c54
 }
 .lawai-premium-mobile nav{
  position:absolute;z-index:20;right:0;top:calc(100% + 10px);
  display:flex;flex-direction:column;gap:6px;
  width:min(286px,calc(100vw - 30px));padding:12px;
  border:1px solid rgba(181,157,116,.31);border-radius:19px;
  background:#fbfaf7;box-shadow:0 16px 33px rgba(17,45,50,.20)
 }
 .lawai-premium-mobile nav a{
  display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 13px;
  border-radius:11px;color:#164752;background:#fff;
  border:1px solid rgba(171,148,109,.12);text-decoration:none;
  font:700 15px/1.35 "Noto Sans TC",sans-serif;-webkit-text-fill-color:currentColor
 }
 .lawai-premium-mobile nav .lawai-premium-nav-icon{width:20px;height:20px;flex:0 0 20px}
 .lawai-premium-mobile nav a:hover,
 .lawai-premium-mobile nav a:focus-visible,
 .lawai-premium-mobile nav a[aria-current="page"]{
  color:#fff;background:#0c4d54;border-color:#bda06a
 }
}
.lawai-article-breadcrumb{
 position:relative;z-index:1;padding:9px clamp(18px,3vw,40px);
 color:#54636c;font:500 13px/1.65 "Noto Sans TC",sans-serif;
 background:#fbfaf7;border-bottom:1px solid rgba(186,157,112,.12)
}
.lawai-article-breadcrumb a{color:#245962;text-decoration:none}
.lawai-article-breadcrumb a:hover{text-decoration:underline}
@media (prefers-reduced-motion:reduce){
 header.lawai-premium-header .lawai-nav-link{transition:none!important}
}
