@import "variables.css";
@import "general.css";
@import "nav.css";
@import "modifications.css";
@import "tables.css";
@import "mobile.css"; 

/* Article images */
figure.article-image {
	margin: 1.5rem auto;
	text-align: center;
}

figure.article-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

figure.article-image figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #6c757d;
	font-style: italic;
}

/* Blog hero images */
figure.hero-image {
	margin: 2rem auto;
	padding: 0;
	text-align: center;
}

figure.hero-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Heroes gallery */
.hero-intro {
	max-width: 760px;
}

.hero-gallery {
	margin: 3rem 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
}

.hero-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	text-decoration: none;
	color: inherit;
}

.hero-card:visited {
	color: inherit;
}

.hero-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.hero-link {
	display: block;
}

.hero-portrait {
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	overflow: hidden;
	background: #f5f5f5;
	width: 100%;
}

figure.hero-portrait img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
	max-width: none !important;
}

.hero-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #d7d7d7, #f5f5f5);
	font-size: 2.5rem;
	font-weight: 600;
	color: #555;
}

.hero-card-body {
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.hero-card-body p {
	font-size: 0.85rem;
	line-height: 1.4;
	margin: 0;
}

.hero-card-body h3 {
	font-size: 1rem;
	margin: 0;
	line-height: 1.25;
}

.hero-card-body p.hero-timeframe {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.7rem;
	margin: 0;
	color: #6c757d;
}

.hero-card-body p.hero-impact {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
}

.hero-card-body p.hero-principle {
	margin: 0.25rem 0 0;
	font-weight: 600;
	font-size: 0.85rem;
}

.hero-card-body p.hero-principle span {
	display: block;
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #6c757d;
	text-transform: uppercase;
}

.hero-card-body p.hero-credit {
	margin: 0.25rem 0 0;
	font-size: 0.55rem;
	color: #999;
}

.hero-footnote {
	margin-top: 2rem;
	font-size: 0.95rem;
	color: #555;
}

@media (max-width: 640px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-card {
		border-radius: 12px;
	}
}

/* Hero container with introduction and buttons */
.hero-container {
  display: flex;
  gap: 2em;
  align-items: flex-start;
  margin-bottom: 2em;
}

.hero-container .introduction {
  flex: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.hero-container .button-section {
  margin: 0;
  flex-shrink: 0;
}

/* Adjust paragraph line height for improved readability */
p {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.3em;
}

/* Article introduction styling */
.article-intro {
	background: #f9f9f9;
	padding: 1.5rem;
	border-left: 4px solid #007acc;
	margin-bottom: 2rem;
	border-radius: 4px;
}

.article-intro p:first-of-type {
	margin-top: 0;
}

.article-intro p {
	margin-bottom: 0.75rem;
	font-size: 105%;
	line-height: 1.5em;
	font-weight: 300 !important;
}

.article-intro p:last-child {
	margin-bottom: 0;
}

.article-intro .avatar {
	float: left;
	margin-right: 1rem;
	margin-bottom: 1rem;
}

.article-intro h2 {
	margin-top: 0 !important;
	margin-bottom: 0.5rem !important;
}

/* Preserve intentional line breaks in paragraph text */
.line-breaks {
	white-space: pre-line;
}

.blog-entry .line-breaks {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
	padding: 0;
}

.blog-entry p:has(+ .line-breaks) {
	margin-bottom: 0;
}

.blog-entry .line-breaks + p {
	margin-top: 1em;
}

/* Blog post typography - inspired by clean, readable German text layouts */
.blog-entry {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	overflow-x: hidden;
}

.call-to-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  margin: 2em 0 2em 0;
  min-width: 30vw;
}

.call-to-action .button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  flex-shrink: 0;
}

.call-to-action .cta-subtext {
  margin: 0.5em 0 0 0;
  font-size: 0.85em;
  color: #666;
  text-align: center;
  line-height: 1.3;
}

.call-to-action .button-group .button,
.call-to-action .button-group a.button,
.call-to-action .button-group button {
  min-width: 200px;
  max-width: 240px;
  padding: 0.65em 1em;
  font-size: 0.95em;
  border-radius: 5px;
  margin: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  white-space: normal;
  text-align: center;
  font-weight: 500;
}

.callout-box {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1.6;
	width: 35%;
	max-width: 360px;
	padding: 0.75rem 1rem;
	margin: 0.5rem 0 1rem 3.5rem;
	border-left: 4px solid #007acc;
	background-color: #f5f7fb;
	color: #333;
	float: right;
	clear: right;
}

