/* Shared PLUMBERS site chrome. Page-specific styles remain responsible for the workspace below. */

:root {
  --site-ink: #14253a;
  --site-muted: #5f6d7d;
  --site-cream: #f3ead7;
  --site-paper: #fffaf0;
  --site-night: #071522;
  --site-night-raised: #0d263b;
  --site-copper: #c87843;
  --site-copper-light: #efa56f;
  --site-copper-dark: #713719;
  --site-gold: #edc35c;
  --site-green: #47b582;
  --site-line-light: rgb(255 255 255 / 13%);
  --site-line-dark: rgb(20 37 58 / 16%);
  --site-shell: 1180px;
  --site-radius: 20px;
  --site-shadow: 0 20px 56px rgb(5 16 26 / 18%);
}

html {
  scroll-padding-top: 116px;
}

body.plumbers-site {
  min-width: 0;
  font-size: 17px;
  line-height: 1.55;
}

body.plumbers-site :where(button, input, select, textarea) {
  font-size: 1rem;
}

body.plumbers-site :where(button, a) {
  -webkit-tap-highlight-color: transparent;
}

body.plumbers-site :where(.eyebrow, .game-kicker, .panel-kicker) {
  font-size: 0.82rem;
  line-height: 1.35;
}

body.plumbers-site .site-header,
body.plumbers-site .preview-toolbar {
  position: sticky;
  top: 12px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(calc(100% - 32px), var(--site-shell));
  min-height: 72px;
  margin: 12px auto 0;
  padding: 10px 12px 10px 14px;
  color: #fff7e7;
  background:
    linear-gradient(118deg, rgb(255 255 255 / 6%), transparent 34%),
    rgb(7 21 34 / 96%);
  border: 1px solid rgb(237 195 92 / 22%);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgb(3 13 22 / 30%);
  backdrop-filter: blur(18px);
}

body.plumbers-site .site-header .brand,
body.plumbers-site .preview-toolbar .brand {
  display: flex;
  align-items: center;
  min-width: max-content;
  gap: 11px;
  color: #fff8e9;
  text-decoration: none;
}

body.plumbers-site .site-header :where(.brand__mark, .brand-mark),
body.plumbers-site .preview-toolbar :where(.brand__mark, .brand-mark) {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(145deg, #f4ca67, #b76b35);
  border: 1px solid #713719;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgb(255 244 204 / 75%), 0 7px 18px rgb(0 0 0 / 28%);
}

body.plumbers-site .site-header :where(.brand__mark, .brand-mark) img,
body.plumbers-site .preview-toolbar :where(.brand__mark, .brand-mark) img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

body.plumbers-site .site-header :where(.brand__name, .brand__copy strong, .brand-copy strong),
body.plumbers-site .preview-toolbar .brand-copy strong {
  display: block;
  color: #fff8e9;
  font-family: var(--font-display, "Plumbers Display", "Arial Black", sans-serif);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
}

body.plumbers-site .site-header :where(.brand__copy, .brand-copy, .brand__lockup) {
  display: grid;
  gap: 5px;
}

body.plumbers-site .site-header :where(.brand__copy small, .brand-copy small, .brand__lockup small) {
  color: #cbbda7;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: none;
}

body.plumbers-site .global-nav,
body.plumbers-site .preview-toolbar nav {
  display: flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
  padding: 0;
  gap: 2px;
  background: transparent;
}

body.plumbers-site .global-nav a,
body.plumbers-site .preview-toolbar nav a {
  position: relative;
  display: grid;
  min-width: auto;
  min-height: 42px;
  padding: 10px 12px;
  place-items: center;
  color: #d9d1c1;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-family: var(--font-work, "Plumbers Work", "Arial Narrow", sans-serif);
  font-size: 0.89rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  transition: color 150ms ease, background 150ms ease;
}

body.plumbers-site .global-nav a::before,
body.plumbers-site .preview-toolbar nav a::before {
  display: none;
}

body.plumbers-site .global-nav a:hover,
body.plumbers-site .global-nav a:focus-visible,
body.plumbers-site .global-nav a[aria-current="page"],
body.plumbers-site .preview-toolbar nav a:hover,
body.plumbers-site .preview-toolbar nav a:focus-visible,
body.plumbers-site .preview-toolbar nav a[aria-current="page"] {
  color: #fff9eb;
  background: rgb(255 255 255 / 8%);
  outline: none;
  transform: none;
}

body.plumbers-site .global-nav a[aria-current="page"]::after,
body.plumbers-site .preview-toolbar nav a[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  background: var(--site-copper-light);
  border-radius: 999px;
  content: "";
}

body.plumbers-site .global-nav__casino {
  color: #f6d88c;
}

body.plumbers-site .global-nav__casino-lights {
  display: none;
}

body.plumbers-site :where(.header-actions, .wallet-controls) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 7px;
}

