/*
Theme Name: Organization Hacks
Theme URI: https://organization-hacks.net/
Author: Organization Hacks
Author URI: https://organization-hacks.net/
Description: A fast, clean, fully Customizer-driven WordPress theme built for home organization, decluttering and storage-solution blogs. Features a built-in homepage builder, per-device logo controls, deep header/menu/mobile-menu customization, a how-to / checklist single-post layout with HowTo schema, and 3-4 style variations for nearly every element. Clean modern minimal by default, completely re-skinnable from the Customizer.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: organization-hacks
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-logo, custom-menu, custom-colors, custom-background, featured-images, threaded-comments, translation-ready, block-styles, sticky-post, theme-options
*/

/* ==========================================================================
   Design tokens (defaults; overridden by Customizer via inline CSS)
   ========================================================================== */
:root {
	--oh-accent: #0e7c6b;
	--oh-accent-hover: #0a5f52;
	--oh-text: #1f2328;
	--oh-headings: #111418;
	--oh-muted: #6b7280;
	--oh-link: #0e7c6b;
	--oh-link-hover: #0a5f52;
	--oh-bg: #ffffff;
	--oh-surface: #f7f7f5;
	--oh-border: #e7e7e4;
	--oh-selection: #0e7c6b;

	--oh-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--oh-font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--oh-base-size: 17px;
	--oh-line-height: 1.7;
	--oh-heading-weight: 700;
	--oh-heading-lh: 1.25;
	--oh-label-spacing: 0.08em;

	--oh-h1: 42px;
	--oh-h2: 32px;
	--oh-h3: 24px;
	--oh-h4: 20px;

	--oh-container: 1200px;
	--oh-content: 760px;
	--oh-sidebar: 330px;
	--oh-radius: 6px;
	--oh-img-radius: 0px;
	--oh-gap: 30px;

	--oh-btn-bg: var(--oh-accent);
	--oh-btn-text: #ffffff;
	--oh-btn-hover-bg: var(--oh-accent-hover);
	--oh-btn-hover-text: #ffffff;
	--oh-btn-radius: 8px;
	--oh-btn-pad-y: 12px;
	--oh-btn-pad-x: 24px;
	--oh-btn-size: 15px;
	--oh-btn-weight: 600;
	--oh-btn-transform: none;
	--oh-btn-spacing: 0.02em;
	--oh-btn-border-w: 0px;
	--oh-btn-border-c: var(--oh-accent);

	--oh-header-bg: #ffffff;
	--oh-header-text: #1f2328;
	--oh-header-link: #1f2328;
	--oh-header-link-hover: #0e7c6b;
	--oh-header-pad-y: 18px;
	--oh-header-border: #e7e7e4;

	--oh-menu-size: 15px;
	--oh-menu-weight: 600;
	--oh-menu-transform: none;
	--oh-menu-spacing: 0;
	--oh-menu-gap: 26px;
	--oh-menu-link: #1f2328;
	--oh-menu-hover: #0e7c6b;
	--oh-menu-active: #0e7c6b;

	--oh-dropdown-bg: #ffffff;
	--oh-dropdown-text: #1f2328;
	--oh-dropdown-hover-bg: #f7f7f5;
	--oh-dropdown-hover-text: #0e7c6b;
	--oh-dropdown-width: 220px;
	--oh-dropdown-radius: 10px;

	--oh-mobile-bg: #ffffff;
	--oh-mobile-text: #1f2328;
	--oh-mobile-link: #1f2328;
	--oh-mobile-width: 320px;
	--oh-overlay: rgba(0, 0, 0, 0.5);

	--oh-footer-bg: #111418;
	--oh-footer-text: #c9ccd1;
	--oh-footer-link: #ffffff;
	--oh-footer-heading: #ffffff;
	--oh-footer-pad-t: 48px;
	--oh-footer-pad-b: 32px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--oh-font-body);
	font-size: var(--oh-base-size);
	line-height: var(--oh-line-height);
	color: var(--oh-text);
	background: var(--oh-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip; /* clip (not hidden) so position: sticky still works in descendants */
}

::selection { background: var(--oh-selection); color: #fff; }

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

a { color: var(--oh-link); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--oh-link-hover); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--oh-font-heading);
	color: var(--oh-headings);
	font-weight: var(--oh-heading-weight);
	line-height: var(--oh-heading-lh);
	margin: 0 0 0.6em;
}
h1 { font-size: var(--oh-h1); }
h2 { font-size: var(--oh-h2); }
h3 { font-size: var(--oh-h3); }
h4 { font-size: var(--oh-h4); }

p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.3em; }
blockquote {
	margin: 1.6em 0;
	padding: 0.4em 1.4em;
	border-left: 4px solid var(--oh-accent);
	color: var(--oh-muted);
	font-style: italic;
}
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
pre { background: var(--oh-surface); padding: 18px; border-radius: var(--oh-radius); overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--oh-border); margin: 2em 0; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.oh-container {
	width: 100%;
	max-width: var(--oh-container);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}