.callout-box em {
	font-style: normal;
}

.blog-entry > p:has(+ .callout-box) {
	overflow: hidden;
}

/* Lifeline boxes - exit/hope callouts for framework lifecycle article */
.lifeline-box {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.125rem;
	line-height: 1.5;
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
	border-left: 4px solid #28a745;
	background: linear-gradient(135deg, #f0fff4 0%, #e6f7ed 100%);
	color: #1a5928;
	border-radius: 0 6px 6px 0;
	box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.lifeline-box strong {
	display: block;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #28a745;
	margin-bottom: 0.5rem;
}

.lifeline-box em {
	font-style: italic;
	color: #2d6a3a;
}

@media (max-width: 900px) {
	.callout-box {
		float: none;
		width: auto;
		max-width: 100%;
		margin: 1.25rem 0;
	}
}

.blog-entry h2 {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.3;
	margin-top: 1.5em;
	margin-bottom: 0.75em;
}

.blog-entry p {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.6;
	margin-bottom: 1em;
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
}

.blog-entry p:first-letter {
	font-size: 1.2em;
}

.blog-entry li {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.6;
	margin-bottom: 0.75em;
}

.blog-entry strong {
	font-weight: 500;
}

.blog-entry em {
	font-style: italic;
}

/* Category filter styling */
.category-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin: 2rem 0;
}

.category-filter span {
	white-space: nowrap;
}

.category-filter span span {
	color: #666;
}

/* Category cloud web component */
category-cloud {
	display: block !important;
	width: 100%;
	max-width: 100%;
	margin: 1rem 0;
	box-sizing: border-box;
	text-align: center;
	line-height: 0.9;
	overflow-wrap: break-word;
	word-wrap: break-word;
	/* Safari fix: contain layout to prevent overflow */
	contain: inline-size;
}

category-cloud .cloud-words {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 0.2rem;
	column-gap: 0.65rem;
	width: 100%;
	max-width: 100%;
}

category-tag {
	display: inline-block;
	vertical-align: baseline;
	cursor: pointer;
	padding: 0.25rem 0.9rem;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
	max-width: 100%;
	word-break: break-word;
}

category-tag:hover {
	background-color: #f0f0f0;
}

category-tag[active] {
	background-color: #007acc;
	color: white;
}

category-tag[active] span {
	color: white;
}

/* Card grid layout */
.card-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

/* Card styling */
.card {
	background: #f8f9fa;
	border: 1px solid #e3e6e9;
	border-radius: 12px;
	padding: 1rem 1.15rem 1.2rem;
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.card:hover {
	border-color: #d0d4d8;
	box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.card h2 {
	margin-top: 0;
	font-size: 1.3rem;
	letter-spacing: .3px;
	color: #2c5f2d;
}

.card h3 {
	margin-top: .8rem;
	font-size: 1.1rem;
	color: #555;
}

/* Card variants */
.card-flex {
	flex: 1 1 400px;
}

.card-stacked {
	margin: 1.25rem 0;
}

.card img.card-logo {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
	max-width: 180px;
	border-radius: 8px;
}

/* Page intro section */
.page-intro {
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 2rem;
	color: #444;
}

@media (min-width:900px) {
	.card {
		padding: 1.1rem 1.25rem 1.3rem;
	}
}

/* Newsletter subscription box */
.newsletter-box {
	background: #f8f9fa;
	border: 1px solid #e3e6e9;
	border-left: 4px solid var(--secondary-color);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin: 1rem 0 0.5rem 0;
}

.contact-box {
	background: #f8f9fa;
	border: 1px solid #e3e6e9;
	border-left: 4px solid var(--primary-color);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin: 1rem 0 0.5rem 0;
}

.newsletter-box h2,
.contact-box h2 {
	margin: 0 0 0.25rem 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: #333;
}

.newsletter-box > p,
.contact-box > p {
	margin: 0 0 0.5rem 0;
	font-size: 0.85rem;
	line-height: 1.35;
	color: #555;
}

.newsletter-form {
	display: flex;
	gap: 0.4rem;
	flex-wrap: nowrap;
	align-items: center;
}

.newsletter-form input[type="email"] {
	flex: 1;
	max-width: 240px;
	padding: 0.4rem 0.6rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
}

.newsletter-form input[type="email"]:focus {
	outline: none;
	border-color: var(--secondary-color);
	box-shadow: 0 0 0 2px rgba(0, 122, 0, 0.15);
}

.newsletter-form button {
	flex-shrink: 0;
	padding: 0.4rem 0.6rem;
	font-size: 0.85rem;
	white-space: nowrap;
}

.newsletter-form button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.contact-box button {
	flex-shrink: 0;
	padding: 0.4rem 0.6rem;
	font-size: 0.85rem;
	white-space: nowrap;
}

/* Mobile/Desktop content visibility */
.mobile-only {
	display: none;
}

.desktop-only {
	display: block;
}

.newsletter-message {
	margin: 0.4rem 0 0 0;
	font-size: 0.8rem;
	min-height: 1.2em;
}

.newsletter-message:empty {
	display: none;
}

.newsletter-message.success {
	color: var(--secondary-color);
}

.newsletter-message.info {
	color: #0066cc;
}

.newsletter-message.error {
	color: #cc0000;
}

.newsletter-privacy {
	margin-top: 0.3rem;
	font-size: 0.68rem !important;
	color: #888;
	line-height: 1.2;
}

.newsletter-privacy a {
	color: #888;
	text-decoration: underline;
}

.reminder-box {
	background-color: #f8f9fa;
	padding: 0.75rem 1rem;
	margin: 1rem 0;
	border-left: 4px solid #6c757d;
	border-radius: 4px;
	text-align: center;
}

.reminder-box p {
	margin: 0;
	font-size: 0.85rem;
}

.reminder-link {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
	display: inline-block;
}

.reminder-link:hover {
	color: var(--secondary-color);
	text-decoration: underline;
}

.reminder-message {
	display: none;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--secondary-color);
	text-align: center;
}

/* Related articles section (end of blog posts) */
.related-articles {
	margin: 2.5rem 0 1.5rem 0;
	padding-top: 1.5rem;
	border-top: 1px solid #e3e6e9;
}

.related-articles h2 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
	margin: 0 0 1rem 0;
}

.related-articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.related-article-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e3e6e9;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-article-card:hover {
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-article-image {
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.related-article-body {
	padding: 0.75rem;
}

.related-article-body h3 {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 0.35rem 0;
	color: #333;
}

.related-article-card:hover .related-article-body h3 {
	color: var(--primary-color);
}

.related-article-body time {
	font-size: 0.75rem;
	color: #999;
	display: block;
	margin-bottom: 0.35rem;
}

.related-article-body p {
	font-size: 0.8rem;
	line-height: 1.35;
	color: #666;
	margin: 0;
}

@media (max-width: 768px) {
	.related-articles-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.related-article-card {
		flex-direction: row;
	}

	.related-article-image {
		width: 120px;
		height: auto;
		min-height: 90px;
	}

	.related-article-body {
		flex: 1;
	}
}

/* Print styles */
@media print {
	/* Reduce font sizes for print */
	body {
		font-size: 10pt !important;
		line-height: 1.4 !important;
	}

	h1 {
		font-size: 18pt !important;
	}

	h2 {
		font-size: 14pt !important;
	}

	h3 {
		font-size: 12pt !important;
	}

	p, li, td, th {
		font-size: 10pt !important;
		line-height: 1.4 !important;
	}

	/* Hide sidebar */
	div.sidebar {
		display: none !important;
	}

	/* Make content full width when sidebar is hidden */
	div.two-columns {
		display: block !important;
		grid-template-columns: 1fr !important;
	}

	div.blog-entry {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Callout boxes - maintain float and text wrap in print */
	.callout-box {
		float: right !important;
		width: 35% !important;
		max-width: 200pt !important;
		padding: 6pt 8pt !important;
		margin: 4pt 0 8pt 12pt !important;
		border-left: 3pt solid #007acc !important;
		background-color: #f5f7fb !important;
		font-size: 9pt !important;
		line-height: 1.3 !important;
		font-style: italic !important;
	}

	/* Hide navigation except logo */
	nav ul li:not(:first-child) {
		display: none !important;
	}

	nav ul {
		justify-content: center;
	}

	/* Hide footer */
	footer {
		display: none !important;
	}

	/* Hide newsletter signup */
	.newsletter-signup,
	.newsletter-form,
	.newsletter-box {
		display: none !important;
	}

	/* Simplify contact box for print - show only email */
	.contact-box p:first-of-type,
	.contact-box button,
	.contact-box link,
	.contact-box script {
		display: none !important;
	}

	.contact-box {
		border-top: 1px solid #ccc;
		padding-top: 0.5em;
		margin-top: 1em;
	}

	.contact-box h2 {
		font-size: 12pt !important;
		margin-bottom: 0.25em;
	}
}
