html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}
ul{list-style:none}
button,input,select,textarea{margin:0}
html{box-sizing:border-box;scroll-behavior:smooth;}
*,*:before,*:after{box-sizing:inherit}
img,embed,iframe,object,audio,video{height:auto;max-width:100%}
iframe{border:0}
table{border-collapse:collapse;border-spacing:0}
td,th{padding:0;text-align:left}
:focus:not(:focus-visible) { outline: none }

body { font-family: Helvetica, Arial, sans-serif; }

a { color: #8aaddc; }

sup, sub {
	vertical-align: baseline;
	position: relative;
	top: -0.4em;
}
sub { top: 0.4em; }

.shortcuts {
	position: absolute;
	top: 0;
	left: 0;
	line-height: 0;
}
.shortcuts a {
	font-size: 1px;
	color: transparent;
}

#overlay {
	position: absolute;
	width: 100%;
	height: 100vh;
	background-color: #000;
	transition: visibility 0s, opacity .3s linear;
	z-index: 99;
	opacity: 0;
	visibility: hidden;
}

/* GITTER */
#gitter {
	display: grid;
	grid-template-columns: auto 400px 250px minmax(500px, 682px) 250px auto;
	grid-template-rows: 100px 1fr 50px;
	grid-template-areas:
		"header header header header header header"
		" . menu submenu article aside ."
		"footer footer footer footer footer footer"
	;
	height: 100vh;
	grid-gap: 10px;
}
body.fullwidth #gitter {
	grid-template-areas:
		"header header header header header header"
		" . menu article article aside ."
		"footer footer footer footer footer footer"
 ;
}
body.nonotes #gitter {
	grid-template-areas:
		"header header header header header header"
		" . menu submenu article article ."
		"footer footer footer footer footer footer"
 ;
}
body.fullwidth.nonotes #gitter {
	grid-template-areas:
		"header header header header header header"
		" . menu article article article ."
		"footer footer footer footer footer footer"
 ;
}
body.fullwidth #gitter #submenu  { display: none; }
body.nonotes #gitter #aside  { display: none; }
main,
main > section { display: contents; }
#header   { grid-area: header; }
#menu     { grid-area: menu; }
#frontsub { grid-area: frontsub; }
#submenu  { grid-area: submenu; }
#article  { grid-area: article; }
#aside    { grid-area: aside; }
#footer   { grid-area: footer; }

#menu,
#submenu,
#article,
#aside {
	display: flex;
	overflow-x: hidden;
	overflow-y: auto;
}
#article,
#aside { flex-flow: column; }
#aside { overflow-y: auto; }
#aside {
	-ms-overflow-style: none;  /* Internet Explorer 10+ */
	scrollbar-width: none;  /* Firefox */
}
#aside::-webkit-scrollbar {
	display: none;  /* Safari and Chrome */
}

.frontpage #gitter {
	grid-template-columns: auto minmax(300px, 1630px) auto;
	grid-template-rows: 200px auto auto 50px;
	grid-template-areas:
		"header header header"
		". menu ."
		". frontsub ."
		"footer footer footer"
	;
}
.account #gitter {
	grid-template-columns: auto 400px 250px minmax(500px, 682px) 250px auto;
	grid-template-rows: 100px 1fr 50px;
	grid-template-areas:
		"header header header header header header"
		" . menu article article aside ."
		"footer footer footer footer footer footer"
	;
}
body.edge main,
body.edge main > section { display: unset; }
body.edge main { grid-area: main; }
body.edge main > section { grid-area: mainsection; }
body.edge #gitter {
	grid-template-rows: 100px calc(100vh - 170px) 50px;
	grid-template-columns: none;
	grid-template-areas:
		"header"
		"main"
		"footer"
	;
	grid-gap: 10px;
}
body.edge #gitter main > * {
	height: calc(100vh - 170px);
}
body.edge main {
	display: grid;
	grid-template-columns: auto 400px minmax(760px, 942px) 250px auto;
	grid-template-areas:
		" . menu mainsection aside ."
	;
	grid-gap: 10px;
}
body.edge main > section {
	display: grid;
	grid-template-columns: 250px minmax(500px, 682px);
	grid-template-areas:
		"submenu article"
	;
	grid-gap: 10px;
}
body.edge #article #content { height: calc(100vh - 50px); }
body.edge #header { background: #8aaddc; }
body.edge #header nav {
	display: unset;
	width: 100%;
}
body.edge #header nav a { display: inline-block; }
body.edge #footer .mylog { display: none; }

body.edge.frontpage #gitter {
	grid-template-rows: 200px auto 50px;
	grid-template-columns: none;
	grid-template-areas:
		"header"
		"main"
		"footer"
	;
	grid-gap: 10px;
}
body.edge.frontpage #header nav { display: none; }
body.edge.frontpage main {
	display: grid;
	grid-template-columns: auto minmax(300px, 1630px) auto;
	grid-template-rows: auto auto;
	grid-template-areas:
		" . menu . "
		" . mainsection . "
	;
}
body.edge.frontpage #gitter main #menu { height: auto; }
body.edge.frontpage main > section {
	display: block;
	height: auto !important;
}
body.edge.frontpage #frontsub { max-width: 100%; }
body.edge.frontpage #frontsub a { max-width: 150px; width: 150px; }
/* /GITTER */

