/*
Theme Name: shan-publisher
Theme URI: https://shan.info/
Author: Yan
Author URI: https://shan.info/
Description: A classic WordPress theme that recreates the visual language of the original Joomla gk_publisher blog "Yan's BLOG": warm paper background, orange accents, pill navigation, hanging date badges and dark sidebar boxes. All templates and styles are an independent rewrite.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shan-publisher
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* -------------------------------------------------------------------------
   1. Fonts
   Exo is self-hosted (SIL Open Font License 1.1, see assets/fonts/OFL.txt).
   ------------------------------------------------------------------------- */
@font-face {
	font-family: "Exo";
	src: url("assets/fonts/exo-latin-ext.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Exo";
	src: url("assets/fonts/exo-latin.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
   2. Design tokens
   Colour and size values are taken from the reference design measurements,
   but the implementation below is written from scratch.
   ------------------------------------------------------------------------- */
:root {
	--c-accent: #de7037;
	--c-accent-soft: #ed8753;
	--c-accent-light: #ffd4bd;
	--c-accent-deep: #da5a12;

	--c-ink: #333333;
	--c-ink-strong: #212121;
	--c-body: #666666;
	--c-muted: #999999;
	--c-dark: #363636;
	--c-dark-line: #4e4e4e;
	--c-footer-line: #484848;
	--c-footer-link: #d5d5d5;

	--c-page-bg: #fffbf4;
	--c-body-bg: #333333;
	--c-paper: #ffffff;
	--c-paper-2: #faf8f5;
	--c-shadow-warm: #d3cec7;
	--c-line: #eeeeee;
	--c-line-soft: #e2e2e2;

	--w-page: 1020px;
	--w-sidebar: 30%;
	--pad-sidebar-gap: 30px;

	--font-head: "Exo", Arial, Helvetica, sans-serif;
	--font-body: Arial, Helvetica, sans-serif;
	--font-alt: Verdana, Geneva, sans-serif;

	--shadow-box: 0 1px 8px var(--c-shadow-warm);
	--radius: 3px;
	--transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear;
}

/* Optional skins, toggled by assets/js/theme.js and remembered in localStorage. */
html.skin-retro {
	--c-accent: #eeb03f;
	--c-accent-soft: #d4952c;
	--c-accent-light: #f8dfa8;
	--c-accent-deep: #c58a1f;
	--c-page-bg: #e0ded9;
	--c-body-bg: #726c62;
	--c-dark: #3f3b35;
	--c-dark-line: #5c574f;
	--c-paper-2: #f3f0e9;
	--c-shadow-warm: #c9c4ba;
}
html.skin-magazine {
	--c-accent: #c75f2c;
	--c-accent-soft: #d96d38;
	--c-accent-light: #f0c3ac;
	--c-accent-deep: #aa4d1f;
	--c-page-bg: #ededed;
	--c-body-bg: #2b2b2b;
	--c-dark: #333333;
	--c-dark-line: #4a4a4a;
	--c-paper-2: #f4f2f0;
	--c-shadow-warm: #cfcfcf;
}
html.skin-christmas {
	--c-accent: #c54807;
	--c-accent-soft: #e47c37;
	--c-accent-light: #f7c6a8;
	--c-accent-deep: #a93c05;
	--c-page-bg: #e9e8e7;
	--c-body-bg: #232323;
	--c-dark: #313131;
	--c-dark-line: #4a4a4a;
	--c-paper-2: #f4f2f0;
	--c-shadow-warm: #cccccc;
}

/* -------------------------------------------------------------------------
   3. Base elements
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-font-smoothing: antialiased;
	min-height: 100%;
	border-bottom: 1px solid transparent;
}

body {
	min-height: 100%;
	margin: 0;
	padding: 0;
	background: var(--c-body-bg);
	color: var(--c-body);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	overflow-wrap: break-word;
}

a {
	color: var(--c-accent);
	text-decoration: none;
	transition: var(--transition);
}

a:hover,
a:active,
a:focus {
	color: #111111;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	padding: 0;
	color: var(--c-ink);
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
}

h1 { font-size: 40px; }
h2 { font-size: 40px; }
h3 { font-size: 24px; }
h4 { font-size: 125%; }
h5 { font-size: 110%; }

p {
	margin: 0.5em 0 1.5em;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

ul { list-style: none; }

ul li { line-height: 2; }

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

iframe {
	max-width: 100%;
}

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

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.site {
	overflow: hidden;
}

.wrap {
	width: 100%;
	max-width: var(--w-page);
	margin: 0 auto;
}

.page-wrap {
	background: var(--c-page-bg) url("assets/img/bg-pattern.png") repeat 0 0;
	padding-bottom: 30px;
}

.content-wrap {
	clear: both;
	padding-bottom: 30px;
}

.content-wrap::after {
	clear: both;
	content: "";
	display: table;
}

.content-column {
	float: left;
	width: 70%;
	margin-top: 20px;
	background: var(--c-paper) url("assets/img/block-bg.png") no-repeat right top;
	box-shadow: var(--shadow-box);
	padding-top: 20px;
}

.content-pad {
	padding: 0 40px 30px;
}

.sidebar {
	float: left;
	width: var(--w-sidebar);
	padding-left: var(--pad-sidebar-gap);
	margin-top: 20px;
}

/* -------------------------------------------------------------------------
   5. Top bar and header
   ------------------------------------------------------------------------- */
.topbar {
	height: 44px;
	font-size: 12px;
	line-height: 44px;
}

.topbar .wrap {
	height: 44px;
	background: transparent url("assets/img/topbar-bg.png") no-repeat right bottom;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 44px;
}

.site-login {
	float: right;
	margin: 0 30px 0 20px;
}

.site-login a {
	display: inline-block;
	height: 44px;
	padding: 0 6px;
	color: var(--c-accent);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 44px;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-login a:hover {
	color: #111111;
}

.site-header {
	clear: both;
	margin-bottom: 20px;
}

.header-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 4px 0;
	position: relative;
}

.site-logo {
	display: block;
	flex: 0 0 auto;
	width: 240px;
	margin: 0;
}

.site-logo img {
	display: block;
	width: 240px;
	height: 84px;
}

/* -------------------------------------------------------------------------
   6. Navigation (pill buttons + orange dropdown)
   ------------------------------------------------------------------------- */
.primary-nav {
	float: right;
	margin-top: 12px;
	position: relative;
	z-index: 1000;
}

.primary-nav .menu {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.primary-nav .menu > li {
	position: relative;
	list-style: none;
}

.primary-nav .menu > li > a {
	display: block;
	height: 40px;
	padding: 0 22px;
	background: #333333;
	border-radius: var(--radius);
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 41px;
	text-transform: uppercase;
	white-space: nowrap;
}

.primary-nav .menu > li:hover > a,
.primary-nav .menu > li:focus-within > a,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-menu-ancestor > a,
.primary-nav .menu > li.current_page_item > a,
.primary-nav .menu > li.current_page_ancestor > a {
	background: var(--c-accent);
	color: #ffffff;
}

.primary-nav .menu > li.menu-item-has-children:hover > a,
.primary-nav .menu > li.menu-item-has-children:focus-within > a {
	border-radius: var(--radius) var(--radius) 0 0;
}

.sub-menu {
	position: absolute;
	top: 40px;
	right: 0;
	left: auto;
	z-index: 999;
	display: none;
	min-width: 190px;
	margin: 0;
	padding: 6px 0 0;
	background: var(--c-accent);
	border-radius: var(--radius) 0 var(--radius) var(--radius);
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
	text-align: left;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav .sub-menu.is-open {
	display: block;
}

.sub-menu li {
	margin: 0;
	padding: 0 18px;
	border-top: 1px solid var(--c-accent-soft);
	line-height: normal;
	list-style: none;
}

.sub-menu li:first-child {
	border-top: 0;
}

.sub-menu li:hover {
	background: var(--c-accent-soft);
}

.sub-menu a {
	display: block;
	min-height: 24px;
	padding: 7px 0;
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.sub-menu a:hover {
	color: #ffffff;
}

.menu-toggle {
	display: none;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	background: #333333;
	border: 0;
	border-radius: var(--radius);
	color: #ffffff;
	cursor: pointer;
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 40px;
	text-align: left;
	text-transform: uppercase;
}

.menu-toggle::after {
	float: right;
	content: "\2630";
	font-size: 18px;
	line-height: 40px;
}

.menu-toggle[aria-expanded="true"]::after {
	content: "\00d7";
}

/* -------------------------------------------------------------------------
   7. Article cards, date badge and content typography
   ------------------------------------------------------------------------- */
.entry-card,
.single-entry,
.page-entry {
	position: relative;
	clear: both;
	margin-bottom: 66px;
}

.entry-card:last-child,
.single-entry,
.page-entry {
	margin-bottom: 0;
}

.entry-date {
	position: absolute;
	top: 0;
	left: -117px;
	z-index: 2;
	width: 150px;
	height: 89px;
	background: transparent url("assets/img/date-bg.png") no-repeat 0 0;
	background-size: 100% 100%;
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 31px;
	font-weight: 700;
	line-height: 80px;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-5deg);
	transform-origin: 50% 50%;
}

.entry-date-inline {
	display: none;
}

.entry-title {
	margin: 0 0 16px;
	font-size: 40px;
	font-weight: 700;
	line-height: 48px;
	text-transform: uppercase;
}

.entry-title a {
	color: var(--c-ink);
}

.entry-title a:hover {
	color: var(--c-accent-deep);
}

.entry-header {
	margin: 0 0 30px;
	padding-left: 68px;
}

.page-entry .entry-header {
	padding-left: 0;
}

.entry-header .entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	color: var(--c-muted);
	font-size: 14px;
}

.entry-header .entry-meta li {
	margin: 0;
	padding: 0;
	border: 0;
	line-height: 1.6;
}

.entry-meta .meta-label {
	color: var(--c-muted);
}

.entry-category a,
.entry-tags a {
	color: var(--c-accent);
}

.entry-image {
	position: relative;
	margin: 0 0 32px;
}

.entry-image .image-frame {
	display: block;
	padding: 12px;
	background: transparent url("assets/img/img-bg.png") repeat 0 0;
	line-height: 0;
	overflow: hidden;
}

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

.entry-image .image-caption {
	position: absolute;
	right: 24px;
	bottom: 24px;
	display: block;
	padding: 4px 6px;
	background: var(--c-accent);
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	text-align: right;
}

.entry-excerpt {
	font-size: 14px;
	line-height: 1.6;
}

.entry-excerpt p {
	margin: 0 0 18px;
}

.entry-content {
	color: var(--c-body);
	font-size: 14px;
	line-height: 1.6;
}

.entry-content > p:first-child {
	margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 36px 0 18px;
	color: var(--c-ink);
}

.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 26px; }
.entry-content h4 { font-size: 20px; }

.entry-content a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content ul {
	margin: 0 0 24px;
	padding-left: 24px;
	list-style: disc;
}

.entry-content ol {
	margin: 0 0 24px;
	padding-left: 26px;
	list-style: decimal;
}

.entry-content li {
	line-height: 1.7;
	margin-bottom: 4px;
}

.entry-content blockquote {
	margin: 0 0 24px;
	padding: 14px 20px;
	background: var(--c-paper-2);
	border-left: 3px solid var(--c-accent);
	color: var(--c-ink);
}

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

.entry-content pre {
	margin: 0 0 24px;
	padding: 18px 22px;
	background: #000000;
	color: #ffffff;
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 12px;
	line-height: 1.6;
	overflow: auto;
	white-space: pre;
}

.entry-content code {
	padding: 1px 5px;
	background: #f1eee9;
	color: #333333;
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 12px;
}

.entry-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

.entry-content table {
	width: 100%;
	margin: 0 0 24px;
	border-collapse: collapse;
	font-size: 13px;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
}

.entry-content th {
	color: var(--c-ink);
	font-family: var(--font-head);
	font-weight: 600;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content .wp-caption {
	max-width: 100%;
	margin-bottom: 24px;
}

.entry-content .wp-caption-text {
	margin: 6px 0 0;
	color: var(--c-muted);
	font-size: 12px;
}

.entry-tags {
	margin: 30px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--c-line);
	font-size: 12px;
}

.entry-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 2px 9px;
	background: var(--c-accent);
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 600;
}

.entry-tags a:hover {
	background: #333333;
	color: #ffffff;
}

.entry-navigation {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	clear: both;
	margin: 38px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--c-line);
	color: #7d7b7a;
	font-size: 12px;
}

.entry-navigation a {
	color: var(--c-accent);
	font-weight: 600;
}

.entry-navigation .nav-next {
	margin-left: auto;
	text-align: right;
}

.entry-navigation .nav-label {
	display: block;
	margin-bottom: 6px;
	color: var(--c-ink);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* WordPress post password form and page links */
.post-password-form label {
	color: var(--c-ink);
	font-weight: 600;
}

.post-password-form input[type="password"] {
	height: 40px;
	padding: 0 12px;
	border: 1px solid #d9d6d0;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.page-links {
	clear: both;
	margin: 28px 0 0;
	color: var(--c-muted);
	font-size: 12px;
}

.page-links .page-links-title {
	margin-right: 8px;
	color: var(--c-ink);
	font-family: var(--font-head);
	font-weight: 600;
	text-transform: uppercase;
}

.page-links .post-page-numbers {
	display: inline-block;
	min-width: 34px;
	height: 34px;
	margin: 0 3px 2px 0;
	padding: 2px 6px;
	background: #333333;
	border-radius: var(--radius);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 34px;
	text-align: center;
}

.page-links .post-page-numbers.current,
.page-links .post-page-numbers:hover {
	background: var(--c-accent);
	color: #ffffff;
}

/* -------------------------------------------------------------------------
   8. Buttons and pagination
   ------------------------------------------------------------------------- */
.button,
.read-more,
.search-submit,
input[type="submit"],
input[type="button"] {
	display: inline-block;
	height: 40px;
	margin: 0 5px 2px 0;
	padding: 0 16px;
	background: #333333;
	border: 0;
	border-radius: var(--radius);
	color: #ffffff;
	cursor: pointer;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 41px;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 0.1s ease-out, color 0.1s ease-out;
}

.button:hover,
.read-more:hover,
.search-submit:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background: var(--c-accent);
	color: #ffffff;
}

.read-more {
	margin-top: 6px;
}

.pagination {
	clear: both;
	padding: 30px 0 0;
	font-size: 12px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 34px;
	height: 34px;
	padding: 2px 6px;
	background: #333333;
	border-radius: var(--radius);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 34px;
	text-align: center;
}

.pagination .page-numbers.dots {
	background: transparent;
	color: var(--c-muted);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--c-accent);
	color: #ffffff;
}

