/*
 Theme Name:   Studenterhue Child
 Theme URI:    https://www.studenterhue-regler.dk/
 Description:  Child theme til GeneratePress. Giver header, footer, artikler og sidebar samme design som den nye forside (plugin "Studenterhue Forside").
 Author:       Studenterhue-regler.dk
 Template:     generatepress
 Version:      1.0.5
 Requires at least: 5.8
 Requires PHP: 7.4
 Text Domain:  studenterhue-child
*/

/* ==========================================================================
   Designvariabler – samme farver og skrifter som forsiden (shr-)
   ========================================================================== */
:root {
	--shc-red: #9b1c23;
	--shc-red-dark: #7d151b;
	--shc-ink: #14213d;
	--shc-text: #2d3440;
	--shc-muted: #5d6573;
	--shc-line: #ece4df;
	--shc-bg: #fbf7f4;
	--shc-soft: #fbeeee;
	--shc-radius: 14px;
	--shc-shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 6px 20px rgba(20, 33, 61, .06);
	--shc-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
	--shc-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Basis
   ========================================================================== */
body {
	font-family: var(--shc-sans);
	color: var(--shc-text);
	background-color: var(--shc-bg);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--shc-red); }
a:hover, a:focus { color: var(--shc-red-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--shc-ink); }

h1, h2,
.entry-title,
.page-header .page-title {
	font-family: var(--shc-serif);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
}

h3, h4, h5, h6 { font-family: var(--shc-sans); font-weight: 700; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--shc-red); outline-offset: 2px; }

/* Knapper */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
.wp-block-button__link {
	background-color: var(--shc-red);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-weight: 700;
	padding: 12px 22px;
}
button:hover, button:focus,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover, input[type="submit"]:focus,
a.button:hover, a.button:focus,
.wp-block-button__link:hover {
	background-color: var(--shc-red-dark);
	color: #fff;
}

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], input[type="number"], textarea, select {
	border: 1px solid var(--shc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--shc-text);
}
input:focus, textarea:focus, select:focus { border-color: var(--shc-red); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--shc-line);
}
.inside-header { padding-top: 18px; padding-bottom: 18px; }

.main-title {
	font-family: var(--shc-serif);
	font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.1;
}
.main-title a, .main-title a:hover { color: var(--shc-ink); }

.site-description {
	color: var(--shc-muted);
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Logo (fx hatte-billedet) – hold det i en fornuftig højde */
.site-logo img, .site-header .header-image { max-height: 64px; width: auto; }

/* Navigation */
.main-navigation,
.main-navigation ul ul { background: #fff; }

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
	color: var(--shc-ink);
	font-family: var(--shc-sans);
	font-weight: 600;
	font-size: .98rem;
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a {
	color: var(--shc-red);
	background: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--shc-red);
	background: transparent;
	box-shadow: inset 0 -3px 0 var(--shc-red);
}

/* Undermenuer som kort */
.main-navigation ul ul {
	border: 1px solid var(--shc-line);
	border-radius: 12px;
	box-shadow: var(--shc-shadow);
	padding: 6px 0;
}
.main-navigation .main-nav ul ul li a { font-weight: 500; font-size: .93rem; padding-top: 9px; padding-bottom: 9px; }
.main-navigation .main-nav ul ul li[class*="current-menu-"] > a { box-shadow: none; background: var(--shc-soft); }
.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a { background: var(--shc-soft); }

/* Mobilmenu */
.main-navigation .menu-toggle { background: transparent; }
@media (max-width: 768px) {
	.main-navigation.toggled .main-nav ul li a { border-bottom: 1px solid var(--shc-line); }
	.main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a { box-shadow: inset 3px 0 0 var(--shc-red); }
	.main-navigation ul ul { border: 0; box-shadow: none; border-radius: 0; }
}

/* ==========================================================================
   Artikler og sider (indlæg, kategorier, søgning m.m.)
   ========================================================================== */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header {
	background: #fff;
	border: 1px solid var(--shc-line);
	border-radius: var(--shc-radius);
	box-shadow: var(--shc-shadow);
}

.entry-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); color: var(--shc-ink); }
h2.entry-title { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
.entry-title a { color: var(--shc-ink); }
.entry-title a:hover { color: var(--shc-red); }

.entry-meta, .entry-meta a, .cat-links, .tags-links, .comments-link { color: var(--shc-muted); font-size: .88rem; }

.entry-content h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* Forsidens kort, knapper og genveje har deres eget design – ingen understregning */
.shc-forside .entry-content a { text-decoration: none; }
.shc-forside .entry-content p a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }

.entry-content ul li::marker,
.entry-content ol li::marker { color: var(--shc-red); font-weight: 700; }

.entry-content blockquote {
	border-left: 4px solid var(--shc-red);
	background: var(--shc-soft);
	border-radius: 0 12px 12px 0;
	padding: 16px 20px;
	font-style: normal;
}

.entry-content img, .featured-image img, .post-image img { border-radius: 12px; }

.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th { background: var(--shc-ink); color: #fff; text-align: left; }
.entry-content th, .entry-content td { border: 1px solid var(--shc-line); padding: 10px 12px; }

.read-more, .read-more-container a { font-weight: 700; }

/* Sidetal */
.paging-navigation .page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 6px 10px;
	border: 1px solid var(--shc-line);
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
}
.paging-navigation .page-numbers.current { background: var(--shc-red); border-color: var(--shc-red); color: #fff; }

/* ==========================================================================
   Sidebar og widgets
   ========================================================================== */
.sidebar .widget {
	background: #fff;
	border: 1px solid var(--shc-line);
	border-radius: var(--shc-radius);
	box-shadow: var(--shc-shadow);
}
.sidebar .widget .widget-title,
.sidebar .widget h2 {
	font-family: var(--shc-sans);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--shc-red);
	margin-bottom: 14px;
}
.sidebar .widget ul { margin: 0; }
.sidebar .widget ul li { border-bottom: 1px solid var(--shc-line); padding: 7px 0; margin: 0; }
.sidebar .widget ul li:last-child { border-bottom: 0; }
.sidebar .widget ul ul { margin: 6px 0 0 12px; }
.sidebar .widget ul ul li:last-child { padding-bottom: 0; }
.sidebar .widget a { color: var(--shc-ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--shc-red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer,
.footer-widgets,
.site-info {
	background: var(--shc-ink);
	color: rgba(255, 255, 255, .78);
}
.footer-widgets { border-top: 4px solid var(--shc-red); }
.footer-widgets .widget-title { color: #fff; font-family: var(--shc-serif); }
.site-footer a,
.footer-widgets a,
.site-info a { color: #fff; }
.site-footer a:hover,
.footer-widgets a:hover,
.site-info a:hover { color: #f4c9cb; }

.site-info { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.site-footer:not(:has(.footer-widgets)) .site-info { border-top: 4px solid var(--shc-red); }

.generate-back-to-top { background: var(--shc-red); border-radius: 50%; }
.generate-back-to-top:hover { background: var(--shc-red-dark); }

/* ==========================================================================
   Den nye forside (plugin "Studenterhue Forside")
   Siden er allerede fuld bredde i GeneratePress, så pluginets "break out"
   (100vw) slås fra – det gav en vandret scrollbar.
   ========================================================================== */
.shc-forside .shr-full { width: auto; margin-left: 0; margin-right: 0; }
.shc-forside { overflow-x: clip; background: #fff; }

/* Sikkerhedsnet, hvis "Content Container: Full Width" ikke er valgt på siden */
.shc-forside .site.grid-container { max-width: none; }
.shc-forside .site-content { padding: 0; display: block; }
.shc-forside .content-area { width: 100%; }
.shc-forside .site-main { margin: 0; }
.shc-forside .inside-article,
.shc-forside.separate-containers .inside-article,
.shc-forside.one-container .site-content {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.shc-forside .entry-content { margin-top: 0; }
.shc-forside .entry-header { display: none; }

/* Forsiden har sin egen afslutning – ingen dobbelt rød streg over footeren */
.shc-forside .site-info { border-top-color: rgba(255, 255, 255, .12); }

/* Hero-billedet: glider blødt over i sektionens baggrund (som i mockup'en)
   og holder fokus på pigen, uanset boksens format */
.shr-hero__text { position: relative; z-index: 1; }
.shr-hero__media { margin-left: -120px; }
.shr-hero__media img {
	object-position: 30% 30%;
	border-radius: 0;
	-webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 10%, rgba(0,0,0,.85) 20%, #000 28%);
	        mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 10%, rgba(0,0,0,.85) 20%, #000 28%);
}
/* Mobil: billedet ligger under teksten – fade fra toppen i stedet */
@media (max-width: 980px) {
	.shr-hero__media { margin-left: -20px; }
	.shr-hero__media img {
		object-position: 30% 25%;
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
		        mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
	}
}

/* ==========================================================================
   Header v1.0.3 – som mockup'en: hatte-logo, "Studenterhue-regler.dk",
   menu med pile og rund søgeknap
   ========================================================================== */
.site-header { box-shadow: 0 1px 0 var(--shc-line); border-bottom: 0; }
.inside-header { padding-top: 10px; padding-bottom: 10px; align-items: center; }

.shc-brand { margin: 0; line-height: 1; }
.shc-brand a {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--shc-ink);
	text-decoration: none;
}
.shc-brand a:hover { color: var(--shc-ink); }
.shc-logo { width: 87px; height: auto; flex: none; transition: transform .2s ease; }
.shc-brand a:hover .shc-logo { transform: rotate(-4deg); }
.shc-brand__name {
	font-family: var(--shc-sans);
	font-size: clamp(1.35rem, 1rem + 1.1vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -.025em;
	white-space: nowrap;
}
.shc-brand__tld { color: var(--shc-red); }

/* Menu */
.main-navigation .main-nav ul li a {
	font-weight: 700;
	font-size: 1.02rem;
	padding-left: 16px;
	padding-right: 16px;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a { box-shadow: none; }
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a { color: var(--shc-red); }
.main-navigation .dropdown-menu-toggle { padding-left: 6px; }
.main-navigation .dropdown-menu-toggle .gp-icon svg { width: .8em; height: .8em; }

/* Rund søgeknap */
.main-navigation .menu-bar-items { margin-left: 14px; align-items: center; }
.main-navigation .menu-bar-item.search-item > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	background: #f1f1f3;
	color: var(--shc-ink);
	line-height: 1;
	transition: background .15s ease, color .15s ease;
}
.main-navigation .menu-bar-item.search-item > a:hover,
.main-navigation .menu-bar-item.search-item > a:focus,
.main-navigation .menu-bar-item.search-item.active > a,
.main-navigation .menu-bar-item.search-item.close-search > a {
	background: var(--shc-soft);
	color: var(--shc-red);
}
.main-navigation .menu-bar-item.search-item .gp-icon svg { width: 20px; height: 20px; top: 0; }

/* Søgefeltet, der åbner hen over menuen */
.navigation-search input[type="search"],
.navigation-search input[type="search"]:focus {
	background: #fff;
	color: var(--shc-ink);
	border: 2px solid var(--shc-ink);
	border-radius: 999px;
	padding-left: 22px;
	height: 46px;
	top: 50%;
	transform: translateY(-50%);
}

/* Mobil */
@media (max-width: 768px) {
	.inside-header { padding-top: 8px; padding-bottom: 8px; }
	.shc-logo { width: 58px; }
	.shc-brand a { gap: 10px; }
	.shc-brand__name { font-size: 1.2rem; }
	.main-navigation .menu-bar-item.search-item > a { width: 40px; height: 40px; }
	.main-navigation .menu-toggle { font-weight: 700; }
	.has-inline-mobile-toggle .mobile-menu-control-wrapper { align-items: center; gap: 6px; }
}
@media (max-width: 420px) {
	.shc-brand__name { font-size: 1.05rem; }
	.shc-logo { width: 48px; }
}

/* ==========================================================================
   v1.0.4 – Moderne sider, indholdsfortegnelse, blog-kort og kontaktside
   ========================================================================== */

/* ---------- Fælles: pille, brødkrummer ---------- */
.shc-pill {
	display: inline-block;
	background: var(--shc-soft);
	color: var(--shc-red);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
	text-decoration: none !important;
}
a.shc-pill:hover { background: var(--shc-red); color: #fff; }

.shc-breadcrumbs {
	font-size: .85rem;
	color: var(--shc-muted);
	margin: 0 0 16px;
	line-height: 1.5;
}
.shc-breadcrumbs a { color: var(--shc-muted); text-decoration: none; }
.shc-breadcrumbs a:hover { color: var(--shc-red); }
.shc-breadcrumbs .breadcrumb_last { color: var(--shc-ink); font-weight: 600; }
.shc-blog .site-main > .shc-breadcrumbs { grid-column: 1 / -1; margin-bottom: 0; }

/* ---------- Indlæg og sider ---------- */
.shc-article .entry-header {
	padding-bottom: 22px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--shc-line);
}
.shc-article .entry-title { margin-bottom: .25em; }
.shc-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.shc-readtime { color: var(--shc-muted); font-size: .85rem; }
.shc-readtime::before { content: "⏱"; margin-right: 5px; font-size: .9em; }

.shc-article .entry-meta { margin-top: 6px; }
.shc-article .entry-meta .byline::before { content: "· "; }
.shc-article footer.entry-meta {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--shc-line);
}

.shc-article .featured-image,
.shc-article .page-header-image-single { margin-bottom: 28px; }
.shc-article .featured-image img { border-radius: var(--shc-radius); width: 100%; }

.shc-article .entry-content { font-size: 1.06rem; }
.shc-article .entry-content > p:first-child { font-size: 1.15rem; color: var(--shc-ink); }
.entry-content h2, .entry-content h3 { scroll-margin-top: 24px; }
.admin-bar .entry-content h2, .admin-bar .entry-content h3 { scroll-margin-top: 56px; }

/* Forrige / næste indlæg som to kort */
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: var(--shc-bg);
	border: 1px solid var(--shc-line);
	border-radius: 12px;
	padding: 14px 18px;
	margin: 0;
}
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .gp-icon { display: none; }
.post-navigation a { color: var(--shc-ink); font-weight: 700; text-decoration: none; }
.post-navigation a:hover { color: var(--shc-red); }

/* ---------- Indholdsfortegnelse ---------- */
.shc-toc {
	margin: 8px 0 36px;
	background: #fdf5f4;
	border: 1px solid #f3dedb;
	border-radius: var(--shc-radius);
	padding: 4px 22px;
}
.shc-toc summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
}
.shc-toc summary::-webkit-details-marker { display: none; }
.shc-toc summary::before {
	content: "";
	width: 34px; height: 34px; flex: none;
	border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b1c23' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E") center / 18px no-repeat;
	box-shadow: 0 1px 2px rgba(20,33,61,.08);
}
.shc-toc summary::after {
	content: "";
	margin-left: auto;
	width: 10px; height: 10px;
	border-right: 2px solid var(--shc-ink);
	border-bottom: 2px solid var(--shc-ink);
	transform: rotate(45deg) translateY(-3px);
	transition: transform .2s ease;
}
.shc-toc details:not([open]) summary::after { transform: rotate(-45deg); }
.shc-toc__title { font-weight: 800; color: var(--shc-ink); font-size: 1.05rem; }
.shc-toc__count { color: var(--shc-muted); font-size: .82rem; background: #fff; border-radius: 999px; padding: 3px 10px; }

.entry-content .shc-toc ol { list-style: none; margin: 0; padding: 0; }
.entry-content .shc-toc li { margin: 0; }
.entry-content .shc-toc li::marker { content: none; }
.shc-toc__list { display: grid; gap: 6px; padding-bottom: 18px !important; }
.entry-content .shc-toc a { text-decoration: none; }
.shc-toc__list > li > a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	background: #fff;
	border: 1px solid #f1e3e0;
	border-radius: 10px;
	padding: 10px 14px;
	color: var(--shc-ink);
	font-weight: 600;
	font-size: .96rem;
	line-height: 1.4;
	transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.shc-toc__list > li > a:hover { border-color: var(--shc-red); color: var(--shc-red); transform: translateX(2px); }
.shc-toc__n { color: var(--shc-red); font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; }
.shc-toc__sub { margin: 4px 0 4px 40px !important; display: grid; gap: 2px; }
.shc-toc__sub a {
	display: block;
	color: var(--shc-muted);
	font-size: .9rem;
	padding: 4px 10px;
	border-left: 2px solid #f1e3e0;
}
.shc-toc__sub a:hover { color: var(--shc-red); border-left-color: var(--shc-red); }
@media (min-width: 1100px) {
	.no-sidebar .shc-toc__list { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Kort (Læs også, undersider, [shc_seneste]) ---------- */
.shc-cards { margin: 48px 0 8px; clear: both; }
.shc-cards__title {
	font-family: var(--shc-serif);
	font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem);
	color: var(--shc-ink);
	margin: 0 0 18px;
}
.shc-cards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}
.shc-card { margin: 0; }
.entry-content .shc-card__link,
.shc-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--shc-line);
	border-radius: var(--shc-radius);
	box-shadow: var(--shc-shadow);
	overflow: hidden;
	color: var(--shc-text);
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.shc-card__link:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,33,61,.06), 0 14px 32px rgba(20,33,61,.12); color: var(--shc-text); }
.shc-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--shc-soft); }
.shc-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .4s ease; }
.shc-card__link:hover .shc-card__img img { transform: scale(1.04); }
.shc-card__ph {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, #fbeeee 0%, #f6e3df 100%);
}
.shc-card__ph img { width: 34% !important; height: auto !important; object-fit: contain !important; opacity: .9; }
.shc-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.shc-card__meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--shc-muted); }
.shc-card__title { font-family: var(--shc-serif); font-weight: 700; font-size: 1.18rem; line-height: 1.25; color: var(--shc-ink); }
.shc-card__text { font-size: .93rem; color: var(--shc-muted); line-height: 1.55; }
.shc-card__more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .9rem; color: var(--shc-red); }

