/*
 Theme Name:   GeneratePress Child (360)
 Template:     generatepress
 Description:  360's child theme for experiment site C. Our own changes live here (house rule).
 Author:       360 Online Marketing
 Version:      1.0.0
*/

/* =========================================================================
   Session 03 (2026-12-02): layout and template styles that reproduce B.
   Spec: eksperiment/tools/03/chrome/chrome-spec.md. "Hidden" for the checks
   means display:none / visibility:hidden / [hidden] only.
   ========================================================================= */

/* --- 1. Right sidebar: hidden below 768 px, beside the content from 768 up (spec 3.2) --- */
@media (max-width: 767px) {
	.is-right-sidebar,
	#right-sidebar {
		display: none !important;
	}
}

/* GeneratePress' static main.css stacks content and sidebar at max-width 768px; B kept them side by side at 768. */
@media (min-width: 768px) and (max-width: 768px) {
	.site-content {
		flex-direction: row;
	}
	.right-sidebar .container .site-content .content-area {
		width: 73%;
	}
	.right-sidebar .is-right-sidebar.sidebar {
		width: 27%;
	}
	.no-sidebar .container .site-content .content-area {
		width: 100%;
	}
}

/* --- 2. Sidebar widgets (B: text widgets with boxed images and orange buttons) --- */
.sidebar .widget img {
	max-width: 100%;
	height: auto;
	display: block;
}
.sb-button-wrap {
	text-align: center;
	margin: 0.5em 0;
}
.sb-button {
	display: inline-block;
	padding: 12px 20px;
	background-color: #e6aa5a;
	border: 1px solid #e6aa5a;
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 3px;
}
.sb-button:hover,
.sb-button:focus {
	color: #fff;
	opacity: 0.85;
}
.sidebar .widget_categories ul,
.sidebar .widget_categories li {
	list-style: none;
	margin-left: 0;
}

/* --- 3. Search form (no visible words) --- */
.sb-searchform {
	display: flex;
	gap: 0;
}
.sb-searchform .search-field {
	flex: 1 1 auto;
	min-width: 0;
}
.sb-searchform .search-submit {
	flex: 0 0 auto;
	padding: 0 14px;
	line-height: 1;
}

/* --- 4. Archive cards: 3 columns at 1440 and 768, 1 at 390 (spec 5.3) --- */
.sb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 20px;
	margin-bottom: 30px;
}
@media (max-width: 767px) {
	.sb-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
.sb-card__image {
	display: block;
}
.sb-card__image img {
	display: block;
	width: 100%;
	height: auto;
	/* B's cards used the 495x400 crop; where that size is missing on disk, crop the same way (session 03). */
	aspect-ratio: 495 / 400;
	object-fit: cover;
}
.sb-card__title {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 400;
	text-transform: none;
	margin: 10px 0 5px;
}
.sb-card__excerpt {
	font-size: 13px;
	line-height: 1.6;
}
.sb-card__excerpt h2 {
	font-family: "News Cycle", sans-serif;
	font-size: 16.5px;
	font-weight: 700;
	color: rgb(113, 130, 185);
	text-transform: none;
}

/* --- 5. Tag archive sections (spec 5.4) --- */
.sb-tag-section + .sb-tag-section {
	margin-top: 40px;
}
.sb-tag-section__title {
	text-transform: none;
}

/* --- 6. Template headings and paragraphs that the look check reads (spec 7) --- */
.sb-author-box__text p,
.sb-search-form-field p,
.sb-search-fail p,
.sb-404 p,
.sb-empty p {
	font-size: 15px;
	line-height: 24.75px;
	color: rgb(27, 34, 42);
}
.sb-empty .entry-title {
	font-family: "News Cycle", sans-serif;
	font-size: 25px;
	font-weight: 300;
	color: rgb(34, 34, 34);
	text-transform: none;
}
.sb-entry--author .sb-entry__title {
	font-family: "News Cycle", sans-serif;
	font-size: 19px;
	font-weight: 300;
	color: rgb(113, 130, 185);
	text-transform: none;
	margin: 5px 0;
}
.sb-entry--search .sb-entry__title {
	font-family: "News Cycle", sans-serif;
	font-size: 18.2px;
	font-weight: 300;
	color: rgb(113, 130, 185);
	text-transform: none;
	margin: 5px 0;
}
.sb-entry__title a {
	color: inherit;
}
.sb-entry {
	padding: 20px 0;
	border-bottom: 1px solid #e1e1e1;
}
.sb-entry__cats,
.sb-entry__author,
.sb-entry__sep,
.sb-entry__counter {
	font-size: 12px;
}
.sb-entry__sep {
	margin: 0 6px;
}
.sb-entry--search .sb-entry__header {
	position: relative;
	padding-left: 50px;
}
.sb-entry__counter {
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 36px;
	line-height: 36px;
	text-align: center;
	border: 1px solid #e1e1e1;
	border-radius: 50%;
}
.sb-author-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 30px;
}
.sb-author-box__avatar img {
	display: block;
	width: 81px;
	height: 81px;
	border-radius: 50%;
}
.sb-author-box__title {
	text-transform: none;
	margin-bottom: 5px;
}