.pagination .pagination-counter {
	margin-left: auto;
	padding-right: 12px;
	color: var(--c-muted);
	font-size: 11px;
	line-height: 38px;
}

/* -------------------------------------------------------------------------
   9. Home page
   ------------------------------------------------------------------------- */
.home-lead {
	margin-bottom: 66px;
}

.home-lead .entry-excerpt {
	color: var(--c-body);
}

.home-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
}

.home-category {
	margin: 0 0 40px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--c-line);
}

.home-category .home-category-title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.home-category .home-category-title a {
	color: var(--c-ink);
}

.home-category .home-category-title a:hover {
	color: var(--c-accent);
}

.home-category .home-category-description {
	margin: 6px 0 0;
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.5;
}

.home-category .home-category-more {
	display: inline-block;
	margin-top: 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.home-grid .entry-card {
	margin-bottom: 40px;
}

.home-grid .entry-title {
	margin-bottom: 10px;
	font-size: 26px;
	line-height: 32px;
}

.home-grid .entry-date {
	position: static;
	display: inline-block;
	width: auto;
	height: auto;
	margin: 0 0 12px;
	padding: 3px 9px;
	background: var(--c-accent);
	border-radius: var(--radius);
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1.5;
	transform: none;
}

.home-grid .entry-excerpt {
	font-size: 13px;
}

.home-grid .entry-image {
	margin-bottom: 18px;
}

.home-grid .entry-image .image-frame {
	padding: 8px;
}

/* -------------------------------------------------------------------------
   10. Archive, search and 404 pages
   ------------------------------------------------------------------------- */
.page-header {
	margin: 0 0 34px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--c-line);
}

