/**
 * Top page (#913, mockup R6). Colors come from tokens.css; every rule is
 * scoped to .wsg-top so Blocksy's element styles do not leak in and nothing
 * leaks out. The header and footer stay Blocksy's.
 */
.wsg-top {
  --wsg-top-page: 1200px;
  --wsg-top-alert-bg: #fff4e0;
  --wsg-top-alert-border: #e8a33d;
  --wsg-top-alert-label: #a15c00;
  color: var(--color-text);
  line-height: 1.7;
}
.wsg-top a { color: inherit; }
.wsg-top img { max-width: 100%; height: auto; }
.wsg-top h1, .wsg-top h2, .wsg-top h3 { color: var(--color-text-heading); }
.wsg-top ul { list-style: none; margin: 0; padding: 0; }

/* Shared parts */
.wsg-top .wsg-top-section { max-width: var(--wsg-top-page); margin: 0 auto; padding: 40px 24px 8px; }
.wsg-top .wsg-top-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.wsg-top .wsg-top-section h2 { margin: 0; font-size: 24px; line-height: 1.35; }
/* The same "See all" again after the items, for those who look through them first. */
.wsg-top .wsg-top-section__foot { display: flex; justify-content: center; margin-top: 20px; }
.wsg-top .wsg-top-section__foot .wsg-top-button--secondary { border-color: var(--color-accent-strong); color: var(--color-accent-strong); }
.wsg-top .wsg-top-more { font-size: 14px; font-weight: 700; color: var(--color-accent-strong); text-decoration: none; white-space: nowrap; }
.wsg-top .wsg-top-button { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 11px 22px; border: 0; border-radius: 999px; background: var(--color-accent-strong); color: var(--color-bg); font: inherit; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; }
.wsg-top .wsg-top-button--secondary { background: var(--color-bg); color: var(--color-chip-text); border: 1px solid var(--color-surface); }
.wsg-top .wsg-top-button--small { padding: 7px 16px; font-size: 14px; }
/* → after a link that moves to another page, in the text colour (ADR 0004). */
.wsg-top .wsg-top-arrow::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .35em; vertical-align: -.08em; background: currentColor; -webkit-mask: var(--icon-arrow-right) center / contain no-repeat; mask: var(--icon-arrow-right) center / contain no-repeat; }
.wsg-top .wsg-top-button.wsg-top-arrow::after { margin-left: 0; }
.wsg-top .wsg-top-logo { width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-bg); display: grid; place-items: center; color: var(--palette-navy-dark); font-weight: 800; font-size: 20px; box-shadow: 0 1px 3px var(--color-shadow-card); }
.wsg-top .wsg-top-logo img { width: 100%; height: 100%; object-fit: contain; }
.wsg-top a:focus-visible, .wsg-top button:focus-visible, .wsg-top input:focus-visible { outline: 2px solid var(--palette-navy-dark); outline-offset: 2px; }

/* 0. Urgent notice */
.wsg-top .wsg-top-urgent { background: var(--wsg-top-alert-bg); border-bottom: 1px solid var(--wsg-top-alert-border); }
.wsg-top .wsg-top-urgent__inner { max-width: var(--wsg-top-page); margin: 0 auto; padding: 10px 24px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: var(--color-text-emphasis); }
.wsg-top .wsg-top-urgent__label { font-weight: 700; color: var(--wsg-top-alert-label); }
.wsg-top .wsg-top-urgent__more { font-weight: 700; color: var(--palette-navy-dark); }

/* 1. Hero */
.wsg-top .wsg-top-hero { background: linear-gradient(180deg, var(--color-surface-subtle) 0%, var(--color-bg) 100%); }
.wsg-top .wsg-top-hero__inner { max-width: var(--wsg-top-page); margin: 0 auto; padding: 44px 24px 36px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.wsg-top .wsg-top-hero__title { margin: 0 0 12px; font-size: 38px; line-height: 1.3; letter-spacing: .01em; }
.wsg-top .wsg-top-hero__lead { margin: 0 0 22px; font-size: 17px; color: var(--color-text-muted); white-space: pre-line; }
.wsg-top .wsg-top-hero__links { display: flex; gap: 12px; flex-wrap: wrap; }
.wsg-top .wsg-top-points { display: grid; gap: 12px; }
.wsg-top .wsg-top-points li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--color-bg); border: 1px solid var(--color-surface); border-radius: 12px; }
.wsg-top .wsg-top-points__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--color-surface-subtle); display: grid; place-items: center; color: var(--palette-navy-dark); font-weight: 700; font-size: 13px; letter-spacing: -.02em; }
.wsg-top .wsg-top-points__title { display: block; color: var(--color-text-emphasis); }
.wsg-top .wsg-top-points__desc { font-size: 14px; color: var(--color-text-subtle); }

