.wf-header {
  box-sizing:border-box; position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:clamp(16px,3vw,48px);
  min-height:80px; padding:12px clamp(16px,6vw,100px);
  background:#f8f7f4; color:#18384a; border-bottom:1px solid #dddeda;
  font:600 16px/1.4 system-ui,sans-serif;
}
.wf-header a {color:#18384a;text-decoration:none}
.wf-header a:hover,.wf-header a:focus-visible {text-decoration:underline;text-underline-offset:4px}
.wf-header .wf-brand {display:inline-flex;align-items:center;gap:8px;font:bold 26px Georgia,serif;white-space:nowrap}
.wf-brand img {width:34px;height:34px;object-fit:contain}
.wf-header nav {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px clamp(14px,2vw,32px);margin-left:auto;min-width:0}
.wf-header nav a {display:flex;align-items:center;min-height:44px;padding:7px 0;font:600 16px/1.4 system-ui,sans-serif;white-space:nowrap;box-sizing:border-box}
.wf-header form {margin:0}
.wf-header button {font:inherit;color:inherit;background:transparent;border:0;cursor:pointer;white-space:nowrap}
@media(max-width:850px){
  .wf-header {flex-wrap:wrap;min-height:0;gap:4px 12px;padding-block:8px}
  .wf-header nav {order:1;flex-basis:100%;margin:0;justify-content:flex-start;gap:2px 18px}
  .wf-header form {margin-left:auto}
  .wf-header nav a {font-size:15px;padding:5px 0}
}

.wf-username {font-size:13px;font-weight:400;color:#52646c;overflow-wrap:anywhere}


.wf-footer {box-sizing:border-box;display:block;width:100%;margin:0;background:#132f3f;color:#e8f0f0;font:15px/1.6 system-ui,sans-serif}
.wf-footer-inner {max-width:1200px;margin:0 auto;padding:36px clamp(20px,4vw,48px) 22px}
.wf-footer-top {display:flex;align-items:center;justify-content:space-between;gap:20px}
.wf-footer a {color:#e8f0f0;text-decoration:none}
.wf-footer a:hover {color:#a9dbe1;text-decoration:underline;text-underline-offset:4px}
.wf-footer .wf-footer-brand {display:inline-flex;align-items:center;gap:10px;font:bold 28px/1.2 Georgia,serif;white-space:nowrap}
.wf-footer-brand img {display:block;width:36px;height:36px;object-fit:contain}
.wf-footer-top p {margin:0;font-size:15px;color:#b9cdd3}
.wf-footer nav {display:flex;flex-wrap:wrap;gap:12px 28px;padding:24px 0;font-size:14px}
.wf-footer-bottom {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #ffffff26;padding-top:18px;color:#adc1c8;font-size:12px}
.wf-footer-bottom small {font:inherit}
@media(max-width:650px){.wf-footer-top{align-items:flex-start;flex-direction:column;gap:12px}.wf-footer nav{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wf-footer-bottom{flex-direction:column;gap:6px}}

/* Shared page shell: footer follows content and reaches the viewport bottom. */
body:has(> .wf-footer){min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body:has(> .wf-footer)> .wf-header{flex-shrink:0}
body:has(> .wf-footer)>main,body:has(> .wf-footer)> .account-layout{flex-shrink:0}
body:has(> .wf-footer)> .account-layout{width:100%;margin:0 auto}
body:has(> .wf-footer)> .platform-main{width:100%;margin:0 auto}
body:has(> .wf-footer)> .wf-footer{flex-shrink:0;margin-top:auto}

html:has(.wf-header--signed-in){scrollbar-gutter:stable}
body .wf-header.wf-header--signed-in {
  min-height:80px;
  column-gap:clamp(8px,2vw,24px);
  padding-block:8px;
}
.wf-header--signed-in .wf-brand{flex-shrink:0}
.wf-account-controls {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  width:clamp(200px,30vw,300px);
  min-width:0;
  min-height:63px;
  margin-inline-start:auto;
}
.wf-account-identity {
  display:flex;
  align-items:center;
  flex:1;
  gap:10px;
  min-width:0;
  padding-inline-start:16px;
  border-inline-start:1px solid #d7dfdf;
}
.wf-account-labels{display:flex;flex-direction:column;gap:3px;min-width:0}
.wf-account-meta{display:flex;align-items:center;min-width:0;gap:6px}
.wf-account-labels strong,.wf-account-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-account-meta a{display:inline-flex;align-items:center;flex-shrink:0;min-height:24px;padding-inline-start:6px;border-inline-start:1px solid #75919c;font-size:12px;white-space:nowrap}
.wf-account-meta a[aria-current="page"]{text-decoration:underline;text-underline-offset:3px}
.wf-account-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;object-fit:cover}
.wf-account-identity .wf-account-initials{display:grid;place-items:center;background:#36596a;color:white;font-weight:600}
.wf-account-identity strong{font-size:14px;font-weight:600}
.wf-account-identity span{font-size:12px;font-weight:400;color:#526b70}
.wf-header .wf-account-logout{margin:0;flex:none}
.wf-account-logout button{min-height:44px;padding:0 4px;font-size:14px}
@media(max-width:850px){
  .wf-header--signed-in nav{order:2}
  .wf-account-controls{flex:0 1 300px}
}
@media(max-width:500px){
  body .wf-header.wf-header--signed-in{flex-wrap:wrap}
  .wf-header--signed-in .wf-brand{font-size:21px;gap:5px}
  .wf-header--signed-in .wf-brand img{width:28px;height:28px}
  .wf-account-controls{flex:1 1 0;gap:5px}
  .wf-account-identity{padding-inline-start:6px;gap:5px}
  .wf-account-avatar{width:28px;height:28px;flex-basis:28px}
  .wf-account-labels strong,.wf-account-meta a,.wf-account-logout button{font-size:12px}
  .wf-account-meta{flex-wrap:wrap;gap:0 5px}
  .wf-account-meta a{border:0;padding:0}
}

/* Shared keyboard-accessible column sorting. */
th .table-sort-button{display:inline-flex;align-items:center;gap:8px;width:100%;padding:4px 0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:left;cursor:pointer}
th .table-sort-button:hover{color:var(--teal,#26717b)}
th .table-sort-button:focus-visible{outline:2px solid #26717b;outline-offset:4px}
.table-sort-arrow{font-size:14px;opacity:.5;flex-shrink:0}
th[aria-sort="ascending"] .table-sort-arrow,th[aria-sort="descending"] .table-sort-arrow{opacity:1;color:#26717b}

/* Authenticated workspace: one shared side menu, identity in the header. */
body:has(> .wf-sidebar){display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto 1fr auto;min-height:100dvh;align-items:start}
body:has(> .wf-sidebar)> .wf-header{grid-column:1/-1;grid-row:1;width:100%;min-height:80px;flex-wrap:nowrap}
.wf-sidebar{grid-column:1;grid-row:2/4;position:sticky;top:80px;height:calc(100dvh - 80px);overflow-y:auto;padding:32px 20px;background:#f1f3ef;border-right:1px solid #dce2df;box-sizing:border-box}
.wf-sidebar-label{font:600 12px/1.5 system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#526b70;margin:0 12px 20px}
.wf-sidebar nav{display:flex;flex-direction:column;gap:6px}
.wf-sidebar a{display:block;padding:13px 12px;border-radius:5px;color:#18384a;text-decoration:none;font:500 15px/1.5 system-ui,sans-serif}
.wf-sidebar a:hover,.wf-sidebar a:focus-visible{background:#e1eae6;color:#205f69}
.wf-sidebar a[hidden]{display:none}
body:has(> .wf-sidebar)>main,body:has(> .wf-sidebar)> .account-layout{grid-column:2;grid-row:2;min-width:0;width:100%;box-sizing:border-box}
body:has(> .wf-sidebar)> .account-layout{display:block;margin:0 auto}
body:has(> .wf-sidebar)> .wf-footer{grid-column:2;grid-row:3;margin-top:0}
body:has(> .wf-sidebar)> .login-shell{width:min(100%,520px)}
@media(max-width:760px){
 body:has(> .wf-sidebar){grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr auto}
 .wf-sidebar{grid-column:1;grid-row:2;position:static;height:auto;padding:10px 16px;border-right:0;border-bottom:1px solid #dce2df}
 .wf-sidebar-label{display:none}.wf-sidebar nav{flex-direction:row;overflow-x:auto;gap:4px}.wf-sidebar a{white-space:nowrap;padding:10px;font-size:14px}
 body:has(> .wf-sidebar)>main,body:has(> .wf-sidebar)> .account-layout{grid-column:1;grid-row:3}
 body:has(> .wf-sidebar)> .wf-footer{grid-column:1;grid-row:4}
}

/* Quiet editorial navigation, shared by all account roles. */
body:has(> .wf-sidebar){grid-template-columns:258px minmax(0,1fr)}
.wf-sidebar{top:var(--wf-topbar-height,80px);height:calc(100dvh - var(--wf-topbar-height,80px));padding:28px 18px 22px;background:#f8f8f5;border-color:#e1e7e3;scrollbar-width:thin;scrollbar-color:#c9d5cf transparent}
.wf-sidebar-heading{margin:0 12px 22px;padding-bottom:20px;border-bottom:1px solid #dfe6e1}
.wf-sidebar-eyebrow{font:600 10px/1.5 system-ui,sans-serif;letter-spacing:2.4px;color:#658078}
.wf-sidebar .wf-sidebar-label{margin:7px 0 0;font:400 21px/1.3 Georgia,serif;letter-spacing:0;text-transform:none;color:#213e46}
.wf-sidebar nav{gap:3px}
.wf-sidebar .wf-menu-group {
  margin: 18px 12px 5px;
  padding-top: 12px;
  border-top: 1px solid #c6d5cf;
  color: #234d50;
  font: 700 13px/1.45 system-ui, sans-serif;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.wf-sidebar a{position:relative;padding:11px 14px;border:1px solid transparent;border-radius:7px;font:400 14px/1.5 system-ui,sans-serif;color:#40585d;transition:background .15s,color .15s,border-color .15s}
.wf-sidebar a:hover{background:#edf1ec;border-color:#e1e7df;color:#183e46}
.wf-sidebar a[aria-current="page"]{background:#e6eee8;border-color:#d5e1d7;color:#183f44;font-weight:600}
.wf-sidebar a[aria-current="page"]::before{content:'';position:absolute;left:0;top:11px;bottom:11px;width:3px;background:#34756e;border-radius:3px}
.wf-sidebar a:focus-visible{outline:2px solid #34756e;outline-offset:2px}
.wf-sidebar-signature{margin:28px 12px 0;padding-top:18px;border-top:1px solid #dfe6e1;color:#73867d;font:italic 15px/1.5 Georgia,serif}
@media(max-width:760px){body:has(> .wf-sidebar){grid-template-columns:minmax(0,1fr)}.wf-sidebar{height:auto;padding:10px 14px}.wf-sidebar-heading,.wf-sidebar .wf-menu-group,.wf-sidebar-signature{display:none}.wf-sidebar nav{gap:6px}.wf-sidebar a{padding:10px 14px;flex-shrink:0}.wf-sidebar a[aria-current="page"]::before{top:auto;bottom:0;left:14px;right:14px;width:auto;height:2px}}
@media(prefers-reduced-motion:reduce){.wf-sidebar a{transition:none}}

/* The panel heading already separates the first group from the header. */
.wf-sidebar nav > .wf-menu-group:nth-child(1 of :not([hidden])) {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.wf-panel-switcher {
  display: flex;
  gap: 4px;
  margin: 0 12px 16px;
  padding: 4px;
  border: 1px solid #c6d5cf;
}
.wf-sidebar .wf-panel-switcher a {
  flex: 1;
  min-width: 0;
  padding: 9px 6px;
  text-align: center;
  border-radius: 0;
}
.wf-sidebar .wf-panel-switcher a[aria-current="true"] {
  background: #dcebec;
  color: #173b4a;
  font-weight: 600;
}
@media (max-width: 760px) {
  .wf-panel-switcher { margin: 0 0 8px; max-width: 20rem; }
}

.wf-header nav a.wf-signup-link {
  padding-inline: 16px;
  background: #eaf2f3;
  color: #17384a;
}
.wf-header nav a.wf-signup-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.wf-join-menu { position: relative; }
.wf-join-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.wf-join-menu summary::-webkit-details-marker { display: none; }
.wf-join-menu summary::after { content: '▾'; }
.wf-join-menu[open] summary::after { content: '▴'; }
.wf-join-links {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  min-width: max-content;
  padding: 4px 12px;
  border: 1px solid #c6d5cf;
  background: white;
  box-shadow: 0 4px 12px #132f3f22;
}
body .wf-header .wf-join-links a { color: #17384a; }
body .wf-header .wf-join-links a:focus-visible { outline-color: #146370; }
.wf-header .wf-public-menu-toggle { display: none; }
@media (max-width: 850px) {
  .wf-header .wf-public-menu-toggle:not([hidden]) { display: block; min-height: 44px; margin-inline-start: auto; }
  .wf-header .wf-public-menu-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .wf-header .wf-public-menu-toggle:not([hidden]) + nav { align-items: stretch; flex-direction: column; }
  .wf-header .wf-join-links { position: static; min-width: 0; box-shadow: none; }
}