.page-title {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 48px;
	text-transform: uppercase;
}

.page-title .count {
	color: var(--c-muted);
	font-size: 24px;
	font-weight: 400;
}

.archive-description {
	margin-top: 10px;
	color: var(--c-muted);
	font-size: 14px;
}

.archive-description p {
	margin: 0;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
}

.archive-grid .entry-card {
	margin-bottom: 40px;
}

.archive-grid .entry-title {
	margin-bottom: 10px;
	font-size: 26px;
	line-height: 32px;
}

.archive-grid .entry-date {
	position: static;
	display: inline-block;
	width: auto;
	height: auto;
	margin: 0 0 12px;
	padding: 3px 9px;
	background: var(--c-accent);
	border-radius: var(--radius);
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	transform: none;
}

.archive-grid .entry-excerpt {
	font-size: 13px;
}

.item-list-links {
	margin: 10px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--c-line);
}

.item-list-links h2 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

.item-list-links li {
	position: relative;
	padding: 4px 0 4px 24px;
	border: 0;
	font-size: 13px;
	line-height: 1.6;
}

.item-list-links li::before {
	position: absolute;
	top: 12px;
	left: 4px;
	width: 7px;
	height: 7px;
	background: var(--c-accent);
	content: "";
}

.item-list-links a {
	color: #737373;
}

