/* ===== FlowGuard global header + footer (single source of truth) =====
   Colours come from each page's :root (--ink, --line, --muted, --accent, --accent-wash…),
   so the shared nav/footer adopt the page's accent automatically. */
.gnav { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.gnav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(15,26,28,0.05); }
.gnav-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gbrand { display: flex; align-items: center; gap: 10px; }
.gbrand img { height: 30px; width: auto; display: block; }
.gbrand b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.gmenu { display: flex; gap: 4px; }
.gitem { position: relative; }
.gtop { display: inline-flex; align-items: center; gap: 5px; font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 500; color: #16292c; padding: 10px 12px; border-radius: 8px; cursor: pointer; background: none; border: none; text-decoration: none; transition: color .18s; white-space: nowrap; }
.gitem:hover .gtop, .gtop.active { color: var(--accent); }
.gtop .cv { width: 9px; opacity: .5; transition: transform .18s; }
.gitem:hover .gtop .cv { transform: rotate(180deg); }
.gdrop { position: absolute; top: calc(100% - 4px); left: 0; min-width: 236px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(15,26,28,0.12); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s; z-index: 10; }
.gitem:hover .gdrop, .gitem:focus-within .gdrop { opacity: 1; visibility: visible; transform: none; }
.gdrop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; transition: background .15s, color .15s; }
.gdrop a:hover { background: var(--accent-wash); color: var(--accent); }
.gdrop a.active { color: var(--accent); font-weight: 600; }
.gright { display: flex; align-items: center; gap: 14px; }
.glogin { font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; } .glogin:hover { color: var(--accent); }
.gcta { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 14.5px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; text-decoration: none; transition: background .18s, transform .15s; } .gcta:hover { background: #000; transform: translateY(-1px); }
.gham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.gham span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.gham.open span:nth-child(1){transform:translateY(7px) rotate(45deg);} .gham.open span:nth-child(2){opacity:0;} .gham.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.gmobile { display: none; border-top: 1px solid var(--line); background: #fff; padding: 10px 20px 20px; max-height: calc(100vh - 76px); overflow-y: auto; }
.gmobile.open { display: block; }
.gmobile details { border-bottom: 1px solid var(--line); }
.gmobile summary { list-style: none; padding: 14px 2px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.gmobile summary::-webkit-details-marker { display: none; }
.gmobile summary .cv { width: 11px; opacity: .5; transition: transform .2s; } .gmobile details[open] summary .cv { transform: rotate(180deg); }
.gmobile .msub { padding: 0 2px 10px; } .gmobile .msub a { display: block; padding: 8px 8px; color: var(--muted); font-size: 14px; text-decoration: none; } .gmobile .msub a:hover { color: var(--accent); }
.gmobile .msingle { display: block; padding: 14px 2px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.gmobile .mfoot { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.gmobile .mlogin { text-align: center; padding: 12px; font-weight: 600; color: var(--ink); border: 1px solid var(--line-2, #dfe6e6); border-radius: 8px; text-decoration: none; }
.gmobile .mcta { text-align: center; background: var(--ink); color: #fff; border-radius: 8px; padding: 13px; font-weight: 600; text-decoration: none; }

/* footer */
.gfoot { background: #fff; border-top: 1px solid var(--line); padding: 58px 0 30px; }
.gfoot-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.gfoot-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr 1fr; gap: 30px; }
.gfb .gbrand { margin-bottom: 14px; }
.gfb p { font-size: 13.5px; color: var(--muted); max-width: 240px; line-height: 1.65; }
.gfsocial { display: flex; gap: 10px; margin-top: 16px; }
.gfsocial a { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: .18s; }
.gfsocial a:hover { color: var(--accent); border-color: var(--accent); }
.gfcol h5 { font-family: 'Inter', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted-2, #8a969b); margin-bottom: 14px; font-weight: 600; }
.gfcol a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; text-decoration: none; } .gfcol a:hover { color: var(--accent); }
.gfoot-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted-2, #8a969b); }
.gfoot-bottom .legal { display: flex; gap: 20px; } .gfoot-bottom .legal a { color: var(--muted-2, #8a969b); text-decoration: none; } .gfoot-bottom .legal a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .gmenu, .gright .glogin, .gright .gcta { display: none; }
  .gham { display: flex; }
  .gnav-in { padding: 0 22px; }
  .gfoot-top { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
}
@media (max-width: 620px) { .gfoot-top { grid-template-columns: 1fr 1fr; } .gfoot-in, .gnav-in { padding-left: 20px; padding-right: 20px; } }
