/*
Theme Name: The Search Space
Theme URI: https://thesearchspace.com
Author: The Search Space
Description: Custom lightweight theme for The Search Space. SEO, local SEO and AI search for service businesses.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: thesearchspace
*/

:root { --accent: #E8714A; --ink: #15241E; --paper: #F4EFE6; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); -webkit-font-smoothing: antialiased; }
.tss-root { font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; overflow: hidden; }
body.tss-theme { font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
:is(.tss-root, body.tss-theme) a { color: inherit; text-decoration: none; }
:is(.tss-root, body.tss-theme) a:hover { opacity: .85; }
:is(.tss-root, body.tss-theme) h1, :is(.tss-root, body.tss-theme) h2, :is(.tss-root, body.tss-theme) h3 { margin: 0; font-weight: 700; }
:is(.tss-root, body.tss-theme) p { margin: 0; }
:is(.tss-root, body.tss-theme) details summary { cursor: pointer; list-style: none; }
:is(.tss-root, body.tss-theme) details summary::-webkit-details-marker { display: none; }
:is(.tss-root, body.tss-theme) input, :is(.tss-root, body.tss-theme) select, :is(.tss-root, body.tss-theme) textarea, :is(.tss-root, body.tss-theme) button { font: inherit; color: var(--ink); }
:is(.tss-root, body.tss-theme) :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:is(.tss-root, body.tss-theme) img { max-width: 100%; height: auto; }

.tss-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.tss-skip:focus { left: 8px; }

/* Defensive resets so plugin or old builder styles can't leak in */
html :is(body .tss-root, body.tss-theme) h1, html :is(body .tss-root, body.tss-theme) h2, html :is(body .tss-root, body.tss-theme) h3, html :is(body .tss-root, body.tss-theme) h4 { color: inherit; font-family: inherit; text-transform: none; font-style: normal; line-height: 1.2; }
html :is(body .tss-root, body.tss-theme) p, html :is(body .tss-root, body.tss-theme) li, html :is(body .tss-root, body.tss-theme) span, html :is(body .tss-root, body.tss-theme) label, html :is(body .tss-root, body.tss-theme) blockquote, html :is(body .tss-root, body.tss-theme) figcaption { font-family: inherit; }
html :is(body .tss-root, body.tss-theme) a { color: inherit; font-family: inherit; }
html :is(body .tss-root, body.tss-theme) button, html :is(body .tss-root, body.tss-theme) input, html :is(body .tss-root, body.tss-theme) select, html :is(body .tss-root, body.tss-theme) textarea { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
html :is(body .tss-root, body.tss-theme) button { padding-top: 0; padding-bottom: 0; line-height: 1.2; }

/* Header + mobile menu */
.tss-menu-btn { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; height: 44px; padding: 0 18px; font-weight: 700; cursor: pointer; align-items: center; gap: 8px; }
.tss-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

@media (max-width: 760px) {
  .tss-pad { padding: 28px !important; }
  .tss-hide-sm { display: none !important; }
  .tss-art { height: 560px !important; }
  .tss-sec { padding-left: 20px !important; padding-right: 20px !important; }
  .tss-menu-btn { display: inline-flex; }
  .tss-nav, .tss-header-cta { display: none !important; }
  .tss-header.is-open .tss-nav { display: flex !important; flex-direction: column; gap: 0 !important; width: 100%; order: 3; border-top: 1.5px solid var(--ink); padding-top: 8px; }
  .tss-header.is-open .tss-nav a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid #D9D0BF; }
  .tss-header.is-open .tss-header-cta { display: inline-flex !important; order: 4; margin: 12px 0 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Forms */
.tss-notice { border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.tss-notice.ok { background: #E7EEDF; }
.tss-notice.err { background: #FBE3D8; }
.tss-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Blog + generic pages */
.tss-prose { max-width: 720px; font-size: 18px; line-height: 1.75; }
.tss-prose > * + * { margin-top: 1.1em; }
.tss-prose h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; margin-top: 1.6em; }
.tss-prose h3 { font-size: 23px; letter-spacing: -0.02em; margin-top: 1.4em; }
.tss-prose a { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: var(--accent) !important; font-weight: 600; }
.tss-prose ul, .tss-prose ol { padding-left: 1.3em; }
.tss-prose li + li { margin-top: .4em; }
.tss-prose blockquote { margin: 1.5em 0; padding: 18px 22px; background: #FFFDF8; border: 1.5px solid var(--ink); border-radius: 14px; font-weight: 500; }
.tss-prose img { border-radius: 14px; border: 1.5px solid var(--ink); }
.tss-prose figure { margin: 1.5em 0; }
.tss-prose code { background: #FFFDF8; border: 1px solid #D9D0BF; border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.tss-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tss-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 14px; font-weight: 700; background: #FFFDF8; }
.tss-pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
:is(.tss-root, body.tss-theme) form { min-width: 0; max-width: 100%; box-sizing: border-box; }
:is(.tss-root, body.tss-theme) textarea { width: 100%; box-sizing: border-box; }
