/*
Theme Name: OKO
Description: The theme of Oslo kammerorkester. Based on Fineliner by UXBARN.
Author: Morten C. Eike
Author URI: https://oslo-kammerorkester.no
Version: 1.0.0
Update URI: false
License: GPL, ThemeForest License
License URI: http://codex.wordpress.org/GPL, http://themeforest.net/licenses
Text Domain: oko
*/

/* Version: WordPress caches a theme's block patterns against it, so bump it
   if a patterns/ directory is ever added. Assets are cache-busted by
   filemtime.

   Update URI: any value that is not a WordPress.org address opts out of
   WordPress.org updates, which would replace this theme with any theme of
   the same directory name.

   License: the PHP is GPL. The CSS, JavaScript and images from Fineliner
   are under ThemeForest's licence, for use on this one site. */

/* Contents

   Tokens          the colours, typefaces and text size, to re-skin from
   Base            the reset, the box model and grid, text, links, tables,
                   forms and buttons
   Page structure  the frame, header, menus, content, intro, title, footer
   Content         search results and the markup of shortcodes and plugins
   Blocks          the core blocks, the block styles, the content's classes
   Page-specific   rules for one page

   css/gallery-slider.css and css/kalender.css hold the image slider's and
   the Kalender block's rules, each loaded only with what it styles. */


/* ============================================================
   TOKENS

   A new look starts here. A value with no role of its own is written
   where it is used, even when it matches a token.
   ============================================================ */

:root {
	--oko-accent: #b05956;       /* links, the current page, focus, rules */
	--oko-text: #414852;         /* running text: paragraphs, list items */
	--oko-text-content: #666;    /* the content column's base, buttons */
	--oko-heading: #555;         /* headings in the content */
	--oko-menu: #6a6a6a;         /* the header menu and the members' menu */
	--oko-muted: #888;           /* the footer, the intro, form fields, message boxes */
	--oko-line: #cfcfcf;         /* the line under the header, double rules, tables,
	                                buttons, the dotted rule under content links */
	--oko-line-soft: #ebebeb;    /* toggles, accordions, message boxes, the
	                                playlist's rows, the slider's frame */
	--oko-background: #fff;      /* the page, and what covers it */

	/* The font files are in css/fonts.css. */
	--oko-font-text: "Open Sans", sans-serif;
	--oko-font-heading: "Alegreya", sans-serif;

	--oko-text-size: 16px;
}


/* ============================================================
   BASE

   Elements, and the classes WordPress and the theme's scripts print.
   WP-Members' and Contact Form 7's rules are in the Customizer's
   Additional CSS, editable without a deploy.
   ============================================================ */


/* --- Reset --- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
	content: none;
}


/* --- Box model and grid --- */

/* Content-box everywhere, form controls included, so a plugin's boxes are
   the size its own CSS expects. The grid and the menu, written for
   border-box, get it back. */
*,
*:before, *:after {
	box-sizing: content-box;
}

#menu-wrapper *,
.row,
.columns {
	box-sizing: border-box;
	overflow-wrap: break-word;
}

/* The templates' grid: a .columns is full width until 768px, where the
   large-* widths start. A row in a row reaches out over its parent column's
   padding, so the two rows' columns line up. */
.row {
	margin: 0 auto 60px;
}

.row::before,
.row::after {
	content: " ";
	display: table;
}

.row::after {
	clear: both;
}

.row .row {
	margin: 0 -0.9375em 60px;
}

@media only screen and (max-width: 959px) {

	.row {
		margin: 0 auto 58px;
	}

	.row .row {
		margin-bottom: 38px;
	}

}

.columns {
	position: relative;
	float: left;
	width: 100%;
	padding: 0 15px;
}

/* The last of two or more columns floats right, so a row whose widths add
   up to a hair under 100% is flush at both edges. */
.columns + .columns:last-child {
	float: right;
}

@media only screen and (min-width: 768px) {

	.large-6 {
		width: 50%;
	}

	.large-9 {
		width: 75%;
	}

	.columns.large-centered {
		margin-left: auto;
		margin-right: auto;
		float: none;
	}

}


/* --- Text --- */

*:focus {
	outline: none;
}

/* The keyboard's focus ring, on the site only: the editor marks focus
   itself, and #scrollUp sits outside #root-container. Not on a text field,
   which matches :focus-visible on every click and has the accent border
   instead. */
:is(#root-container *, #scrollUp):focus-visible:not(textarea, select, [contenteditable],
		input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"])) {
	outline: 2px solid var(--oko-accent);
	outline-offset: 2px;
}

html,
body {
	height: 100%;
}

body {
	background: var(--oko-background);
	color: #222;
	font-family: var(--oko-font-text);
	font-size: 14px;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

p,
li {
	font-size: var(--oko-text-size);
	color: var(--oko-text);
}

mark {
	background: #fff6c8;
}

strong {
	font-weight: 700;
}

code,
kbd {
	background: #efefef;
	color: #000;
	display: inline-block;
	font-family: Courier, serif;
	padding: 0 6px;
}

pre {
	background: #efefef;
	color: #000;
	font-family: Courier, serif;
	overflow: auto;
	padding: 6px;
}

sub {
	font-size: x-small;
	vertical-align: sub;
}

sup {
	font-size: x-small;
	vertical-align: super;
}

em,
q,
var {
	font-style: italic;
}

h1, h2, h3, h4, h5, h6 {
	text-transform: none;
	letter-spacing: 0.03em;
}

h1 {
	font-size: 3em;
}

h2 {
	font-size: 2.1em;
}

h3 {
	font-size: 1.8em;
}

h4 {
	font-size: 1.5em;
}

h1.uxb-heading,
h2.uxb-heading,
h3.uxb-heading,
h4.uxb-heading,
h5.uxb-heading,
h6.uxb-heading {
	line-height: 1.4;
}

.uxb-heading.h-center {
	text-align: center;
}

::selection {
	background: var(--oko-text);
	color: #fff;
}


/* --- Links --- */

a {
	font-weight: 400;
	text-decoration: underline;
}

/* cursor: a link with no href, such as the mobile menu's generated rows,
   is still something to click. */
a:hover {
	color: var(--oko-accent);
	cursor: pointer;
}

a:active {
	color: var(--oko-accent);
}


/* --- Tables --- */

table {
	border: 1px solid #e7e7e7;
	border-spacing: 0;
	border-collapse: collapse;
	margin-bottom: 30px;
	width: 100%;
}

table th, table td {
	border: 1px solid var(--oko-line);
	padding: 4px;
}

table th {
	background: #eee;
	color: #333;
	font-size: 14px;
	font-weight: bold;
	padding: 3px;
}

table tbody td {
	background: #fff;
}

table tfoot td {
	background: #e5e5e5;
}


/* --- Forms --- */

label {
	color: #4d4d4d;
	cursor: pointer;
	display: block;
	font-weight: 400;
	line-height: 1.5;
}

/* Text fields. appearance and the square corners undo the shaded, rounded
   field iOS draws. */
input:is([type="text"], [type="password"], [type="date"], [type="datetime"],
		[type="datetime-local"], [type="month"], [type="week"], [type="email"],
		[type="number"], [type="search"], [type="tel"], [type="time"],
		[type="url"], [type="color"]),
textarea {
	appearance: none;
	background-color: #fff;
	border: 1px solid #bebebe;
	border-radius: 0;
	box-sizing: border-box;
	color: var(--oko-muted);
	display: block;
	font-family: inherit;
	font-size: 13px;
	height: 2.3125rem;
	margin: 0 0 1rem;
	padding: 0.5rem;
	width: 100%;
	transition: border-color 0.45s ease-in-out;
}

input:is([type="text"], [type="password"], [type="date"], [type="datetime"],
		[type="datetime-local"], [type="month"], [type="week"], [type="email"],
		[type="number"], [type="search"], [type="tel"], [type="time"],
		[type="url"], [type="color"]):is(:disabled, [readonly]),
textarea:is(:disabled, [readonly]) {
	background-color: #ddd;
	cursor: default;
}

/* White while focused, a read-only field too. */
input:is([type="text"], [type="password"], [type="date"], [type="datetime"],
		[type="datetime-local"], [type="month"], [type="week"], [type="email"],
		[type="number"], [type="search"], [type="tel"], [type="time"],
		[type="url"], [type="color"]):focus,
textarea:focus {
	background-color: #fff;
	border-color: var(--oko-accent);
}

textarea {
	max-width: 100%;
	min-height: 50px;
}

/* A textarea given a number of rows keeps it. */
textarea[rows] {
	height: auto;
}

input[type=text].search-field {
	font-size: 16px;
}

/* The down-pointing triangle is the background image, at the right. */
select {
	appearance: none;
	background-color: #fff;
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+);
	background-position: 100% center;
	background-repeat: no-repeat;
	border: 1px solid #bebebe;
	border-radius: 0;
	box-sizing: border-box;
	color: var(--oko-muted);
	font-family: inherit;
	font-size: 0.875rem;
	height: 2.3125rem;
	margin: 0 0 1rem;
	padding: 0.5rem 0.5rem 0.5rem 4px;
	width: 100%;
}

