/* Homepage alignment layer: mirrors the approved compact desktop hierarchy without claiming generated artwork as merchandise. */
.zf-site-notice { padding: 6px 16px; border-bottom-color: rgba(232,213,183,.72); background: #fdf8ee; color: #87724d; font-size: 11px; line-height: 1.45; }
.zf-header { position: relative; background: rgba(250,246,240,.98); }
.zf-header-inner { min-height: 72px; }
.zf-brand-mark { border-color: var(--zf-cinnabar); border-radius: 50%; background: #fff7e8; font-family: var(--zf-serif); font-weight: 700; }
.zf-home-hero, .zf-home-hero .zf-hero-inner { min-height: 445px; }
.zf-home-hero .zf-hero-media { background-position: center center; }
.zf-home-hero .zf-hero-media::before { background: linear-gradient(90deg, rgba(250,246,240,.99) 0%, rgba(250,246,240,.94) 31%, rgba(250,246,240,.48) 48%, rgba(250,246,240,.05) 77%, rgba(250,246,240,.02) 100%); }
.zf-home-hero .zf-hero-copy { max-width: 555px; padding: 48px 0; }
.zf-home-hero .zf-hero-copy h1 { font-size: clamp(47px, 5.3vw, 76px); }
.zf-home-hero .zf-hero-copy h1 + p { margin: 11px 0 8px; font-size: clamp(19px, 2vw, 25px); }
.zf-home-hero .zf-hero-note { margin-bottom: 22px; font-size: 14px; }
.zf-home-hero .zf-btn { min-height: 46px; }
.zf-home-portal-section { padding: 24px 0 30px; background: #fffdf9; }
.zf-home-portal-section .zf-portals { gap: 20px; }
.zf-home-portal-section .zf-portal { display: block; min-height: 146px; padding: 0; border: 1px solid var(--zf-sand); background-color: #ebe2d3; background-position: center; background-size: cover; box-shadow: 0 6px 18px rgba(48,36,23,.08); isolation: isolate; }
.zf-home-portal-section .zf-portal::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(250,246,240,.90) 0%, rgba(250,246,240,.68) 38%, rgba(250,246,240,.10) 75%); }
.zf-home-portal-section .zf-portal::after { display: none; }
  .zf-home-portal-section .zf-portal--incense { background-image: url('assets/home-collections/incense-offering-portal.webp'); }
.zf-home-portal-section .zf-portal--guardian { color: #fff; border-color: #1d5952; background-image: url('assets/home-collections/guardian-placement-portal.webp'); }
.zf-home-portal-section .zf-portal--guardian::before { background: linear-gradient(90deg, rgba(0,62,57,.88) 0%, rgba(0,83,76,.60) 42%, rgba(0,83,76,.07) 78%); }
.zf-home-portal-section .zf-portal--palace { background-image: url('assets/home-collections/palace-objects-portal.webp'); }
.zf-portal-art { display: none; }
.zf-portal-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; max-width: 70%; padding: 21px 24px; }
.zf-portal-kicker { margin-bottom: 3px; color: currentColor; font-size: 10px; letter-spacing: .12em; opacity: .64; }
.zf-home-portal-section .zf-portal h2 { margin: 0; font-size: clamp(22px, 2vw, 29px); letter-spacing: .11em; }
.zf-home-portal-section .zf-portal p { margin: 3px 0 12px; max-width: none; font-size: 12px; }
.zf-home-portal-section .zf-portal .zf-circle-link { width: 28px; height: 28px; font-size: 13px; }
.zf-home-featured { padding: 27px 0 28px; background: var(--zf-paper); }
.zf-home-section-heading { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.zf-heading-rule { width: 29px; height: 2px; margin-bottom: 18px; background: var(--zf-cinnabar); box-shadow: 10px 4px 0 rgba(154,40,32,.45); }
.zf-home-section-heading .zf-eyebrow { margin-bottom: 1px; font-size: 10px; }
.zf-home-section-heading h2 { margin: 0; color: var(--zf-cinnabar); font-family: var(--zf-serif); font-size: clamp(29px, 3vw, 38px); letter-spacing: .1em; line-height: 1.12; }
.zf-home-section-heading .zf-text-link { margin-left: auto; margin-bottom: 6px; }
.zf-home-featured-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.zf-home-featured-grid .zf-artifact-card { min-height: 176px; border-color: rgba(93,73,47,.14); box-shadow: 0 3px 10px rgba(48,36,23,.05); }
.zf-home-featured-grid .zf-artifact-card::before { top: 8px; left: 8px; width: 14px; height: 14px; }
.zf-home-featured-grid .zf-artifact-image { height: 78px; background: linear-gradient(145deg, #f5eee2, #e7d8c2); }
.zf-home-featured-grid .zf-artifact-image .zf-symbol { font-size: 43px; }
.zf-home-featured-grid .zf-artifact-image .zf-family-text { right: 8px; bottom: 7px; font-size: 9px; }
.zf-home-featured-grid .zf-artifact-body { padding: 10px 11px 11px; }
.zf-home-featured-grid .zf-badges { min-height: 18px; gap: 3px; }
.zf-home-featured-grid .zf-badge { min-height: 17px; padding: 1px 5px; font-size: 8px; }
.zf-home-featured-grid .zf-artifact-card h3 { margin: 5px 0 2px; font-size: clamp(15px, 1.35vw, 19px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zf-home-featured-grid .zf-artifact-number { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zf-home-featured-grid .zf-artifact-meta { padding-top: 7px; }
.zf-home-featured-grid .zf-artifact-meta span { display: none; }
.zf-home-featured-grid .zf-artifact-meta a { font-size: 10px; }
.zf-catalog-disclaimer { margin: 13px 0 0; color: #877b6e; font-size: 11px; text-align: center; }
.zf-home-trust { padding: 33px 0; border-top: 1px solid var(--zf-sand); background: linear-gradient(90deg, rgba(49,95,127,.07), rgba(250,246,240,.45) 48%, rgba(184,149,77,.11)); }
.zf-home-trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.zf-home-trust h2 { margin: 0 0 6px; color: var(--zf-cinnabar); font-family: var(--zf-serif); font-size: 29px; letter-spacing: .1em; }
.zf-home-trust p { max-width: 720px; margin: 0; color: var(--zf-muted); font-size: 14px; }
/* ZFSY-FOOTER-COMPACT-20260920: a compact, content-rich two-zone footer.
   The primary area carries brand and navigation; verified contact details
   occupy a separate side panel without making the footer span the full page. */
.zf-footer { padding: clamp(42px, 4vw, 56px) 0 24px; }
.zf-footer-shell { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .9fr); width: min(100%, 820px); align-items: start; gap: clamp(28px, 4.4vw, 54px); margin: 0 auto; }
.zf-footer-primary, .zf-footer-intro, .zf-footer-contact-panel, .zf-footer-directory, .zf-footer-directory section { min-width: 0; }
.zf-footer-primary { display: grid; gap: 26px; }
.zf-footer-intro { max-width: 30rem; }
.zf-footer-intro > p { margin: 13px 0 0; }
.zf-footer-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 20px; border-top: 1px solid rgba(232,213,183,.18); }
.zf-footer-contact-panel { padding: 3px 0 0 25px; border-left: 1px solid rgba(232,213,183,.24); }
.zf-footer .zf-brand-name { font-size: 22px; }
.zf-footer p { margin: 0; color: rgba(246,238,226,.78); font-size: 13px; line-height: 1.72; }
.zf-footer h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #efd797; font-size: 14px; line-height: 1.35; letter-spacing: .12em; }
.zf-footer h2::before { width: 18px; height: 1px; flex: 0 0 18px; content: ""; background: currentColor; opacity: .75; }
.zf-footer a { min-height: 31px; padding: 5px 0; color: rgba(246,238,226,.8); font-size: 13px; line-height: 1.45; }
.zf-footer a:hover, .zf-footer a:focus-visible { color: #fff8e8; }
.zf-footer-contact-panel > p { margin-bottom: 12px; }
.zf-footer-contact-details { gap: 5px; margin: 0 0 10px; }
.zf-footer-contact-details .zf-footer-company { font-size: 13px; line-height: 1.55; }
.zf-footer-contact-details address { color: rgba(246,238,226,.76); font-size: 13px; line-height: 1.68; }
.zf-footer-contact-cta { margin-top: 3px; color: #efd797 !important; font-weight: 600; }
.zf-footer-bottom { width: min(100%, 820px); margin: 31px auto 0; padding-top: 14px; font-size: 11px; line-height: 1.6; }
@media (max-width: 1080px) {
  .zf-home-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zf-home-featured-grid .zf-artifact-card { min-height: 220px; }
  .zf-home-featured-grid .zf-artifact-image { height: 118px; }
}
@media (max-width: 760px) {
  .zf-site-notice { display: none; }
  .zf-home-hero, .zf-home-hero .zf-hero-inner { min-height: 500px; }
  .zf-home-hero .zf-hero-art { object-position: 65% center; }
  .zf-home-hero .zf-hero-media::before { background: linear-gradient(90deg, rgba(250,246,240,.99) 0%, rgba(250,246,240,.93) 51%, rgba(250,246,240,.54) 71%, rgba(250,246,240,.10) 100%); }
  .zf-home-hero .zf-hero-copy { max-width: 330px; padding: 48px 0 112px; }
  .zf-home-hero .zf-hero-copy h1 { font-size: 47px; }
  .zf-home-hero .zf-hero-note { max-width: 292px; font-size: 12px; }
  .zf-home-portal-section { padding: 14px 0 19px; }
  .zf-home-portal-section .zf-portals { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .zf-home-portal-section .zf-portal { min-height: 124px; }
  .zf-portal-content { padding: 16px 18px; }
  .zf-home-portal-section .zf-portal h2 { font-size: 24px; }

  /* Keep collection artwork visible on narrow cards without sacrificing the
     left text-safe area. The source visuals remain decorative collection art. */
  .zf-home-portal-section .zf-portal {
    min-height: 172px;
    background-image: none;
    overflow: hidden;
  }
  .zf-home-portal-section .zf-portal::before {
    z-index: 2;
    background: linear-gradient(90deg, rgba(250,246,240,.98) 0%, rgba(250,246,240,.92) 51%, rgba(250,246,240,.50) 73%, rgba(250,246,240,.08) 100%);
  }
  .zf-home-portal-section .zf-portal::after {
    display: none;
  }
  .zf-home-portal-section .zf-portal--guardian::before { background: linear-gradient(90deg, rgba(0,62,57,.97) 0%, rgba(0,74,68,.88) 50%, rgba(0,83,76,.46) 75%, rgba(0,83,76,.08) 100%); }
  .zf-home-portal-section .zf-portal-art {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: 61%;
    overflow: hidden;
    pointer-events: none;
  }
  .zf-home-portal-section .zf-portal-art img {
    display: block;
    width: auto;
    max-width: none;
    height: 100%;
    transform: translateX(10px);
  }
  .zf-home-portal-section .zf-portal-content { z-index: 3; max-width: 68%; }
  .zf-home-featured { padding: 23px 0; }
  .zf-home-section-heading { align-items: center; gap: 11px; }
  .zf-heading-rule { width: 20px; margin-bottom: 12px; }
  .zf-home-section-heading h2 { font-size: 29px; }
  .zf-home-section-heading .zf-text-link { margin-bottom: 1px; font-size: 11px; }
  .zf-home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .zf-home-featured-grid .zf-artifact-card { min-height: 190px; }
  .zf-home-featured-grid .zf-artifact-image { height: 92px; }
  .zf-home-featured-grid .zf-artifact-card h3 { font-size: 17px; }
  .zf-home-trust { padding: 30px 0; }
  .zf-home-trust-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .zf-home-trust h2 { font-size: 27px; }

  /* Keep the compact structure on a phone: brand and a complete navigation
     directory first, followed by a full-width contact panel. */
  .zf-footer { padding: 36px 0 24px; }
  .zf-footer::before { right: -52px; bottom: -68px; font-size: 160px; opacity: .72; }
  .zf-footer-shell { grid-template-columns: minmax(0, 1fr); width: min(100% - 32px, 520px); gap: 24px; }
  .zf-footer-primary { gap: 22px; }
  .zf-footer-directory { gap: 20px; padding-top: 18px; }
  .zf-footer-contact-panel { padding: 22px 0 0; border-top: 1px solid rgba(232,213,183,.2); border-left: 0; }
  .zf-footer .zf-brand-name { font-size: 22px; }
  .zf-footer h2 { margin-bottom: 8px; font-size: 14px; }
  .zf-footer p, .zf-footer a, .zf-footer-contact-details address { font-size: 13px; }
  .zf-footer a { display: flex; min-height: 44px; align-items: center; padding: 6px 0; }
  .zf-footer-contact-details { gap: 5px; margin: 0 0 8px; }
  .zf-footer-contact-details .zf-footer-company { font-size: 14px; }
  .zf-footer-bottom { width: min(100% - 32px, 520px); margin-top: 26px; padding: 14px 0 4px; font-size: 11px; }
}

/* ZFSY-MOBILE-FEATURED-VISUAL-CLUTTER-20260918: remove decorative heading lines and limited-tier gold frames on the compact homepage grid. */
@media (max-width: 760px) {
  body .zf-home-featured .zf-heading-rule,
  body .zf-home-featured .zf-eyebrow::before {
    display: none !important;
  }

  body .zf-home-featured .zf-home-section-heading {
    gap: 0 !important;
  }

  body .zf-home-featured .zf-artifact-card.zf-tier-limited {
    border: 1px solid rgba(93, 73, 47, .14) !important;
    border-image: none !important;
    box-shadow: 0 3px 10px rgba(48, 36, 23, .05) !important;
  }
}

/* ZFSY-MOBILE-FEATURED-HEADING-RHYTHM-20260918: align the featured eyebrow to the established 觀物索引 mobile rhythm without restoring the extra red heading rule. */
@media (max-width: 760px) {
  body .zf-home-featured .zf-heading-rule {
    display: none !important;
  }

  body .zf-home-featured .zf-eyebrow {
    margin: 0 0 10px !important;
    font-size: 13px !important;
  }

  body .zf-home-featured .zf-eyebrow::before {
    display: block !important;
  }

  body .zf-home-featured .zf-home-section-heading h2 {
    margin: 0 !important;
    font-size: 30px !important;
    line-height: 1.35 !important;
  }
}
