/* Foshan Makers interface refinement.
   The established forest / warm paper identity is expressed through stronger
   photographic scale, readable information, and distinct browsing passages. */
:root {
  --content-width: 1320px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(52px, 6vw, 88px);
  --control-radius: 6px;
  --surface-shadow: 0 12px 30px rgba(23, 62, 53, .07);
}
html { scroll-padding-top: 112px; scrollbar-color: var(--line-strong) var(--paper); }
body { font-size: 16px; line-height: 1.75; }
input, textarea { caret-color: var(--forest); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.container { width: min(var(--content-width), calc(100% - var(--page-gutter) * 2)); }
.narrow { max-width: 780px; }
h1, h2, h3 { font-weight: 700; }
h2 { line-height: 1.3; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 88px; gap: 24px; }
.brand { font-size: 25px; gap: 12px; }
.brand-mark { width: 34px; height: 34px; }
.brand-light { font-weight: 550; }
.brand-chinese { margin-top: 6px; font-size: 12px; }
.main-nav { gap: 24px; font-size: 14px; }
.main-nav > a { min-height: 48px; }
.main-nav > a[aria-current="page"] { text-decoration-thickness: 2px; text-underline-offset: 10px; }
.main-nav .merchant-link { padding: 10px 17px; background: var(--forest); color: var(--surface); border-radius: var(--control-radius); }
.language-switch { gap: 8px; font-size: 12px; }
.language-switch a { min-width: 24px; justify-content: center; }
.button { min-height: 50px; padding: 13px 23px; border-radius: var(--control-radius); font-size: 14px; font-weight: 700; }
.text-link { font-size: 14px; }
.button-outline { background: var(--surface); }

/* A shared, quiet line-drawing language beside existing public labels. */
.ui-icon-label { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.ui-icon-label > span { min-width: 0; text-box: trim-both cap alphabetic; }
svg.ui-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; color: var(--forest); }
.ui-icon-label > .ui-icon { align-self: flex-start; margin-block-start: max(0px, calc((1lh - 20px) / 2)); }
.category-tile h3, .industry-index-card h3 { gap: 10px; }
.category-tile h3 > svg, .industry-index-card h3 > svg { flex-shrink: 0; }
.category-tile .ui-icon-label, .industry-index-card .ui-icon-label { flex: 1; }
.home-intro .account-hero-actions .ui-icon, .site-footer .ui-icon { color: currentColor; }
.site-footer h2.ui-icon-label { display: flex; }
.site-footer .ui-icon { width: 18px; height: 18px; flex-basis: 18px; margin-block-start: max(0px, calc((1lh - 18px) / 2)); }

/* Admin mail workflows: three distinct surfaces, with headings as lasting labels. */
#registration-notifications {
  --mail-module-bg: #edf4fc;
  --mail-module-line: #b8cfe6;
  --mail-module-heading: #244f78;
  --mail-module-text: #405a72;
}
#rfq-notifications {
  --mail-module-bg: #edf6ef;
  --mail-module-line: #bad6c1;
  --mail-module-heading: #275c3c;
  --mail-module-text: #405f49;
}
#import-mail-inquiry {
  --mail-module-bg: #fff5e6;
  --mail-module-line: #e5c99c;
  --mail-module-heading: #78501d;
  --mail-module-text: #6b573b;
}
.admin-inquiries:where(#registration-notifications, #rfq-notifications, #import-mail-inquiry) {
  margin-block-start: 28px;
  padding: clamp(18px, 2.5vw, 32px);
  border: 1px solid var(--mail-module-line);
  border-radius: var(--radius);
  background: var(--mail-module-bg);
  color: var(--mail-module-text);
  overflow-wrap: anywhere;

  & > h2 {
    margin-block: 0 16px;
    color: var(--mail-module-heading);
  }
  & > p { margin-block: 0 12px; }
  & > :last-child { margin-block-end: 0; }
  & :is(h3, legend, .text-link) { color: var(--mail-module-heading); }
  & :is(.field-help, .inquiry-record small, .inquiry-record-title > span, .mail-inquiry-record dt) {
    color: var(--mail-module-text);
  }
  & .inquiry-record {
    margin-block-start: 20px;
    padding-block: 18px;
    padding-inline: 0;
    border: 0;
    border-block-start: 1px solid var(--mail-module-line);
    border-radius: 0;
    background: transparent;
  }
  & .empty-text {
    margin-block-start: 20px;
    padding: 16px 0 0;
    border: 0;
    border-block-start: 1px dashed var(--mail-module-line);
    border-radius: 0;
    background: transparent;
  }
  & .mail-inquiry-form fieldset {
    border-color: var(--mail-module-line);
    background: var(--surface);
  }
}

