/* Tillegg til LiveEvent-nettsiden (7.11.2026): megameny, tjenestekort, emneknapper. Bygger på variablene i le.css. */
/* Panelet plasseres mot toppfeltet (.le-header er sticky), så det står midt på siden og ikke kuttes i kanten. */
.le-mega { position: static; display: inline-flex; }
.le-mega > details > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.le-mega > details > summary::-webkit-details-marker { display: none; }
.le-mega > details > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.le-mega > details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.le-mega-panel { position: absolute; top: calc(100% - 4px); left: 50%; transform: translateX(-50%); width: min(1080px, 92vw); z-index: 60;
  max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain;
  background: #121216; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 22px; text-align: left; }
.le-mega-panel h3 { font-size: .95rem; margin: 0 0 4px; }
.le-mega-panel h3 a { color: #fff; text-decoration: none; }
.le-mega-panel h3 a:hover, .le-mega-panel li a:hover { color: var(--le-accent, #ff6a1a); }
.le-mega-panel p { font-size: .82rem; opacity: .65; margin: 0 0 6px; line-height: 1.4; }
.le-mega-panel ul { list-style: none; margin: 0; padding: 0; }
.le-mega-panel li a { font-size: .85rem; opacity: .85; text-decoration: none; color: inherit; display: block; padding: 2px 0; }
.le-mega-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
/* Tjenester i mobilmenyen: skal se ut som de andre lenkene, ikke som den runde menyknappen (.le-menu summary i le.css). */
.le-menu-panel details summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; width: auto; height: auto;
  border: 0; border-bottom: 1px solid var(--le-line); border-radius: 0; padding: 14px 4px; color: var(--le-text); font-size: 1.2rem; font-weight: 650; }
.le-menu-panel details summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); opacity: .6; margin-right: 6px; }
.le-menu-panel details[open] summary::after { transform: rotate(-135deg); }
.le-menu-panel details li a { font-size: 1rem; font-weight: 550; border-bottom: 0; }
/* Knappen nederst: tekst og pil på samme linje (lenkestilen over gjorde den til blokk). */
.le-menu-panel .le-btn { display: flex; justify-content: center; align-items: center; gap: 10px; }
.le-menu-panel details ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; }
.le-menu-panel details li a { display: block; padding: 8px 0; opacity: .85; }

.le-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.le-cat-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
  text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease, background .2s ease; min-height: 210px; }
.le-cat-card:hover, .le-cat-card:focus-visible { transform: translateY(-3px); border-color: var(--le-accent, #ff6a1a); background: rgba(255,106,26,.06); }
.le-cat-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
.le-cat-card h2 { font-size: 1.15rem; margin: 4px 0 0; }
.le-cat-card p { opacity: .75; margin: 0; flex: 1; }
.le-cat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,106,26,.12); color: var(--le-accent, #ff6a1a); }
.le-cat-icon svg { width: 24px; height: 24px; }
.le-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.le-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); text-decoration: none; color: inherit; font-size: .9rem; }
.le-chip:hover { border-color: var(--le-accent, #ff6a1a); }

@media (max-width: 1100px) { .le-cat-grid, .le-mega-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .le-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .le-mega { display: none; } }
@media (max-width: 520px) { .le-cat-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .le-cat-card { transition: none; } .le-cat-card:hover { transform: none; } }

/* Mobilmenyen: når toppfeltet er «solid» (etter scrolling) har det backdrop-filter, som gjør det til ramme for position: fixed.
   Da ble menypanelet bare like høyt som toppfeltet. Uten filter mens menyen er åpen fyller panelet skjermen som tiltenkt.
   Samme retting ligger i le.css fra publiser/eventbyra-gig 033d8c79; denne kan fjernes når grenene er slått sammen. */
.le-header:has(.le-menu[open]) { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(9, 9, 11, .98); }