.oh-container--wide { max-width: 1400px; }
.oh-section { padding: 56px 0; }
.oh-section--tight { padding: 36px 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100000;
	background: var(--oh-accent); color: #fff; padding: 10px 18px; border-radius: 6px;
}
.skip-link:focus { left: 12px; color: #fff; }

:focus-visible { outline: 2px solid var(--oh-accent); outline-offset: 2px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
/* Themed buttons apply ONLY to .oh-btn, real submit controls and block buttons —
   never to bare <button> icon toggles (menu, search, close, back-to-top). */
.oh-btn,
input[type="submit"],
button[type="submit"],
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--oh-font-body);
	font-size: var(--oh-btn-size);
	font-weight: var(--oh-btn-weight);
	text-transform: var(--oh-btn-transform);
	letter-spacing: var(--oh-btn-spacing);
	line-height: 1.2;
	padding: var(--oh-btn-pad-y) var(--oh-btn-pad-x);
	border-radius: var(--oh-btn-radius);
	border: var(--oh-btn-border-w) solid var(--oh-btn-border-c);
	background: var(--oh-btn-bg);
	color: var(--oh-btn-text);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.oh-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--oh-btn-hover-bg); color: var(--oh-btn-hover-text);
}

/* Icon-only toggle buttons: no fill, no padding, inherit color. */
.menu-toggle,
.header-search-toggle,
.oh-mobile-close,
.oh-mobile-subtoggle,
.header-actions__icon {
	background: none; border: 0; cursor: pointer; color: inherit;
}
.oh-btn--outline {
	background: transparent; color: var(--oh-accent);
	border: 2px solid var(--oh-accent);
}
.oh-btn--outline:hover { background: var(--oh-accent); color: #fff; }
.oh-btn--soft { background: color-mix(in srgb, var(--oh-accent) 12%, transparent); color: var(--oh-accent); }
.oh-btn--soft:hover { background: var(--oh-accent); color: #fff; }
.oh-btn--link {
	background: transparent; color: var(--oh-accent); padding: 0; border: 0;
	border-bottom: 2px solid currentColor; border-radius: 0;
}
.oh-btn--link:hover { background: transparent; color: var(--oh-accent-hover); }

/* Radius presets */
.oh-btn--square { --oh-btn-radius: 0px; }
.oh-btn--rounded { --oh-btn-radius: 8px; }
.oh-btn--pill { --oh-btn-radius: 999px; }

/* Global default button style (from Customizer > Buttons). Applies to plain .oh-btn
   and real submit buttons that have no explicit style modifier. */
.oh-btnstyle-outline .oh-btn:not([class*="oh-btn--"]),
.oh-btnstyle-outline input[type="submit"],
.oh-btnstyle-outline button[type="submit"] {
	background: transparent; color: var(--oh-accent); border: 2px solid var(--oh-accent);
}
.oh-btnstyle-outline .oh-btn:not([class*="oh-btn--"]):hover,
.oh-btnstyle-outline input[type="submit"]:hover,
.oh-btnstyle-outline button[type="submit"]:hover {
	background: var(--oh-accent); color: #fff;
}
.oh-btnstyle-soft .oh-btn:not([class*="oh-btn--"]),
.oh-btnstyle-soft input[type="submit"],
.oh-btnstyle-soft button[type="submit"] {
	background: color-mix(in srgb, var(--oh-accent) 14%, transparent); color: var(--oh-accent); border: 0;
}
.oh-btnstyle-soft .oh-btn:not([class*="oh-btn--"]):hover,
.oh-btnstyle-soft input[type="submit"]:hover,
.oh-btnstyle-soft button[type="submit"]:hover {
	background: var(--oh-accent); color: #fff;
}
.oh-btnstyle-link .oh-btn:not([class*="oh-btn--"]) {
	background: transparent; color: var(--oh-accent); padding-left: 0; padding-right: 0;
	border: 0; border-bottom: 2px solid currentColor; border-radius: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
textarea, select {
	width: 100%;
	font-family: inherit; font-size: 15px;
	padding: 12px 14px;
	color: var(--oh-text);
	background: #fff;
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, textarea:focus, select:focus {
	outline: none; border-color: var(--oh-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--oh-accent) 18%, transparent);
}

.oh-search-form { position: relative; display: flex; }
.oh-search-form input[type="search"] { padding-right: 52px; }
.oh-search-form .oh-search-submit {
	position: absolute; right: 4px; top: 4px; bottom: 4px;
	width: 44px; padding: 0; border-radius: calc(var(--oh-radius) - 2px);
	background: var(--oh-accent); color: #fff; border: 0; display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: var(--oh-header-bg);
	color: var(--oh-header-text);
	border-bottom: 1px solid var(--oh-header-border);
	position: relative;
	z-index: 50;
}
.site-header.oh-no-border { border-bottom: 0; }
.site-header.oh-header-shadow { box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06); }

.site-header__inner {
	display: flex; align-items: center; gap: 24px;
	padding-top: var(--oh-header-pad-y);
	padding-bottom: var(--oh-header-pad-y);
}

/* Header layouts */
.oh-header--logo_left .site-header__inner { justify-content: space-between; }
.oh-header--logo_center .site-header__inner { flex-direction: column; gap: 14px; text-align: center; }
.oh-header--logo_center .main-navigation { width: 100%; display: flex; justify-content: center; }
/* Split header: nav left · logo center · actions right (reference style). */
.oh-header--logo_center_split .site-header__inner { justify-content: space-between; }
.oh-header--logo_center_split .main-navigation { order: 1; flex: 1 1 0; display: flex; justify-content: flex-start; }
.oh-header--logo_center_split .site-branding { order: 2; flex: 0 0 auto; justify-content: center; }
.oh-header--logo_center_split .header-actions { order: 3; flex: 1 1 0; justify-content: flex-end; }
.oh-header--logo_center_split .menu-toggle { order: 0; }
.oh-header--logo_left_below .site-header__inner { flex-wrap: wrap; }
.oh-header--logo_left_below .main-navigation { flex-basis: 100%; }

.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding__text { display: flex; flex-direction: column; }
.site-title { font-family: var(--oh-font-heading); font-size: 24px; font-weight: 800; margin: 0; line-height: 1.1; }
.site-title a { color: var(--oh-header-text); }
.site-description { font-size: 13px; color: var(--oh-muted); margin: 2px 0 0; }
.custom-logo-link { display: inline-block; }
.custom-logo { width: auto; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions__social { display: flex; align-items: center; gap: 10px; }
.header-actions__social a { color: var(--oh-header-link); display: inline-flex; }
.header-actions__social a:hover { color: var(--oh-header-link-hover); }
.header-search-toggle, .header-actions__icon {
	background: none; border: 0; padding: 6px; color: var(--oh-header-link); cursor: pointer; display: inline-flex;
}
.header-search-toggle:hover { color: var(--oh-header-link-hover); background: none; }
.header-actions__icon svg, .header-search-toggle svg, .header-actions__social a svg { width: 20px; height: 20px; }

.header-search-panel {
	display: none; padding: 0 0 var(--oh-header-pad-y);
}
.header-search-panel.is-open { display: block; }

/* Sticky */
.site-header.is-sticky {
	position: sticky; top: 0; z-index: 100;
	background: var(--oh-header-bg);
}
.site-header.is-sticky.is-stuck { box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08); }
.site-header.is-sticky.is-shrunk .site-header__inner { padding-top: 10px; padding-bottom: 10px; }
.site-header.is-sticky.is-shrunk .custom-logo { transform: scale(0.86); transform-origin: left center; }

/* ==========================================================================
   Primary navigation (desktop)
   ========================================================================== */
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > div > ul,
.main-navigation .primary-menu {
	display: flex; align-items: center; gap: var(--oh-menu-gap); flex-wrap: wrap;
}
.main-navigation a {
	font-size: var(--oh-menu-size);
	font-weight: var(--oh-menu-weight);
	text-transform: var(--oh-menu-transform);
	letter-spacing: var(--oh-menu-spacing);
	color: var(--oh-menu-link);
	padding: 6px 0;
	position: relative;
	display: inline-flex; align-items: center; gap: 5px;
}
.main-navigation li { position: relative; }
.main-navigation > div > ul > li > a:hover,
.main-navigation .primary-menu > li > a:hover { color: var(--oh-menu-hover); }
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--oh-menu-active); }

