/*
Theme Name: Atlas Portal
Theme URI: https://example.com/atlas-portal
Author: Atlas Portal
Description: Haber, teknoloji ürünü ve gezi rehberi içerikleri için hızlı, mobil öncelikli ve modern portal teması.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: atlas-portal
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--atlas-accent: #155eef;
	--atlas-navy: #0b1736;
	--atlas-text: #17233b;
	--atlas-muted: #61708d;
	--atlas-line: #e2e8f2;
	--atlas-bg: #f5f7fb;
	--atlas-surface: #fff;
	--atlas-orange: #f97316;
	--atlas-radius: 16px;
	--atlas-shadow: 0 8px 25px rgba(15, 31, 64, .055);
	--atlas-container: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--atlas-bg);
	color: var(--atlas-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--atlas-text);
	text-decoration: none;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

a:hover,
a:focus-visible {
	color: var(--atlas-accent);
}

h1,
h2,
h3,
h4,
p {
	margin-top: 0;
}

h1,
h2,
h3,
h4 {
	color: var(--atlas-navy);
	font-weight: 750;
	letter-spacing: -.025em;
	line-height: 1.2;
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

.container {
	width: min(calc(100% - 32px), var(--atlas-container));
	margin-right: auto;
	margin-left: auto;
}

.card {
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: var(--atlas-radius);
	box-shadow: var(--atlas-shadow);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 10000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip-path: none;
	background: var(--atlas-surface);
	color: var(--atlas-navy);
}

.skip-link {
	border-radius: 8px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--atlas-line);
	backdrop-filter: blur(12px);
}

.admin-bar .site-header {
	top: 46px;
}

.header-row {
	display: flex;
	align-items: center;
	min-height: 68px;
	gap: 12px;
}

.site-branding {
	flex: 1;
	min-width: 0;
}

.custom-logo {
	max-width: 180px;
	max-height: 48px;
	width: auto;
}

.brand-name {
	display: inline-block;
	color: var(--atlas-navy);
	font-size: clamp(1.35rem, 4vw, 1.65rem);
	font-weight: 800;
	letter-spacing: -.045em;
}

.brand-tagline {
	display: none;
	margin-left: 14px;
	color: var(--atlas-muted);
	font-size: .84rem;
}

.menu-toggle,
.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: 12px;
	color: var(--atlas-navy);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
	position: relative;
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	content: "";
}

.menu-lines::before {
	position: absolute;
	top: -6px;
}

.menu-lines::after {
	position: absolute;
	top: 6px;
}

.primary-navigation {
	position: absolute;
	top: 68px;
	right: 0;
	left: 0;
	display: none;
	padding: 10px 16px 18px;
	background: var(--atlas-surface);
	border-bottom: 1px solid var(--atlas-line);
}

.primary-navigation.is-open {
	display: block;
}

.menu {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a {
	display: block;
	padding: 11px 12px;
	border-radius: 9px;
	font-weight: 600;
}

.menu .current-menu-item > a,
.menu a:hover {
	background: #eff5ff;
	color: var(--atlas-accent);
}

.header-search {
	padding: 12px 0;
	background: var(--atlas-surface);
	border-top: 1px solid var(--atlas-line);
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	width: 100%;
	min-width: 0;
	padding: 11px 14px;
	background: #f6f8fc;
	border: 1px solid var(--atlas-line);
	border-radius: 10px;
	color: var(--atlas-text);
}

.search-field:focus,
.archive-filters input:focus,
.archive-filters select:focus {
	border-color: var(--atlas-accent);
	outline: 2px solid rgba(21, 94, 239, .18);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	background: var(--atlas-accent);
	border: 1px solid var(--atlas-accent);
	border-radius: 10px;
	color: #fff;
	font-weight: 650;
}

.button:hover,
.button:focus-visible {
	background: var(--atlas-navy);
	border-color: var(--atlas-navy);
	color: #fff;
}

.secondary-button {
	margin-top: 20px;
	background: transparent;
	color: var(--atlas-accent);
}

.site-main {
	min-height: 58vh;
	padding-bottom: 46px;
}

.breadcrumbs {
	padding-top: 16px;
	padding-bottom: 10px;
	font-size: .84rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 0;
	color: var(--atlas-muted);
	list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
	margin-left: 8px;
	color: #a7b2c8;
	content: "/";
}

.breadcrumbs li:last-child {
	max-width: 62ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.section-block {
	margin-top: 27px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.section-heading h2 {
	margin-bottom: 0;
	font-size: clamp(1.3rem, 4vw, 1.7rem);
}

.section-heading p {
	margin: 4px 0 0;
	color: var(--atlas-muted);
	font-size: .92rem;
}

.section-heading > a {
	flex: none;
	color: var(--atlas-accent);
	font-size: .9rem;
	font-weight: 650;
}

.category-pill {
	display: inline-flex;
	margin-bottom: 10px;
	padding: 4px 9px;
	background: #edf4ff;
	border-radius: 100px;
	color: var(--atlas-accent);
	font-size: .72rem;
	font-weight: 750;
	letter-spacing: .045em;
	text-transform: uppercase;
}

.posts-grid {
	display: grid;
	gap: 16px;
}

.post-card {
	overflow: hidden;
}

.card-image {
	display: block;
	aspect-ratio: 1.65;
	overflow: hidden;
	background: #e9eef7;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}

.post-card:hover .card-image img {
	transform: scale(1.025);
}

.card-body {
	padding: 15px;
}

.card-title {
	margin-bottom: 8px;
	font-size: 1.12rem;
}

.card-title a:hover {
	color: var(--atlas-accent);
}

.card-excerpt {
	color: var(--atlas-muted);
	font-size: .91rem;
}

.card-excerpt p {
	margin-bottom: 11px;
}

.detail-chip {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 10px;
	background: #f4f6fb;
	border-radius: 7px;
	color: var(--atlas-muted);
	font-size: .8rem;
	font-weight: 600;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 15px;
	color: var(--atlas-muted);
	font-size: .8rem;
}

.entry-meta span:not(:first-child)::before,
.entry-meta time:not(:first-child)::before {
	margin-right: 15px;
	color: #c4ccdc;
	content: "•";
}

.meta-author {
	color: var(--atlas-text);
	font-weight: 650;
}

/* Front page */
.hero-area {
	display: grid;
	gap: 16px;
}