/* 2. Find shops */
.wsg-top .wsg-top-find__box { padding: 24px; border-radius: 16px; background: var(--color-title-band); border: 1px solid var(--color-border); }
.wsg-top .wsg-top-search { margin: 0; }
.wsg-top .wsg-top-search__row { display: flex; gap: 8px; }
.wsg-top .wsg-top-search__row input { flex: 1; min-width: 0; height: auto; margin: 0; padding: 13px 16px; border: 1px solid var(--color-border-strong); border-radius: 999px; font: inherit; background: var(--color-bg); color: var(--color-text); }
.wsg-top .wsg-top-find__label { margin: 20px 0 10px; font-size: 14px; font-weight: 700; color: var(--color-text-heading); }
.wsg-top .wsg-top-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wsg-top .wsg-top-chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--color-surface); border-radius: 999px; background: var(--color-bg); color: var(--color-chip-text); font-size: 14px; line-height: 1.4; text-decoration: none; }
.wsg-top .wsg-top-chips a.wsg-top-chips__all { border-style: dashed; }
.wsg-top .wsg-top-quick { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.wsg-top .wsg-top-quick__link { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--color-text-emphasis); font-size: 12px; text-align: center; line-height: 1.3; }
.wsg-top .wsg-top-quick__name { overflow-wrap: anywhere; }
.wsg-top .wsg-top-find__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* 3. Customer shortcuts and notices */
.wsg-top .wsg-top-band { background: var(--color-surface-subtle); margin-top: 40px; }
.wsg-top .wsg-top-band__inner { max-width: var(--wsg-top-page); margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.wsg-top .wsg-top-band__inner--single { grid-template-columns: 1fr; }
.wsg-top .wsg-top-band h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.35; }
.wsg-top .wsg-top-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wsg-top .wsg-top-tile { display: block; padding: 16px; background: var(--color-bg); border-radius: 12px; border: 1px solid var(--color-surface); text-decoration: none; }
.wsg-top .wsg-top-tile strong { display: block; color: var(--color-text-emphasis); }
.wsg-top .wsg-top-tile span { font-size: 13px; color: var(--color-text-subtle); }
.wsg-top .wsg-top-news { background: var(--color-bg); border-radius: 12px; border: 1px solid var(--color-surface); padding: 16px 18px; }
.wsg-top .wsg-top-news__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.wsg-top .wsg-top-news__head h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.wsg-top .wsg-top-news__list li { padding: 8px 0; border-top: 1px solid var(--color-border); font-size: 14px; }
.wsg-top .wsg-top-news__list li:first-child { border-top: 0; }
.wsg-top .wsg-top-news__list time { display: block; font-size: 12px; color: var(--color-text-subtle); }
.wsg-top .wsg-top-news__list a { color: var(--color-text-emphasis); text-decoration: none; }
.wsg-top .wsg-top-news__list a:hover, .wsg-top .wsg-top-tile:hover strong { text-decoration: underline; }