select:disabled {
	background-color: #ddd;
	cursor: default;
}

select:focus {
	border-color: var(--oko-accent);
}

input[type="file"],
input[type="checkbox"],
input[type="radio"] {
	margin: 0 0 1rem;
}

input[type="file"] {
	width: 100%;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
	display: inline-block;
	margin-left: 0.5rem;
	margin-right: 1rem;
}

input[type=submit] {
	border: 1px solid #bebebe;
	box-shadow: none;
}

/* Square, not iOS's rounded button. */
input[type=submit],
input[type=button] {
	appearance: none;
	border-radius: 0;
}

fieldset {
	border: 1px solid #ddd;
	padding: 1.25rem;
	margin: 1.125rem 0;
}

fieldset legend {
	font-weight: bold;
	background: #fff;
	padding: 0 0.1875rem;
	margin: 0 0 0 -0.1875rem;
}


/* --- Buttons --- */

/* A bare button - core's lightbox, Kalender's arrows, the players'
   controls - keeps these under what its own CSS sets. .button is the
   theme's: fineliner.js adds it to every submit input. */
button,
.button {
	appearance: none;
	border-style: solid;
	border-width: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
	font-size: 1rem;
	font-weight: normal;
	line-height: normal;
	margin: 0 0 1.25rem;
	padding: 1rem 2rem 1.0625rem;
	position: relative;
	text-align: center;
	text-decoration: none;
	transition: background-color 300ms ease-out;
}

button::-moz-focus-inner {
	border: 0;
	padding: 0;
}

/* Contact Form 7 disables its submit button until the consent box is
   ticked. */
button[disabled],
.button[disabled] {
	cursor: default;
	opacity: 0.7;
}

#root-container .button {
	background: none;
	border: 1px solid var(--oko-line);
	box-shadow: none;
	border-radius: 0;
	box-sizing: border-box;
	color: var(--oko-text-content);
	font-style: normal;
	font-weight: normal;
	text-shadow: none;
	transition: all .18s ease-in-out;
	font-size: inherit;
	font-family: inherit;
	line-height: 1;
	margin-bottom: 12px;
	margin-right: 5px;
	padding: 1em 1.6em;
}

:is(#root-container, .editor-styles-wrapper) .button:hover {
	border-color: var(--oko-accent);
	color: var(--oko-accent);
}

.button i {
	display: inline;
	font-size: inherit;
	height: auto;
	line-height: 1;
	margin-right: 4px;
	position: static;
	vertical-align: top;
}


/* --- WordPress' alignment classes --- */

.alignleft {
	float: left;
	margin: 0 20px 8px 0;
}

.alignright {
	float: right;
	margin: 0 0 8px 20px;
}

@media only screen and (max-width: 768px) {

	.alignright {
		float: none;
		margin: 0;
	}

}

.aligncenter {
	float: none;
	text-align: center;
}


/* --- Layout helpers --- */

/* The header and the dividers. */
.content-width {
	margin: auto;
	width: 1020px;
}

/* The content and the footer, whose columns add 15px of padding each side. */
.columns-content-width {
	margin: auto;
	width: 1050px;
}

@media only screen and (max-width: 1196px) {

	.columns-content-width,
	.content-width {
		width: auto;
	}

}

.no-margin-bottom {
	margin-bottom: 0 !important;
}

.center {
	text-align: center;
}

hr.layout-divider {
	border: 0;
	border-top: 1px solid var(--oko-line);
}

hr.double-line {
	height: 9px;
	border-top: 1px solid var(--oko-line);
	border-bottom: 1px solid var(--oko-line);
}


/* --- Scrollbar --- */

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #f3f3f3;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb {
	background: var(--oko-muted);
	border: 2px solid #f3f3f3;
	min-height: 60px;
	min-width: 60px;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--oko-accent);
}


/* ============================================================
   PAGE STRUCTURE

   The frame, the header and its menus, the content column and the footer.
   A rule the editor should draw too is written
   :is(#content-container, .editor-styles-wrapper): the editor leaves a
   selector that names its wrapper unprefixed, and :is() keeps the rule's
   specificity on the site.
   ============================================================ */


/* --- The frame --- */

#root-border {
	box-sizing: content-box;
	background: rgba(158, 158, 158, .12);
	margin: 40px auto;
	padding: 12px;
	width: 1170px;
}

#root-container {
	background: var(--oko-background);
	/* clip, not hidden: hidden makes this a scroll container, and the
	   sticky header would stick to it, which never scrolls, rather than to
	   the window. hidden is the fallback where clip is unsupported, with a
	   header that scrolls away. flow-root keeps the block formatting
	   context hidden gave. */
	display: flow-root;
	overflow: hidden;
	overflow: clip;
	padding: 60px 0;
	position: relative;
}

@media only screen and (max-width: 1196px) {

	#root-border {
		margin: 0;
		padding: 0;
		width: auto;
	}

}

@media only screen and (max-width: 959px) {

	#root-container {
		padding: 40px 0;
	}

}


/* --- Header --- */

#logo-wrapper {
	text-align: center;
}

@media only screen and (max-width: 959px) {

	#logo-wrapper {
		padding: 0 30px;
	}

}

#logo {
	margin-bottom: 11.125px;
}

#logo a {
	display: inline-block;
	max-width: 100%;
	text-decoration: none;
}


/* --- Menu --- */

#menu-wrapper {
	border-top: 1px solid #dfdfdf;
	line-height: 1;
	margin-top: 30px;
	padding: 25px 0 0;
	position: relative;
	text-align: center;
}

.main-menu {
	display: inline-block;
	font-family: var(--oko-font-text);
	font-size: 14px;
}

/* The mobile menu takes over; it sticks under Sticky header. */
@media only screen and (max-width: 959px) {

	#menu-wrapper {
		border: 0;
		padding: 0;
	}

	.main-menu {
		display: none;
	}

}

.main-menu li {
	position: relative;
}

.main-menu a {
	text-decoration: none;
}

.main-menu > li > a:hover,
.main-menu > li:hover > a,
.main-menu a.active,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-parent > a,
.main-menu > li.current-menu-ancestor > a,
.main-menu > li.current-page-ancestor > a {
	color: var(--oko-accent);
}

/* The line under the current item, added and faded in by fineliner.js. Its
   lower pixel lies over the grey line under the menu, so that stuck, with
   the content scrolling under it, no grey shows between the two. */
.main-menu .menu-marker {
	background: var(--oko-accent);
	bottom: -3.75px;
	display: block;
	height: 2px;
	opacity: 0;
	position: absolute;
	right: 0;
	width: 100%;
	z-index: 1;
}

.main-menu > li {
	float: left;
	line-height: 1;
	padding: 0 17px;
}

.main-menu > li > a {
	color: var(--oko-menu);
	display: inline-block;
	line-height: 1;
	padding-bottom: 20px;
}

.main-menu li ul {
	background: var(--oko-background);
	border: 1px solid #bebebe;
	display: none;
	left: 0;
	position: absolute;
	text-align: left;
	top: 30px;
	width: 190px;
	z-index: 99;
}

.main-menu li ul li ul {
	left: 70%;
	top: 0;
}

.main-menu li ul a {
	border-bottom: 1px solid #eee;
	color: #444;
	display: block;
	font-size: 13px;
	line-height: 1.4;
	padding: 13px 18px 13px 15px;
	transition: color .18s ease-in-out, background-color .18s ease-in-out;
}

.main-menu li ul a:hover,
.main-menu li ul li:hover > a {
	background: #fafafa;
	color: var(--oko-accent);
}

.main-menu li ul li:last-child > a {
	border-bottom: 0;
}

/* Search, the menu's last item (oko_search_menu_item()): a magnifying
   glass, with its field drawn under it as a submenu is. The word is for a
   screen reader. */
.main-menu > .oko-menu-sok > a {
	color: #aaa;
}