#header {
	background: linear-gradient(to left, #8aaddc00, #8aaddcff 35%, #8aaddc), url('../gfx/bg_legemiddel.jpg') no-repeat top right;
}
.frontpage #header {
	background: linear-gradient(to left, #8aaddc00, #8aaddcff 35%, #8aaddc), url('../gfx/bg_frontpage.jpg') no-repeat top right;
}
#header .constrainer {
	display: flex;
	justify-content: left;
	max-width: 1630px;
	margin: 0 auto;
}
#header h1 { width: 400px; align-self: flex-start;  }
#header h1 a {
	display: grid;
	grid-template-columns: 100px auto;
	align-items: center;
	font-family: Times, 'Times New Roman', serif;
	text-decoration: none;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	color: #fff;
}
.frontpage #header h1 a {
	grid-template-columns: 260px auto;
	outline: none;
	pointer-events: none;
	cursor: default;
	font-size: 50px;
	filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.3));
}
#header h1 img.logo {
	width: 80px;
	height: 80px;
	margin: 10px;
	padding: 10px;
}
.frontpage #header h1 img.logo {
	max-width: none;
	width: 222px;
	height: 222px;
	margin-top: 30px;
}
#header nav { display: contents; }
#header nav a#menyen { display: none; }
.frontpage #header nav a#notiser,
.frontpage #header nav a#menyen { display: none !important; }
#header nav a {
	align-self: start;
	min-width: 150px;
	margin: 5px 10px 0 10px;;
	text-align: center;
	text-decoration: none;
	font-size: 15px;
	font-weight: 300;
	color: #fff;
}
#header nav a:hover { text-decoration: underline; }
#header nav a img {
	display: block;
	width: 66px;
	height: 66px;
	margin: 0 auto;
}
#header h1 a:hover img,
#header nav a:hover img { filter: drop-shadow(0px 0px 5px rgba(0, 0, 250, 0.3)); }
#header nav a#notiser-small { display: none; }
#header nav #notiser img.off,
#header nav #notiser .label.off { display: none; }
body.nonotes #header nav #notiser img.off,
body.nonotes #header nav #notiser .label.off { display: block; }
body.nonotes #header nav #notiser img.on,
body.nonotes #header nav #notiser .label.on { display: none; }
#header nav #notiser-small img.off,
#header nav #notiser-small .label.off { display: none; }
body.viewnotes #header nav #notiser-small img.off,
body.viewnotes #header nav #notiser-small .label.off { display: block; }
body.viewnotes #header nav #notiser-small img.on,
body.viewnotes #header nav #notiser-small .label.on { display: none; }

#footer {
	background-color: #8aaddc;
}
#footer .constrainer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1630px;
	height: 50px;
	margin: 0 auto;
	padding: 10px;
	color: #fff;
}
#footer h1 {
	display: inline-block;
	font-weight: 300;
	font-size: 13px;
}
#footer address,
#footer a.mylog {
	display: inline-block;
	font-style: normal;
	font-weight: 300;
	font-size: 13px;
}
#footer a { color: #fff; }
#footer a.mylog { margin-left: 30px; }

#menu {
	flex-direction: column;
	justify-content: flex-start;
}
#menu > form {
	display: flex;
	position: relative;
}
#menu > form input,
#menu > form button {
	display: block;
	margin-bottom: 2px;
	padding: 5px;
	background-color: #fff;
	border: 1px #ccc solid;
	font-size: 17px;
	color: #8aaddc;
	text-decoration: none;
}
#menu > form input {
	flex-grow: 1;
	-webkit-appearance: none;
	border-right-width: 0;
}
#menu > form button {
	padding-left: 20px;
	padding-right: 20px;
	background-color: #e6f1ff;
	border-left-color: #e6e6e6;
	font-weight: 400;
	text-transform: uppercase;
}
#menu > form button:hover {
	background-color: #8aaddc;
	color: #fff;
	cursor: pointer;
}
#menu > form div {
	display: none;
	position: absolute;
	top: 32px;
	left: 0;
	z-index: 6;
	width: calc(100% - 77px);
}
#menu > form ul {
	background-color: #fff;
	border: 1px #ccc solid;
	border-radius: 3px;
	box-shadow: 0 3px 8px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
}
#menu > form ul li a {
	display: block;
	padding: 5px;
	text-decoration: none;
	color: #333;
}
#menu > form ul li a.hover {
	background-color: #8aaddc;
	color: #fff;
}
#menu > a {
	display: block;
	margin-bottom: 2px;
	padding: 5px;
	background-color: #fff;
	border: 1px #ccc solid;
	font-size: 17px;
	color: #8aaddc;
	text-decoration: none;
}
#menu > a.active,
#menu > a:hover {
	background-color: #8aaddc;
	color: #fff;
}
#menu > a img { display: none; }

