/* Shared page styles for Explore, Community, Learn and the footer pages (About, Contact, Privacy).
   Built on proto.css tokens and components. Page-specific styles live in explore.css, community.css, learn.css. */
.bf-main--flush { padding-top: 0; }

/* ---- hero (same family as Home's, shorter) */
.pg-hero { position: relative; z-index: 1; isolation: isolate; padding: clamp(34px, 5.5vw, 72px) 0 clamp(30px, 4.5vw, 56px); border-bottom: 1px solid var(--line-2); }
.pg-hero__art { position: absolute; inset: 0; z-index: -2; background: #0a131d url("/assets/bar-fight-brawl-v3-1440.webp") var(--art-pos, center 40%) / cover no-repeat; filter: saturate(.95) contrast(1.02); }
.pg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6,10,16,.98) 0%, rgba(6,10,16,.9) 42%, rgba(6,10,16,.66) 72%, rgba(6,10,16,.78) 100%),
  linear-gradient(180deg, rgba(6,10,16,.35) 0%, rgba(6,10,16,0) 36%, rgba(6,10,16,.55) 80%, var(--bg) 100%); }
.pg-hero::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 340px; height: 2px; background: linear-gradient(90deg, var(--cyan) 0 240px, rgba(60,198,244,0)); box-shadow: 0 0 18px rgba(60,198,244,.7); }
.pg-hero__in { position: relative; }
.pg-title { max-width: 17em; font: 700 clamp(2.1rem, 1rem + 3.4vw, 3.7rem)/1.05 var(--display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.pg-title em { font-style: normal; color: var(--cyan-hi); text-shadow: 0 0 36px rgba(60,198,244,.45); }
.pg-title em.pg-amber { color: var(--amber-hi); text-shadow: 0 0 36px rgba(253,192,76,.4); }
.pg-lead { margin-top: var(--s-4); max-width: 58ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); text-wrap: pretty; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.pg-stats { display: flex; flex-wrap: wrap; gap: 14px clamp(20px, 3.4vw, 44px); margin-top: clamp(22px, 3vw, 34px); padding-top: 20px; border-top: 1px solid rgba(74,112,137,.45); max-width: 800px; }
.pg-stats li { display: flex; flex-direction: column; gap: 4px; }
.pg-stats b { font: 700 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.pg-stats span { font: 600 12px/1.25 var(--display); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); max-width: 17ch; }
.pg-stats .live b { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }
.pg-stats .live b::before { content: ""; width: 9px; height: 9px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: bf-pulse 2.4s ease-in-out infinite; }
.pg-hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.pg-body { padding-top: 0; }

/* ---- page head (compact, no art) */
.pg-head { padding-top: var(--s-2); }
.pg-head .bf-lead { margin-top: var(--s-4); }

/* ---- lists, callouts, accordions, definition rows */
.pg-list { display: grid; gap: 8px; }
.pg-list > li { position: relative; padding-left: 20px; color: var(--text-2); line-height: 1.55; font-size: 15px; }
.pg-list > li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--cyan); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%); box-shadow: 0 0 8px rgba(60,198,244,.6); }
.pg-list b, .pg-list strong { color: var(--text); font-weight: 600; }
.pg-callout { position: relative; padding: var(--s-4) var(--s-4) var(--s-4) calc(var(--s-4) + 6px); background: var(--cyan-tint); border: 1px solid var(--cyan-lo); }
.pg-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cyan); box-shadow: 0 0 14px rgba(60,198,244,.5); }
.pg-callout--amber { background: var(--amber-tint); border-color: #6b5320; }
.pg-callout--amber::before { background: var(--amber); box-shadow: 0 0 14px rgba(253,192,76,.5); }
.pg-callout h3, .pg-callout .pg-callout__t { font: 700 15px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-hi); margin-bottom: 4px; }
.pg-callout--amber h3, .pg-callout--amber .pg-callout__t { color: var(--amber-hi); }
.pg-callout p { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 70ch; }
.pg-callout p + p { margin-top: 8px; }
.pg-acc { position: relative; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.pg-acc + .pg-acc { margin-top: -1px; }
.pg-acc > summary { position: relative; display: block; list-style: none; min-height: 56px; padding: 15px 56px 15px 18px; cursor: pointer; font: 600 16px/1.4 var(--body); color: var(--text); }
.pg-acc > summary::-webkit-details-marker { display: none; }
.pg-acc > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.pg-acc[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.pg-acc > summary:hover { background: rgba(60,198,244,.06); color: #fff; }
.pg-acc[open] > summary { color: #fff; background: linear-gradient(90deg, rgba(60,198,244,.12), rgba(60,198,244,0) 70%); box-shadow: inset 3px 0 0 var(--cyan); }
.pg-acc > summary small { display: block; margin-top: 2px; font: 400 13px/1.4 var(--body); color: var(--muted); }
.pg-acc__b { padding: 6px 18px 20px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.pg-acc__b p { max-width: 74ch; }
.pg-acc__b p + p, .pg-acc__b p + ul, .pg-acc__b ul + p { margin-top: 10px; }
.pg-acc__b h3 { margin: 16px 0 6px; font: 700 13px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.pg-acc__b a { color: var(--cyan-hi); }
.pg-acc__b code { padding: 1px 6px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--cyan-hi); }
.pg-acc.is-hit { border-color: var(--cyan); }
.pg-search { position: relative; max-width: 460px; }
.pg-search input { width: 100%; min-height: 48px; padding: 0 14px 0 44px; background: var(--bg-2); border: 1px solid var(--line-3); color: var(--text); font: 500 15px/1 var(--body); }
.pg-search input::placeholder { color: var(--faint); opacity: 1; }
.pg-search input:focus { border-color: var(--cyan); outline: 2px solid var(--focus); outline-offset: 2px; background: var(--panel); }
.pg-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--cyan); pointer-events: none; }
.pg-chipnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pg-chipnav::-webkit-scrollbar { display: none; }
.pg-chipnav a, .pg-chipnav button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); text-decoration: none; font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.pg-chipnav a:hover, .pg-chipnav button:hover { border-color: var(--cyan-lo); color: #fff; }
.pg-chipnav a[aria-current="true"], .pg-chipnav button[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan-tint); color: var(--cyan-hi); box-shadow: inset 0 -3px 0 var(--cyan); }
.pg-chipnav small { font: 600 12px/1 var(--mono); color: var(--faint); letter-spacing: 0; }

/* ---- stepper */
.pg-steps { counter-reset: step; display: grid; gap: 0; position: relative; }
.pg-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-5); }
.pg-step:last-child { padding-bottom: 0; }
.pg-step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--cyan-lo), var(--line-2)); }
.pg-step:last-child::before { display: none; }
.pg-step__n { display: grid; place-items: center; width: 56px; height: 56px; background: var(--cyan); color: var(--on-cyan); font: 700 26px/1 var(--display); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); box-shadow: 0 0 22px rgba(60,198,244,.35); }
.pg-step__b { padding-top: 6px; min-width: 0; }
.pg-step__b h3 { font: 700 20px/1.25 var(--display); }
.pg-step__b p { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 62ch; }
.pg-step__b code { padding: 1px 6px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--cyan-hi); }

