:root{--pn-blue:#1877f2;--pn-ink:#101828;--pn-muted:#475467;--pn-line:#e4e7ec;--pn-soft:#f6f8fb}*{box-sizing:border-box}body{margin:0;background:var(--pn-soft);color:var(--pn-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.public-topbar{position:relative;top:auto;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px max(16px,calc((100% - 1120px)/2));background:rgba(255,255,255,.94);border-bottom:1px solid var(--pn-line);backdrop-filter:blur(14px)}.public-brand{display:flex;align-items:center;gap:10px;color:var(--pn-ink);text-decoration:none;font-weight:850}.public-brand-logo{display:grid;place-items:center}.public-nav{display:flex;gap:7px;flex-wrap:wrap}.public-nav a{color:#344054;text-decoration:none;font-weight:700;padding:9px 11px;border-radius:10px}.public-nav a:hover{background:#eff4ff;color:#175cd3}.public-shell{width:min(1060px,calc(100% - 30px));margin:38px auto 70px}.public-hero{padding:42px;border-radius:28px;background:linear-gradient(145deg,#0b1739,#1849a9);color:#fff;box-shadow:0 24px 60px rgba(16,24,40,.18)}.public-kicker{font-size:13px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#b2ccff}.public-hero h1{font-size:clamp(36px,5vw,58px);line-height:1.08;letter-spacing:-.045em;margin:14px 0}.public-hero p{max-width:800px;line-height:1.8;font-size:18px;color:#e4e7ec}.public-content{margin-top:22px;padding:34px;border-radius:24px;background:#fff;border:1px solid var(--pn-line);box-shadow:0 10px 35px rgba(16,24,40,.06)}.public-content h2{font-size:28px;line-height:1.2;margin:34px 0 12px}.public-content h2:first-child{margin-top:0}.public-content h3{font-size:21px;margin:25px 0 8px}.public-content p,.public-content li{font-size:16px;line-height:1.82;color:var(--pn-muted)}.public-content ul,.public-content ol{padding-left:22px}.public-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:24px 0}.public-grid article{padding:22px;border:1px solid var(--pn-line);border-radius:18px;background:#f9fafb}.public-grid h3{margin-top:0}.public-note{padding:18px;border:1px solid #fedf89;border-radius:16px;background:#fffaeb;color:#7a2e0e;line-height:1.65}.public-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.public-button{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:12px;background:var(--pn-blue);color:#fff;text-decoration:none;font-weight:800}.public-button.secondary{background:#fff;color:#175cd3;border:1px solid #b2ccff}.public-footer{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;padding:26px 16px;background:#fff;border-top:1px solid var(--pn-line)}.public-footer a{color:#475467;text-decoration:none;font-weight:650}@media(max-width:720px){.public-topbar{align-items:flex-start}.public-nav{display:none}.public-shell{margin-top:18px}.public-hero,.public-content{padding:24px}.public-hero p{font-size:16px}.public-grid{grid-template-columns:1fr}.public-actions,.public-button{width:100%}}

/* Phase 17: shared admin-controlled public branding */
.public-brand{display:inline-flex;align-items:center;gap:11px;min-width:0}
.public-brand-logo{width:44px;height:44px;border-radius:12px;overflow:visible;display:grid;place-items:center;background:transparent;flex:0 0 44px;border:0;box-shadow:none}
.public-brand-logo img{width:44px;height:44px;object-fit:contain;display:block;background:transparent;border:0;border-radius:10px}
.public-brand-copy{display:flex;flex-direction:column;min-width:0;line-height:1.12}
.public-brand-copy b{font-size:17px;color:#172033;white-space:nowrap}
.public-brand-copy small{font-size:10px;color:#64748b;margin-top:3px;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.public-nav a.active{color:#1877f2;background:#e8f1ff}
.public-footer-brand{display:inline-flex;align-items:center;gap:8px;margin-right:auto;color:#172033}
.public-footer-brand img{width:30px;height:30px;border-radius:9px;object-fit:contain}
@media(max-width:720px){
 .public-topbar{padding-left:16px;padding-right:16px;gap:12px}
 .public-brand-logo{width:38px;height:38px;flex-basis:38px}
 .public-brand-copy small{display:none}
 .public-nav{overflow-x:auto;scrollbar-width:none;justify-content:flex-start}
 .public-nav::-webkit-scrollbar{display:none}
 .public-footer-brand{width:100%;justify-content:center;margin:0 0 5px}
}

/* Phase 18: transparent public branding and stable header alignment */
.public-topbar{min-height:76px}
.public-brand{gap:12px;max-width:min(48vw,310px)}
.public-brand-copy{width:auto!important;height:auto!important;background:transparent!important;border-radius:0!important;display:flex!important;place-items:initial!important;color:inherit!important;font-size:inherit!important}
.public-brand-copy b{font-size:18px;line-height:1.05}
.public-brand-copy small{font-size:10px;line-height:1.2}
.public-brand-logo,.public-brand-logo img{background-color:transparent!important}
.public-footer-brand img{background:transparent!important}
@media(max-width:720px){.public-topbar{min-height:64px}.public-brand{max-width:70vw}.public-brand-logo,.public-brand-logo img{width:40px;height:40px}.public-brand-logo{flex-basis:40px}.public-brand-copy b{font-size:17px}}

/* Audit Fix: stable responsive public-page layout */
html,body{max-width:100%;overflow-x:hidden}
img,video,audio,iframe{max-width:100%}
img,video{height:auto}
.public-shell,.public-hero,.public-content,.public-grid,.public-grid article{min-width:0}
.public-content{overflow-wrap:anywhere;word-break:normal}
.public-content table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse}
.public-content pre,.public-content code{max-width:100%;overflow-x:auto;white-space:pre-wrap}
.public-topbar>*{min-width:0}
@media(max-width:720px){
  .public-topbar{align-items:center;position:relative}
  .public-shell{width:min(100% - 24px,1060px);margin:16px auto 42px}
  .public-hero{padding:24px 20px;border-radius:20px}
  .public-hero h1{font-size:clamp(30px,10vw,42px);letter-spacing:-.03em}
  .public-content{margin-top:16px;padding:22px 18px;border-radius:18px}
  .public-content h2{font-size:24px;margin-top:28px}
  .public-content h3{font-size:19px}
  .public-grid{gap:14px}
  .public-grid article{padding:18px}
}

/* Public Header Unification Patch 2026.09.14 */
.pn-landing-header{min-height:112px;padding:0 20px;gap:18px;background:#fff;border-bottom:1px solid #e4eaf3;box-shadow:0 5px 18px rgba(15,23,42,.04);backdrop-filter:none}
.pn-landing-brand{gap:11px;max-width:none;flex:0 1 auto}
.pn-landing-brand .public-brand-logo,.pn-landing-brand .public-brand-logo img{width:40px;height:40px;flex-basis:40px;border-radius:11px}
.pn-landing-brand .public-brand-copy b{font-size:22px;font-weight:800;color:#14213d;letter-spacing:-.03em}
.pn-landing-brand .public-brand-copy small{font-size:8px;color:#64748b;max-width:180px;margin-top:4px}
.pn-public-live{display:inline-flex;align-items:center;gap:6px;margin-left:7px;padding:6px 11px;border:1px solid #9de9ca;border-radius:999px;background:#edfff7;color:#0c9b69;font-size:10px;font-weight:800;letter-spacing:.08em}
.pn-public-live i{width:5px;height:5px;border-radius:50%;background:#15c785}
.pn-public-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.pn-public-actions a,.pn-public-language summary{min-height:42px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;border-radius:12px;font-size:14px;font-weight:700;transition:.18s ease;cursor:pointer}
.pn-public-nav-btn{gap:7px;padding:0 13px;border:1px solid #d6e3f4;color:#1e293b;background:#f8fbff;box-shadow:0 4px 12px rgba(15,23,42,.04)}
.pn-public-nav-btn.marketplace{background:#effdf9;border-color:#bdeee0;color:#087b69}
.pn-public-nav-btn.blog{background:#f2f6ff;border-color:#cbdcff;color:#2359d7}
.pn-public-nav-btn:hover,.pn-public-nav-btn.active{transform:translateY(-1px);box-shadow:0 7px 16px rgba(15,23,42,.08)}
.pn-public-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.pn-public-signin{padding:0 6px;color:#1e293b;font-weight:500!important}
.pn-public-signin:hover{color:#1768e5}
.pn-public-join{padding:0 16px;color:#fff;background:#2378f3;box-shadow:0 8px 18px rgba(35,120,243,.24)}
.pn-public-join:hover{background:#1468e6;transform:translateY(-1px)}
.pn-public-language{position:relative}
.pn-public-language summary{width:42px;border:1px solid #d6e3f4;background:#f8fbff;color:#334155;list-style:none}
.pn-public-language summary::-webkit-details-marker{display:none}
.pn-public-language-panel{position:absolute;right:0;top:calc(100% + 9px);z-index:100;display:grid;min-width:190px;padding:8px;background:#fff;border:1px solid #dce5f2;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.16)}
.pn-public-language-panel button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 11px;border:0;border-radius:9px;background:transparent;color:#334155;font:inherit;font-size:13px;cursor:pointer;text-align:left}
.pn-public-language-panel button:hover,.pn-public-language-panel button.active{background:#eef5ff;color:#1768e5}
@media(max-width:1050px){.pn-landing-header{min-height:76px}.pn-public-nav-btn span{display:none}.pn-public-nav-btn{width:42px;padding:0}.pn-public-actions{gap:6px}.pn-public-join{padding:0 12px}.pn-landing-brand .public-brand-copy small{display:none}}
@media(max-width:720px){.pn-landing-header{min-height:64px;padding:8px 12px;align-items:center}.pn-landing-brand{max-width:none}.pn-landing-brand .public-brand-logo,.pn-landing-brand .public-brand-logo img{width:38px;height:38px;flex-basis:38px}.pn-landing-brand .public-brand-copy b{font-size:18px}.pn-public-live{display:none}.pn-public-actions{margin-left:auto}.pn-public-nav-btn.marketplace,.pn-public-nav-btn.jobs,.pn-public-nav-btn.blog{display:none}.pn-public-signin{font-size:13px;padding:0 3px}.pn-public-join{min-height:38px!important;padding:0 11px!important;font-size:12px!important}.pn-public-language summary{width:38px;min-height:38px}.pn-public-language-panel{position:fixed;top:66px;right:10px}}
@media(max-width:430px){.pn-landing-brand .public-brand-copy{display:none!important}.pn-public-actions{gap:5px}.pn-public-signin{font-size:12px}.pn-public-join{padding:0 9px!important}}

/* Unified Public Page Visual Design 2026.09.15 */
body{background:#f7f9fc}
.public-shell{width:min(1180px,calc(100% - 32px));margin:34px auto 56px}
.public-hero{position:relative;min-height:250px;display:flex;flex-direction:column;justify-content:center;padding:48px clamp(28px,5vw,64px);padding-right:min(42vw,430px);overflow:hidden;border:1px solid #e3eaf4;border-radius:26px;background:linear-gradient(135deg,#fff 0%,#fff 62%,#f2f7ff 100%);color:#101828;box-shadow:0 14px 38px rgba(15,23,42,.07)}
.public-hero::before{content:"Home  ›";position:absolute;left:clamp(28px,5vw,64px);top:28px;color:#1768e5;font-size:12px;font-weight:700;letter-spacing:.01em}
.public-hero::after{content:"P";position:absolute;right:clamp(28px,5vw,68px);top:50%;width:210px;height:160px;transform:translateY(-50%);display:grid;place-items:center;border-radius:45% 55% 58% 42%/50% 45% 55% 50%;background:radial-gradient(circle at 70% 25%,rgba(62,124,255,.24),transparent 32%),linear-gradient(145deg,#eff5ff,#e5eefc);color:#0d6bbf;font-size:66px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(126,158,211,.15)}
.public-kicker{display:none}
.public-hero h1{position:relative;z-index:1;margin:10px 0 10px;font-size:clamp(34px,4vw,54px);line-height:1.06;letter-spacing:-.045em;color:#0f1f45}
.public-hero p{position:relative;z-index:1;max-width:720px;margin:0;color:#53627a;font-size:17px;line-height:1.7}
[data-public-page="marketplace"] .public-hero::after{content:"🛍";font-size:70px;background:linear-gradient(145deg,#eef4ff,#f6f9ff)}
[data-public-page="jobs"] .public-hero::after{content:"📍";font-size:72px;background:linear-gradient(145deg,#edf9f4,#f5fbf8)}
[data-public-page="contact"] .public-hero::after{content:"✉";font-size:74px;color:#2f7be8;background:linear-gradient(145deg,#effbf7,#edf5ff)}
[data-public-page="help"] .public-hero::after{content:"🎧";font-size:68px;background:linear-gradient(145deg,#f3f7ff,#eef3fb)}
[data-public-page="how"] .public-hero::after{content:"1  2  3";width:250px;font-size:28px;letter-spacing:.18em;color:#087b69;background:linear-gradient(145deg,#effcf8,#f4f8ff)}
[data-public-page="safety"] .public-hero::after{content:"✓";font-size:78px;color:#fff;background:linear-gradient(145deg,#2f8cff,#075fd1);clip-path:polygon(50% 0,92% 16%,88% 68%,50% 100%,12% 68%,8% 16%);border-radius:0}
[data-public-page="editorial"] .public-hero::after{content:"✎";font-size:76px;color:#2f72d8;background:linear-gradient(145deg,#edf3ff,#f8fbff)}
.public-content{margin-top:22px;padding:clamp(24px,4vw,44px);border:1px solid #e3eaf4;border-radius:24px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.055)}
.public-grid article{background:linear-gradient(145deg,#fff,#f8faff);border-color:#e3eaf4;box-shadow:0 8px 20px rgba(15,23,42,.035)}
.public-button{box-shadow:0 8px 18px rgba(24,119,242,.22)}
.pn-unified-footer{display:block;padding:0!important;background:#fff;border-top:1px solid #e1e8f2;box-shadow:0 -5px 20px rgba(15,23,42,.025)}
.pn-footer-links{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;max-width:1180px;margin:0 auto;padding:27px 20px 22px}
.pn-footer-links a{color:#53627a;font-size:12px;font-weight:500;text-decoration:none;transition:.18s ease}
.pn-footer-links a:hover{color:#1768e5}
.pn-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1180px;margin:0 auto;padding:18px 20px 25px;border-top:1px solid #eef2f7;color:#6b778c}
.pn-footer-bottom small{font-size:12px}
.pn-footer-social{display:flex;align-items:center;gap:12px}
.pn-footer-social a{width:30px;height:30px;display:grid;place-items:center;border:1px solid #dfe7f2;border-radius:50%;background:#fff;color:#1f365f;text-decoration:none;font-size:13px;font-weight:800;transition:.18s ease}
.pn-footer-social a:hover{transform:translateY(-2px);border-color:#b9d0f4;color:#1768e5;box-shadow:0 6px 14px rgba(23,104,229,.12)}
@media(max-width:760px){
 .public-shell{width:min(100% - 20px,1180px);margin:14px auto 34px}
 .public-hero{min-height:290px;padding:64px 20px 130px;border-radius:20px}
 .public-hero::before{left:20px;top:22px}
 .public-hero::after{right:50%;top:auto;bottom:12px;width:170px;height:105px;transform:translateX(50%);font-size:52px}
 .public-hero h1{font-size:clamp(30px,10vw,42px)}
 .public-hero p{font-size:15px;line-height:1.65}
 .public-content{padding:22px 18px;border-radius:19px}
 .pn-footer-links{gap:13px 18px;padding:24px 16px 20px}
 .pn-footer-links a{font-size:11px}
 .pn-footer-bottom{flex-direction:column;text-align:center;padding-bottom:28px}
}


/* Public Pages Final Visual Patch 2026.09.16
   Landing-height non-sticky header, multicolour light hero and one-line footer. */
.public-topbar.pn-landing-header{
  position:relative!important;
  top:auto!important;
  z-index:20;
  min-height:112px!important;
  height:112px;
  padding:0 20px!important;
  background:#fff!important;
  border-bottom:1px solid #e4eaf3!important;
  box-shadow:0 5px 18px rgba(15,23,42,.04)!important;
  backdrop-filter:none!important;
}
.public-hero{
  background:
    radial-gradient(circle at 13% 20%,rgba(255,218,231,.66),transparent 32%),
    radial-gradient(circle at 81% 14%,rgba(220,211,255,.72),transparent 34%),
    radial-gradient(circle at 73% 82%,rgba(203,244,229,.72),transparent 36%),
    radial-gradient(circle at 25% 88%,rgba(255,239,194,.66),transparent 34%),
    linear-gradient(135deg,#fffafb 0%,#f8fbff 46%,#f8fff9 100%)!important;
  color:#0d1d3d!important;
}
.public-hero h1{color:#0b1c3f!important}
.public-hero p{color:#263b5f!important}
.public-hero::before{color:#1768e5!important}
.pn-unified-footer{padding:0!important;background:#fff!important;border-top:1px solid #e1e8f2!important}
.pn-footer-links{padding:25px 20px!important;min-height:74px}
.pn-footer-bottom,.pn-footer-social{display:none!important}
@media(max-width:1050px){
  .public-topbar.pn-landing-header{min-height:76px!important;height:76px}
}
@media(max-width:720px){
  .public-topbar.pn-landing-header{position:relative!important;min-height:64px!important;height:64px;padding:8px 12px!important}
  .pn-footer-links{min-height:auto;padding:22px 15px!important}
}

/* Public Marketplace + Jobs header/footer support 2026.09.18 */
.pn-public-directory{width:min(1180px,calc(100% - 32px));margin:32px auto 56px}
.pn-directory-hero{position:relative;overflow:hidden;padding:44px clamp(24px,5vw,58px);border:1px solid #e2e9f3;border-radius:26px;background:radial-gradient(circle at 10% 15%,rgba(255,218,231,.68),transparent 34%),radial-gradient(circle at 86% 15%,rgba(219,211,255,.75),transparent 35%),radial-gradient(circle at 76% 88%,rgba(201,244,229,.75),transparent 38%),linear-gradient(135deg,#fffafb,#f8fbff 50%,#f8fff9);box-shadow:0 14px 38px rgba(15,23,42,.07)}
.pn-directory-hero h1{margin:0 0 12px;color:#0b1c3f;font-size:clamp(34px,4vw,54px);line-height:1.08;letter-spacing:-.04em}.pn-directory-hero p{max-width:730px;margin:0;color:#324867;font-size:17px;line-height:1.7}.pn-directory-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.pn-directory-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:12px;text-decoration:none;font-weight:800}.pn-directory-actions .primary{background:#1877f2;color:#fff}.pn-directory-actions .secondary{border:1px solid #c7d8f2;background:#fff;color:#185eb9}
.pn-directory-toolbar{display:flex;gap:12px;align-items:center;margin:22px 0;padding:14px;border:1px solid #e3eaf4;border-radius:18px;background:#fff;box-shadow:0 9px 24px rgba(15,23,42,.045)}.pn-directory-toolbar form{display:flex;gap:10px;width:100%;flex-wrap:wrap}.pn-directory-toolbar input,.pn-directory-toolbar select{min-height:44px;padding:0 13px;border:1px solid #d8e2ef;border-radius:11px;background:#fbfdff;color:#17233b;font:inherit}.pn-directory-toolbar input{flex:1 1 260px}.pn-directory-toolbar button{min-height:44px;padding:0 18px;border:0;border-radius:11px;background:#1877f2;color:#fff;font-weight:800;cursor:pointer}
.pn-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.pn-directory-card{min-width:0;overflow:hidden;border:1px solid #e1e8f2;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.055)}.pn-directory-card-media{aspect-ratio:16/10;background:linear-gradient(145deg,#edf4ff,#f8fbff);overflow:hidden}.pn-directory-card-media img{width:100%;height:100%;object-fit:cover;display:block}.pn-directory-card-body{padding:18px}.pn-directory-card h2{margin:0 0 8px;color:#12213e;font-size:20px;line-height:1.25}.pn-directory-card p{margin:0 0 12px;color:#5b6980;line-height:1.55}.pn-directory-meta{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.pn-directory-meta span{padding:6px 9px;border-radius:999px;background:#f0f6ff;color:#315b91;font-size:12px;font-weight:700}.pn-directory-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.pn-directory-price{color:#0c7b58;font-size:19px;font-weight:900}.pn-directory-open{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border-radius:10px;background:#1877f2;color:#fff;text-decoration:none;font-size:13px;font-weight:800}.pn-directory-empty{grid-column:1/-1;padding:34px;border:1px dashed #cbd8e8;border-radius:18px;background:#fff;text-align:center;color:#5b6980}.pn-directory-error{margin:18px 0;padding:14px 16px;border:1px solid #fecaca;border-radius:13px;background:#fff1f2;color:#9f1239}
@media(max-width:900px){.pn-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.pn-public-directory{width:min(100% - 20px,1180px);margin:14px auto 34px}.pn-directory-hero{padding:30px 20px;border-radius:20px}.pn-directory-hero p{font-size:15px}.pn-directory-actions,.pn-directory-actions a{width:100%}.pn-directory-grid{grid-template-columns:1fr}.pn-directory-toolbar form{display:grid;grid-template-columns:1fr}.pn-directory-toolbar input,.pn-directory-toolbar select,.pn-directory-toolbar button{width:100%}}

/* 2026.09.20 — Public header height parity with the landing page.
   Applies to every page rendered through public_brand_header(). */
.public-topbar.pn-landing-header{
  position:relative!important;
  top:auto!important;
  height:62px!important;
  min-height:62px!important;
  padding:0 20px!important;
  align-items:center!important;
  box-sizing:border-box!important;
}
.public-topbar.pn-landing-header .pn-landing-brand .public-brand-logo,
.public-topbar.pn-landing-header .pn-landing-brand .public-brand-logo img{
  width:40px!important;height:40px!important;flex-basis:40px!important;
}
.public-topbar.pn-landing-header .pn-public-actions a,
.public-topbar.pn-landing-header .pn-public-language summary{min-height:40px!important;height:40px!important}
@media(max-width:1050px){
  .public-topbar.pn-landing-header{height:62px!important;min-height:62px!important}
}
@media(max-width:720px){
  .public-topbar.pn-landing-header{height:62px!important;min-height:62px!important;padding:7px 10px!important}
  .public-topbar.pn-landing-header .pn-landing-brand .public-brand-logo,
  .public-topbar.pn-landing-header .pn-landing-brand .public-brand-logo img{width:40px!important;height:40px!important;flex-basis:40px!important}
}