.item-list-links a:hover {
	color: var(--c-accent);
}

.no-results {
	margin: 10px 0 30px;
}

.no-results p {
	margin: 0 0 20px;
}

.search-query {
	color: var(--c-accent);
	font-size: 24px;
	font-weight: 400;
	text-transform: none;
}

.home-empty {
	color: var(--c-muted);
	font-size: 13px;
}

.error-home {
	margin-top: 18px;
}

.search-page-form {
	margin: 0 0 34px;
	padding: 20px 24px;
	background: var(--c-paper-2);
	border: 1px solid var(--c-line);
}

.search-form {
	display: flex;
	align-items: stretch;
	gap: 8px;
	max-width: 100%;
}

.search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	background: #ffffff;
	border: 1px solid #d9d6d0;
	border-radius: 0;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
	color: #888888;
	font-size: 14px;
	line-height: 43px;
}

.search-field:focus {
	background: #fffef4;
	outline: 0;
}

.search-submit {
	flex: 0 0 auto;
	margin: 0;
}

.error-404 {
	padding: 10px 0 20px;
}

.error-404 .error-code {
	margin: 0 0 10px;
	color: var(--c-accent);
	font-family: var(--font-head);
	font-size: 96px;
	font-weight: 700;
	line-height: 1;
}

.error-404 .error-title {
	margin: 0 0 18px;
	font-size: 32px;
}

