/**
 * Theme Name: Kaupunkilehti Kalajokinen
 * Theme URI: https://kalajokinen.fi
 * Author: Markus Haapasaari / Kaupunkilehti Kalajokinen
 * Author URI: https://kalajokinen.fi
 * Description: Moderni, saavutettava ja nopea uutisteema Kaupunkilehti Kalajokinen -verkkopalvelulle. Tehty <3 Kalajoella.
 * Version: 13.22
 */

/*--------------------------------------------------------------
>>> PERUSMÄÄRITYKSET (BASE)
--------------------------------------------------------------*/
html,
body {
	font-family: 'Montserrat', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-weight: 500;
	color: #4c4c4c;
	margin: 0;
	background-color: #fff;
	transition: background-color 0.3s ease, color 0.3s ease;
}

button {
	font-family: inherit;
}


/*--------------------------------------------------------------
>>> TYPOGRAFIA
--------------------------------------------------------------*/
h1, .site-title {
	font-weight: 900;
	color: #4c4c4c;
}

h2, h3, h4, h5, h6 {
	font-weight: 700;
}

a {
	text-decoration: none;
	color: #024f91;
}

.entry-content a {
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px dotted rgba(2, 79, 145, 0.5);
	transition: border-bottom 0.2s ease-in-out;
}
.entry-content a:hover {
	border-bottom: 2px solid rgba(2, 79, 145, 1);
}


/*--------------------------------------------------------------
>>> ASETTELU (LAYOUT)
--------------------------------------------------------------*/
.kalajokinen-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 20px;
}

.kalajokinen-container.has-sidebar {
	display: flex;
	gap: 2rem;
}

.site-main {
	flex: 1;
	min-width: 0;
	margin-bottom: 2rem;
}

.widget-area {
	width: 300px;
	flex-shrink: 0;
}


/*--------------------------------------------------------------
>>> YLÄTUNNISTE (HEADER)
--------------------------------------------------------------*/

#site-header-sticky-wrapper {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
body.admin-bar #site-header-sticky-wrapper {
	top: var(--wp-admin--admin-bar--height);
}


#top-helper-bar {
	height: 32px;
	background-color: #024f91;
	color: #ffffff;
	font-size: 0.8rem;
}

.top-bar-desktop {
	height: 100%;
}

.top-bar-container {
	display: flex;
	height: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 20px;
	align-items: center;
	justify-content: space-between;
}

.top-bar-section {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.top-bar-left {
	justify-content: flex-start;
	flex: 1;
}

.top-bar-center {
	justify-content: center;
	flex: 1;
}

.top-bar-right {
	justify-content: flex-end;
	gap: 1rem;
}

#top-helper-bar a {
	color: #ffffff;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

#top-helper-bar a:hover {
	text-decoration: none;
	opacity: 0.8;
}

.top-bar-nameday strong,
.top-bar-flagday strong {
	font-weight: 700;
}

.top-bar-left .separator {
    color: rgba(255,255,255,0.5);
}

.top-bar-weather {
	margin-left: 0.5rem;
}

.weather-link .weather-temp {
	font-weight: 700;
}

.top-bar-account {
	margin-right: 0.5rem;
}

.top-bar-social {
	display: flex;
	gap: 0.75rem;
}

.top-bar-social-link {
	opacity: 0.8;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-bar-social-link:hover {
	opacity: 1;
	transform: scale(1.15);
}

.top-bar-social-link svg {
	display: block;
	width: 18px;
	height: 18px;
}

.top-bar-social-link[title="Puhelin"] svg {
	width: 16px;
	height: 16px;
}

.theme-switcher-btn,
.open-search-btn {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 0;
	opacity: 0.8;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-switcher-btn:hover,
.open-search-btn:hover {
	opacity: 1;
	transform: scale(1.15);
}
.theme-switcher-btn svg,
.open-search-btn svg {
	width: 16px;
	height: 16px;
	display: block;
}

.ajankohtaista-palkki {
	background-color: #f8d7da;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f5c6cb;
	overflow: hidden;
}
.ajankohtaista-palkki .kalajokinen-container {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.ajankohtaista-otsikko {
	font-weight: 700;
	color: #721c24;
	white-space: nowrap;
}
.ajankohtaista-linkit {
	position: relative;
	flex: 1;
	min-height: 1.2em;
}
.ajankohtaista-linkit a {
	color: #721c24;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.ajankohtaista-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}
.ajankohtaista-slide.is-visible {
	opacity: 1;
	visibility: visible;
}


.site-header {
	padding: 1.5rem 0;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
}

.site-branding {
	margin-bottom: 0;
}

.custom-logo-link img {
	max-width: 250px;
	height: auto;
}

.site-title {
	font-size: 2.5rem;
	margin: 0;
	text-align: left;
}

.site-title a {
	color: #4c4c4c;
	text-decoration: none;
}

.site-description {
	font-size: 1rem;
	margin-top: 0.5rem;
	text-align: left;
}

.header-ad-container {
    margin: 1.5rem 0;
    text-align: center;
}

/*--------------------------------------------------------------
>>> NAVIGAATIO
--------------------------------------------------------------*/
.main-navigation {
	margin-bottom: 0;
	flex-grow: 1;
}

.main-navigation ul {
	display: flex;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.5rem;
    align-items: center;
}

.main-navigation a {
	color: #4c4c4c;
	text-transform: uppercase;
	font-weight: 700;
	display: block;
	padding: 1rem 0;
	font-size: 0.9rem;
}

.main-navigation a:hover {
	color: #024f91;
}

.main-navigation ul li {
	position: relative;
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #ffffff;
	border: 1px solid #eee;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	list-style: none;
	padding: 0.5rem 0;
	margin: 0;
	z-index: 100;
	min-width: 200px;
	border-radius: 5px;
}

.main-navigation li:hover > .sub-menu {
	display: block;
}

.main-navigation .sub-menu li {
	width: 100%;
}

.main-navigation .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
	color: #4c4c4c;
	white-space: nowrap;
	text-transform: uppercase;
	font-weight: 700;
}

.main-navigation .sub-menu a:hover {
	background-color: #f1f1f1;
	color: #024f91;
}


/*--------------------------------------------------------------
>>> ALATUNNISTE (FOOTER)
--------------------------------------------------------------*/
#pre-footer-bar {
	background-color: #4c4c4c;
	height: 30px;
	display: flex;
	align-items: center;
}

#pre-footer-bar .footer-navigation ul {
	display: flex;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.5rem;
}

#pre-footer-bar .footer-navigation a {
	color: #ffffff;
	font-size: 0.8rem;
	text-transform: uppercase;
}

.site-footer {
	background-color: #f1f1f1;
	padding: 2rem 0;
	margin-top: 0;
}

.site-info {
	text-align: center;
}

.footer-highlight {
	color: #024f91;
	font-weight: 800;
}


/*--------------------------------------------------------------
>>> ETUSIVUN OSIOT
--------------------------------------------------------------*/
.hero-section {
	margin-bottom: 2rem;
}

.hero-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1rem;
}

.hero-secondary-posts {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.kalajokinen-card .card-image-container {
	position: relative;
	overflow: hidden;
	background-color: #f1f1f1;
}

.kalajokinen-card .card-image-container::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 70%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
}

.kalajokinen-card .card-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-main-post .card-image-container {
	height: 350px;
}

.hero-secondary-posts .card-image-container {
	height: calc((350px - 2rem) / 3);
}

.card-category-tag {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	background-color: #024f91;
	padding: 0.25rem 0.5rem;
	z-index: 2;
}

.card-category-tag a {
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
}