.frontpage #header nav { display: none; }
.frontpage #menu {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	max-width: 1200px;
	justify-self: center;
}
.frontpage #menu > a.active,
.frontpage #menu > a:hover {
	background-color: transparent;
	color: #8aaddc;
}
.frontpage #menu form {
	order: 6;
	flex: 0 1 50%;
	height: 34px;
	margin-top: 10px;
	align-self: flex-start;
}
.frontpage #menu > a {
	flex: 1 1 20%;
	min-width: 177px;
	background-color: transparent;
	border: none;
	text-align: center;
	font-size: 20px;
	cursor: pointer;
}
.frontpage #menu a:hover {
	background-color: transparent;
	text-decoration: underline;
	color: #8aaddc;
}
.frontpage #menu a:hover img { filter: drop-shadow(0px 0px 5px rgba(0, 0, 250, 0.3)); }
.frontpage #menu > a img {
	display: block;
	width: 177px;
	height: 177px;
	margin: 0 auto;
 }
.frontpage main nav#menu > ul { display: none; }
.frontpage main aside#aside { display: none; }

.frontpage #menu { overflow: visible; }
.frontpage main form input {
	padding: 10px;
	border: 1px #8aaddc solid;
	font-size: 25px;
}
.frontpage #menu > form div { top: 30px; }
.frontpage #menu > form ul { text-align: left; }


.frontpage #frontsub {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	max-width: 740px;
	justify-self: center;
}
.frontpage #frontsub a {
	display: inline-block;
	align-self: start;
	min-width: 150px;
	margin: 5px 10px 0 10px;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	font-weight: 300;
	color: #8aaddc;
}
.frontpage #frontsub a:hover  { text-decoration: underline; }
.frontpage #frontsub a:hover img { filter: drop-shadow(0px 0px 5px rgba(0, 0, 250, 0.3)); }
.frontpage #frontsub a .label {
	display: block;
	margin-top: -15px;
}

#menu > ul {
	flex: 0;
	transition:flex 0.5s ease-out;
	overflow: hidden;
}
#menu a.active + ul {
	flex: 1;
	overflow-y: auto;
}

#menu > ul li a {
	position: relative;
	display: block;
	padding: 5px 30px 5px 10px;
	border-top: 1px #ccc solid;
	border-left: 10px solid #e6f1ff;
	font-size: 14px;
	text-decoration: none;
	color: #666;
	outline: none;
}
#menu li > ul { display: none; }
#menu li.open > ul { display: block; }
#menu ul li a.childless button { display: none; }
#menu ul li a:hover { background-color: #e6f1ff; }
#menu > ul > li > a { border-left-width: 0; }
#menu li.active > a { border-left-width: 0px; }
#menu li li a { border-left-width: 10px; }
#menu li li.active > a { border-left-width: 10px; }
#menu li li li a { border-left-width: 20px; }
#menu li li li.active > a { border-left-width: 20px; }
#menu li li li li a { border-left-width: 30px; }
#menu li li li li.active a { border-left-width: 30px; }
#menu li li li li li a { border-left-width: 40px; }
#menu li li li li li.active a { border-left-width: 40px; }
#menu li li li li li li a { border-left-width: 50px; }
#menu li li li li li li.active a { border-left-width: 50px; }
#menu li.active > a {
	position: relative;
	padding-left: 10px;
	background-color: #e6f1ff;
	border-left-color: #8aaddc;
}
#menu li.active > a:before {
	position: absolute;
	top: 0;
	left: 0;
	content: '';
	width: 0;
	height: 0;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-left: 10px solid #8aaddc;
}
#menu ul li a button {
	position: absolute;
	top: 50%;
	right: 5px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background-color: #fff;
	background-image: url('../gfx/pluss.svg');
	background-size: contain;
	background-repeat: no-repeat;
	border: 1px #8aaddc solid;
	border-radius: 100%;
}
#menu ul li.open > a button { background-image: url('../gfx/minus.svg'); }
#menu ul li a button:hover {
	background-color: #8aaddc;
	background-image: url('../gfx/pluss-a.svg');
	color: #fff;
	cursor: cell;
	filter: drop-shadow(0px 0px 1px rgba(0,0,250,0.5));
}
#menu ul li.open a button:hover { background-image: url('../gfx/minus-a.svg'); }