.main-menu .oko-menu-sok > a > span {
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.main-menu .oko-sok-skjema {
	background: var(--oko-background);
	border: 1px solid #bebebe;
	padding: 10px;
	position: absolute;
	right: 0;
	top: 48px;
	width: 325px;
	z-index: 99;
}

/* Only while open: display on the form itself would override its hidden
   attribute. */
.oko-sok-skjema:not([hidden]) {
	display: flex;
	gap: 6px;
}

.oko-sok-skjema input {
	flex: 1;
	margin: 0;
}

/* Chromium's clear button, a blue cross, off the site's colours. */
.oko-sok-skjema input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

#menu-wrapper .oko-sok-skjema .button {
	height: 2.3125rem;
	margin: 0;
	padding: 0 1.2em;
}

.main-menu .oko-sok-skjema input {
	font-size: 14px;
}


/* --- Mobile menu --- */

/* fineliner.js fills .top-bar-section with a copy of the header menu. It
   opens the bar by adding .expanded, and steps into a submenu by adding
   .moved to its .has-dropdown and sliding the section a screen-width left;
   a closed submenu waits off to the right, clipped to nothing. */

#mobile-menu {
	background: #f9f9f9;
	display: none;
	text-align: center;
}

@media only screen and (max-width: 959px) {

	#mobile-menu {
		display: block;
		width: 100%;
	}

}

#mobile-menu > ul {
	list-style: none;
	margin: 0 auto;
	text-align: left;
	width: 125px;
}

#mobile-menu li {
	line-height: 1;
	margin: 0;
	text-align: left;
}

.top-bar {
	overflow: hidden;
	height: 2.8125rem;
	line-height: 2.8125rem;
	position: relative;
}

.top-bar.expanded {
	height: auto;
}

.top-bar .title-area {
	position: relative;
}

.top-bar .name {
	height: 2.8125rem;
}

#mobile-menu .toggle-topbar.menu-icon {
	position: absolute;
	top: 0;
	right: 0;
	margin-top: 8px;
}

.top-bar .toggle-topbar.menu-icon a {
	display: block;
	position: relative;
	height: 34px;
	line-height: 33px;
	margin-right: 10px;
	padding: 0 2.5rem 0 0.9375rem;
	color: #5e5e5e;
	font-family: 'Arial', sans-serif;
	font-size: 14px;
	text-decoration: none;
	text-transform: uppercase;
}

/* The three bars of the hamburger: one line and two shadows, in the
   link's colour. */
.top-bar .toggle-topbar.menu-icon a span::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.9375rem;
	width: 16px;
	height: 0;
	margin-top: -8px;
	box-shadow: 0 0 0 1px, 0 7px 0 1px, 0 14px 0 1px;
}

.top-bar.expanded .title-area .menu-icon a {
	color: #111;
}

.top-bar-section {
	position: relative;
	left: 0;
	transition: left 300ms ease-out;
}

.top-bar-section ul {
	width: 100%;
	font-size: 16px;
}

.top-bar-section ul li a {
	display: block;
	width: 100%;
	padding: 12px 0 12px 0.9375rem;
	background: #fcfcfc;
	border-bottom: 1px solid #f3f3f3;
	color: #5e5e5e;
	text-decoration: none;
}

.top-bar-section ul li:last-child > a {
	border-bottom: 0;
}

/* The focus ring inside the row: the rows are as wide as the screen, which
   would cut off its sides. */
#mobile-menu .top-bar-section a:focus-visible {
	outline-offset: -2px;
}

.top-bar-section .has-dropdown {
	position: relative;
}

.top-bar-section .has-dropdown > a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 0;
	height: 0;
	margin-top: -4.5px;
	margin-right: 0.9375rem;
	border: inset 5px;
	border-color: transparent transparent transparent rgba(0, 0, 0, 0.5);
	border-left-style: solid;
}

.top-bar-section .has-dropdown.moved {
	position: static;
}

.top-bar-section .has-dropdown.moved > a::after {
	display: none;
}

.top-bar-section .dropdown {
	position: absolute;
	top: 0;
	left: 100%;
	z-index: 99;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.top-bar-section .has-dropdown.moved > .dropdown {
	width: 100%;
	height: auto;
	overflow: visible;
	clip: auto;
}

.top-bar-section .dropdown li {
	width: 100%;
}

/* The back row and the parent's row, which fineliner.js puts at the top of
   a submenu. */
.js-generated {
	display: block;
}

.top-bar-section .dropdown li.parent-link > a {
	font-weight: 700;
}

/* The < is decoration, given empty alt text where the browser supports it. */
.top-bar-section .dropdown li.title h5 a::before {
	content: "<\00a0";
	content: "<\00a0" / "";
}

/* Search is the word alone. 16px, as iOS zooms into a field with smaller
   text when it takes the focus; the button matches. */
#mobile-menu .oko-menu-sok i {
	display: none;
}

#mobile-menu .oko-sok-skjema {
	background: #fcfcfc;
	padding: 4px 0.9375rem 12px;
}

#mobile-menu .oko-sok-skjema :is(input, .button) {
	font-size: 16px;
}

/* The current page and its parents in the accent colour, as in the header
   menu; on a submenu's own page, its row in the submenu too. */
.top-bar-section li.current-menu-item > a,
.top-bar-section li.current-menu-parent > a,
.top-bar-section li.current-menu-ancestor > a,
.top-bar-section li.current-page-ancestor > a,
.top-bar-section li.current-menu-item > .dropdown > li.parent-link > a {
	color: var(--oko-accent);
}


/* --- Sticky header --- */

/* The menu sticks to the top of the window; the logo scrolls away.

   --oko-sticky-top is the admin bar's height while it is fixed, which it
   stops being at 600px. --oko-stuck-height is how far below that the stuck
   header reaches, the members' row included: what else sticks, sticks below
   it. */
:root {
	--oko-sticky-top: 0px;
	--oko-stuck-height: 45px;
}

:root:has(> body.admin-bar) {
	--oko-sticky-top: 32px;
}

@media screen and (max-width: 782px) {
	:root:has(> body.admin-bar) {
		--oko-sticky-top: 46px;
	}
}

@media screen and (max-width: 600px) {
	:root:has(> body.admin-bar) {
		--oko-sticky-top: 0px;
	}
}

/* The grey line under the menu is the top border of the content's
   hr.layout-divider, and it scrolls away. The menu draws its own as a
   shadow, which takes no room. */
#menu-wrapper {
	box-shadow: 0 1px var(--oko-line);
}

@media only screen and (min-width: 960px) {

	/* 188px above the window's top: the 157px logo, the menu's 30px margin
	   and its border, leaving the 63px menu showing. */
	:root {
		--oko-stuck-height: 63px;
	}

	#header-container {
		background: var(--oko-background);
		position: sticky;
		top: calc(var(--oko-sticky-top) - 188px);
		z-index: 100;
	}

	/* Stuck, the line is the colour of the one above the menu, as is the
	   members' row's. fineliner.js adds .oko-stuck. */
	#header-container.oko-stuck #menu-wrapper {
		box-shadow: 0 1px #dfdfdf;
	}

	/* Anchors and focus scroll clear of the stuck menu: 63px and 20px of
	   white. */
	html {
		scroll-padding-top: calc(var(--oko-sticky-top) + 83px);
	}

}

@media only screen and (max-width: 959px) {

	/* A sticky box sticks only while its parent is on screen, and the
	   header ends with the menu. display: contents makes #root-container
	   the menu's parent; the header box draws nothing at this width. */
	#header-container {
		display: contents;
	}

	#menu-wrapper {
		position: sticky;
		top: var(--oko-sticky-top);
		z-index: 100;
	}

	/* The open menu scrolls inside itself: a stuck box running off the
	   window cannot be scrolled to. */
	#mobile-menu.expanded {
		max-height: calc(100vh - var(--oko-sticky-top));
		max-height: calc(100dvh - var(--oko-sticky-top));
		overflow-y: auto;
	}

	html {
		scroll-padding-top: calc(var(--oko-sticky-top) + 65px);
	}

}


/* --- Content --- */

#content-container {
	color: var(--oko-text-content);
	padding-bottom: 80px;
	position: relative;
}

#content-container .row:last-child {
	margin-bottom: 0;
}

#inner-content-container {
	margin-bottom: 0;
	margin-top: 50px;
}

/* Stacked, 50px under every column but the last. */
@media only screen and (max-width: 768px) {

	#content-container .columns {
		margin-bottom: 50px;
	}

	#content-container .columns:last-child {
		margin-bottom: 0;
	}

}

:is(#content-container, .editor-styles-wrapper) a {
	border-bottom: 1px dotted var(--oko-line);
	color: var(--oko-accent);
	text-decoration: none;
}

:is(#content-container .columns, .editor-styles-wrapper) {
	color: var(--oko-text-content);
	font-family: var(--oko-font-text);
	font-size: 14px;
}