.card-header {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 1rem;
	z-index: 2;
	box-sizing: border-box;
}

.card-title {
	font-size: 1.25rem;
	margin: 0;
}

.card-title a {
	color: #ffffff;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.card-title a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.section-title {
	font-size: 1.8rem;
	margin: 0 0 1.5rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #024f91;
}

.picks-section {
	background-color: #f1f1f1;
	padding: 1.5rem;
	margin: 2rem 0;
}

.picks-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.picks-grid .card-image-container {
	height: 200px;
}

.continuum-section {
	margin-bottom: 2rem;
}

.continuum-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.continuum-grid .card-image-container {
	height: 150px;
}

.continuum-grid .card-title {
	font-size: 1rem;
}

.load-more-container {
	text-align: center;
	margin-top: 2rem;
}

#load-more-btn {
	background-color: #024f91;
	color: #ffffff;
	border: 2px solid #024f91;
	padding: 0.8rem 2rem;
	font-size: 1rem;
	font-weight: 900;
	cursor: pointer;
	text-transform: uppercase;
	transition: background-color 0.3s ease, color 0.3s ease;
	border-radius: 999px;
}

#load-more-btn:hover {
	background-color: #ffffff;
	color: #024f91;
	text-decoration: none;
}

.personalized-feed-section {
	margin: 2rem 0;
	padding: 1.5rem;
	background-color: #e7f0f7;
	border: 1px solid #b8d4ea;
	border-radius: 5px;
}
body.dark-theme .personalized-feed-section {
	background-color: #2c3e50;
	border-color: #4a6fa5;
}

.personalized-feed-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.personalized-feed-grid .card-image-container {
	height: 150px;
}
.personalized-feed-grid .card-title {
	font-size: 1rem;
}


