/* [explore4] Nav drop-downs (no JS: <details name>), grouped phone Sections menu, front-page category chips, and the
   pieces used by lib/explore4.js hubs and sub-pages. Loaded from the nav on every page. Remove the file to undo the styles. */

/* ---------- desktop / tablet main row (>=821px) ---------- */
.n4-row .wrap{overflow:visible!important;flex-wrap:nowrap!important;justify-content:center;align-items:center;gap:2px 4px}
.n4-row a,.n4-dd>summary{font-size:14px;font-weight:600;padding:6px 10px;border-radius:4px;color:#333;white-space:nowrap}
.n4-dd{position:relative}
.n4-dd>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:5px;user-select:none}
.n4-dd>summary::-webkit-details-marker{display:none}
.n4-dd>summary::marker{content:""}
.n4-car{width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);opacity:.7;transition:transform .15s}
.n4-dd[open]>summary .n4-car{transform:rotate(-135deg) translateY(-1px)}
.n4-dd>summary:hover,.n4-dd[open]>summary{background:#eef1f5}
.n4-dd>summary.active{background:var(--ink);color:#fff}
.n4-dd>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.n4-panel{position:absolute;z-index:80;top:calc(100% + 6px);left:50%;transform:translateX(-50%);min-width:260px;max-width:min(340px,92vw);background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 34px rgba(15,23,42,.18);padding:6px;display:grid;gap:2px;text-align:left}
.n4-panel a{display:flex!important;align-items:flex-start;gap:10px;padding:8px 10px!important;border-radius:7px;color:var(--ink)!important;font-weight:600;white-space:normal!important;min-height:0!important;justify-content:flex-start!important;font-size:14px!important;line-height:1.3;background:none}
.n4-panel a:hover,.n4-panel a.n4-on{background:#f1f4f8!important;color:var(--ink)!important;text-decoration:none}
.n4-panel .n4-ic{font-size:18px;line-height:1;width:22px;text-align:center;flex:0 0 22px}
.n4-panel .n4-t{display:flex;flex-direction:column}
.n4-panel em{font-style:normal;font-weight:400;font-size:12.5px;color:var(--muted)}
.n4-panel .n4-all{border-top:1px solid var(--line);margin-top:4px;padding-top:9px!important;color:var(--accent)!important;font-size:13px!important}
.n4-row .nav-members{margin-left:10px}
@media (max-width:1100px) and (min-width:821px){.n4-row a,.n4-dd>summary{font-size:13px;padding:5px 7px}}
@media (min-width:821px){.n4-dd:first-of-type .n4-panel{left:0;transform:none}.n4-dd:last-of-type .n4-panel{left:auto;right:0;transform:none}}

/* ---------- front-page category chips ---------- */
.n4-chips .wrap{flex-wrap:nowrap!important;overflow-x:auto!important;justify-content:flex-start;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.n4-chips .wrap::-webkit-scrollbar{display:none}
.n4-chips a{flex:0 0 auto}
@media (min-width:1141px){.n4-chips .wrap{justify-content:center}}

/* ---------- phone / small tablet Sections menu (<=820px) ---------- */
@media (max-width:820px){
  .n4-mob .nm-body{padding:0 12px 10px}
  .n4-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 8px}
  .n4-quick a{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:8px;font-size:14px;font-weight:700;color:var(--ink);background:#fff;text-align:center;line-height:1.15;padding:2px 4px}
  .n4-quick a.active{background:var(--ink);color:#fff;border-color:var(--ink)}
  .n4-quick a.nav-breaking{color:#c4161c}
  .n4-quick a.nav-breaking.active{background:#c4161c;color:#fff}
  .n4-g{border:1px solid var(--line);border-radius:10px;background:#fff;margin:0 0 6px;overflow:hidden}
  .n4-g>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;font-size:16px;font-weight:700;color:var(--ink);cursor:pointer}
  .n4-g>summary::-webkit-details-marker{display:none}
  .n4-g>summary::marker{content:""}
  .n4-g>summary::after{content:"";margin-left:8px;width:8px;height:8px;border-right:2px solid #8a94a3;border-bottom:2px solid #8a94a3;transform:rotate(45deg);transition:transform .15s}
  .n4-g[open]>summary::after{transform:rotate(-135deg)}
  .n4-g.n4-cur>summary{color:var(--accent)}
  .n4-g .n4-ic{font-size:20px;width:24px;text-align:center}
  .n4-n{margin-left:auto;font-size:12px;font-weight:700;color:var(--muted);background:#f1f4f8;border-radius:999px;padding:2px 8px}
  .n4-g .n4-panel{position:static;transform:none;box-shadow:none;border:0;border-top:1px solid var(--line);border-radius:0;min-width:0;max-width:none;padding:6px;grid-template-columns:1fr 1fr;gap:4px}
  .n4-g .n4-panel a{min-height:44px!important;align-items:center;border:1px solid #eef0f3;font-size:14px!important;padding:6px 8px!important}
  .n4-g .n4-panel .n4-all{grid-column:1/-1;border:0;border-top:1px solid var(--line);margin:2px 0 0;justify-content:center!important}
  .n4-chips{border-top:1px solid var(--line)}
  .n4-chips a{font-size:13px!important;min-height:36px!important;padding:3px 9px!important}
  /* the floating Radar button sits over the menu chips: hide it while the Sections menu is open (the menu has its own Radar tile) */
  body:has(.nav-mob[open]) .rlaunch{display:none!important}
}
@media (max-width:380px){.n4-quick{grid-template-columns:repeat(2,1fr)}.n4-g .n4-panel{grid-template-columns:1fr}}

/* ---------- hubs and sub-pages ---------- */
.e4-more{margin:.6rem 0 1.4rem}
.e4-sibs{margin:.2rem 0 1rem}
.e4-sibs a.e4-on{background:var(--ink);color:#fff;border-color:var(--ink)}
.e4-groups{margin-top:.6rem}
.e4-xg{margin:0 0 1.2rem}
.e4-xg h2 a{color:inherit}
.e4-cz-mini{margin:1rem 0}
.e4-cz-mini .e4-more{margin:.6rem 0 0}
.e4-av-a{margin:1rem 0}
.e4-av-map{margin:0 0 1rem}
.e4-av-map iframe{width:100%;min-height:360px;border:0;border-radius:10px}
.e4-hint{margin:.4rem 0 .6rem;color:var(--muted)}
/* ranked lists (breweries, pizza, espresso martinis) */
.e4-rank{list-style:none;margin:.6rem 0 1.4rem;padding:0;display:grid;gap:8px}
.e4-rank li{margin:0}
.e4-rank a{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-decoration:none;min-height:56px}
.e4-rank a:hover{border-color:#b9c2cf;box-shadow:0 4px 14px rgba(15,23,42,.08)}
.e4-rk{font:800 18px/1 Georgia,serif;color:var(--accent2);min-width:34px}
.e4-rb{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.e4-rb b{font-size:16px}
.e4-rb .meta{font-size:13px}
.e4-why{font-size:13.5px;color:#3d4652;line-height:1.4}
.e4-go{font-size:26px;color:#9aa4b2;line-height:1}
.e4-th{width:72px;height:54px;object-fit:cover;border-radius:6px;flex:0 0 72px}
.e4-detail{margin:0 0 1rem}
.e4-detail .brew{border:0;padding:0}
.e4-pn{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:1rem 0;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;font-weight:600}
.e4-pn a{min-height:44px;display:inline-flex;align-items:center}
/* tap-to-open topics */
.e4-fold{border:1px solid var(--line);border-radius:10px;background:#fff;margin:0 0 8px}
.e4-fold>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:6px 14px;font-weight:700;font-size:16px}
.e4-fold>summary::-webkit-details-marker{display:none}
.e4-fold>summary::marker{content:""}
.e4-fold>summary::after{content:"+";font-size:22px;font-weight:400;color:var(--muted)}
.e4-fold[open]>summary::after{content:"\2212"}
.e4-fold-b{padding:0 14px 12px}
/* privacy contents */
.e4-toc{margin:.6rem 0 1.4rem;border:1px solid var(--line);border-radius:10px;background:#fff;padding:4px 14px}
.e4-toc summary{font-weight:700;min-height:44px;display:flex;align-items:center;cursor:pointer}
.e4-toc ol{margin:0 0 10px;padding-left:1.3em;columns:2;column-gap:2rem;font-size:14.5px}
.e4-toc li{margin:0 0 4px;break-inside:avoid}
@media (max-width:640px){.e4-toc ol{columns:1}}
/* front page on phones: story cards with category art become compact rows */
@media (max-width:640px){
  :is(.home-latest,.lead-more) .card:has(>.card-img.is-illus){display:grid;grid-template-columns:88px 1fr;gap:0 12px;align-items:start}
  :is(.home-latest,.lead-more) .card>.card-img.is-illus{width:88px;height:88px;aspect-ratio:auto;border-radius:8px;overflow:hidden;margin:12px 0 0 12px}
  :is(.home-latest,.lead-more) .card>.card-img.is-illus img{width:100%;height:100%;object-fit:cover}
  :is(.home-latest,.lead-more) .card:has(>.card-img.is-illus) .dek{display:none}
}
/* Briefings (/briefings, /briefings/<slug>): the floating Radar button covered the AI-disclosure box; hide it there (the Sections menu keeps its Radar tile) */
@media (max-width:768px){body:has(.bf-page,.bf-one-page) .rlaunch{display:none!important}}
/* Front page on phones: the two story lists show their first 4 cards (the rest are one tap away in Latest / sections) */
@media (max-width:640px){.lead-more>article.card:nth-of-type(n+5),.home-latest>article.card:nth-of-type(n+5){display:none!important}}