.hero-slider {
	position: relative;
	overflow: hidden;
	min-width: 0;
	border-radius: var(--atlas-radius);
	background: var(--atlas-navy);
}

.hero-slide {
	position: relative;
	display: none;
	min-height: 355px;
}

.hero-slide.is-active {
	display: block;
}

.hero-media {
	display: block;
	height: 355px;
}

.hero-media::after {
	position: absolute;
	inset: 22% 0 0;
	background: linear-gradient(0deg, rgba(5, 14, 35, .94), rgba(5, 14, 35, 0));
	content: "";
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-caption {
	position: absolute;
	right: 20px;
	bottom: 60px;
	left: 20px;
	color: #fff;
}

.hero-caption .category-pill {
	background: var(--atlas-orange);
	color: #fff;
}

.hero-caption h2 {
	margin-bottom: 10px;
	color: #fff;
	font-size: clamp(1.38rem, 5.4vw, 2.25rem);
}

.hero-caption h2 a {
	color: inherit;
}

.hero-caption .entry-meta {
	color: rgba(255, 255, 255, .8);
}

.slider-controls {
	position: absolute;
	right: 18px;
	bottom: 15px;
	left: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.slider-controls > button {
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 50%;
	color: #fff;
	font-size: 1.65rem;
	line-height: 1;
}

.slider-dots {
	display: flex;
	gap: 6px;
}

.slider-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	background: rgba(255, 255, 255, .42);
	border: 0;
	border-radius: 50%;
}

.slider-dots .is-active {
	width: 22px;
	background: #fff;
	border-radius: 8px;
}

.editors-picks {
	padding: 17px;
}

.editors-picks .section-heading {
	margin-bottom: 13px;
}

.editors-picks .section-heading h2 {
	font-size: 1.25rem;
}

.pick-item {
	display: grid;
	grid-template-columns: 82px 1fr;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--atlas-line);
}