.error-404 .error-text {
	max-width: 560px;
	margin: 0 0 24px;
}

/* -------------------------------------------------------------------------
   11. Sidebar widgets
   ------------------------------------------------------------------------- */
.sidebar .widget {
	position: relative;
	margin: 0 0 16px;
	padding: 24px;
	background: var(--c-paper) url("assets/img/block-bg.png") no-repeat right top;
	box-shadow: var(--shadow-box);
}

.sidebar .widget:last-child {
	margin-bottom: 0;
}

.sidebar .widget-title {
	margin: 0 0 18px;
	color: var(--c-ink);
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.sidebar .widget-title small {
	display: block;
	margin-top: 5px;
	color: #666666;
	font-size: 14px;
	font-weight: 300;
	text-transform: none;
}

.sidebar .widget ul {
	margin: 0;
	padding: 0;
}

.sidebar .widget li {
	padding: 8px 0;
	border-top: 1px solid var(--c-line-soft);
	line-height: 24px;
}

.sidebar .widget li:first-child {
	border-top: 0;
}

.sidebar .widget li a {
	color: #666666;
}

.sidebar .widget li a:hover {
	color: var(--c-accent);
}

.sidebar .widget li .count,
.sidebar .widget li .post-count {
	color: var(--c-muted);
}

.sidebar .widget select {
	max-width: 100%;
}

/* Dark boxes: search, login, categories (matching the reference sidebars). */
.sidebar .widget_search,
.sidebar .widget_meta,
.sidebar .widget_shan_publisher_login,
.sidebar .widget_categories {
	background-color: var(--c-dark);
	color: #aaaaaa;
}

.sidebar .widget_search .widget-title,
.sidebar .widget_meta .widget-title,
.sidebar .widget_shan_publisher_login .widget-title,
.sidebar .widget_categories .widget-title {
	color: #ffffff;
}

.sidebar .widget_search li,
.sidebar .widget_meta li,
.sidebar .widget_shan_publisher_login li,
.sidebar .widget_categories li {
	border-top-color: var(--c-dark-line);
}

.sidebar .widget_search li a,
.sidebar .widget_meta li a,
.sidebar .widget_shan_publisher_login li a,
.sidebar .widget_categories li a {
	color: #cfcfcf;
}

.sidebar .widget_search li a:hover,
.sidebar .widget_meta li a:hover,
.sidebar .widget_shan_publisher_login li a:hover,
.sidebar .widget_categories li a:hover {
	color: var(--c-accent);
}

.sidebar .widget_search li .count,
.sidebar .widget_categories li .count,
.sidebar .widget_categories li .post-count {
	color: #8d8d8d;
}

.sidebar .widget_search .search-form {
	display: block;
}

.sidebar .widget_search .search-field {
	width: 100%;
	height: 42px;
	background: #ffffff;
	color: #888888;
}

.sidebar .widget_search .search-submit {
	display: none;
}

/* Login widget */
.shan-login-form p {
	margin: 0 0 12px;
}

.shan-login-form label {
	display: block;
	margin: 0 0 4px;
	color: #aaaaaa;
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.shan-login-form input[type="text"],
.shan-login-form input[type="password"] {
	width: 100%;
	height: 40px;
	padding: 0 10px;
	background: #ffffff;
	border: 1px solid #d9d6d0;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
	color: #555555;
	font-size: 13px;
}

.shan-login-form .login-remember {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #aaaaaa;
	font-size: 11px;
}

.shan-login-form .login-remember input {
	margin: 0;
}

.shan-login-form .login-submit {
	margin: 14px 0 0;
}

.shan-login-form .login-submit input {
	height: auto;
	margin: 0;
	padding: 0;
	background: transparent;
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 40px;
	text-transform: uppercase;
}

.shan-login-form .login-submit input:hover {
	background: transparent;
	color: var(--c-accent);
}

.shan-login-links {
	margin: 12px 0 0;
	padding: 0;
}

.shan-login-links li {
	border-top: 0 !important;
	padding: 4px 0 !important;
}

.shan-login-links a {
	color: #aaaaaa !important;
	font-size: 12px;
}

.shan-login-links a:hover {
	color: var(--c-accent) !important;
}

.shan-login-greeting {
	margin: 0 0 12px;
	color: #cfcfcf;
	font-size: 13px;
}

.shan-login-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.shan-login-actions li {
	border: 0 !important;
	padding: 0 !important;
}

/* Tag cloud */
.sidebar .tagcloud {
	line-height: 1.8;
}

.sidebar .tagcloud a {
	display: inline-block;
	margin: 3px;
	padding: 2px 9px;
	background: var(--c-accent);
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 12px !important;
	font-weight: 600;
}

.sidebar .tagcloud a:hover {
	background: #333333;
	color: #ffffff;
}

/* -------------------------------------------------------------------------
   12. Footer and style switcher
   ------------------------------------------------------------------------- */
.site-footer {
	clear: both;
	background: var(--c-body-bg);
	border-top: 1px solid var(--c-footer-line);
	color: var(--c-muted);
	font-size: 12px;
	line-height: 61px;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.footer-menu {
	margin: 0;
	padding: 0;
}

.footer-menu .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin: 0;
	padding: 0;
	border: 0;
	line-height: 60px;
	list-style: none;
}

.footer-menu .sub-menu {
	display: none;
}

.footer-menu a {
	color: var(--c-footer-link);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.footer-menu a:hover {
	color: #ffffff;
}

.site-copyright {
	margin: 0 12px 0 auto;
	color: var(--c-muted);
	font-size: 12px;
	line-height: 61px;
}

.site-copyright a {
	color: var(--c-footer-link);
}

.site-copyright a:hover {
	color: #ffffff;
}

.style-switcher {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	line-height: 7px;
}

.style-switcher button {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transform: scale(1);
	transition: transform 0.2s ease-out;
}

.style-switcher button:hover {
	transform: scale(1.5);
}

.style-switcher button[aria-pressed="true"] {
	outline: 1px solid #ffffff;
	outline-offset: 2px;
}

.style-switcher .skin-freestyle { background: #de7037; }
.style-switcher .skin-retro { background: #eeb03f; }
.style-switcher .skin-magazine { background: #c8602d; }
.style-switcher .skin-christmas { background: #c54807; }

/* Alternate skins use a flat date badge, like the reference palettes. */
html:not(.skin-freestyle) .entry-date {
	width: 71px;
	height: auto;
	padding: 14px 0 16px;
	background: var(--c-accent);
	font-size: 26px;
	line-height: 27px;
	transform: none;
}

html:not(.skin-freestyle) .entry-date::first-line {
	font-size: 40px;
	line-height: 46px;
}

html:not(.skin-freestyle) .entry-header,
html:not(.skin-freestyle) .home-lead .entry-header {
	padding-left: 0;
}

/* -------------------------------------------------------------------------
   13. Accessibility helpers
   ------------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 10px;
	z-index: 100000;
	padding: 10px 16px;
	background: #333333;
	color: #ffffff;
}

.skip-link:focus {
	top: 10px;
	color: #ffffff;
}

/* -------------------------------------------------------------------------
   14. Responsive: 1200 badge fit, 900 sidebar stacks, 660 grids, 540 mobile
   ------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
	.entry-date {
		left: -28px;
		width: 150px;
		height: 89px;
		font-size: 31px;
		line-height: 80px;
		transform: rotate(-5deg);
	}

	.entry-header {
		padding-left: 145px;
	}

	.home-grid .entry-header,
	.archive-grid .entry-header {
		padding-left: 0;
	}

	.home-lead .entry-header {
		padding-left: 145px;
	}

	html:not(.skin-freestyle) .entry-date {
		width: 71px;
		padding: 10px 0 12px;
		font-size: 21px;
		line-height: 23px;
	}

	html:not(.skin-freestyle) .entry-date::first-line {
		font-size: 32px;
		line-height: 38px;
	}

	html:not(.skin-freestyle) .entry-header {
		padding-left: 70px;
	}

	html:not(.skin-freestyle) .home-lead .entry-header {
		padding-left: 70px;
	}
}

@media screen and (max-width: 900px) {
	.wrap {
		padding-right: 20px;
		padding-left: 20px;
	}

	.content-column,
	.sidebar {
		float: none;
		width: 100%;
	}

	.sidebar {
		padding-left: 0;
		margin-top: 30px;
	}

	.content-pad {
		padding: 0 30px 30px;
	}

	.primary-nav .menu > li > a {
		padding: 0 16px;
		font-size: 13px;
	}

	.site-logo {
		width: 210px;
	}

	.site-logo img {
		width: 210px;
		height: 74px;
	}

	.content-column {
		background-position: right top;
	}
}

@media screen and (max-width: 660px) {
	.home-grid,
	.archive-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.home-grid .entry-card,
	.archive-grid .entry-card {
		margin-bottom: 34px;
	}

	.entry-title,
	.page-title,
	.single .entry-title {
		font-size: 32px;
		line-height: 38px;
	}

	.entry-header,
	.home-lead .entry-header,
	html:not(.skin-freestyle) .entry-header,
	html:not(.skin-freestyle) .home-lead .entry-header {
		padding-left: 0;
	}

	.entry-date {
		position: static;
		display: inline-block;
		width: auto;
		height: auto;
		margin: 0 0 10px;
		padding: 3px 9px;
		background: var(--c-accent);
		border-radius: var(--radius);
		color: #ffffff;
		font-family: var(--font-head);
		font-size: 12px;
		font-weight: 700;
		line-height: 1.5;
		transform: none;
	}

	html:not(.skin-freestyle) .entry-date {
		width: auto;
		padding: 3px 9px;
		font-size: 12px;
		line-height: 1.5;
	}

	html:not(.skin-freestyle) .entry-date::first-line {
		font-size: 12px;
		line-height: 1.5;
	}
}

@media screen and (max-width: 540px) {
	.wrap {
		padding-right: 14px;
		padding-left: 14px;
	}

	.topbar,
	.topbar .wrap,
	.topbar-inner {
		height: 38px;
		line-height: 38px;
	}

	.site-login a {
		height: 38px;
		line-height: 38px;
	}

	.header-inner {
		flex-wrap: wrap;
		padding-bottom: 10px;
	}

	.site-logo {
		width: 180px;
	}

	.site-logo img {
		width: 180px;
		height: 63px;
	}

	.menu-toggle {
		display: block;
		width: auto;
		min-width: 120px;
		margin: 10px 0 0 auto;
	}

	.primary-nav {
		float: none;
		display: none;
		width: 100%;
		margin: 10px 0 0;
	}

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

	.primary-nav .menu {
		display: block;
	}

	.primary-nav .menu > li {
		margin: 0 0 6px;
	}

	.primary-nav .menu > li > a {
		height: 40px;
		padding: 0 16px;
		border-radius: var(--radius);
		font-size: 14px;
		line-height: 41px;
	}

	.primary-nav .menu > li.menu-item-has-children > a {
		border-radius: var(--radius);
	}

	.sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 6px 0 0;
		padding: 4px 0 0;
		border-radius: var(--radius);
		box-shadow: none;
	}

	.primary-nav .sub-menu {
		display: block;
	}

	.content-column {
		margin-top: 16px;
		padding-top: 16px;
	}

	.content-pad {
		padding: 0 20px 24px;
	}

	.entry-card,
	.home-lead {
		margin-bottom: 44px;
	}

	.entry-title,
	.page-title,
	.single .entry-title {
		font-size: 27px;
		line-height: 33px;
	}

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

	.entry-header .entry-meta {
		font-size: 12px;
	}

	.entry-content pre {
		padding: 12px;
		font-size: 11px;
	}

	.entry-navigation {
		display: block;
	}

	.entry-navigation .nav-next {
		margin: 16px 0 0;
		text-align: left;
	}

	.sidebar .widget {
		padding: 20px;
	}

	.footer-inner {
		display: block;
		padding: 12px 0;
		line-height: 1.8;
	}

	.footer-menu .menu {
		display: block;
	}

	.footer-menu li {
		line-height: 1.8;
	}

	.site-copyright {
		margin: 8px 0;
		line-height: 1.8;
	}

	.style-switcher {
		margin: 10px 0 4px;
	}
}


/* Grid cards use a compact date chip in every skin. */
html .home-grid .entry-date,
html .archive-grid .entry-date {
	position: static;
	width: auto;
	height: auto;
	margin: 0 0 12px;
	padding: 3px 9px;
	background: var(--c-accent);
	border-radius: var(--radius);
	color: #ffffff;
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	transform: none;
}

html .home-grid .entry-date::first-line,
html .archive-grid .entry-date::first-line {
	font-size: 11px;
	line-height: 1.5;
}