:is(#content-container, .editor-styles-wrapper) {
	line-height: 1.8;
}

:is(#content-container, .editor-styles-wrapper) p,
:is(#content-container, .editor-styles-wrapper) address,
:is(#content-container, .editor-styles-wrapper) pre,
#content-container .blog-item .excerpt {
	line-height: 1.8;
	margin-bottom: 26px;
}

@media only screen and (max-width: 959px) {

	#content-container .columns {
		font-size: 13px;
	}

	#content-container p {
		margin-bottom: 20px;
	}

}

:is(#content-container, .editor-styles-wrapper) h1,
:is(#content-container, .editor-styles-wrapper) h2,
:is(#content-container, .editor-styles-wrapper) h3,
:is(#content-container, .editor-styles-wrapper) h4,
:is(#content-container, .editor-styles-wrapper) h5,
:is(#content-container, .editor-styles-wrapper) h6 {
	font-family: var(--oko-font-heading);
	font-weight: 700;
	line-height: 1.4;
	color: var(--oko-heading);
}

:is(#content-container, .editor-styles-wrapper) h1,
:is(#content-container, .editor-styles-wrapper) h2,
:is(#content-container, .editor-styles-wrapper) h3 {
	margin-bottom: 18px;
}

:is(#content-container, .editor-styles-wrapper) h4 {
	margin-bottom: 12px;
}

:is(#content-container, .editor-styles-wrapper) h5 {
	font-size: 14px;
	margin-bottom: 6px;
}

:is(#content-container, .editor-styles-wrapper) h6 {
	font-size: 12px;
	margin-bottom: 6px;
}

@media only screen and (max-width: 959px) {

	#content-container h2 {
		margin-bottom: 16px;
	}

	#content-container h3 {
		margin-bottom: 14px;
	}

}

:is(#content-container, .editor-styles-wrapper) h1 span,
:is(#content-container, .editor-styles-wrapper) h2 span,
:is(#content-container, .editor-styles-wrapper) h3 span,
:is(#content-container, .editor-styles-wrapper) h4 span,
:is(#content-container, .editor-styles-wrapper) h5 span,
:is(#content-container, .editor-styles-wrapper) h6 span {
	color: var(--oko-accent);
}

:is(#content-container, .editor-styles-wrapper) ul,
:is(#content-container, .editor-styles-wrapper) ol {
	list-style: circle;
	margin-bottom: 26px;
	margin-left: 11px;
}

:is(#content-container, .editor-styles-wrapper) ol {
	list-style: decimal;
}

:is(#content-container, .editor-styles-wrapper) li {
	line-height: 1.8;
	margin-left: 18px;
}

:is(#content-container, .editor-styles-wrapper) li:last-child {
	margin-bottom: 0;
}

.has-line {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-color: var(--oko-accent);
	padding-bottom: 12px;
	margin-bottom: 25px !important;
}


/* --- Intro (search results, 404) --- */

#intro {
	margin: 0;
	padding: 35px 100px 40px;
	text-align: center;
}

#intro.page-404 {
	padding-left: 20px;
	padding-right: 20px;
}

#intro h1,
#intro h2 {
	color: var(--oko-heading);
	font-family: var(--oko-font-heading);
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 18px;
}

#intro h1 span,
#intro h2 span {
	color: var(--oko-accent);
	font-weight: 400;
}

#intro h1:last-child,
#intro h2:last-child {
	margin-bottom: 0;
}

#intro p {
	color: var(--oko-muted);
	font-family: var(--oko-font-text);
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 0;
}

@media only screen and (max-width: 959px) {

	#intro-wrapper {
		margin-bottom: 80px;
	}

	#intro {
		padding: 45px 100px 35px;
	}

	#intro p {
		font-size: 14px;
	}

}

@media only screen and (max-width: 768px) {

	#intro-wrapper {
		margin-bottom: 50px;
	}

	#intro {
		padding: 45px 20px 35px;
	}

}


/* --- Page title --- */

/* A page's title is an h1 Heading block in its content, and every h1 in a
   page looks like it. The double line under a public page's title is a
   Separator block (Dobbel linje). The side padding keeps a long title off
   the full width. #inner-content-container, as the search page's #intro is
   in #content-container too. */
:is(#inner-content-container, .editor-styles-wrapper) h1 {
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	padding: 0 100px;
}

/* The title sits 35px under the header's line, where content begins 50px
   under it. */
#inner-content-container > .uxb-col > h1:first-child {
	margin-top: -15px;
}

.wp-block-separator.is-style-oko-dobbel {
	border: none;
	border-top: 1px solid var(--oko-line);
	border-bottom: 1px solid var(--oko-line);
	box-sizing: content-box;
	height: 9px;
	width: auto;
	max-width: none;
	margin: 40px 0 50px;
	opacity: 1;
}

/* Last in an .oko-rad, as under Konserter's "Tidligere konserter": the
   row's own 35px makes up the 50. */
.oko-rad .wp-block-separator.is-style-oko-dobbel:last-child {
	margin-bottom: 15px;
}

/* Any other separator that ends a row, as the line under each of
   Kalender's season headings: the row's own 35px is the gap. */
.oko-rad .wp-block-separator:last-child {
	margin-bottom: 0;
}

/* Forside's next-concert name: an h2, since the page title is the h1, at
   an h1's size. */
h2.oko-stor {
	font-size: 3em;
}

@media only screen and (max-width: 959px) {

	#inner-content-container > .uxb-col > h1:first-child {
		margin-top: -5px;
	}

	/* Full-bleed, as the header's line above it is: the column's 15px
	   padding pulled back out. 80px under it between 769 and 959px. */
	.wp-block-separator.is-style-oko-dobbel {
		margin: 35px -15px 80px;
	}

	.oko-rad .wp-block-separator.is-style-oko-dobbel:last-child {
		margin-bottom: 45px;
	}

}

@media only screen and (max-width: 768px) {

	:is(#inner-content-container, .editor-styles-wrapper) h1 {
		padding: 0 20px;
	}

	.wp-block-separator.is-style-oko-dobbel {
		margin-bottom: 50px;
	}

	.oko-rad .wp-block-separator.is-style-oko-dobbel:last-child {
		margin-bottom: 15px;
	}

}


/* --- Footer --- */

#footer-root-container a {
	color: #111;
	text-decoration: none;
	transition: border-color .18s ease-in-out, color .18s ease-in-out;
}

#footer-root-container a:hover {
	color: var(--oko-accent);
}

/* 30px at the bottom: nothing follows the footer but the site border. */
#footer-content-container {
	color: var(--oko-muted);
	font-size: 13px;
	line-height: 22px;
	padding: 58px 0 30px;
}

#footer-content {
	margin-bottom: 0;
}

#footer-content h5 {
	color: #333;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 18px;
}

#footer-content p {
	line-height: 22px;
	margin-bottom: 18px;
}

#footer-content li {
	margin-bottom: 6px;
}

/* The columns are the Bunntekst synced pattern (footer.php). These undo a
   p's size, colour and margin and set each column's spacing, in the editor
   too. The pattern sits inside the footer's .row, so it is not pulled out
   15px as a row in the content is. */
#footer-content > .oko-bunntekst {
	margin-left: 0;
	margin-right: 0;
}

:is(#footer-content, .editor-styles-wrapper) .oko-bunntekst p {
	font-size: inherit;
	color: inherit;
	margin-bottom: 0;
}

:is(#footer-content, .editor-styles-wrapper) .oko-bunntekst__sider {
	line-height: 32px;
	margin-top: -8px;
}

:is(#footer-content, .editor-styles-wrapper) .oko-bunntekst__info {
	line-height: 16px;
}

/* The icons beside Informasjon's links. */
:is(#footer-content, .editor-styles-wrapper) .oko-bunntekst .alignleft {
	font-size: 20px;
	color: #666;
}

:is(#footer-content, .editor-styles-wrapper) .oko-bunntekst__logo {
	margin: 3px 0 0;
}

/* Side by side from 768px, like the theme's other columns; core stacks a
   Columns block below 782px. */
@media (min-width: 768px) and (max-width: 781px) {
	.oko-bunntekst.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
}

/* Stacked, 50px under every column, the last too. */
@media only screen and (max-width: 768px) {
	#footer-content .oko-bunntekst > .wp-block-column {
		margin-bottom: 50px;
	}
}

.footer-lenke {
	text-decoration: underline !important;
}

.footer-logo {
	width: 282px;
}


/* --- Scroll-up button --- */

#scrollUp {
	bottom: 50px;
	right: 30px;
	/* 19px, not 20: the chevron is a mask icon, which has no side bearings,
	   and 19 centres it in the circle. */
	padding: 17px 19px;
	background: #555;
	color: #fff;
	opacity: .6;
	border-radius: 50%;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
	width: 50px;
	height: 50px;
}