/* 4. Campaigns */
.wsg-top .wsg-top-campaigns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wsg-top .wsg-top-campaign { display: grid; grid-template-columns: 200px 1fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--color-surface); background: var(--color-bg); }
.wsg-top .wsg-top-campaign__visual { min-height: 140px; display: grid; place-items: center; padding: 12px; background: linear-gradient(135deg, #ffe3ef 0%, var(--color-surface) 100%); color: var(--palette-navy-dark); font-weight: 800; font-size: 20px; line-height: 1.3; text-align: center; }
.wsg-top .wsg-top-campaign__visual img { width: 100%; height: 100%; object-fit: cover; }
.wsg-top .wsg-top-campaign__visual:has(img) { padding: 0; }
.wsg-top .wsg-top-campaign__body { padding: 16px 18px; }
.wsg-top .wsg-top-campaign__title { margin: 0 0 4px; font-weight: 700; color: var(--color-text-emphasis); }
.wsg-top .wsg-top-campaign__period { margin: 0 0 12px; font-size: 13px; color: var(--color-text-subtle); }

/* 5. Shop Feed: the existing cards (shop-feed-directory.css), four across */
.wsg-top .wsg-top-feed__items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wsg-top .directory-card__media--initial .directory-card__media-viewport { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--palette-blue-xlight); }
.wsg-top .directory-card__initial { color: var(--palette-navy-dark); font-weight: 800; font-size: 28px; }
/* The card's white button text; ".wsg-top a" above would make it inherit the dark text. */
.wsg-top .directory-card__button, .wsg-top .directory-card__button:hover { color: var(--color-bg); }

/* 6. New shops */
.wsg-top .wsg-top-shops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wsg-top .wsg-top-shop { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-bg); }
.wsg-top .wsg-top-shop__body { min-width: 0; }
.wsg-top .wsg-top-shop__name { display: block; color: var(--color-text-emphasis); }
.wsg-top .wsg-top-shop__category { font-size: 12px; color: var(--color-category-text); }
.wsg-top .wsg-top-shop__desc { margin: 6px 0 10px; font-size: 13px; color: var(--color-text-muted); }

/* 7. Purchase request */
.wsg-top .wsg-top-request { margin-top: 8px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px 28px; border-radius: 16px; border: 2px solid var(--color-surface); background: var(--color-bg); }
.wsg-top .wsg-top-request h2 { font-size: 20px; }
.wsg-top .wsg-top-request p { margin: 6px 0 0; color: var(--color-text-muted); }
.wsg-top > .wsg-top-section:last-child { padding-bottom: 56px; }

@media (max-width: 1024px) {
  .wsg-top .wsg-top-quick { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wsg-top .wsg-top-feed__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wsg-top .wsg-top-shops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wsg-top .wsg-top-urgent__inner { padding-left: 16px; padding-right: 16px; }
  .wsg-top .wsg-top-hero__inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 16px 24px; }
  .wsg-top .wsg-top-hero__title { font-size: 27px; }
  .wsg-top .wsg-top-hero__lead { font-size: 15px; margin-bottom: 16px; }
  .wsg-top .wsg-top-hero__links .wsg-top-button { padding: 9px 16px; font-size: 14px; }
  .wsg-top .wsg-top-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wsg-top .wsg-top-points li { padding: 10px 8px; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; }
  .wsg-top .wsg-top-points__icon { width: 36px; height: 36px; font-size: 11px; }
  .wsg-top .wsg-top-points__title { font-size: 13px; line-height: 1.35; }
  .wsg-top .wsg-top-points__desc { display: none; }
  .wsg-top .wsg-top-section { padding: 28px 16px 4px; }
  .wsg-top .wsg-top-section h2 { font-size: 20px; }
  .wsg-top .wsg-top-section__foot .wsg-top-button { width: 100%; justify-content: center; }
  .wsg-top .wsg-top-find__box { padding: 16px; }
  .wsg-top .wsg-top-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .wsg-top .wsg-top-chips a { white-space: nowrap; }
  .wsg-top .wsg-top-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wsg-top .wsg-top-logo { width: 52px; height: 52px; font-size: 17px; }
  .wsg-top .wsg-top-band__inner { grid-template-columns: 1fr; padding: 20px 16px; }
  .wsg-top .wsg-top-tiles { grid-template-columns: 1fr; }
  .wsg-top .wsg-top-campaigns { grid-template-columns: 1fr; }
  .wsg-top .wsg-top-campaign { grid-template-columns: 1fr; }
  .wsg-top .wsg-top-campaign__visual { min-height: 110px; }
  .wsg-top .wsg-top-feed__items { gap: 10px; }
  /* Two existing Shop Feed cards side by side (mockup R6): less padding so the text keeps its width. */
  .wsg-top .wsg-top-feed .directory-card { padding: 4px; }
  .wsg-top .wsg-top-feed .directory-card__header { gap: 6px; }
  .wsg-top .wsg-top-feed .directory-card__shop-logo { width: 32px; height: 32px; }
  .wsg-top .wsg-top-shops { grid-template-columns: 1fr; }
  .wsg-top .wsg-top-shop { grid-template-columns: 52px 1fr; }
  .wsg-top .wsg-top-request { padding: 18px; }
}
