/* FL-H01: header-only replacement on the authenticated main feed.
 * No sidebar, feed, voting, database, auth or other page styles changed.
 * Accepted FL-N06 v2 desktop coastal pan: 155px x 100px.
 */
.ptp-h01-masthead, .ptp-h01-masthead * { box-sizing:border-box; }
.topbar.ptp-h01-masthead {
  --ptp-coastal-pan-x:155px;--ptp-coastal-pan-y:100px;
  position:sticky;top:0;z-index:30;height:114px;width:100%;
  overflow:visible;isolation:isolate;color:#fff;
  background:linear-gradient(90deg,#032f28,#0b4c45 56%,#25586b);
  border:0;backdrop-filter:none;box-shadow:0 2px 7px #031c1628;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
.ptp-h01-masthead .ptp-h01-coastal-photo {position:absolute;inset:0;background-image:url('/assets/coastal-header.jpg');background-size:112% auto;background-position:calc(50% + var(--ptp-coastal-pan-x)) calc(55% + var(--ptp-coastal-pan-y));background-repeat:no-repeat;opacity:1;pointer-events:none;}
.ptp-h01-masthead::before {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:url('/assets/fl-n02b-green-wave.svg') center center/100% 100% no-repeat;}
.ptp-h01-masthead .ptp-h01-masthead-shade {position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(180deg,rgba(3,24,29,.33),transparent 80%);}
.ptp-h01-header-content {position:relative;z-index:3;display:flex;align-items:center;height:100%;min-width:0;width:100%;padding:5px 22px;gap:25px;background:transparent;}
.ptp-h01-brand {display:flex;align-items:center;gap:9px;flex:0 0 auto;min-width:0;color:#fff!important;text-decoration:none!important;font-weight:400;letter-spacing:normal;white-space:nowrap;}
.ptp-h01-brand img {display:block;flex:0 0 auto;width:64px;height:64px;object-fit:contain;border:0;border-radius:0;box-shadow:none;background:transparent;filter:drop-shadow(0 2px 3px #061d1780);}
.ptp-h01-brand-words {display:flex;flex-direction:column;line-height:1.05;text-shadow:0 2px 2px #061c1699;white-space:nowrap;}
.ptp-h01-brand-words strong {font:bold clamp(1.25rem,2.1vw,2.1rem)/1.03 Georgia,serif;letter-spacing:-.025em;color:#fff;}
.ptp-h01-brand-words small {font-size:.76rem;letter-spacing:.015em;margin-top:4px;color:#fff;}
.ptp-h01-top-links {display:flex;align-items:center;justify-content:center;gap:clamp(7px,1.25vw,24px);flex:1;min-width:0;transform:translateY(-7px);}
.ptp-h01-top-links a,.ptp-h01-top-placeholder {position:relative;color:#fff!important;text-decoration:none!important;text-transform:uppercase;font-size:clamp(.64rem,.9vw,.89rem);font-weight:750;letter-spacing:.04em;white-space:nowrap;text-shadow:0 1px 3px rgba(0,16,15,.88),0 0 7px rgba(0,29,23,.65);padding:.3rem .37rem;border-radius:5px;}
.ptp-h01-top-links a:hover,.ptp-h01-top-links a:focus-visible {color:#fff8dc!important;background:rgba(4,55,43,.35);}
.ptp-h01-top-placeholder {opacity:.65;cursor:not-allowed;}
.ptp-h01-header-actions {display:flex;align-items:center;gap:6px;flex:0 0 auto;min-width:0;}
.ptp-h01-header-actions > button, .ptp-h01-account-trigger {display:grid;place-items:center;flex:0 0 auto;color:#fff!important;background:#11578188;border:1px solid #ffffff40;border-radius:50%;height:32px;width:32px;min-width:32px;padding:0;box-shadow:none;transform:none;font:600 .76rem/1 system-ui;}
.ptp-h01-header-actions > button:hover,.ptp-h01-account-trigger:hover {background:#0f745d;box-shadow:none;transform:none;}
.ptp-h01-header-actions > .ptp-h01-type-size {background:transparent;border:0;border-radius:4px;width:27px;min-width:27px;}
.ptp-h01-svg {display:block;width:18px;height:18px;flex-shrink:0;}
.ptp-h01-notify {position:relative;}
.ptp-h01-notify .notification-bell-dot {position:absolute;top:0;right:0;width:9px;height:9px;border-radius:50%;background:#e6b957;border:2px solid #fff;}
.ptp-h01-account {position:relative;display:flex;align-items:center;}
.ptp-h01-account-menu {position:absolute;right:0;top:calc(100% + 9px);z-index:110;width:min(245px,calc(100vw - 20px));padding:7px;background:#fff;color:#18382d;border:1px solid #cfe0d7;border-radius:11px;box-shadow:0 12px 35px #001e1870;display:flex;flex-direction:column;gap:2px;}
.ptp-h01-account-menu a,.ptp-h01-account-menu button {display:block;width:100%;border-radius:7px;border:0;box-shadow:none;transform:none;background:transparent;color:#18382d!important;text-align:left;text-decoration:none;font:600 .9rem/1.35 system-ui;padding:11px 12px;cursor:pointer;}
.ptp-h01-account-menu a:hover,.ptp-h01-account-menu button:hover,.ptp-h01-account-menu a:focus-visible,.ptp-h01-account-menu button:focus-visible {background:#e5f3ec;transform:none;box-shadow:none;text-decoration:none;}
.ptp-h01-account-divider {height:1px;background:#d7e3dd;margin:3px 6px;}
.ptp-h01-account-info {display:block;padding:8px 12px;color:#557363;font:.78rem/1.35 system-ui;}
.ptp-h01-account-menu .ptp-h01-logout {color:#932b27!important;}
.ptp-h01-masthead :is(button,a):focus-visible {outline:3px solid #f5d46e;outline-offset:2px;}
body.ptp-h01-contrast .ptp-h01-coastal-photo,body.ptp-h01-contrast .ptp-h01-masthead::before {opacity:0;}
body.ptp-h01-contrast .ptp-h01-masthead {background:#001c16;border-bottom:2px solid #fff;}
@media(max-width:1050px){.ptp-h01-header-content {gap:15px;padding-inline:12px}.ptp-h01-brand-words strong{font-size:1.55rem}.ptp-h01-brand img{width:58px;height:58px}.ptp-h01-top-links{gap:8px}}
@media(max-width:780px){
 .topbar.ptp-h01-masthead{--ptp-coastal-pan-x:10px;height:134px;}
 .ptp-h01-header-content{flex-wrap:wrap;align-content:center;min-height:94px;padding:6px 10px;gap:4px 9px;}
 .ptp-h01-brand{flex:1;min-width:0;}
 .ptp-h01-brand-words strong{font-size:1.28rem}.ptp-h01-brand-words small{font-size:.62rem}.ptp-h01-brand img{width:49px;height:49px}
 .ptp-h01-top-links{flex:0 0 100%;order:3;justify-content:space-around;overflow-x:auto;padding:8px 2px;transform:translateY(-2px);}
 .ptp-h01-top-links a,.ptp-h01-top-placeholder{font-size:.67rem}
 .ptp-h01-header-actions{margin-left:auto}.ptp-h01-header-actions > button,.ptp-h01-account-trigger{height:29px;width:29px;min-width:29px;}
 .ptp-h01-masthead .ptp-h01-coastal-photo{background-size:auto 175%;background-position:calc(50% + var(--ptp-coastal-pan-x)) 60%;}
 .ptp-h01-masthead::before{background-size:175% 100%;}
}
@media(max-width:520px){
 .topbar.ptp-h01-masthead{height:128px;}
 .ptp-h01-brand-words strong{font-size:1.12rem}.ptp-h01-brand img{width:42px;height:42px}
 .ptp-h01-header-actions > .ptp-h01-type-size{display:none}
 .ptp-h01-top-links{justify-content:flex-start;gap:15px}
 .ptp-h01-top-links a,.ptp-h01-top-placeholder{font-size:.64rem}
}
@media(prefers-reduced-motion:reduce){.ptp-h01-top-links a{transition:none}}

/* FL-H01 account dropdown contrast v2.2
 * Keep these scoped overrides above the original platform's button styles.
 * Normal and hover text/background meet WCAG AA for ordinary-size text.
 */
.ptp-h01-masthead .ptp-h01-account-menu > a,
.ptp-h01-masthead .ptp-h01-account-menu > button {
  appearance:none!important;
  display:block!important;
  width:100%!important;
  min-height:42px;
  padding:11px 12px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:#f5f9f6!important;
  background-image:none!important;
  color:#123729!important;
  box-shadow:none!important;
  text-shadow:none!important;
  opacity:1!important;
  filter:none!important;
  transform:none!important;
  font:600 .9rem/1.35 system-ui!important;
  text-align:left!important;
  text-decoration:none!important;
  cursor:pointer;
}
.ptp-h01-masthead .ptp-h01-account-menu > a:hover,
.ptp-h01-masthead .ptp-h01-account-menu > button:hover,
.ptp-h01-masthead .ptp-h01-account-menu > a:focus-visible,
.ptp-h01-masthead .ptp-h01-account-menu > button:focus-visible {
  background:#d9eee1!important;
  color:#123729!important;
  box-shadow:none!important;
  transform:none!important;
}
.ptp-h01-masthead .ptp-h01-account-menu > .ptp-h01-logout {
  background:#fff2f0!important;
  color:#80201c!important;
}
.ptp-h01-masthead .ptp-h01-account-menu > .ptp-h01-logout:hover,
.ptp-h01-masthead .ptp-h01-account-menu > .ptp-h01-logout:focus-visible {
  background:#fce0dc!important;
  color:#80201c!important;
}

/* FL-H01 account dropdown contrast v2.3
 * Dedicated final override. Pale backgrounds and dark lettering avoid
 * unreadable green-on-green and red-on-green menu actions.
 * WCAG contrast: normal 11.46:1, hover 10.03:1,
 * logout 8.85:1, logout hover 7.45:1.
 */
body .topbar.ptp-h01-masthead .ptp-h01-account-menu {
  background-color:#ffffff!important;
  color:#123b2c!important;
  padding:8px!important;
}
body .topbar.ptp-h01-masthead .ptp-h01-account-menu a,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu button {
  appearance:none!important;
  display:block!important;
  width:100%!important;
  min-height:43px;
  padding:11px 13px!important;
  background:#f1f7f3!important;
  background-image:none!important;
  border:1px solid #d0e3d7!important;
  border-radius:8px!important;
  color:#123b2c!important;
  -webkit-text-fill-color:#123b2c!important;
  font:600 .92rem/1.35 system-ui,-apple-system,Segoe UI,Roboto,sans-serif!important;
  text-align:left!important;
  text-decoration:none!important;
  text-shadow:none!important;
  box-shadow:none!important;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
}
body .topbar.ptp-h01-masthead .ptp-h01-account-menu a:hover,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu button:hover,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu a:focus-visible,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu button:focus-visible {
  background:#daebdf!important;
  color:#123b2c!important;
  -webkit-text-fill-color:#123b2c!important;
}
body .topbar.ptp-h01-masthead .ptp-h01-account-menu button.ptp-h01-logout {
  background:#fff0ee!important;
  border-color:#f0ceca!important;
  color:#80201c!important;
  -webkit-text-fill-color:#80201c!important;
}
body .topbar.ptp-h01-masthead .ptp-h01-account-menu button.ptp-h01-logout:hover,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu button.ptp-h01-logout:focus-visible {
  background:#f7dad6!important;
  color:#80201c!important;
  -webkit-text-fill-color:#80201c!important;
}

/* PTP-GREEN-ACCOUNT-TEXT-v2.4.2: restore original dark-green menu buttons,
   with bright text. This affects only account-menu buttons. */
body .topbar.ptp-h01-masthead .ptp-h01-account-menu > button,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu > button:hover,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu > button:focus-visible,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu > button.ptp-h01-logout,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu > button.ptp-h01-logout:hover,
body .topbar.ptp-h01-masthead .ptp-h01-account-menu > button.ptp-h01-logout:focus-visible,
body.ptp-h02-ready header.ptp-h02-standalone.ptp-h01-masthead .ptp-h01-account-menu > button,
body.ptp-h02-ready header.ptp-h02-standalone.ptp-h01-masthead .ptp-h01-account-menu > button:hover,
body.ptp-h02-ready header.ptp-h02-standalone.ptp-h01-masthead .ptp-h01-account-menu > button:focus-visible,
body.ptp-h02-ready header.ptp-h02-standalone.ptp-h01-masthead .ptp-h01-account-menu > button.ptp-h01-logout,
body.ptp-h02-ready header.ptp-h02-standalone.ptp-h01-masthead .ptp-h01-account-menu > button.ptp-h01-logout:hover,
body.ptp-h02-ready header.ptp-h02-standalone.ptp-h01-masthead .ptp-h01-account-menu > button.ptp-h01-logout:focus-visible {
  background:linear-gradient(180deg,#1f764d 0%,#105739 100%)!important;
  background-image:linear-gradient(180deg,#1f764d 0%,#105739 100%)!important;
  border-color:transparent!important;
  color:#fafffb!important;
  -webkit-text-fill-color:#fafffb!important;
  text-shadow:0 1px 1px rgba(0,28,16,.4)!important;
}