/* Byens Nyt Læser */

/* ---------- Mit område ---------- */
.bnl-om { margin: 0 0 8px; }
.bnl-om-kicker { margin: 0 0 6px; font: 600 11px/1.3 "Courier New", monospace; letter-spacing: 2px; text-transform: uppercase; color: #777; }
.bnl-om-text { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #444; }
.bnl-om-valgt { display: none; color: inherit; font-weight: 700; }
:root[data-omraade] .bnl-om-ingen, :root:not([data-omraade]) .bnl-om-har { display: none; }
.bnl-om-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.bnl-om .bnl-om-pill, .bnl-om .bnl-om-pill:hover, .bnl-om .bnl-om-pill:focus {
	display: inline-block !important; margin: 0 !important; padding: 7px 14px !important; min-height: 0 !important;
	border: 1.5px solid var(--bnl-c, #00696E) !important; border-radius: 999px !important;
	background: transparent !important; color: var(--bnl-c, #00696E) !important;
	font-weight: 700 !important; font-size: 14px !important; line-height: 1.2 !important; font-family: inherit !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer;
}
.bnl-om .bnl-om-pill:focus-visible { outline: 2px solid var(--bnl-c, #00696E); outline-offset: 2px; }
.bnl-om-pane { display: none; }
.bnl-om-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bnl-om-item { display: flex; flex-direction: column; gap: 6px; color: inherit !important; text-decoration: none !important; }
.bnl-om-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0, 0, 0, .06); }
.bnl-om-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bnl-om-title { font-weight: 700; font-size: 17px; line-height: 1.3; color: #222; }
.bnl-om-item:hover .bnl-om-title { text-decoration: underline; }
.bnl-om-date { font: 11px/1.4 "Courier New", monospace; letter-spacing: 1px; text-transform: uppercase; color: #999; }
.bnl-om-more { margin: 14px 0 0; text-align: right; font: 700 12px/1.3 "Courier New", monospace; letter-spacing: 1.5px; text-transform: uppercase; }
.bnl-om-more a { text-decoration: none; }
@media (max-width: 1024px) { .bnl-om-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.bnl-om-grid { grid-template-columns: 1fr; gap: 14px; }
	.bnl-om-item { flex-direction: row; align-items: flex-start; gap: 12px; }
	.bnl-om-img { flex: 0 0 110px; }
	.bnl-om-item > span:not(.bnl-om-img) { display: block; }
	.bnl-om-item { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 4px; }
	.bnl-om-img { grid-row: 1 / span 2; }
	.bnl-om-title { font-size: 16px; }
}

/* ---------- Mest læste ---------- */
.bnl-top-kicker { margin: 0 0 8px; font: 600 11px/1.3 "Courier New", monospace; letter-spacing: 2px; text-transform: uppercase; color: #d6232f; }
.bnl-top-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.bnl-top-list li { display: flex; gap: 14px; align-items: baseline; margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(127, 127, 127, .25); }
.bnl-top-n { flex: 0 0 22px; font: 700 24px/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif; color: #d6232f; }
.bnl-top-list a { font-weight: 700; font-size: 16px; line-height: 1.35; color: #222; text-decoration: none; }
.bnl-top-list a:hover { text-decoration: underline; }

/* ---------- Læsetid (samme stil som datoen i artiklens byline) ---------- */
.bnl-tid { display: flex; align-items: center; gap: 5px; font-family: "Roboto Mono", "Courier New", monospace; font-size: 11px; font-weight: 600; line-height: 11px; letter-spacing: .08em; text-transform: uppercase; color: #777; white-space: nowrap; }
.bnl-tid svg { width: 11px; height: 11px; flex: 0 0 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Læselinje ---------- */
.bnl-progress { position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); height: 4px; z-index: 99990; pointer-events: none; background: transparent; }
.bnl-progress span { display: block; height: 100%; background: #d6232f; transform: scaleX(0); transform-origin: 0 50%; transition: transform .1s linear; }
@media (prefers-reduced-motion: reduce) { .bnl-progress span { transition: none; } }

/* ---------- Gem til senere (diskret tekst i bylinen) ---------- */
button.bnl-gem, button.bnl-gem:hover, button.bnl-gem:focus {
	display: flex !important; align-items: center; gap: 5px; margin: 0 !important; padding: 0 !important; min-height: 0 !important; width: auto !important;
	border: 0 !important; border-radius: 0 !important; background: none !important; color: #777 !important; box-shadow: none !important; cursor: pointer;
	font-family: "Roboto Mono", "Courier New", monospace !important; font-size: 11px !important; font-weight: 600 !important; line-height: 11px !important;
	letter-spacing: .08em !important; text-transform: uppercase !important; white-space: nowrap;
}
button.bnl-gem:hover .bnl-gem-txt { text-decoration: underline; }
button.bnl-gem:focus-visible { outline: 2px solid currentColor !important; outline-offset: 3px; }
button.bnl-gem svg { width: 11px; height: 11px; flex: 0 0 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
button.bnl-gem[aria-pressed="true"] svg { fill: currentColor; }
:root[data-tema="moerk"] button.bnl-gem { color: #e8e5df !important; }
@media (prefers-color-scheme: dark) { :root[data-tema="system"] button.bnl-gem { color: #e8e5df !important; } }

.bnl-gemte-tom { font-size: 16px; color: #555; }
.bnl-gemte-list { list-style: none; margin: 0; padding: 0; }
.bnl-gemte-item { display: flex; gap: 16px; margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(127, 127, 127, .25); }
.bnl-gemte-img { flex: 0 0 140px; }
.bnl-gemte-img img { display: block; width: 140px; height: 90px; object-fit: cover; }
.bnl-gemte-txt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bnl-gemte-title { font-weight: 700; font-size: 18px; line-height: 1.3; color: #222; text-decoration: none; }
.bnl-gemte-title:hover { text-decoration: underline; }
.bnl-gemte-date { font: 11px/1.4 "Courier New", monospace; letter-spacing: 1px; text-transform: uppercase; color: #999; }
button.bnl-gemte-fjern, button.bnl-gemte-fjern:hover { margin: 0 !important; padding: 0 !important; min-height: 0 !important; border: 0 !important; background: none !important; color: #d6232f !important; font-weight: 600 !important; font-size: 13px !important; line-height: 1.2 !important; font-family: inherit !important; text-decoration: underline; text-transform: none !important; box-shadow: none !important; cursor: pointer; }
@media (max-width: 600px) { .bnl-gemte-img { flex-basis: 96px; } .bnl-gemte-img img { width: 96px; height: 64px; } .bnl-gemte-title { font-size: 16px; } }

/* ---------- Push ---------- */
.bnl-push-ikon { display: inline-flex; align-items: center; vertical-align: middle; color: inherit; }
.bnl-push-ikon button.bnl-push-btn, .bnl-push-ikon button.bnl-push-btn:hover, .bnl-push-ikon button.bnl-push-btn:focus {
	display: inline-flex !important; align-items: center; justify-content: center; width: 32px !important; height: 30px !important; min-height: 0 !important;
	margin: 0 !important; padding: 0 !important; border: 1px solid color-mix(in srgb, currentColor 28%, transparent) !important; border-radius: 999px !important;
	background: none !important; color: inherit !important; box-shadow: none !important; cursor: pointer; opacity: .8;
}
.bnl-push-ikon button.bnl-push-btn:hover { opacity: 1; }
.bnl-push-ikon[data-state="on"] button.bnl-push-btn { opacity: 1; background: color-mix(in srgb, currentColor 16%, transparent) !important; }
.bnl-push-ikon svg, .bnl-push-h svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bnl-push-ikon[data-state="on"] svg { fill: currentColor; }
.bnl-push-ikon .bnl-push-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.bnl-push-kort { max-width: 520px; padding: 24px 28px; border-top: 4px solid #d6232f; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.bnl-push-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; font-size: 20px; line-height: 1.25; }
.bnl-push-h svg { width: 20px; height: 20px; color: #d6232f; }
.bnl-push-p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.bnl-push-kort button.bnl-push-btn, .bnl-push-kort button.bnl-push-btn:hover, .bnl-push-kort button.bnl-push-btn:focus {
	display: inline-block !important; margin: 0 !important; padding: 12px 22px !important; min-height: 0 !important; border: 0 !important; border-radius: 2px !important;
	background: #d6232f !important; color: #fff !important; font-weight: 700 !important; font-size: 16px !important; line-height: 1.2 !important; font-family: inherit !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer;
}
.bnl-push-kort[data-state="on"] button.bnl-push-btn { background: transparent !important; color: inherit !important; border: 1px solid rgba(127, 127, 127, .5) !important; }
.bnl-push-kort[data-state="denied"] button.bnl-push-btn, .bnl-push-kort[data-state="unsupported"] button.bnl-push-btn { opacity: .6; }
.bnl-push-status:empty { display: none; }
.bnl-push-kort .bnl-push-status { margin: 12px 0 0; font-size: 14px; line-height: 1.45; }

/* ---------- Besked nederst ---------- */
.bnl-toast { position: fixed; left: 50%; bottom: 20px; z-index: 100000; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 6px; background: #15191e; color: #fff; font-size: 15px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.bnl-toast.vis { opacity: 1; transform: translate(-50%, 0); }
.bnl-toast a { color: #fff !important; text-decoration: underline; margin-left: 6px; }

/* ---------- Mørk tilstand (Byens Nyt Tema) ---------- */
:root[data-tema="moerk"] .bnl-om .bnl-om-pill[data-o="8370"] { --bnl-c: #5FC4C9 !important; }
:root[data-tema="moerk"] .bnl-om .bnl-om-pill[data-o="8382"] { --bnl-c: #7CC995 !important; }
:root[data-tema="moerk"] .bnl-om .bnl-om-pill[data-o="8450"] { --bnl-c: #AECB7E !important; }
:root[data-tema="moerk"] .bnl-om .bnl-om-pill[data-o="8860"] { --bnl-c: #86C2A6 !important; }
:root[data-tema="moerk"] .bnl-om-img { background: rgba(255, 255, 255, .06); }
:root[data-tema="moerk"] .bnl-push-kort { box-shadow: 0 1px 3px rgba(0, 0, 0, .5); background: #1e242b; }
@media (prefers-color-scheme: dark) {
	:root[data-tema="system"] .bnl-om .bnl-om-pill[data-o="8370"] { --bnl-c: #5FC4C9 !important; }
	:root[data-tema="system"] .bnl-om .bnl-om-pill[data-o="8382"] { --bnl-c: #7CC995 !important; }
	:root[data-tema="system"] .bnl-om .bnl-om-pill[data-o="8450"] { --bnl-c: #AECB7E !important; }
	:root[data-tema="system"] .bnl-om .bnl-om-pill[data-o="8860"] { --bnl-c: #86C2A6 !important; }
	:root[data-tema="system"] .bnl-om-img { background: rgba(255, 255, 255, .06); }
	:root[data-tema="system"] .bnl-push-kort { box-shadow: 0 1px 3px rgba(0, 0, 0, .5); background: #1e242b; }
}
