/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.ex-marking-visual { margin: 36px 0 48px; padding: clamp(18px, 3vw, 32px); background: #eef3f7; border: 1px solid #d4dfe9; color: #102445; }
.ex-marking-visual figcaption { font-size: 24px; font-weight: 700; }
.ex-marking-visual .ex-marking-intro { font-size: 14px; margin: 8px 0 24px; }
.ex-marking-plate { position: relative; border: 1px solid #a6b4c1; border-radius: 8px; background: linear-gradient(115deg,#c2ccd5,#fafcfd 42%,#d2dce5 78%,#bac8d4); padding: 36px 18px 22px; box-shadow: 0 10px 24px #10244513, inset 0 0 0 4px #ffffff50; }
.ex-plate-rivet { position: absolute; top: 12px; left: 12px; width: 8px; height: 8px; border: 1px solid #7e8e9d; border-radius: 50%; background: #a6b4c1; }
.ex-plate-rivet + .ex-plate-rivet { left: auto; right: 12px; }
.ex-marking-tokens { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); text-align: center; }
.ex-marking-tokens strong { display: block; font-family: ui-monospace, monospace; font-size: clamp(25px,4vw,54px); line-height: 1.3; letter-spacing: -.04em; }
.ex-marking-tokens span { display: block; width: 26px; height: 26px; line-height: 26px; margin: 14px auto; border-radius: 50%; color: white; background: #102445; font-size: 11px; font-weight: 700; }
.ex-marking-tokens > div:first-child span { background: #d52b24; }
.ex-marking-plate > small { display: block; text-align: center; font-size: 10px; letter-spacing: .14em; color: #52677b; }
.ex-marking-key { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; margin: 0 0 24px; }
.ex-marking-key > div { position: relative; padding-top: 30px; }
.ex-marking-key > div::before { content: ''; position: absolute; top: 0; left: 50%; height: 20px; width: 1px; background: #9dafbf; }
.ex-marking-key dt { font-size: 13px; line-height: 1.5; font-weight: 650; }
.ex-marking-key dt > span { display: none; }
.ex-marking-key dd { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: #53677d; }
.ex-marking-note { border-left: 3px solid #d52b24; padding: 16px 20px; background: #fff9; }
.ex-marking-note strong { font-size: 15px; }
.ex-marking-visual .ex-marking-note p { margin: 8px 0 0; font-size: 14px; }
.ex-marking-visual .ex-marking-source { font-size: 12px; margin: 18px 0 0; }
@media(max-width:700px) {
 .ex-marking-key { grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
 .ex-marking-key > div { padding: 14px 0; border-bottom: 1px solid #d2dde6; }
 .ex-marking-key > div::before { display: none; }
 .ex-marking-key dt > span { display: inline-block; color: #a42b26; margin-right: 8px; }
 .ex-marking-key dd { margin-top: 4px; }
 .ex-marking-plate { padding-inline: 8px; }
}

.contact-page-hero.contact-page-hero.contact-page-hero--brand { padding: 70px 0 56px; color: #102445; background: linear-gradient(125deg,#fbf7ef,#edf2f6); overflow: hidden; }
.contact-hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: 440px; }
.contact-page-hero.contact-page-hero--brand .eyebrow { color: #c32620; }
.contact-page-hero.contact-page-hero--brand h1 { font-size: clamp(44px,5.1vw,76px); font-weight: 700; line-height: 1.05; letter-spacing: -.055em; margin: 24px 0; }
.contact-page-hero.contact-page-hero--brand h1 em { display: block; font-family: inherit; font-style: normal; background: linear-gradient(100deg,#c9231d,#77506b); color: transparent; background-clip: text; }
.contact-page-hero.contact-page-hero--brand p { color: #53657c; font-size: 20px; max-width: 520px; }
.contact-page-hero.contact-page-hero--brand .button-row { margin-top: 32px; flex-wrap: wrap; }
.contact-page-hero.contact-page-hero--brand .button-secondary { color: #102445; border-color: #102445; background: transparent; }
.contact-hero-visual { margin: 0; min-width: 0; }
.contact-hero-visual img { width: 100%; height: 410px; object-fit: cover; object-position: 75% center; mix-blend-mode: multiply; mask-image: linear-gradient(to bottom,transparent,#000 12%,#000 85%,transparent); }
.contact-hero-visual figcaption { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 20px; color: #53657c; font-size: 13px; }
.contact-hero-visual figcaption span { color: #102445; font-weight: 700; }
.contact-page-hero.contact-page-hero--brand .contact-method-grid { max-width: none; margin-top: 48px; border: 0; border-top: 1px solid #cbd5df; gap: 24px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.contact-page-hero.contact-page-hero--brand .contact-method-grid a { display: grid; grid-template-columns: 30px 1fr 20px; column-gap: 14px; min-height: 100px; padding: 26px 0 0; border: 0; align-content: center; }
.contact-page-hero.contact-page-hero--brand .contact-method-grid i { grid-row: 1 / 3; align-self: center; margin: 0; color: #b72722; }
.contact-page-hero.contact-page-hero--brand .contact-method-grid i:last-child { grid-column: 3; font-size: 18px; }
.contact-page-hero.contact-page-hero--brand .contact-method-grid strong { font-size: 16px; }
.contact-page-hero.contact-page-hero--brand .contact-method-grid span { grid-column: 2; color: #53657c; font-size: 15px; overflow-wrap: anywhere; }
@media(max-width:760px) {
 .contact-page-hero.contact-page-hero.contact-page-hero--brand { padding: 44px 0 36px; }
 .contact-hero-layout { grid-template-columns: 1fr; gap: 24px; }
 .contact-page-hero.contact-page-hero--brand h1 { font-size: clamp(40px,9vw,64px); }
 .contact-page-hero.contact-page-hero--brand p { font-size: 18px; }
 .contact-hero-visual img { height: 250px; }
 .contact-page-hero.contact-page-hero--brand .contact-method-grid { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
 .contact-page-hero.contact-page-hero--brand .contact-method-grid a { padding: 20px 0; min-height: 88px; border-bottom: 1px solid #d5dee7; }
}

/* One compact brand browser, and one hover treatment for every card composition. */
#brands .brand-browser-dock { position: fixed; z-index: 90; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); width: min(620px, calc(100% - 32px)); margin: 0; padding: 10px; border: 1px solid #dbe3eb; border-radius: 14px; background: #f8fafcf5; box-shadow: 0 12px 40px #081f4530; backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transform: translate(-50%, 110px); transition: transform .3s ease, opacity .3s ease, visibility .3s; }
#brands .brand-browser-dock.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#brands .brand-browser-search-row { flex-wrap: nowrap; gap: 8px; }
#brands .brand-browser-search { flex: 1; padding: 10px; border: 0; border-radius: 6px; }
#brands .brand-browser-search input { font-size: 16px; }
.brand-filter-toggle { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; background: #102445; color: white; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; }
.brand-filter-toggle span { border-radius: 50%; background: #e22b22; padding: 0 6px; }
.brand-filter-dialog { width: min(560px, calc(100% - 32px)); max-height: 80dvh; margin: auto; padding: 24px; border: 1px solid #dbe3eb; border-radius: 20px; color: #102445; background: #f8fafc; box-shadow: 0 24px 80px #081f4540; }
.brand-filter-dialog::backdrop { background: #081f4580; backdrop-filter: blur(4px); }
.brand-filter-dialog header, .brand-filter-dialog footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand-filter-dialog header h2 { font-size: 24px; font-weight: 700; margin: 0; }
.brand-filter-dialog header button { border: 0; background: transparent; width: 44px; height: 44px; font-size: 24px; cursor: pointer; }
.brand-filter-dialog .brand-browser-category-rail { margin: 20px 0; overflow: visible; }
.brand-filter-dialog .brand-browser-category-rail::after { display: none; }
.brand-filter-dialog .brand-browser-categories { display: grid; padding: 0; gap: 8px; overflow: visible; }
.brand-filter-dialog .brand-browser-categories button { white-space: normal; text-align: left; min-height: 44px; }
#brands .brand-card--image .brand-card-media { transition: transform .45s ease; }
#brands .brand-card--image .brand-card-media img { transform: none; }
@media (hover: hover) {
  #brands .brand-card--image:hover .brand-card-media { transform: scale(1.025); }
}
@media (max-width: 700px) {
  #brands .brand-browser-dock { bottom: max(12px, env(safe-area-inset-bottom)); }
  body:has(#brands .brand-browser-dock.is-visible) .floating-chat { bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  #brands .brand-browser-dock, #brands .brand-card--image .brand-card-media { transition: none; }
  #brands .brand-card--image:hover .brand-card-media { transform: none; }
}
.brand-filter-dialog[open] { display: flex; flex-direction: column; }
.brand-filter-dialog header, .brand-filter-dialog footer { flex-shrink: 0; }
.brand-filter-dialog .brand-browser-category-rail { overflow-y: auto; min-height: 0; padding: 3px; }

/* Shared single-choice controls: forms, product tools and language selectors. */
.site-select { display: block; position: relative; min-width: 0; }
.site-select .site-select-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; padding: 0 !important; }
.site-select-trigger { width: 100%; min-height: 44px; padding: 12px 40px 12px 14px; border: 1px solid #bac8d8; border-radius: 8px; background: #f8fafc; color: #102445; text-align: start; font: inherit; cursor: pointer; position: relative; }
.site-select-trigger::after { content: "⌄"; position: absolute; right: 14px; top: 50%; transform: translateY(-60%); }
.site-select-trigger:focus-visible, .site-select-trigger[aria-expanded="true"] { outline: 2px solid #216b9c; outline-offset: 2px; }
.site-select-trigger:disabled { opacity: .5; cursor: not-allowed; }
.site-select-menu { position: fixed; z-index: 10000; overflow: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid #d3dce6; border-radius: 12px; background: #fff; color: #102445; box-shadow: 0 12px 36px #081f452b; font: 500 14px/1.5 var(--sans, sans-serif); }
.site-select-menu [role="option"] { padding: 10px 36px 10px 12px; border-radius: 6px; cursor: pointer; position: relative; }
.site-select-menu [role="option"]:hover, .site-select-menu .is-active { background: #edf2f7; }
.site-select-menu [aria-selected="true"] { background: #102445; color: #fff; }
.site-select-menu [aria-selected="true"]::after { content: "✓"; position: absolute; right: 12px; }
.site-select-menu [aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.brand-language-control .site-select { position: absolute; inset: 0; }
.brand-language-control .site-select-trigger { height: 100%; width: 100%; min-height: 0; border-radius: 50%; padding: 0; background: transparent; color: transparent; font-size: 0; }
.brand-language-control .site-select-trigger::after { display: none; }
:where(html:lang(zh-CN), html:lang(zh-TW), html:lang(th)) :is(h1, h2, h3, .eyebrow, button, summary) { letter-spacing: normal; }
html:lang(th) :is(h1, h2, h3) { line-height: 1.3; }

/* Keep the filter dialog readable while the page behind it stays still. */
.brand-filter-dialog[open] { animation: brand-filter-enter 260ms cubic-bezier(.2,.7,.2,1) both; }
.brand-filter-dialog[open]::backdrop { animation: brand-filter-backdrop-enter 260ms ease-out both; }
.brand-filter-dialog .brand-browser-category-rail { overscroll-behavior: contain; }
@keyframes brand-filter-enter { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes brand-filter-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .brand-filter-dialog[open], .brand-filter-dialog[open]::backdrop { animation: none; } }

.brand-filter-dialog[open].is-closing { animation: brand-filter-exit 200ms ease-in both; }
.brand-filter-dialog[open].is-closing::backdrop { animation: brand-filter-backdrop-exit 200ms ease-in both; }
@keyframes brand-filter-exit { to { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes brand-filter-backdrop-exit { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .brand-filter-dialog[open].is-closing, .brand-filter-dialog[open].is-closing::backdrop { animation: none; }
}