/* --- 7. Pagination ("Side P af N", spec 5.9) --- */
.sb-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	margin: 20px 0;
	font-size: 12px;
}
.sb-pagination .pagination-meta {
	margin-right: 10px;
}
.sb-pagination a,
.sb-pagination .current {
	display: inline-block;
	min-width: 28px;
	padding: 4px 8px;
	text-align: center;
	border: 1px solid #e1e1e1;
	text-decoration: none;
}
.sb-pagination .current {
	background: #f8f8f8;
}

/* --- 8. Prev/next post links after the footer (region "other"; spec 5.1) --- */
.sb-post-nav__link {
	position: fixed;
	top: 50%;
	z-index: 50;
	display: flex;
	align-items: center;
	max-width: 40px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	text-decoration: none;
	transition: max-width 0.3s ease;
}
.sb-post-nav__link--prev {
	left: 0;
}
.sb-post-nav__link--next {
	right: 0;
	flex-direction: row-reverse;
}
.sb-post-nav__arrow {
	flex: 0 0 40px;
	line-height: 60px;
	text-align: center;
	font-size: 28px;
}
.sb-post-nav__title {
	flex: 0 0 200px;
	padding: 0 10px;
	font-size: 12px;
	line-height: 1.3;
	color: #fff;
}
.sb-post-nav__link:hover,
.sb-post-nav__link:focus {
	max-width: 260px;
	color: #fff;
}
@media (max-width: 767px) {
	.sb-post-nav__link {
		top: auto;
		bottom: 10px;
	}
}

/* --- 9. In-content synced pattern "Sektioner nederst på siden" (B: widget text-20; spec 4) --- */
.sb-sections {
	margin-top: 30px;
}
.sb-sections__banner {
	padding: 2%;
	border: 1px solid #b7b7b7;
	border-radius: 5px;
	margin-bottom: 30px;
}
.sb-sections__banner .wp-block-image {
	margin: 0 0 10px;
	text-align: center;
}
.sb-sections__banner .wp-block-image img,
.sb-sections .wp-block-image img {
	max-width: 100%;
	height: auto;
}
.sb-sections__heading {
	text-align: center;
	text-transform: none;
}
.sb-sections__cards .wp-block-image,
.sb-sections__tiles .wp-block-image {
	text-align: center;
	margin: 0;
}
.sb-sections__label {
	text-align: center;
	margin: 10px 0;
}
.sb-sections .wp-block-buttons {
	justify-content: center;
}
.sb-sections .wp-block-button__link {
	font-size: 12px;
	padding: 8px 14px;
	border-radius: 3px;
	background-color: #444;
	color: #fff;
}
.sb-sections__tile-box {
	padding: 2%;
	margin-top: 0;
}
.sb-sections__tile-box h4 {
	text-align: center;
	color: #fff;
	text-transform: none;
}
.sb-sections__tile-box .wp-block-button__link {
	background-color: #fff;
	color: #444;
}
.sb-tile-voksne {
	background-color: #8bc1c8;
}
.sb-tile-boern {
	background-color: #dba660;
}
.sb-tile-samtale {
	background-color: #96b7d1;
}
.sb-tile-kurser {
	background-color: #abc0c2;
}

/* Session 03 (orchestrator): B hides the author box picture below 768 px (no image at 390 on the author archives). */
@media (max-width: 767px) {
	.sb-author-box__avatar { display: none; }
}