/* hover styles */
.oh-menu-hover-underline .main-navigation > div > ul > li > a::after,
.oh-menu-hover-underline .main-navigation .primary-menu > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--oh-menu-hover); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.oh-menu-hover-underline .main-navigation > div > ul > li:hover > a::after,
.oh-menu-hover-underline .main-navigation .primary-menu > li:hover > a::after { transform: scaleX(1); }
.oh-menu-hover-background .main-navigation > div > ul > li > a,
.oh-menu-hover-background .main-navigation .primary-menu > li > a { padding: 6px 12px; border-radius: 999px; }
.oh-menu-hover-background .main-navigation > div > ul > li:hover > a,
.oh-menu-hover-background .main-navigation .primary-menu > li:hover > a {
	background: color-mix(in srgb, var(--oh-menu-hover) 12%, transparent);
}

/* dropdown arrows */
.main-navigation .menu-item-has-children > a .oh-caret { width: 10px; height: 10px; transition: transform 0.2s ease; }
.oh-no-caret .main-navigation .oh-caret { display: none; }

/* Sub-menus */
.main-navigation ul ul {
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: var(--oh-dropdown-width);
	background: var(--oh-dropdown-bg);
	border-radius: var(--oh-dropdown-radius);
	padding: 8px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.oh-dropdown-noshadow .main-navigation ul ul { box-shadow: none; border: 1px solid var(--oh-border); }
.main-navigation ul ul li { width: 100%; }
.main-navigation ul ul a {
	display: block; width: 100%; padding: 9px 12px; border-radius: 8px;
	color: var(--oh-dropdown-text); font-weight: 500;
}
.main-navigation ul ul a:hover { background: var(--oh-dropdown-hover-bg); color: var(--oh-dropdown-hover-text); }
.main-navigation ul ul ul { top: 0; left: 100%; }
.main-navigation li:hover > ul,
.main-navigation li.oh-focus > ul { opacity: 1; visibility: visible; transform: translateY(0); }

/* dropdown animations */
.oh-dropdown-anim-slide .main-navigation ul ul { transform: translateY(14px); }
.oh-dropdown-anim-scale .main-navigation ul ul { transform: scale(0.96); transform-origin: top left; }
.oh-dropdown-anim-scale .main-navigation li:hover > ul { transform: scale(1); }
.oh-dropdown-anim-none .main-navigation ul ul { transition: none; transform: none; }

.oh-header--logo_center .main-navigation > div > ul > li > ul,
.oh-header--logo_center_split .main-navigation > div > ul > li > ul { left: auto; }

/* Mobile toggle */
.menu-toggle {
	display: none; background: none; border: 0; padding: 8px;
	color: var(--oh-header-link); cursor: pointer; align-items: center; gap: 8px;
}
.menu-toggle .oh-burger { position: relative; width: 24px; height: 18px; display: inline-block; }
.menu-toggle .oh-burger span {
	position: absolute; left: 0; height: 2px; width: 100%; background: currentColor; border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-toggle .oh-burger span:nth-child(1) { top: 0; }
.menu-toggle .oh-burger span:nth-child(2) { top: 8px; }
.menu-toggle .oh-burger span:nth-child(3) { top: 16px; }
.oh-burger-thin span { height: 1px; }
.oh-burger-dots span { border-radius: 999px; }
.oh-burger-boxed { padding: 8px; border: 1px solid currentColor; border-radius: 8px; }
body.oh-menu-open .menu-toggle .oh-burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.oh-menu-open .menu-toggle .oh-burger span:nth-child(2) { opacity: 0; }
body.oh-menu-open .menu-toggle .oh-burger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ==========================================================================
   Mobile menu / off-canvas
   ========================================================================== */
.oh-mobile-nav {
	position: fixed; top: 0; bottom: 0; z-index: 999;
	width: var(--oh-mobile-width); max-width: 88vw;
	background: var(--oh-mobile-bg); color: var(--oh-mobile-text);
	padding: 24px 22px; overflow-y: auto;
	transition: transform 0.3s ease;
	display: flex; flex-direction: column; gap: 18px;
}
.oh-mobile--slide_left { left: 0; transform: translateX(-100%); }
.oh-mobile--slide_right { right: 0; transform: translateX(100%); }
.oh-mobile--dropdown { top: 0; left: 0; right: 0; bottom: auto; width: 100%; max-width: 100%; transform: translateY(-110%); }
.oh-mobile--fullscreen { top: 0; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; transform: translateX(-100%); align-items: center; justify-content: center; text-align: center; }
body.oh-menu-open .oh-mobile-nav { transform: none; }

.oh-mobile-nav__head { display: flex; align-items: center; justify-content: space-between; }
.oh-mobile-close { background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; }
.oh-mobile-close svg { width: 24px; height: 24px; }

.oh-mobile-nav ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.oh-mobile-nav li { border-bottom: 1px solid color-mix(in srgb, var(--oh-mobile-text) 12%, transparent); }
.oh-mobile-nav a { display: block; padding: 13px 0; color: var(--oh-mobile-link); font-weight: 600; font-size: 16px; }
.oh-mobile-nav ul ul { padding-left: 16px; display: none; }
.oh-mobile-nav .oh-sub-open > ul { display: block; }
.oh-mobile-subtoggle {
	position: absolute; right: 0; top: 6px; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer;
}
.oh-mobile-nav li { position: relative; }
.oh-mobile-subtoggle svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.oh-mobile-nav .oh-sub-open > .oh-mobile-subtoggle svg { transform: rotate(180deg); }

.oh-overlay {
	position: fixed; inset: 0; background: var(--oh-overlay); z-index: 998;
	opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
}
body.oh-menu-open .oh-overlay { opacity: 1; visibility: visible; }
body.oh-menu-open { overflow: hidden; }

/* ==========================================================================
   Content layout: main + sidebar
   ========================================================================== */
.site-content { padding: 44px 0 64px; }
.oh-layout { display: grid; gap: 48px; align-items: start; }
.oh-layout--right { grid-template-columns: minmax(0, 1fr) var(--oh-sidebar); }
.oh-layout--left { grid-template-columns: var(--oh-sidebar) minmax(0, 1fr); }
.oh-layout--left .site-main { order: 2; }
.oh-layout--none { grid-template-columns: minmax(0, 1fr); }
.oh-layout--none .site-main { max-width: var(--oh-content); margin: 0 auto; }

.widget-area .widget { margin-bottom: 34px; }
.widget-area .widget-title {
	font-size: 15px; text-transform: uppercase; letter-spacing: var(--oh-label-spacing);
	margin-bottom: 16px; color: var(--oh-headings);
}
.oh-widgettitle--bordered .widget-area .widget-title { border-left: 3px solid var(--oh-accent); padding-left: 12px; }
.oh-widgettitle--underline .widget-area .widget-title { border-bottom: 2px solid var(--oh-border); padding-bottom: 10px; }
.oh-widgettitle--pill .widget-area .widget-title { display: inline-block; background: var(--oh-surface); padding: 6px 14px; border-radius: 999px; }
.widget-area.is-sticky { position: sticky; top: 90px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--oh-border); }

/* Built-in sidebar blocks */
.oh-sb-about { text-align: center; }
.oh-sb-about__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.oh-sb-about p { color: var(--oh-muted); }
.oh-sb-about .oh-btn { margin-top: 6px; }
.oh-sb-posts { list-style: none; padding: 0; margin: 0; }
.oh-sb-post { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--oh-border); }
.oh-sb-post:last-child { border-bottom: 0; }
.oh-sb-post__thumb { flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; }
.oh-sb-post__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--oh-img-radius); }
.oh-sb-post__title { font-weight: 600; color: var(--oh-headings); font-size: 15px; line-height: 1.35; }
.oh-sb-post__title:hover { color: var(--oh-accent); }