/* "Læs også" ligger under artiklen */
.shc-related { padding: 8px 0 0; }

/* ---------- Blog / kategori / søgning: kortgitter ---------- */
.shc-blog .site-main {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
	align-items: stretch;
}
.shc-blog .site-main > * { margin: 0 !important; }
.shc-blog .site-main > .page-header,
.shc-blog .site-main > .paging-navigation,
.shc-blog .site-main > .no-results,
.shc-blog .site-main > nav:not(.shc-breadcrumbs) { grid-column: 1 / -1; }

.shc-blog .page-header {
	background: linear-gradient(100deg, #fff 0%, #fbf3ef 55%, #f6e7e2 100%) !important;
	padding: 38px 40px !important;
}
.shc-blog .page-header .page-title {
	font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
	color: var(--shc-ink);
	margin: 0;
}
.shc-blog .page-header .taxonomy-description,
.shc-blog .page-header .page-description { color: var(--shc-text); max-width: 680px; margin-top: 10px; }
.shc-blog .page-header .taxonomy-description p:last-child { margin-bottom: 0; }

.shc-blog.separate-containers .site-main article .inside-article {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.shc-blog.separate-containers .site-main article .inside-article:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(20,33,61,.06), 0 14px 32px rgba(20,33,61,.12);
}
.shc-blog .site-main article .post-image {
	order: -1;
	margin: 0 !important;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--shc-soft);
}
.shc-blog .site-main article .post-image a { display: block; height: 100%; }
.shc-blog .site-main article .post-image img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform .4s ease;
}
.shc-blog .site-main article .inside-article:hover .post-image img { transform: scale(1.04); }
.shc-blog .site-main article .post-image.shc-card__ph a { display: flex; align-items: center; justify-content: center; }