/* --- Off-screen container --- */

/* The empty div last in the body (footer.php). Its 1px keeps #root-border's
   40px bottom margin on the page: with nothing after it, the margin falls
   outside a body held to the window's height. */
#off-screen-container {
	padding-bottom: 1px;
	margin-bottom: 0;
}


/* ============================================================
   CONTENT

   What the theme's templates, WordPress' classic shortcodes and the plugins
   print into the content column.
   ============================================================ */


/* --- Search results --- */

/* There is no blog list - every archive is a 404 - but search.php prints
   its results in this markup, and single.php's title is a .blog-title. */

.blog-item {
	margin-bottom: 75px;
	overflow: hidden;
}

#content-container .blog-title {
	color: #333;
	font-family: var(--oko-font-text);
	font-weight: 600;
	line-height: 1.5;
}

#content-container .blog-title a {
	border-bottom: 0;
	color: #444;
	transition: color .18s ease-in-out;
}

:is(#content-container, .editor-styles-wrapper) .blog-title a:hover {
	color: var(--oko-accent);
}

#blog-pagination {
	font-size: 18px !important;
}

#blog-pagination ul {
	list-style: none;
	margin: 0;
	text-align: center;
}

#blog-pagination li {
	display: inline-block;
	margin: 0;
	line-height: 1;
}

#blog-pagination a,
#blog-pagination span.current {
	background: none;
	border: 1px solid transparent;
	color: #aaa;
	display: inline-block;
	font-size: 13px;
	font-weight: normal;
	margin: auto -3px;
	text-decoration: none;
	padding: 14px 16px;
	transition: border-color .18s ease-in-out;
}

#blog-pagination a:hover {
	border-color: #bbb;
}

#blog-pagination span.current,
#blog-pagination .current a {
	border: 1px solid #888;
	color: #666;
	display: inline-block;
	font-weight: bold;
	cursor: default;
}

#blog-pagination .current a:hover {
	background: none;
}

.search-result.row {
	margin-bottom: 30px;
}

/* The concerts under a page's result, each linked to its anchor, held to
   the result by a line. */
#content-container .search-sections {
	border-left: 1px solid var(--oko-line);
	list-style: none;
	margin: 0 0 26px 2px;
	padding-left: 20px;
}

#content-container .search-sections li {
	margin-left: 0;
}

/* The list's own margin instead, so the line ends with the text. */
#content-container .search-sections li:last-child .excerpt {
	margin-bottom: 0;
}

#content-container .search-sections .blog-title {
	font-size: 1.3em;
	margin-bottom: 6px;
}


/* --- Blockquote --- */

:is(#content-container, .editor-styles-wrapper) blockquote {
	border-left: 2px solid var(--oko-accent);
	box-sizing: border-box;
	margin: 0 10px 18px;
	padding: 12px 30px;
}

:is(#content-container, .editor-styles-wrapper) blockquote p,
#footer-content blockquote p {
	color: #798a89;
	font-size: 25px;
	font-style: italic;
	font-weight: 300;
	line-height: 1.7;
	margin-bottom: 0;
}

:is(#content-container, .editor-styles-wrapper) blockquote cite {
	color: var(--oko-accent);
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.5;
	margin-top: 18px;
}

:is(#content-container, .editor-styles-wrapper) blockquote cite:before {
	content: "\2014 \0020";
}


/* --- Galleries and captions --- */

#content-container .gallery {
	margin-bottom: 18px;
}

.wp-caption {
	background: #eee;
	border: 1px solid #d5d5d5;
	box-sizing: border-box;
	margin-bottom: 18px;
	max-width: 100%;
	padding: 6px;
	text-align: center;
}

#root-container .wp-caption-text {
	font-size: 14px;
	line-height: 1.3;
	margin: 6px;
}

#footer-content .wp-caption-text {
	font-size: inherit;
}

#content-container .gallery .gallery-item .gallery-caption {
	margin-bottom: 18px;
	margin-top: 12px;
	padding-bottom: 0;
}

/* A dl: the theme declares no html5 support for [gallery]. */
.gallery-item {
	margin-bottom: 22px;
}

#content-container .gallery-item img {
	border: 0;
}

.wp-caption-text {
	font-style: italic;
}


/* --- Calendar --- */

#wp-calendar caption {
	margin-bottom: 6px;
}


/* --- Contact Form 7 --- */

/* The result of a send: a grey panel with a strip down its left edge, green
   when the message went, yellow for a field to fix, the accent when it
   failed or was taken for spam. */
#content-container .wpcf7-response-output {
	margin: 20px 0;
	padding: 14px 18px;
	border: 0;
	border-left: 4px solid var(--oko-line);
	background: #f8f8f8;
}

#content-container form.sent .wpcf7-response-output {
	border-left-color: #46b450;
}

#content-container form.failed .wpcf7-response-output,
#content-container form.aborted .wpcf7-response-output,
#content-container form.spam .wpcf7-response-output {
	border-left-color: var(--oko-accent);
}

#content-container form.invalid .wpcf7-response-output,
#content-container form.unaccepted .wpcf7-response-output,
#content-container form.payment-required .wpcf7-response-output {
	border-left-color: #ffb900;
}

span.wpcf7-form-control-wrap {
	display: block;
}

/* A field left wrong: a red border, and small red text pulled up into the
   field's bottom margin. */
.wpcf7-not-valid-tip {
	border: 0;
	padding: 0;
	margin: -10px 0 14px;
	color: var(--oko-accent);
	font-size: 13px;
	left: 0;
	top: 20px;
}

#content-container .wpcf7-form-control.wpcf7-not-valid {
	border-color: var(--oko-accent);
}

/* The result below gets the same 20px gap the button has to the field
   above. */
#root-container .wpcf7-submit {
	margin-bottom: 0;
}

.wpcf7-form-control.wpcf7-textarea {
	height: 120px;
}

#content-container .wpcf7 p {
	margin-bottom: 20px;
}

.wpcf7 select {
	padding: 5px;
}

.wpcf7-list-item {
	display: block;
	margin: 12px 0;
}

.wpcf7-list-item input[type="checkbox"],
.wpcf7-list-item input[type="radio"] {
	margin-bottom: 0;
}

.wpcf7-list-item .wpcf7-list-item-label {
	font-size: 13px;
}


/* ============================================================
   BLOCKS (Gutenberg)

   The site's look for the core blocks, the block styles, and the named
   classes the content uses.
   ============================================================ */


/* --- Block styles --- */

/* A row: 35px below it, none below the last, and a 30px gutter, made by
   pulling the row 15px out each side and padding each column 15px in. Not a
   column-gap, so a column's width is its exact fraction of the row, unequal
   columns included. */
.wp-block-columns {
	margin-bottom: 35px;
	margin-left: -15px;
	margin-right: -15px;
	column-gap: 0;
	/* Stacked columns are spaced by their content's own margins. */
	row-gap: 0;
}

.wp-block-columns > .wp-block-column {
	padding-left: 15px;
	padding-right: 15px;
	/* Or the columns add up to more than a row. */
	box-sizing: border-box;
}

.wp-block-columns:last-child {
	margin-bottom: 0;
}

/* Columns that add up to more than one row wrap, e.g. six 1/3 columns. */
.wp-block-columns.oko-bryt {
	/* Core's layout support emits flex-wrap: nowrap, and core/columns
	   ignores a flexWrap attribute. */
	flex-wrap: wrap !important;
}

/* A section of a page: a Group. */
.oko-rad {
	margin-bottom: 35px;
	/* Keeps the last element's bottom margin inside the row. */
	display: flow-root;
}

.oko-rad:last-child {
	margin-bottom: 0;
}

/* An h1 that opens a row after the page's title, as Konserter's "Tidligere
   konserter": 35px more above it. On the members' pages the title is the
   first h1 in a row, with no h1 before it. */
:is(#content-container, .editor-styles-wrapper) h1 ~ .oko-rad h1:first-child {
	margin-top: 35px;
}

/* A column's own spacing wrapper. flow-root keeps the last element's
   bottom margin inside the column. */
.oko-kolonne {
	display: flow-root;
}

/* A wrapper around markup the page prints rather than the editor
   (Minner's playlists, Kalender's calendar), at the end of a column. */
:is(#content-container, .editor-styles-wrapper) div.oko-tekst {
	margin-bottom: 25px;
}

/* Inside it, zero the last element's bottom margin at every depth.

   The specificity is deliberate: no #root-container prefix, which would
   outrank rules this is meant to lose to, and `div` so that it wins its
   ties. */