/* ==========================================================================
   Post cards / grid
   ========================================================================== */
.oh-posts-grid { display: grid; gap: var(--oh-gap); }
.oh-cols-1 { grid-template-columns: 1fr; }
.oh-cols-2 { grid-template-columns: repeat(2, 1fr); }
.oh-cols-3 { grid-template-columns: repeat(3, 1fr); }
.oh-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid driven by inline CSS vars (per-section columns). */
.oh-rgrid { grid-template-columns: repeat(var(--oh-cd, 4), 1fr); }
@media (max-width: 991px) { .oh-rgrid { grid-template-columns: repeat(var(--oh-ct, 2), 1fr); } }
@media (max-width: 600px) { .oh-rgrid { grid-template-columns: repeat(var(--oh-cm, 2), 1fr); } }

.oh-card { display: flex; flex-direction: column; background: var(--oh-bg); }
.oh-card__thumb { position: relative; display: block; overflow: hidden; border-radius: var(--oh-img-radius); aspect-ratio: 4 / 3; background: var(--oh-surface); }
.oh-ratio-1-1 .oh-card__thumb { aspect-ratio: 1 / 1; }
.oh-ratio-16-9 .oh-card__thumb { aspect-ratio: 16 / 9; }
.oh-ratio-3-2 .oh-card__thumb { aspect-ratio: 3 / 2; }
.oh-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.oh-card__body { padding: 16px 2px 0; }
.oh-card__cat { font-size: 12px; text-transform: uppercase; letter-spacing: var(--oh-label-spacing); color: var(--oh-accent); font-weight: 700; }
.oh-card__title { font-size: 19px; margin: 8px 0 0; line-height: 1.3; }
.oh-card__title a { color: var(--oh-headings); }
.oh-card__title a:hover { color: var(--oh-accent); }
.oh-card__excerpt { color: var(--oh-muted); font-size: 15px; margin: 10px 0 0; }
.oh-card__meta { font-size: 13px; color: var(--oh-muted); margin-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.oh-card__readmore { margin-top: 12px; font-weight: 600; color: var(--oh-accent); display: inline-flex; align-items: center; gap: 6px; }

/* card styles */
.oh-cardstyle-boxed .oh-card,
.oh-cardstyle-shadow .oh-card { background: var(--oh-bg); border-radius: var(--oh-radius); padding: 14px; }
.oh-cardstyle-boxed .oh-card { border: 1px solid var(--oh-border); }
.oh-cardstyle-shadow .oh-card { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07); }
.oh-cardstyle-boxed .oh-card__body,
.oh-cardstyle-shadow .oh-card__body { padding: 14px 4px 4px; }
.oh-cardstyle-overlay .oh-card { position: relative; border-radius: var(--oh-radius); overflow: hidden; }
.oh-cardstyle-overlay .oh-card__thumb { border-radius: 0; aspect-ratio: 3 / 4; }
.oh-cardstyle-overlay .oh-card__body {
	position: absolute; inset: auto 0 0 0; padding: 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}