/* news tabs */
#aside nav.scroll.up { display: none; }
#aside nav.scroll {
	position: sticky;
	top: 0;
	display: block;
	text-align: center;
	background-image: linear-gradient(#fff 0%, #fff 50%, transparent 100%);
	color: transparent;
	cursor: pointer;
	user-select: none;
}
#aside nav.scroll.down {
	bottom: 0;
	background-image: linear-gradient(transparent 0%, #fff 45%, #fff 100%);
}
#aside nav.scroll svg { width: 80px; }
#aside nav.scroll:hover svg {
	filter: brightness(0%);
	transition: all 100ms ease;
	animation-duration: 900ms;
	animation-timing-function: ease-in-out;
	animation-iteration-count: 6;
	top: -1px;
	right: 0;
	animation-name: bounceup;
}
#aside nav.scroll.down:hover svg {
	top: 1px;
	right: 0;
	animation-name: bouncedown;
}
@keyframes bounceup {
	0%, 100%, 20%, 80%, 50% { transform: translateY(0); }
	60% { transform: translateY(-4px); }
	40% { transform: translateY(-2px); }
}
@keyframes bouncedown {
	0%, 100%, 20%, 80%, 50% { transform: translateY(0); }
	40% { transform: translateY(4px); }
	60% { transform: translateY(2px); }
}
#aside h1 {
	margin: 10px 0;
	font-size: 17px;
	font-weight: normal;
	color: #8aaddc;
}
#aside input { display: none; }
#aside label {
	display: inline-block;
	margin: 10px 10px 10px 0;
	font-size: 17px;
	color: #bbb;
	cursor: pointer;
}
#aside label:hover,
#aside input:checked + label { color: #8aaddc; }

#aside #aside-notes label {
	display: inline-block;
	margin: 0 0 -1px 0;
	padding: 3px 5px 3px 5px;
	border: 1px solid transparent;
	text-align: center;
	font-size: 14px;
	font-weight: normal;
	color: #bbb;
}
#aside #aside-notes label:hover {
	color: #333;
	cursor: pointer;
}
#aside #aside-notes input:checked + label {
	background-color: #e6f1ff;
	border: 1px solid #ccc;
	border-top: 2px solid #8aaddc;
	border-bottom: 1px solid #fff;
	color: #333;
}

#aside #utab1:checked ~ #aside-notes,
#aside #utab2:checked ~ #aside-comments,
#aside #tab1:checked ~ #news-twitter,
#aside #tab2:checked ~ #news-nlh,
#aside #tab3:checked ~ #news-local {
	display: block;
}
#aside > div { display: none; }
#aside div > section {
	display: none;
	padding-top: 20px;
	border-top: 1px #ccc solid;
	font-family: Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.5;
}
#aside > section h2 {
	margin-bottom: .5em;
	font-size: 16px;
	font-weight: 400;
}
#aside > section p { margin-bottom: .5em; }

#aside #aside-notes section a {
	text-decoration: none;
	color: unset;
}
#aside #aside-notes section a:hover { text-decoration: underline; }
#aside #aside-notes section h3 { margin-top: 1em; }
#aside #aside-notes section a:first-child h3 { margin-top: 0; }

/* /news tabs */

#submenu ul { flex-grow: 1; }
#submenu a {
	display: block;
	margin-bottom: 5px;
	border: 1px solid #eee;
	font-size: 14px;
	color: #8aaddc;
}
#submenu a.supinfo { margin-bottom: 22px; }
#submenu a .icon {
	width: 50px;
	height: 50px;
	background-image: url('../gfx/nlh-logo.svg');
	background-repeat: no-repeat;
}
#submenu a .label {
	align-self: center;
	padding: 0 5px 0 0;
}
#submenu a.legemiddel .icon      { background-image: url('../gfx/L.svg'); }
#submenu a.terapi .icon          { background-image: url('../gfx/T.svg'); }
#submenu a.generelle .icon       { background-image: url('../gfx/G.svg'); }
#submenu a.hastebehandling .icon { background-image: url('../gfx/H.svg'); }

