/*
Theme Name: Cleaner Ops
Theme URI: https://cleaneropslab.com
Author: Cleaner Ops Lab
Description: A fast block theme for practical cleaning-business operations content and tools.
Version: 1.4.0
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: cleanerops
*/

html { scroll-behavior: smooth; }
body { text-wrap: pretty; letter-spacing: -0.005em; font-size: 1rem; }
:root {
  --co-font-body: 1rem;
  --co-font-lede: 1.125rem;
  --co-font-h3: 1.25rem;
  --co-font-h2: clamp(1.5rem, 2.1vw, 1.875rem);
  --co-font-h1: clamp(2.25rem, 3.2vw, 3.15rem);
}
h1, .wp-block-post-title { font-size: var(--co-font-h1) !important; line-height: 1.08 !important; letter-spacing: -.035em !important; }
h2 { font-size: var(--co-font-h2) !important; line-height: 1.18 !important; }
h2.has-x-large-font-size { font-size: var(--co-font-h2) !important; }
h3 { font-size: var(--co-font-h3) !important; line-height: 1.25 !important; }
.has-large-font-size { font-size: var(--co-font-lede) !important; line-height: 1.6 !important; }
a { text-underline-offset: .18em; }
.wp-site-blocks { min-height: 100vh; }
.co-site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 rgba(15,38,35,.03); }
.co-primary-nav .wp-block-navigation__submenu-container { min-width: 240px !important; padding: .45rem !important; border: 1px solid var(--wp--preset--color--line) !important; border-radius: 12px; box-shadow: 0 16px 40px rgba(15,38,35,.12); }
.co-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .65rem .75rem !important; border-radius: 8px; }
.co-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--mist); }
.co-shell { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.wp-block-post-content > .alignwide.co-shell { width: min(100% - 2.5rem, 1120px) !important; max-width: 1120px !important; }
.co-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  background: var(--wp--preset--color--surface);
  box-shadow: 0 8px 24px rgba(15, 38, 35, .045);
}
.co-card:hover { transform: translateY(-1px); border-color: #bdd0cc; transition: transform .18s ease, border-color .18s ease; }
.co-task-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.co-task-grid > * { margin-block-start: 0 !important; }
.co-task-card { position: relative; padding: 1.35rem; min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; }
.co-task-card h3 { margin: .55rem 0 .6rem; }
.co-task-card p { margin: 0 0 .75rem; }
.co-task-card .co-task-link { margin-top: auto; font-weight: 750; }
.co-task-icon { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; color: var(--wp--preset--color--forest); background: var(--wp--preset--color--mist); font-weight: 800; }
.co-search { max-width: 720px; margin-top: 1.25rem; }
.co-search .wp-block-search__inside-wrapper { padding: .3rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.co-search .wp-block-search__input { border: 0; min-height: 48px; padding: .65rem .85rem; }
.co-search .wp-block-search__button { margin: 0; border: 0; border-radius: 9px; padding-inline: 1.2rem; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); font-weight: 750; }
.co-guide-card { height: 100%; }
.co-guide-card .wp-block-post-title { font-size: 1.45rem !important; line-height: 1.2 !important; letter-spacing: -.02em !important; }
.co-guide-card .wp-block-post-excerpt__more-link { font-weight: 750; }
.co-archive .wp-block-query { margin-top: 2.5rem; }
.co-toc { margin: 2rem 0 2.5rem; padding: 1.25rem 1.35rem; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: var(--wp--preset--color--mist); }
.co-toc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.co-toc-title { margin: 0; font-size: 1rem; font-weight: 800; }
.co-print-button { padding: .45rem .7rem; border: 1px solid #bdd0cc; border-radius: 8px; color: var(--wp--preset--color--forest); background: #fff; font: inherit; font-size: .8rem; font-weight: 750; cursor: pointer; }
.co-print-button:hover { background: var(--wp--preset--color--surface); }
.co-toc ol { columns: 2; column-gap: 2.5rem; margin: 0; padding-left: 1.25rem; }
.co-toc li { break-inside: avoid; margin: .38rem 0; padding-left: .2rem; }
.co-toc a { font-size: .94rem; font-weight: 650; text-decoration-thickness: 1px; }
.co-topic-links { gap: .65rem !important; }
.co-topic-links p { margin: 0; }
.co-topic-links a { display: inline-block; padding: .55rem .8rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; }
.co-topic-links a:hover { background: var(--wp--preset--color--mist); }
.co-kicker { letter-spacing: .1em; text-transform: uppercase; font-weight: 800; font-size: .72rem; }
.co-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(229, 166, 86, .18), transparent 28%),
    linear-gradient(135deg, #123f3a 0%, #0c302c 100%);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  padding: 3.75rem clamp(1.5rem,5vw,4.5rem) !important;
  min-height: 0;
}
.co-hero::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -120px;
  bottom: -155px;
  border: 52px solid rgba(255,255,255,.045);
  border-radius: 50%;
  pointer-events: none;
}
.co-find-hero { padding-top: 3.4rem !important; padding-bottom: 3.4rem !important; }
.co-find-hero h1 { max-width: 700px; margin-bottom: .8rem; }
.co-hero-search { position: relative; z-index: 2; margin-top: 1.4rem; }
.co-hero-search .wp-block-search__input { color: var(--wp--preset--color--ink); }
.co-home-section > h2 { margin-bottom: .55rem; }
.co-quick-tool > .wp-block-group { max-width: 680px; }
.co-start-card > .wp-block-group { max-width: 720px; }
.co-hero h1 { max-width: 780px; font-size: var(--co-font-h1) !important; }
.co-hero .has-large-font-size { max-width: 680px; font-size: var(--co-font-lede) !important; line-height: 1.6; color: rgba(255,255,255,.86) !important; }
.co-hero .wp-block-button__link { box-shadow: none; font-size: .94rem; }
.co-hero .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.45); color: #fff; }
.co-stat { border-left: 4px solid var(--wp--preset--color--accent); padding-left: 1rem; }
.co-note { border-left: 5px solid var(--wp--preset--color--accent); background: #fff8ed; }
.co-disclosure { font-size: .92rem; background: #f4f8f7; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.co-tool { border-top: 5px solid var(--wp--preset--color--accent); }
.single-post main > .wp-block-post-excerpt { max-width: 760px; font-size: var(--co-font-lede) !important; line-height: 1.6; }
.single-post .wp-block-post-content { font-size: var(--co-font-body); line-height: 1.65; }
.co-article-meta { gap: .4rem !important; margin-top: .7rem; color: #526966; font-size: .84rem; }
.co-article-meta p, .co-article-meta time { margin: 0; }
.wp-block-post-content > * + * { margin-block-start: 1.2em; }
.wp-block-post-content > .has-large-font-size { font-size: var(--co-font-lede) !important; line-height: 1.6 !important; }
.wp-block-post-content h2 { margin-block-start: 1.9em; }
.wp-block-post-content h3 { margin-block-start: 1.6em; }
.wp-block-post-content table { font-size: .95rem; }
.wp-block-post-content table { width: 100%; border-collapse: collapse; }
.wp-block-post-content th, .wp-block-post-content td { padding: .65rem; border: 1px solid #d8e4e1; text-align: left; vertical-align: top; }
.co-growth-entry { padding-block: 1.5rem .5rem; }
.co-growth-entry p { line-height: 2; }
.wp-block-post-content th { background: #eaf4f2; }
.co-process-figure { margin: 2rem 0; }
.co-process-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.co-process-figure figcaption { margin-top: .55rem; color: #526966; font-size: .85rem; text-align: center; }
@media (max-width: 720px) {
  body:not(.home) main { padding-inline: 1rem; }
  .wp-block-post-content table { display: block; overflow-x: auto; max-width: 100%; }
  .co-shell, .wp-block-post-content > .alignwide.co-shell { width: min(100% - 1.25rem, 1120px) !important; }
  .co-hero { border-radius: 14px; padding: 2.75rem 1.4rem !important; }
  h1, .wp-block-post-title, .co-hero h1 { font-size: clamp(2.1rem, 10vw, 2.65rem) !important; }
  .co-task-grid { grid-template-columns: 1fr; }
  .co-task-card { min-height: 0; }
  .co-site-header .co-shell { width: min(100% - 1.25rem, 1120px); }
  .co-toc ol { columns: 1; }
}
@media (min-width: 721px) and (max-width: 980px) {
  .co-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .co-site-header, footer, .co-disclosure, .co-print-button, .wp-block-post-navigation-link { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  main { padding-top: 0 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .co-toc { break-inside: avoid; background: #fff; }
}