.oh-cardstyle-overlay .oh-card__title a,
.oh-cardstyle-overlay .oh-card__excerpt,
.oh-cardstyle-overlay .oh-card__meta { color: #fff; }

/* hover effects */
.oh-cardhover-lift .oh-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.oh-cardhover-lift .oh-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1); }
.oh-cardhover-zoom .oh-card:hover .oh-card__thumb img { transform: scale(1.06); }
.oh-cardhover-fade .oh-card:hover .oh-card__thumb img { opacity: 0.88; }

/* list layout */
.oh-archive--list .oh-posts-grid { grid-template-columns: 1fr; }
.oh-archive--list .oh-card { flex-direction: row; gap: 22px; align-items: flex-start; }
.oh-archive--list .oh-card__thumb { flex: 0 0 320px; max-width: 320px; }
.oh-archive--list .oh-card__body { padding-top: 0; }

/* ==========================================================================
   Section headings
   ========================================================================== */
.oh-section-head { margin-bottom: 26px; }
.oh-section-head__title { font-size: 22px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin: 0; }
.oh-section-head__sub { color: var(--oh-muted); margin: 8px 0 0; }
.oh-section-head--center { text-align: center; }
.oh-section-more { margin-top: 22px; text-align: right; }
.oh-section-more a { font-weight: 700; }