/* A single photographic opening: the factory is the proof, search is the action. */
.home-intro { background: var(--forest); color: var(--surface); }
.home-intro .hero { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 64px; padding-block: 64px 40px; }
.home-intro .hero-copy { padding: 0; }
.home-intro .hero h1 { max-width: 650px; font-size: clamp(44px, 4.8vw, 70px); line-height: 1.09; font-weight: 650; color: var(--surface); }
.home-intro .hero h1 em { color: #d2e2cc; }
.home-intro .hero-copy > p { max-width: 540px; margin-top: 25px; color: #dce0d5; font-size: 16px; line-height: 1.8; }
.home-intro .hero-copy > .text-link { margin-top: 29px; color: var(--surface); }
.home-intro .account-hero-actions { gap: 12px; margin-top: 25px; }
.home-intro .account-hero-actions .button { background: var(--surface); border-color: var(--surface); color: var(--forest); min-height: 50px; padding-inline: 20px; font-size: 14px; }
.home-intro .account-hero-actions .button-outline { background: transparent; color: var(--surface); border-color: #b9c3b5; }
.home-intro .home-procurement-links { gap: 8px 22px; margin-top: 20px; }
.home-intro .home-procurement-links .text-link { color: #dce0d5; font-size: 12px; }
.home-intro .hero-location { margin-top: 28px; color: #dce0d5; font-size: 12px; }
.home-intro .location-line { background: #617068; }
.home-intro .hero-carousel { display: flex; flex-direction: column; align-self: center; gap: 0; }
.home-intro .hero-carousel .motion-controls { order: 2; justify-content: flex-start; gap: 16px; margin: 10px 0 0; }
.home-intro .hero-carousel .motion-buttons { margin-left: 0; }
.home-intro .hero-carousel .motion-position { color: #dce0d5; }
.home-intro .hero-carousel .motion-buttons button { background: transparent; color: var(--surface); border-color: #617068; }
.home-intro .hero-carousel .hero-slide { aspect-ratio: 1.18; border-radius: var(--radius); }
.home-intro .hero-photo-track { width: 100%; }
.home-intro .hero-carousel.is-enhanced [data-motion-track] { padding-bottom: 0; scrollbar-width: none; }
.home-intro .hero-carousel.is-enhanced [data-motion-track]::-webkit-scrollbar { display: none; }
.home-intro .photo-caption { inset: auto 18px 18px; min-height: 70px; padding: 13px 16px; background: var(--surface); }
.home-intro .hero-photo-business { font-weight: 750; }
.home-intro .hero-photo-business small { font-size: 12px; }
.home-intro .photo-note { top: 18px; right: 18px; background: var(--surface); font-size: 11px; padding: 4px 8px; }
.home-intro .hero-search { padding-block: 5px 30px; }
.search-form { padding: 8px; border-radius: var(--radius); }
.search-input input, .search-category select { font-size: 15px; min-height: 48px; }
.search-input { padding-left: 15px; }
.popular { margin-top: 14px; gap: 8px 22px; font-size: 12px; }
.home-intro .popular, .home-intro .popular a { color: #dce0d5; }
.popular a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* Product discovery: photographs first, with quiet and readable names. */
.section { padding-block: var(--section-space); }
.section-heading { gap: 32px; margin-bottom: 32px; }
.section-heading h2 { max-width: 900px; font-size: clamp(28px, 2.6vw, 38px); }
.section-heading p { max-width: 76ch; margin-top: 13px; font-size: 15px; line-height: 1.8; }
.section-heading > .text-link { font-size: 13px; }
.home-guides-link { margin-top: 16px; }
.category-grid { gap: 18px; }
.category-tile { padding-bottom: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.category-photo { border-radius: 0; aspect-ratio: 1.08; }
.category-tile h3 { margin-top: 16px; padding-inline: 17px; font-size: 15px; font-weight: 750; }
.category-art-note { font-size: 10px; padding: 3px 5px; }
.supplier-section { background: var(--tint); }
.supplier-grid { gap: 24px; }
.supplier-card { border-radius: var(--radius); }
.supplier-image { aspect-ratio: 1.55; }
.supplier-body { padding: 26px; }
.supplier-body h3 { margin-top: 13px; font-size: 21px; line-height: 1.45; }
.supplier-products { margin-block: 12px 22px; font-size: 14px; line-height: 1.8; }
.location { font-size: 12px; }
.card-meta { padding-top: 16px; }
.card-meta > span { font-size: 12px; }
.card-meta > a { width: 40px; height: 40px; background: var(--tint); border-radius: var(--control-radius); }
.image-label, .image-kind-label { font-size: 11px; }
.motion-controls { margin-bottom: 20px; }
.motion-position { font-size: 13px; }
.motion-buttons button { border-radius: var(--control-radius); }
.motion-carousel { --carousel-gap: 24px; }
.home-procurement { border-top: 1px solid var(--line); }
.home-procurement-card { padding: 28px; border-radius: var(--radius); }
.home-procurement-card[data-home-procurement="historical"] { border-color: var(--line-strong); }
.home-procurement-status { padding: 6px 9px; font-size: 12px; }
.home-procurement-card h3 { margin-top: 22px; font-size: 23px; line-height: 1.45; }
.home-procurement-card dl { margin-block: 20px; padding-block: 20px; gap: 16px; }
.home-procurement-card dt { font-size: 12px; }
.home-procurement-card dd { font-size: 14px; font-weight: 600; }
.home-procurement-summary { font-size: 14px; }
.home-procurement-detail { padding-top: 24px; font-size: 14px; }
.global-buyers-disclosure { padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
.global-buyers-grid { gap: 32px 22px; }
.global-buyers-scene figcaption { padding-top: 15px; }
.global-buyers-scene h3 { font-size: 18px; }
.global-buyers-scene figcaption p { font-size: 14px; }
.sourcing-strip { gap: 80px; padding-block: var(--section-space); }
.sourcing-strip h2 { font-size: clamp(30px, 3vw, 42px); }
.steps li { padding-block: 24px; grid-template-columns: 35px 1fr; }
.steps li::before { font-size: 15px; }
.steps strong { font-size: 18px; }
.steps span { max-width: 60ch; font-size: 14px; }
.merchant-strip { background: var(--tint); border-color: var(--line); }
.merchant-inner { padding-block: 44px; }
.merchant-inner h2 { font-size: 30px; }
.merchant-inner p { font-size: 15px; }

/* Directory and profiles use a stable comparison grid and stronger reading type. */
.breadcrumb { font-size: 13px; padding-top: 30px; padding-bottom: 24px; }
.page-heading { padding-bottom: 42px; }
.page-heading h1 { max-width: 1060px; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.2; }
.page-heading > p { max-width: 80ch; font-size: 16px; }
.directory-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 32px; }
.filters { align-self: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters h2 { font-size: 20px; }
.filter-list { gap: 5px; }
.filter-list a { padding: 9px 0; font-size: 14px; }
.results-bar { padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.results-bar > span { font-size: 13px; color: var(--muted); }
.directory-grid { gap: 22px; }
.directory-grid .supplier-image { aspect-ratio: 1.48; }
.directory-grid .supplier-body { padding: 22px; }
.directory-grid .supplier-body h3 { font-size: 18px; }
.directory-grid .supplier-products { font-size: 13px; }
.directory-pagination { padding-top: 30px; gap: 16px; }
.directory-pagination a, .directory-pagination span { min-height: 44px; }
.profile-heading h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.3; }
.profile-heading p, .profile-description, .profile-details p { font-size: 16px; line-height: 1.85; }
.fact-sheet { padding: 28px; border-radius: var(--radius); }
.fact-sheet dt { font-size: 13px; }
.fact-sheet dd { font-size: 15px; }
.industry-index-card { padding: 27px; }
.industry-index-card h3 { font-size: 21px; }
.industry-index-card > p { font-size: 15px; }
.industry-examples { font-size: 13px; }
.industry-jump-nav a { min-height: 44px; }
.form-page { gap: 72px; padding-block: 56px 88px; }
.form-intro > p { font-size: 16px; }
.join-steps strong { font-size: 16px; }
.join-steps span, .plain-note p { font-size: 14px; }
.form-panel { padding: 36px; box-shadow: var(--surface-shadow); }
.form-panel > p { font-size: 14px; }
.field { font-size: 14px; gap: 9px; }
.field input, .field select, .field textarea { min-height: 50px; font-size: 16px; padding: 12px 14px; border-radius: var(--control-radius); }
.field small, .field-help, .checkbox, .form-actions p { font-size: 13px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form-grid { gap: 25px 22px; }
.form-section-title { font-size: 17px; }
.examples-heading p { font-size: 16px; }
.examples-disclosure { border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.example-card h2 { font-size: 24px; }
.example-card p { font-size: 15px; }
.translation-note { border: 1px solid var(--line); border-radius: var(--control-radius); }

/* A purposeful close, using the same forest as the opening. */
.site-footer { background: var(--forest); border: 0; color: var(--surface); }
.footer-main { grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 48px; padding-block: 60px 46px; }
.site-footer .brand, .site-footer h2 { color: var(--surface); }
.footer-main .brand { font-size: 25px; }
.footer-main h2 { font-size: 14px; margin-bottom: 20px; }
.footer-main p { color: #dce0d5; font-size: 14px; }
.footer-main > div > a:not(.brand) { color: #dce0d5; font-size: 14px; margin-top: 11px; }
.footer-place { color: #dce0d5; font-size: 14px; }
.footer-bottom { border-top-color: #617068; color: #dce0d5; font-size: 12px; padding-block: 22px; }
.footer-contact { color: var(--surface); font-size: 14px; padding-bottom: 36px; }
.footer-contact-item > span { color: #dce0d5; font-size: 12px; font-weight: 500; }
.site-footer a:hover { color: var(--surface); text-decoration: underline; }
.home-intro :focus-visible, .site-footer :focus-visible,
.home-intro .motion-carousel [data-motion-track]:focus-visible { outline-color: #d2e2cc; }

@media (hover: hover) and (pointer: fine) {
  .category-tile:hover, .supplier-card:hover { border-color: var(--line-strong); box-shadow: var(--surface-shadow); }
  .category-tile:hover h3 svg, .card-meta a:hover svg { transform: translateX(3px); }
  .home-intro .account-hero-actions .button:hover { background: #d2e2cc; color: var(--forest); border-color: #d2e2cc; }
  .home-intro .hero-carousel .motion-buttons button:hover { background: var(--surface); color: var(--forest); }
}
@media (prefers-reduced-motion: no-preference) {
  .category-tile, .supplier-card { transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease); }
  .category-tile h3 svg, .card-meta a svg { transition: transform 180ms var(--ease); }
}
@media (max-width: 1279px) and (min-width: 768px) {
  .nav-wrap { flex-wrap: wrap; gap: 4px 20px; padding-block: 13px; }
  .header-controls { margin-left: auto; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; margin: 4px 0 0; gap: 15px; font-size: 13px; }
  .main-nav .merchant-link { min-height: 42px; padding-block: 7px; }
  .home-intro .hero { gap: 38px; padding-top: 45px; }
  .home-intro .hero h1 { font-size: clamp(42px, 4.8vw, 60px); }
  .home-intro .hero-carousel .hero-slide { aspect-ratio: .94; }
  .directory-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .home-intro .hero { gap: 28px; }
  .home-intro .hero h1 { font-size: 44px; }
  .home-intro .hero-copy > p { font-size: 15px; }
  .home-intro .hero-carousel .hero-slide { aspect-ratio: .78; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .category-photo { aspect-ratio: 1.45; }
  .section-heading h2 { font-size: 30px; }
  .global-buyers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .form-page { gap: 34px; }
  .form-panel { padding: 28px; }
}
@media (max-width: 767px) {
  :root { --page-gutter: 20px; --section-space: 52px; }
  html { scroll-padding-top: 90px; }
  .nav-wrap { min-height: 78px; gap: 10px; padding-block: 10px; }
  .nav-wrap > .brand { font-size: 21px; gap: 9px; }
  .nav-wrap > .brand .brand-mark { width: 28px; height: 28px; }
  .nav-wrap > .brand .brand-chinese { font-size: 10px; }
  .header-controls { gap: 10px; }
  .menu-toggle { width: 42px; height: 44px; }
  .main-nav { inset-inline: calc(-1 * var(--page-gutter)); font-size: 15px; gap: 4px; padding: 18px 20px; }
  .main-nav .merchant-link { margin: 8px 0 0; justify-content: space-between; }
  .home-intro .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 36px 24px; }
  .home-intro .hero h1 { font-size: clamp(37px, 9.5vw, 58px); line-height: 1.13; max-width: 630px; }
  .home-intro .hero-copy > p { margin-top: 20px; font-size: 15px; }
  .home-intro .hero-copy > .text-link { margin-top: 22px; }
  .home-intro .account-hero-actions { margin-top: 20px; gap: 10px; }
  .home-intro .account-hero-actions .button { padding: 11px 14px; min-height: 48px; font-size: 13px; }
  .home-intro .home-procurement-links { margin-top: 17px; gap: 8px 18px; }
  .home-intro .hero-location { margin-top: 23px; }
  .home-intro .hero-carousel .hero-slide { aspect-ratio: 1.38; }
  .home-intro .photo-caption { inset: auto 12px 12px; padding: 10px 12px; min-height: 62px; }
  .home-intro .hero-carousel .photo-caption .hero-photo-business { font-size: 12px; }
  .home-intro .photo-note { top: 12px; right: 12px; font-size: 10px; }
  .home-intro .hero-search { padding-block: 0 25px; }
  .search-form { gap: 0; padding: 8px; }
  .search-input { padding-left: 10px; }
  .search-input input, .search-category select { font-size: 16px; }
  .search-category { padding: 10px; }
  .popular { font-size: 12px; gap: 7px 14px; }
  .section-heading { align-items: flex-start; gap: 20px; margin-bottom: 26px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { font-size: 14px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .category-photo { aspect-ratio: 1.25; }
  .category-tile h3 { margin-top: 12px; padding-inline: 12px; font-size: 14px; }
  .category-tile { padding-bottom: 13px; }
  .category-art-note { font-size: 9px; }
  .supplier-body { padding: 23px; }
  .supplier-body h3 { font-size: 20px; }
  .home-procurement-heading .home-procurement-links { flex-direction: row; gap: 12px 20px; }
  .home-procurement-card { padding: 24px; }
  .home-procurement-card h3 { font-size: 22px; }
  .home-procurement-card dl { gap: 14px; margin-block: 18px; padding-block: 18px; }
  .global-buyers-grid { gap: 25px 14px; }
  .global-buyers-scene h3 { font-size: 16px; }
  .global-buyers-scene figcaption p { font-size: 13px; }
  .sourcing-strip { gap: 30px; }
  .sourcing-strip h2 { font-size: 30px; }
  .steps strong { font-size: 17px; }
  .merchant-inner { gap: 24px; padding-block: 35px; }
  .merchant-inner h2 { font-size: 26px; }
  .merchant-inner p { font-size: 14px; }
  .breadcrumb { padding-top: 23px; padding-bottom: 20px; font-size: 12px; }
  .page-heading h1 { font-size: 33px; }
  .page-heading > p { font-size: 15px; }
  .directory-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .filters { padding: 22px; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .directory-grid .supplier-body { padding: 19px; }
  .directory-grid .supplier-body h3 { font-size: 18px; }
  .form-page { gap: 32px; padding-block: 32px 60px; }
  .form-panel { padding: 24px; }
  .form-grid { gap: 22px 18px; }
  .form-intro > h1, [lang="zh-CN"] .form-intro h1 { margin-top: 25px; font-size: 33px; line-height: 1.3; }
  .industry-index-card { padding: 23px; }
  .footer-main { padding-block: 42px 30px; gap: 28px 24px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-main .brand { font-size: 25px; }
  .footer-main h2, .footer-main > div > a:not(.brand), .footer-place { font-size: 13px; }
  .footer-bottom { align-items: flex-start; justify-content: flex-start; gap: 7px 18px; font-size: 11px; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 28px; }
}
@media (max-width: 559px) { .directory-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359px) {
  :root { --page-gutter: 16px; }
  .nav-wrap > .brand { font-size: 18px; }
  .nav-wrap > .brand .brand-mark { width: 24px; height: 24px; }
  .header-controls { gap: 6px; }
  .language-switch { gap: 5px; }
  .home-intro .hero h1 { font-size: 35px; }
  .global-buyers-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header { position: static; }
  .home-intro, .site-footer { background: white; color: black; }
  .home-intro :is(h1, p, a, em, span), .site-footer :is(h2, p, a, span) { color: black !important; }
  .supplier-card, .form-panel { box-shadow: none; }
}
