/*
Theme Name: CopyAccentMarks WordPress
Theme URI: https://copyaccentmarks.com/
Author: CopyAccentMarks
Description: WordPress port of the CopyAccentMarks React/Vite design, with real WordPress pages, posts, tools, Customizer-controlled footer and advertising areas.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: copyaccentmarks
License: GPL-2.0-or-later
*/

html { scroll-behavior: smooth; }
body { margin: 0; background: #faf9f6; }
#root { min-height: 100vh; }
/* Server-rendered semantic H1 for crawlers. React replaces it on mount, while this prevents a pre-render title flash. */
.cam-server-h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.cam-boot-fallback { max-width: 56rem; margin: 0 auto; padding: 3rem 1rem; font-family: system-ui, sans-serif; color: #171717; }
.cam-boot-fallback h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 1rem; }
.cam-boot-fallback p { color: #525252; line-height: 1.7; }
.cam-wp-post-content h2, .cam-wp-post-content h3 { font-weight: 800; color: #171717; margin-top: 1.75em; margin-bottom: .65em; }
.cam-wp-post-content h2 { font-size: 1.5rem; }
.cam-wp-post-content h3 { font-size: 1.2rem; }
.cam-wp-post-content p, .cam-wp-post-content li { line-height: 1.8; color: #404040; }
.cam-wp-post-content a { color: #92400e; text-decoration: underline; }
.cam-wp-post-content img { max-width: 100%; height: auto; border-radius: 1rem; }
.cam-wp-post-content ul, .cam-wp-post-content ol { padding-left: 1.5rem; }
.cam-wp-post-content blockquote { border-left: 3px solid #d97706; margin-left: 0; padding-left: 1rem; color: #525252; }
.cam-boot-error { max-width: 52rem; margin: 3rem auto; padding: 1.5rem; border: 1px solid #e5e5e5; border-radius: 1rem; background: #fff; color: #171717; font-family: system-ui, sans-serif; }
.cam-boot-error h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .75rem; }
.cam-boot-error p { line-height: 1.6; color: #525252; }
.cam-boot-error pre { margin-top: 1rem; padding: .75rem; overflow: auto; background: #f5f5f5; border-radius: .5rem; white-space: pre-wrap; font-size: .8rem; }

/* v1.0.2: polished tablet/desktop navigation */
.cam-header-row { gap: 0.75rem; }
.cam-brand-wrap { flex: 0 0 auto; min-width: 0; }
.cam-brand { white-space: nowrap; }
.cam-primary-nav { display: none; }
.cam-nav-shell {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.9rem;
  background: rgba(250, 250, 249, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 2px rgba(23,23,23,.04);
}
.cam-nav-group { position: relative; }
.cam-nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #525252;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  height: 2.35rem;
  padding: 0 0.72rem;
  border-radius: 0.68rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cam-nav-item:hover { color: #171717; background: #fff; }
.cam-nav-item:focus-visible,
.cam-header-search:focus-visible { outline: 2px solid #d97706; outline-offset: 2px; }
.cam-nav-item.is-active {
  color: #171717;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23,23,23,.10), inset 0 -2px 0 #d97706;
}
.cam-nav-icon { width: 0.92rem; height: 0.92rem; color: #737373; flex: 0 0 auto; }
.cam-nav-item.is-active .cam-nav-icon { color: #b45309; }
.cam-nav-chevron { width: 0.78rem; height: 0.78rem; color: #a3a3a3; transition: transform .16s ease; }
.cam-nav-chevron.is-open { transform: rotate(180deg); }
.cam-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  width: 15.5rem;
  padding: 0.45rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.9rem;
  background: rgba(255,255,255,.99);
  box-shadow: 0 18px 45px rgba(23,23,23,.14), 0 4px 12px rgba(23,23,23,.06);
  z-index: 60;
}
.cam-nav-dropdown--wide { width: 17.5rem; }
.cam-nav-dropdown--right { left: auto; right: 0; width: 14rem; }
.cam-nav-dropdown::before {
  content: "";
  position: absolute;
  top: -0.65rem;
  left: 0;
  right: 0;
  height: 0.7rem;
}
.cam-dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.68rem 0.72rem;
  border-radius: 0.65rem;
  color: #404040;
  text-align: left;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.cam-dropdown-item:hover { background: #fafaf9; color: #171717; }
.cam-dropdown-item span { min-width: 0; display: flex; flex-direction: column; gap: 0.18rem; }
.cam-dropdown-item strong { font-size: 0.78rem; line-height: 1.2; font-weight: 750; }
.cam-dropdown-item small { font-size: 0.66rem; line-height: 1.35; color: #8a8a8a; font-weight: 500; }
.cam-dropdown-icon { width: 1rem; height: 1rem; margin-top: 0.05rem; color: #b45309; flex: 0 0 auto; }
.cam-dropdown-item--compact { align-items: center; padding-top: 0.58rem; padding-bottom: 0.58rem; }
.cam-dropdown-separator { height: 1px; background: #eeeeec; margin: 0.3rem 0.45rem; }
.cam-header-actions { flex: 0 0 auto; }
.cam-header-search {
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #525252;
  height: 2.6rem;
  min-width: 2.6rem;
  padding: 0 0.72rem;
  border-radius: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(23,23,23,.04);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.cam-header-search:hover { border-color: #d6d3d1; background: #fafaf9; box-shadow: 0 2px 6px rgba(23,23,23,.06); }
.cam-search-label, .cam-search-kbd { display: none; }
.cam-search-label { font-size: 0.72rem; font-weight: 650; white-space: nowrap; }
.cam-search-kbd {
  padding: 0.1rem 0.35rem;
  border: 1px solid #e5e5e5;
  border-bottom-width: 2px;
  border-radius: 0.35rem;
  background: #fafafa;
  color: #737373;
  font-size: 0.62rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cam-mobile-menu-toggle { display: inline-flex; }
.cam-mobile-menu { display: block; }

@media (min-width: 768px) {
  .cam-header-row { gap: 0.55rem; }
  .cam-primary-nav { display: flex; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .cam-mobile-menu-toggle, .cam-mobile-menu { display: none !important; }
  .cam-brand-wordmark span { font-size: 1.02rem; }
  .cam-brand-mark { width: 2.05rem; height: 2.05rem; font-size: 1.35rem; }
  .cam-custom-logo { max-width: 11rem; }
  .cam-nav-item { padding-left: 0.52rem; padding-right: 0.52rem; font-size: 0.7rem; }
  .cam-nav-home { display: none; }
  .cam-nav-icon { width: 0.82rem; height: 0.82rem; }
}

@media (min-width: 1024px) {
  .cam-header-row { gap: 0.8rem; }
  .cam-brand-wordmark span { font-size: 1.12rem; }
  .cam-brand-mark { width: 2.2rem; height: 2.2rem; font-size: 1.48rem; }
  .cam-custom-logo { max-width: 13rem; }
  .cam-nav-home { display: inline-flex; }
  .cam-nav-item { padding-left: 0.62rem; padding-right: 0.62rem; font-size: 0.74rem; }
}

@media (min-width: 1220px) {
  .cam-nav-item { padding-left: 0.78rem; padding-right: 0.78rem; font-size: 0.79rem; }
  .cam-search-label { display: inline; }
}

@media (min-width: 1360px) {
  .cam-search-kbd { display: inline-block; }
}