/*--------------------------------------------------------------
>>> ARKISTOSIVUT (ARCHIVE)
--------------------------------------------------------------*/
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.archive-title {
    font-size: 2.2rem;
    color: #4c4c4c;
    margin: 0;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.archive-grid .kalajokinen-card .card-image-container {
    height: 180px;
}

.archive-grid .kalajokinen-card .card-image-container img {
    object-fit: contain;
    background-color: #f9f9f9;
}

.archive-grid .card-title {
    font-size: 1.1rem;
}

.pagination {
    margin-top: 2rem;
}

.follow-tag-button,
.follow-category-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.follow-tag-button:hover,
.follow-category-button:hover {
    background-color: #e0e0e0;
}

.follow-tag-button.is-following,
.follow-category-button.is-following {
    background-color: #024f91;
    color: #ffffff;
    border-color: #024f91;
}


/*--------------------------------------------------------------
>>> ARTIKKELISIVU (SINGLE POST)
--------------------------------------------------------------*/
.single .site-main {
	margin-top: 2rem;
}

.back-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: #6c6c6c;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}
.back-button:hover {
	color: #024f91;
}

.single .entry-title {
	text-transform: uppercase;
	font-size: 2.4rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.entry-meta {
	font-size: 0.8rem;
	color: #6c6c6c;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
}

.entry-meta strong {
	color: #4c4c4c;
}

.entry-meta .byline a {
	color: #024f91;
	font-weight: 700;
}

.entry-meta .byline a:hover {
	text-decoration: none;
}

.single .post-thumbnail {
	margin-bottom: 1.5rem;
	position: relative;
	max-width: 720px;
	margin-left: 0;
	margin-right: auto;
}

.entry-content img,
.post-thumbnail img {
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	object-position: left;
	width: 100%;
	cursor: pointer;
}

@media screen and (min-width: 783px) {
    .single .kalajokinen-container.has-sidebar {
        gap: 0;
    }
    .single .widget-area {
        margin-left: 2rem;
    }
}

.post-thumbnail-caption,
.entry-content .wp-block-image figcaption,
.lightbox-caption {
	background-color: #024f91;
    color: #ffffff;
    padding: 0.75rem calc(1.5rem + 30px) 0.75rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    display: inline-block;
    width: auto;
}

.post-thumbnail-caption strong,
.entry-content .wp-block-image figcaption strong,
.lightbox-caption strong {
    font-weight: 800;
}

.post-thumbnail-caption {
    position: absolute;
    bottom: -20px;
    left: 8px;
}

.entry-content .wp-block-image {
	max-width: 720px;
	margin-left: 0;
	margin-right: auto;
	margin-bottom: 1.5rem;
}

.entry-content .wp-block-image.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.entry-content .wp-block-image figcaption {
	position: relative;
	margin-top: -30px;
	margin-left: 8px;
}

.lightbox-caption {
	margin-top: 1rem;
	text-align: center;
	max-width: 80%;
}


.entry-actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	padding-top: 30px;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #eee;
	flex-wrap: wrap;
}

.reading-time,
.save-post-button,
.comments-link,
.like-post-button,
.share-button,
.listen-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: #6c6c6c;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.reading-time svg,
.save-post-button svg,
.comments-link svg,
.like-post-button svg,
.share-button svg,
.listen-button svg {
	fill: currentColor;
}

.save-post-button.saved,
.like-post-button.liked,
.listen-button.is-playing {
	color: #024f91;
	font-weight: 700;
}

.save-post-button:hover,
.comments-link:hover,
.like-post-button:hover,
.share-button:hover,
.listen-button:hover {
	color: #024f91;
}

@media screen and (min-width: 783px) {
	.reading-time .reading-time-label,
	.save-post-button span,
	.listen-button span {
		max-width: 0;
		overflow: hidden;
		white-space: nowrap;
		transition: max-width 0.35s ease-in-out;
		display: inline-block;
		vertical-align: middle;
	}

	.reading-time:hover .reading-time-label,
	.save-post-button:hover span,
	.listen-button:hover span {
		max-width: 150px;
	}

	.reading-time-value {
		padding-left: 0.25em;
	}

	.reading-time:hover .reading-time-value {
		padding-left: 0;
	}
}

.share-button-container {
	position: relative;
}

.share-options {
	display: none;
	position: absolute;
	top: calc(100% + 5px);
	left: 0;
	background-color: #fff;
	border: 1px solid #eee;
	border-radius: 5px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	z-index: 10;
	padding: 0.5rem;
	gap: 0.75rem;
}

.share-button-container.is-open .share-options {
	display: flex;
}

.share-link,
.share-copy-link {
	color: #4c4c4c;
	transition: transform 0.2s ease;
	display: flex;
	align-items: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.share-link svg {
	width: 20px;
	height: 20px;
}

.share-link:hover {
	transform: scale(1.1);
	color: #024f91;
}

.share-copy-link .copy-success {
	font-size: 0.8rem;
	color: #024f91;
	font-weight: 700;
	white-space: nowrap;
}

.vote-box {
	border: 1px solid #eee;
	padding: 1.5rem;
	text-align: center;
	margin: 2rem 0;
}

.vote-box-title {
	margin: 0 0 1rem 0;
	font-size: 1.2rem;
}

.vote-buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.vote-button {
	background: #f1f1f1;
	border: 1px solid #ddd;
	padding: 0.5rem 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 5px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.vote-button:hover {
	background-color: #e9e9e9;
}

.vote-box.user-voted-up .vote-up,
.vote-box.user-voted-down .vote-down {
	background-color: #024f91;
	color: #ffffff;
	border-color: #024f91;
}

.font-sizer {
	background-color: #f1f1f1;
	border-radius: 999px;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.font-sizer-label {
	font-size: 0.9rem;
	padding-left: 12px;
	color: #6c6c6c;
}

.font-sizer-button {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.font-sizer-button:hover {
	background-color: #e9e9e9;
}

.font-sizer-button svg {
	width: 20px;
	height: 20px;
	fill: #4c4c4c;
}

.font-size-small .entry-content {
	font-size: 0.9rem;
}

.font-size-normal .entry-content {
	font-size: 1.1rem;
}

.font-size-large .entry-content {
	font-size: 1.3rem;
}

.entry-tags {
	margin: 2rem 0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.tags-title {
	font-weight: 700;
}

.entry-tags .tag-pill {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #4c4c4c;
	transition: transform 0.2s ease;
}

.entry-tags .tag-pill:hover {
	transform: translateY(-2px);
}

.tag-color-1 { background-color: #a7c7e7; }
.tag-color-2 { background-color: #b2d8d8; }
.tag-color-3 { background-color: #fdd9b5; }
.tag-color-4 { background-color: #d8bfd8; }
.tag-color-0 { background-color: #c1e1c1; } /* 0 on jakojäännös 5:lle */


/*--------------------------------------------------------------
>>> KUUNTELE-OMINAISUUDEN PONNAHDUSIKKUNA (LISTEN MODAL)
--------------------------------------------------------------*/
body.listen-modal-is-open {
	overflow: hidden;
}

.listen-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.listen-modal-content {
	background-color: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
	position: relative;
	width: 90%;
	max-width: 500px;
}

.close-search-btn {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 2.5rem;
	color: #999;
	background: none;
	border: none;
	cursor: pointer;
}

.listen-modal-title {
	margin: 0 0 1.5rem 0;
	font-size: 1.5rem;
	color: #024f91;
}

.listen-section {
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}

.listen-section:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.listen-section h3 {
	margin: 0 0 1rem 0;
	font-size: 1.1rem;
}

.listen-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.listen-select {
	flex-grow: 1;
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#volume-control {
	width: 100%;
}

.listen-play-btn {
	background-color: #024f91;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 700;
	transition: background-color 0.2s ease;
}

.listen-play-btn:hover {
	background-color: #225a82;
}

.listen-play-btn.is-playing {
	background-color: #d9534f;
}


/*--------------------------------------------------------------
>>> SÄÄSIVU (WEATHER PAGE)
--------------------------------------------------------------*/
.weather-page-section {
	background-color: #f9f9f9;
	padding: 1.5rem;
	margin-bottom: 2rem;
	border: 1px solid #eee;
	border-radius: 5px;
}

.weather-page-section h2 {
	margin-top: 0;
	border-bottom: 1px solid #ddd;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.data-source {
	font-size: 0.8rem;
	color: #999;
	text-align: right;
	margin-top: 1.5rem;
}

.weather-warning {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left-width: 5px;
    border-left-style: solid;
    border-radius: 4px;
}

.warning-level-1 {
    background-color: #fffbe6;
    border-color: #ffc107;
}

.warning-level-2 {
    background-color: #fff3e0;
    border-color: #ff9800;
}

.warning-level-3 {
    background-color: #ffebee;
    border-color: #f44336;
}

.warning-title {
    margin-top: 0;
    border-bottom: none;
}

.weather-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.weather-select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.weather-save-button {
    background-color: #024f91;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}
.weather-status {
	margin-top: 1rem;
	font-style: italic;
	color: #6c6c6c;
}


.current-weather-details {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 2rem;
}

.current-weather-main {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.current-weather-emoji {
	font-size: 4rem;
	line-height: 1;
}

.current-weather-temp {
	font-size: 3rem;
	font-weight: 800;
	color: #024f91;
}

.current-weather-extra {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 2rem;
}

.current-weather-extra span {
	font-size: 1rem;
}

.wind-arrow {
	display: inline-block;
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1;
	vertical-align: middle;
	margin-right: 0.25rem;
}

.current-weather-extra .cloud-details {
	grid-column: 1 / -1;
	font-size: 0.9rem;
	color: #6c6c6c;
}

.hourly-forecast-scroll {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.hourly-forecast-grid {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
}

.hourly-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 0.75rem;
    text-align: center;
    flex: 0 0 80px;
}

.hourly-time {
    font-weight: 700;
    font-size: 0.9rem;
}

.hourly-emoji {
    font-size: 2rem;
    margin: 0.25rem 0;
}

.hourly-temp {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hourly-precip,
.hourly-precip-mm,
.hourly-wind {
    font-size: 0.8rem;
    color: #6c6c6c;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}


.fmi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.fmi-data-item {
	background-color: #fff;
	border: 1px solid #eee;
	border-radius: 5px;
	padding: 1.5rem;
	text-align: center;
}

.fmi-data-item h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: #6c6c6c;
}

.fmi-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 0;
	color: #024f91;
}

.fmi-unit {
	font-size: 1rem;
	font-weight: 500;
	color: #4c4c4c;
}

.forecast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 1rem;
}

.forecast-day {
	background-color: #fff;
	border: 1px solid #eee;
	border-radius: 5px;
	padding: 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.forecast-date {
	font-weight: 700;
	text-transform: capitalize;
}

.forecast-emoji {
	font-size: 2.5rem;
	margin: 0.5rem 0;
}

.forecast-temp {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.forecast-temp-max {
	font-weight: 700;
}

.forecast-temp-min {
	color: #6c6c6c;
}

.temp-trend {
	display: inline-block;
	margin-left: 0.5rem;
	font-weight: 700;
}
.temp-trend.up { color: #d9534f; }
.temp-trend.down { color: #5bc0de; }
.temp-trend.same { color: #777; }

.forecast-extra {
	display: flex;
	justify-content: space-around;
	align-items: center;
	font-size: 0.8rem;
	color: #6c6c6c;
	margin-top: auto;
	padding-top: 0.5rem;
	border-top: 1px solid #f1f1f1;
}

.forecast-extra span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.forecast-extra .separator {
	color: #ddd;
}

.forecast-sun {
	display: flex;
	justify-content: space-around;
	font-size: 0.8rem;
	color: #6c6c6c;
	margin-top: 0.25rem;
}

.forecast-sun span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.photo-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-time-item {
	padding: 1rem;
	border-radius: 5px;
	color: #ffffff;
	text-align: center;
}

.photo-time-item.blue-hour {
	background: linear-gradient(135deg, #2c3e50, #4a6fa5);
}

.photo-time-item.golden-hour {
	background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.photo-time-label {
	font-weight: 700;
	display: block;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.photo-time-value {
	font-size: 1.2rem;
	font-weight: 800;
}

.photo-summary {
	margin-top: 1.5rem;
	font-size: 1.1rem;
	text-align: center;
	font-style: italic;
	color: #6c6c6c;
}

.tanaan-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 5px;
}
.tanaan-section h2 {
    margin-top: 0;
	border-bottom: 1px solid #ddd;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}
.tanaan-content {
    font-size: 1.2rem;
    line-height: 1.6;
}
.tanaan-content strong {
    color: #024f91;
    font-weight: 700;
}
.tanaan-content .flag-reason {
    font-weight: 800;
    color: #4c4c4c;
}

.history-no-posts {
	background-color: transparent;
	border: none;
	padding: 0;
	text-align: left;
}
body.dark-theme .history-no-posts {
	border-color: #444;
}

.history-no-posts p {
	font-style: normal;
	color: inherit;
	margin: 0;
	font-size: 1.2rem;
    line-height: 1.6;
}
body.dark-theme .history-no-posts p {
	color: #e0e0e0;
}

.tanaan-box {
	background-color: transparent;
	border: none;
	padding: 0;
}
.tanaan-box h2 {
	margin-top: 0;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 1.5rem;
	font-size: 1.2rem; /* Yhdenmukaistettu otsikkokoko */
}
.tanaan-box a {
	font-weight: 700;
}
body.dark-theme .tanaan-box a {
	color: #58a6ff;
}
body.dark-theme .tanaan-section .tanaan-box h2 {
	border-bottom: none;
}


/*--------------------------------------------------------------
>>> HAKUNÄKYMÄ (SEARCH OVERLAY)
--------------------------------------------------------------*/
.search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	z-index: 2000;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	overflow-y: auto;
}
.search-overlay.is-active {
	display: block;
	opacity: 1;
}
.search-overlay-content {
	max-width: 800px;
	margin: 5vh auto;
	padding: 2rem;
}
.close-search-btn {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 2.5rem;
	color: #999;
	background: none;
	border: none;
	cursor: pointer;
}
.kalajokinen-search-input {
	width: 100%;
	padding: 1rem;
	font-size: 1.5rem;
	border: none;
	border-bottom: 2px solid #ccc;
	background-color: transparent;
}
.kalajokinen-search-input:focus {
	outline: none;
	border-bottom-color: #024f91;
}
.search-filters-container {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}
.search-filter-select {
	flex: 1;
	min-width: 180px;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #4c4c4c;
	background-color: #f1f1f1;
	border: 2px solid #ddd;
	border-radius: 5px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c6c6c' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1em;
	cursor: pointer;
}
body.dark-theme .search-filter-select {
	color: #e0e0e0;
	background-color: #2c2c2c;
	border-color: #555;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23aaa' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.search-results-container {
	margin-top: 2rem;
}
.search-results-group {
	margin-bottom: 2rem;
}
.search-results-group h3 {
	border-bottom: 1px solid #eee;
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
}
.search-result-item {
	display: block;
	padding: 1rem;
	border-radius: 5px;
	transition: background-color 0.2s ease;
}
.search-result-item:hover {
	background-color: #f1f1f1;
}
.search-result-item .result-title {
	font-weight: 700;
	color: #024f91;
}
.search-result-item .result-excerpt {
	font-size: 0.9rem;
	color: #6c6c6c;
	margin-top: 0.5rem;
}
.search-loader {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #024f91;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 2rem auto;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
.no-results {
	text-align: center;
	color: #999;
	font-style: italic;
	margin-top: 2rem;
}
.search-ad-slot {
	margin-top: 2rem;
	text-align: center;
}

.ad-placeholder-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 2px dashed #ccc;
	background-color: #f9f9f9;
	padding: 2rem;
	min-height: 90px;
	box-sizing: border-box;
	text-decoration: none;
	color: #6c6c6c;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ad-placeholder-wrapper:hover {
	background-color: #f1f1f1;
	border-color: #024f91;
}
.ad-placeholder-title {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}
.ad-placeholder-size {
	font-size: 0.9rem;
	font-family: monospace;
	color: #999;
	margin-bottom: 1rem;
}
.ad-placeholder-cta {
	font-weight: 800;
	color: #024f91;
	text-decoration: underline;
}


.search-results-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.search-result-item-post {
	position: relative;
	padding: 0;
	overflow: hidden;
	border-radius: 5px;
}
.search-result-item-post .result-image {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
}
.search-result-item-post .result-title-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
	padding: 2rem 1rem 1rem 1rem;
	box-sizing: border-box;
}
.search-result-item-post .result-title {
	color: #fff;
	font-size: 0.9rem;
}
.save-search-container {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eee;
}
body.dark-theme .save-search-container {
	border-top-color: #444;
}
#save-search-button {
	background-color: #024f91;
	color: #ffffff;
	border: none;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}
.save-search-status {
	font-size: 0.9rem;
	font-style: italic;
	margin-top: 0.5rem;
}


/*--------------------------------------------------------------
>>> VIMPAMET (WIDGETS)
--------------------------------------------------------------*/
.widget {
	margin-bottom: 2.5rem;
}
.widget-area .ad-placeholder-wrapper-container {
    margin-bottom: 2.5rem;
}
.widget-title {
	font-size: 1.2rem;
	text-transform: uppercase;
	border-bottom: 2px solid #024f91;
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
}
.kalajokinen-widget-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.kalajokinen-widget-list li {
	padding: 0.75rem 0;
	border-bottom: 1px solid #eee;
}
.kalajokinen-widget-list li:first-child {
	padding-top: 0;
}
.kalajokinen-widget-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.widget-post-title {
	font-weight: 700;
	display: block;
	margin-bottom: 0.25rem;
	line-height: 1.4;
}
.widget-post-meta {
	font-size: 0.8rem;
	color: #6c6c6c;
	display: flex;
	justify-content: space-between;
}
.widget-post-comments {
	color: #6c6c6c;
}
.widget-post-comments:hover {
	text-decoration: underline;
}
.widget-post-diamond-reason {
	font-weight: 700;
	color: #024f91;
}

.kalajokinen-recent-posts-list .widget-post-link-wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.kalajokinen-recent-posts-list .widget-post-thumbnail {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 3px;
}
.kalajokinen-recent-posts-list .widget-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.kalajokinen-recent-posts-list .widget-post-content {
	flex-grow: 1;
}
.kalajokinen-recent-posts-list .widget-post-title {
	margin-bottom: 0;
}

/* Yhteistyö-vimpain */
.sponsored-widget-container {
	border: 2px solid #024f91;
	padding: 0.5rem;
}
.sponsored-image-wrapper {
	position: relative;
}
.sponsored-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
}
.sponsored-tag {
	position: absolute;
	top: 0;
	left: 0;
	background-color: #024f91;
	color: #fff;
	padding: 0.25rem 0.5rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
}
.sponsored-title {
	background-color: #024f91;
	color: #fff;
	padding: 0.75rem;
	margin: 0;
	font-size: 1rem;
}

/* Viikon kysymys -vimpain */
.kalajokinen-poll-widget .poll-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
}
.kalajokinen-poll-widget.has-voted .poll-options {
	display: none;
}
.kalajokinen-poll-widget .poll-option-button {
	width: 100%;
	background-color: #f1f1f1;
	border: 1px solid #ddd;
	padding: 0.75rem;
	text-align: left;
	cursor: pointer;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.2s ease;
}
.kalajokinen-poll-widget .poll-option-button:hover {
	background-color: #e0e0e0;
}
.kalajokinen-poll-widget .poll-total-votes {
	font-size: 0.8rem;
	color: #6c6c6c;
	margin-top: 1rem;
	text-align: center;
}
.kalajokinen-poll-widget .poll-results {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.kalajokinen-poll-widget .poll-result-bar-bg {
	position: relative;
	background-color: #f1f1f1;
	border-radius: 4px;
	overflow: hidden;
}
.kalajokinen-poll-widget:not(.has-voted) .poll-result-bar-bg {
	cursor: pointer;
}
.kalajokinen-poll-widget:not(.has-voted) .poll-result-bar-bg:hover {
	background-color: #e9e9e9;
}
.kalajokinen-poll-widget .poll-result-bar-fg {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background-color: #a7c7e7;
	transition: width 0.5s ease-in-out;
	z-index: 1;
}
.kalajokinen-poll-widget .poll-result-content {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0.75rem;
	box-sizing: border-box;
}
.kalajokinen-poll-widget .poll-option-text,
.kalajokinen-poll-widget .poll-result-percentage {
	font-weight: 600;
	color: #4c4c4c;
}

.poll-result-bar-fg.poll-fg-yes {
	background-color: #d4edda;
}
.poll-result-bar-fg.poll-fg-no {
	background-color: #f8d7da;
}
.poll-result-bar-fg.poll-fg-maybe {
	background-color: #fff3cd;
}

body.dark-theme .kalajokinen-poll-widget .poll-option-button {
	background-color: #333;
	border-color: #555;
	color: #f5f5f5;
}
body.dark-theme .kalajokinen-poll-widget .poll-option-button:hover {
	background-color: #444;
}
body.dark-theme .kalajokinen-poll-widget .poll-total-votes {
	color: #aaa;
}
body.dark-theme .kalajokinen-poll-widget .poll-result-bar-bg {
	background-color: #333;
}
body.dark-theme .kalajokinen-poll-widget .poll-option-text,
body.dark-theme .kalajokinen-poll-widget .poll-result-percentage {
	color: #f5f5f5;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
body.dark-theme .kalajokinen-poll-widget .poll-result-bar-fg {
	background-color: #58a6ff;
	opacity: 0.5;
}
body.dark-theme .poll-result-bar-fg.poll-fg-yes {
	background-color: #28a745;
}
body.dark-theme .poll-result-bar-fg.poll-fg-no {
	background-color: #dc3545;
}
body.dark-theme .poll-result-bar-fg.poll-fg-maybe {
	background-color: #ffc107;
}


/*--------------------------------------------------------------
>>> KOMMENTOINTI
--------------------------------------------------------------*/
.comments-area {
	margin-top: 3rem;
}
.comments-title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.comment-body {
	padding: 1.5rem 0;
	border-top: 1px solid #eee;
}
.comment-list .children {
	list-style: none;
	padding-left: 2rem;
}
.comment-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 1rem;
}
.comment-author-name {
	font-weight: 800;
	font-size: 1.1rem;
}
.staff-tag {
	color: #024f91;
	font-weight: 800;
}
.comment-metadata, .comment-metadata a {
	font-size: 0.8rem;
	color: #6c6c6c;
}
.comment-content {
	line-height: 1.7;
}
.comment-content blockquote {
	border-left: 3px solid #024f91;
	padding-left: 1rem;
	margin: 1rem 0;
	font-style: italic;
	color: #6c6c6c;
}
.comment-actions {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.comment-actions button {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 700;
	color: #6c6c6c;
}
.comment-actions button:hover {
	color: #024f91;
}
.comment-voting {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-left: auto;
}
.comment-vote-button {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.comment-vote-button.is-active {
	color: #024f91;
}
.comment-status-box {
	background-color: #e7f0f7;
	border-left: 4px solid #024f91;
	padding: 1rem 1.5rem;
	margin-bottom: 2rem;
}
.comment-status-box p {
	margin: 0;
	font-weight: 600;
}
.comment-status-box.is-closed {
	background-color: #f8d7da;
	border-left-color: #721c24;
	color: #721c24;
}

.comment-vote-button {
	font-size: 1.2rem;
	line-height: 1;
}
.comment-vote-button .comment-vote-count {
	font-size: 0.9rem;
	line-height: 1.2;
}


/*--------------------------------------------------------------
>>> KOMMENTTILOMAKE
--------------------------------------------------------------*/
.comment-form-comment {
	margin-bottom: 1rem;
}
.comment-form-comment label {
	display: none;
}
.comment-form-comment textarea {
	width: 100%;
	padding: 1rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #f9f9f9;
}
.comment-submit-button {
	background-color: #024f91;
	color: #ffffff;
	border: 2px solid #024f91;
	padding: 0.8rem 2rem;
	font-size: 1rem;
	font-weight: 900;
	cursor: pointer;
	text-transform: uppercase;
	transition: background-color 0.3s ease, color 0.3s ease;
	border-radius: 999px;
}
.comment-submit-button:hover {
	background-color: #ffffff;
	color: #024f91;
}
.comment-rules-box {
	background-color: #e7f0f7;
	border-left: 4px solid #024f91;
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
}
.comment-rules-box a {
	font-weight: 700;
}
.logged-in-as {
	font-size: 0.9rem;
	color: #6c6c6c;
}
.logged-in-as a {
	font-weight: 700;
}


/*--------------------------------------------------------------
>>> TUMMA TEEMA
--------------------------------------------------------------*/
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}
body.dark-theme #site-header-sticky-wrapper {
	background-color: #1a1a1a;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
body.dark-theme h1, body.dark-theme .site-title, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme h6 {
    color: #f5f5f5;
}
body.dark-theme .site-header {
    border-bottom-color: #333;
}
body.dark-theme .main-navigation a {
    color: #e0e0e0;
}
body.dark-theme .main-navigation a:hover {
	color: #58a6ff;
}
body.dark-theme .main-navigation .sub-menu {
    background-color: #2c2c2c;
    border-color: #444;
}
body.dark-theme .main-navigation .sub-menu a {
    color: #e0e0e0;
}
body.dark-theme .main-navigation .sub-menu a:hover {
	background-color: #444;
	color: #58a6ff;
}
body.dark-theme .site-footer,
body.dark-theme .picks-section {
    background-color: #222;
}
body.dark-theme .kalajokinen-card .card-image-container {
    background-color: #333;
}
body.dark-theme .weather-page-section,
body.dark-theme .tanaan-section {
	background-color: #222;
	border-color: #444;
}
body.dark-theme .weather-page-section h2, body.dark-theme .warning-title,
body.dark-theme .tanaan-section h2,
body.dark-theme .tanaan-box h2 {
	border-bottom-color: #444;
}
body.dark-theme .fmi-data-item, body.dark-theme .hourly-item, body.dark-theme .forecast-day {
	background-color: #2c2c2c;
	border-color: #444;
}
body.dark-theme .forecast-extra {
	border-top-color: #444;
}
body.dark-theme .photo-summary {
	color: #aaa;
}
body.dark-theme .ajankohtaista-palkki {
	background-color: #4a2d30;
	border-bottom-color: #5c373a;
}
body.dark-theme .ajankohtaista-otsikko,
body.dark-theme .ajankohtaista-linkit a {
	color: #f5c6cb;
}
body.dark-theme .search-overlay {
    background-color: rgba(26, 26, 26, 0.98);
}
body.dark-theme .close-search-btn {
    color: #aaa;
}
body.dark-theme .kalajokinen-search-input {
    color: #f5f5f5;
    border-bottom-color: #444;
}
body.dark-theme .kalajokinen-search-input:focus {
    border-bottom-color: #58a6ff;
}
body.dark-theme .search-results-group h3 {
    border-bottom-color: #444;
}
body.dark-theme .search-result-item:hover {
    background-color: #2c2c2c;
}
body.dark-theme .search-result-item .result-title {
    color: #58a6ff;
}
body.dark-theme .search-result-item .result-excerpt {
    color: #aaa;
}
body.dark-theme .search-loader {
    border-color: #444;
    border-top-color: #58a6ff;
}
body.dark-theme .no-results {
    color: #aaa;
}

body.dark-theme .ad-placeholder-wrapper {
	border-color: #444;
	background-color: #222;
	color: #aaa;
}
body.dark-theme .ad-placeholder-wrapper:hover {
	background-color: #2c2c2c;
	border-color: #58a6ff;
}
body.dark-theme .ad-placeholder-size {
	color: #777;
}
body.dark-theme .ad-placeholder-cta {
	color: #58a6ff;
}

body.dark-theme .comment-body {
	border-top-color: #333;
}
body.dark-theme .staff-tag {
	color: #58a6ff;
}
body.dark-theme .comment-metadata,
body.dark-theme .comment-metadata a {
	color: #aaa;
}
body.dark-theme .comment-content blockquote {
	border-left-color: #58a6ff;
	color: #aaa;
}
body.dark-theme .comment-actions button {
	color: #aaa;
}
body.dark-theme .comment-actions button:hover,
body.dark-theme .comment-vote-button.is-active {
	color: #58a6ff;
}
body.dark-theme .comment-status-box {
	background-color: #2c3e50;
	border-left-color: #58a6ff;
}
body.dark-theme .comment-status-box.is-closed {
	background-color: #5c373a;
	border-left-color: #f5c6cb;
	color: #f5c6cb;
}
body.dark-theme .comment-form-comment textarea {
	background-color: #2c2c2c;
	border-color: #555;
	color: #f5f5f5;
}
body.dark-theme .comment-rules-box {
	background-color: #2c3e50;
	border-left-color: #58a6ff;
}
body.dark-theme .logged-in-as {
	color: #aaa;
}


/*--------------------------------------------------------------
>>> OMA TILI -SIVU
--------------------------------------------------------------*/
.account-page-title {
	margin-bottom: 1.5rem;
	margin-top: 2rem;
}
.account-page-welcome {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}
.account-page-welcome strong {
	font-weight: 700;
}
.account-page-username {
	color: #024f91;
	font-weight: 700;
}
.account-page-wrapper {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}
.account-page-nav {
	width: 200px;
	flex-shrink: 0;
}
.account-page-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.account-page-nav a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 5px;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.account-page-nav li.is-active a {
	background-color: #024f91;
	color: #fff;
}
.account-page-nav a:not(.is-active):hover {
	background-color: #f1f1f1;
}
body.dark-theme .account-page-nav a:not(.is-active):hover {
	background-color: #2c2c2c;
}
.account-page-content {
	flex-grow: 1;
}
.account-content-section {
	padding: 1.5rem;
	border: 1px solid #eee;
	border-radius: 5px;
}
body.dark-theme .account-content-section {
	border-color: #333;
}
.account-content-section h2 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}
body.dark-theme .account-content-section h2 {
	border-bottom-color: #333;
}
.account-form-row {
	margin-bottom: 1rem;
}
.account-form-row label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.account-form-row input[type="text"],
.account-form-row input[type="email"],
.account-form-row input[type="password"],
.account-form-row input[type="tel"],
.account-form-row textarea {
	width: 100%;
	max-width: 400px;
	padding: 0.75rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #fff;
	color: #4c4c4c;
}
body.dark-theme .account-form-row input[type="text"],
body.dark-theme .account-form-row input[type="email"],
body.dark-theme .account-form-row input[type="password"],
body.dark-theme .account-form-row input[type="tel"],
body.dark-theme .account-form-row input[type="textarea"] {
	background-color: #2c2c2c;
	border-color: #555;
	color: #f5f5f5;
}
.account-form-submit {
	background-color: #024f91;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 700;
	transition: background-color 0.2s ease;
}
.account-form-submit:hover {
	background-color: #225a82;
}
.account-notice {
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 5px;
	border-left-width: 5px;
	border-left-style: solid;
}
.account-notice.success {
	background-color: #d4edda;
	border-color: #28a745;
	color: #155724;
}
.account-notice.error {
	background-color: #f8d7da;
	border-color: #dc3545;
	color: #721c24;
}
.saved-articles-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.saved-article-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}
.saved-article-item:last-child {
	border-bottom: none;
}
body.dark-theme .saved-article-item {
	border-bottom-color: #333;
}
.saved-article-item-thumbnail img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 5px;
}
.saved-article-item-details {
	flex-grow: 1;
}
.saved-article-item-title {
	font-weight: 700;
	margin-bottom: 0.25rem;
}
.saved-article-item-meta {
	font-size: 0.8rem;
	color: #6c6c6c;
}
.saved-article-item-actions .save-post-button {
	background-color: #f8d7da;
	color: #721c24;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.saved-article-item-actions .save-post-button:hover {
	background-color: #f5c6cb;
}
.saved-article-item-actions .save-post-button svg {
	width: 16px;
	height: 16px;
}
.followed-terms-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0;
	margin: 0;
	list-style: none;
}
.followed-term-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.25rem 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
}
.followed-term-item a {
	color: #4c4c4c;
}
.followed-term-item .follow-category-button,
.followed-term-item .follow-tag-button {
	background-color: rgba(0,0,0,0.1);
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #4c4c4c;
	margin: 0;
	padding: 0;
}
.followed-term-item .follow-category-button:hover,
.followed-term-item .follow-tag-button:hover {
	background-color: rgba(0,0,0,0.2);
}
.followed-term-item .follow-category-button svg,
.followed-term-item .follow-tag-button svg {
	width: 14px;
	height: 14px;
}
.followed-term-item.tag-color-1 { background-color: #a7c7e7; }
.followed-term-item.tag-color-2 { background-color: #b2d8d8; }
.followed-term-item.tag-color-3 { background-color: #fdd9b5; }
.followed-term-item.tag-color-4 { background-color: #d8bfd8; }
.followed-term-item.tag-color-0 { background-color: #c1e1c1; }

.poll-status {
	font-weight: 700;
	padding: 0.2em 0.6em;
	border-radius: 4px;
	font-size: 0.8rem;
	display: inline-block;
}
.poll-status.status-published {
	background-color: #d4edda;
	color: #155724;
}
.poll-status.status-draft {
	background-color: #e2e3e5;
	color: #383d41;
}

.poll-results-details {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0.5rem;
    font-size: 0.9em;
}
.poll-results-details li {
    padding: 0.25rem 0;
}
.poll-results-details .poll-result-yes {
    color: #155724;
}
.poll-results-details .poll-result-no {
    color: #721c24;
}
.poll-results-details .poll-result-maybe {
    color: #856404;
}
.poll-total-votes-cell {
	font-weight: 700;
}
.poll-shortcode-input {
	width: 100%;
	font-family: monospace;
	font-size: 0.8em;
	padding: 0.25em;
	margin-top: 0.5em;
	background-color: #f1f1f1;
	border: 1px solid #ddd;
}
body.dark-theme .poll-shortcode-input {
	background-color: #222;
	border-color: #555;
	color: #f5f5f5;
}
.account-form-row .description {
	font-size: 0.85rem;
	color: #6c6c6c;
	margin-top: 0.5rem;
}
body.dark-theme .account-form-row .description {
	color: #aaa;
}


/* OMA TILI -SIVU / SAAVUTUKSET & TALLENNETUT HAUT */
.gamification-summary {
	padding: 1rem 1.5rem;
	background-color: #f1f1f1;
	border-radius: 5px;
	margin-bottom: 2rem;
	text-align: center;
}
.gamification-summary .total-points {
	font-size: 1.5em;
	font-weight: 900;
	color: #024f91;
}

.achievements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
}
.achievement-badge {
	background-color: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	opacity: 0.5;
	filter: grayscale(80%);
	transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.achievement-badge.is-unlocked {
	opacity: 1;
	filter: grayscale(0%);
	border-left: 5px solid #28a745;
	background-color: #fff;
}
.achievement-badge.is-unlocked:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.achievement-icon {
	font-size: 3rem;
	line-height: 1;
}
.achievement-details {
	flex-grow: 1;
}
.achievement-title {
	margin: 0 0 0.25rem 0;
	font-size: 1.1rem;
}
.achievement-description {
	margin: 0;
	font-size: 0.9rem;
	color: #6c6c6c;
}

.account-form-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.account-form-checkbox-row label {
    margin-bottom: 0;
}
.account-form-checkbox-row .description {
    margin: 0;
    font-size: 0.85rem;
    color: #6c6c6c;
    flex-basis: 100%;
    padding-left: calc(1.3em + 0.75rem);
}

.saved-searches-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.saved-search-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s ease;
}
.saved-search-item:last-child {
	border-bottom: none;
}
.saved-search-item:hover {
	background-color: #f9f9f9;
}
.saved-search-details {
	display: flex;
	flex-direction: column;
}
.saved-search-name {
	font-weight: 700;
}
.saved-search-date {
	font-size: 0.8rem;
	color: #6c6c6c;
	margin-top: 0.25rem;
}
.saved-search-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}
.delete-saved-search-btn {
	background-color: #f8d7da;
	color: #721c24;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: bold;
	transition: background-color 0.2s ease;
}
.delete-saved-search-btn:hover {
	background-color: #f5c6cb;
}
.run-saved-search-btn {
	font-weight: 700;
	font-size: 0.9rem;
}

/* TERVEYSTARKISTIN */
.health-check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}
.health-check-item {
	border: 1px solid #ddd;
	border-radius: 5px;
	border-left-width: 5px;
}
.health-check-header {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.health-check-label {
	font-weight: 700;
	font-size: 1.1rem;
}
.health-check-status-icon::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
}
.health-check-body {
	padding: 1rem 1.5rem;
}
.health-check-value {
	font-size: 1.5rem;
	font-weight: 800;
}
.health-check-message {
	font-size: 0.9rem;
	margin: 0.5rem 0 0 0;
	color: #6c6c6c;
}
.health-check-progress-bar {
	background-color: #e9ecef;
	border-radius: 0.25rem;
	height: 10px;
	margin-top: 1rem;
	overflow: hidden;
}
.health-check-progress-bar-inner {
	height: 100%;
	background-color: #28a745;
}
.health-status-ok { border-left-color: #28a745; }
.health-status-ok .health-check-status-icon::before { background-color: #28a745; content: '✓'; color: #fff; text-align: center; font-weight: bold; line-height: 24px; }
.health-status-warning { border-left-color: #ffc107; }
.health-status-warning .health-check-status-icon::before { background-color: #ffc107; content: '!'; color: #fff; text-align: center; font-weight: bold; line-height: 24px; }
.health-status-warning .health-check-progress-bar-inner { background-color: #ffc107; }
.health-status-error { border-left-color: #dc3545; }
.health-status-error .health-check-status-icon::before { background-color: #dc3545; content: '×'; color: #fff; text-align: center; font-weight: bold; line-height: 24px; }
.health-status-error .health-check-progress-bar-inner { background-color: #dc3545; }

/* Tumma teema */
body.dark-theme .gamification-summary {
	background-color: #2c2c2c;
}
body.dark-theme .gamification-summary .total-points {
	color: #58a6ff;
}
body.dark-theme .achievement-badge {
	background-color: #2c2c2c;
	border-color: #444;
}
body.dark-theme .achievement-badge.is-unlocked {
	border-left-color: #28a745;
	background-color: #333;
}
body.dark-theme .achievement-description {
	color: #aaa;
}
body.dark-theme .account-form-checkbox-row .description {
	color: #aaa;
}
body.dark-theme .health-check-item {
	border-color: #444;
	background-color: #2c2c2c;
}
body.dark-theme .health-check-header {
	border-bottom-color: #444;
}
body.dark-theme .health-check-message {
	color: #aaa;
}
body.dark-theme .health-check-progress-bar {
	background-color: #555;
}
body.dark-theme .saved-search-item {
	border-bottom-color: #444;
}
body.dark-theme .saved-search-item:hover {
	background-color: #2c2c2c;
}
body.dark-theme .delete-saved-search-btn {
	background-color: #583c43;
	color: #f5c6cb;
}
body.dark-theme .delete-saved-search-btn:hover {
	background-color: #6d4750;
}

/*--------------------------------------------------------------
>>> LIGHTBOX-TOIMINNALLISUUS
--------------------------------------------------------------*/
body.lightbox-open {
	overflow: hidden;
}
#kalajokinen-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	z-index: 3000;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}
.lightbox-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.lightbox-content img {
	max-width: 100%;
	max-height: calc(90vh - 80px);
	height: auto;
	display: block;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
	position: absolute;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 2.5rem;
	z-index: 10;
	text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.lightbox-close {
	top: 1rem;
	right: 1rem;
}
.lightbox-prev, .lightbox-next {
	top: 50%;
	transform: translateY(-50%);
}
.lightbox-prev {
	left: 1rem;
}
.lightbox-next {
	right: 1rem;
}
.lightbox-counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    z-index: 10;
}


/*--------------------------------------------------------------
>>> RESPONSIIVISUUS (MEDIA QUERIES)
--------------------------------------------------------------*/

.mobile-header-controls {
	display: none;
	align-items: center;
	gap: 1rem;
}

.mobile-header-controls .theme-switcher-btn,
.mobile-header-controls .open-search-btn {
	color: #4c4c4c;
}

body.dark-theme .mobile-header-controls .theme-switcher-btn,
body.dark-theme .mobile-header-controls .open-search-btn {
	color: #f5f5f5;
}

#mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.98);
	z-index: 1002;
	overflow-y: auto;
	padding: 6rem 2rem 2rem 2rem;
	box-sizing: border-box;
	transform: translateY(-100%);
	transition: transform 0.4s ease-in-out;
	display: block;
}
body.dark-theme #mobile-menu-overlay {
	background-color: rgba(26, 26, 26, 0.98);
}

#mobile-menu-overlay.is-open {
	transform: translateY(0);
}

body.mobile-menu-open {
	overflow: hidden;
}

.mobile-menu-close {
	position: absolute;
	top: 1.5rem;
	right: 20px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 1003;
}
.mobile-menu-close .hamburger-box {
	width: 24px;
	height: 18px;
	display: inline-block;
	position: relative;
}
.mobile-menu-close .hamburger-inner,
.mobile-menu-close .hamburger-inner::before,
.mobile-menu-close .hamburger-inner::after {
	width: 100%;
	height: 2px;
	background-color: #4c4c4c;
	position: absolute;
	transition: transform 0.25s ease-in-out;
}
body.dark-theme .mobile-menu-close .hamburger-inner,
body.dark-theme .mobile-menu-close .hamburger-inner::before,
body.dark-theme .mobile-menu-close .hamburger-inner::after {
	background-color: #f5f5f5;
}

.mobile-menu-close .hamburger-inner {
	background-color: transparent;
}
.mobile-menu-close .hamburger-inner::before {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}
.mobile-menu-close .hamburger-inner::after {
	bottom: 50%;
	transform: translateY(50%) rotate(-45deg);
}


.mobile-menu-top-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #eee;
}
body.dark-theme .mobile-menu-top-bar {
	border-bottom-color: #333;
}

.mobile-menu-top-bar .top-bar-account a {
	font-weight: 700;
}
body.dark-theme .mobile-menu-top-bar .top-bar-account a {
	color: #f5f5f5;
}

.mobile-menu-top-bar .top-bar-social {
	gap: 1.5rem;
}

.mobile-menu-top-bar .top-bar-social-link svg {
	width: 22px;
	height: 22px;
}
body.dark-theme .mobile-menu-top-bar .top-bar-social-link {
	color: #f5f5f5;
	opacity: 1;
}

.mobile-main-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}
.mobile-main-nav .menu-item a {
	display: block;
	padding: 0.75rem 1rem;
	font-size: 1.2rem;
	font-weight: 800;
	text-transform: uppercase;
	color: #4c4c4c;
	position: relative;
}
body.dark-theme .mobile-main-nav .menu-item a {
	color: #f5f5f5;
}

.mobile-main-nav .menu-item-has-children {
	position: relative;
}

.mobile-main-nav .menu-item-has-children > a {
	padding-right: 40px;
}

.submenu-toggle {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 50px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #4c4c4c;
}
body.dark-theme .submenu-toggle {
	color: #f5f5f5;
}

.submenu-toggle span {
	display: inline-block;
	transition: transform 0.3s ease;
}

.menu-item-has-children.is-open > .submenu-toggle span {
	transform: rotate(180deg);
}

.mobile-main-nav .sub-menu {
	list-style: none;
	padding-left: 0;
	background-color: rgba(0,0,0,0.03);
	display: none;
}
body.dark-theme .mobile-main-nav .sub-menu {
	background-color: rgba(255,255,255,0.05);
}

.mobile-main-nav .menu-item-has-children.is-open > .sub-menu {
	display: block;
}
.mobile-main-nav .sub-menu a {
	font-size: 1rem;
	padding: 0.5rem 1rem;
	font-weight: 700;
}

.mobile-menu-toggle {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 1003;
}
.mobile-menu-toggle .hamburger-box {
	width: 24px;
	height: 18px;
	display: inline-block;
	position: relative;
}
.mobile-menu-toggle .hamburger-inner,
.mobile-menu-toggle .hamburger-inner::before,
.mobile-menu-toggle .hamburger-inner::after {
	width: 100%;
	height: 2px;
	background-color: #4c4c4c;
	position: absolute;
	transition: transform 0.25s ease-in-out, background-color 0.25s ease-in-out;
}
.mobile-menu-toggle .hamburger-inner::before,
.mobile-menu-toggle .hamburger-inner::after {
	content: '';
	display: block;
}

body.dark-theme .mobile-menu-toggle .hamburger-inner,
body.dark-theme .mobile-menu-toggle .hamburger-inner::before,
body.dark-theme .mobile-menu-toggle .hamburger-inner::after {
	background-color: #f5f5f5;
}

.mobile-menu-toggle .hamburger-inner {
	top: 50%;
	transform: translateY(-50%);
}
.mobile-menu-toggle .hamburger-inner::before {
	top: -8px;
}
.mobile-menu-toggle .hamburger-inner::after {
	bottom: -8px;
}

@media screen and (max-width: 900px) {
	.picks-grid,
	.personalized-feed-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.continuum-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 782px) {
	.top-bar-desktop {
		display: none;
	}

	.main-navigation {
		display: none;
	}

	.mobile-header-controls {
		display: flex;
	}

	.kalajokinen-container.has-sidebar,
	.hero-grid,
	.account-page-wrapper {
		flex-direction: column;
		display: block;
	}

	.account-page-nav {
		width: 100%;
		margin-bottom: 2rem;
	}
	.account-page-nav ul {
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 10px;
	}
	.account-page-nav li {
		flex-shrink: 0;
	}

	.hero-main-post,
	.hero-secondary-posts .kalajokinen-card {
		margin-bottom: 1rem;
	}

	.widget-area {
		width: 100%;
	}

	.custom-logo-link img {
		max-width: 200px;
	}

	.single .entry-title {
		font-size: 2.2rem;
	}

	.font-size-small .entry-content {
		font-size: 1rem;
	}

	.font-size-normal .entry-content {
		font-size: 1.15rem;
	}

	.font-size-large .entry-content {
		font-size: 1.35rem;
	}

	.current-weather-details,
	.current-weather-extra,
	.fmi-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.current-weather-main {
		justify-content: center;
	}
}

@media screen and (max-width: 600px) {
	.picks-grid,
	.continuum-grid,
	.archive-grid,
	.personalized-feed-grid {
		grid-template-columns: 1fr;
	}
	.search-results-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*--------------------------------------------------------------
>>> SAAVUTETTAVUUS (ACCESSIBILITY)
--------------------------------------------------------------*/
*:focus-visible {
	outline: 3px solid #024f91;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px rgba(2, 79, 145, 0.3);
}


/*--------------------------------------------------------------
>>> ILMOITUSJÄRJESTELMÄ (NOTIFICATIONS)
--------------------------------------------------------------*/
#kalajokinen-notification-container {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-end;
}

body.admin-bar #kalajokinen-notification-container {
	top: calc(var(--wp-admin--admin-bar--height) + 1rem);
}

.kalajokinen-notification {
	background-color: #28a745;
	color: #fff;
	padding: 1rem 1.5rem;
	border-radius: 5px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	font-weight: 700;
	animation: slideIn 0.3s ease-out forwards, fadeOut 0.5s ease-in 4.5s forwards;
}

.kalajokinen-notification.is-error {
	background-color: #dc3545;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

/*--------------------------------------------------------------
>>> LUKEMISEN EDISTYMISPALKKI
--------------------------------------------------------------*/
#reading-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 4px;
	background-color: #024f91;
	width: 0%;
	z-index: 1001;
	transition: width 0.1s linear;
}

body.dark-theme #reading-progress-bar {
	background-color: #58a6ff;
}

/*--------------------------------------------------------------
>>> PAGE.PHP (STAATTISET SIVUT)
--------------------------------------------------------------*/
.page #content .kalajokinen-container {
	max-width: 900px;
}

.page .entry-header {
	text-align: center;
	margin-bottom: 2rem;
}

.page .entry-title {
	font-size: 2.8rem;
}

/*--------------------------------------------------------------
>>> OMA TILI -SIVU / MODEROINTI
--------------------------------------------------------------*/
.moderation-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5rem;
}
.moderation-table th,
.moderation-table td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid #eee;
}
.moderation-table th {
	font-weight: 700;
}
.moderation-comment-content {
	font-style: italic;
}
.moderation-comment-content blockquote {
	margin: 0.5em 0 0.5em 1em;
	padding-left: 1em;
	border-left: 3px solid #ccc;
	color: #6c6c6c;
}
.moderation-author-info {
	font-size: 0.85rem;
	color: #6c6c6c;
}
.moderation-actions {
	display: flex;
	gap: 0.5rem;
}
.moderation-action-btn {
	padding: 0.4rem 0.8rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.8rem;
}
.moderation-action-btn.keep {
	background-color: #d4edda;
	color: #155724;
}
.moderation-action-btn.keep:hover {
	background-color: #c3e6cb;
}
.moderation-action-btn.delete {
	background-color: #f8d7da;
	color: #721c24;
}
.moderation-action-btn.delete:hover {
	background-color: #f5c6cb;
}

/* Tumma teema */
body.dark-theme .moderation-table th,
body.dark-theme .moderation-table td {
	border-bottom-color: #333;
}
body.dark-theme .moderation-comment-content blockquote {
	border-left-color: #555;
	color: #aaa;
}
body.dark-theme .moderation-author-info {
	color: #aaa;
}
body.dark-theme .moderation-action-btn.keep {
	background-color: #224028;
	color: #a3d9b1;
}
body.dark-theme .moderation-action-btn.keep:hover {
	background-color: #2c5134;
}
body.dark-theme .moderation-action-btn.delete {
	background-color: #583c43;
	color: #f5c6cb;
}
body.dark-theme .moderation-action-btn.delete:hover {
	background-color: #6d4750;
}

/* UUSI: Tänään tapahtui (Wikipedia) */
.tanaan-box {
	background-color: transparent;
	border: none;
	padding: 0;
}
.tanaan-box h2 {
	margin-top: 0;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 1.5rem;
	font-size: 1.2rem; /* Yhdenmukaistettu otsikkokoko */
}
.tanaan-box a {
	font-weight: 700;
}
body.dark-theme .tanaan-box a {
	color: #58a6ff;
}
body.dark-theme .tanaan-section .tanaan-box h2 {
	border-bottom: none;
}
