/* WP-specific glue only. Brand spacing/utility/CJK rules come from the approved build (reference.css). */
[hidden] { display: none !important; }
body { margin: 0; }
.admin-bar .grain > header { top: 32px; }
@media (max-width:782px) { .admin-bar .grain > header { top:46px; } }

/* Motion of the approved site: starting states, only when JavaScript runs (html.nw-js). */
@media (prefers-reduced-motion: no-preference) {
  html.nw-js [data-nw-reveal] { opacity: 0; transform: translateY(28px); }
  html.nw-js body.home main > section:first-child h1 > span { opacity: 0; transform: translateY(60px); }
  html.nw-js body.home main > section:first-child p.eyebrow { opacity: 0; }
}

/* WooCommerce's `.woocommerce-page img { height:auto }` outranks the logo's h-5 / md:h-6 utilities on Woo pages. */
.nw-theme [data-testid="link-logo"] img { height:1.25rem; }
@media (width >= 48rem) { .nw-theme [data-testid="link-logo"] img { height:1.5rem; } }

/* Native WordPress / WooCommerce pages that have no approved layout (cart, account, editor pages). */
.nw-button {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  border-radius:999px; background:#08103f; color:#f7f4ee; padding:1rem 1.75rem;
  font-size:.875rem; font-weight:700; text-decoration:none; cursor:pointer;
  transition:transform .2s;
}
.nw-button:hover { transform:translateY(-2px); }
.nw-empty-state { border:1px dashed rgb(8 16 63 / .2); border-radius:28px; padding:2rem; margin:2.5rem 0; text-align:center; }
.nw-editor-content { max-width:1440px; margin:auto; padding:10rem 2.5rem 7rem; min-height:70dvh; }
.nw-editor-content h1 { font-size:clamp(3.3rem, 8vw, 8rem); margin-bottom:2.5rem; }
.nw-editor-content h2 { font-size:clamp(2rem, 4vw, 3.6rem); margin:2rem 0 1rem; }
.nw-editor-content h3 { font-size:1.6rem; margin:1.5rem 0 1rem; }
.nw-editor-content p { line-height:1.75; margin:1rem 0; }
.nw-editor-content article { margin-bottom:4rem; }
.nw-editor-content a:not(.button):not(.nw-button) { text-decoration:underline; text-underline-offset:4px; }
.nw-editor-content input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.nw-editor-content select, .nw-editor-content textarea {
  border-radius:16px !important; border:1px solid rgb(8 16 63 / .18) !important;
  background:#fcfaf6 !important; color:#08103f !important; padding:1rem !important;
  font-family:inherit; min-height:3.5rem;
}
.nw-woocommerce { color:#08103f; }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  border:0; border-radius:999px !important; padding:1rem 1.75rem !important;
  background:#08103f !important; color:#f7f4ee !important; font-family:inherit; font-size:.875rem; font-weight:700;
}
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity:.45 !important; cursor:not-allowed; }
.woocommerce table.shop_table { border-radius:24px; border-color:rgb(8 16 63 / .15); overflow:hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding:1.2rem; }
.woocommerce table.shop_table thead { background:#ece6f6; }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  border-radius:16px; background:#dce7fa; color:#08103f; border-top-color:#1987f5; margin:1.5rem 0; line-height:1.7;
}
.woocommerce-error { background:#f6e7e1; border-top-color:#b42318; }
.woocommerce-message { border-top-color:#2256bc; }
.woocommerce { font-family:var(--app-font-sans); }
@media (max-width:767px) {
  .nw-editor-content { padding:8rem 1.25rem 4rem; }
}
@media (prefers-reduced-motion:reduce) { .nw-button { transition:none; } }

/* WooCommerce notices on the approved checkout and account (WooCommerce's own CSS is not loaded there). */
.woocommerce-account .woocommerce-error, .woocommerce-account .woocommerce-message, .woocommerce-account .woocommerce-info,
.woocommerce-checkout .woocommerce-error, .woocommerce-checkout .woocommerce-message, .woocommerce-checkout .woocommerce-info {
  list-style:none; margin:0 0 2rem; padding:1.25rem 1.5rem; border:0; border-radius:24px;
  font-size:.875rem; font-weight:600; line-height:1.6;
}
.woocommerce-account .woocommerce-error, .woocommerce-checkout .woocommerce-error { background:#FBE7CF; color:#B42318; }
.woocommerce-account .woocommerce-error li + li, .woocommerce-checkout .woocommerce-error li + li { margin-top:.35rem; }
.woocommerce-account .woocommerce-message, .woocommerce-account .woocommerce-info,
.woocommerce-checkout .woocommerce-message, .woocommerce-checkout .woocommerce-info { background:#DCE7FA; color:#08103F; }
.woocommerce-account .woocommerce-message a, .woocommerce-account .woocommerce-info a,
.woocommerce-checkout .woocommerce-message a, .woocommerce-checkout .woocommerce-info a { font-weight:700; text-decoration:underline; text-underline-offset:4px; margin-left:.5rem; }

/* Numbered lists in legal documents (the approved build has no list-decimal utility). */
.nw-legal-ol { list-style: decimal; }