.shc-blog .site-main article .entry-header { padding: 20px 22px 0; }
.shc-blog .site-main article .entry-title { font-size: 1.25rem; line-height: 1.3; margin: 0; }
.shc-blog .site-main article .entry-header .entry-meta { font-size: .8rem; margin-top: 8px; }
.shc-blog .site-main article .entry-summary,
.shc-blog .site-main article .entry-content {
	padding: 0 22px;
	margin-top: 10px;
	color: var(--shc-muted);
	font-size: .94rem;
	line-height: 1.6;
}
.shc-blog .site-main article .entry-summary p { margin-bottom: 0; }
.shc-blog .site-main article .read-more { display: inline-block; margin-top: 10px; text-decoration: none; }
.shc-blog .site-main article footer.entry-meta {
	margin-top: auto;
	padding: 14px 22px 18px;
	font-size: .8rem;
	border-top: 1px solid var(--shc-line);
	margin-top: auto;
}
.shc-blog .site-main article footer.entry-meta .tags-links,
.shc-blog .site-main article footer.entry-meta .comments-link { display: none; }
.shc-blog .site-main article .entry-summary + footer.entry-meta,
.shc-blog .site-main article .entry-content + footer.entry-meta { margin-top: auto; }
.shc-blog .site-main article .inside-article > *:nth-last-child(1):not(footer) { padding-bottom: 20px; }

