/* ==========================================================================
   citizenJoe 2.0 — based on the original "SEO Position" Drupal theme
   (SEO Position & Blamcast, 2008). Colours, fonts and the
   header / orange-nav / two-column + double-sidebar layout are kept;
   everything is now responsive and animated.
   ========================================================================== */

:root {
  --cj-bg: #aaaaaa;          /* body background (original) */
  --cj-page: #ffffff;
  --cj-text: #555555;        /* original body text */
  --cj-dark: #444444;        /* header */
  --cj-darker: #414141;      /* rules / borders */
  --cj-blue: #006286;        /* links + headings */
  --cj-orange: #ec5e11;      /* nav + hover */
  --cj-grey: #999999;        /* sidebar block titles */
  --cj-grey-2: #7a797e;      /* nav hover */
  --cj-light: #eeeeee;
  --cj-lighter: #f6f6f6;
  --cj-line: #dddddd;
  --cj-pager: #dfedf7;
  --cj-pager-b: #90c2e1;
  --cj-pager-on: #0174bb;
  --cj-ok: #2e7d32;
  --cj-err: #c62828;
  --cj-radius: 4px;
  --cj-shadow: 0 2px 10px rgba(0,0,0,.12);
  --cj-font: Verdana, Geneva, Arial, sans-serif;
  --cj-head: Helvetica, "Helvetica Neue", Verdana, Arial, sans-serif;
  --cj-wrap: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

body {
  background: var(--cj-bg);
  background-image: linear-gradient(90deg, #9d9d9d 0, #aaa 8%, #aaa 92%, #9d9d9d 100%);
  font-family: var(--cj-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cj-text);
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
html, body { overflow-x: hidden; }
a, a:visited { color: var(--cj-blue); text-decoration: none; transition: color .2s; }
a:hover, a:focus, a:active { color: var(--cj-orange); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--cj-orange); outline-offset: 2px; }
p { margin: .6em 0; }
h1, h2, h3, h4, h5, h6 { font-weight: normal; font-family: var(--cj-head); color: var(--cj-blue); line-height: 1.25; }
strong, b { font-weight: bold; }
table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .95em; line-height: 1.4; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--cj-line); text-align: left; vertical-align: top; }
th { background: var(--cj-light); color: var(--cj-darker); font-weight: bold; }
hr { border: 0; border-top: 1px dashed var(--cj-darker); margin: 1.5em 0; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 100000; background: #fff; padding: 10px 14px; top: 6px; left: 6px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 6px; top: 6px; z-index: 10000; background: #fff; padding: 8px 12px; }

/* ---------- reading progress ---------- */
.cj-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--cj-orange); z-index: 1000; transition: width .1s linear; }