div.oko-tekst :last-child {
	margin-bottom: 0;
}

:is(#content-container, .editor-styles-wrapper) .wp-block-details {
	margin-bottom: 25px;
}

/* 26px under an image, wherever it is in a run of content. The div is
   the wrapper WordPress puts around an aligned image in a classic theme. */
:is(#content-container, .editor-styles-wrapper) :is(figure, div).wp-block-image {
	margin-bottom: 26px;
}

/* An image caption reads as a credit line. */
:is(#content-container, .editor-styles-wrapper) .wp-block-image figcaption {
	font-size: 0.8em;
	line-height: 1.8;
	margin-top: 0.2em;
	margin-bottom: 0;
}

/* The lightbox on a phone on its side. Core leaves 80px above and below the
   image in any window 481-960px wide, which leaves the image smaller than
   on the page. Here it fills the window, less 8px top and bottom and 64px
   each side, clear of the close button. object-fit has to beat the cover
   core's script writes inline. body outranks core's rules wherever their
   CSS loads. */
@media (orientation: landscape) and (max-height: 500px) {

	body .wp-lightbox-overlay {
		height: 100vh;
		height: 100dvh;
	}

	body .wp-lightbox-overlay .lightbox-image-container {
		width: calc(100% - 128px);
		height: calc(100% - 16px);
	}

	body .wp-lightbox-overlay .wp-block-image img {
		min-width: 0;
		min-height: 0;
		width: 100%;
		height: 100%;
		object-fit: contain !important;
	}

}

/* Core's zoom is worked out for the size core gave the image, which the
   rule above replaces, so here it fades instead.

   Core keeps the image on the page hidden for 0.4s after closing, for the
   zoom to land on. With a fade it shows at once, under the fading overlay. */
@media (orientation: landscape) and (max-height: 500px) and (prefers-reduced-motion: no-preference) {

	body .wp-lightbox-overlay.zoom.active .lightbox-image-container {
		animation: turn-on-visibility 0.25s;
	}

	body .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container {
		animation: both turn-off-visibility 0.25s;
	}

	body .wp-block-image img.show {
		animation: none;
	}

}

:is(#root-container, .editor-styles-wrapper) .wp-block-button {
	margin-bottom: 22px;
}

/* No margin under the last button in a column, since the row has its own.
   Once the columns stack below 782px (core's breakpoint), a button with
   another below it gets 12px.

   :where() keeps these at the specificity of the rule above, so page rules
   still win. */
:is(#root-container, .editor-styles-wrapper) :where(.wp-block-column > .wp-block-buttons:last-child) > .wp-block-button {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	:is(#root-container, .editor-styles-wrapper) :where(.wp-block-column:has(~ .wp-block-column .wp-block-button) > .wp-block-buttons:last-child) > .wp-block-button {
		margin-bottom: 12px;
	}

	/* A card, a column with something above its button: stacked, the button
	   ends the card and takes the 44px gap between rows, with the link's
	   own 12px zeroed. */
	:is(#root-container, .editor-styles-wrapper) :where(.wp-block-column:has(~ .wp-block-column .wp-block-button) > .wp-block-buttons:last-child:not(:only-child)) > .wp-block-button {
		margin-bottom: 44px;
	}

	:is(#root-container, .editor-styles-wrapper) :where(.wp-block-column:has(~ .wp-block-column .wp-block-button) > .wp-block-buttons:last-child:not(:only-child)) > .wp-block-button > .wp-block-button__link {
		margin-bottom: 0;
	}
}

/* 12px under the link on a natural-width button only; a full-width one has
   just the container's 22px. */
:is(#root-container, .editor-styles-wrapper) .wp-block-button__link {
	margin-bottom: 12px;
}

:is(#root-container, .editor-styles-wrapper) .wp-block-button:not(.oko-knapp-stor) .wp-block-button__link {
	margin-bottom: 0;
}

/* Full width, so rows of buttons line up; a large one keeps its natural
   width. */
:is(#root-container, .editor-styles-wrapper) .wp-block-button:not(.oko-knapp-stor),
:is(#root-container, .editor-styles-wrapper) .wp-block-button:not(.oko-knapp-stor) .wp-block-button__link {
	width: 100%;
	display: block;
}

:is(#root-container, .editor-styles-wrapper) .wp-block-button__link {
	padding: 1em 1.6em;
	font-size: var(--oko-text-size);
	line-height: 1;
	text-align: center;
	background: #fff;
	border: 1px solid var(--oko-line);
	border-radius: 0.5em;
	color: var(--oko-text-content);
	text-decoration: none;
}

:is(#root-container, .editor-styles-wrapper) .wp-block-button__link:visited {
	color: var(--oko-text);
}

:is(#root-container, .editor-styles-wrapper) .wp-block-button__link:hover {
	color: var(--oko-accent);
	border-color: var(--oko-accent);
}

/* An icon in a button. The margin is the gap to the text. icons.css draws a
   mask icon slightly taller than 1em, so its height is capped to keep the
   16px line box, and it is aligned as Font Awesome aligns its glyphs. */
:is(#root-container, .editor-styles-wrapper) .wp-block-button__link i {
	margin-right: 4px;
	color: inherit;
	line-height: 1;
	height: 1em;
	vertical-align: -0.125em;
}

/* A large button. Its padding and radius are in em, so they grow with it. */
:is(#root-container, .editor-styles-wrapper) .oko-knapp-stor .wp-block-button__link {
	font-size: 1.25em;
}

/* Konserter's "tight-gap" rows: buttons shoulder to shoulder. The class is
   on the Columns block or on a button in it (a copied button brings it).
   Dropping each column's right padding halves the gap to 15px, where the
   columns are side by side. */
@media (min-width: 782px) {
	.wp-block-columns:is(.tight-gap, :has(> .wp-block-column > .wp-block-buttons > .tight-gap)) > .wp-block-column:not(:last-child) {
		padding-right: 0;
	}
}

.tight-gap .wp-block-button__link {
	padding: 1em 0.5em;
}

/* As a browser draws a bare <hr>: a 1px line in a 2px box, where core draws
   a 2px rule. */
.wp-block-separator {
	border: none;
	border-top: 1px solid;
	box-sizing: content-box;
	height: 1px;
}

/* Konsertstrek: the accent-coloured rule under a concert title, nudged 1px
   down. */
.wp-block-separator.is-style-oko-accent {
	border: none;
	border-top: 1px solid var(--oko-accent);
	box-sizing: border-box;
	height: 1px;
	position: relative;
	top: 1px;
	width: 100%;
	max-width: none;
	margin: 0 0 25px;
}

/* A heading with a rule running to its right. The rule keeps 10% so it
   stays visible while a long title wraps. */
h4.oko-tekstskille {
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin-top: 0;
	font-size: 1.8em;
	overflow-wrap: break-word;
}

/* 25px under it and under the h4 that follows it (Minner's venue and date).
   The id outranks the 12px every h4 has. */
:is(#content-container, .editor-styles-wrapper) :is(h4.oko-tekstskille, h4.oko-tekstskille + h4) {
	margin-bottom: 25px;
}

h4.oko-tekstskille::after {
	content: "";
	flex: 1 1 auto;
	min-width: 10%;
	position: relative;
	top: 1px;
	border-top: 1px solid #dfdfdf;
}

/* The subtitle under a concert's title, e.g. its date, drawn 12px up. */
:is(#content-container, .editor-styles-wrapper) .oko-undertittel {
	color: #999;
	margin-top: -12px;
}

/* A project heading on Kalender: an h3 with 18px (large) text in an
   ordinary h3's lines. The line height and letter-spacing are an h3's, 1.4
   and 0.03 of 1.8em, in pixels because this heading's em is smaller. `top`
   puts the text where an h3's taller strut puts the baseline, moving
   nothing else. */
:is(#content-container, .editor-styles-wrapper) h3.oko-prosjekttittel {
	position: relative;
	top: 3px;
	font-size: large;
	line-height: 35.28px;
	letter-spacing: 0.756px;
	color: var(--oko-accent);
}

/* Where the content's text is 13px. */
@media only screen and (max-width: 959px) {

	#content-container h3.oko-prosjekttittel {
		top: 2px;
		line-height: 32.76px;
		letter-spacing: 0.702px;
	}

}

/* "AVLYST", and the updates when a project is cancelled. Beats a heading
   span's accent. */
:is(#content-container, .editor-styles-wrapper) .oko-avlyst {
	color: #ff0000;
}

/* A toggle: a Details block, a grey box with a ringed plus beside the
   title. */
