/* ==========================================================================
   Brygga Sportsbar – tema 2.0
   Farger fra Tilpass → Farger styrer --accent (messing) og --bg (kveld).
   Signaturgrep: lyspære-hjørnene fra skiltet (.marquee) – brukes bare i
   toppbildet og rundt «I kveld»-tavla.
   ========================================================================== */

:root {
	--bg: #1C1C1C;            /* Kveld */
	--accent: #C0B8A3;        /* Messing */
	--surface: #252423;       /* Brygge */
	--surface-2: #2E2D2B;
	--bulb: #FFF4D6;          /* Lyspære */
	--text: #F4F2ED;          /* Kritt */
	--text-2: #D3CFC6;
	--muted: #A8A397;         /* Tåke */
	--line: rgba(244, 242, 237, .1);
	--line-strong: rgba(244, 242, 237, .22);
	--on-accent: #1C1C1C;

	--r-lg: 18px;
	--r-md: 14px;
	--r-sm: 10px;

	--gutter: clamp(20px, 4vw, 48px);
	--wrap: min(1240px, 100% - 2 * var(--gutter));
	--header-h: 88px;
	--admin-offset: 0px;   /* WordPress-adminlinjen (settes av JS) */
	--sticky-top: calc(var(--admin-offset) + var(--header-h)); /* Under headeren når den vises */

	--font-head: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
	--font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 72px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img, svg, iframe, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 400;
	line-height: .95;
	letter-spacing: .005em;
	margin: 0 0 .4em;
	color: var(--text);
	text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.6rem, 5vw, 4.25rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	padding: 10px 16px; border-radius: var(--r-sm);
	background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Knapper og lenker ---------- */
.btn,
.wp-block-button__link,
.entry-content .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--accent);
	border-radius: var(--r-sm);
	background: var(--accent);
	color: var(--on-accent);
	font: 600 15px/1.2 var(--font-body);
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover,
.wp-block-button__link:hover,
.entry-content .wp-element-button:hover { background: var(--bulb); border-color: var(--bulb); color: var(--on-accent); }
.btn .icon { flex: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--large { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
	color: var(--accent);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: color .2s;
}
.text-link:hover { color: var(--text); }

/* ---------- Lyspærer (signaturgrep) ---------- */
.bulb {
	display: inline-block;
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #5F5B53;
}
.is-open .bulb,
.bulb.is-lit {
	background: var(--bulb);
	box-shadow: 0 0 0 3px rgba(255, 244, 214, .12), 0 0 14px 2px rgba(255, 210, 130, .55);
}

.marquee {
	--t: 9px;
	--gap: 13px;
	position: absolute;
	width: clamp(84px, 12vw, 168px);
	height: clamp(56px, 7vw, 96px);
	pointer-events: none;
	filter: drop-shadow(0 0 6px rgba(255, 220, 150, .35));
}
.marquee::before,
.marquee::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 2px;
	background-color: var(--accent);
}
.marquee::before {
	width: 100%;
	height: var(--t);
	background-image: radial-gradient(circle, var(--bulb) 0 2.2px, transparent 2.9px);
	background-size: var(--gap) 100%;
	background-repeat: repeat-x;
}
.marquee::after {
	width: var(--t);
	height: 100%;
	background-image: radial-gradient(circle, var(--bulb) 0 2.2px, transparent 2.9px);
	background-size: 100% var(--gap);
	background-repeat: repeat-y;
}
.marquee--tl { left: 0; top: 0; }
.marquee--br { right: 0; bottom: 0; transform: rotate(180deg); }
.marquee--small { --t: 7px; --gap: 11px; width: 72px; height: 44px; }

/* Ett lysøyeblikk: skiltet tennes når siden lastes. */
@media (prefers-reduced-motion: no-preference) {
	.hero .marquee { animation: brygga-sign-on 1.4s steps(1, end) both; }
	.hero .marquee--br { animation-delay: .35s; }
}
@keyframes brygga-sign-on {
	0%   { opacity: 0; }
	18%  { opacity: 1; }
	26%  { opacity: .2; }
	34%  { opacity: 1; }
	42%  { opacity: .45; }
	52%, 100% { opacity: 1; }
}

