/*
 * Gladsaxe template – additions on top of smartone.css (the original SmartOne stylesheet with
 * its layout classes prefixed "gs-" so they do not clash with Bootstrap 5 used by Joomla 6).
 * Fonts are self-hosted: no requests to Google from visitors' browsers.
 */
@font-face { font-family: 'Sintony'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/sintony-400.woff2) format('woff2'); }
@font-face { font-family: 'Sintony'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/sintony-700.woff2) format('woff2'); }
@font-face { font-family: 'Droid Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/droidsans-400.woff2) format('woff2'); }
@font-face { font-family: 'Droid Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/droidsans-700.woff2) format('woff2'); }

/* Bootstrap 5 reboot sets its own body font/colour – restore the SmartOne look. */
body.background { font: 13px/180% Arial, Helvetica, sans-serif; color: #303030; background: #909090; }
body.background a { color: #F15A23; text-decoration: none; }
body.background a:hover { color: #000; text-decoration: underline; }
body.background h1, body.background h2, body.background h3, body.background h4 { font-family: 'Droid Sans', Arial, Helvetica, sans-serif; line-height: 1.3; }
body.background #navigation .menu a,
body.background #navigation .menu a:hover { text-decoration: none; }
body.background #navigation .menu ul a { color: #fff; }
body.background #navigation .menu > li > a { color: #3a3a3a; }
body.background #navigation .menu > li.active > a,
body.background #navigation .menu > li > a:hover { color: #f15a23; }

/* Parent items get the caret the old menu override rendered with Font Awesome 3. */
#navigation .menu > li.parent > a::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: 6px; font-size: 12px; }
#navigation .menu ul li.parent > a::after { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; float: right; }
#navigation .menu ul { z-index: 1000; padding: 0; }

/*
 * Mobile menu (same breakpoint as smartone.css: narrow screens and high-density screens up to
 * 1024px). The toggle button replaces the jQuery slideToggle; the colours above are for the
 * light desktop bar, the opened mobile menu is dark with white entries.
 */
#menu-icon { border: 0; border-bottom: 1px solid #EFEFEF; border-radius: 0; box-shadow: none; text-shadow: none; text-align: left; font-weight: 400; color: #3a3a3a; margin: 0; }
#menu-icon .menu-icon-title { font-weight: 400; }
#menu-icon .fa-angles-down { float: right; font-size: 24px; line-height: 55px; padding: 0 14px 0 0; color: #3a3a3a; }
#navbar.is-open { display: block; }
@media all and (max-width:768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
	#navbar { height: auto; }
	#navigation .menu > li { float: none; }
	#navigation .menu ul { position: static; opacity: 1; visibility: visible; margin: 0; }
	body.background #navigation .menu > li > a,
	body.background #navigation .menu > li.active > a,
	body.background #navigation .menu > li > a:hover { color: #fff; }
	body.background #navigation .menu > li > a { height: auto; line-height: 50px; }
	body.background #navigation .menu ul a { color: #fff; }
	#navigation .menu ul li { border-top: 1px solid #4c4c4c; }
}

/* Sidebar modules: Joomla 6 module markup uses plain lists. */
#sidebar .module { margin-bottom: 20px; }
#sidebar .module ul { list-style: none; margin: 0; padding: 0; }
#sidebar .module-body { padding: 10px; }

/* Content: article/blog markup of the template overrides (html/com_content, html/layouts). */
#comp-wrap .page-header h1, #comp-wrap .page-header h2 { margin: 0 0 10px; }
#comp-wrap .item-page, #comp-wrap .blog-featured, #comp-wrap .com-content-category-blog { margin-bottom: 20px; }
#comp-wrap img { max-width: 100%; height: auto; }
#comp-wrap table { max-width: 100%; }
/* Article titles are dark like the old site; "body.background a" would paint them orange. */
body.background .item-page-title, body.background .item-page-title a { color: #333; text-decoration: none; }
body.background .item-page-title a:hover { color: #F15A23; text-decoration: none; }
#comp-wrap h1.item-page-title, #comp-wrap h2.item-page-title { font-size: 20px; line-height: 35px; font-weight: 700; padding: 0 70px 5px 0; margin: 0 0 10px; }
#comp-wrap .leading, #comp-wrap .items-row .item { position: relative; margin-bottom: 20px; }
#comp-wrap ul.button-icons { list-style: none; }
#comp-wrap ul.button-icons li { list-style: none; background: none; }
#comp-wrap ul.button-icons img { width: auto; height: auto; max-width: none; }
#comp-wrap .iteminfo { font-size: 11px; color: #999; line-height: 20px; margin: 0 0 5px; }
#comp-wrap .iteminfo i { margin-right: 2px; }
#comp-wrap .item-separator { clear: both; }
#comp-wrap .items-more ol { margin: 0 0 10px 30px; padding: 0; }
#comp-wrap .gs-pagination { clear: both; margin: 20px 0 0; }
#comp-wrap .gs-pagination .counter { float: right; margin: 6px 0 0; }

/* Attachments lists: a compact table as wide as its content (like Attachments 3 on the old site). */
#comp-wrap div.attachmentsContainer { margin: 0 0 15px; }
#comp-wrap div.attachmentsList table { width: auto; min-width: 0; max-width: 100%; margin: 0 0 4px; border-collapse: collapse; }
#comp-wrap div.attachmentsList caption { caption-side: top; color: #303030; padding: 0; }
#comp-wrap div.attachmentsList td.at_edit { white-space: nowrap; }
#comp-wrap div.attachmentsList td.at_edit a { margin: 0 1px !important; cursor: pointer; }
#comp-wrap div.attachmentsList a.at_icon img { margin-right: 4px; }
#comp-wrap div.addattach a, #comp-wrap div.addattach a:link { color: #F00; cursor: pointer; }
/* One light design: keep the striped rows light in browsers that prefer a dark colour scheme. */
@media (prefers-color-scheme: dark) {
	#comp-wrap div.attachmentsList table tbody tr.even td { background-color: #EEE; }
	#comp-wrap div.attachmentsList a.at_url:link { color: #F15A23; }
}

/* Pagination (Joomla 6 markup) in the site colours. */
#comp-wrap .pagination { margin: 0; }
#comp-wrap .pagination .page-link { color: #F15A23; border-color: #ddd; padding: 4px 10px; font-size: 13px; }
#comp-wrap .pagination .page-item.active .page-link { color: #fff; background: #F15A23; border-color: #ca4211; }
#comp-wrap .pagination .page-item.disabled .page-link { color: #999; }
/*
 * Buttons. "body.background a" (orange links) is more specific than Bootstrap's .btn colours, so
 * link buttons got orange text on an orange background; smartone.css also paints every
 * button[type=button] orange, which hit the passkey and show-password buttons.
 */
body.background .btn { line-height: 1.5; min-height: 0; padding: 6px 14px; font-size: 13px; text-shadow: none; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
body.background .btn-primary,
body.background a.btn-primary,
body.background a.btn-primary:visited { color: #fff; background: #F15A23; border: 1px solid #ca4211; }
body.background .btn-primary:hover,
body.background .btn-primary:focus,
body.background a.btn-primary:hover { color: #fff; background: #303030; border-color: #1f1e1e; text-decoration: none; }
body.background .btn-secondary,
body.background a.btn-secondary,
body.background button.btn-secondary[type="button"] { color: #303030; background: #f4f4f4; border: 1px solid #cfcfcf; text-shadow: none; }
body.background .btn-secondary:hover,
body.background a.btn-secondary:hover,
body.background button.btn-secondary[type="button"]:hover { color: #fff; background: #303030; border-color: #1f1e1e; text-decoration: none; }
body.background .btn [class^="icon-"], body.background .btn [class*=" icon-"] { color: inherit; }
/* Passkey ("log på med adgangskodenøgle"): the SVG has no intrinsic size and filled the button. */
body.background .plg_system_webauthn_login_button { margin: 10px 0; }
body.background .plg_system_webauthn_login_button svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
/* Show-password toggle sits flush against the input. */
body.background .input-password-toggle { margin: 0; min-height: 0; line-height: 1.5; }
body.background .input-group > .form-control { margin-bottom: 0; }
#comp-wrap .com-users-reset, #comp-wrap .com-users-login, #comp-wrap .com-users-remind { max-width: 520px; }
#system-message-container joomla-alert { margin-bottom: 15px; }

/* Footer */
#footer-w, #footer-w a { color: #868686; }
#footer .copyright { float: left; padding: 5px 10px; }
