/* Curizora Appearance 1.1.0
   1. Wide single-post layout
   2. Theme toggle button
   3. Light theme (html[data-theme="light"]) — dark stays the theme default */

/* ---------- 1. Wide single-post layout ---------- */
.single-post .lw-entry { max-width: none; }
.single-post .lw-entry > p,
.single-post .lw-entry > ul,
.single-post .lw-entry > ol,
.single-post .lw-entry > blockquote { font-size: 18px; line-height: 1.75; }
.single-post .lw-entry > .lw-meta { font-size: 14px; line-height: 1.6; }
.single-post .lw-entry > .lw-notice { font-size: 15px; line-height: 1.6; margin-top: 32px; padding: 14px 18px; border-left: 3px solid #e7bd70; border-radius: 0 8px 8px 0; }
.single-post .lw-entry h2 { font-size: 28px; margin-top: 40px; }
.single-post .lw-entry li { margin: 6px 0; }
.single-post .lw-entry img.wp-post-image,
.single-post .lw-entry > img { display: block; margin: 12px 0 28px; border-radius: 14px; border: 1px solid var(--line); }
.single-post .lw-entry .wp-block-table { margin: 20px 0; overflow-x: auto; }
.single-post .lw-entry .wp-block-table table { font-size: 16px; min-width: 480px; }
@media (max-width: 760px) {
  .single-post .lw-entry > p,
  .single-post .lw-entry > ul,
  .single-post .lw-entry > ol,
  .single-post .lw-entry > blockquote { font-size: 17px; line-height: 1.7; }
  .single-post .lw-entry h2 { font-size: 24px; margin-top: 32px; }
}

/* ---------- 2. Theme toggle button ---------- */
.cz-theme-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid #385448; border-radius: 10px;
  background: #14221d; color: #75edc4; cursor: pointer;
  order: 3;
}
.cz-theme-toggle:hover { background: #223e31; }
.cz-theme-toggle svg { display: block; }
.cz-has-theme-toggle .lw-header .lw-nav { margin-left: auto; }
@media (max-width: 1000px) {
  .cz-theme-toggle { order: 0; margin-left: auto; }
  .cz-has-theme-toggle .lw-header .lw-nav { margin-left: 0; order: 4; }
}
@media (prefers-reduced-motion: no-preference) {
  .cz-theme-toggle { transition: background-color .15s, border-color .15s; }
}

/* ---------- 3. Light theme ---------- */
html[data-theme="light"] {
  color-scheme: light;
  --navy: #0f1f1b;
  --teal: #0a7a60;
  --gold: #8a5a00;
  --muted: #55655f;
  --line: #d9e3df;
  --bg: #f5f8f7;
  --cz-surface: #ffffff;
  --cz-tint: #e8f4f0;
  --cz-tint-line: #c5ddd4;
}
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="light"] body { color: #26332f; background: var(--bg); }
html[data-theme="light"] ::selection { color: #ffffff; background: #0a7a60; }

/* Header, footer, navigation */
html[data-theme="light"] body .lw-header,
html[data-theme="light"] body .lw-footer { background: var(--cz-surface); }
html[data-theme="light"] body .lw-header { border-bottom-color: var(--line); }
html[data-theme="light"] body .lw-logo-mark { background: #0a7a60; color: #ffffff; }
html[data-theme="light"] body .lw-menu-toggle,
html[data-theme="light"] body .lw-skip { background: var(--cz-surface); color: var(--navy); border-color: #b9c7c1; }
html[data-theme="light"] .lw-menu-list .sub-menu { background: var(--cz-surface); border-color: var(--line); box-shadow: 0 16px 36px #0f1f1b24; }
html[data-theme="light"] .lw-nav .sub-menu a:hover,
html[data-theme="light"] .lw-nav .sub-menu a:focus-visible { background: var(--cz-tint); color: #075c48; }
html[data-theme="light"] .cz-submenu-toggle { color: #0a7a60; }
html[data-theme="light"] .cz-submenu-toggle[aria-expanded=true] { background: var(--cz-tint); }
html[data-theme="light"] .cz-theme-toggle { background: var(--cz-surface); border-color: #b9c7c1; color: #0f1f1b; }
html[data-theme="light"] .cz-theme-toggle:hover { background: var(--cz-tint); }
html[data-theme="light"] .lw-footer .cz-social a { color: #0a7a60; }
@media (max-width: 760px) {
  html[data-theme="light"] body .lw-nav.is-open { border-top-color: var(--line); }
}

/* Buttons */
html[data-theme="light"] body .lw-button { background: #0a7a60; border-color: #0a7a60; color: #ffffff !important; }
html[data-theme="light"] body .lw-button:hover { background: #075c48; border-color: #075c48; }
html[data-theme="light"] body .lw-button.secondary { background: var(--cz-surface); color: #0f1f1b !important; border-color: #b9c7c1; }
html[data-theme="light"] body .lw-button.secondary:hover { background: var(--cz-tint); border-color: #8fb3a6; }

/* Cards and homepage blocks */
html[data-theme="light"] body .lw-example,
html[data-theme="light"] body .lw-card,
html[data-theme="light"] body .lw-empty { background: var(--cz-surface); border-color: var(--line); box-shadow: 0 10px 28px #0f1f1b0d; }
html[data-theme="light"] body .lw-card:hover { border-color: #6fb5a1; background: #f8fcfb; }
html[data-theme="light"] body .lw-example-head span:last-child { color: #8a5a00; }
html[data-theme="light"] body .lw-example-result { background: var(--cz-tint); border-color: var(--cz-tint-line); color: #26332f; }
html[data-theme="light"] body .lw-example-result strong { color: #075c48; }
html[data-theme="light"] body .lw-example-result small { color: #3d5a50; }
html[data-theme="light"] body .lw-tool-icon { background: var(--cz-tint); color: #0a7a60; }
html[data-theme="light"] body .lw-gold { background: #fdf8ec; border-color: #eadcbd; }
html[data-theme="light"] body .lw-gold .lw-tool-icon { background: #f5e8c9; color: #775418; }

/* Notices and focus */
html[data-theme="light"] body .lw-notice,
html[data-theme="light"] body .lw-warning { background: #fff6df; color: #5a4100; border-color: #d6a84f; }
html[data-theme="light"] body .lw-error { color: #b3261e; }
html[data-theme="light"] body a:focus-visible,
html[data-theme="light"] body button:focus-visible,
html[data-theme="light"] body .lw-calculator :focus-visible { outline-color: #a66a00; }

/* Article content */
html[data-theme="light"] body .lw-entry blockquote { border-left-color: #0a7a60; }
html[data-theme="light"] body .lw-entry th,
html[data-theme="light"] body .lw-entry td { border-color: #cfdad5; }
html[data-theme="light"] body .lw-entry th { background: #eef4f2; }
html[data-theme="light"] body .lw-entry code { color: #075c48; }

/* Calculators (Curizora Tools). The results panel stays dark on purpose: it is the focal point. */
html[data-theme="light"] body .lw-calculator { --lw-navy: #0f1f1b; --lw-teal: #0a7a60; color: #26332f; }
html[data-theme="light"] body .lw-form { background: var(--cz-surface); border-color: var(--line); }
html[data-theme="light"] body .lw-fields label { color: #0f1f1b; }
html[data-theme="light"] body .lw-fields input,
html[data-theme="light"] body .lw-fields select { color: #0f1f1b; background: #ffffff; border-color: #8a9a94; }
html[data-theme="light"] body .lw-fields input::placeholder { color: #6b7b75; }
html[data-theme="light"] body .lw-fields input:focus,
html[data-theme="light"] body .lw-fields select:focus { border-color: #0a7a60; }
html[data-theme="light"] body .lw-calculator button { background: #0a7a60; color: #ffffff; border-color: #0a7a60; }
html[data-theme="light"] body .lw-calculator button:hover { background: #075c48; }
html[data-theme="light"] body .lw-calculator button[type=reset] { background: #ffffff; color: #0f1f1b; border-color: #8a9a94; }
html[data-theme="light"] body .lw-calculator button[type=reset]:hover { background: var(--cz-tint); }
html[data-theme="light"] body .lw-results .lw-error { color: #ffadb7; }
html[data-theme="light"] body .lw-results .lw-eyebrow,
html[data-theme="light"] body .lw-results a { color: #6df0c4; }
html[data-theme="light"] body .lw-results :focus-visible { outline-color: #e7bd70; }

/* Worked examples and FAQ */
html[data-theme="light"] .cz-demo { background: #f0f8f5; border-color: var(--cz-tint-line); }
html[data-theme="light"] .cz-demo-heading span,
html[data-theme="light"] .cz-demo-note { color: var(--muted); }
html[data-theme="light"] .cz-demo-steps li { background: var(--cz-surface); border-color: var(--cz-tint-line); }
html[data-theme="light"] .cz-demo-steps li:before { color: #0a7a60; }
html[data-theme="light"] .cz-demo-steps span { color: var(--muted); }

/* Market overview widget */
html[data-theme="light"] .cz-market { background: var(--cz-surface); border-color: var(--line); color: #26332f; }
html[data-theme="light"] .cz-market h2,
html[data-theme="light"] .cz-market h3 { color: #0f1f1b; }
html[data-theme="light"] .cz-market a,
html[data-theme="light"] .cz-eyebrow { color: #0a7a60; }
html[data-theme="light"] .cz-badge { background: var(--cz-tint); border-color: var(--cz-tint-line); color: #0f1f1b; }
html[data-theme="light"] .cz-quote { background: #f5f9f8; border-color: var(--line); }
html[data-theme="light"] .cz-quote strong { color: #075c48; }
html[data-theme="light"] .cz-quote small { color: var(--muted); }
html[data-theme="light"] .cz-chart { border-top-color: var(--line); }
html[data-theme="light"] .cz-chart button,
html[data-theme="light"] .cz-price-action button { background: #0a7a60; border-color: #0a7a60; color: #ffffff; }
html[data-theme="light"] .cz-chart button:focus-visible { outline-color: #a66a00; }

/* Trading tools suite (journal, clock, planner, simulators) */
html[data-theme="light"] .czsuite { --cz-bg: #ffffff; --cz-line: #c9d8d2; --cz-ink: #14211d; --cz-accent: #0a7a60; }
html[data-theme="light"] .czsuite input,
html[data-theme="light"] .czsuite select,
html[data-theme="light"] .czsuite textarea,
html[data-theme="light"] .czsuite button { background: #ffffff; border-color: #8a9a94; }
html[data-theme="light"] .czsuite button:hover { background: var(--cz-tint); }
html[data-theme="light"] .czsuite button[type=submit] { background: #0a7a60; border-color: #0a7a60; color: #ffffff; }
html[data-theme="light"] .czsuite button[type=submit]:hover { background: #075c48; }
html[data-theme="light"] .czsuite .czs-timeline { background: #eef4f2; }
html[data-theme="light"] .czsuite svg [stroke="#70edc9"] { stroke: #0a7a60; }
html[data-theme="light"] .czsuite svg [fill="#70edc9"] { fill: #0a7a60; }