#submenu a.supinfo .icon     { background-image: url('../gfx/supinfo.svg'); }
#submenu a.cat-1 .icon       { background-image: url('../gfx/antimikrobielt-spektrum.svg');}
#submenu a.cat-2 .icon       { background-image: url('../gfx/behandling.svg');}
#submenu a.cat-3 .icon       { background-image: url('../gfx/bivirkninger.svg');}
#submenu a.cat-4 .icon       { background-image: url('../gfx/definisjoner.svg');}
#submenu a.cat-5 .icon       { background-image: url('../gfx/diagnostikk.svg');}
#submenu a.cat-6 .icon       { background-image: url('../gfx/dosering.svg');}
#submenu a.cat-7 .icon       { background-image: url('../gfx/egenskaper.svg');}
#submenu a.cat-8 .icon       { background-image: url('../gfx/epidemiologi.svg');}
#submenu a.cat-9 .icon       { background-image: url('../gfx/etiologi.svg');}
#submenu a.cat-10 .icon      { background-image: url('../gfx/farmakokinetikk.svg');}
#submenu a.cat-11 .icon      { background-image: url('../gfx/fertilitet.svg');}
#submenu a.cat-12 .icon      { background-image: url('../gfx/forsiktighetsregler.svg');}
#submenu a.cat-13 .icon      { background-image: url('../gfx/generelt.svg');}
#submenu a.cat-14 .icon      { background-image: url('../gfx/graviditet.svg');}
#submenu a.cat-15 .icon      { background-image: url('../gfx/indikasjoner.svg');}
#submenu a.cat-16 .icon      { background-image: url('../gfx/kilder.svg');}
#submenu a.cat-17 .icon      { background-image: url('../gfx/kombinasjoner.svg');}
#submenu a.cat-18 .icon      { background-image: url('../gfx/forsiktighetsregler.svg');}
#submenu a.cat-19 .icon      { background-image: url('../gfx/kontraindikasjoner.svg');}
#submenu a.cat-20 .icon      { background-image: url('../gfx/kontroll.svg');}
#submenu a.cat-21 .icon      { background-image: url('../gfx/legemiddelokonomi.svg');}
#submenu a.cat-22 .icon      { background-image: url('../gfx/metodevurdering.svg');}
#submenu a.cat-23 .icon      { background-image: url('../gfx/nettressurser.svg');}
#submenu a.cat-24 .icon      { background-image: url('../gfx/overdosering.svg');}
#submenu a.cat-25 .icon      { background-image: url('../gfx/pasientinfo.svg');}
#submenu a.cat-26 .icon      { background-image: url('../gfx/preparater.svg');}
#submenu a.cat-27 .icon      { background-image: url('../gfx/profylakse.svg');}
#submenu a.cat-28 .icon      { background-image: url('../gfx/prognose.svg');}
#submenu a.cat-29 .icon      { background-image: url('../gfx/seponering.svg');}
#submenu a.cat-30 .icon      { background-image: url('../gfx/symptomer.svg');}
#submenu a.cat-31 .icon      { background-image: url('../gfx/trafikkfare.svg');}

#submenu a.cat-33 .icon      { background-image: url('../gfx/preparater.svg');}
#submenu a.preparater .icon  { background-image: url('../gfx/preparater.svg');}
#submenu a.pdf .icon         { background-image: url('../gfx/pdf.svg');}

#submenu a:hover,
#submenu a.selected { background-color: #e6f1ff ; }
#submenu a:hover .icon { filter: drop-shadow(0px 0px 2px rgba(0,0,250,0.5)); }

#submenu a { text-decoration: none; }
#submenu a li {
	display: grid;
	grid-template-columns: 50px auto;
}

#article {
	font-family: Times, 'Times New Roman', serif;
	line-height: 1.5;
}
#article header {
	display: flex;
	justify-content: space-between;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 10;
	padding: 5px;
	background-color: #e6f1ff;
	border-bottom: 10px #fff solid;
	line-height: 1.1;
}
#article header h1 {
	margin: 0 0 5px 0;
	font-size: 25px;
}
#article header .meta {
	max-width: 145px;
	min-width: 125px;
	align-self: center;
	padding: 5px 10px 0 0;
	text-align: right;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
}
#article header .meta  p { margin: 0; }

#article.searchresult header {
	display: grid;
	grid-template-columns: none;
	grid-template-rows: 30px 22px;
	grid-gap: 0;
	justify-content: initial;
	padding-bottom: 0;
}
#article.searchresult header nav {
	display: flex;
	align-items: flex-end;
	margin: 0 -5px;
	background-color: #e6f1ff;
	font-family: Helvetica, Arial, sans-serif;
}
#article.searchresult header nav > span { flex-grow: 1; }
#article.searchresult header nav span a,
#article.searchresult header nav span span {
	display: block;
	padding: 3px 0 1px 0;
	text-align: center;
	text-decoration: none;
	border: 1px #fff solid;
	border-width: 1px 1px 0 0;
}
section article.searchresult header nav > span:last-child { border-width: 0; }
#article.searchresult header nav span a:hover,
#article.searchresult header nav span.current {
	background-color: #8aaddc;
	color: #fff;
}
.searchresult #content a { text-decoration: none; }
.searchresult #content a:hover article { background-color: #f6f9fc; }
.searchresult #content a:hover h1 { text-decoration: underline; }
.searchresult #content article {
	margin: 1em 0;
	padding:5px;
	line-height: 1.2;
}
.searchresult #content article h1 {
	margin-bottom: 0;
	font-size: 1.3em;
	font-weight: 600;
}
.searchresult #content article p {
	margin: 0;
	color: #333;
}
.searchresult #content article em { font-weight: bold; }

#article #content {
	height: calc(100vh - 180px);
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	padding-right: 10px;
	-ms-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;
}

#content a {
	text-decoration: none;
	color: #8aaddc;
}
#content a:hover { text-decoration: underline; }
#content p { margin-bottom: 1em; }
#content h1 { margin-bottom: 10px; }
#content section.def,
#content section.box {
	margin-bottom: 20px;
	padding: 10px;
	border: 1px #e6f1ff solid;
}
#content section.def > h1,
#content section.def > h2,
#content section.def > h3 {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 8;
	margin: -10px -10px 10px -10px;
	padding: 5px;
	background-color: #e6f1ff;
	border: 1px #eee solid;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.2;
	color: #333;
}
#content h2 .icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	margin: 0 0 0 -5px;
	vertical-align: top;
}
#content div.box h2 {
	font-size: 14px;
}