/* ---------- «Åpent nå»-merke ---------- */
.open-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: rgba(28, 28, 28, .55);
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: border-color .2s;
}
.open-badge:hover { border-color: var(--accent); }
.open-badge.is-closed .open-badge__text { color: var(--text-2); }
.open-badge__short { display: none; }
.open-badge--large {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 22px;
	font-weight: 600;
	white-space: normal;
	gap: 12px;
}
.open-badge--large .bulb { width: 12px; height: 12px; }

/* ---------- Header ---------- */
/* Uten JavaScript: plass til adminlinjen når man er innlogget. JS overstyrer dette live. */
.admin-bar { --admin-offset: 32px; --sticky-top: calc(32px + var(--header-h)); }
@media (max-width: 782px) { .admin-bar { --admin-offset: 46px; --sticky-top: calc(46px + var(--header-h)); } }

.site-header {
	position: fixed;
	top: var(--admin-offset);
	left: 0;
	right: 0;
	z-index: 100;
	padding-top: env(safe-area-inset-top, 0px);
	border-bottom: 1px solid transparent;
	background: linear-gradient(180deg, rgba(20, 20, 20, .7), rgba(20, 20, 20, 0));
	transition: transform .3s ease, background-color .25s, border-color .25s;
	will-change: transform;
}
/* Skjules når man skroller ned, vises igjen når man skroller opp. */
.site-header.is-hidden { transform: translateY(calc(-100% - var(--admin-offset) - 2px)); }
.site-header.is-scrolled,
body.menu-open .site-header {
	background: rgba(28, 28, 28, .94);
	border-bottom-color: var(--line);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.site-header__inner {
	width: var(--wrap);
	height: var(--header-h);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 32px;
}
.brand { display: block; flex: none; line-height: 0; }
.brand__img { width: auto; max-height: 62px; }
.brand__svg { width: 124px; height: auto; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--r-sm);
	font-size: 16px;
	font-weight: 500;
	color: var(--text);
	transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--accent); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px;
	margin: 6px 0 0; padding: 6px; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
	opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }

.site-header__status { flex: none; }

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 16px;
	margin-left: auto;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: rgba(28, 28, 28, .55);
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu-panel {
	position: fixed;
	inset: var(--admin-offset) 0 0;
	z-index: 90;
	overflow-y: auto;
	padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) 40px;
	background: var(--bg);
}
.menu-panel[hidden] { display: none; }
.menu-panel__nav .menu { list-style: none; margin: 0; padding: 0; }
.menu-panel__nav a {
	display: block;
	padding: 6px 0;
	font: 400 clamp(2.6rem, 11vw, 3.6rem)/1.05 var(--font-head);
	color: var(--text);
}
.menu-panel__nav .current-menu-item > a, .menu-panel__nav a:hover { color: var(--accent); }
.menu-panel__nav .sub-menu { list-style: none; padding-left: 16px; }
.menu-panel__nav .sub-menu a { font-size: 1.8rem; }
.menu-panel__info { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.menu-panel__address { margin: 10px 0 20px; color: var(--text-2); }

@media (max-width: 1080px) {
	.primary-nav { display: none; }
	.site-header__status { margin-left: auto; }
	.menu-toggle { display: inline-flex; margin-left: 0; }
}
@media (min-width: 1081px) { .menu-panel { display: none !important; } }
@media (max-width: 560px) {
	:root { --header-h: 80px; }
	.site-header__inner { gap: 12px; }
	.brand__img { max-height: 54px; }
	.brand__svg { width: 104px; }
	.site-header__status .open-badge { padding: 0 16px 0 14px; min-height: 48px; font-size: 15px; gap: 9px; }
	.site-header__status .open-badge__text { display: none; }
	.site-header__status .open-badge__short { display: inline; }
	.menu-toggle { width: 48px; padding: 0; justify-content: center; }
	.menu-toggle__bars { width: 20px; }
	.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* ---------- Toppbilde ---------- */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: min(94vh, 940px);
	padding: calc(var(--header-h) + 48px) 0 clamp(150px, 16vw, 200px);
	background-color: var(--bg);
	background-image: var(--hero-image, none);
	background-size: cover;
	background-position: center 35%;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(28, 28, 28, 0) 45%, var(--bg) 100%),
		linear-gradient(90deg, rgba(28, 28, 28, .86) 0%, rgba(28, 28, 28, .55) 55%, rgba(28, 28, 28, .25) 100%);
}
.hero__inner {
	position: relative;
	width: var(--wrap);
	margin: 0 auto;
	padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
}
.hero__inner > :not(.marquee) { max-width: 960px; }
.hero__title {
	margin: 0;
	font-size: clamp(3.5rem, 8.4vw, 8.4rem);
	line-height: .88;
	text-transform: uppercase;
}
.hero__sub {
	margin: 22px 0 0;
	font-size: clamp(1.05rem, 1.7vw, 1.4rem);
	font-weight: 500;
	color: var(--text-2);
	max-width: 46ch;
}
.rotator { position: relative; display: inline-block; color: var(--accent); font-weight: 600; }
.rotator__word { display: none; white-space: nowrap; }
.rotator__word.is-active { display: inline; }
@media (prefers-reduced-motion: no-preference) {
	.rotator__word.is-active { display: inline-block; animation: brygga-word-in .35s ease-out both; }
	.rotator__word.is-leaving { display: inline; position: absolute; left: 0; top: 0; animation: brygga-word-out .3s ease-in both; }
}
@keyframes brygga-word-in { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes brygga-word-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-.35em); } }
.hero__actions { margin-top: 34px; }