:is(#content-container, .editor-styles-wrapper) details.oko-utvid {
	margin: 0 0 22px;
	padding: 14px 40px 15px 10px;
	background: #f3f3f3;
	border-radius: 1px;
}

:is(#content-container, .editor-styles-wrapper) details.oko-utvid > summary {
	position: relative;
	padding-left: 33px;
	font-family: var(--oko-font-text);
	font-size: var(--oko-text-size);
	font-weight: 400;
	line-height: 1.4;
	color: var(--oko-heading);
	cursor: pointer;
	list-style: none;
}

/* A ring (the border) round a plus (two gradients): a summary has only two
   pseudo-elements. Open, the upright bar goes, leaving a minus. */
:is(#content-container, .editor-styles-wrapper) details.oko-utvid > summary::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -13px;
	box-sizing: border-box;
	width: 26px;
	height: 26px;
	border: 2px solid var(--oko-line-soft);
	border-radius: 50%;
	background-image: linear-gradient(var(--oko-line-soft), var(--oko-line-soft)),
	                  linear-gradient(var(--oko-line-soft), var(--oko-line-soft));
	background-size: 10px 2px, 2px 10px;
	background-position: center, center;
	background-repeat: no-repeat;
}

:is(#content-container, .editor-styles-wrapper) details.oko-utvid[open] > summary::before {
	background-size: 10px 2px, 0 0;
}

:is(#content-container, .editor-styles-wrapper) details.oko-utvid > :not(summary) {
	padding-left: 33px;
}

:is(#content-container, .editor-styles-wrapper) details.oko-utvid > summary + * {
	margin-top: 1em;
}

:is(#content-container, .editor-styles-wrapper) details.oko-utvid > p:last-child {
	margin-bottom: 0;
}

/* An accordion: a Group of Details blocks sharing a `name`, so opening one
   closes the others. Closed panels overlap by a pixel, sharing one border
   line. */
:is(#content-container, .editor-styles-wrapper) .oko-trekkspill {
	margin-bottom: 21.74px;
}

:is(#content-container, .editor-styles-wrapper) details.oko-trekkspill__seksjon {
	margin: 0;
}

:is(#content-container, .editor-styles-wrapper) details.oko-trekkspill__seksjon > summary {
	position: relative;
	margin-bottom: -1px;
	padding: 14px 20px 14px 46px;
	background: #f8f8f8;
	border: 1px solid var(--oko-line-soft);
	font-family: var(--oko-font-heading);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--oko-accent);
	cursor: pointer;
	list-style: none;
}

/* A bare plus, drawn the same way as the toggle's. */
:is(#content-container, .editor-styles-wrapper) details.oko-trekkspill__seksjon > summary::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 50%;
	margin-top: -6px;
	width: 12px;
	height: 12px;
	background-image: linear-gradient(#666, #666),
	                  linear-gradient(#666, #666);
	background-size: 12px 2px, 2px 12px;
	background-position: center, center;
	background-repeat: no-repeat;
}

:is(#content-container, .editor-styles-wrapper) details.oko-trekkspill__seksjon[open] > summary::before {
	background-size: 12px 2px, 0 0;
}

:is(#content-container, .editor-styles-wrapper) details.oko-trekkspill__seksjon[open] {
	padding-bottom: 14px;
}

:is(#content-container, .editor-styles-wrapper) details.oko-trekkspill__seksjon[open] > summary {
	margin-bottom: 13px;
}

/* An open section's heading sticks under the stuck menu while the section
   is on screen. Not in the editor. */
#content-container details.oko-trekkspill__seksjon[open] > summary {
	position: sticky;
	top: calc(var(--oko-sticky-top) + var(--oko-stuck-height));
	z-index: 98;
}

/* Anchors and focus in a section scroll clear of that heading too: its 14px
   paddings, a 21px line at 1.4 and two borders, on top of
   scroll-padding-top's 20px of white. */
#content-container details.oko-trekkspill__seksjon > :not(summary),
#content-container details.oko-trekkspill__seksjon > :not(summary) * {
	scroll-margin-top: calc(2 * 14px + 1.4 * 21px + 2px);
}

/* scroll-padding-top under the members' row has no white to spare, so the
   20px are added. */
@media only screen and (min-width: 960px) {

	html:has(#content-container .oko-submeny) #content-container details.oko-trekkspill__seksjon > :not(summary),
	html:has(#content-container .oko-submeny) #content-container details.oko-trekkspill__seksjon > :not(summary) * {
		scroll-margin-top: calc(2 * 14px + 1.4 * 21px + 2px + 20px);
	}

}

/* No browser triangle. */
:is(#content-container, .editor-styles-wrapper) details.oko-utvid > summary::-webkit-details-marker,
:is(#content-container, .editor-styles-wrapper) details.oko-trekkspill__seksjon > summary::-webkit-details-marker {
	display: none;
}

/* A message box: the "also available in English" box on Om. */
.oko-melding {
	position: relative;
	padding: 14px 14px 14px 56px;
	margin: 0 0 22px;
	border: 2px solid var(--oko-line-soft);
	color: var(--oko-muted);
	font-size: 14px;
}

/* The icon centred in a column down the left. */
.oko-melding__ikon {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--oko-muted);
}

.oko-melding__ikon .fa,
.oko-melding__ikon i {
	font-size: 1.7em;
	line-height: 1;
}

/* The id to outrank #content-container p. */
:is(#content-container, .editor-styles-wrapper) .oko-melding p {
	margin: 0;
}

/* Konsertdetaljer: the venue and its address on one line, the address
   wrapping as one piece, so on a phone the break falls at the comma. The
   saved markup has a <br> between them for a page without this stylesheet.
   Site only: the editor has a field for each. */
#root-container .wp-block-oko-konsertdetaljer .oko-sted + br {
	display: none;
}

#root-container .wp-block-oko-konsertdetaljer .oko-sted::after {
	content: ", ";
}

/* As high as its text, so the dotted rule sits under the letters rather
   than at the foot of the line. */
#root-container .wp-block-oko-konsertdetaljer .oko-sted + br + a {
	display: inline-block;
	line-height: normal;
}


/* --- Editing aids --- */

/* The "Skjult" block style. oko_hide_disabled_blocks() keeps these out of
   the page; this is the fallback. Site only: in the editor css/editor.css
   greys them, so they can be switched back on. */
#root-container :is(.oko-skjult, .is-style-skjult) {
	display: none;
}

/* Phones only, e.g. the rule between stacked concerts. */
@media (min-width: 768px) {
	.oko-kun-mobil {
		display: none;
	}
}


/* --- Members' menu --- */

/* The row at the top of the five members' pages: the Medlemsmeny menu,
   drawn by [oko_medlemsmeny] (includes/members-menu.php) in a synced
   pattern. */
:is(#content-container, .editor-styles-wrapper) .oko-submeny__ikon {
	height: 60px;
	line-height: 60px;
	margin: 0 0 35px;
	text-align: center;
	/* So the icon's 2.15em is 30px. */
	font-size: 14px;
}

/* `i`, not `.fa`: these icons carry `fas` and `far`. */
:is(#content-container, .editor-styles-wrapper) .oko-submeny__ikon i {
	font-size: 2.15em;
	color: var(--oko-accent);
	vertical-align: middle;
}

/* Each item is one link, icon and label, a block so the space between them
   is part of it. Grey, and accent for the current page and under the
   pointer, as the header menu; the icon and label take the link's colour
   over a p's. */
#content-container .oko-submeny a {
	border-bottom: 0;
	color: var(--oko-menu);
	display: block;
}

#content-container .oko-submeny a:hover,
#content-container .oko-submeny a[aria-current="page"] {
	color: var(--oko-accent);
}

#content-container .oko-submeny a p,
#content-container .oko-submeny a i {
	color: inherit;
}

/* The label is drawn 40px up, into the icon's margin. */
#content-container .oko-submeny .ikontittel {
	margin-top: -40px;
	margin-bottom: 0;
}

/* Below 960px the members' menu is the mobile menu's submenu under For
   medlemmer, so the row goes. Above, the row is the members' menu and the
   header's copy is hidden, with !important as superfish shows a submenu
   with an inline style. */
@media only screen and (max-width: 959px) {
	#content-container .oko-submeny {
		display: none;
	}
}

#menu-wrapper .main-menu .oko-medlemsmeny-forelder > .sub-menu {
	display: none !important;
}

/* On a wide screen the row sticks too, at 43px, under the stuck menu's
   63px: its top 20px, 15px of white and the top of the icon boxes, tuck
   under the menu. On the page the icons sit 31px under the menu's line; the
   row sticks 16px after the menu does. The margins take its white back out
   of the layout. Each item is as wide as its label, 60px apart. z-index 99
   keeps it under the header. */
