/* GD Afsnit 1.0 – markér et afsnit (overskrift til næste overskrift) eller hele teksten i en editor. */
.gd-sec-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.gd-sec-layer[hidden] { display: none; }
.gd-sec-hl { position: absolute; border-radius: 6px; background: rgba(47, 99, 196, .12); box-shadow: inset 0 0 0 2px rgba(47, 99, 196, .55); pointer-events: none; transition: top .08s, height .08s; }
.gd-sec-hl[hidden] { display: none; }
.gd-sec-active .gd-sec-hl { background: rgba(47, 99, 196, .16); box-shadow: inset 0 0 0 2px #2f63c4; }
.gd-sec-btn { position: absolute; display: grid; place-items: center; width: 24px; height: 24px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 1px solid #c9d2dc; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #4a5866; cursor: pointer; pointer-events: auto; opacity: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: opacity .12s; }
.gd-sec-btn[hidden] { display: none; }
.gd-sec-wrap:hover .gd-sec-btn, .gd-sec-wrap:focus-within .gd-sec-btn, .gd-sec-btn:focus-visible { opacity: 1; }
.gd-sec-btn:hover, .gd-sec-btn:focus-visible { border-color: #2f63c4; background: #eef3fd; color: #2f63c4; outline: none; }
.gd-sec-all.in-bar { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.gd-sec-all.in-bar:hover, .gd-sec-all.in-bar:focus-visible { color: #2f63c4; }
.gd-sec-bar { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #c9d2dc; border-radius: 9px; background: #fff; box-shadow: 0 6px 20px rgba(20, 30, 40, .16); pointer-events: auto; font-size: 13px; line-height: 1; white-space: nowrap; }
.gd-sec-bar[hidden] { display: none; }
.gd-sec-bar button { display: inline-flex; align-items: center; gap: 4px; height: 28px; min-height: 0; min-width: 0; margin: 0; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: #1f2a33; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: none; }
.gd-sec-bar button:hover, .gd-sec-bar button:focus-visible { background: #eef3fd; color: #2f63c4; outline: none; }
.gd-sec-bar button.is-del:hover, .gd-sec-bar button.is-del:focus-visible { background: #fdecef; color: #b4233f; }
.gd-sec-bar button[hidden] { display: none; }
.gd-sec-bar .is-x { padding: 0 8px; color: #69737d; }
.gd-sec-what { padding: 0 6px 0 7px; color: #69737d; font-size: 12px; font-weight: 600; }
.gd-sec-bar.is-done .gd-sec-what { color: #1f7a4a; }
.gd-sec-mirror { position: absolute !important; top: 0; left: -10000px; visibility: hidden; white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; box-sizing: border-box; border: 0; }
.gd-sec-clip { position: absolute !important; top: 0; left: -10000px; width: 600px; }
.gd-sec-toast { position: fixed; left: 50%; bottom: 22px; z-index: 100001; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: #1f2a33; color: #fff; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); transform: translateX(-50%); transition: opacity .4s; }
.gd-sec-toast.is-out { opacity: 0; }
@media (hover: none) {
	/* Telefon og tablet: ikonerne står der altid (der er ingen mus at holde over). */
	.gd-sec-btn { opacity: .85; }
	.gd-sec-bar button { padding: 0 10px; height: 34px; }
	.gd-sec-toast { bottom: 88px; }
}
@media print { .gd-sec-layer, .gd-sec-all, .gd-sec-bar, .gd-sec-toast { display: none !important; } }