/* scrollfix for :target */
#content section.def p,
#content section.def ol,
#content section.def ul,
#content section.def li {
	margin-top: -40px;
	padding-top: 40px;
}
/* resetting for container highlight when commenting */
body.signedin #content section.def p,
body.signedin #content section.def ol,
body.signedin #content section.def ul,
body.signedin #content section.def li {
	margin-top: initial;
	padding-top: initial;
}

#content p a { word-wrap: break-word; }

#content em {
	font-weight: inherit;
	font-style: normal;
	text-decoration: none;
}
#content em.strong { font-weight: bold; }
#content em.italic { font-style: italic; }
#content em.underline { text-decoration: underline; }

#content ol,
#content ul { margin: .5em 0 1em 1.2em; }
#content ol.1 { list-style: decimal; }
#content ol.A { list-style: upper-alpha; }
#content ol.a { list-style: lower-alpha; }
#content ol.I { list-style: upper-roman; margin-left: 1.5em; }
#content ol.i { list-style: lower-roman; }
#content ul.circle { list-style: circle; }
#content ul.bullet { list-style: initial; }
#content ul.free { list-style: none; }
#content li { margin: .5em 0; }
#content li p { margin: 0; }

#content figure { margin: 1em 0; }
#content figure h1 {
	font-family: Helvetica, Arial, sans-serif;
	font-size: unset;
}
#content figure.var-e {
	float: right;
	width: 50%;
	margin-left: 1em;
}

#content table {
	width: 100%;
	margin: .5em 0;
	border-collapse: collapse;
}
#content table caption {
	margin-bottom: .5em;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 100%;
	font-weight: 400;
	text-align: left;
}
#content table th,
#content table td {
	padding: 2px;
	border: 1px #8aaddc solid;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 85%;
	font-weight: 300;
	line-height: 1.2;
}
#content table th {
	background-color: #e6f1ff;
	font-weight: 400;
}
#content table td.center,
#content table th.center { text-align: center; }
#content table td.right,
#content table th.right { text-align: right; }
#content table p { margin: 0; }
#content table p.blank { margin-top: .5em; }
#content table ul,
#content table ol { padding: 0 0 0 15px; }
#content table.var-a tr:nth-child(even) td { background-color: #e6e6e6; }

#content #festInfo {
	font-family: Helvetica, Arial, sans-serif;
	font-size: smaller;
	font-weight: 300;
}

#content #festInfo .items .item { margin-bottom: 30px; }
#content #festInfo .items:last-child .item:last-child { margin-bottom: 0; }
#content #festInfo .item .prodheader    { grid-area: prodheader; }
#content #festInfo .item .names         { grid-area: names; }
#content #festInfo .item .flags         { grid-area: flags; }
#content #festInfo .item .hform         { grid-area: hform; }
#content #festInfo .item .hunits        { grid-area: hunits; }
#content #festInfo .item .hprescription { grid-area: hprescription; }
#content #festInfo .item .hrefund       { grid-area: hrefund; }
#content #festInfo .item .hprice        { grid-area: hprice; }

#content #festInfo .prodheader {
	position: -webkit-sticky;
	position: sticky;
	top: 32px;
	z-index: 5;
	display: grid;
	grid-template-columns: 20% auto 40px 40px 70px;
	grid-template-rows: auto auto;
	grid-template-areas:
		"names names names names flags"
		"hform hunits hprescription hrefund hprice"
	;
	background-color: #fff;
}
#content #festInfo .prodheader div {
	margin: 0 5px;
	font-style: italic;
	color: #ccc;
}
#content #festInfo .prodheader .names {
	margin: 0;
	font-style: normal;
	color: #000;
}
#content #festInfo .prodheader .names span { margin-right: 1em; }
#content #festInfo .prodheader .prescription,
#content #festInfo .prodheader .refund { text-align: center; cursor: help; }
#content #festInfo .prodheader .price { text-align: right; }