@media only screen and (min-width: 960px) {

	/* clip-path is set to be animated when stuck, below. */
	#content-container .oko-submeny {
		background: var(--oko-background);
		clip-path: inset(0);
		margin-bottom: 25px;
		margin-top: -55px;
		gap: 30px;
		justify-content: center;
		padding: 15px 0 10px;
		position: sticky;
		top: calc(var(--oko-sticky-top) + 43px);
		transition: clip-path 0.2s ease;
		z-index: 99;
	}

	#content-container .oko-submeny > .wp-block-column {
		flex: 0 0 auto;
	}

	#content-container .oko-submeny .oko-submeny__ikon {
		transition: opacity 0.2s ease, visibility 0.2s;
	}

	#content-container .oko-submeny .ikontittel {
		transition: transform 0.2s ease;
	}

	#content-container .oko-submeny .oko-submeny__ikon i {
		font-size: 1.55em;
	}

	/* Stuck, only the labels show: the icons fade, the labels rise 40px to
	   10px under the menu's line, and the row is clipped 66px down. It keeps
	   its height so the page does not jump; the clipped part shows the page
	   and lets it be clicked. fineliner.js adds .oko-stuck. */
	#content-container .oko-submeny.oko-stuck {
		clip-path: inset(0 0 calc(100% - 66px) 0);
	}

	#content-container .oko-submeny.oko-stuck .oko-submeny__ikon {
		opacity: 0;
		visibility: hidden;
	}

	#content-container .oko-submeny.oko-stuck .ikontittel {
		transform: translateY(-40px);
	}

	/* The stuck menu's line fades in where the white ends, 15px in from
	   each side, where the row overhangs the header. */
	#content-container .oko-submeny::after {
		background: #dfdfdf;
		content: "";
		height: 1px;
		left: 15px;
		opacity: 0;
		pointer-events: none;
		position: absolute;
		right: 15px;
		top: 65px;
		transition: opacity 0.2s ease;
	}

	#content-container .oko-submeny.oko-stuck::after {
		opacity: 1;
	}

	/* 43px and the 65px of white. */
	html:has(#content-container .oko-submeny) {
		--oko-stuck-height: 108px;
		scroll-padding-top: calc(var(--oko-sticky-top) + 108px);
	}

}

@media only screen and (min-width: 960px) and (prefers-reduced-motion: reduce) {

	#content-container .oko-submeny,
	#content-container .oko-submeny .oko-submeny__ikon,
	#content-container .oko-submeny .ikontittel {
		transition: none;
	}

}

/* A column width on phones, !important as core stacks columns below 782px
   with it. */
@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.oko-xs-2 {
		flex-basis: 50% !important;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.oko-xs-3 {
		flex-basis: 33.33% !important;
	}

	.oko-ikke-mobil {
		display: none;
	}
}


/* --- Icons outside the members' menu --- */

/* An icon, as on the six cards on Medlemmer. */
:is(#content-container, .editor-styles-wrapper) .oko-ikon {
	margin-bottom: 35px;
	text-align: center;
	font-size: 14px;
	line-height: 0;
}

/* A 30px box with the icon centred; a mask icon fills whatever box it is
   given. 20px above, 10px to the card's title. */
:is(#content-container, .editor-styles-wrapper) .oko-ikon--lg {
	margin: 20px 0 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 30px;
}

:is(#content-container, .editor-styles-wrapper) .oko-ikon--lg i {
	font-size: 2.85em;
}

/* The title under a card's icon. The editor wraps a Custom HTML block's
   markup, so there the title follows the wrapper. */
:is(#content-container, .editor-styles-wrapper) :is(.oko-ikon--lg, .wp-block-html:has(.oko-ikon--lg)) + p {
	font-size: 18px;
}

/* On Medlemmer's cards the icon and the title, each its own link, are one
   thing to point at, and pointing greys both. The title's link reaches 8px
   up over the gap between the two. !important to answer .nounderline's. */
.wp-block-column:has(> .oko-ikon--lg) > .oko-ikon--lg + p a {
	display: inline-block;
	margin-top: -8px;
	padding-top: 8px;
}

.wp-block-column:has(> .oko-ikon--lg):has(a:hover) a {
	color: var(--oko-menu) !important;
}


/* --- Spacing --- */

/* Kalender's indented ical link: core/paragraph has no padding control
   without a theme.json. */
.oko-innrykk-30 {
	padding-left: 30px;
}


/* --- The editors' own classes --- */

span.avoidwrap {
	display: inline-block;
}

.ikontittel {
	font-size: 14px;
}

.nounderline a, .nounderline a:visited, .nounderline a:hover, .nounderline a:active {
	border-bottom: none !important;
	color: var(--oko-accent) !important;
}


/* ============================================================
   PAGE-SPECIFIC CSS

   A rule is scoped to its page only where it would otherwise reach other
   pages, and then through :where(), which adds no specificity, so the page
   scope does not change which rules it beats.
   ============================================================ */

/* Kontakt (191): the honeypot. It leaves hiding to the site's stylesheet,
   so without this a visitor sees the field and can be silently rejected for
   filling it in. Matched two ways, so a rename of either still works. */
.wpcf7-form p:has(.cf7apps-honeypot-wrap),
.wpcf7-form p:has(.Street-wrap) {
	display: none;
}

/* ------------------------------------------------------------
   Minner (10885): 84 audio playlists and a link list, all page-scoped.
   ------------------------------------------------------------ */

/* No link underlines: every concert row is a stack of download links. */
:where(.page-id-10885) #content-container a {
	border-bottom: none;
}


/* --- WordPress' own audio playlist --- */

:where(.page-id-10885) #root-container .wp-playlist {
	margin: 0 0 18px;
}

/* Unclamped, the 84 track lists add 2,400px to the page. */
:where(.page-id-10885) .wp-playlist-tracks {
	max-height: 290px;
	overflow-y: scroll;
	padding: 0 5px;
}

/* The current track's thumbnail repeats the cover art beside it. */
:where(.page-id-10885) .wp-playlist-current-item img {
	display: none;
}

:where(.page-id-10885) .wp-playlist-item-title,
:where(.page-id-10885) .wp-playlist-item-album,
:where(.page-id-10885) .wp-playlist-item-artist {
	margin-left: 5px;
}

:where(.page-id-10885) .wp-playlist-caption,
:where(.page-id-10885) .wp-playlist-item-length {
	color: #787878;
}

:where(.page-id-10885) .wp-playlist-current-item .wp-playlist-item-title {
	font-size: 16px;
}

/* Core sets the height inline, from the thumbnail hidden above. 66px is
   title, album and artist stacked. */
:where(.page-id-10885) .wp-playlist-current-item {
	height: 66px !important;
}

:where(.page-id-10885) .wp-playlist-light .wp-playlist-item-album {
	font-style: normal;
}

:where(.page-id-10885) .wp-playlist-light .wp-playlist-item-artist {
	text-transform: none;
	opacity: .8;
}


/* --- Playlist track rows --- */

:where(.page-id-10885) .wp-playlist-item:last-child {
	padding-bottom: 12px;
}

:where(.page-id-10885) .wp-playlist-item-length {
	top: 10px;
}

:where(.page-id-10885) .wp-playlist-light .wp-playlist-item {
	padding: 10px 0;
	border-bottom-color: var(--oko-line-soft);
}

:where(.page-id-10885) .wp-playlist-light .wp-playlist-playing {
	font-weight: normal;
	border-bottom-color: #999;
}


/* --- Page layout --- */

/* 6px above the first element in a row or column, but not buttons, the
   members' menu, the toggle or headings (the page's h1 carries no
   .uxb-heading). A Group's rows are inside
   .wp-block-group__inner-container. */
:where(.page-id-10885) #content-container .oko-rad > .wp-block-group__inner-container
	> :first-child:not(.wp-block-buttons, details, .uxb-heading, h1),
:where(.page-id-10885) #content-container .oko-kolonne > .wp-block-group__inner-container
	> :first-child:not(.wp-block-buttons, details, .uxb-heading, h1),
:where(.page-id-10885) #content-container .wp-block-columns:not(.oko-submeny) > .wp-block-column
	> :first-child:not(.wp-block-buttons, details, .uxb-heading, h1) {
	margin-top: 6px;
}

:where(.page-id-10885) #root-container .wp-block-button {
	margin-bottom: 14px;
}

/* A CD cover's border outside the image: content-box, where core uses
   border-box. */
:where(.page-id-10885) #content-container .wp-block-image img {
	box-sizing: content-box;
	border: 1px solid var(--oko-line);
}