/* ---------- I kveld + åpent nå ---------- */
.tonight {
	position: relative;
	z-index: 2;
	width: var(--wrap);
	margin: calc(clamp(110px, 12vw, 150px) * -1) auto 0;
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.tonight .marquee--small { left: -12px; top: -12px; }
.tonight__board { position: relative; padding: clamp(26px, 3vw, 36px) clamp(22px, 3vw, 40px); }
.tonight__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 10px; }
.tonight__title { margin: 0; font-size: clamp(2.2rem, 3.4vw, 2.9rem); }
.tonight__empty { margin: 12px 0 0; color: var(--text-2); }
.tonight__visit {
	padding: clamp(26px, 3vw, 36px);
	border-left: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tonight__hours { margin: 6px 0 0; color: var(--text-2); font-weight: 500; }
.tonight__address { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.tonight__visit .button-row { margin-top: auto; }

/* Programrader (brukes på forsiden og Program-siden) */
.fixtures { list-style: none; margin: 0; padding: 0; }
.fixture {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 18px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
}
.fixture[hidden] { display: none; }
.fixture__time { line-height: 1; }
.fixture__time time { font: 400 36px/1 var(--font-head); color: var(--accent); letter-spacing: .01em; }
.fixture__day { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fixture__title {
	margin: 2px 0 4px;
	font: 600 18px/1.35 var(--font-body);
	letter-spacing: 0;
	text-wrap: pretty;
}
.fixture__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: var(--muted); }
.fixture__cat { color: var(--text-2); font-weight: 500; }
.fixture__place { display: inline-flex; align-items: center; gap: 6px; }
.fixture__note { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.fixture__details { margin-top: 8px; }
.fixture__details summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--accent);
}
.fixture__details summary::-webkit-details-marker { display: none; }
.fixture__details summary::after {
	content: "";
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s;
}
.fixture__details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.fixture__more { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 18px; margin-top: 12px; color: var(--text-2); font-size: 15px; }
.fixture__more img { width: 100%; border-radius: var(--r-sm); }
.fixture__more:not(:has(img)) { grid-template-columns: 1fr; }
.fixtures--board .fixture:first-child { border-top: 0; }

/* ---------- Seksjoner ---------- */
.section { width: var(--wrap); margin: 0 auto; padding-top: clamp(80px, 10vw, 132px); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section__title { margin: 0; font-size: clamp(2.8rem, 5.2vw, 4.5rem); }
.section__title--small { font-size: clamp(2.2rem, 3.4vw, 2.9rem); }
.section__lead { margin: 12px 0 0; max-width: 54ch; color: var(--text-2); font-size: 18px; }

/* ---------- Aktiviteter (fliser på forsiden) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.activity--tile {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 3 / 4;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--surface);
}
.activity--tile .activity__media { position: absolute; inset: 0; z-index: -1; }
.activity--tile .activity__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.activity--tile .activity__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 20, 20, 0) 30%, rgba(20, 20, 20, .55) 55%, rgba(20, 20, 20, .95) 100%);
}
.activity--tile:hover .activity__media img { transform: scale(1.04); }
.activity--tile .activity__body { padding: 22px; width: 100%; }
.activity--tile .activity__title { margin: 0 0 6px; font-size: clamp(2.2rem, 3vw, 2.8rem); }
.activity--tile .activity__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.activity--tile .activity__desc {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--text-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.activity__prices { list-style: none; margin: 0; padding: 0; }
.activity--tile .activity__prices { font-size: 15px; font-weight: 600; color: var(--accent); }
.activity--tile .activity__btn { position: relative; z-index: 2; margin-top: 14px; }
.activity__status { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Hva skjer ---------- */
.news-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	grid-auto-flow: dense;
	column-gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.story { position: relative; }
.story__title a::after { content: ""; position: absolute; inset: 0; }
.story__title a:hover { color: var(--accent); }
.story__date { font-size: 14px; font-weight: 500; color: var(--muted); }
.story--lead { grid-column: 1; grid-row: 1 / span 20; }
.story--lead .story__media { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.story--lead .story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story--lead:hover .story__media img { transform: scale(1.03); }
.story--lead .story__body { padding-top: 20px; }
.story--lead .story__title { margin: 6px 0 10px; font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.story--lead .story__excerpt { margin: 0; color: var(--text-2); max-width: 60ch; }
.story:not(.story--lead) {
	grid-column: 2;
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}
.story:not(.story--lead):nth-child(2) { border-top: 0; padding-top: 0; }
.story:not(.story--lead):not(:has(.story__media)) { grid-template-columns: 1fr; }
.story:not(.story--lead) .story__media { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.story:not(.story--lead) .story__media img { width: 100%; height: 100%; object-fit: cover; }
.story:not(.story--lead) .story__title { margin: 4px 0 0; font: 600 18px/1.35 var(--font-body); letter-spacing: 0; }
.news__more { margin: 28px 0 0; }

.news-layout--archive { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.news-layout--archive .story:not(.story--lead) { grid-column: auto; display: block; padding: 0; border: 0; }
.news-layout--archive .story .story__media { aspect-ratio: 16 / 10; border-radius: var(--r-lg); margin-bottom: 14px; }

/* ---------- Besøk oss ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.visit__address { display: flex; align-items: center; gap: 10px; margin: 26px 0 8px; font-weight: 600; }
.visit__address .icon { color: var(--accent); }
.visit .button-row { margin-top: 26px; }
.map { border-radius: var(--r-lg); overflow: hidden; line-height: 0; background: var(--surface); transform: translateZ(0); }
.map iframe { width: 100%; height: 480px; border: 0; filter: grayscale(.35) brightness(.86) contrast(1.05); }

.hours-list { margin: 8px 0 0; }
.hours-list__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.hours-list__row dt, .hours-list__row dd { margin: 0; }
.hours-list__row dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-list__row.is-today { color: var(--text); font-weight: 600; }
.hours-list__today {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 12px;
	font-weight: 600;
	vertical-align: 2px;
}
.hours-note { margin: 12px 0 0; font-size: 15px; color: var(--accent); }

/* ---------- Mat og drikke ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(80px, 10vw, 132px); }
.feature__media { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { max-width: 60ch; }
.feature__body .section__title { margin-bottom: 20px; }
.feature__lead { font-size: 19px; font-weight: 500; color: var(--text); }
.feature__body p { color: var(--text-2); }
.feature__cta { margin-top: 28px; }

/* ---------- Bunn ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 15px; color: var(--text-2); }
.site-footer__grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr; gap: 40px; }
.site-footer__title { margin: 0 0 14px; font-size: 26px; color: var(--text); }
.site-footer p { margin: 0 0 8px; }
.site-footer a:not(.text-link):hover { color: var(--accent); }
.site-footer .hours-list__row { padding: 7px 0; font-size: 14px; }
.brand--footer .brand__img { max-height: 64px; }
.brand--footer .brand__svg { width: 128px; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer__bottom {
	width: var(--wrap);
	margin: 56px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 40px;
	font-size: 13px;
	color: var(--muted);
}
.site-footer__copy { max-width: 78ch; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.site-footer__nav .menu { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer__staff { color: var(--text-2); }

/* ---------- Undersider ---------- */
.page-banner {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: min(52vh, 520px);
	padding: calc(var(--header-h) + 56px) 0 48px;
	background-color: var(--bg);
	background-image: var(--banner-image, none);
	background-size: cover;
	background-position: center;
}
.page-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(28, 28, 28, .35) 0%, rgba(28, 28, 28, .55) 50%, var(--bg) 100%),
		linear-gradient(90deg, rgba(28, 28, 28, .7), rgba(28, 28, 28, .2));
}
.page-banner__inner { width: var(--wrap); margin: 0 auto; }
.page-banner__title { margin: 0; font-size: clamp(3.6rem, 9vw, 7.5rem); line-height: .9; text-transform: uppercase; }
.page-banner__sub { margin: 14px 0 0; max-width: 56ch; font-size: 18px; color: var(--text-2); }

.page-wrap { width: var(--wrap); margin: 0 auto; padding: clamp(32px, 4vw, 56px) 0 clamp(80px, 9vw, 120px); }
.page-content--narrow > * { max-width: 760px; }
.page-intro { margin-bottom: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.empty-state { padding: clamp(32px, 5vw, 56px); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.empty-state h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.empty-state p { margin: 0; color: var(--text-2); max-width: 60ch; }
.empty-state a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.empty-state .search-form { margin-top: 20px; }

/* Program */
.filters {
	position: sticky;
	top: var(--sticky-top);
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 calc(var(--gutter) * -1);
	padding: 14px var(--gutter);
	transition: top .3s ease;
	background: rgba(28, 28, 28, .94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.find-field {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--muted);
	min-width: min(280px, 100%);
}
.find-field:focus-within { border-color: var(--accent); }
.find-field input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font: 400 16px var(--font-body);
}
.find-field input::placeholder { color: var(--muted); }
.day-group { margin-top: 44px; max-width: 880px; }
.day-group[hidden] { display: none; }
.day-group__title { margin: 0 0 8px; font-size: clamp(2rem, 3vw, 2.6rem); }
.day-group__title span { margin-left: 10px; font: 500 16px var(--font-body); color: var(--muted); letter-spacing: 0; }
.program__empty { margin-top: 32px; color: var(--text-2); }

/* Aktiviteter-siden */
.chips--nav { margin-bottom: 8px; }
.activity-rows { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: 40px; }
.activity--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.activity--row:nth-child(even) .activity__media { order: 2; }
.activity--row .activity__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.activity--row .activity__media img { width: 100%; height: 100%; object-fit: cover; }
.activity--row .activity__title { margin: 0 0 16px; font-size: clamp(3rem, 5.6vw, 4.6rem); }
.activity--row .activity__desc { color: var(--text-2); max-width: 52ch; }
.activity--row .activity__prices { display: grid; gap: 8px; margin: 22px 0 0; }
.activity--row .activity__prices li { padding-left: 14px; border-left: 3px solid var(--accent); font-size: 18px; font-weight: 600; }
.activity--row .activity__btn { margin-top: 24px; }
.callout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: clamp(64px, 8vw, 104px);
	padding: clamp(28px, 4vw, 44px);
	border-radius: var(--r-md);
	background: var(--surface);
	border: 1px solid var(--line);
}
.callout h2 { margin: 0 0 6px; font-size: clamp(2.2rem, 3.6vw, 3rem); }
.callout p { margin: 0; color: var(--text-2); max-width: 52ch; }

/* Meny */
.food-menu__bar {
	position: sticky;
	top: var(--sticky-top);
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 calc(var(--gutter) * -1);
	padding: 14px var(--gutter);
	transition: top .3s ease;
	background: rgba(28, 28, 28, .94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.menu-group { margin-top: 48px; scroll-margin-top: calc(var(--header-h) + 80px); }
.menu-group__title { margin: 0 0 6px; font-size: clamp(2.4rem, 4vw, 3.2rem); }
.menu-group__desc { color: var(--muted); }
.menu-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.dish { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dish__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dish__name { margin: 0; font: 600 18px/1.35 var(--font-body); letter-spacing: 0; }
.dish__price { flex: none; font: 400 28px/1 var(--font-head); color: var(--accent); }
.dish__desc { margin: 6px 0 0; font-size: 15px; color: var(--text-2); }
.dish__allergens { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.food-menu__note { margin-top: 36px; color: var(--muted); font-size: 15px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__actions { display: grid; gap: 12px; margin: 28px 0 44px; }
.contact-action {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	font-size: 18px;
	font-weight: 600;
	transition: border-color .2s;
	word-break: break-word;
}
.contact-action:hover { border-color: var(--accent); }
.contact-action .icon { flex: none; color: var(--accent); }
.contact-action small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.contact__hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.contact__map { position: sticky; top: calc(var(--sticky-top) + 24px); transition: top .3s ease; }
.contact__map iframe { height: 560px; }

/* Innhold fra blokkeditoren */
.entry-content { max-width: 1240px; }
.entry-content > * + * { margin-top: 0; }
.entry-content p, .entry-content li { color: var(--text-2); }
.entry-content strong { color: var(--text); }
.entry-content a:not(.wp-block-button__link):not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.entry-content h2 { margin-top: .6em; }
.entry-content img { border-radius: var(--r-lg); }
.entry-content .wp-block-image { margin: 0 0 1.5em; }
.entry-content .wp-block-columns { gap: clamp(28px, 5vw, 64px); margin-bottom: 64px; align-items: center; }
.entry-content blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); font-size: 1.15em; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--text); border-color: var(--line-strong); }
.back-link { margin-top: 40px; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form label { flex: 1 1 200px; min-width: 0; }
.search-form .search-field {
	width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--text); font: 400 16px var(--font-body); }
.search-form .search-submit { min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Nettbrett ---------- */
@media (max-width: 1024px) {
	.tonight { grid-template-columns: 1fr; }
	.tonight__visit { border-left: 0; border-top: 1px solid var(--line); }
	.tonight__visit .button-row { margin-top: 12px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.contact { grid-template-columns: 1fr; }
	.contact__map { position: static; }
	.contact__map iframe { height: 420px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
	body { font-size: 16px; }
	.hero { min-height: 86svh; padding-bottom: 150px; background-position: 60% center; }
	.hero::before {
		background:
			linear-gradient(180deg, rgba(28, 28, 28, .35) 0%, rgba(28, 28, 28, .55) 45%, var(--bg) 100%);
	}
	.hero__inner { padding: 32px 22px; }
	.hero__title { font-size: clamp(3rem, 14vw, 4.6rem); }
	.hero__actions .btn { flex: 1 1 auto; }
	.marquee { width: 70px; height: 46px; --t: 7px; --gap: 11px; }
	.hero .marquee--br { display: none; }
	.feature__lead { font-size: 17px; }

	.tonight { margin-top: -110px; width: calc(100% - 24px); }
	.tonight .marquee--small { left: -6px; top: -6px; width: 56px; height: 36px; --t: 6px; --gap: 10px; }
	.fixture { grid-template-columns: 74px minmax(0, 1fr); gap: 14px; }
	.fixture__time time { font-size: 30px; }

	.tiles {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 76%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin: 0 calc(var(--gutter) * -1);
		padding: 0 var(--gutter) 8px;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.tiles::-webkit-scrollbar { display: none; }
	.activity--tile { scroll-snap-align: start; }

	.news-layout { grid-template-columns: 1fr; }
	.story--lead { grid-row: auto; margin-bottom: 20px; }
	.story:not(.story--lead) { grid-column: 1; grid-template-columns: 96px minmax(0, 1fr); }
	.story:not(.story--lead):nth-child(2) { border-top: 1px solid var(--line); padding-top: 18px; }

	.visit, .feature { grid-template-columns: 1fr; }
	.map iframe { height: 360px; }
	.feature__media { aspect-ratio: 4 / 3; }

	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }

	.page-banner { min-height: 0; padding-top: calc(var(--header-h) + 72px); }
	.filters, .food-menu__bar { display: grid; grid-template-columns: minmax(0, 1fr); }
	.filters .chips, .food-menu__bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
	.filters .chips::-webkit-scrollbar, .food-menu__bar .chips::-webkit-scrollbar { display: none; }
	.chips--nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
	.fixture__more { grid-template-columns: 1fr; }

	.activity--row { grid-template-columns: 1fr; }
	.activity--row:nth-child(even) .activity__media { order: 0; }
	.menu-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