#content #festInfo .name {
	margin-right: 1em;
	font-size: larger;
	font-weight: 400;
}
#content #festInfo .producer { align-self: center; }
#content #festInfo .prodheader .flags { text-align: right; }
#content #festInfo .prodheader .flags .warning,
#content #festInfo .prodheader .flags .monitored,
#content #festInfo .prodheader .flags .exemption {
	margin-right: 0;
	font-style: normal;
	font-size: 20px;
	cursor: help;
}
#content #festInfo .prodheader .flags .exemption { cursor: inherit; }
#content #festInfo .warning:before {
	content: '▵';
	display: inline-block;
	width: 20px;
	height: 20px;
	background: transparent url('../gfx/warning.svg') center center no-repeat;
	color: transparent;
}
#content #festInfo .monitored:before {
	content: '▼';
	display: inline-block;
	width: 20px;
	height: 20px;
	background: transparent url('../gfx/monitored.svg') center center no-repeat;
	color: transparent;
}
#content #festInfo .exemption:before {
	content: '◎';
	display: inline-block;
	width: 20px;
	height: 20px;
	background: transparent url('../gfx/exemption.svg') center center no-repeat;
	color: transparent;
}
#content #festInfo .item .product {
	display: grid;
	grid-template-columns: 20% auto 40px 40px 70px;
	margin: 0 0 5px 0;
	padding: 1px 3px;
	background-color: #8aaddc11;
	border: 1px rgb(230, 241, 255) solid;
	border-radius: 3px;
}
#content #festInfo .item .product .unit {
	display: grid;
	grid-template-columns: 75% 25%;
	margin: 3px 0;
	padding: 1px 3px;
	background-color: #fff;
	border: 0px #eee solid;
	border-radius: 3px;
}
#content #festInfo .product .form,
#content #festInfo .product .prescription,
#content #festInfo .product .refund,
#content #festInfo .product .price { padding: 5px 0; }
#content #festInfo .product .price,
#content #festInfo .product .unittext { text-align: right; }
#content #festInfo .product .prescription,
#content #festInfo .product .refund {
	text-align: center;
	text-transform: uppercase;
	cursor: help;
}
#content #festInfo .product .strengthname::after { content: ': ' }

#content nav.subnav a {
	display: block;
	margin: 5px 0;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	text-decoration: none;
	color: #666;
}
#content nav.subnav a:hover { text-decoration: underline; }

#content .looser { cursor: help; }

#content em.missingx { display: none; } /* hiding [[MANGLER_KRYSSREFERANSE]] */

body.account td.action a {
	display: inline-block;
	width: calc(50% - 2px);
}