/* ==========================================================================
   Homepage sections
   ========================================================================== */
.oh-cats { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.oh-cat { text-align: center; width: 108px; }
.oh-cat__img { width: 96px; height: 96px; margin: 0 auto 10px; overflow: hidden; background: var(--oh-surface); display: block; }
.oh-cat--circle .oh-cat__img { border-radius: 50%; }
.oh-cat--rounded .oh-cat__img { border-radius: 18px; }
.oh-cat--square .oh-cat__img { border-radius: 0; }
.oh-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.oh-cat__name { font-size: 14px; font-weight: 600; color: var(--oh-headings); }
.oh-cat:hover .oh-cat__name { color: var(--oh-accent); }

.oh-home-search { background: var(--oh-surface); border-radius: var(--oh-radius); padding: 40px; text-align: center; }
.oh-home-search h2 { margin-bottom: 18px; }
.oh-home-search .oh-search-form { max-width: 560px; margin: 0 auto; }

.oh-about { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; background: var(--oh-surface); border-radius: var(--oh-radius); padding: 40px; }
.oh-about--noimg { grid-template-columns: 1fr; max-width: 760px; }
.oh-about__img img { border-radius: 50%; aspect-ratio: 1/1; object-fit: cover; }
.oh-about__title { margin: 0 0 12px; }

.oh-cta { border-radius: var(--oh-radius); overflow: hidden; border: 1px solid var(--oh-border); }
.oh-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px; }
.oh-cta--right .oh-cta__media { order: 2; }
.oh-cta--center .oh-cta__inner { grid-template-columns: 1fr; text-align: center; max-width: 680px; margin: 0 auto; }
.oh-cta--center .oh-cta__media { display: none; }
.oh-cta__media img { border-radius: var(--oh-img-radius); }
.oh-cta__title { margin: 0 0 12px; }
.oh-showcase-list .oh-card { flex-direction: row; gap: 14px; align-items: center; }
.oh-showcase-list .oh-card__thumb { flex: 0 0 84px; width: 84px; height: 84px; aspect-ratio: 1/1; }
.oh-showcase-list .oh-card__body { padding: 0; }
.oh-showcase-list .oh-card__title { font-size: 15px; }

/* ==========================================================================
   Single post
   ========================================================================== */
.oh-reading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--oh-accent); z-index: 200; transition: width 0.1s linear; }
.oh-breadcrumbs { font-size: 13px; color: var(--oh-muted); margin-bottom: 18px; }
.oh-breadcrumbs a { color: var(--oh-muted); }
.oh-breadcrumbs a:hover { color: var(--oh-accent); }
.oh-breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

.entry-header { margin-bottom: 26px; }
.entry-title { font-size: clamp(30px, 4vw, var(--oh-h1)); margin-bottom: 14px; }
.entry-meta { font-size: 14px; color: var(--oh-muted); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.entry-meta a { color: var(--oh-muted); }
.entry-meta a:hover { color: var(--oh-accent); }
.oh-featured { margin-bottom: 30px; }
.oh-featured img { width: 100%; border-radius: var(--oh-img-radius); }

.entry-content { font-size: 1.06em; }
.entry-content > * { max-width: 760px; }
.entry-content .alignwide { max-width: 1040px; }
.entry-content .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: var(--oh-img-radius); }
/* Animated underline: a persistent 1px line plus an accent line that grows on hover. */
.entry-content a {
	color: var(--oh-link);
	text-decoration: none;
	background-image: linear-gradient(var(--oh-link), var(--oh-link)), linear-gradient(var(--oh-accent), var(--oh-accent));
	background-size: 100% 1px, 0% 2px;
	background-position: 0 100%, 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s ease, color 0.2s ease;
	padding-bottom: 1px;
}
.entry-content a:hover {
	color: var(--oh-link-hover);
	background-size: 100% 1px, 100% 2px;
}
.entry-content a.oh-btn,
.entry-content .wp-block-button__link { background-image: none; padding-bottom: var(--oh-btn-pad-y); }

