/* QtyHome site styles (on top of GeneratePress). */
:root {
	--qh-paper: #f6f5f1;
	--qh-white: #ffffff;
	--qh-ink: #1d2321;
	--qh-ink-2: #3b4440;
	--qh-muted: #5d6763;
	--qh-line: #dcded8;
	--qh-tape: #f2b705;
	--qh-tape-soft: #fdf3cf;
	--qh-link: #7a5800;
	--qh-head: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
	--qh-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	/* GeneratePress global colours */
	--contrast: var(--qh-ink);
	--contrast-2: var(--qh-ink-2);
	--contrast-3: var(--qh-muted);
	--base: var(--qh-line);
	--base-2: var(--qh-paper);
	--base-3: var(--qh-white);
	--accent: var(--qh-link);
}

body {
	background: var(--qh-paper);
	color: var(--qh-ink);
	font-family: var(--qh-body);
	font-size: 17px;
	line-height: 1.65;
}

h1, h2, h3, h4, .entry-title, .main-title {
	font-family: var(--qh-head);
	font-weight: 700;
	color: var(--qh-ink);
	letter-spacing: -0.01em;
	line-height: 1.2;
}
h1, .entry-title { font-size: clamp(30px, 4.2vw, 42px); }
h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.6em; }
h3 { font-size: 21px; margin-top: 1.4em; }

a { color: var(--qh-link); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--qh-ink); }
:focus-visible { outline: 3px solid var(--qh-tape); outline-offset: 2px; }

/* Header */
.site-header { background: var(--qh-white); border-bottom: 1px solid var(--qh-line); }
.site-header::before { content: ""; display: block; height: 6px; background: repeating-linear-gradient(-45deg, var(--qh-tape) 0 14px, var(--qh-ink) 14px 28px); }
.inside-header { padding-top: 14px; padding-bottom: 14px; }
.site-logo img.header-image { width: 180px; height: auto; }
@media (max-width: 768px) { .site-logo img.header-image { width: 150px; } }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a { color: var(--qh-ink); font-weight: 600; font-size: 15px; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--qh-link); }
.main-navigation .menu-toggle { color: var(--qh-ink); }
@media (max-width: 768px) { .main-navigation .main-nav ul { background: var(--qh-white); } }

/* Content area */
.separate-containers .inside-article,
.one-container .site-content { background: var(--qh-white); border: 1px solid var(--qh-line); border-radius: 12px; }
.separate-containers .inside-article { padding: clamp(22px, 5vw, 48px); }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .qh-calc,
.entry-content > .qh-tables,
.entry-content > .qh-tools,
.entry-content > .alignwide,
.entry-content > .qh-hero,
.entry-content > .qh-wide { max-width: 1000px; }
.entry-header { max-width: 760px; margin: 0 auto 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--qh-line); padding: 8px 12px; text-align: left; }
.entry-content th { background: var(--qh-paper); }

/* Small helpers used in page content */
.qh-lede { font-size: 19px; color: var(--qh-ink-2); }
.qh-updated { font-size: 14px; color: var(--qh-muted); }
.qh-box { background: var(--qh-tape-soft); border-left: 4px solid var(--qh-tape); border-radius: 6px; padding: 14px 18px; }
.qh-box > :last-child { margin-bottom: 0; }

/* Home hero */
.qh-hero { text-align: left; padding: 8px 0 18px; }
.qh-hero h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: .3em; }
.qh-hero h1 mark { background: linear-gradient(transparent 58%, var(--qh-tape) 58%); color: inherit; padding: 0 2px; }
.qh-hero p { font-size: 19px; color: var(--qh-ink-2); max-width: 640px; }

/* Buttons */
.qh-btn, .wp-block-button__link, button.qh-btn {
	background: var(--qh-tape); color: var(--qh-ink) !important; border: 0; border-radius: 8px;
	font-weight: 700; padding: 12px 20px; text-decoration: none; display: inline-block; cursor: pointer; font-size: 16px;
}
.qh-btn:hover, .wp-block-button__link:hover { background: #ffc81f; color: var(--qh-ink); }
.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--qh-ink); }

