/* Top bar and the Articles mega-menu. Shared by the home page and every article, so the header is the same everywhere.
   Needs the brand variables (--white, --text, --muted, --yellow, --wrap, --gx, --nav, --f-display, --f-body) from the page. */
.top{position:sticky;top:0;z-index:50;background:var(--white);height:var(--nav)}
nav.main{max-width:var(--wrap);margin-inline:auto;height:100%;display:flex;align-items:center;gap:28px;padding-inline:var(--gx)}
.brand{display:inline-flex;align-items:center;gap:9px;font-family:var(--f-display);font-weight:800;font-size:20px;letter-spacing:-.03em;color:#EC6517;white-space:nowrap}
.brand img{width:32px;height:32px}
.links{display:flex;align-items:center;gap:4px}
.links a,.links button{padding:6px 10px;border-radius:8px;font-size:15px;font-weight:500;line-height:1.5;color:inherit;background:none;border:0;font-family:inherit;cursor:pointer}
.links a:hover,.links button:hover,.menu.open>button{background:#F5F3EF}
nav.main .btn{margin-left:auto}
.mlink{display:none;margin-left:auto;font-size:15px;font-weight:500}
@media (max-width:760px){nav.main{gap:14px}.links{display:none}.mlink{display:inline}nav.main .btn{margin-left:0}}
@media (max-width:480px){.brand span{display:none}}

/* The menu button sits in the link row; its panel hangs off the whole top bar, full width, like a drawer.
   A hover bridge under the button covers the gap between the button and the panel so the pointer can travel down. */
.menu>button{position:relative;display:inline-flex;align-items:center;gap:7px}
.menu>button::before{content:"";position:absolute;left:0;right:0;top:100%;height:18px}
.menu>button::after{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.menu.open>button::after{transform:translateY(1px) rotate(225deg)}
.mega{position:absolute;left:0;right:0;top:100%;display:none;background:var(--white);color:var(--text);border-radius:0 0 36px 36px;
  box-shadow:0 30px 60px -24px rgba(31,31,31,.3);padding:40px 0 48px;border-top:1px solid var(--line,#E9E6E1)}
.menu.open .mega{display:block}
@media (hover:hover){.menu:hover .mega{display:block}}
.mega .wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 300px;gap:32px 28px;align-items:start}
.mega h4{font-family:var(--f-body);font-weight:700;font-size:16px;letter-spacing:0;margin:0 0 16px;color:var(--text)}
.mega ul{list-style:none;margin:0;padding:0;display:grid;gap:13px}
.mega li a{display:block;padding:0;border-radius:0;font-size:15px;font-weight:450;line-height:1.35;color:var(--text);text-wrap:pretty}
.mega li a:hover{background:none;text-decoration:underline;text-underline-offset:3px}
.mega li.all a{color:var(--muted)}
.promo{grid-column:5;display:block;border-radius:24px;overflow:hidden;background:#F7F4F0;padding:0}
.promo:hover{background:#F1EDE7}
.promo .pic{position:relative;height:196px;background:var(--yellow);display:grid;place-items:center;overflow:hidden}
.promo .pic img{width:148px;height:148px;position:relative}
.promo .pic i{position:absolute;display:block;height:26px;border-radius:9999px;background:var(--white)}
.promo .pic i::before,.promo .pic i::after{content:"";position:absolute;bottom:0;border-radius:50%;background:var(--white)}
.promo .pic i::before{left:14px;width:36px;height:36px}
.promo .pic i::after{right:10px;width:26px;height:26px}
.promo .go{display:flex;justify-content:center;align-items:center;gap:8px;padding:14px 16px;font-size:15px;font-weight:500;color:var(--text)}
@media (max-width:1040px){.mega .wrap{grid-template-columns:repeat(2,minmax(0,1fr))}.promo{display:none}}
