/* BaoStyle front-end maintenance CSS
 * Global tokens live here. Module CSS files should use these variables instead of redefining them.
 */

:root {
  --baostyle-color-bg: #f8f9fa;
  --baostyle-color-surface: #ffffff;
  --baostyle-color-surface-soft: #f8f9fa;
  --baostyle-color-border: rgba(0, 0, 0, 0.08);
  --baostyle-color-border-strong: rgba(0, 0, 0, 0.14);
  --baostyle-color-text: #212529;
  --baostyle-color-text-muted: #6c757d;
  --baostyle-color-heading: #111827;
  --baostyle-color-link: inherit;
  --baostyle-color-link-hover: #0d6efd;
  --baostyle-shadow-sm: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  --baostyle-shadow-md: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
  --baostyle-radius-sm: .1rem;
  --baostyle-radius-md: .75rem;
  --baostyle-radius-lg: 1rem;
  --baostyle-control-height: 2.75rem;
  --baostyle-content-line-height: 1.7;
  --baostyle-card-radius: .2rem;
  --baostyle-card-padding: 1rem;
  --baostyle-field-radius: .2rem;
  --baostyle-button-radius: .2rem;
  --baostyle-grid-gap-desktop: 20px;
  --baostyle-grid-gap-tablet: 16px;
  --baostyle-grid-gap-mobile: 12px;
  --baostyle-slider-btn-size-desktop: 42px;
  --baostyle-slider-btn-size-tablet: 38px;
  --baostyle-slider-btn-size-mobile: 34px;
  --baostyle-unified-card-radius: .2rem;
  --baostyle-unified-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --baostyle-unified-card-media-radius: .2rem;
  --baostyle-header-overlay-top: 88px;
  --baostyle-border-color-soft: var(--bs-border-color, #dee2e6);
  --baostyle-surface: var(--bs-body-bg, #fff);
  --baostyle-surface-muted: var(--bs-secondary-bg, #f8f9fa);
  --baostyle-shadow-soft: 0 .5rem 1.25rem rgba(0, 0, 0, .08);
  --baostyle-shadow-dropdown: 0 .75rem 1.75rem rgba(0, 0, 0, .12);
  --baostyle-header-action-size: 2.625rem;
}

:root {
  --bs-border-radius: .2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--baostyle-color-bg);
  color: var(--baostyle-color-text);
  line-height: var(--baostyle-content-line-height);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-title a {
  color: inherit;
}

.baostyle-site-main {
  min-height: 60vh;
}

.baostyle-container-custom {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--baostyle-color-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus {
  color: var(--baostyle-color-link-hover);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--baostyle-color-heading);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

p, ul, ol, dl, blockquote, pre, table, figure {
  margin-bottom: 1rem;
}

small, .small, .text-muted {
  color: var(--baostyle-color-text-muted);
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
}

caption {
  caption-side: bottom;
  padding-top: 0.5rem;
  color: var(--baostyle-color-text-muted);
}

hr {
  border-color: var(--baostyle-color-border);
  opacity: 1;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.baostyle-entry-content > *:last-child {
  margin-bottom: 0;
}

.baostyle-entry-content img {
  border-radius: var(--baostyle-radius-sm);
}

.baostyle-entry-content blockquote {
  padding: 1rem 1.25rem;
  background: var(--baostyle-color-surface);
  border-left: 4px solid rgba(13, 110, 253, 0.35);
  border-radius: 0 var(--baostyle-radius-sm) var(--baostyle-radius-sm) 0;
  box-shadow: var(--baostyle-shadow-sm);
}

.baostyle-entry-content :where(ul, ol) {
  padding-left: 1.25rem;
}

input, select, textarea, button {
  font: inherit;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], input[type="time"], input[type="month"], input[type="week"], textarea, select, .form-control, .form-select {
  border-radius: var(--baostyle-radius-sm);
}

button, input[type="submit"], input[type="button"], input[type="reset"], .btn {
  border-radius: var(--baostyle-radius-sm);
}

.widget:last-child {
  margin-bottom: 0;
}

.card, .baostyle-panel, .baostyle-box {
  border-radius: var(--baostyle-radius-md);
}

.card img, .baostyle-panel img, .baostyle-box img {
  border-radius: inherit;
}

@media (max-width: 991.98px) {
  .baostyle-container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Unified front-end visual language */
body {
  font-family: var(--bs-body-font-family);
}

.baostyle-entry-content,
.baostyle-page-content,
.baostyle-single-content,
.woocommerce div.product .woocommerce-tabs,
.woocommerce-Tabs-panel {
  color: var(--baostyle-color-text);
}

.baostyle-entry-content a,
.baostyle-page-content a,
.baostyle-single-content a,
.woocommerce-Tabs-panel a {
  text-underline-offset: 0.18em;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  min-height: var(--baostyle-control-height);
  border-radius: var(--baostyle-button-radius);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  transform: translateY(-1px);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.form-control,
.form-select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--baostyle-color-border);
  border-radius: var(--baostyle-field-radius);
  background-color: var(--baostyle-color-surface);
  color: var(--baostyle-color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: rgba(13, 110, 253, .45);
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}