/* Tool cards */
.qh-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 1.2em auto 1.6em; }
.qh-tool {
	display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--qh-line); border-radius: 12px;
	background: var(--qh-white); color: var(--qh-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.qh-tool:hover, .qh-tool:focus { border-color: var(--qh-tape); box-shadow: 0 6px 18px rgba(29, 35, 33, .08); transform: translateY(-2px); color: var(--qh-ink); }
.qh-tool-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--qh-muted); }
.qh-tool-title { font-family: var(--qh-head); font-size: 21px; font-weight: 700; }
.qh-tool-desc { font-size: 15px; color: var(--qh-ink-2); line-height: 1.5; }
.qh-tool-go { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--qh-link); }

/* Steps / feature list on home */
.qh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.qh-steps > div { border-top: 3px solid var(--qh-tape); padding-top: 10px; }
.qh-steps h3 { margin-top: 0; font-size: 18px; }
.qh-steps p { font-size: 15px; color: var(--qh-ink-2); margin: 0; }

/* Contact form */
.qh-form { max-width: 560px; }
.qh-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.qh-form input[type="text"], .qh-form input[type="email"], .qh-form select, .qh-form textarea {
	width: 100%; border: 1px solid var(--qh-line); border-radius: 8px; padding: 10px 12px; background: #fbfbfa; font-size: 16px; color: var(--qh-ink);
}
.qh-form input:focus, .qh-form select:focus, .qh-form textarea:focus { border-color: var(--qh-link); outline: none; box-shadow: 0 0 0 3px rgba(242, 183, 5, .35); }
.qh-form-small { font-size: 14px; color: var(--qh-muted); }
.qh-form-note { padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.qh-form-ok { background: #e7f5ea; color: #1d5b2c; }
.qh-form-err { background: #fbe9e7; color: #8a2a1b; }
.qh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer, .site-info { background: var(--qh-ink); color: #cfd5d2; }
.inside-site-info { padding: 32px 20px; }
.copyright-bar { width: 100%; text-align: left; }
.qh-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; }
.qh-footer-links a { color: #ffffff; text-decoration: none; font-weight: 600; font-size: 15px; }
.qh-footer-links a:hover { color: var(--qh-tape); }
.qh-footer-note, .qh-footer-copy { font-size: 14px; margin: 0 0 4px; color: #aab3af; }

/* Mobile polish */
.main-navigation .menu-toggle, .main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus { background: transparent; }
@media (max-width: 600px) { .qh-lede, .qh-hero p { font-size: 17px; } .separate-containers .inside-article { padding: 22px 18px; } }

/* ===== v0.3: modern header, guides, related blocks ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.main-navigation .main-nav ul li a { padding-left: 14px; padding-right: 14px; border-radius: 8px; }
.main-navigation .main-nav > ul > li:hover > a { background: var(--qh-paper); }
.main-navigation ul ul { background: var(--qh-white); border: 1px solid var(--qh-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(29, 35, 33, .12); padding: 6px; width: 240px; }
.main-navigation .main-nav ul ul li a { font-size: 15px; padding: 10px 12px; }
.main-navigation .main-nav ul ul li a:hover { background: var(--qh-tape-soft); }
.main-navigation .main-nav ul li.qh-nav-cta > a { background: var(--qh-ink); color: #fff; margin-left: 6px; }
.main-navigation .main-nav ul li.qh-nav-cta > a:hover { background: #000; color: var(--qh-tape); }

/* Breadcrumbs */
.qh-crumbs { max-width: 760px; margin: 0 auto 10px; font-size: 14px; color: var(--qh-muted); }
.qh-crumbs a { color: var(--qh-muted); text-decoration: none; }
.qh-crumbs a:hover { color: var(--qh-link); text-decoration: underline; }
.blog .qh-crumbs, .archive .qh-crumbs { max-width: none; margin: 0 0 12px; }

/* Guide cards */
.qh-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 1em auto 1.4em; max-width: 1000px; }
.qh-guide { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--qh-line); border-radius: 12px; background: var(--qh-white); color: var(--qh-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.qh-guide:hover, .qh-guide:focus { border-color: var(--qh-tape); box-shadow: 0 6px 18px rgba(29, 35, 33, .08); transform: translateY(-2px); color: var(--qh-ink); }
.qh-guide-title { font-family: var(--qh-head); font-weight: 700; font-size: 18px; line-height: 1.3; }
.qh-guide-desc { font-size: 15px; color: var(--qh-ink-2); line-height: 1.5; }
.qh-guide-go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--qh-link); }

/* Related section + calculator CTA */
.qh-related { max-width: 1000px; margin: 2.2em auto 0; padding-top: 1.4em; border-top: 1px solid var(--qh-line); }
.qh-related h2 { margin-top: .4em; }
.qh-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 14px; background: var(--qh-ink); color: #fff; position: relative; overflow: hidden; }
.qh-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(-45deg, var(--qh-tape) 0 10px, var(--qh-ink) 10px 20px); }
.qh-cta > div { display: flex; flex-direction: column; gap: 4px; max-width: 620px; padding-left: 10px; }
.qh-cta-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--qh-tape); }
.qh-cta-title { font-family: var(--qh-head); font-size: 22px; font-weight: 700; }
.qh-cta-desc { font-size: 15px; color: #cfd5d2; }

/* Posts */
.single-post .entry-meta { max-width: 760px; margin: 6px auto 0; font-size: 14px; color: var(--qh-muted); }
.single-post .entry-meta a { color: var(--qh-muted); }
.single-post footer.entry-meta { display: none; }

/* Blog / Guides list */
.blog .site-main, .archive .site-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.blog .site-main > .page-header, .archive .site-main > .page-header,
.blog .site-main > .paging-navigation, .archive .site-main > .paging-navigation,
.blog .site-main > .qh-crumbs, .archive .site-main > .qh-crumbs,
.blog .site-main > .qh-blog-intro { grid-column: 1 / -1; }
.blog .site-main > article, .archive .site-main > article { margin: 0; }
.blog .inside-article, .archive .inside-article { height: 100%; padding: 22px !important; transition: border-color .15s, box-shadow .15s; }
.blog .inside-article:hover, .archive .inside-article:hover { border-color: var(--qh-tape); box-shadow: 0 6px 18px rgba(29, 35, 33, .08); }
.blog .entry-title, .archive .entry-title { font-size: 21px; }
.blog .entry-title a, .archive .entry-title a { color: var(--qh-ink); text-decoration: none; }
.blog .entry-header, .archive .entry-header, .blog .entry-summary, .archive .entry-summary { max-width: none; }
.blog .entry-summary p, .archive .entry-summary p { font-size: 15px; color: var(--qh-ink-2); }
.blog footer.entry-meta, .archive footer.entry-meta { font-size: 13px; }
.qh-blog-intro { background: var(--qh-white); border: 1px solid var(--qh-line); border-radius: 12px; padding: 26px; }
.qh-blog-intro h1 { margin: 0 0 6px; }
.qh-blog-intro p { margin: 0; color: var(--qh-ink-2); }

/* Table of contents */
.qh-toc { background: var(--qh-paper); border: 1px solid var(--qh-line); border-radius: 12px; padding: 16px 20px; margin: 1.4em auto; }
.qh-toc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.qh-toc-head span { font-size: 13px; color: var(--qh-muted); }
.qh-toc ol { margin: 0; padding-left: 1.2em; }
.qh-toc li { margin: 4px 0; font-size: 15px; }
.qh-toc a { text-decoration: none; }
.qh-toc a:hover { text-decoration: underline; }
html { scroll-behavior: smooth; }
.entry-content h2[id] { scroll-margin-top: 110px; }