body.plumbers-site .site-header :where(
  #wallet-button,
  #connect-wallet,
  #shell-wallet-button,
  .site-wallet-button,
  .button--nav,
  .wallet-button,
  .button-small
) {
  position: relative;
  min-width: 130px;
  min-height: 46px;
  margin: 0;
  padding: 10px 15px;
  overflow: hidden;
  color: #35180a;
  background:
    linear-gradient(90deg, rgb(255 235 216 / 17%), transparent 23% 74%, rgb(80 30 11 / 16%)),
    linear-gradient(145deg, #efaf79, #bd6b3d 45%, #93431f);
  border: 1px solid #6b3216;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgb(255 238 219 / 82%),
    inset 0 -2px 0 rgb(74 27 9 / 46%),
    0 8px 19px rgb(0 0 0 / 27%);
  font-family: var(--font-slab, "Plumbers Slab", Rockwell, Georgia, serif);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.025em;
  line-height: 1;
  text-shadow: 0 1px 0 rgb(248 191 142 / 55%);
  text-transform: none;
  white-space: nowrap;
}

body.plumbers-site .site-header :where(
  #wallet-button,
  #connect-wallet,
  #shell-wallet-button,
  .site-wallet-button,
  .button--nav,
  .wallet-button,
  .button-small
):hover:not(:disabled) {
  color: #2b1005;
  background: linear-gradient(145deg, #f7bf8d, #d17a49 45%, #a34e29);
  transform: translateY(-1px);
}

body.plumbers-site .site-header .network-chip {
  display: none;
}

body.plumbers-site .site-header .wallet-icon-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 9px;
  color: #f0d5a5;
  background: rgb(255 255 255 / 7%);
  border: 1px solid var(--site-line-light);
  border-radius: 11px;
  box-shadow: none;
}

body.plumbers-site .site-header .wallet-icon-button svg {
  width: 21px;
  height: 21px;
}

body.plumbers-site :where(.button--primary, .button--copper, .portal-copper-button) {
  min-height: 48px;
  padding: 11px 18px;
  color: #32170a;
  background: linear-gradient(145deg, #efb07c, #bf6d3f 48%, #944520);
  border: 1px solid #713719;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgb(255 238 220 / 78%), 0 8px 19px rgb(46 20 7 / 20%);
  font-family: var(--font-slab, "Plumbers Slab", Rockwell, Georgia, serif);
  font-weight: 850;
  text-shadow: 0 1px 0 rgb(248 191 142 / 56%);
}

body.plumbers-site :where(.button--primary, .button--copper, .portal-copper-button):hover:not(:disabled) {
  background: linear-gradient(145deg, #f6c08f, #d07a49 48%, #a34e28);
  transform: translateY(-1px);
}

body.plumbers-site :where(input, select, textarea) {
  min-height: 48px;
  line-height: 1.35;
}

body.plumbers-site :where(.site-footer, footer.shell) {
  color: #d8d2c6;
  background: var(--site-night);
  border-color: rgb(237 195 92 / 17%);
}

body.plumbers-site :where(.site-footer, footer.shell) a {
  color: inherit;
}

body.plumbers-site :where(.site-footer, footer.shell) p,
body.plumbers-site :where(.site-footer, footer.shell) small {
  color: #aaa69e;
  font-size: 0.86rem;
}

/* One visual language for the public tools: dark workshop introductions, warm work surfaces. */
body.plumbers-site :where(
  .hero.section-shell,
  main > .hero.shell,
  .directory-hero.section-shell,
  .guide-hero.page-shell,
  .create-heading,
  .docs-hero
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff8e9;
  background:
    radial-gradient(circle at 84% 24%, rgb(239 195 92 / 15%), transparent 27%),
    linear-gradient(120deg, rgb(255 255 255 / 5%), transparent 37%),
    linear-gradient(145deg, #12334d 0%, #081a2a 62%, #050f19 100%);
  border: 1px solid rgb(239 195 92 / 21%);
  border-radius: 28px;
  box-shadow: var(--site-shadow);
}

body.plumbers-site :where(
  .hero.section-shell,
  main > .hero.shell,
  .directory-hero.section-shell,
  .guide-hero.page-shell
)::before,
body.plumbers-site :where(.create-heading, .docs-hero)::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(90deg, black, transparent 82%);
}

body.plumbers-site :where(
  .hero.section-shell,
  main > .hero.shell,
  .directory-hero.section-shell,
  .guide-hero.page-shell,
  .create-heading,
  .docs-hero
) :where(h1, h2, h3) {
  color: #fff8e9;
}

body.plumbers-site :where(
  .hero.section-shell,
  main > .hero.shell,
  .directory-hero.section-shell,
  .guide-hero.page-shell,
  .create-heading,
  .docs-hero
) :where(.eyebrow, .hero__eyebrow) {
  color: #efa975;
}

body.plumbers-site :where(
  .hero.section-shell,
  main > .hero.shell,
  .directory-hero.section-shell,
  .guide-hero.page-shell,
  .create-heading,
  .docs-hero
) :where(.hero__lede, .hero-copy, .guide-hero__lede),
body.factory-page :where(.create-heading, .docs-hero) > p {
  color: #d2d6d3;
}

body.farm-page .hero.section-shell {
  width: min(calc(100% - 32px), var(--site-shell));
  min-height: 570px;
  margin-top: 14px;
  padding: 52px clamp(32px, 6vw, 72px) 0;
}

body.farm-page .hero__tagline,
body.farm-page .hero .text-link {
  color: #fff1d8;
}

body.farm-page .hero__halo {
  background: radial-gradient(circle, rgb(239 195 92 / 25%) 0 42%, rgb(199 120 67 / 10%) 43% 63%, transparent 64%);
}

body.gauge-page main > .hero.shell,
body.names-page main > .hero.shell {
  width: min(calc(100% - 32px), var(--site-shell));
  min-height: 520px;
  margin-top: 14px;
  padding: clamp(48px, 6vw, 72px);
}

body.gauge-page .hero-copy,
body.names-page .hero__copy > p:not(.eyebrow) {
  color: #d2d6d3;
}

body.gauge-page .hero-actions .button {
  color: #32170a;
  background: linear-gradient(145deg, #efb07c, #bf6d3f 48%, #944520);
  border: 1px solid #713719;
}

body.gauge-page .hero-actions .text-link {
  color: #fff1d8;
}

body.gauge-page .gauge-halo {
  background: radial-gradient(circle, rgb(244 200 74 / 29%) 0 39%, rgb(244 200 74 / 8%) 40% 57%, transparent 70%);
}

body.names-page .deployment-state {
  color: #f3dfbd;
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 16%);
}

body.factory-page .directory-hero.section-shell {
  width: min(calc(100% - 32px), var(--site-shell));
  min-height: 465px;
  margin-top: 14px;
  padding: clamp(52px, 7vw, 86px);
}

body.factory-page :where(.directory-hero, .create-heading, .docs-hero) h1 span {
  color: #efa975;
}

body.factory-page :where(.create-heading, .docs-hero) {
  margin-top: 18px;
  padding: clamp(34px, 5vw, 62px);
}

body.guide-page .guide-hero.page-shell {
  width: min(calc(100% - 32px), var(--site-shell));
  align-items: center;
  margin-top: 14px;
  padding: clamp(48px, 6vw, 76px);
}

body.guide-page .guide-hero__facts {
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 16%);
  box-shadow: none;
}

body.guide-page .guide-hero__facts div {
  border-color: rgb(255 255 255 / 13%);
}

body.guide-page .guide-hero__facts span {
  color: #bfc7c7;
}

body.guide-page .guide-hero__facts strong {
  color: #fff4df;
}

body.system-map-page .site-header.preview-toolbar .brand {
  min-width: max-content;
  min-height: 0;
  padding: 0;
  color: #fff8e9;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  text-transform: none;
}

@media (max-width: 980px) {
  body.plumbers-site .site-header,
  body.plumbers-site .preview-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  body.plumbers-site .global-nav,
  body.plumbers-site .preview-toolbar nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body.plumbers-site .global-nav::-webkit-scrollbar,
  body.plumbers-site .preview-toolbar nav::-webkit-scrollbar {
    display: none;
  }

  body.plumbers-site .global-nav a,
  body.plumbers-site .preview-toolbar nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  body.plumbers-site :where(
    .hero.section-shell,
    main > .hero.shell,
    .directory-hero.section-shell,
    .guide-hero.page-shell,
    .create-heading,
    .docs-hero
  ) {
    border-radius: 23px;
  }

  body.farm-page .hero.section-shell,
  body.gauge-page main > .hero.shell,
  body.names-page main > .hero.shell,
  body.factory-page .directory-hero.section-shell,
  body.guide-page .guide-hero.page-shell {
    width: calc(100% - 16px);
    padding-inline: 24px;
  }

  body.farm-page .hero.section-shell {
    padding-top: 48px;
  }

  body.gauge-page main > .hero.shell,
  body.names-page main > .hero.shell {
    padding-block: 48px 36px;
  }

  body.factory-page .directory-hero.section-shell {
    padding-block: 48px 38px;
  }

  body.factory-page :where(.create-heading, .docs-hero) {
    padding: 32px 24px;
  }

  body.guide-page .guide-hero.page-shell {
    padding-block: 48px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 152px;
  }

  body.plumbers-site {
    font-size: 16px;
  }

  body.plumbers-site .site-header,
  body.plumbers-site .preview-toolbar {
    top: 6px;
    width: min(calc(100% - 16px), var(--site-shell));
    margin-top: 6px;
    padding: 9px;
    border-radius: 15px;
  }

  body.plumbers-site .site-header :where(.brand__mark, .brand-mark),
  body.plumbers-site .preview-toolbar :where(.brand__mark, .brand-mark) {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }

  body.plumbers-site .site-header :where(.brand__mark, .brand-mark) img,
  body.plumbers-site .preview-toolbar :where(.brand__mark, .brand-mark) img {
    width: 35px;
    height: 35px;
  }

  body.plumbers-site .site-header :where(.brand__copy small, .brand-copy small, .brand__lockup small) {
    display: none;
  }

  body.plumbers-site .site-header :where(
    #wallet-button,
    #connect-wallet,
    #shell-wallet-button,
    .site-wallet-button,
    .button--nav,
    .wallet-button,
    .button-small
  ) {
    min-width: 108px;
    min-height: 42px;
    padding-inline: 11px;
    font-size: 0.81rem;
  }

  body.plumbers-site .global-nav a,
  body.plumbers-site .preview-toolbar nav a {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.84rem;
  }
}

@media (max-width: 420px) {
  body.plumbers-site .global-nav,
  body.plumbers-site .preview-toolbar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  body.plumbers-site .global-nav a,
  body.plumbers-site .preview-toolbar nav a {
    width: 100%;
    min-width: 0;
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.plumbers-site *,
  body.plumbers-site *::before,
  body.plumbers-site *::after {
    scroll-behavior: auto !important;
  }
}