@media all and (max-width: 1450px) {
	#gitter {
		grid-template-columns: 400px 66px minmax(500px, 738px) 250px;
		grid-template-areas:
			"header header header header"
			"menu submenu article aside"
			"footer footer footer footer"
		;
	}
	body.fullwidth #gitter {
		grid-template-areas:
			"header header header header"
			"menu article article aside"
			"footer footer footer footer"
		;
	}
	body.nonotes #gitter {
		grid-template-areas:
			"header header header header"
			"menu submenu article article"
			"footer footer footer footer"
		;
	}
	body.fullwidth.nonotes #gitter {
		grid-template-areas:
			"header header header header"
			"menu article article article"
			"footer footer footer footer"
		;
	}
	#submenu ul { padding-right: 10px;}
	#submenu .label { display: none; }
	body.edge main {
		grid-template-columns: 400px minmax(596px, 942px) 250px;
		grid-template-areas: "menu mainsection aside";
	}
	body.edge main > section { grid-template-columns: 66px minmax(500px, 738px); }
}
@media all and (max-width: 1266px) {
	#gitter {
		grid-template-columns: 400px 66px auto;
		grid-template-rows: 100px 1fr 50px;
		grid-template-areas:
			"header header header"
			"menu submenu article"
			"footer footer footer"
		;
	}
	body.fullwidth #gitter {
		grid-template-areas:
			"header header header"
			"menu article article"
			"footer footer footer"
		;
	}
	#header nav a#notiser-small { display: inline-block; }
	#header nav a#notiser { display: none; }
	#header nav a {
		min-width: 50px !important;
		margin-top: 15px !important;
	}
	#header nav a .label {
		margin-top: -10px;
		font-size: 14px;
	}
	#footer .constrainer { padding: 5px 10px !important; }
	#aside { display: none; }
	body.viewnotes #gitter {
		grid-template-areas:
			"header header header"
			"menu aside aside"
			"footer footer footer"
		;
	}
	body.viewnotes #article,
	body.viewnotes #submenu,
	body.viewnotes #aside nav.scroll { display: none; }
	body.viewnotes.nonotes #aside,
	body.viewnotes #aside { display: block; }
	body.edge main {
		grid-template-columns: 400px minmax(596px, 942px);
		grid-template-areas: "menu mainsection";
	}
	body.edge main > section { grid-template-columns: 66px minmax(500px, 775px); }
	body.edge.viewnotes #gitter { grid-template-areas: "header" "main" "footer"; }
	body.edge.viewnotes main { grid-template-areas: "menu aside" }
	body.edge.viewnotes main > section { display: none; }
}
@media all and (max-width: 996px) {
	#gitter {
		grid-template-columns: 250px minmax(500px, 735px);
		grid-template-areas:
			"header header"
			"submenu article"
			"footer footer"
		;
	}
	body.fullwidth #gitter {
		grid-template-areas:
			"header header"
			"article article"
			"footer footer"
		;
	}
	body.nonotes #gitter {
		grid-template-areas:
			"header header"
			"submenu article"
			"footer footer"
		;
	}
	.frontpage #gitter {
		display: grid;
		grid-template-columns: 0 minmax(300px, 1630px) 0;
		grid-template-rows: 200px auto auto 50px;
		grid-template-areas:
			"header header header"
			". menu ."
			". frontsub ."
			"footer footer footer"
		;
		height: 100vh;
		grid-gap: 10px;
	}
	#header h1 { margin-right: auto; }
	#header nav a { display: none; }
	#header nav a#menyen { display: inline-block !important; }
	#menu {
		display: block;
		position: absolute;
		top: 0;
		left: -500px;
		overflow: hidden;
		height: 100vh;
		max-width: 450px;
		width: 85%;
		transition: left .3s;
		background-color: #fff;
		z-index: 100;
	}
	#menu.fourohfour {
		position: initial;
		height: initial;
		max-width: initial;
		width: initial;
	}
	#menu a.active + ul {
		display: block;
		height: calc(100vh - 168px);
	}
	#menu ul.hidden { display: none; }
	.frontpage #menu {
		display: flex;
		position: unset;
		height: unset;
		max-width: none;
		width: auto;
		background-color: transparent;
	}
	#submenu ul { padding-right: 0;}
	#submenu .label { display: unset; }
	body.touchmenu #menu { left: 0; }
	body.touchmenu #overlay {
		display: block;
		opacity: .6;
		visibility: visible;
	}
	body.viewnotes #gitter {
		grid-template-areas:
			"header header"
			"aside aside"
			"footer footer"
		;
	}
	body.viewnotes #aside { margin: 0 10px; }
	body.edge #header nav { text-align: right; }
	body.edge #header nav a { display: none; }
	body.edge main {
		grid-template-columns: auto;
		grid-template-areas: "mainsection";
	}
	body.edge main #menu { height: auto; }
	body.edge main > section { grid-template-columns: 250px auto; }
	body.edge.viewnotes main { grid-template-areas: "aside aside" }
}
@media all and (max-width: 810px) {
	.frontpage #menu form {
		flex: 0 1 80%;
		order: 0;
		margin-top: 40px;
	}
}
@media all and (max-width: 760px) {
	#gitter { grid-template-columns: 66px minmax(222px, 735px); }
	#header nav a { margin: 15px 0 0 0 !important; }
	#submenu ul { padding-right: 10px; }
	#submenu .label,
	#footer .mylog { display: none !important; }
	#article header { grid-template-columns: auto; }
	#article .meta { display: none; }
	.frontpage #gitter { grid-template-rows: 100px auto auto 50px; }
	.frontpage #header h1 a { grid-template-columns: minmax(120px, 222px) auto; }
	.frontpage #header h1 a img.logo {
		width: auto;
		height: auto;
		max-width: 90px;
		max-height: 90px;
		margin-top: 5px;
	}
	.frontpage #header h1 a { font-size: 30px; }
	#footer address { font-size: 11px; }
	body.edge main > section { grid-template-columns: 66px auto; }
	body.edge.frontpage #gitter { grid-template-rows: 100px auto 50px; }
}
@media all and (max-width: 450px) {
	#gitter {
		grid-template-columns: 66px minmax(222px, 735px);
		grid-template-rows: 100px 1fr;
		grid-template-areas:
			"header header"
			"article article"
		;
		grid-gap: 0;
	}
	#footer { display: none; }
	#submenu { display: none; }
	#header h1 a { font-size: 20px; }
	#article header { border-bottom-width: 1px; }
	#article #content { height: calc(100vh - 138px); padding-right: 0; }
	#content > .article { margin: 0 5px 1em 7px; }
	#content > section > p,
	#content > section > *[class^="alt-"] { margin: 0 5px 1em 7px; }
	body.edge #gitter {
		grid-template-rows: 100px calc(100vh - 170px);
		grid-template-areas:
			"header"
			"main"
		;
		grid-gap: 0;
	}
	body.edge #header h1 { width: auto; }
	body.edge #header nav { display: flex; }
	body.edge main > section {
		grid-template-columns: none;
		grid-gap: 0;
		height: calc(100vh - 100px) !important;
	}
}
@media all and (max-width: 520px) {
	#header nav a .label span { display: none; }
}


/*Tabell id'er ORANSJE (G4) */
#i470967,
#i470954,
#i470922,
#i470847,
#i470553,
.oransje { background-color: #FF9933; }
/*Tabell id'er GUL (G4) */
#i470896,
#i470851,
#i470909,
#i470883,
#i470879,
#i470892,
#i470963,
#i470868,
#i470993,
#i470885,
#i470943,
#i470956,
#i470970,
#i470995,
#i470697,
#i470557,
#i471002,
#i615767,
.gul { background-color: #FFFF33; }
/*Tabell id'er RØD (G4) */
#i470905,
#i470918,
#i470989,
#i470920,
#i470991,
#i470924,
#i470982,
.rød { background-color: #FF3333; }

/*Tabell id'er (G23) */
#i161103,
#i161105,
#i161107,
#i161114,
#i161116,
#i161125,
.grønn { background-color: #66CC33; }

#i161109,
#i161118,
#i161120,
#i161127,
#i161136,
#i161138 { background-color: #FF9933; }

#i161129,
#i161131,
#i161140,
#i161142 { background-color: #FF3333; }
