/* WordPress-only surfaces. Source storefront pages keep their original styling. */
body.yb-game-theme:has(.yb-page) { background: #141923; }
.yb-shell {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.yb-page {
  min-height: 65vh;
  padding-block: 48px 90px;
  color: #f6f9fc;
}
.yb-page .yb-section-kicker {
  color: #8ee8ff;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.yb-content-heading { margin-bottom: 26px; }
.yb-content-heading h1 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.3;
}
.yb-content-heading p { color: #c9deeb; }
.yb-content-panel {
  padding: clamp(22px, 3.5vw, 48px);
  background: #0e2942;
  border: 1px solid #457590;
  border-radius: 13px;
  box-shadow: 0 10px 30px #0004;
  overflow-wrap: anywhere;
}
.yb-content-panel::after { content: ""; display: block; clear: both; }
.yb-not-found > span {
  display: block;
  color: #e6b762;
  font-size: clamp(56px, 10vw, 104px);
  font-weight: 900;
  line-height: 1;
}

/* Imported WordPress page body. Retain source content and inline media. */
.yb-imported-page { max-width: 1050px; margin: auto; font-size: 16px; line-height: 1.8; }
.yb-imported-page :is(h1,h2,h3,h4) { line-height: 1.35; color: #fff; margin: 1.4em 0 .5em; }
.yb-imported-page h1 { font-size: clamp(25px,3vw,36px); }
.yb-imported-page h2 { font-size: clamp(21px,2.3vw,28px); }
.yb-imported-page p { margin: .8em 0; }
.yb-imported-page a { color: #8cddfc; text-decoration: underline; }
.yb-imported-page img { max-width: 100%; height: auto; object-fit: contain; }
.yb-imported-page figure { margin: 20px 0; }
.yb-imported-page :is(section,article,details) { margin-block: 16px; }
.yb-imported-page details { border: 1px solid #4c7895; border-radius: 7px; padding: 12px 16px; }
.yb-imported-page summary { cursor: pointer; font-weight: 800; }
.yb-imported-page table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.yb-imported-page :is(td,th) { border: 1px solid #4c7895; padding: 8px; }
.yb-imported-page blockquote { border-left: 4px solid #d6ae69; padding-left: 15px; margin-left: 0; }
.yb-imported-page hr { border: 0; border-top: 1px solid #4c7895; margin-block: 25px; }
.yb-imported-page :is(ul,ol) { padding-left: 1.5em; }
.yb-imported-page li { margin: .3em 0; }

/* WordPress fallback archive, when a source-designed blog template is not used. */
.yb-page .yb-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.yb-page .yb-post-card { background: linear-gradient(155deg,#163a57,#0c263e); border: 1px solid #467694; border-radius: 11px; overflow: hidden; }
.yb-page .yb-post-card-image { display: grid; place-items: center; aspect-ratio: 1.65; background: #133c5b; overflow: hidden; }
.yb-page .yb-post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.yb-page .yb-post-card:hover img { transform: scale(1.035); }
.yb-page .yb-post-card-placeholder { font-size: 70px; color: #d9ad61; }
.yb-page .yb-post-card-content { padding: 20px; }
.yb-page .yb-post-card-date { font-size: 13px; color: #9ac9e2; }
.yb-page .yb-post-card h3 { font-size: 20px; line-height: 1.4; margin: 8px 0 10px; }
.yb-page .yb-post-card p { color: #c8d9e6; font-size: 14px; }
.yb-page .yb-post-card-read { color: #88d9f4; font-weight: 800; }
.yb-page .yb-pagination { margin-top: 32px; }
.yb-page .yb-pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.yb-page .yb-pagination .page-numbers { padding: 8px 12px; background: #164362; border-radius: 5px; }
.yb-page .yb-pagination .current { background: #d9af61; color: #102b40; }

/* Checkout and shortcode controls live inside generic WordPress pages only. */
.yb-page :is(.yb-button,.wp-block-button__link,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button) {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid #8edcff;
  border-radius: 6px;
  background: linear-gradient(125deg,#168acb,#0c5caa);
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 0 #06345c;
}
.yb-page :is(.yb-button,.wp-block-button__link,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button):hover { background: #259fdb; color: #fff; }
.yb-page :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],input[type=number],select,textarea) {
  max-width: 100%; padding: 10px 12px; border: 1px solid #8caabe; border-radius: 5px; background: #fff; color: #122c40;
}
.yb-page .woocommerce :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) { background: #e9f5fb; color: #103650; border-top-color: #4fa9d0; }
.yb-page .woocommerce :is(.woocommerce-message,.woocommerce-info) a { color: #145e8d; }
.yb-page .woocommerce table.shop_table { border-color: #638ca5; background: #e8f1f6; color: #153247; }
.yb-page .woocommerce table.shop_table :is(th,td) { border-color: #b4cbd9; }
.yb-page .woocommerce table.shop_table a { color: #165981; }
.yb-page .woocommerce :is(form.checkout_coupon,form.login,form.register) { background: #eaf3f9; color: #14334c; border-color: #94b1c5; }
.yb-page .woocommerce form .form-row label { color: inherit; }
.yb-page .woocommerce-checkout #payment { background: #e8f2f7; color: #153247; }
.yb-page .woocommerce-checkout #payment div.payment_box { background: #d5e7f1; color: #153247; }
.yb-page .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #d5e7f1; }
.yb-page .wc-block-checkout, .yb-page .wc-block-cart { color: #17364b; background: #e9f2f7; border-radius: 9px; padding: 20px; }
.yb-page :is(.wc-block-checkout,.wc-block-cart) a { color: #166394; }
.yb-page .wc-block-components-button { box-shadow: none; }

/* Related Woo products appear inside the source-designed product page. */
.yb-native-related-section ul.products { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.yb-native-related-section ul.products::before, .yb-native-related-section ul.products::after { display: none; }
.yb-native-related-section ul.products li.product { width: auto; float: none; margin: 0; padding: 0 0 18px; background: linear-gradient(160deg,#123756,#0a2239); border: 1px solid #447a9d; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px #0005; }
.yb-native-related-section ul.products li.product:hover { transform: translateY(-3px); border-color: #8ad7f4; }
.yb-native-related-section ul.products li.product img { width: 100%; aspect-ratio: 1.2; object-fit: cover; margin: 0; background: #e8f0f6; }
.yb-native-related-section ul.products li.product h2 { margin: 14px 16px 8px; color: #fff; font-size: 16px; line-height: 1.5; font-weight: 800; }
.yb-native-related-section ul.products li.product .price { display: block; margin: 0 16px 12px; color: #ffe092; font-size: 17px; font-weight: 900; }
.yb-native-related-section ul.products li.product .button { margin: 0 16px; }

@media (max-width: 760px) {
  .yb-shell { width: min(100% - 28px,1280px); }
  .yb-page .yb-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .yb-page .yb-post-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .yb-page .yb-post-card-image img, .yb-native-related-section ul.products li.product { transition: none; }
}
