/*
 * Generic pages: layout and readable content in the ODO 2026 type system.
 * Designed pages never load this file. Selectors stay inside .odo-container so plugin markup
 * elsewhere (Elementor sections, WooCommerce blocks, Sensei) is left to its own styles.
 * Prose rules are written as body .odo-prose > x (0,1,2) so they beat the Elementor kit (0,1,1).
 */

.odo-container {
  --black: #0C0C0C;
  --ink: #1A1A1A;
  --paper: #FAF9F6;
  --gold: #FECA42;
  --gold-deep: #E0A800;
  --gold-text: #9A7300;
  --gray: #A4A3A4;
  --gray-dark: #5F5F5F;
  --line: rgba(12,12,12,0.1);
}

/* Same as the designed inner pages (site.css), so nav and footer never shift width between them.
   scroll-padding keeps #anchors (comments, reviews, legal TOCs) from landing under the fixed nav. */
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--odo-nav-h, 79px) + 16px); }
@media (max-width: 860px) { html { scroll-padding-top: calc(var(--odo-nav-h, 71px) + 16px); } }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--odo-nav-h, 79px) + 48px); }

.odo-main { display: block; }

/* Space under the fixed nav on pages without a black hero. site.js sets --odo-nav-h. */
.odo-nav-spacer { height: var(--odo-nav-h, 79px); }
@media (max-width: 860px) { .odo-nav-spacer { height: var(--odo-nav-h, 71px); } }

.odo-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 48px 110px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}

@media (max-width: 860px) { .odo-container { padding: 48px 22px 76px; } }

/* Hero actions (404). */
#odo-hero .odo-hero-actions { margin-top: 36px; }

/* ── Prose ── */
body .odo-prose {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-dark);
  max-width: 760px;
}

body .odo-prose > :first-child { margin-top: 0; }

body .odo-prose > p,
body .odo-prose > ul,
body .odo-prose > ol,
body .odo-prose > dl,
body .odo-prose > figure,
body .odo-prose > blockquote,
body .odo-prose > pre,
body .odo-prose > table,
body .odo-prose > .wp-block-table,
body .odo-prose > .wp-block-image,
body .odo-prose > .wp-block-embed { margin: 0 0 1.2em; }

body .odo-prose > h1,
body .odo-prose > h2,
body .odo-prose > h3,
body .odo-prose > h4,
body .odo-prose > h5,
body .odo-prose > h6 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 1.8em 0 0.6em;
}

body .odo-prose > h1 { font-size: 36px; }
body .odo-prose > h2 { font-size: 30px; }
body .odo-prose > h3 { font-size: 22px; }
body .odo-prose > h4 { font-size: 18px; }
body .odo-prose > h5,
body .odo-prose > h6 { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }

body .odo-prose > ul,
body .odo-prose > ol { padding-left: 1.3em; }
body .odo-prose li { margin: 0.35em 0; }
body .odo-prose li::marker { color: var(--gold-deep); }

body .odo-prose a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; }
body .odo-prose a:hover { color: var(--black); }

body .odo-prose strong { color: var(--ink); }

body .odo-prose > blockquote,
body .odo-prose > .wp-block-quote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 26px;
  font-family: 'Archivo', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

body .odo-prose img { max-width: 100%; height: auto; border-radius: 6px; }
body .odo-prose figcaption,
body .odo-prose .wp-caption-text { font-size: 13px; color: var(--gray-dark); margin-top: 8px; }

body .odo-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
body .odo-prose th,
body .odo-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
body .odo-prose th { background: var(--paper); color: var(--ink); }

body .odo-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
body .odo-prose code,
body .odo-prose pre { font-size: 14px; background: var(--paper); border-radius: 3px; }
body .odo-prose code { padding: 2px 5px; }
body .odo-prose pre { padding: 16px 18px; overflow-x: auto; }

.odo-featured { margin: 0 0 1.6em; }
.odo-container.odo-before-builder { padding-bottom: 8px; }
.odo-container.odo-after-builder { padding-top: 24px; }
.odo-container.odo-after-builder:empty { display: none; }
.odo-featured img { width: 100%; }

/* WordPress core alignment classes */
.odo-prose .alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
.odo-prose .alignright { float: right; margin: 0.3em 0 1em 1.6em; }
.odo-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.odo-prose .alignwide,
.odo-prose .alignfull { max-width: none; }
.odo-prose::after { content: ''; display: table; clear: both; }

/* ── Post lists (archives, search, posts page) ── */
.odo-post-list { display: grid; gap: 20px; }

.odo-post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}

.odo-post-card:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
.odo-post-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }

.odo-post-meta {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

body .odo-post-title { font-family: 'Archivo', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 10px; }
body .odo-post-title a { color: var(--black); text-decoration: none; }
body .odo-post-title a:hover { color: var(--gold-text); }
.odo-post-excerpt { font-size: 15px; line-height: 1.7; color: var(--gray-dark); }
.odo-post-excerpt p { margin: 0 0 12px; }

body .odo-post-more {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

@media (max-width: 860px) {
  .odo-post-card { grid-template-columns: 1fr; padding: 20px; }
}

/* Pagination and post navigation */
.odo-container .navigation { margin-top: 40px; font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.odo-container .nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.odo-container .navigation .page-numbers { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); text-decoration: none; }
.odo-container .navigation .page-numbers.current { background: var(--black); color: #fff; border-color: var(--black); }
.odo-container .post-navigation a { color: var(--ink); text-decoration: none; }
.odo-nav-label { display: block; font-size: 10px; letter-spacing: 0.18em; color: var(--gold-deep); }

/* Comments */
.odo-comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.odo-comment-list { list-style: none; padding: 0; }

/* Forms inside generic content (search, comments, Sensei, legacy) */
.odo-container input[type="text"],
.odo-container input[type="email"],
.odo-container input[type="search"],
.odo-container input[type="tel"],
.odo-container input[type="url"],
.odo-container input[type="password"],
.odo-container input[type="number"],
.odo-container textarea,
.odo-container select {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}

.odo-container input:focus,
.odo-container textarea:focus,
.odo-container select:focus { outline: 2px solid var(--gold); border-color: transparent; }

/* ── WooCommerce (classic templates and blocks) ── */
.odo-woo .woocommerce-breadcrumb { font-size: 12px; letter-spacing: 0.04em; color: var(--gray-dark); margin-bottom: 28px; }
.odo-woo .woocommerce-breadcrumb a { color: var(--gray-dark); }
.odo-woo .woocommerce-products-header__title,
.odo-woo .product_title { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.02em; color: var(--black); }
.odo-woo ul.products li.product .woocommerce-loop-product__title { font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--ink); }
.odo-woo .price { color: var(--ink) !important; font-weight: 600; }

.odo-container .woocommerce a.button,
.odo-container .woocommerce button.button,
.odo-container .woocommerce input.button,
.odo-container .woocommerce #respond input#submit,
.odo-container a.button,
.odo-container button.button,
.odo-container .wp-block-button__link,
.odo-container .wc-block-components-button:not(.is-link) {
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  border-radius: 3px;
  font-family: 'Archivo', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
}

.odo-container .woocommerce a.button:hover,
.odo-container .woocommerce button.button:hover,
.odo-container a.button:hover,
.odo-container button.button:hover,
.odo-container .wp-block-button__link:hover,
.odo-container .wc-block-components-button:not(.is-link):hover { background: #2A2A2A; color: #fff; }

/* Primary shop actions in gold. Selectors carry body + extra classes to outrank WooCommerce's own
   (.woocommerce button.button.alt is 0,3,1) and the black button rules above. */
body .odo-container .woocommerce a.button.alt,
body .odo-container .woocommerce button.button.alt,
body .odo-container .woocommerce input.button.alt,
body .odo-container .woocommerce button.single_add_to_cart_button.button,
body .odo-container .woocommerce a.checkout-button.button,
body.woocommerce .odo-woo a.button.alt,
body.woocommerce .odo-woo button.button.alt,
body.woocommerce .odo-woo input.button.alt,
body.woocommerce .odo-woo button.single_add_to_cart_button.button,
body .odo-container .wc-block-components-button.wc-block-components-checkout-place-order-button,
body .odo-container .wc-block-components-button.wc-block-cart__submit-button {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

body .odo-container .woocommerce a.button.alt:hover,
body .odo-container .woocommerce button.button.alt:hover,
body .odo-container .woocommerce input.button.alt:hover,
body.woocommerce .odo-woo a.button.alt:hover,
body.woocommerce .odo-woo button.button.alt:hover,
body.woocommerce .odo-woo input.button.alt:hover,
body.woocommerce .odo-woo button.single_add_to_cart_button.button:hover,
body .odo-container .woocommerce button.single_add_to_cart_button.button:hover,
body .odo-container .woocommerce a.checkout-button.button:hover,
body .odo-container .wc-block-components-button.wc-block-components-checkout-place-order-button:hover,
body .odo-container .wc-block-components-button.wc-block-cart__submit-button:hover { background: #EDB92F; border-color: #EDB92F; color: var(--black); }

/* Quiet product meta and breadcrumb links (Hello's reset would make them pink). */
body .odo-container .product_meta a,
body .odo-container .woocommerce-breadcrumb a,
body .odo-container .woocommerce-review-link,
body .odo-container .woocommerce-loop-product__link { color: var(--gray-dark); }
body .odo-container .product_meta a:hover,
body .odo-container .woocommerce-breadcrumb a:hover { color: var(--black); }

.odo-container .woocommerce-message,
.odo-container .woocommerce-info { border-top-color: var(--gold-deep); }
.odo-container .woocommerce-message::before,
.odo-container .woocommerce-info::before { color: var(--gold-deep); }

/* WooCommerce and Sensei pages rendered through page.php get room to breathe. */
.odo-container .woocommerce,
.odo-container .wp-block-woocommerce-cart,
.odo-container .wp-block-woocommerce-checkout { max-width: none; }
body .odo-prose:has(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .sensei, .wp-block-sensei-lms-learner-courses) { max-width: none; }

/* Screen-reader helper also on pages that load Hello's reset late */
.odo-main .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); word-wrap: normal !important; }

/* ── Store bar (WooCommerce pages; replaces the old store header's menu and mini-cart) ── */
.odo-store-bar {
  background: #FAF9F6;
  border-bottom: 1px solid rgba(12,12,12,0.1);
  font-family: 'Inter', sans-serif;
}

.odo-store-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.odo-store-label {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E0A800;
}

body .odo-store-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
body .odo-store-bar li { margin: 0; }
body .odo-store-bar a { color: #5F5F5F; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.03em; }
body .odo-store-bar a:hover { color: #1A1A1A; }
body .odo-store-bar .odo-store-cart { color: #1A1A1A; font-weight: 600; }

.odo-cart-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #FECA42;
  color: #0C0C0C;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

/* Phones: one scrollable row, Cart first, so the bar never pushes the page down. */
@media (max-width: 860px) {
  .odo-store-inner { padding: 10px 22px; }
  .odo-store-label { display: none; }
  body .odo-store-bar ul { flex-wrap: nowrap; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body .odo-store-bar ul::-webkit-scrollbar { display: none; }
  body .odo-store-bar li:last-child { order: -1; }
}