/* ---- key facts and definition rows */
.pg-kv { display: grid; gap: 0; }
.pg-kv > div { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.pg-kv dt { font: 600 12px/1.5 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.pg-kv dd { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.pg-kv dd b { color: var(--text); font-weight: 600; }
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.pg-split--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.pg-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.pg-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.pg-tile { position: relative; padding: var(--s-5); display: flex; flex-direction: column; gap: 10px; }
.pg-tile__ico { display: grid; place-items: center; width: 48px; height: 48px; background: var(--tc, var(--cyan)); color: var(--on-cyan); clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.pg-tile__ico svg { width: 26px; height: 26px; }
.pg-tile h3 { font: 700 20px/1.2 var(--display); }
.pg-tile p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.pg-tile--amber { --tc: var(--amber); } .pg-tile--amber .pg-tile__ico { color: var(--on-amber); }
.pg-tile--red { --tc: var(--red); } .pg-tile--red .pg-tile__ico { color: #1a0705; }
.pg-tile__link { margin-top: auto; padding-top: 6px; }
.pg-eyebrow-link { color: inherit; text-decoration: none; }

@media (max-width: 1100px) {
  .pg-split, .pg-split--wide { grid-template-columns: minmax(0, 1fr); }
  .pg-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pg-hero { padding: 26px 0 30px; }
  .pg-hero__art { background-image: url("/assets/bar-fight-brawl-v3-768.webp"); background-position: 62% 0; background-size: auto 100%; }
  .pg-hero::before { background: linear-gradient(180deg, rgba(6,10,16,.8) 0%, rgba(6,10,16,.9) 55%, var(--bg) 100%); }
  .pg-title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .pg-lead { font-size: 1.0625rem; }
  .pg-stats { gap: 12px 22px; padding-top: 16px; }
  .pg-step { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .pg-step__n { width: 44px; height: 44px; font-size: 21px; }
  .pg-step::before { left: 21px; top: 44px; }
  .pg-kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pg-four { grid-template-columns: minmax(0, 1fr); }
  .pg-tile { padding: var(--s-4); }
  .pg-acc > summary { padding-left: 14px; font-size: 15px; }
  .pg-acc__b { padding-inline: 14px; }
}
[hidden] { display: none !important; }