/* Søgeformular på "ingen resultater" */
.shc-blog .no-results .search-form { display: flex; gap: 10px; max-width: 520px; }
.shc-blog .no-results .search-field { flex: 1; }

/* ---------- Kontakt ---------- */
.shc-kontakt .entry-header { border-bottom: 0; margin-bottom: 8px; padding-bottom: 0; }
.shc-kontakt .entry-title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }

.shc-contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px;
	align-items: start;
}
.shc-contact__panel {
	position: relative;
	overflow: hidden;
	background: var(--shc-ink);
	color: rgba(255,255,255,.82);
	border-radius: var(--shc-radius);
	padding: 34px 32px;
	box-shadow: var(--shc-shadow);
}
.shc-contact__panel::after {
	content: "";
	position: absolute;
	right: -40px; bottom: -30px;
	width: 190px; height: 107px;
	background: url("assets/hue-logo.png") center / contain no-repeat;
	opacity: .12;
	transform: rotate(-12deg);
	pointer-events: none;
}
.shc-contact__eyebrow {
	display: block;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #f4a9ad;
	margin-bottom: 8px;
}
.shc-contact__panel h2 { color: #fff; margin: 0 0 .5em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.shc-contact__panel p { margin: 0 0 1.4em; }
.shc-contact__links strong { display: block; color: #fff; font-size: .92rem; margin-bottom: 10px; }
.entry-content .shc-contact__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry-content .shc-contact__links li { margin: 0; }
.entry-content .shc-contact__links li::marker { content: none; }
.entry-content .shc-contact__links a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 14px;
	border-radius: 10px;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.12);
	color: #fff;
	font-weight: 600;
	font-size: .94rem;
	text-decoration: none;
	transition: background .15s ease;
}
.entry-content .shc-contact__links a:hover { background: rgba(255,255,255,.14); color: #fff; }

.shc-contact__form {
	background: #fff;
	border: 1px solid var(--shc-line);
	border-radius: var(--shc-radius);
	box-shadow: var(--shc-shadow);
	padding: 32px;
}
/* Kontaktsiden: formularen er selv et kort, så artiklens kort-ramme fjernes */
.shc-kontakt.separate-containers .inside-article {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding-left: 0;
	padding-right: 0;
}

/* Contact Form 7 */
.wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}
.wpcf7-form > * { grid-column: 1 / -1; }
.wpcf7-form > p:nth-of-type(1),
.wpcf7-form > p:nth-of-type(2) { grid-column: auto; }
.wpcf7-form p { margin: 0 0 18px; }
.wpcf7-form label {
	display: block;
	font-weight: 700;
	font-size: .9rem;
	color: var(--shc-ink);
}
.wpcf7-form label br { display: none; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 7px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
	width: 100%;
	background: var(--shc-bg);
	border: 1.5px solid var(--shc-line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 1rem;
	color: var(--shc-ink);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.wpcf7-form textarea { min-height: 170px; height: 190px; resize: vertical; }
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	background: #fff;
	border-color: var(--shc-red);
	box-shadow: 0 0 0 4px rgba(155, 28, 35, .1);
	outline: none;
}
.wpcf7-form .wpcf7-submit {
	background: var(--shc-red);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 14px 34px;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--shc-red-dark); transform: translateY(-1px); }