.pick-item img {
	width: 82px;
	height: 65px;
	border-radius: 8px;
	object-fit: cover;
}

.pick-item h3 {
	margin-bottom: 5px;
	font-size: .93rem;
	line-height: 1.32;
}

.pick-item time,
.ranked-list time {
	color: var(--atlas-muted);
	font-size: .77rem;
}

.discovery-grid {
	display: grid;
	gap: 16px;
}

.discovery-panel {
	padding: 18px;
}

.ranked-list {
	margin: 0;
	padding-left: 30px;
}

.ranked-list li {
	padding: 11px 0 11px 4px;
	border-top: 1px solid var(--atlas-line);
	color: var(--atlas-accent);
	font-weight: 700;
}

.ranked-list a {
	display: block;
	color: var(--atlas-text);
	font-weight: 650;
	line-height: 1.38;
}

.ranked-list span,
.ranked-list time {
	display: block;
	margin-top: 4px;
	color: var(--atlas-muted);
	font-size: .78rem;
	font-weight: 500;
}

.category-columns {
	display: grid;
	gap: 16px;
}

.category-column {
	padding: 16px;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-top: 3px solid var(--atlas-accent);
	border-radius: var(--atlas-radius);
}

.column-title {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.column-title h3 {
	margin: 0;
	font-size: 1.13rem;
}

.column-title a {
	color: var(--atlas-accent);
	font-size: .85rem;
	font-weight: 650;
}

.column-post {
	padding: 11px 0;
	border-top: 1px solid var(--atlas-line);
}

.column-post h4 {
	margin-bottom: 5px;
	font-size: .95rem;
}

.column-post time {
	color: var(--atlas-muted);
	font-size: .78rem;
}

/* Archives and content */
.content-layout {
	display: grid;
	gap: 26px;
	margin-top: 18px;
}

.page-heading {
	margin-bottom: 21px;
	padding: 21px;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: var(--atlas-radius);
}

.page-heading h1 {
	margin-bottom: 8px;
	font-size: clamp(1.7rem, 7vw, 2.4rem);
}

.page-heading > p,
.archive-description {
	margin-bottom: 0;
	color: var(--atlas-muted);
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.eyebrow {
	margin: 0 0 7px;
	color: var(--atlas-accent);
	font-size: .75rem;
	font-weight: 750;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.archive-filters {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
	padding: 15px;
}

.archive-filters label span {
	display: block;
	margin-bottom: 5px;
	color: var(--atlas-muted);
	font-size: .82rem;
	font-weight: 650;
}

.archive-filters input,
.archive-filters select {
	width: 100%;
	padding: 10px 12px;
	background: #f7f9fc;
	border: 1px solid var(--atlas-line);
	border-radius: 9px;
}

.phone-list {
	display: grid;
	gap: 13px;
}

.post-card-phone-row {
	display: grid;
	grid-template-columns: 116px 1fr;
}

.post-card-phone-row .card-image {
	height: 100%;
	min-height: 144px;
	aspect-ratio: auto;
}

.post-card-phone-row .card-body {
	padding: 13px;
}

.post-card-phone-row .card-title {
	font-size: 1rem;
}

.filter-empty {
	padding: 22px;
	text-align: center;
}

.navigation.pagination {
	margin-top: 25px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 11px;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: 9px;
	font-weight: 600;
}

.page-numbers.current {
	background: var(--atlas-accent);
	border-color: var(--atlas-accent);
	color: #fff;
}

.single-article {
	padding: 19px;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: var(--atlas-radius);
}

.entry-header {
	margin-bottom: 19px;
}

.entry-title {
	margin-bottom: 13px;
	font-size: clamp(1.8rem, 7vw, 2.7rem);
}

.entry-image {
	margin: 0 -19px 23px;
}

.entry-image img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.entry-content {
	color: #23304a;
	font-size: 1.02rem;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.7em;
	margin-bottom: .65em;
}

.entry-content a {
	color: var(--atlas-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content blockquote {
	margin: 26px 0;
	padding: 13px 18px;
	border-left: 3px solid var(--atlas-accent);
	color: var(--atlas-navy);
	font-size: 1.07rem;
	font-weight: 550;
}

.entry-content iframe {
	max-width: 100%;
}

.feature-panel {
	margin: 0 0 24px;
	padding: 17px;
	background: #f7faff;
	border: 1px solid #dbe7fb;
	border-radius: 13px;
}

.feature-panel > h2 {
	margin-bottom: 15px;
	font-size: 1.32rem;
}

.table-wrap {
	overflow-x: auto;
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .94rem;
}

.spec-table th,
.spec-table td {
	padding: 10px 8px;
	border-bottom: 1px solid #dfe7f5;
	text-align: left;
}

.spec-table th {
	width: 41%;
	color: var(--atlas-muted);
	font-weight: 600;
}

.pros-cons {
	display: grid;
	gap: 12px;
	margin-top: 17px;
}

.pros-cons > div {
	padding: 13px;
	background: var(--atlas-surface);
	border-radius: 10px;
}

.pros-cons .pros {
	border-left: 3px solid #19a760;
}

.pros-cons .cons {
	border-left: 3px solid #e45454;
}

.pros-cons h3 {
	margin-bottom: 7px;
	font-size: 1rem;
}

.pros-cons ul {
	margin: 0;
	padding-left: 19px;
}

.place-grid {
	display: grid;
	gap: 10px;
}

.place-detail {
	padding: 12px;
	background: var(--atlas-surface);
	border-radius: 9px;
}

.place-detail h3 {
	margin-bottom: 5px;
	color: var(--atlas-muted);
	font-size: .75rem;
	letter-spacing: .045em;
	text-transform: uppercase;
}

.place-detail p {
	margin: 0;
	font-size: .94rem;
}

.entry-footer {
	margin-top: 29px;
	padding-top: 15px;
	border-top: 1px solid var(--atlas-line);
}

.entry-footer a {
	display: inline-flex;
	margin: 3px;
	padding: 5px 10px;
	background: #f2f5fb;
	border-radius: 18px;
	font-size: .84rem;
}

.tag-title {
	margin-right: 8px;
	color: var(--atlas-muted);
	font-size: .9rem;
	font-weight: 650;
}

.author-card {
	display: flex;
	gap: 13px;
	align-items: center;
	margin-top: 17px;
	padding: 16px;
}

.author-card img {
	border-radius: 50%;
}

.author-card h2 {
	margin-bottom: 3px;
	font-size: 1.05rem;
}

.author-card p {
	margin-bottom: 0;
	color: var(--atlas-muted);
	font-size: .88rem;
}

.related-grid .card-title {
	font-size: 1rem;
}

.comments-area {
	margin-top: 22px;
	padding: clamp(18px, 4vw, 28px);
}

.comments-title,
.comment-reply-title {
	margin-bottom: 17px;
	font-size: 1.32rem;
}

.comment-list {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	margin-bottom: 14px;
	padding: 14px;
	background: #f7f9fc;
	border-radius: 10px;
}

.comment-author {
	display: flex;
	gap: 9px;
	align-items: center;
	font-weight: 650;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	margin: 5px 0 10px 53px;
	color: var(--atlas-muted);
	font-size: .79rem;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-size: .86rem;
	font-weight: 600;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--atlas-line);
	border-radius: 9px;
}

.narrow-page {
	max-width: 820px;
	margin-top: 20px;
}

.empty-state {
	padding: 28px 19px;
	text-align: center;
}

.empty-state .search-form {
	max-width: 480px;
	margin: 20px auto 0;
}

.sidebar {
	display: grid;
	align-content: start;
	gap: 17px;
}

.widget,
.sidebar-popular {
	padding: 17px;
}

.widget-title {
	margin-bottom: 13px;
	font-size: 1.2rem;
}

.widget ul {
	margin: 0;
	padding-left: 18px;
}

.muted {
	color: var(--atlas-muted);
	font-size: .91rem;
}

.ad-slot {
	width: min(calc(100% - 32px), var(--atlas-container));
	margin: 15px auto;
	padding: 9px;
	overflow: hidden;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: 11px;
	text-align: center;
}

.ad-label {
	display: block;
	margin-bottom: 7px;
	color: #919db2;
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.sidebar .ad-slot,
.entry-content .ad-slot {
	width: 100%;
	margin: 20px 0;
}

.error-page {
	display: grid;
	place-items: center;
	min-height: 55vh;
	padding-top: 30px;
}

.error-card {
	max-width: 650px;
	padding: clamp(24px, 6vw, 48px);
	text-align: center;
}

.error-code {
	margin-bottom: 7px;
	color: var(--atlas-accent);
	font-size: clamp(3.4rem, 14vw, 5.8rem);
	font-weight: 800;
	line-height: 1;
}

/* Footer */
.site-footer {
	margin-top: 24px;
	padding-top: 38px;
	background: var(--atlas-navy);
	color: rgba(255, 255, 255, .7);
}

.site-footer a,
.site-footer h2,
.site-footer .brand-name {
	color: #fff;
}

.footer-grid {
	display: grid;
	gap: 28px;
	padding-bottom: 33px;
}

.footer-brand p {
	max-width: 390px;
	margin-top: 12px;
	font-size: .93rem;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.social-links a {
	padding: 6px 11px;
	border: 1px solid rgba(255, 255, 255, .17);
	border-radius: 20px;
	font-size: .82rem;
}

.footer-title {
	margin-bottom: 12px;
	font-size: 1.05rem;
}

.footer-nav .menu {
	gap: 6px;
}

.footer-nav .menu a {
	padding: 2px 0;
	color: rgba(255, 255, 255, .74);
	font-weight: 500;
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 17px 0;
	border-top: 1px solid rgba(255, 255, 255, .11);
	font-size: .83rem;
}

.footer-bottom p {
	margin: 0;
}

.legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
	color: var(--atlas-muted);
	font-size: .88rem;
}

.alignwide {
	max-width: 100%;
}

@media (min-width: 560px) {
	.posts-grid,
	.category-columns,
	.pros-cons,
	.place-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.detail-wide {
		grid-column: 1 / -1;
	}

	.archive-filters {
		grid-template-columns: 1fr 220px;
		align-items: end;
	}

	.entry-image {
		margin-right: 0;
		margin-left: 0;
		border-radius: 12px;
		overflow: hidden;
	}
}

@media (min-width: 760px) {
	.container {
		width: min(calc(100% - 48px), var(--atlas-container));
	}

	.brand-tagline {
		display: inline-block;
	}

	.hero-media,
	.hero-slide {
		height: 470px;
	}

	.latest-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.section-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.section-cards .card-title {
		font-size: 1rem;
	}

	.discovery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1.45fr .8fr 1fr;
	}

	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

@media (min-width: 960px) {
	.admin-bar .site-header {
		top: 32px;
	}

	.header-row {
		gap: 21px;
		min-height: 76px;
	}

	.menu-toggle {
		display: none;
	}

	.primary-navigation {
		position: static;
		display: block;
		flex: 0 1 auto;
		padding: 0;
		border: 0;
	}

	.primary-navigation .menu {
		flex-direction: row;
		gap: 2px;
	}

	.primary-navigation .menu a {
		padding: 10px;
		font-size: .92rem;
	}

	.hero-area {
		grid-template-columns: minmax(0, 1.78fr) minmax(290px, .82fr);
		margin-top: 25px;
	}

	.hero-media,
	.hero-slide {
		height: 493px;
	}

	.content-layout {
		grid-template-columns: minmax(0, 1fr) 314px;
		gap: 27px;
		margin-top: 23px;
	}

	.archive-main .posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.technology-grid,
	.places-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.single-article {
		padding: clamp(24px, 4vw, 42px);
	}

	.entry-image {
		margin-bottom: 30px;
	}
}

/* Portal 2.0 layout extensions */
.mode-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: 12px;
	color: var(--atlas-navy);
	font-size: 1.2rem;
}

.mode-toggle .sun,
.atlas-dark .mode-toggle .moon {
	display: none;
}

.atlas-dark .mode-toggle .sun {
	display: inline;
}

.category-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 12px;
	background: transparent;
	border: 0;
	border-radius: 9px;
	color: var(--atlas-text);
	font-weight: 650;
}

.category-panel {
	padding: 9px 0 0;
}

.category-panel ul {
	display: grid;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-panel a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: .92rem;
	font-weight: 550;
}

.trend-bar {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: 18px;
	overflow: hidden;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: 11px;
	box-shadow: var(--atlas-shadow);
}

.trend-bar strong {
	flex: none;
	padding: 12px 14px;
	background: var(--atlas-orange);
	color: #fff;
	font-size: .76rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.trend-track {
	display: flex;
	gap: 26px;
	align-items: center;
	padding: 10px 18px;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

.trend-track::-webkit-scrollbar {
	display: none;
}

.trend-track a {
	position: relative;
	font-size: .88rem;
	font-weight: 600;
}

.trend-track a:not(:first-child)::before {
	position: absolute;
	left: -14px;
	color: var(--atlas-accent);
	content: "•";
}

.homepage-layout {
	margin-top: 22px;
}

.home-sections {
	min-width: 0;
}

.home-sections .section-block:first-child {
	margin-top: 0;
}

.portal-row {
	padding: 18px;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: var(--atlas-radius);
}

.portal-row-grid {
	display: grid;
	gap: 13px;
}

.portal-row .post-card {
	box-shadow: none;
}

.post-card-lead .card-title {
	font-size: clamp(1.17rem, 4vw, 1.38rem);
}

.post-card-compact {
	display: grid;
	grid-template-columns: 108px 1fr;
	min-height: 112px;
}

.post-card-compact .card-image {
	height: 100%;
	min-height: 112px;
	aspect-ratio: auto;
}

.post-card-compact .card-body {
	padding: 11px;
}

.post-card-compact .category-pill {
	margin-bottom: 5px;
	padding: 3px 7px;
	font-size: .65rem;
}

.post-card-compact .card-title {
	margin-bottom: 7px;
	font-size: .92rem;
}

.post-card-compact .entry-meta {
	font-size: .72rem;
}

.post-card-compact .detail-chip {
	display: none;
}

.category-feature {
	margin-bottom: 18px;
}

.category-layout-technology .page-heading,
.category-layout-mobile .page-heading {
	border-top: 4px solid var(--atlas-accent);
}

.category-layout-phones .page-heading,
.category-layout-computers .page-heading {
	border-top: 4px solid var(--atlas-orange);
}

.category-layout-places .page-heading {
	border-top: 4px solid #12a36d;
}

.category-layout-mobile .category-pill {
	background: #edf8ff;
	color: #087bb8;
}

.category-layout-places .category-pill {
	background: #e8f8f1;
	color: #08784e;
}

.post-card-category-lead {
	overflow: hidden;
}

.post-card-category-lead .card-title {
	font-size: clamp(1.35rem, 5vw, 1.75rem);
}

.category-posts {
	margin-top: 18px;
}

.share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	margin-top: 17px;
}

.share-links span {
	margin-right: 3px;
	color: var(--atlas-muted);
	font-size: .84rem;
	font-weight: 650;
}

.share-links a {
	padding: 5px 10px;
	background: #f1f5fc;
	border: 1px solid var(--atlas-line);
	border-radius: 20px;
	color: var(--atlas-text);
	font-size: .78rem;
	font-weight: 650;
}

.table-of-contents {
	margin-bottom: 23px;
	padding: 16px 19px;
	background: #f7faff;
	box-shadow: none;
}

.table-of-contents h2 {
	margin-bottom: 11px;
	font-size: 1.15rem;
}

.table-of-contents ol {
	margin: 0;
	padding-left: 21px;
}

.table-of-contents li {
	margin: 6px 0;
	color: var(--atlas-accent);
	font-size: .93rem;
}

.table-of-contents .toc-level-3 {
	margin-left: 15px;
}

.post-navigation {
	margin-top: 18px;
}

.post-navigation .nav-links {
	display: grid;
	gap: 10px;
}

.post-navigation a {
	display: block;
	padding: 14px;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: 11px;
	font-weight: 650;
}

.post-navigation a span {
	display: block;
	margin-bottom: 4px;
	color: var(--atlas-muted);
	font-size: .73rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.tag-cloud a {
	padding: 5px 9px;
	background: #f2f5fb;
	border-radius: 18px;
	color: var(--atlas-muted);
	font-size: .78rem;
}

.recent-comments ul {
	padding: 0;
	list-style: none;
}

.recent-comments li {
	padding: 9px 0;
	border-top: 1px solid var(--atlas-line);
	font-size: .86rem;
}

.follow-widget .social-links a {
	color: var(--atlas-text);
}

.ad-mobile {
	display: block;
}

@media (max-width: 959px) {
	body.nav-open {
		overflow: hidden;
	}

	.primary-navigation.is-open {
		position: fixed;
		top: 68px;
		bottom: 0;
		display: block;
		overflow-y: auto;
		padding: 18px 16px 35px;
		background: var(--atlas-surface);
	}

	.admin-bar .primary-navigation.is-open {
		top: 114px;
	}

	.primary-navigation .menu a,
	.category-toggle {
		padding: 14px 12px;
		font-size: 1rem;
	}

	.category-dropdown {
		margin-top: 12px;
		padding-top: 12px;
		border-top: 1px solid var(--atlas-line);
	}
}

@media (min-width: 560px) {
	.portal-row-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-card-lead {
		grid-column: 1 / -1;
	}

	.post-card-category-lead {
		display: grid;
		grid-template-columns: minmax(230px, 44%) 1fr;
	}

	.post-card-category-lead .card-image {
		height: 100%;
		aspect-ratio: auto;
	}

	.post-navigation .nav-links {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 760px) {
	.ad-mobile {
		display: none;
	}
}

@media (min-width: 783px) and (max-width: 959px) {
	.admin-bar .site-header {
		top: 32px;
	}

	.admin-bar .primary-navigation.is-open {
		top: 100px;
	}
}

@media (min-width: 960px) {
	.category-dropdown {
		position: relative;
	}

	.category-toggle {
		width: auto;
		gap: 7px;
		padding: 10px;
		font-size: .92rem;
	}

	.category-panel {
		position: absolute;
		top: calc(100% + 12px);
		right: 0;
		width: 500px;
		padding: 15px;
		background: var(--atlas-surface);
		border: 1px solid var(--atlas-line);
		border-radius: 12px;
		box-shadow: 0 18px 40px rgba(15, 31, 64, .13);
	}

	.category-panel ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-row-grid {
		grid-template-columns: minmax(230px, 1.15fr) repeat(2, minmax(190px, 1fr));
	}

	.post-card-lead {
		grid-row: span 2;
		grid-column: auto;
	}

	.post-card-lead .card-image {
		aspect-ratio: 1.42;
	}

	.category-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1.35fr .85fr repeat(3, minmax(125px, .72fr));
	}
}

/* Dark color mode */
html.atlas-dark {
	color-scheme: dark;
	--atlas-navy: #f2f5fd;
	--atlas-text: #e3e9f5;
	--atlas-muted: #aebad1;
	--atlas-line: #27344d;
	--atlas-bg: #0c1425;
	--atlas-surface: #121e33;
	--atlas-shadow: 0 9px 25px rgba(0, 0, 0, .22);
}

.atlas-dark .site-header,
.atlas-dark .header-search,
.atlas-dark .primary-navigation.is-open {
	background: rgba(18, 30, 51, .98);
}

.atlas-dark .search-field,
.atlas-dark .archive-filters input,
.atlas-dark .archive-filters select,
.atlas-dark .comment-form input:not([type="submit"]),
.atlas-dark .comment-form textarea {
	background: #18263e;
	color: var(--atlas-text);
}

.atlas-dark .category-pill {
	background: #162d56;
}

.atlas-dark .detail-chip,
.atlas-dark .tag-cloud a,
.atlas-dark .entry-footer a,
.atlas-dark .share-links a {
	background: #18263e;
}

.atlas-dark .feature-panel,
.atlas-dark .table-of-contents {
	background: #101c31;
	border-color: #293c60;
}

.atlas-dark .pros-cons > div,
.atlas-dark .place-detail,
.atlas-dark .comment-list .comment {
	background: #17243a;
}