/* ---------- page shell (original #container / #main) ---------- */
#container {
  max-width: var(--cj-wrap);
  margin: 0 auto;
  background: var(--cj-page);
  box-shadow: 0 0 0 10px #bdbdbd, 0 0 24px rgba(0,0,0,.25);
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ---------- header (original #header: #444, white h1/h2) ---------- */
#header {
  background: var(--cj-dark);
  background-image: linear-gradient(180deg, #555 0%, #444 55%, #3a3a3a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 0 22px;
  min-height: 100px;
}
#header::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px);
}
.cj-header-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 12px 14px; }
.cj-brand { display: block; color: #fff !important; }
.cj-brand .site-title { font-family: var(--cj-head); font-size: 2.1rem; line-height: 1; color: #fff; letter-spacing: -.5px; }
.cj-brand .site-title span { color: var(--cj-orange); }
.cj-brand .site-description { font-family: var(--cj-head); font-size: .78rem; color: #ddd; padding-top: .35em; }
.cj-header-tools { display: flex; align-items: center; gap: 10px; }
.cj-header-tools a { color: #fff; }
.cj-header-tools a:hover { color: var(--cj-orange); }
.cj-btn-small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; border: 1px solid rgba(255,255,255,.35); padding: 5px 10px; border-radius: 3px; }
.cj-btn-small:hover { border-color: var(--cj-orange); }
.cj-btn-small svg, .cj-nav-search svg { width: 14px; height: 14px; }
.cj-cart-count { background: var(--cj-orange); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; }

/* ---------- nav (original #nav: dark strip, orange uppercase) ---------- */
#nav {
  background: #2f2f2f;
  background-image: linear-gradient(180deg, #3b3b3b, #262626);
  margin: 0 22px;
  font-family: var(--cj-head);
  font-size: 12px;
  text-transform: uppercase;
  position: sticky; top: 0; z-index: 900;
  border-top: 1px solid #555;
}
#nav.is-stuck { box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.admin-bar #nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #nav { top: 0; } }
.cj-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; min-height: 37px; }
#nav ul { list-style: none; }
#nav .menu { display: flex; flex-wrap: wrap; }
#nav .menu > li { position: relative; margin-right: 2px; }
#nav a { display: block; padding: 10px 10px 9px; color: var(--cj-orange); border: 0; }
#nav a:hover, #nav .current-menu-item > a, #nav .current-menu-ancestor > a, #nav .current_page_item > a { color: #c9c8cc; }
#nav .menu > li > a { position: relative; }
#nav .menu > li > a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; background: var(--cj-orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
#nav .menu > li > a:hover::after, #nav .menu > .current-menu-item > a::after, #nav .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
#nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 230px; background: #2b2b2b; border-top: 2px solid var(--cj-orange); box-shadow: var(--cj-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 50; }
#nav li:hover > .sub-menu, #nav li:focus-within > .sub-menu, #nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
#nav .sub-menu a { padding: 8px 14px; text-transform: none; font-size: 13px; color: #f0a070; }
#nav .sub-menu a:hover { background: #383838; color: #fff; }
#nav .menu-item-has-children > a { padding-right: 20px; }
#nav .menu-item-has-children > a::before { content: ""; position: absolute; right: 7px; top: 50%; margin-top: -2px; border: 4px solid transparent; border-top-color: currentColor; }
.cj-nav-toggle { display: none; background: none; border: 1px solid #555; color: var(--cj-orange); padding: 6px 10px; cursor: pointer; font: inherit; text-transform: uppercase; border-radius: 3px; }
.cj-nav-toggle .bar { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px 0; transition: transform .25s, opacity .25s; }
.cj-nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.cj-nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.cj-nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.cj-nav-search { position: relative; }
.cj-nav-search input { background: #1d1d1d; border: 1px solid #555; color: #eee; padding: 5px 28px 5px 8px; width: 160px; font-size: 12px; border-radius: 3px; transition: width .25s; }
.cj-nav-search input:focus { width: 210px; border-color: var(--cj-orange); outline: none; }
.cj-nav-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--cj-orange); cursor: pointer; }

/* ---------- main layout (original #content 522px + #sidebar 385px) ---------- */
#main { display: flex; align-items: flex-start; gap: 22px; padding: 18px 22px 10px; flex: 1; }
#content { flex: 1 1 auto; min-width: 0; font-size: 14px; }
#sidebar { flex: 0 0 385px; display: flex; gap: 10px; background: #fff; border-bottom: 1px solid var(--cj-line); font-size: 12.5px; padding-top: 4px; }
.cj-full #content { width: 100%; }
#leftcol, #rightcol { flex: 1 1 0; min-width: 0; }
#rightcol { border-left: 1px solid var(--cj-line); padding-left: 10px; }

/* content headings (original #content h2 / h3 / h4) */
#content h1.entry-title, #content .page-title { color: var(--cj-blue); font-size: 2rem; padding-bottom: .1em; margin-bottom: .5em; border-bottom: 2px solid var(--cj-darker); }
#content h2 { color: var(--cj-blue); font-size: 1.55rem; padding-bottom: .1em; margin: 1.1em 0 .5em; border-bottom: 2px solid var(--cj-darker); }
#content h3 { color: var(--cj-blue); font-size: 1.12rem; font-weight: bold; padding-top: .5em; padding-bottom: .1em; margin-bottom: .5em; border-bottom: 1px dotted var(--cj-darker); }
#content h4 { color: var(--cj-blue); font-size: 1rem; font-weight: bold; padding-top: .2em; margin: .8em 0 .3em; }
#content .entry-content > h2:first-child { margin-top: .2em; }
#content blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--cj-orange); background: var(--cj-lighter); font-style: italic; }
#content ul, #content ol { margin: .4em 0 1em; }
#content ol { padding-left: 1.8em; }
#content ul { list-style: none; }
#content ul li { position: relative; padding-left: 16px; margin: 0 10px .35em 6px; }
#content ul li::before { content: ""; position: absolute; left: 0; top: .62em; border: 4px solid transparent; border-left: 6px solid var(--cj-orange); }
#content ul.cj-plain li, #content .cj-plain li { padding-left: 0; margin-left: 0; }
#content ul.cj-plain li::before, #content .cj-plain li::before, #content .wc-block-components-product-details li::before, #content .woocommerce ul li::before, #content ul.products li::before, #content .cj-cards li::before, #content .cj-share li::before, #content .page-numbers li::before, #content .cj-toc li::before { display: none; }
#content .meta, .cj-meta { border-top: 1px dashed var(--cj-darker); font-size: .82rem; margin: 2em 0 1em; padding: .4em 0; text-align: center; text-transform: uppercase; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content img.alignright, .alignright { float: right; margin: 0 0 1em 1.4em; }
.entry-content img.alignleft, .alignleft { float: left; margin: 0 1.4em 1em 0; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption-text, figcaption { font-size: .8rem; color: #777; margin-top: 4px; }

/* sidebar blocks (original #leftcol .block h2) */
.widget, .block { margin-bottom: 20px; }
.widget-title, #sidebar .block h2 {
  padding: 2px 6px; background: var(--cj-grey); color: #fff; font-size: 12px; text-transform: uppercase;
  border-bottom: 2px solid #555; margin-bottom: .5em; font-family: var(--cj-head); font-weight: normal;
}
#sidebar ul { list-style: none; }
#sidebar ul.menu, #sidebar .cj-box { background: var(--cj-light); padding: 5px; }
#sidebar ul.menu li a { display: block; padding: 3px 4px; border-radius: 2px; }
#sidebar ul.menu li a:hover { background: #fff; }
#sidebar li { margin: 0 0 .3em; }
#sidebar .widget p { margin: .4em 0; }
#sidebar .cj-banner { display: block; text-align: center; margin: 6px 0 10px; transition: transform .2s; }
#sidebar .cj-banner:hover { transform: translateY(-2px) scale(1.02); }
#sidebar input[type=text], #sidebar input[type=email], #sidebar input[type=search] { width: 100%; }
#sidebar .cj-filter { gap: 6px; }
#sidebar .cj-filter input { min-width: 0; flex: 1 1 auto; padding: 6px 8px; }
#sidebar .cj-filter .cj-btn { padding: 7px 10px; font-size: 11px; flex: 0 0 auto; }
.cj-recent li { padding-bottom: .4em; border-bottom: 1px dotted #ccc; }
.cj-recent .date { display: block; font-size: 11px; color: #999; }
.more-link a, a.more-link { font-weight: bold; text-transform: uppercase; font-size: 11px; }

/* ---------- footer (original #footer) ---------- */
#footer { margin-top: auto; background: #e9e9e9; border-top: 4px solid var(--cj-dark); padding: 22px 23px 12px; font-size: 12.5px; }
.cj-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 22px; }
.cj-footer-cols h3 { font-size: 13px; text-transform: uppercase; color: var(--cj-darker); border-bottom: 2px solid var(--cj-orange); padding-bottom: 4px; margin-bottom: 8px; font-weight: bold; }
.cj-footer-cols ul { list-style: none; }
.cj-footer-cols li { margin: .25em 0; }
.cj-footer-bottom { margin-top: 18px; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; padding: 6px 0; text-align: center; font-size: 11.5px; background: repeating-linear-gradient(90deg,#f2f2f2 0 2px,#ececec 2px 4px); }
.cj-social { display: flex; gap: 8px; margin-top: 8px; }
.cj-social a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cj-dark); color: #fff !important; transition: background .2s, transform .2s; }
.cj-social a:hover { background: var(--cj-orange); transform: translateY(-2px); }
.cj-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- buttons & forms ---------- */
.cj-btn, button.cj-btn, input[type=submit], .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cj-orange); color: #fff !important; border: 0; border-radius: var(--cj-radius);
  padding: 10px 18px; font: bold 13px/1.2 var(--cj-head); text-transform: uppercase; letter-spacing: .3px; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s; text-decoration: none;
}
.cj-btn:hover, input[type=submit]:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: #c94c0a; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(236,94,17,.35); color: #fff !important; }
.cj-btn--blue { background: var(--cj-blue); }
.cj-btn--blue:hover { background: #004b67; box-shadow: 0 4px 10px rgba(0,98,134,.35); }
.cj-btn--ghost { background: transparent; color: var(--cj-blue) !important; border: 2px solid var(--cj-blue); }
.cj-btn--ghost:hover { background: var(--cj-blue); color: #fff !important; }
.cj-btn[disabled] { opacity: .6; pointer-events: none; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--cj-blue); }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; font: 14px var(--cj-font); color: #333; background: #fff; border: 1px solid #bbb; border-radius: 3px; padding: 8px 10px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--cj-blue); box-shadow: 0 0 0 3px rgba(0,98,134,.15); outline: none; }
textarea { min-height: 140px; resize: vertical; }
label { display: block; font-weight: bold; color: var(--cj-darker); margin-bottom: 4px; font-size: 13px; }
label .req, .form-required { color: var(--cj-orange); }
.cj-form .row { margin-bottom: 14px; }
.cj-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cj-form .hint { font-size: 11.5px; color: #888; margin-top: 3px; }
.cj-form .error-text { color: var(--cj-err); font-size: 12px; margin-top: 4px; display: none; }
.cj-form .has-error input, .cj-form .has-error textarea, .cj-form .has-error select { border-color: var(--cj-err); background: #fff6f6; }
.cj-form .has-error .error-text { display: block; }
.cj-form .is-valid input, .cj-form .is-valid textarea, .cj-form .is-valid select { border-color: var(--cj-ok); }
.cj-form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
.cj-form .check input { margin-top: 4px; }
.cj-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.cj-counter { font-size: 11px; color: #999; text-align: right; }
.cj-alert { padding: 10px 14px; border-radius: var(--cj-radius); margin: 0 0 16px; border-left: 4px solid; }
.cj-alert--error { background: #fdecea; border-color: var(--cj-err); color: #7f1d1d; }
.cj-alert--ok { background: #e8f5e9; border-color: var(--cj-ok); color: #1b5e20; }
.cj-radios { display: flex; gap: 14px; margin: 6px 0; }
.cj-radios label { font-weight: normal; display: flex; gap: 5px; align-items: center; }

/* ---------- hero ---------- */
.cj-hero { position: relative; margin: 0 0 18px; border-radius: var(--cj-radius); overflow: hidden; color: #fff; min-height: 300px; display: flex; align-items: flex-end; background: #2d3e48; }
.cj-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: cj-kenburns 22s ease-in-out infinite alternate; }
.cj-hero > .cj-placeholder { position: absolute; inset: 0; min-height: 0; }
.cj-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,30,38,.15) 0%, rgba(20,30,38,.55) 50%, rgba(20,20,20,.88) 100%); }
.cj-hero__body { position: relative; z-index: 2; padding: 26px 26px 24px; max-width: 640px; }
.cj-hero__kicker { display: inline-block; background: var(--cj-orange); color: #fff; font: bold 11px var(--cj-head); text-transform: uppercase; letter-spacing: .6px; padding: 3px 8px; border-radius: 2px; }
#content .cj-hero h1, #content .cj-hero h2 { color: #fff; border: 0; font-size: 2.05rem; margin: .35em 0 .3em; padding: 0; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.cj-hero p { font-size: 1.02rem; color: #eee; }
.cj-hero .cj-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.cj-typed { color: var(--cj-orange); border-right: 2px solid var(--cj-orange); padding-right: 3px; animation: cj-caret 1s step-end infinite; white-space: nowrap; }
@keyframes cj-caret { 50% { border-color: transparent; } }
@keyframes cj-kenburns { from { transform: scale(1.06) translate(0,0); } to { transform: scale(1.16) translate(-2%, -2%); } }

.cj-page-hero { position: relative; height: 220px; margin: -4px 0 18px; border-radius: var(--cj-radius); overflow: hidden; background: #2d3e48; }
.cj-page-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.cj-page-hero:hover img { transform: scale(1.05); }
.cj-credit { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 2px; z-index: 3; }
.cj-credit a { color: #fff; }
.cj-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; color: #fff; font: bold 1.1rem var(--cj-head); text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 14px; background: linear-gradient(135deg, #006286 0%, #444 60%, #ec5e11 140%); }

/* ---------- panels & cards ---------- */
.panel-2col-stacked { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.cj-panel { background: var(--cj-lighter); border: 1px solid #e3e3e3; border-radius: var(--cj-radius); padding: 14px 16px; }
#content .cj-panel h2 { margin-top: 0; font-size: 1.3rem; }
.cj-section { margin: 26px 0; }
.cj-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--cj-darker); margin-bottom: 14px; }
#content .cj-section__head h2 { border: 0; margin: 0; padding: 0; }
.cj-section__head a { font-size: 12px; text-transform: uppercase; font-weight: bold; }

.cj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; }
#content .cj-cards li { padding: 0; margin: 0; }
.cj-card { background: #fff; border: 1px solid #e2e2e2; border-radius: var(--cj-radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cj-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.12); border-color: #cfcfcf; }
.cj-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #ddd; display: block; }
.cj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cj-card:hover .cj-card__media img { transform: scale(1.07); }
.cj-card__cat { position: absolute; left: 8px; top: 8px; background: var(--cj-orange); color: #fff !important; font: bold 10px var(--cj-head); text-transform: uppercase; padding: 3px 7px; border-radius: 2px; z-index: 2; }
.cj-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
#content .cj-card__title { font-size: 1.02rem; font-weight: bold; border: 0; margin: 0; padding: 0; line-height: 1.3; }
.cj-card__title a { color: var(--cj-blue); }
.cj-card__excerpt { font-size: 12.5px; color: #666; flex: 1; }
.cj-card__meta { font-size: 11px; color: #999; text-transform: uppercase; display: flex; gap: 10px; flex-wrap: wrap; }
.cj-card__price { font: bold 1.1rem var(--cj-head); color: var(--cj-orange); }

.cj-issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cj-issue { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e3e3e3; border-left: 4px solid var(--cj-blue); padding: 12px; border-radius: var(--cj-radius); transition: all .25s; color: var(--cj-darker) !important; }
.cj-issue:hover { border-left-color: var(--cj-orange); transform: translateX(3px); box-shadow: var(--cj-shadow); }
.cj-issue svg { flex: 0 0 30px; width: 30px; height: 30px; fill: none; stroke: var(--cj-blue); stroke-width: 1.7; transition: stroke .25s, transform .25s; }
.cj-issue:hover svg { stroke: var(--cj-orange); transform: rotate(-6deg) scale(1.1); }
.cj-issue strong { display: block; color: var(--cj-blue); font-size: 13px; }
.cj-issue small { color: #888; font-size: 11px; }

.cj-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; text-align: center; background: var(--cj-dark); color: #fff; border-radius: var(--cj-radius); padding: 18px 10px; }
.cj-stat strong { display: block; font: bold 1.7rem var(--cj-head); color: var(--cj-orange); }
.cj-stat span { font-size: 11px; text-transform: uppercase; color: #ccc; letter-spacing: .4px; }
.cj-stats-note { font-size: 11px; color: #888; margin-top: 6px; }

.cj-joetalks { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.cj-joetalk { text-align: center; padding: 14px 10px; border: 1px dashed #ccc; border-radius: var(--cj-radius); transition: all .25s; background: #fff; }
.cj-joetalk:hover { border-color: var(--cj-orange); box-shadow: var(--cj-shadow); }
.cj-joetalk img { transition: transform .3s; }
.cj-joetalk:hover img { transform: scale(1.06) rotate(-1deg); }
.cj-joetalk p { font-size: 12px; color: #666; }

.cj-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, var(--cj-blue), #00435c); color: #fff; padding: 20px 22px; border-radius: var(--cj-radius); margin: 22px 0; }
#content .cj-cta h2, #content .cj-cta h3 { color: #fff; border: 0; margin: 0 0 4px; padding: 0; }
.cj-cta p { margin: 0; color: #d9ecf3; }

/* ---------- swiper ---------- */
.cj-slider { position: relative; padding-bottom: 30px; }
.cj-slider .swiper-slide { height: auto; }
.cj-slider .swiper-pagination-bullet-active { background: var(--cj-orange); }
.cj-slider .swiper-button-next, .cj-slider .swiper-button-prev { color: #fff; background: rgba(0,0,0,.55); width: 34px; height: 34px; border-radius: 50%; top: 82px; margin-top: 0; }
.cj-slider .swiper-button-next::after, .cj-slider .swiper-button-prev::after { font-size: 14px; font-weight: bold; }

/* ---------- accordion / tabs ---------- */
.cj-accordion details { border: 1px solid #e0e0e0; border-radius: var(--cj-radius); margin-bottom: 8px; background: #fff; overflow: hidden; }
.cj-accordion summary { cursor: pointer; list-style: none; padding: 11px 40px 11px 14px; font-weight: bold; color: var(--cj-blue); position: relative; background: var(--cj-lighter); transition: background .2s; }
.cj-accordion summary::-webkit-details-marker { display: none; }
.cj-accordion summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--cj-orange); transition: transform .25s; }
.cj-accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.cj-accordion details[open] summary { background: #eaf3f7; }
.cj-accordion .cj-acc-body { padding: 4px 16px 12px; }
.cj-tabs__nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--cj-darker); }
.cj-tabs__nav button { background: var(--cj-light); border: 0; padding: 8px 14px; font: bold 12px var(--cj-head); text-transform: uppercase; color: var(--cj-blue); cursor: pointer; border-radius: 3px 3px 0 0; }
.cj-tabs__nav button[aria-selected="true"] { background: var(--cj-blue); color: #fff; }
.cj-tabs__panel { padding: 12px 2px; }
.cj-tabs__panel[hidden] { display: none; }

/* ---------- chips / filter ---------- */
.cj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.cj-chip { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 14px; background: #eef4f7; color: var(--cj-blue) !important; border: 1px solid #d3e4ec; transition: all .2s; cursor: default; }
a.cj-chip, button.cj-chip { cursor: pointer; font-family: inherit; }
a.cj-chip:hover, button.cj-chip:hover, .cj-chip.is-active { background: var(--cj-orange); border-color: var(--cj-orange); color: #fff !important; }
.cj-filter { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.cj-filter input { max-width: 320px; }
.cj-filter-empty { display: none; padding: 14px; background: var(--cj-lighter); text-align: center; }

/* ---------- posts ---------- */
.cj-post-head { margin-bottom: 14px; }
.cj-post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #888; text-transform: uppercase; margin: -6px 0 14px; }
.cj-post-meta a { color: #888; }
.cj-post-meta a:hover { color: var(--cj-orange); }
.cj-featured { position: relative; margin: 0 0 18px; border-radius: var(--cj-radius); overflow: hidden; }
.cj-featured img { width: 100%; max-height: 420px; object-fit: cover; }
.cj-toc { background: var(--cj-lighter); border: 1px solid #e3e3e3; border-left: 4px solid var(--cj-blue); padding: 12px 16px; margin: 0 0 18px; border-radius: var(--cj-radius); }
.cj-toc strong { display: block; text-transform: uppercase; font-size: 12px; color: var(--cj-darker); margin-bottom: 6px; }
#content .cj-toc ol { margin: 0; padding-left: 1.4em; }
.cj-toc li { margin: .2em 0; font-size: 13px; }
.cj-toc a.is-active { color: var(--cj-orange); font-weight: bold; }
.cj-keytakeaways { background: #fff8f2; border: 1px solid #f6d3bd; border-radius: var(--cj-radius); padding: 12px 16px; margin: 0 0 18px; }
.cj-keytakeaways strong.label { display: block; color: var(--cj-orange); text-transform: uppercase; font-size: 12px; margin-bottom: 4px; }
.cj-callout { background: #eaf3f7; border-left: 4px solid var(--cj-blue); padding: 12px 16px; margin: 1em 0; border-radius: 0 var(--cj-radius) var(--cj-radius) 0; }
.cj-callout--orange { background: #fff4ec; border-color: var(--cj-orange); }
.cj-sources { font-size: 12.5px; background: var(--cj-lighter); padding: 10px 16px; border-radius: var(--cj-radius); margin-top: 1.5em; }
.cj-archive-note { font-size: 12px; background: #fffbe6; border: 1px solid #f0e2a0; padding: 8px 12px; border-radius: var(--cj-radius); margin: 0 0 14px; }

.cj-vote { display: inline-flex; align-items: center; gap: 0; border: 1px solid #ddd; border-radius: 20px; overflow: hidden; background: #fff; }
.cj-vote button { background: none; border: 0; padding: 6px 12px; cursor: pointer; color: var(--cj-blue); font-size: 15px; transition: background .2s, color .2s; }
.cj-vote button:hover { background: var(--cj-orange); color: #fff; }
.cj-vote button.is-voted { background: var(--cj-blue); color: #fff; }
.cj-vote .points { padding: 0 10px; font: bold 13px var(--cj-head); color: var(--cj-darker); min-width: 74px; text-align: center; }
.cj-vote .points.bump { animation: cj-bump .45s; }
@keyframes cj-bump { 40% { transform: scale(1.35); color: var(--cj-orange); } }

.cj-share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; }
#content .cj-share li { margin: 0; padding: 0; }
.cj-share a, .cj-share button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; border-radius: 3px; background: var(--cj-light); color: var(--cj-darker) !important; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.cj-share a:hover, .cj-share button:hover { background: var(--cj-blue); color: #fff !important; }
.cj-share svg { width: 13px; height: 13px; fill: currentColor; }
.cj-post-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px dashed var(--cj-darker); border-bottom: 1px dashed var(--cj-darker); padding: 10px 0; margin: 24px 0; }
.cj-author-box { display: flex; gap: 14px; background: var(--cj-lighter); padding: 14px; border-radius: var(--cj-radius); margin: 18px 0; }
.cj-author-box img { border-radius: 50%; }
.cj-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.cj-postnav a { display: block; padding: 12px; border: 1px solid #e3e3e3; border-radius: var(--cj-radius); transition: all .2s; }
.cj-postnav a:hover { border-color: var(--cj-orange); box-shadow: var(--cj-shadow); }
.cj-postnav small { display: block; text-transform: uppercase; color: #999; font-size: 10.5px; }
.cj-postnav .next { text-align: right; }
.tags-links a { display: inline-block; margin: 0 4px 4px 0; }

/* list layout for blog archive (original "node" teasers) */
.cj-teaser { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px dashed var(--cj-darker); }
.cj-teaser__media { border-radius: var(--cj-radius); overflow: hidden; aspect-ratio: 4/3; display: block; background: #ddd; }
.cj-teaser__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cj-teaser:hover .cj-teaser__media img { transform: scale(1.06); }
#content .cj-teaser h2 { font-size: 1.25rem; margin: 0 0 4px; border-bottom: 0; }
.cj-teaser .points { font: bold 11px var(--cj-head); color: var(--cj-orange); text-transform: uppercase; }

.navigation.pagination, .pager { margin: 18px 0; }
.page-numbers { display: inline-block; margin: 0 .15em; padding: 3px 9px; border: 1px solid var(--cj-pager-b); background: var(--cj-pager); }
.page-numbers:hover { background: #eef7fc; }
.page-numbers.current { background: var(--cj-pager-on); color: #fff; border-color: var(--cj-pager-on); }
.page-numbers.dots { border: 0; background: none; }

/* breadcrumbs */
.cj-breadcrumbs { font-size: 11.5px; color: #888; margin-bottom: 10px; text-transform: lowercase; }
.cj-breadcrumbs a { color: #888; }
.cj-breadcrumbs a:hover { color: var(--cj-orange); }
.cj-breadcrumbs .sep { margin: 0 6px; color: #bbb; }

/* comments (original .comment / .commentfooter) */
.comment-list { list-style: none; }
#content .comment-list li { padding: 0; margin: 0; }
#content .comment-list li::before { display: none; }
.comment-body { background: #ececec; padding: 10px 12px; margin-bottom: 14px; border-radius: var(--cj-radius); }
.comment-meta { font-size: 12px; color: #4a4a4a; margin-bottom: 6px; }
.comment-list .children { margin-left: 26px; list-style: none; }
.comment-respond { margin-top: 18px; }
.comment-form p { margin-bottom: 10px; }

/* ---------- dollar-o-meter ---------- */
.cj-meter { background: var(--cj-dark); color: #fff; border-radius: var(--cj-radius); padding: 18px; margin: 0 0 18px; }
#content .cj-meter h3 { color: #fff; border-color: #777; margin-top: 0; }
.cj-meter__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.cj-meter__row > div { flex: 1 1 140px; }
.cj-meter label { color: #ddd; font-size: 12px; }
.cj-meter__out { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.cj-meter__out div { background: #333; border-radius: var(--cj-radius); padding: 10px; text-align: center; }
.cj-meter__out strong { display: block; color: var(--cj-orange); font: bold 1.35rem var(--cj-head); }
.cj-meter__out span { font-size: 11px; color: #bbb; text-transform: uppercase; }
.cj-bar { height: 14px; background: #2a2a2a; border-radius: 7px; overflow: hidden; margin-top: 12px; }
.cj-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cj-orange), #ffb27a); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.cj-meter__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cj-meter__presets button { background: #555; color: #fff; border: 0; padding: 4px 9px; border-radius: 12px; cursor: pointer; font-size: 11.5px; }
.cj-meter__presets button:hover { background: var(--cj-orange); }

/* ---------- quiz & poll ---------- */
.cj-quiz { border: 1px solid #e0e0e0; border-radius: var(--cj-radius); padding: 16px; background: #fff; }
.cj-quiz__progress { height: 6px; background: var(--cj-light); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.cj-quiz__progress i { display: block; height: 100%; background: var(--cj-blue); width: 0; transition: width .4s; }
.cj-quiz__q { font: bold 1.05rem var(--cj-head); color: var(--cj-darker); margin-bottom: 10px; }
.cj-quiz__opts { display: grid; gap: 8px; }
.cj-quiz__opts button { text-align: left; background: var(--cj-lighter); border: 1px solid #ddd; border-radius: var(--cj-radius); padding: 10px 12px; cursor: pointer; font: 13.5px var(--cj-font); color: #444; transition: all .2s; }
.cj-quiz__opts button:hover { border-color: var(--cj-blue); background: #eef6f9; }
.cj-quiz__opts button.is-right { background: #e8f5e9; border-color: var(--cj-ok); color: #1b5e20; }
.cj-quiz__opts button.is-wrong { background: #fdecea; border-color: var(--cj-err); color: #7f1d1d; animation: cj-shake .35s; }
.cj-quiz__explain { margin-top: 10px; font-size: 13px; background: #eaf3f7; padding: 8px 12px; border-radius: var(--cj-radius); display: none; }
.cj-quiz__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; color: #888; }
.cj-quiz__result { text-align: center; padding: 10px; }
.cj-quiz__score { font: bold 2.6rem var(--cj-head); color: var(--cj-orange); }
@keyframes cj-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.cj-poll label { font-weight: normal; display: flex; gap: 6px; align-items: center; margin: 4px 0; cursor: pointer; }
.cj-poll .cj-poll__res div { margin: 6px 0; font-size: 11.5px; }
.cj-poll .cj-poll__bar { height: 8px; background: #ddd; border-radius: 4px; overflow: hidden; margin-top: 2px; }
.cj-poll .cj-poll__bar i { display: block; height: 100%; background: var(--cj-orange); width: 0; transition: width .8s; }

/* ---------- groups table / events ---------- */
.cj-table-wrap { overflow-x: auto; }
.cj-event { display: grid; grid-template-columns: 90px 1fr; gap: 14px; border: 1px solid #e3e3e3; border-radius: var(--cj-radius); padding: 12px; margin-bottom: 12px; background: #fff; }
.cj-event__date { background: var(--cj-blue); color: #fff; border-radius: var(--cj-radius); text-align: center; padding: 8px 4px; font-family: var(--cj-head); }
.cj-event__date strong { display: block; font-size: 1.7rem; line-height: 1; }
.cj-event__date span { font-size: 11px; text-transform: uppercase; }
.cj-badge { display: inline-block; font-size: 10.5px; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; background: #888; color: #fff; }
.cj-badge--orange { background: var(--cj-orange); }
.cj-badge--blue { background: var(--cj-blue); }

/* ---------- thank you ---------- */
.cj-thanks { text-align: center; padding: 30px 10px; }
.cj-thanks__icon { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; background: var(--cj-ok); display: flex; align-items: center; justify-content: center; animation: cj-pop .6s cubic-bezier(.2,1.6,.4,1); }
.cj-thanks__icon svg { width: 44px; height: 44px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: cj-draw .6s .35s forwards; }
@keyframes cj-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes cj-draw { to { stroke-dashoffset: 0; } }

/* ---------- back to top / toast ---------- */
.cj-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cj-orange); color: #fff; cursor: pointer; box-shadow: var(--cj-shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; z-index: 800; font-size: 18px; }
.cj-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.cj-top:hover { background: var(--cj-blue); }
.cj-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #333; color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 13px; opacity: 0; transition: all .3s; z-index: 1001; pointer-events: none; }
.cj-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- image credits / legal ---------- */
.cj-legal { counter-reset: legal; }
.cj-legal .updated { font-size: 12px; color: #888; text-transform: uppercase; }
.cj-credits td img { width: 90px; height: 60px; object-fit: cover; border-radius: 3px; }

/* ---------- WooCommerce touch-ups ---------- */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: #fff; border: 1px solid #e3e3e3; border-radius: var(--cj-radius); padding: 0 0 12px; text-align: center; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.woocommerce ul.products li.product a img { margin: 0 0 10px; aspect-ratio: 4/3; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--cj-blue); font-size: 1rem; padding: 0 10px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--cj-orange); font-weight: bold; }
.woocommerce span.onsale { background: var(--cj-orange); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--cj-blue); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--cj-blue); }

/* ---------- AOS fallbacks: content visible without JS ---------- */
.no-js [data-aos] { opacity: 1 !important; transform: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  #container { box-shadow: none; }
  #header, #nav { margin: 0; }
  #main { flex-direction: column; align-items: stretch; padding: 16px; }
  #content { width: 100%; }
  #sidebar { flex: 1 1 auto; width: 100%; }
  .cj-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cj-nav-toggle { display: inline-block; }
  .cj-nav-inner { flex-wrap: wrap; padding: 6px 10px; }
  #nav .menu-wrap { display: none; width: 100%; order: 3; }
  #nav.is-open .menu-wrap { display: block; animation: cj-slide .25s; }
  #nav .menu { flex-direction: column; }
  #nav .menu > li > a::after { display: none; }
  #nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding-left: 12px; background: #262626; }
  #nav li.is-open > .sub-menu { display: block; }
  .cj-nav-search input, .cj-nav-search input:focus { width: 150px; }
  .cj-issues { grid-template-columns: 1fr 1fr; }
  .cj-stats { grid-template-columns: 1fr 1fr; }
  @keyframes cj-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .cj-header-inner { flex-direction: column; align-items: flex-start; }
  .cj-brand .site-title { font-size: 1.7rem; }
  #sidebar { flex-direction: column; }
  #rightcol { border-left: 0; padding-left: 0; }
  .panel-2col-stacked, .cj-joetalks, .cj-issues, .cj-postnav, .cj-form .row-2, .cj-meter__out { grid-template-columns: 1fr; }
  .cj-teaser { grid-template-columns: 1fr; }
  .cj-footer-cols { grid-template-columns: 1fr; }
  #content .cj-hero h1, #content .cj-hero h2 { font-size: 1.55rem; }
  .cj-event { grid-template-columns: 70px 1fr; }
}
@media print {
  #nav, #sidebar, #footer, .cj-top, .cj-share, .cj-vote, .cj-progress, .comment-respond { display: none !important; }
  body { background: #fff; }
  #container { box-shadow: none; }
}