.wpcf7-form .wpcf7-spinner { vertical-align: middle; }
.wpcf7-form .wpcf7-recaptcha,
.wpcf7-form .g-recaptcha { margin: 0 0 18px; }

.wpcf7-not-valid-tip { color: var(--shc-red); font-size: .82rem; font-weight: 600; margin-top: 5px; }
.wpcf7-form .wpcf7-not-valid { border-color: var(--shc-red) !important; background: #fff !important; }
.wpcf7 form .wpcf7-response-output {
	margin: 4px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	border-width: 1.5px;
	font-size: .92rem;
	font-weight: 600;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #2f8a4a; background: #eef8f1; color: #1f5f32; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: var(--shc-red); background: #fdf2f2; color: var(--shc-red-dark); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
	.shc-contact { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
	.wpcf7-form { grid-template-columns: 1fr; }
	.wpcf7-form > p:nth-of-type(1),
	.wpcf7-form > p:nth-of-type(2) { grid-column: 1 / -1; }
	.shc-contact__form, .shc-contact__panel { padding: 24px 20px; }
	.wpcf7-form .wpcf7-submit { width: 100%; }
	.shc-blog .page-header { padding: 26px 22px !important; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; text-align: left; }
	.shc-toc { padding: 2px 16px; }
	.shc-toc__sub { margin-left: 16px !important; }
}

/* ==========================================================================
   v1.0.5 – Header-rettelser: én linje + skjult søgefelt indtil klik
   ========================================================================== */

/* Søgefeltet er kun synligt, når man har klikket på forstørrelsesglasset */
.main-navigation .navigation-search:not(.nav-search-active) { display: none !important; }
.main-navigation .navigation-search.nav-search-active {
	display: flex;
	align-items: center;
	position: absolute;
	top: 0; bottom: 0; left: 0;
	right: 64px;
	background: #fff;
	z-index: 30;
}
.main-navigation .navigation-search.nav-search-active input[type="search"] {
	position: static;
	top: auto;
	transform: none;
	width: 100%;
	height: 46px;
	opacity: 1;
}
.main-navigation .inside-navigation { position: relative; }

/* Logo og menu på én linje */
.inside-header { flex-wrap: nowrap; gap: 24px; }
.inside-header .site-branding-container,
.inside-header .site-branding,
.inside-header .shc-brand { flex: none; }
.inside-header .main-navigation { flex: 1 1 auto; min-width: 0; margin-left: auto; }
.main-navigation .inside-navigation { flex-wrap: nowrap; justify-content: flex-end; }
.main-navigation .main-nav > ul { flex-wrap: nowrap; }
.main-navigation .main-nav > ul > li > a { white-space: nowrap; }

.shc-logo { width: 76px; }
.shc-brand a { gap: 12px; }
.shc-brand__name { font-size: clamp(1.3rem, .9rem + .9vw, 1.65rem); }
.main-navigation .main-nav ul li a { padding-left: 12px; padding-right: 12px; font-size: 1rem; }

/* Mellemstore skærme (laptop/tablet på tværs) */
@media (min-width: 769px) and (max-width: 1180px) {
	.inside-header { gap: 14px; padding-left: 20px; padding-right: 20px; }
	.shc-logo { width: 58px; }
	.shc-brand a { gap: 8px; }
	.shc-brand__name { font-size: 1.2rem; }
	.main-navigation .main-nav ul li a { padding-left: 8px; padding-right: 8px; font-size: .9rem; }
	.main-navigation .dropdown-menu-toggle { padding-left: 3px; }
	.main-navigation .menu-bar-items { margin-left: 6px; }
	.main-navigation .menu-bar-item.search-item > a { width: 40px; height: 40px; }
}

/* Mobil: GeneratePress' egen mobilmenu – søgefeltet dækker hele bjælken */
@media (max-width: 768px) {
	.inside-header { flex-wrap: wrap; }
	.main-navigation .navigation-search.nav-search-active { right: 0; padding: 0 12px; }
}