/* Table of contents */
.oh-toc { background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: var(--oh-radius); padding: 16px 24px; margin: 0 0 30px; }
.oh-toc__toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--oh-headings);
}
.oh-toc__toggle:hover { background: none; }
.oh-toc__toggle svg { transition: transform 0.25s ease; flex: 0 0 auto; }
.oh-toc.is-collapsed .oh-toc__toggle svg { transform: rotate(-90deg); }
.oh-toc__title { font-size: 13px; text-transform: uppercase; letter-spacing: var(--oh-label-spacing); margin: 0; }
.oh-toc ol { overflow: hidden; transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease; max-height: 1200px; margin-top: 12px; }
.oh-toc.is-collapsed ol { max-height: 0; opacity: 0; margin-top: 0; }
.oh-toc ol { margin: 0; padding-left: 18px; }
.oh-toc li { margin: 6px 0; }
.oh-toc a { color: var(--oh-text); }
.oh-toc a:hover { color: var(--oh-accent); }
.oh-toc .toc-h3 { margin-left: 14px; font-size: 0.95em; }

/* Author box */
.oh-author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--oh-surface); border-radius: var(--oh-radius); padding: 26px; margin: 40px 0; }
.oh-author-box img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; }
.oh-author-box h4 { margin: 0 0 6px; }
.oh-author-box p { margin: 0; color: var(--oh-muted); }

/* Related */
.oh-related { margin-top: 54px; }
.oh-related__title { margin-bottom: 22px; }

/* Tags */
.oh-tags { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.oh-tags a { font-size: 13px; background: var(--oh-surface); padding: 6px 12px; border-radius: 999px; color: var(--oh-text); }
.oh-tags a:hover { background: var(--oh-accent); color: #fff; }

/* ==========================================================================
   How-to / checklist project layout
   ========================================================================== */
.oh-howto-card {
	background: var(--oh-surface); border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius); padding: 28px; margin: 0 0 36px;
}
.oh-howto-card__title { margin: 0 0 6px; }
.oh-howto-chips { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.oh-howto-chip { background: #fff; border: 1px solid var(--oh-border); border-radius: 999px; padding: 8px 16px; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.oh-howto-chip strong { color: var(--oh-headings); }
.oh-howto-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 14px; }
.oh-howto-list h4 { font-size: 14px; text-transform: uppercase; letter-spacing: var(--oh-label-spacing); margin: 0 0 12px; }
.oh-howto-list ul { list-style: none; padding: 0; margin: 0; }
.oh-howto-list li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed var(--oh-border); }
.oh-howto-list li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 14px; height: 14px; border: 2px solid var(--oh-accent); border-radius: 4px; }
.oh-howto-print { margin-top: 20px; }

.oh-steps { counter-reset: oh-step; margin: 40px 0; }
.oh-step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--oh-border); }
.oh-step__num { counter-increment: oh-step; }
.oh-step__num::before {
	content: counter(oh-step); display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; background: var(--oh-accent); color: #fff; font-weight: 700; font-size: 18px;
	font-family: var(--oh-font-heading);
}
.oh-step__title { margin: 0 0 8px; font-size: 20px; }
.oh-step__img { margin-top: 14px; }
.oh-step__img img { border-radius: var(--oh-img-radius); }
.oh-tips { background: color-mix(in srgb, var(--oh-accent) 8%, #fff); border-radius: var(--oh-radius); padding: 24px 28px; margin: 30px 0; }
.oh-tips h3 { margin-top: 0; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.oh-pagination { margin-top: 48px; display: flex; justify-content: center; }
.oh-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
	margin: 0 4px; border-radius: var(--oh-radius); border: 1px solid var(--oh-border); color: var(--oh-text); font-weight: 600;
}
.oh-pagination .page-numbers.current { background: var(--oh-accent); color: #fff; border-color: var(--oh-accent); }
.oh-pagination .page-numbers:hover { border-color: var(--oh-accent); color: var(--oh-accent); }
.oh-pagination .page-numbers.current:hover { color: #fff; }
.oh-loadmore-wrap { text-align: center; margin-top: 40px; }
.oh-prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--oh-footer-bg); color: var(--oh-footer-text); }
.site-footer a { color: var(--oh-footer-link); }
.site-footer a:hover { opacity: 0.75; }
.footer-widgets { padding-top: var(--oh-footer-pad-t); padding-bottom: var(--oh-footer-pad-b); display: grid; gap: 40px; }
.footer-cols-1 { grid-template-columns: 1fr; }
.footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
.footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
.footer-cols-4 { grid-template-columns: repeat(4, 1fr); }
.footer-widgets .widget-title { color: var(--oh-footer-heading); font-size: 14px; text-transform: uppercase; letter-spacing: var(--oh-label-spacing); margin-bottom: 16px; }
.footer-widgets .widget ul li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
/* Level 2: footer menu row */
.footer-menu-row { padding: 24px 0; }
.site-footer .footer-widgets-wrap + .footer-menu-row,
.footer-menu-row { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-menu-row .oh-container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-menu ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.footer-menu a { text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; font-weight: 600; }
.footer-social { display: flex; gap: 14px; justify-content: center; }

/* Level 3: copyright row */
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; font-size: 14px; }
.footer-bottom--center { text-align: center; }
.footer-bottom--left { text-align: left; }
.footer-bottom--right { text-align: right; }
.footer-bottom--between { text-align: center; }
.footer-social a svg { width: 20px; height: 20px; }

/* Back to top */
.oh-back-to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 90;
	width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
	background: var(--oh-accent); color: #fff; border: 0; cursor: pointer;
	opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.oh-back-to-top.is-visible { opacity: 1; visibility: visible; }
.oh-back-to-top svg { stroke: #fff; stroke-width: 2.4; }
.oh-back-to-top:hover { background: var(--oh-accent-hover); }
.oh-btt--square { border-radius: 8px; }
.oh-btt--round { border-radius: 50%; }
.oh-btt--pill { border-radius: 999px; width: 58px; }

/* Preloader */
.oh-preloader { position: fixed; inset: 0; background: var(--oh-bg); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease; }
.oh-preloader.is-hidden { opacity: 0; visibility: hidden; }
.oh-preloader__spin { width: 42px; height: 42px; border: 3px solid var(--oh-border); border-top-color: var(--oh-accent); border-radius: 50%; animation: oh-spin 0.8s linear infinite; }
@keyframes oh-spin { to { transform: rotate(360deg); } }

/* WP core alignments / captions */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--oh-muted); text-align: center; margin-top: 8px; }
.sticky .oh-card { outline: 2px solid var(--oh-accent); outline-offset: 4px; }
.bypostauthor { display: block; }
.gallery { display: grid; gap: 10px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }

/* Comments */
.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--oh-border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }

/* ==========================================================================
   Responsive (desktop-first fallbacks; JS breakpoint set via inline CSS)
   ========================================================================== */
@media (max-width: 991px) {
	.oh-layout--right, .oh-layout--left { grid-template-columns: 1fr; }
	.oh-layout--left .site-main { order: 0; }
	.oh-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.oh-cols-3 { grid-template-columns: repeat(2, 1fr); }
	.oh-about { grid-template-columns: 1fr; text-align: center; }
	.oh-about__img img { max-width: 200px; margin: 0 auto; }
	.oh-cta__inner { grid-template-columns: 1fr; }
	.oh-cta__media { display: none; }
	.oh-howto-cols { grid-template-columns: 1fr; }
	.oh-archive--list .oh-card { flex-direction: column; }
	.oh-archive--list .oh-card__thumb { flex-basis: auto; max-width: none; width: 100%; }
	.main-navigation,
	.oh-header--logo_center .main-navigation,
	.oh-header--logo_center_split .main-navigation,
	.oh-header--logo_left_below .main-navigation { display: none; }
	.menu-toggle { display: inline-flex; }
	.oh-header--logo_center .site-header__inner,
	.oh-header--logo_center_split .site-header__inner { flex-direction: row; justify-content: space-between; align-items: center; }
	.oh-header--logo_center_split .header-actions,
	.oh-header--logo_center_split .site-branding { flex: 0 0 auto; }
	.oh-header--logo_center_split .site-branding { margin: 0 auto; }
	/* Declutter mobile header: keep only the search icon; button + social live in the drawer. */
	.header-actions__button,
	.header-actions__social { display: none; }
}

@media (max-width: 600px) {
	:root { --oh-h1: 32px; --oh-h2: 26px; --oh-h3: 21px; --oh-base-size: 16px; --oh-gap: 16px; }
	.oh-cols-2, .oh-cols-3, .oh-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.oh-showcase-list.oh-cols-2 { grid-template-columns: 1fr; }
	.oh-section { padding: 40px 0; }
	.oh-about, .oh-home-search, .oh-howto-card { padding: 26px 20px; }
	.oh-cta__inner { padding: 30px 22px; }
	.footer-cols-2, .footer-cols-3, .footer-cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
